2022-09-12 07:13:52 +00:00
|
|
|
const OverlayPanelProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'dismissable',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Enables to hide the overlay when outside is clicked.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'showCloseIcon',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When enabled, displays a close icon at top right corner.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'appendTo',
|
|
|
|
type: 'string',
|
|
|
|
default: 'body',
|
|
|
|
description: 'A valid query selector or an HTMLElement to specify where the overlay gets attached.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'baseZIndex',
|
|
|
|
type: 'number',
|
|
|
|
default: '0',
|
|
|
|
description: 'Base zIndex value to use in layering.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'autoZIndex',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Whether to automatically manage layering.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'ariaCloseLabel',
|
|
|
|
type: 'string',
|
|
|
|
default: 'close',
|
|
|
|
description: 'Aria label of the close icon.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'breakpoints',
|
|
|
|
type: 'object',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Object literal to define widths per screen size.'
|
2023-04-07 20:07:42 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'closeIcon',
|
|
|
|
type: 'string',
|
|
|
|
default: 'undefined',
|
|
|
|
description: 'Display a custom close icon for the message.'
|
2023-04-24 11:44:13 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
2023-04-07 20:07:42 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-04-07 20:38:08 +00:00
|
|
|
const OverlayPanelSlots = [
|
2023-04-07 20:07:42 +00:00
|
|
|
{
|
|
|
|
name: 'closeicon',
|
|
|
|
description: 'Custom close icon template.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const OverlayPanelEvents = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'show',
|
|
|
|
description: 'Callback to invoke before the overlay is shown.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'hide',
|
|
|
|
description: 'Callback to invoke before the overlay is hidden.'
|
|
|
|
}
|
2022-09-12 07:13:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
overlaypanel: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'OverlayPanel',
|
|
|
|
description: 'OverlayPanel is a container component positioned as connected to its target.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: OverlayPanelProps,
|
2023-04-07 20:38:08 +00:00
|
|
|
slots: OverlayPanelSlots,
|
2022-09-12 07:13:52 +00:00
|
|
|
events: OverlayPanelEvents
|
|
|
|
}
|
|
|
|
};
|