|
|
@ -27,7 +27,7 @@ import { |
|
|
Validator, |
|
|
Validator, |
|
|
Validators |
|
|
Validators |
|
|
} from '@angular/forms'; |
|
|
} from '@angular/forms'; |
|
|
import { Observable, of, Subject, Subscription } from 'rxjs'; |
|
|
import { Observable, of, Subject } from 'rxjs'; |
|
|
import { |
|
|
import { |
|
|
ComplexFilterPredicateInfo, |
|
|
ComplexFilterPredicateInfo, |
|
|
ComplexOperation, |
|
|
ComplexOperation, |
|
|
@ -81,11 +81,9 @@ export class FilterPredicateListComponent implements ControlValueAccessor, Valid |
|
|
|
|
|
|
|
|
complexOperationTranslations = complexOperationTranslationMap; |
|
|
complexOperationTranslations = complexOperationTranslationMap; |
|
|
|
|
|
|
|
|
private destroy$ = new Subject(); |
|
|
private destroy$ = new Subject<void>(); |
|
|
private propagateChange = null; |
|
|
private propagateChange = null; |
|
|
|
|
|
|
|
|
private valueChangeSubscription: Subscription = null; |
|
|
|
|
|
|
|
|
|
|
|
constructor(private fb: UntypedFormBuilder, |
|
|
constructor(private fb: UntypedFormBuilder, |
|
|
@Inject(COMPLEX_FILTER_PREDICATE_DIALOG_COMPONENT_TOKEN) private complexFilterPredicateDialogComponent: ComponentType<any>, |
|
|
@Inject(COMPLEX_FILTER_PREDICATE_DIALOG_COMPONENT_TOKEN) private complexFilterPredicateDialogComponent: ComponentType<any>, |
|
|
private dialog: MatDialog) { |
|
|
private dialog: MatDialog) { |
|
|
@ -151,7 +149,7 @@ export class FilterPredicateListComponent implements ControlValueAccessor, Valid |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public removePredicate(index: number) { |
|
|
public removePredicate(index: number) { |
|
|
(this.filterListFormGroup.get('predicates') as UntypedFormArray).removeAt(index); |
|
|
this.predicatesFormArray.removeAt(index); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public addPredicate(complex: boolean) { |
|
|
public addPredicate(complex: boolean) { |
|
|
|