|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<i>{{this.form.get('extendedDescription').value}}</i>
|
|
|
|
|
</h5>
|
|
|
|
|
<mat-form-field *ngSwitchCase="datasetProfileFieldViewStyleEnum.FreeText" class="col-12">
|
|
|
|
|
<input matInput [formControl]="form.get('value')" placeholder="{{form.get('data').value.label}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<input matInput [formControl]="form.get('value')" placeholder="{{(form.get('data').value.label) + (form.get('validationRequired').value? ' *': '')}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<mat-error *ngIf="form.get('value')['errors'] && form.get('value')['errors']['required']">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
|
@ -18,12 +18,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === datasetProfileComboBoxTypeEnum.Autocomplete">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '')}}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '')}}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -32,7 +32,7 @@
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field *ngIf="form.get('data').value.type === datasetProfileComboBoxTypeEnum.WordList" class="col-md-12">
|
|
|
|
|
<mat-select [formControl]="form.get('value')" placeholder="{{ form.get('data').value.label | translate }}" [required]="form.get('validationRequired').value" [multiple]="form.get('data').value.multiList">
|
|
|
|
|
<mat-select [formControl]="form.get('value')" placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [required]="form.get('validationRequired').value" [multiple]="form.get('data').value.multiList">
|
|
|
|
|
<mat-option *ngFor="let opt of form.get('data').value.options" [value]="opt.value">{{opt.label}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
@ -46,12 +46,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Researchers">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -61,12 +61,12 @@
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Datasets">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -76,12 +76,12 @@
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="form.get('data').value.type === this.datasetProfileInternalDmpEntitiesTypeEnum.Dmps">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="multipleAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="singleAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -99,7 +99,7 @@
|
|
|
|
|
|
|
|
|
|
<mat-form-field *ngSwitchCase="datasetProfileFieldViewStyleEnum.TextArea" class="col-12">
|
|
|
|
|
<textarea matInput class="text-area" [formControl]="form.get('value')" matTextareaAutosize matAutosizeMinRows="1" matAutosizeMaxRows="15" [required]="form.get('validationRequired').value"
|
|
|
|
|
placeholder="{{ form.get('data').value.label | translate }}"></textarea>
|
|
|
|
|
placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}"></textarea>
|
|
|
|
|
<!-- <textarea matInput class="text-area" [formControl]="form.get('value')" matTextareaAutosize matAutosizeMinRows="2" matAutosizeMaxRows="10" [required]="form.get('validationRequired').value"
|
|
|
|
|
placeholder="{{ form.get('data').value.label | translate }}"></textarea> -->
|
|
|
|
|
<button mat-icon-button *ngIf="!form.get('value').disabled && form.get('value').value" matSuffix aria-label="Clear" (click)="this.form.patchValue({'value': ''})">
|
|
|
|
@ -115,6 +115,7 @@
|
|
|
|
|
</mat-radio-group>
|
|
|
|
|
<small class="text-danger d-block" *ngIf="form.get('value').hasError('required') && form.get('value').touched">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</small>
|
|
|
|
|
<small class="text-muted d-inline-block" *ngIf="(form.get('validationRequired').value) && !form.get('value').touched">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</small>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.RadioBox" class="col-12">
|
|
|
|
@ -123,10 +124,11 @@
|
|
|
|
|
</mat-radio-group>
|
|
|
|
|
<small class="text-danger d-block" *ngIf="form.get('value').hasError('required') && form.get('value').touched">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</small>
|
|
|
|
|
<small class="text-muted d-inline-block" *ngIf="(form.get('validationRequired').value) && !form.get('value').touched">{{'GENERAL.VALIDATION.REQUIRED' | translate}} *</small>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<mat-form-field *ngSwitchCase="datasetProfileFieldViewStyleEnum.DatePicker" class="col-12">
|
|
|
|
|
<input matInput placeholder="{{ form.get('data').value.label | translate }}" class="table-input" [matDatepicker]="date" [required]="form.get('validationRequired').value"
|
|
|
|
|
<input matInput placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" class="table-input" [matDatepicker]="date" [required]="form.get('validationRequired').value"
|
|
|
|
|
[formControl]="form.get('value')">
|
|
|
|
|
<mat-datepicker-toggle matSuffix [for]="date"></mat-datepicker-toggle>
|
|
|
|
|
<mat-datepicker #date></mat-datepicker>
|
|
|
|
@ -139,12 +141,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<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 placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="externalDatasetAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="externalDatasetAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -159,12 +161,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<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 placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="dataRepositoriesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="dataRepositoriesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -179,12 +181,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="registriesAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="registriesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -199,12 +201,12 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="servicesAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="servicesAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -218,7 +220,7 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.Tags" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<app-multiple-auto-complete [configuration]="tagsAutoCompleteConfiguration" [formControl]="form.get('value')" placeholder="{{'DATASET-EDITOR.FIELDS.TAGS' | translate}}"></app-multiple-auto-complete>
|
|
|
|
|
<app-multiple-auto-complete [configuration]="tagsAutoCompleteConfiguration" [formControl]="form.get('value')" placeholder="{{('DATASET-EDITOR.FIELDS.TAGS' | translate) + (form.get('validationRequired').value? ' *': '')}}"></app-multiple-auto-complete>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -231,12 +233,12 @@
|
|
|
|
|
</app-multiple-auto-complete> -->
|
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="researchersAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="researchersAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
</ng-container>
|
|
|
|
@ -256,12 +258,12 @@
|
|
|
|
|
<mat-hint>{{ "TYPES.DATASET-PROFILE-COMBO-BOX-TYPE.EXTERNAL-SOURCE-HINT" | translate }}</mat-hint> -->
|
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="form.get('data').value.multiAutoComplete">
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-multiple-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="organisationsAutoCompleteConfiguration">
|
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
|
</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')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="organisationsAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
@ -276,12 +278,12 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.DatasetIdentifier" class="col-12">
|
|
|
|
|
<div class="row" *ngIf="datasetIdInitialized">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<input matInput class="col-md-12" [formControl]="getDatasetIdControl('identifier')" placeholder="{{form.get('data').value.label}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<input matInput class="col-md-12" [formControl]="getDatasetIdControl('identifier')" placeholder="{{(form.get('data').value.label) + (form.get('validationRequired').value? ' *': '')}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<mat-select class="col-md-12" [formControl]="getDatasetIdControl('type')" [placeholder]="'TYPES.DATASET-PROFILE-IDENTIFIER.IDENTIFIER-TYPE' | translate">
|
|
|
|
|
<mat-select class="col-md-12" [formControl]="getDatasetIdControl('type')" [placeholder]="('TYPES.DATASET-PROFILE-IDENTIFIER.IDENTIFIER-TYPE' | translate) + (form.get('validationRequired').value? ' *': '')">
|
|
|
|
|
<mat-option *ngFor="let type of datasetIdTypes" [value]="type.value">
|
|
|
|
|
{{ type.name }}
|
|
|
|
|
</mat-option>
|
|
|
|
@ -295,7 +297,7 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.Currency" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-12">
|
|
|
|
|
<app-single-auto-complete placeholder="{{ form.get('data').value.label | translate }}" [formControl]="form.get('value')"
|
|
|
|
|
<app-single-auto-complete placeholder="{{ (form.get('data').value.label | translate) + (form.get('validationRequired').value? ' *': '') }}" [formControl]="form.get('value')"
|
|
|
|
|
[configuration]="currencyAutoCompleteConfiguration" [required]="form.get('validationRequired').value">
|
|
|
|
|
</app-single-auto-complete>
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
@ -307,12 +309,12 @@
|
|
|
|
|
<div *ngSwitchCase="datasetProfileFieldViewStyleEnum.Validation" class="col-12">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<mat-form-field class="col-md-4">
|
|
|
|
|
<input matInput class="col-md-12" [formControl]="getDatasetIdControl('identifier')" placeholder="{{form.get('data').value.label}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<input matInput class="col-md-12" [formControl]="getDatasetIdControl('identifier')" placeholder="{{(form.get('data').value.label) + (form.get('validationRequired').value? ' *': '')}}" [required]="form.get('validationRequired').value">
|
|
|
|
|
<mat-error *ngIf="form.get('value').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="col-md-4">
|
|
|
|
|
<mat-select class="col-md-12" [formControl]="getDatasetIdControl('type')" [placeholder]="'TYPES.DATASET-PROFILE-VALIDATOR.REPOSITORIES-PLACEHOLDER' | translate">
|
|
|
|
|
<mat-select class="col-md-12" [formControl]="getDatasetIdControl('type')" [placeholder]="('TYPES.DATASET-PROFILE-VALIDATOR.REPOSITORIES-PLACEHOLDER' | translate) + (form.get('validationRequired').value? ' *': '')">
|
|
|
|
|
<mat-option *ngFor="let type of validationTypes" [value]="type.value">
|
|
|
|
|
{{ type.name }}
|
|
|
|
|
</mat-option>
|
|
|
|
|