UNPKG

kwikui

Version:

KwikID's UI Component Library in Angular

40 lines (39 loc) 1.72 kB
import { AfterViewInit, EventEmitter, OnInit, SimpleChanges } from "@angular/core"; import { FormControl, FormGroup } from "@angular/forms"; import { Config } from "./input-otp-multiple.config"; import { KeysPipe } from "./input-otp-multiple.pipe"; import * as i0 from "@angular/core"; export declare class KwikUIInputOtpMultipleComponent implements OnInit, AfterViewInit { private keysPipe; config: Config; disabled: boolean | null; formCtrl: FormControl; invalid: boolean | null; readOnly: boolean | null; onInputChange: EventEmitter<string>; otpForm: FormGroup; currentVal: string; inputControls: FormControl[]; componentKey: string; get inputType(): "password" | "text" | "tel"; constructor(keysPipe: KeysPipe); ngOnInit(): void; updateValue(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; private getControlName; disableInputs(): void; onKeyDown($event: any, inputIdx: any): boolean; onInput($event: any): void; onKeyUp($event: any, inputIdx: any): void; validateNumber(val: any): boolean; appendKey(id: any): string; setSelected(eleId: any): void; ifValidKeyCode(event: any): boolean; focusTo(eleId: any): void; setValue(value: any): void; rebuildValue(): void; handlePaste(e: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<KwikUIInputOtpMultipleComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<KwikUIInputOtpMultipleComponent, "kwikui-input-otp-multiple", never, { "config": "config"; "disabled": "disabled"; "formCtrl": "formCtrl"; "invalid": "invalid"; "readOnly": "readOnly"; }, { "onInputChange": "onInputChange"; }, never, never>; }