InputMask InputSwitch d.ts updated
parent
98b96d0aef
commit
bb87624e48
|
@ -1,5 +1,17 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* InputMask groups a collection of contents in tabs.
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/inputmask/)
|
||||||
|
*
|
||||||
|
* @module inputmask
|
||||||
|
*
|
||||||
|
*/
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines valid properties in InputMask component.
|
||||||
|
*/
|
||||||
export interface InputMaskProps {
|
export interface InputMaskProps {
|
||||||
/**
|
/**
|
||||||
* Value of the component.
|
* Value of the component.
|
||||||
|
@ -7,7 +19,7 @@ export interface InputMaskProps {
|
||||||
modelValue?: string | undefined;
|
modelValue?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Placeholder character in mask, default is underscore.
|
* Placeholder character in mask, default is underscore.
|
||||||
* Default value is '_'.
|
* @defaultValue _
|
||||||
*/
|
*/
|
||||||
slotChar?: string | undefined;
|
slotChar?: string | undefined;
|
||||||
/**
|
/**
|
||||||
|
@ -16,35 +28,44 @@ export interface InputMaskProps {
|
||||||
mask?: string | undefined;
|
mask?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Clears the incomplete value on blur.
|
* Clears the incomplete value on blur.
|
||||||
* Default value is true.
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
autoClear?: boolean | undefined;
|
autoClear?: boolean | undefined;
|
||||||
/**
|
/**
|
||||||
* Defines if model sets the raw unmasked value to bound value or the formatted mask value.
|
* Defines if model sets the raw unmasked value to bound value or the formatted mask value.
|
||||||
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
unmask?: boolean | undefined;
|
unmask?: boolean | undefined;
|
||||||
|
/**
|
||||||
|
* Whether the items are clickable or not.
|
||||||
|
* @defaultValue false
|
||||||
|
*/
|
||||||
|
readonly?: boolean | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface InputMaskSlots {}
|
export interface InputMaskSlots {}
|
||||||
|
|
||||||
export declare type InputMaskEmits = {
|
/**
|
||||||
|
* Defines valid emits in InputMask component.
|
||||||
|
*/
|
||||||
|
export interface InputMaskEmits {
|
||||||
/**
|
/**
|
||||||
* Emitted when the value changes.
|
* Emitted when the value changes.
|
||||||
* @param {string} value - New value.
|
* @param {string} value - New value.
|
||||||
*/
|
*/
|
||||||
'update:modelValue': (value: string) => void;
|
'update:modelValue'(value: string): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke when the component receives focus.
|
* Callback to invoke when the component receives focus.
|
||||||
*/
|
*/
|
||||||
focus: (event: Event) => void;
|
focus(event: Event): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke when the component loses focus.
|
* Callback to invoke when the component loses focus.
|
||||||
*/
|
*/
|
||||||
blur: (event: Event) => void;
|
blur(event: Event): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke when a key is pressed.
|
* Callback to invoke when a key is pressed.
|
||||||
*/
|
*/
|
||||||
keydown: (event: Event) => void;
|
keydown(event: Event): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke when a key that produces a character value is pressed down.
|
* Callback to invoke when a key that produces a character value is pressed down.
|
||||||
*/
|
*/
|
||||||
|
@ -57,8 +78,20 @@ export declare type InputMaskEmits = {
|
||||||
* Callback to invoke when the mask is completed.
|
* Callback to invoke when the mask is completed.
|
||||||
*/
|
*/
|
||||||
complete: (event: Event) => void;
|
complete: (event: Event) => void;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* **PrimeVue - InputMask**
|
||||||
|
*
|
||||||
|
* _InputMask groups a collection of contents in tabs._
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/inputmask/)
|
||||||
|
* --- ---
|
||||||
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
|
||||||
|
*
|
||||||
|
* @group Component
|
||||||
|
*
|
||||||
|
*/
|
||||||
declare class InputMask extends ClassComponent<InputMaskProps, InputMaskSlots, InputMaskEmits> {}
|
declare class InputMask extends ClassComponent<InputMaskProps, InputMaskSlots, InputMaskEmits> {}
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
|
@ -67,13 +100,4 @@ declare module '@vue/runtime-core' {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.
|
|
||||||
*
|
|
||||||
* Demos:
|
|
||||||
*
|
|
||||||
* - [InputMask](https://www.primefaces.org/primevue/inputmask)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export default InputMask;
|
export default InputMask;
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* InputSwitch groups a collection of contents in tabs.
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/inputswitch/)
|
||||||
|
*
|
||||||
|
* @module inputswitch
|
||||||
|
*
|
||||||
|
*/
|
||||||
import { InputHTMLAttributes } from 'vue';
|
import { InputHTMLAttributes } from 'vue';
|
||||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defines valid properties in InputSwitch component.
|
||||||
|
*/
|
||||||
export interface InputSwitchProps {
|
export interface InputSwitchProps {
|
||||||
/**
|
/**
|
||||||
* Specifies whether a inputswitch should be checked or not.
|
* Specifies whether a inputswitch should be checked or not.
|
||||||
|
@ -8,10 +20,12 @@ export interface InputSwitchProps {
|
||||||
modelValue?: boolean | string | undefined;
|
modelValue?: boolean | string | undefined;
|
||||||
/**
|
/**
|
||||||
* Value in checked state.
|
* Value in checked state.
|
||||||
|
* @defaultValue true
|
||||||
*/
|
*/
|
||||||
trueValue?: any;
|
trueValue?: any;
|
||||||
/**
|
/**
|
||||||
* Value in unchecked state.
|
* Value in unchecked state.
|
||||||
|
* @defaultValue false
|
||||||
*/
|
*/
|
||||||
falseValue?: any;
|
falseValue?: any;
|
||||||
/**
|
/**
|
||||||
|
@ -42,29 +56,44 @@ export interface InputSwitchProps {
|
||||||
|
|
||||||
export interface InputSwitchSlots {}
|
export interface InputSwitchSlots {}
|
||||||
|
|
||||||
export declare type InputSwitchEmits = {
|
/**
|
||||||
|
* Defines valid emits in InputSwitch component.
|
||||||
|
*/
|
||||||
|
export interface InputSwitchEmits {
|
||||||
/**
|
/**
|
||||||
* Emitted when the value changes.
|
* Emitted when the value changes.
|
||||||
* @param {boolean} value - New value.
|
* @param {boolean} value - New value.
|
||||||
*/
|
*/
|
||||||
'update:modelValue': (value: boolean) => void;
|
'update:modelValue'(value: boolean): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke on click.
|
* Callback to invoke on click.
|
||||||
* @param {Event} event - Browser event.
|
* @param {Event} event - Browser event.
|
||||||
*/
|
*/
|
||||||
click: (event: Event) => void;
|
click(event: Event): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke on value change.
|
* Callback to invoke on value change.
|
||||||
* @param {Event} event - Browser event.
|
* @param {Event} event - Browser event.
|
||||||
*/
|
*/
|
||||||
change: (event: Event) => void;
|
change(event: Event): void;
|
||||||
/**
|
/**
|
||||||
* Callback to invoke on value change.
|
* Callback to invoke on value change.
|
||||||
* @param {boolean} value - New value.
|
* @param {boolean} value - New value.
|
||||||
*/
|
*/
|
||||||
input: (value: boolean) => void;
|
input(value: boolean): void;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* **PrimeVue - InputSwitch**
|
||||||
|
*
|
||||||
|
* _InputSwitch groups a collection of contents in tabs._
|
||||||
|
*
|
||||||
|
* [Live Demo](https://www.primevue.org/inputswitch/)
|
||||||
|
* --- ---
|
||||||
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
|
||||||
|
*
|
||||||
|
* @group Component
|
||||||
|
*
|
||||||
|
*/
|
||||||
declare class InputSwitch extends ClassComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits> {}
|
declare class InputSwitch extends ClassComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits> {}
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
|
@ -73,13 +102,4 @@ declare module '@vue/runtime-core' {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* InputSwitch is used to select a boolean value.
|
|
||||||
*
|
|
||||||
* Demos:
|
|
||||||
*
|
|
||||||
* - [InputSwitch](https://www.primefaces.org/primevue/inputswitch)
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
export default InputSwitch;
|
export default InputSwitch;
|
||||||
|
|
Loading…
Reference in New Issue