|
|
|
@ -17,16 +17,16 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.ComboBox" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === datasetProfileComboBoxTypeEnum.Autocomplete">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
@ -45,46 +45,46 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.InternalDmpEntities" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Researchers">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Datasets">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Dmps">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
@ -138,18 +138,18 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.ExternalDatasets" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="externalDatasetAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="externalDatasetAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
@ -158,16 +158,16 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.DataRepositories" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="dataRepositoriesAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="dataRepositoriesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
@ -178,16 +178,16 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.Registries" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="registriesAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="registriesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
@ -198,16 +198,16 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.Services" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<div *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="servicesAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
</ng-container>
|
|
|
|
|
<ng-container *ngIf="!(form.get('data').value.multiAutoComplete)">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="servicesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
|