import { Injector, OnInit } from '@angular/core'; import { ControlValueAccessor, FormBuilder, FormControl, Validators } from '@angular/forms'; import { ActionStateService, CoreI18nService, CoreService } from '../../../services'; import { DomSanitizer } from "@angular/platform-browser"; import { ToastrService } from "ngx-toastr"; import { ErrorMsg } from './validation-errors/validation-error-messages'; import * as i0 from "@angular/core"; export declare class ControlValueAccessorDirective implements ControlValueAccessor, OnInit { private readonly injector; i18n: CoreI18nService; toasterService: ToastrService; coreService: CoreService; sanitizer: DomSanitizer; fb: FormBuilder; actionStateService: ActionStateService; tooltip: any; isReadOnly: boolean; hint: string; loading: boolean; placeholder: string; type: string; showErrorMessage: string; showHint: string; showIfEmpty: string; insideTable: any; mask: any; label: string; matSuffix: boolean; hasTooltip: boolean; name: string; randomID: string; multiple: boolean; customErrorMessages: Record; searchControl: FormControl; toggleButtonControl: FormControl; employeeSearchControl: FormControl; telephoneControl: FormControl; attachments: any[]; startDateControl: FormControl; endDateControl: FormControl; Validators: typeof Validators; minDateValue: any; maxDateValue: any; maxDate: 'today' | 'oneYear'; datepickerObj: any; minDate: 'today'; customMaxDate: string; customMinDate: string; value: any; control: FormControl | undefined; required: boolean; mandatory: boolean; isDisabled: boolean; onChangeFn: (val: Type | null) => void; onTouchedFn: () => void; constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder, actionStateService: ActionStateService); ngOnInit(): void; setFormControl(): void; setFormValidators(): void; writeValue(value: Type): void; registerOnChange(fn: (val: Type | null) => void): void; registerOnTouched(fn: () => void): void; setDisabledState?(isDisabled: boolean): void; setValue(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "[appControlValueAccessor]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "label": { "alias": "label"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "name": { "alias": "name"; "required": false; }; "randomID": { "alias": "randomID"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; }, {}, never, never, true, never>; }