2022-09-12 07:13:52 +00:00
|
|
|
const InputMaskProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'modelValue',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Value of the component.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'mask',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Mask pattern.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'slotChar',
|
|
|
|
type: 'string',
|
|
|
|
default: '-',
|
|
|
|
description: 'Placeholder character in mask, default is underscore.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'autoClear',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Clears the incomplete value on blur.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'unmask',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'Defines if model sets the raw unmasked value to bound value or the formatted mask value.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
inputmask: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'InputMask',
|
|
|
|
description: 'InputMask component is used to enter input in a certain format such as numeric, date, currency, email and phone.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: InputMaskProps
|
|
|
|
}
|
|
|
|
};
|