UNPKG

@ui-tool/core

Version:
25 lines 1.68 kB
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core'; import { AbstractControl, NgControl } from '@angular/forms'; import { Subscription } from 'rxjs'; import { IValidationSummarizerService } from '../../../../services/interfaces/validation-summarizers/validation-summarizer-service.interface'; import * as i0 from "@angular/core"; export declare abstract class ValidatorClassBase implements OnInit, OnDestroy { protected readonly _validationSummarizerService: IValidationSummarizerService; protected readonly _changeDetectorRef: ChangeDetectorRef; protected readonly _elementRef: ElementRef; protected _control: AbstractControl | NgControl | null; protected _visibilityHandler: ((ngControl: AbstractControl | NgControl) => boolean | null); protected _hookStatusChangesSubscription: Subscription | undefined; protected _classes: string[]; set classes(value: string[] | string | null); set visibilityHandler(value: ((ngControl: AbstractControl | NgControl) => boolean | null)); protected constructor(_validationSummarizerService: IValidationSummarizerService, _changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; protected buildElementClasses(control: AbstractControl | NgControl | null): void; protected ableToDisplayValidationMessages(ngControl: AbstractControl | NgControl | null): boolean; protected abstract getValidationClasses(): string[]; static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorClassBase, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ValidatorClassBase>; } //# sourceMappingURL=validator-class-base.d.ts.map