30 lines
943 B
TypeScript
30 lines
943 B
TypeScript
import { Component, Input } from '@angular/core';
|
|
import { FormArray, FormControl } from '@angular/forms';
|
|
import { DatasetProfileFieldViewStyle } from '../../../../../../core/common/enum/dataset-profile-field-view-style';
|
|
import { DatasetProfileComboBoxType } from '../../../../../../core/common/enum/dataset-profile-combo-box-type';
|
|
|
|
@Component({
|
|
selector: 'app-dataset-profile-editor-rule-component',
|
|
templateUrl: './dataset-profile-editor-rule.component.html',
|
|
styleUrls: ['./dataset-profile-editor-rule.component.scss']
|
|
})
|
|
|
|
export class DatasetProfileEditorRuleComponent {
|
|
|
|
@Input() form: FormArray;
|
|
|
|
@Input() viewStyleForCheck: DatasetProfileFieldViewStyle;
|
|
@Input() formControlForCheck: FormControl;
|
|
@Input() formArrayOptionsForCheck: FormArray;
|
|
@Input() comboBoxTypeForCheck: DatasetProfileComboBoxType;
|
|
@Input() viewOnly: boolean;
|
|
|
|
targetValidation() {
|
|
//TODO
|
|
}
|
|
|
|
deleteRule(index) {
|
|
this.form.removeAt(index);
|
|
}
|
|
}
|