UNPKG

@vismaux/ngx-nordic-cool

Version:
39 lines (38 loc) 1.8 kB
import { Overlay } from '@angular/cdk/overlay'; import { ElementRef, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { ControlContainer, FormControl, NgControl, NgForm } from '@angular/forms'; import { NcTooltipDirective } from '../tooltip'; import { NcErrorsComponent } from './error-messages'; import * as i0 from "@angular/core"; export declare class NcErrorTooltipDirective extends NcTooltipDirective implements OnInit, OnChanges { private implicitNgControl?; private ngForm?; private controlContainer?; private inFocus; private formSubmitted; private contentInstance; private _errorMessages; private errorMessagesSub; hasError: boolean; readonly errorMessageId: string; errorMessages: NcErrorsComponent | string; explicitNgControl?: NgControl | FormControl; customErrors?: { [key: string]: any; } | null; constructor(elRef: ElementRef<HTMLElement>, overlay: Overlay, ngZone: NgZone, implicitNgControl?: NgControl, ngForm?: NgForm, controlContainer?: ControlContainer); ngOnInit(): void; ngDoCheck(): void; ngOnChanges(changes: SimpleChanges): void; onFocus(): void; onBlur(): void; hide(): void; private get ngControl(); private get formContainer(); private checkTooltipState; private createContentInstance; private updateErrorMessages; private getErrors; static ɵfac: i0.ɵɵFactoryDeclaration<NcErrorTooltipDirective, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration<NcErrorTooltipDirective, "[ncErrorTooltip]", ["ncErrorTooltip"], { "errorMessages": "ncErrorTooltip"; "explicitNgControl": "ncErrorTooltipControl"; "customErrors": "ncErrorTooltipCustom"; }, {}, never>; }