UNPKG

gov-gui

Version:

Gov UI Component Library Typscript Build

36 lines (35 loc) 1.08 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { AnimationProps } from '../../global/animation-helpers'; export declare class GovInput implements AnimationProps { type: string; placeholder: string; value: string; label: string; legend: string; disabled: boolean; maxlength: number; validationPattern: RegExp; errorMessage: string; required: boolean; requiredErrorMessage: string; icon: string; valueChanged: EventEmitter<string>; validationChanged: EventEmitter<boolean>; isValid: boolean; isTouched: boolean; currentErrorMessage: string; animation?: string; animationDelay?: '2s' | '3s' | '4s' | '5s'; animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster'; private allClasses; watchAnimations(): void; watchAnimationsDelay(): void; watchAnimationsSpeed(): void; getValue(): Promise<string>; validate(): Promise<boolean>; componentWillLoad(): void; provideClass(): void; private validateValue; private handleInput; render(): any; }