/** * @license * Copyright Datorama. All Rights Reserved. * * Use of this source code is governed by an Apache License 2.0 license that can be * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE */ import { ComponentFactoryResolver, ElementRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core'; import { ControlContainer, NgControl } from '@angular/forms'; import { DatoControlErrorContainerDirective } from './control-error-container.directive'; import { DatoFormSubmitDirective } from './form-submit.directive'; import { HashMap } from '@datorama/akita'; export declare class DatoControlErrorsDirective implements OnInit, OnDestroy { private vcr; private resolver; private host; private errors; private form; private ngControl; private parentControl; customErrors: HashMap; datoControlErrorsClass: string | undefined; datoControlErrorsTpl: TemplateRef | undefined; datoControlErrorsOnBlur: boolean; private ref; private container; private submit$; private control; constructor(vcr: ViewContainerRef, resolver: ComponentFactoryResolver, host: ElementRef, errors: any, controlErrorContainer: DatoControlErrorContainerDirective, form: DatoFormSubmitDirective, ngControl: NgControl, parentControl: ControlContainer); ngOnInit(): void; setError(text: string, error?: HashMap): void; ngOnDestroy(): void; private valueChanges; /** * Support form control, array and group */ private resolveControl; }