-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15102 from primefaces/inputotp
Inputotp
- Loading branch information
Showing
21 changed files
with
1,135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@layer primeng { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.