2022-09-12 07:13:52 +00:00
|
|
|
const BlockUIProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'blocked',
|
|
|
|
type: 'array',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Controls the blocked state.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'fullscreen',
|
|
|
|
type: 'menuitem',
|
|
|
|
default: 'null',
|
|
|
|
description: 'When enabled, the whole document gets blocked.'
|
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.'
|
2023-04-24 09:32:20 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses 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
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const BlockUIEvents = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'block',
|
|
|
|
description: 'Fired when the element gets blocked.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'unblock',
|
|
|
|
description: 'Fired when the element gets unblocked.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
blockui: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'BlockUI',
|
|
|
|
description: 'BlockUI can either block other components or the whole page.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: BlockUIProps,
|
|
|
|
events: BlockUIEvents
|
|
|
|
}
|
|
|
|
};
|