2022-09-12 07:13:52 +00:00
|
|
|
const ConfirmDialogProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'group',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.'
|
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-03-16 14:37:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'draggable',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'true',
|
|
|
|
description: 'Whether the dialog can be relocated by dragging.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
const ConfirmDialogSlots = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'message',
|
2023-04-18 13:42:36 +00:00
|
|
|
description: 'Custom icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'icon',
|
|
|
|
description: 'Custom icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'accepticon',
|
|
|
|
description: 'Custom accept icon template.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'rejecticon',
|
|
|
|
description: 'Custom reject icon template.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
confirmdialog: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'ConfirmDialog',
|
|
|
|
description: 'ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: ConfirmDialogProps,
|
|
|
|
slots: ConfirmDialogSlots
|
|
|
|
}
|
|
|
|
};
|