Icard/angular-clarity-master(work.../node_modules/primeng/inputotp/inputotp.interface.d.ts

66 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
import { TemplateRef } from '@angular/core';
/**
* Defines the custom events used by the component's emit.
* @group Events
*/
export interface InputOtpTemplateEvents {
/**
* Input event.
*/
input: Function;
/**
* Keydown event.
*/
keydown: Function;
/**
* Focus event.
*/
focus: Function;
/**
* Blur event.
*/
blur: Function;
/**
* Paste event.
*/
paste: Function;
}
/**
* Defines valid templates in InputOtp.
* @group Templates
*/
export interface InputOtpTemplates {
/**
* Custom template of input.
* @param {Object} context
*/
input(context: {
/**
* Input value.
*/
$implicit: any;
/**
* Events of the component
*/
events: InputOtpTemplateEvents;
}): TemplateRef<{
$implicit: any;
events: InputOtpTemplateEvents;
}>;
}
/**
* Custom change event.
* @see {@link InputOtp.onChange}
* @group Events
*/
export interface InputOtpChangeEvent {
/**
* Browser event.
*/
originalEvent: Event;
/**
* Selected value.
*/
value: any;
}