@ -408,7 +408,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// private _listenersSubscription:Subscription = new Subscription();
registerFormListeners() {
// const dmpSubscription =
// const dmpSubscription =
this . formGroup . get ( 'dmp' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
@ -424,32 +424,32 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
this . formChanged ( ) ;
}
} ) ;
// const labelSubscription =
// const labelSubscription =
this . formGroup . get ( 'label' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
this . formChanged ( ) ;
} ) ;
// const descriptionSubscription =
// const descriptionSubscription =
this . formGroup . get ( 'description' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
this . formChanged ( ) ;
} ) ;
// const uriSubscription =
// const uriSubscription =
this . formGroup . get ( 'uri' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
this . formChanged ( ) ;
} ) ;
// const tagsSubscription =
// const tagsSubscription =
this . formGroup . get ( 'tags' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
this . formChanged ( ) ;
} ) ;
if ( this . formGroup . get ( 'datasetProfileDefinition' ) ) {
// const datasetProfileDefinitionSubscription =
// const datasetProfileDefinitionSubscription =
this . formGroup . get ( 'datasetProfileDefinition' ) . valueChanges
. pipe ( takeUntil ( this . _destroyed ) )
. subscribe ( x = > {
@ -555,7 +555,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
this . formGroup . addControl ( 'datasetProfileDefinition' , this . datasetProfileDefinitionModel . buildForm ( ) ) ;
// const datasetProfileDefinitionForm = this.datasetProfileDefinitionModel.buildForm();
// let profId = null;
// try{
// profId = this.formGroup.get('profile').value.id;
@ -651,11 +651,11 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
|| formControl . nativeElement . localName === 'richTextarea' ) {
return formControl . nativeElement . getAttribute ( 'placeholder' ) ;
} else if ( formControl . nativeElement . localName === 'mat-select' ) {
return formControl . nativeElement . getAttribute ( ' aria-label ') ;
return formControl . nativeElement . getAttribute ( ' placeholder ') ;
} else if ( formControl . nativeElement . localName === 'app-single-auto-complete' ) {
return ( Array . from ( formControl . nativeElement . firstChild . children ) . filter ( ( x : any ) = > x . localName === 'input' ) [ 0 ] as any ) . getAttribute ( 'placeholder' ) ;
} else if ( formControl . nativeElement . localName === 'app-multiple-auto-complete' ) {
return ( Array . from ( formControl . nativeElement . firstChild . children) . filter ( ( x : any ) = > x . localName === 'input' ) [ 0 ] as any ) . getAttribute ( 'placeholder' ) ;
return ( Array . from ( formControl . nativeElement . firstChild . firstChild. firstChild . children) . filter ( ( x : any ) = > x . localName === 'input' ) [ 0 ] as any ) . getAttribute ( 'placeholder' ) ;
}
}
@ -687,7 +687,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
}
}
const errorMessage = this . _getErrorMessage ( aControl , controlName ) ;
errmess . push ( . . . errorMessage ) ;
}
@ -695,7 +695,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
No need to check case of FormControl below * /
if ( aControl instanceof FormGroup ) {
const fg = aControl as FormGroup ;
//check children
Object . keys ( fg . controls ) . forEach ( controlName = > {
@ -708,7 +708,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
fa . controls . forEach ( ( control , index ) = > {
errmess . push ( . . . this . _buildErrorMessagesForAbstractControl ( control , ` ${ controlName } --> ${ index + 1 } ` ) ) ;
} ) ;
}
}
@ -729,7 +729,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
if ( ! this . isSemiFormValid ( this . formGroup ) ) {
//build messages
const errorMessages = this . _buildSemiFormErrorMessages ( ) ;
this . showValidationErrorsDialog ( undefined , errorMessages ) ;
this . showValidationErrorsDialog ( undefined , errorMessages ) ;
this . hintErrors = true ;
return ;
}
@ -1153,7 +1153,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// }else{
// this.formGroup.get(key).reset();
// }
// }
// });
} else {
@ -1252,7 +1252,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// const tempResult:ToCEntry[] = [];
// if(sections &§ions.length){
// sections.controls.forEach(section=>{
// tempResult.push(this._buildRecursively(section as FormGroup, ToCEntryType.Section));
@ -1288,9 +1288,9 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// }
// private _sortByOrdinal(tocentries: ToCEntry[]){
// if(!tocentries || !tocentries.length) return;
// tocentries.sort(this._customCompare);
// tocentries.forEach(entry=>{
// this._sortByOrdinal(entry.subEntries);
@ -1315,7 +1315,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// });
// }
// getTocEntries(form): ToCEntry[] {
// if (form == null) { return []; }
// const result: ToCEntry[] = [];
@ -1355,6 +1355,6 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
// }
}