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.'
|
2023-05-05 11:08:41 +00:00
|
|
|
},
|
2024-01-31 08:01:02 +00:00
|
|
|
{
|
|
|
|
name: 'invalid',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When present, it specifies that the component should have invalid state style.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'variant',
|
|
|
|
type: 'string',
|
|
|
|
default: 'outlined',
|
|
|
|
description: 'Specifies the input variant of the component.'
|
|
|
|
},
|
2023-05-05 11:08:41 +00:00
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
2023-08-01 14:01:12 +00:00
|
|
|
description: 'Used to pass attributes to DOM elements inside the component.'
|
2023-07-06 13:20:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'unstyled',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When enabled, it removes component related styles in the core.'
|
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
|
|
|
|
}
|
|
|
|
};
|