import { EventEmitter } from '@angular/core'; import { AbstractControl, AsyncValidatorFn, FormGroup, ValidatorFn } from '@angular/forms'; export declare class TagInputForm { /** * @name onSubmit * @type {EventEmitter} */ onSubmit: EventEmitter; /** * @name onBlur * @type {EventEmitter} */ onBlur: EventEmitter; /** * @name onFocus * @type {EventEmitter} */ onFocus: EventEmitter; /** * @name onKeyup * @type {EventEmitter} */ onKeyup: EventEmitter; /** * @name onKeydown * @type {EventEmitter} */ onKeydown: EventEmitter; /** * @name placeholder * @type {string} */ placeholder: string; /** * @name validators * @type {ValidatorFn[]} */ validators: ValidatorFn[]; /** * @name asyncValidators * @desc array of AsyncValidator that are used to validate the tag before it gets appended to the list * @type {Array} */ asyncValidators: AsyncValidatorFn[]; /** * @name inputId * @type {string} */ inputId: string; /** * @name inputClass * @type {string} */ inputClass: string; /** * @name inputText */ /** * @name inputText * @param text {string} */ inputText: string; /** * @name tabindex * @desc pass through the specified tabindex to the input * @type {string} */ tabindex: string; /** * @name disabled */ disabled: boolean; /** * @name input */ input: any; /** * @name form */ form: FormGroup; /** * @name inputTextChange * @type {EventEmitter} */ inputTextChange: EventEmitter; /** * @name inputTextValue */ inputTextValue: string; ngOnInit(): void; /** * @name value * @returns {AbstractControl} */ readonly value: AbstractControl | null; /** * @name isInputFocused * @returns {boolean} */ isInputFocused(): boolean; /** * @name getErrorMessages * @param messages * @returns {string[]} */ getErrorMessages(messages: any): string[]; /** * @name hasErrors * @returns {boolean} */ hasErrors(): boolean; /** * @name focus */ focus(): void; /** * @name blur */ blur(): void; /** * @name getElementPosition * @returns {ClientRect} */ getElementPosition(): ClientRect; /** * - removes input from the component * @name destroy */ destroy(): void; /** * @name onKeyDown * @param $event */ onKeyDown($event: any): void; /** * @name submit */ submit($event: any): void; }