Skip to content

Commit

Permalink
Merge pull request #15102 from primefaces/inputotp
Browse files Browse the repository at this point in the history
Inputotp
  • Loading branch information
cetincakiroglu authored Mar 20, 2024
2 parents 654e27e + a2728e2 commit 9dcaf80
Show file tree
Hide file tree
Showing 21 changed files with 1,135 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/inputotp/inputotp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@layer primeng {

}
65 changes: 65 additions & 0 deletions src/app/components/inputotp/inputotp.interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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;
}
Loading

0 comments on commit 9dcaf80

Please sign in to comment.