import { ChangeDetectorRef, OnDestroy } from '@angular/core'; import { FormControl } from '@angular/forms'; import { TsValidationMessagesService } from './validation-messages.service'; /** * A presentational component to render validation messages * NOTE: ChangeDetectionStrategy.OnPush is disabled here because it affects control getting to this service on the first change cycle. * * @example * * * https://getterminus.github.io/ui-demos-release/components/validation */ export declare class TsValidationMessagesComponent implements OnDestroy { private validationMessageService; private changeDetectorRef; /** * Define the default component ID */ protected uid: string; /** * Define the error message * * @returns The error message or null if no error */ get validationMessage(): string | null | undefined; /** * Define the associated form control * * @param value */ set control(value: FormControl | undefined); get control(): FormControl | undefined; private _control; /** * Define an ID for the component * * @param value */ set id(value: string); get id(): string; protected _id: string; /** * Define if validation should occur on blur or immediately */ validateOnChange: boolean; /** * Define if the validation should be immediate */ validateImmediately: boolean; constructor(validationMessageService: TsValidationMessagesService, changeDetectorRef: ChangeDetectorRef); /** * Needed for untilComponentDestroyed */ ngOnDestroy(): void; }