2022-09-12 07:13:52 +00:00
|
|
|
const PanelProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'header',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Header text of the panel.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'toggleable',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Defines if content of panel can be expanded and collapsed.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'collapsed',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Defines the initial state of panel content.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'toggleButtonProps',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass the custom value to read for the anchor inside the component.'
|
2023-03-24 12:37:26 +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
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const PanelEvents = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'toggle',
|
|
|
|
description: 'Callback to invoke when a tab toggle.',
|
2022-09-12 07:13:52 +00:00
|
|
|
arguments: [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'event.originalEvent',
|
|
|
|
type: 'object',
|
|
|
|
description: 'Browser event'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'event.value',
|
|
|
|
type: 'boolean',
|
|
|
|
description: 'collapsed state as a boolean'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const PanelSlots = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'header',
|
2023-03-31 13:42:19 +00:00
|
|
|
description: "Custom content for the component's header."
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'icons',
|
2023-03-31 13:42:19 +00:00
|
|
|
description: "Custom content for the header's icon."
|
2023-03-24 12:37:26 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'headericon',
|
2023-03-31 13:42:19 +00:00
|
|
|
description: "Custom content for the component's header icon."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'fooetr',
|
|
|
|
description: "Custom content for the component's footer."
|
2023-03-31 13:43:48 +00:00
|
|
|
}
|
2022-09-12 07:13:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
panel: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'Panel',
|
|
|
|
description: 'Panel is a container with the optional content toggle feature.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: PanelProps,
|
|
|
|
events: PanelEvents,
|
|
|
|
slots: PanelSlots
|
|
|
|
}
|
|
|
|
};
|