@crediblefinance/credible-ui
Version:
Credible's standard UI library
32 lines (31 loc) • 1.42 kB
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import * as i0 from "@angular/core";
export declare class CfOtpComponent implements OnInit {
length: number;
changed: EventEmitter<string>;
label: string;
showLabel: boolean;
prefillCode: string;
theme: string;
numbers: number[];
otp: string[];
focus: boolean[];
allowedKeys: Set<string>;
currentIndex: number;
width: any;
window: Window;
platform: string;
document: Document;
constructor();
onResize(event: any): void;
getInputId(index: number): string;
ngOnInit(): void;
prefillOtp(text: string, index?: number): void;
handleKeyDown(event: KeyboardEvent, index: number): boolean;
handleKeyUp(event: KeyboardEvent, index: number): void;
handlePaste(event: ClipboardEvent, index: number): void;
changeInputFocus(): void;
setOtpArray(index: number, value: string | undefined): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CfOtpComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CfOtpComponent, "cf-otp", never, { "length": { "alias": "length"; "required": false; }; "label": { "alias": "label"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "prefillCode": { "alias": "prefillCode"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
}