import { ComponentFactoryResolver, ElementRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { ControlContainer, NgControl } from '@angular/forms';
import { ControlErrorAnchorDirective } from './control-error-anchor.directive';
import { ErrorTailorConfig } from './providers';
import { FormActionDirective } from './form-action.directive';
import { ErrorsMap } from './types';
import * as ɵngcc0 from '@angular/core';
export declare class ControlErrorsDirective implements OnInit, OnDestroy {
private vcr;
private resolver;
private host;
private config;
private globalErrors;
private controlErrorAnchorParent;
private form;
private ngControl;
private controlContainer;
customErrors: ErrorsMap;
controlErrorsClass: string | undefined;
controlErrorsTpl: TemplateRef<any> | undefined;
controlErrorsOnAsync: boolean;
controlErrorsOnBlur: boolean;
controlErrorAnchor: ControlErrorAnchorDirective;
private ref;
private anchor;
private submit$;
private reset$;
private control;
private destroy;
private mergedConfig;
private customAnchorDestroyFn;
constructor(vcr: ViewContainerRef, resolver: ComponentFactoryResolver, host: ElementRef, config: ErrorTailorConfig, globalErrors: any, controlErrorAnchorParent: ControlErrorAnchorDirective, form: FormActionDirective, ngControl: NgControl, controlContainer: ControlContainer);
ngOnInit(): void;
private setError;
ngOnDestroy(): void;
private get isInput();
private clearRefs;
private valueChanges;
private resolveAnchor;
private buildConfig;
static ɵfac: ɵngcc0.ɵɵFactoryDef<ControlErrorsDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<ControlErrorsDirective, "[formControlName]:not([controlErrorsIgnore]), [formControl]:not([controlErrorsIgnore]), [formGroup]:not([controlErrorsIgnore]), [formGroupName]:not([controlErrorsIgnore]), [formArrayName]:not([controlErrorsIgnore]), [ngModel]:not([controlErrorsIgnore])", never, { "customErrors": "controlErrors"; "controlErrorsOnAsync": "controlErrorsOnAsync"; "controlErrorsOnBlur": "controlErrorsOnBlur"; "controlErrorsClass": "controlErrorsClass"; "controlErrorsTpl": "controlErrorsTpl"; "controlErrorAnchor": "controlErrorAnchor"; }, {}, never>;
}
Angular version: 11.2.5
For Tooling issues:
- Node version: v14.16.0