kwikui
Version:
KwikID's UI Component Library in Angular
76 lines (75 loc) • 2.88 kB
TypeScript
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
import { Subscription } from "rxjs";
import * as i0 from "@angular/core";
export declare class KwikUIInputOtpComponent implements OnInit, OnChanges, ControlValueAccessor {
disabled: boolean;
focus: boolean;
formControl: FormControl;
formControlName: string;
id: string;
invalid: boolean;
label: string;
mask: string;
mode: "single" | "multiple";
otpLength: number;
placeholder: string;
postfix: string;
prefix: string;
properties: {
readOnly: boolean;
hidePlaceholder: boolean;
};
size: "s" | "m" | "l";
validators: {
required: boolean;
};
getKeyValue: EventEmitter<any>;
formGroup: FormGroup;
otpMultipleConfig: {
allowKeyCodes: any[];
allowNumbersOnly: boolean;
containerClass: string;
containerStyles: {};
disableAutoFocus: boolean;
inputClass: string;
inputStyles: {};
isPasswordInput: boolean;
length: number;
placeholder: string;
size: "s" | "m" | "l";
};
subscriptions: Subscription;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
/**
* @description Handles updating the config object with the latest values for multiple mode
*/
setConfigProperties(): void;
/**
* @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 Handles firing of 2 events on (keyup) event
*
* @param value
*/
handleInputValueChange(value: any): void;
handleInputValueChangeMultiple(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<KwikUIInputOtpComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputOtpComponent, "kwikui-input-otp", never, { "disabled": "disabled"; "focus": "focus"; "formControl": "formControl"; "formControlName": "formControlName"; "id": "id"; "invalid": "invalid"; "label": "label"; "mask": "mask"; "mode": "mode"; "otpLength": "otpLength"; "placeholder": "placeholder"; "postfix": "postfix"; "prefix": "prefix"; "properties": "properties"; "size": "size"; "validators": "validators"; }, { "getKeyValue": "getKeyValue"; }, never, never>;
}