UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

64 lines (63 loc) 2.55 kB
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms"; import { Subscription } from "rxjs"; import { TKwikUIInputCase, TKwikUIInputSize, TKwikUIInputType } from "./input.definitions"; import * as i0 from "@angular/core"; export declare class KwikUIInputComponent implements OnInit, OnChanges, ControlValueAccessor { case: TKwikUIInputCase; disabled: boolean; focus: boolean; formControl: FormControl; formControlName: string; hintContent: string; icon: string; id: string; invalid: boolean; label: string; placeholder: string; postfix: string; prefix: string; properties: { readOnly: boolean; }; size: TKwikUIInputSize; type: TKwikUIInputType; validators: { required: boolean; }; getKeyValue: EventEmitter<any>; formGroup: FormGroup; subscriptions: Subscription; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; private validateInputProperty; /** * @description Handles setting up of error and focus on the input field is it is invalid */ setDisabled(): void; /** * @description Handles setting up of error and focus on the input field is it is invalid */ setError(): void; /** * @description Handle changing of case based on 'case' props */ changeCase(): void; /** * @description Handles firing of 2 events on (keyup) event * * @param value */ handleInputValueChange(value: any): void; handleFocusedChange(e: any): void; emitEvent(event: any, data: any): void; /** Method Implementations for Abstract Control */ writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration<KwikUIInputComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputComponent, "kwikui-input", never, { "case": "case"; "disabled": "disabled"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "hintContent": "hintContent"; "icon": "icon"; "id": "id"; "invalid": "invalid"; "label": "label"; "placeholder": "placeholder"; "postfix": "postfix"; "prefix": "prefix"; "properties": "properties"; "size": "size"; "type": "type"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>; }