mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Refactor #4209 - For InputMask
This commit is contained in:
parent
38bd2712e9
commit
ea6bd0fb3a
2 changed files with 38 additions and 2 deletions
30
components/lib/inputmask/InputMask.d.ts
vendored
30
components/lib/inputmask/InputMask.d.ts
vendored
|
@ -10,7 +10,16 @@
|
|||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
|
||||
export declare type InputMaskPassThroughOptionType = InputMaskPassThroughAttributes | null | undefined;
|
||||
export declare type InputMaskPassThroughOptionType = InputMaskPassThroughAttributes | ((options: InputMaskPassThroughMethodOptions) => InputMaskPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface InputMaskPassThroughMethodOptions {
|
||||
instance: any;
|
||||
props: InputMaskProps;
|
||||
context: InputMaskContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) options.
|
||||
|
@ -35,6 +44,22 @@ export interface InputMaskPassThroughAttributes {
|
|||
[key: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines current options in InputMask component.
|
||||
*/
|
||||
export interface InputMaskContext {
|
||||
/**
|
||||
* Current filled state of the component as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
filled: boolean;
|
||||
/**
|
||||
* Current disabled state of the component as a boolean.
|
||||
* @defaultValue false
|
||||
*/
|
||||
disabled: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid properties in InputMask component.
|
||||
*/
|
||||
|
@ -79,6 +104,9 @@ export interface InputMaskProps {
|
|||
unstyled?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines valid slots in InputMask component.
|
||||
*/
|
||||
export interface InputMaskSlots {}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue