2022-09-12 07:13:52 +00:00
|
|
|
const TriStateCheckboxProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'modelValue',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Value of the component.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'disabled',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When present, it specifies that the component should be disabled.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'tabindex',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Index of the element in tabbing order.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'inputId',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Identifier of the underlying input element.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'inputProps',
|
|
|
|
type: 'object',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'aria-labelledby',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Establishes relationships between the component and label(s) where its value should be one or more element IDs.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'aria-label',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Used to define a string that labels the element.'
|
2023-05-08 12:18:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-04-04 12:42:13 +00:00
|
|
|
const TriStateCheckboxSlots = [
|
|
|
|
{
|
|
|
|
name: 'checkicon',
|
|
|
|
description: 'Custom check icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'uncheckicon',
|
|
|
|
description: 'Custom uncheck icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'nullableicon',
|
|
|
|
description: 'Custom nullable icon template.'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-09-12 07:13:52 +00:00
|
|
|
module.exports = {
|
|
|
|
tristatecheckbox: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'TriStateCheckbox',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: 'TriStateCheckbox is used to select either "true", "false" or "null" as the value.',
|
2023-04-04 12:42:13 +00:00
|
|
|
props: TriStateCheckboxProps,
|
|
|
|
slots: TriStateCheckboxSlots
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
};
|