UNPKG

chi-app-lib

Version:

This is a custom component (input dropdown grid textarea map captcha) published to npm.

45 lines (44 loc) 1.55 kB
import { OnInit, EventEmitter, SimpleChanges, OnChanges } from '@angular/core'; import { FormControl, ControlValueAccessor, FormGroupDirective, NgForm } from '@angular/forms'; import { ErrorStateMatcher } from '@angular/material'; /** Error when invalid control is dirty or touched*/ export declare class TextAreaErrorStateMatcher implements ErrorStateMatcher { isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean; } export declare const Text_Area_Component_CONTROL_VALUE_ACCESSOR: any; export declare class TextAreaComponent implements OnInit, ControlValueAccessor, OnChanges { type: string; direction: string; pattern: string; className: any; readonly: any; required: any; placeHolder: any; hintText: any; minLength: any; maxLength: any; showCountValue: any; isDirty: any; showValidatorMessage: boolean; isValid: EventEmitter<boolean>; name: any; matcher: TextAreaErrorStateMatcher; id: string; element: FormControl; private innerValue; private onTouchedCallback; private onChangeCallback; value: any; onBlur(validate: any): void; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; changedInput(event: any, validate: any): void; onFocused(validate: any): void; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; getErrorMessage(): string; getElement(val: any): void; idGenerator(): string; }