UNPKG

@engr-lukman/vue-secure-pin

Version:

A secure PIN input component for Vue.js applications with virtual keyboard and PIN masking, designed for financial applications

68 lines (67 loc) 2.14 kB
import { PinEventPayload } from '../index'; /** * Component props definition */ interface SecurePinProps { maxLength?: number; isError?: boolean; errorMessage?: string; placeholder?: string; isEnableShuffle?: boolean; showKeyboard?: boolean; title?: string; clearLabel?: string; } declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SecurePinProps>, { maxLength: number; isError: boolean; errorMessage: string; placeholder: string; isEnableShuffle: boolean; showKeyboard: boolean; title: string; clearLabel: string; }>>, { clearHandler: () => void; toggleKeyboard: () => void; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { callbackEvent: (payload: PinEventPayload) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SecurePinProps>, { maxLength: number; isError: boolean; errorMessage: string; placeholder: string; isEnableShuffle: boolean; showKeyboard: boolean; title: string; clearLabel: string; }>>> & Readonly<{ onCallbackEvent?: ((payload: PinEventPayload) => any) | undefined; }>, { isEnableShuffle: boolean; title: string; clearLabel: string; maxLength: number; isError: boolean; errorMessage: string; placeholder: string; showKeyboard: boolean; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};