primevue 3.27.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/autocomplete/AutoComplete.d.ts +10 -1
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +4 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +4 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +4 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +44 -0
- package/avatar/Avatar.vue +10 -8
- package/avatar/avatar.cjs.js +36 -34
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +33 -35
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -36
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +27 -1
- package/avatargroup/AvatarGroup.vue +5 -2
- package/avatargroup/avatargroup.cjs.js +9 -5
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +6 -6
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +10 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +32 -0
- package/badge/Badge.vue +3 -1
- package/badge/badge.cjs.js +8 -4
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +5 -5
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +9 -6
- package/badge/badge.min.js +1 -1
- package/basecomponent/BaseComponent.vue +10 -3
- package/basecomponent/basecomponent.cjs.js +10 -3
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +10 -3
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +10 -3
- package/basecomponent/basecomponent.min.js +1 -1
- package/baseicon/BaseIcon.vue +2 -2
- package/baseicon/baseicon.cjs.js +2 -2
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +2 -2
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +2 -2
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.d.ts +44 -0
- package/blockui/BlockUI.vue +3 -1
- package/blockui/blockui.cjs.js +9 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +6 -4
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +10 -5
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +60 -0
- package/breadcrumb/Breadcrumb.vue +8 -6
- package/breadcrumb/BreadcrumbItem.vue +14 -10
- package/breadcrumb/breadcrumb.cjs.js +53 -51
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +53 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +54 -53
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +48 -0
- package/button/Button.vue +10 -9
- package/button/button.cjs.js +43 -44
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +43 -45
- package/button/button.esm.min.js +1 -1
- package/button/button.js +44 -46
- package/button/button.min.js +1 -1
- package/chart/Chart.d.ts +36 -0
- package/chart/Chart.vue +5 -2
- package/chart/chart.cjs.js +10 -5
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +7 -6
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +11 -7
- package/chart/chart.min.js +1 -1
- package/chip/Chip.d.ts +60 -0
- package/chip/Chip.vue +10 -9
- package/chip/chip.cjs.js +35 -36
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +35 -37
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +36 -38
- package/chip/chip.min.js +1 -1
- package/config/PrimeVue.d.ts +8 -0
- package/config/config.cjs.js +3 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +3 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +3 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +88 -0
- package/confirmdialog/ConfirmDialog.vue +9 -6
- package/confirmdialog/confirmdialog.cjs.js +22 -18
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +22 -19
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +23 -20
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +75 -0
- package/confirmpopup/ConfirmPopup.vue +11 -9
- package/confirmpopup/confirmpopup.cjs.js +27 -25
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +27 -26
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +28 -27
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +135 -0
- package/contextmenu/ContextMenu.vue +4 -1
- package/contextmenu/ContextMenuSub.vue +46 -10
- package/contextmenu/contextmenu.cjs.js +57 -46
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +57 -47
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +58 -48
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +278 -246
- package/core/core.min.js +11 -11
- package/dialog/Dialog.d.ts +87 -0
- package/dialog/Dialog.vue +23 -10
- package/dialog/dialog.cjs.js +31 -30
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +31 -31
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +32 -32
- package/dialog/dialog.min.js +1 -1
- package/dock/Dock.d.ts +94 -0
- package/dock/Dock.vue +4 -2
- package/dock/DockSub.vue +30 -6
- package/dock/dock.cjs.js +52 -39
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +52 -40
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +53 -41
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.vue +3 -1
- package/dynamicdialog/dynamicdialog.cjs.js +5 -1
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +4 -1
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +6 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/fileupload/FileContent.vue +11 -9
- package/fileupload/FileUpload.d.ts +154 -0
- package/fileupload/FileUpload.vue +26 -24
- package/fileupload/fileupload.cjs.js +100 -97
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +100 -98
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +101 -99
- package/fileupload/fileupload.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +52 -0
- package/inlinemessage/InlineMessage.vue +7 -3
- package/inlinemessage/inlinemessage.cjs.js +12 -11
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +12 -12
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +13 -13
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/Inplace.d.ts +59 -0
- package/inplace/Inplace.vue +7 -5
- package/inplace/inplace.cjs.js +17 -16
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +17 -17
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +18 -18
- package/inplace/inplace.min.js +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +149 -0
- package/megamenu/MegaMenu.vue +6 -3
- package/megamenu/MegaMenuSub.vue +43 -15
- package/megamenu/megamenu.cjs.js +83 -75
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +83 -76
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +84 -77
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +113 -0
- package/menu/Menu.vue +11 -8
- package/menu/Menuitem.vue +20 -8
- package/menu/menu.cjs.js +73 -62
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +73 -63
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +74 -64
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +146 -0
- package/menubar/Menubar.vue +8 -5
- package/menubar/MenubarSub.vue +38 -10
- package/menubar/menubar.cjs.js +70 -60
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +70 -61
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +71 -62
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +64 -1
- package/message/Message.vue +9 -7
- package/message/message.cjs.js +22 -21
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +22 -22
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -23
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +56 -0
- package/overlaypanel/OverlayPanel.vue +6 -4
- package/overlaypanel/overlaypanel.cjs.js +13 -10
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +13 -11
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +14 -12
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/panel/Panel.d.ts +10 -1
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +4 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +4 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +133 -0
- package/panelmenu/PanelMenu.vue +36 -13
- package/panelmenu/PanelMenuList.vue +3 -0
- package/panelmenu/PanelMenuSub.vue +33 -12
- package/panelmenu/panelmenu.cjs.js +115 -96
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +115 -97
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +116 -98
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +2 -2
- package/password/password.cjs.js +2 -2
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -2
- package/password/password.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +40 -0
- package/progressbar/ProgressBar.vue +8 -5
- package/progressbar/progressbar.cjs.js +25 -23
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +22 -24
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -25
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +40 -0
- package/progressspinner/ProgressSpinner.vue +6 -3
- package/progressspinner/progressspinner.cjs.js +18 -13
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +15 -14
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +19 -15
- package/progressspinner/progressspinner.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +1 -1
- package/resources/themes/arya-green/theme.css +1 -1
- package/resources/themes/arya-orange/theme.css +1 -1
- package/resources/themes/arya-purple/theme.css +1 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +1 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +1 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +1 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +1 -1
- package/resources/themes/fluent-light/theme.css +1 -1
- package/resources/themes/lara-dark-blue/theme.css +1 -1
- package/resources/themes/lara-dark-indigo/theme.css +1 -1
- package/resources/themes/lara-dark-purple/theme.css +1 -1
- package/resources/themes/lara-dark-teal/theme.css +1 -1
- package/resources/themes/lara-light-blue/theme.css +1 -1
- package/resources/themes/lara-light-indigo/theme.css +1 -1
- package/resources/themes/lara-light-purple/theme.css +1 -1
- package/resources/themes/lara-light-teal/theme.css +1 -1
- package/resources/themes/luna-amber/theme.css +1 -1
- package/resources/themes/luna-blue/theme.css +1 -1
- package/resources/themes/luna-green/theme.css +1 -1
- package/resources/themes/luna-pink/theme.css +1 -1
- package/resources/themes/md-dark-deeppurple/theme.css +4 -1
- package/resources/themes/md-dark-indigo/theme.css +4 -1
- package/resources/themes/md-light-deeppurple/theme.css +4 -1
- package/resources/themes/md-light-indigo/theme.css +4 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -1
- package/resources/themes/mdc-dark-indigo/theme.css +4 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -1
- package/resources/themes/mdc-light-indigo/theme.css +4 -1
- package/resources/themes/mira/theme.css +1 -1
- package/resources/themes/nano/theme.css +1 -1
- package/resources/themes/nova/theme.css +1 -1
- package/resources/themes/nova-accent/theme.css +1 -1
- package/resources/themes/nova-alt/theme.css +1 -1
- package/resources/themes/nova-vue/theme.css +1 -1
- package/resources/themes/rhea/theme.css +1 -1
- package/resources/themes/saga-blue/theme.css +1 -1
- package/resources/themes/saga-green/theme.css +1 -1
- package/resources/themes/saga-orange/theme.css +1 -1
- package/resources/themes/saga-purple/theme.css +1 -1
- package/resources/themes/soho-dark/theme.css +1 -1
- package/resources/themes/soho-light/theme.css +1 -1
- package/resources/themes/tailwind-light/theme.css +1 -1
- package/resources/themes/vela-blue/theme.css +1 -1
- package/resources/themes/vela-green/theme.css +1 -1
- package/resources/themes/vela-orange/theme.css +1 -1
- package/resources/themes/vela-purple/theme.css +1 -1
- package/resources/themes/viva-dark/theme.css +1 -1
- package/resources/themes/viva-light/theme.css +1 -1
- package/scrolltop/ScrollTop.d.ts +48 -0
- package/scrolltop/ScrollTop.vue +5 -2
- package/scrolltop/scrolltop.cjs.js +10 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +10 -8
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +11 -9
- package/scrolltop/scrolltop.min.js +1 -1
- package/sidebar/Sidebar.d.ts +68 -0
- package/sidebar/Sidebar.vue +9 -7
- package/sidebar/sidebar.cjs.js +26 -24
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +26 -25
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +27 -26
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +32 -0
- package/skeleton/Skeleton.vue +4 -1
- package/skeleton/skeleton.cjs.js +10 -4
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +7 -5
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +11 -6
- package/skeleton/skeleton.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +101 -0
- package/speeddial/SpeedDial.vue +31 -8
- package/speeddial/speeddial.cjs.js +47 -33
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +47 -34
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +48 -35
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +64 -0
- package/splitbutton/SplitButton.vue +8 -5
- package/splitbutton/splitbutton.cjs.js +23 -18
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +23 -19
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +24 -20
- package/splitbutton/splitbutton.min.js +1 -1
- package/steps/Steps.d.ts +52 -0
- package/steps/Steps.vue +11 -8
- package/steps/steps.cjs.js +34 -33
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +31 -34
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +35 -35
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +79 -0
- package/tabmenu/TabMenu.vue +20 -10
- package/tabmenu/tabmenu.cjs.js +47 -41
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +47 -42
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +48 -43
- package/tabmenu/tabmenu.min.js +1 -1
- package/tag/Tag.d.ts +40 -0
- package/tag/Tag.vue +7 -4
- package/tag/tag.cjs.js +14 -12
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +11 -13
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +15 -14
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +79 -0
- package/terminal/Terminal.vue +12 -10
- package/terminal/terminal.cjs.js +23 -28
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +23 -29
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +24 -30
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +130 -0
- package/tieredmenu/TieredMenu.vue +4 -1
- package/tieredmenu/TieredMenuSub.vue +39 -11
- package/tieredmenu/tieredmenu.cjs.js +53 -41
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +53 -42
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +54 -43
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/Toast.d.ts +79 -0
- package/toast/Toast.vue +4 -1
- package/toast/ToastMessage.vue +12 -10
- package/toast/toast.cjs.js +31 -31
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +31 -32
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +32 -33
- package/toast/toast.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -2
- package/vetur-attributes.json +160 -0
- package/vetur-tags.json +79 -34
- package/web-types.json +404 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var Button = require('primevue/button');
|
|
4
5
|
var ConfirmationEventBus = require('primevue/confirmationeventbus');
|
|
5
6
|
var Dialog = require('primevue/dialog');
|
|
@@ -7,12 +8,14 @@ var vue = require('vue');
|
|
|
7
8
|
|
|
8
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
10
|
|
|
11
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
10
12
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
11
13
|
var ConfirmationEventBus__default = /*#__PURE__*/_interopDefaultLegacy(ConfirmationEventBus);
|
|
12
14
|
var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
|
|
13
15
|
|
|
14
16
|
var script = {
|
|
15
17
|
name: 'ConfirmDialog',
|
|
18
|
+
extends: BaseComponent__default["default"],
|
|
16
19
|
props: {
|
|
17
20
|
group: String,
|
|
18
21
|
breakpoints: {
|
|
@@ -134,8 +137,6 @@ var script = {
|
|
|
134
137
|
}
|
|
135
138
|
};
|
|
136
139
|
|
|
137
|
-
const _hoisted_1 = { class: "p-confirm-dialog-message" };
|
|
138
|
-
|
|
139
140
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
140
141
|
const _component_CDButton = vue.resolveComponent("CDButton");
|
|
141
142
|
const _component_CDialog = vue.resolveComponent("CDialog");
|
|
@@ -154,7 +155,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
position: $options.position,
|
|
155
156
|
breakpoints: $props.breakpoints,
|
|
156
157
|
closeOnEscape: $options.closeOnEscape,
|
|
157
|
-
draggable: $props.draggable
|
|
158
|
+
draggable: $props.draggable,
|
|
159
|
+
pt: _ctx.pt
|
|
158
160
|
}, {
|
|
159
161
|
footer: vue.withCtx(() => [
|
|
160
162
|
vue.createVNode(_component_CDButton, {
|
|
@@ -162,33 +164,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
162
164
|
class: vue.normalizeClass($options.rejectClass),
|
|
163
165
|
iconPos: "left",
|
|
164
166
|
onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
|
|
165
|
-
autofocus: $options.autoFocusReject
|
|
167
|
+
autofocus: $options.autoFocusReject,
|
|
168
|
+
pt: _ctx.ptm('rejectButton')
|
|
166
169
|
}, {
|
|
167
170
|
icon: vue.withCtx((iconProps) => [
|
|
168
171
|
vue.renderSlot(_ctx.$slots, "rejecticon", {}, () => [
|
|
169
|
-
vue.createElementVNode("span", {
|
|
170
|
-
class:
|
|
171
|
-
}, null,
|
|
172
|
+
vue.createElementVNode("span", vue.mergeProps({
|
|
173
|
+
class: [$options.rejectIcon, iconProps.class]
|
|
174
|
+
}, _ctx.ptm('rejectButton')['icon']), null, 16)
|
|
172
175
|
])
|
|
173
176
|
]),
|
|
174
177
|
_: 3
|
|
175
|
-
}, 8, ["label", "class", "autofocus"]),
|
|
178
|
+
}, 8, ["label", "class", "autofocus", "pt"]),
|
|
176
179
|
vue.createVNode(_component_CDButton, {
|
|
177
180
|
label: $options.acceptLabel,
|
|
178
181
|
class: vue.normalizeClass($options.acceptClass),
|
|
179
182
|
iconPos: "left",
|
|
180
183
|
onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
|
|
181
|
-
autofocus: $options.autoFocusAccept
|
|
184
|
+
autofocus: $options.autoFocusAccept,
|
|
185
|
+
pt: _ctx.ptm('acceptButton')
|
|
182
186
|
}, {
|
|
183
187
|
icon: vue.withCtx((iconProps) => [
|
|
184
188
|
vue.renderSlot(_ctx.$slots, "accepticon", {}, () => [
|
|
185
|
-
vue.createElementVNode("span", {
|
|
186
|
-
class:
|
|
187
|
-
}, null,
|
|
189
|
+
vue.createElementVNode("span", vue.mergeProps({
|
|
190
|
+
class: [$options.acceptIcon, iconProps.class]
|
|
191
|
+
}, _ctx.ptm('acceptButton')['icon']), null, 16)
|
|
188
192
|
])
|
|
189
193
|
]),
|
|
190
194
|
_: 3
|
|
191
|
-
}, 8, ["label", "class", "autofocus"])
|
|
195
|
+
}, 8, ["label", "class", "autofocus", "pt"])
|
|
192
196
|
]),
|
|
193
197
|
default: vue.withCtx(() => [
|
|
194
198
|
(!_ctx.$slots.message)
|
|
@@ -200,13 +204,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
200
204
|
class: "p-confirm-dialog-icon"
|
|
201
205
|
}))
|
|
202
206
|
: ($data.confirmation.icon)
|
|
203
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
207
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
204
208
|
key: 1,
|
|
205
|
-
class:
|
|
206
|
-
}, null,
|
|
209
|
+
class: $options.iconClass
|
|
210
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
207
211
|
: vue.createCommentVNode("", true)
|
|
208
212
|
]),
|
|
209
|
-
vue.createElementVNode("span",
|
|
213
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)
|
|
210
214
|
], 64))
|
|
211
215
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
212
216
|
key: 1,
|
|
@@ -214,7 +218,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
214
218
|
}, null, 8, ["message"]))
|
|
215
219
|
]),
|
|
216
220
|
_: 3
|
|
217
|
-
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
|
|
221
|
+
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),o=require("primevue/button"),t=require("primevue/confirmationeventbus"),i=require("primevue/dialog"),n=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),r=c(o),a=c(t),l=c(i),m={name:"ConfirmDialog",extends:s.default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},a.default.on("confirm",this.confirmListener),a.default.on("close",this.closeListener)},beforeUnmount(){a.default.off("confirm",this.confirmListener),a.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:l.default,CDButton:r.default}};m.render=function(e,o,t,i,c,s){const r=n.resolveComponent("CDButton"),a=n.resolveComponent("CDialog");return n.openBlock(),n.createBlock(a,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable,pt:e.pt},{footer:n.withCtx((()=>[n.createVNode(r,{label:s.rejectLabel,class:n.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject,pt:e.ptm("rejectButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"rejecticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.rejectIcon,o.class]},e.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),n.createVNode(r,{label:s.acceptLabel,class:n.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept,pt:e.ptm("acceptButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"accepticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.acceptIcon,o.class]},e.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:n.withCtx((()=>[e.$slots.message?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:s.iconClass},e.ptm("icon")),null,16)):n.createCommentVNode("",!0)])),n.createElementVNode("span",n.mergeProps({class:"p-confirm-dialog-message"},e.ptm("message")),n.toDisplayString(s.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])},module.exports=m;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
1
2
|
import Button from 'primevue/button';
|
|
2
3
|
import ConfirmationEventBus from 'primevue/confirmationeventbus';
|
|
3
4
|
import Dialog from 'primevue/dialog';
|
|
4
|
-
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, renderSlot, createElementVNode, createElementBlock, Fragment, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, renderSlot, createElementVNode, mergeProps, createElementBlock, Fragment, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
|
|
5
6
|
|
|
6
7
|
var script = {
|
|
7
8
|
name: 'ConfirmDialog',
|
|
9
|
+
extends: BaseComponent,
|
|
8
10
|
props: {
|
|
9
11
|
group: String,
|
|
10
12
|
breakpoints: {
|
|
@@ -126,8 +128,6 @@ var script = {
|
|
|
126
128
|
}
|
|
127
129
|
};
|
|
128
130
|
|
|
129
|
-
const _hoisted_1 = { class: "p-confirm-dialog-message" };
|
|
130
|
-
|
|
131
131
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
132
|
const _component_CDButton = resolveComponent("CDButton");
|
|
133
133
|
const _component_CDialog = resolveComponent("CDialog");
|
|
@@ -146,7 +146,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
146
146
|
position: $options.position,
|
|
147
147
|
breakpoints: $props.breakpoints,
|
|
148
148
|
closeOnEscape: $options.closeOnEscape,
|
|
149
|
-
draggable: $props.draggable
|
|
149
|
+
draggable: $props.draggable,
|
|
150
|
+
pt: _ctx.pt
|
|
150
151
|
}, {
|
|
151
152
|
footer: withCtx(() => [
|
|
152
153
|
createVNode(_component_CDButton, {
|
|
@@ -154,33 +155,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
154
155
|
class: normalizeClass($options.rejectClass),
|
|
155
156
|
iconPos: "left",
|
|
156
157
|
onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
|
|
157
|
-
autofocus: $options.autoFocusReject
|
|
158
|
+
autofocus: $options.autoFocusReject,
|
|
159
|
+
pt: _ctx.ptm('rejectButton')
|
|
158
160
|
}, {
|
|
159
161
|
icon: withCtx((iconProps) => [
|
|
160
162
|
renderSlot(_ctx.$slots, "rejecticon", {}, () => [
|
|
161
|
-
createElementVNode("span", {
|
|
162
|
-
class:
|
|
163
|
-
}, null,
|
|
163
|
+
createElementVNode("span", mergeProps({
|
|
164
|
+
class: [$options.rejectIcon, iconProps.class]
|
|
165
|
+
}, _ctx.ptm('rejectButton')['icon']), null, 16)
|
|
164
166
|
])
|
|
165
167
|
]),
|
|
166
168
|
_: 3
|
|
167
|
-
}, 8, ["label", "class", "autofocus"]),
|
|
169
|
+
}, 8, ["label", "class", "autofocus", "pt"]),
|
|
168
170
|
createVNode(_component_CDButton, {
|
|
169
171
|
label: $options.acceptLabel,
|
|
170
172
|
class: normalizeClass($options.acceptClass),
|
|
171
173
|
iconPos: "left",
|
|
172
174
|
onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
|
|
173
|
-
autofocus: $options.autoFocusAccept
|
|
175
|
+
autofocus: $options.autoFocusAccept,
|
|
176
|
+
pt: _ctx.ptm('acceptButton')
|
|
174
177
|
}, {
|
|
175
178
|
icon: withCtx((iconProps) => [
|
|
176
179
|
renderSlot(_ctx.$slots, "accepticon", {}, () => [
|
|
177
|
-
createElementVNode("span", {
|
|
178
|
-
class:
|
|
179
|
-
}, null,
|
|
180
|
+
createElementVNode("span", mergeProps({
|
|
181
|
+
class: [$options.acceptIcon, iconProps.class]
|
|
182
|
+
}, _ctx.ptm('acceptButton')['icon']), null, 16)
|
|
180
183
|
])
|
|
181
184
|
]),
|
|
182
185
|
_: 3
|
|
183
|
-
}, 8, ["label", "class", "autofocus"])
|
|
186
|
+
}, 8, ["label", "class", "autofocus", "pt"])
|
|
184
187
|
]),
|
|
185
188
|
default: withCtx(() => [
|
|
186
189
|
(!_ctx.$slots.message)
|
|
@@ -192,13 +195,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
192
195
|
class: "p-confirm-dialog-icon"
|
|
193
196
|
}))
|
|
194
197
|
: ($data.confirmation.icon)
|
|
195
|
-
? (openBlock(), createElementBlock("span", {
|
|
198
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
196
199
|
key: 1,
|
|
197
|
-
class:
|
|
198
|
-
}, null,
|
|
200
|
+
class: $options.iconClass
|
|
201
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
199
202
|
: createCommentVNode("", true)
|
|
200
203
|
]),
|
|
201
|
-
createElementVNode("span",
|
|
204
|
+
createElementVNode("span", mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), toDisplayString($options.message), 17)
|
|
202
205
|
], 64))
|
|
203
206
|
: (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {
|
|
204
207
|
key: 1,
|
|
@@ -206,7 +209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
209
|
}, null, 8, ["message"]))
|
|
207
210
|
]),
|
|
208
211
|
_: 3
|
|
209
|
-
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
|
|
212
|
+
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import o from"primevue/
|
|
1
|
+
import o from"primevue/basecomponent";import i from"primevue/button";import t from"primevue/confirmationeventbus";import e from"primevue/dialog";import{resolveComponent as n,openBlock as c,createBlock as s,withCtx as a,createVNode as r,normalizeClass as l,renderSlot as m,createElementVNode as p,mergeProps as u,createElementBlock as f,Fragment as h,resolveDynamicComponent as b,createCommentVNode as d,toDisplayString as g}from"vue";var j={name:"ConfirmDialog",extends:o,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=o=>{o&&o.group===this.group&&(this.confirmation=o,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},t.on("confirm",this.confirmListener),t.on("close",this.closeListener)},beforeUnmount(){t.off("confirm",this.confirmListener),t.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:e,CDButton:i}};j.render=function(o,i,t,e,j,v){const k=n("CDButton"),C=n("CDialog");return c(),s(C,{visible:j.visible,"onUpdate:visible":[i[2]||(i[2]=o=>j.visible=o),v.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:v.header,blockScroll:v.blockScroll,position:v.position,breakpoints:t.breakpoints,closeOnEscape:v.closeOnEscape,draggable:t.draggable,pt:o.pt},{footer:a((()=>[r(k,{label:v.rejectLabel,class:l(v.rejectClass),iconPos:"left",onClick:i[0]||(i[0]=o=>v.reject()),autofocus:v.autoFocusReject,pt:o.ptm("rejectButton")},{icon:a((i=>[m(o.$slots,"rejecticon",{},(()=>[p("span",u({class:[v.rejectIcon,i.class]},o.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),r(k,{label:v.acceptLabel,class:l(v.acceptClass),iconPos:"left",onClick:i[1]||(i[1]=o=>v.accept()),autofocus:v.autoFocusAccept,pt:o.ptm("acceptButton")},{icon:a((i=>[m(o.$slots,"accepticon",{},(()=>[p("span",u({class:[v.acceptIcon,i.class]},o.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:a((()=>[o.$slots.message?(c(),s(b(o.$slots.message),{key:1,message:j.confirmation},null,8,["message"])):(c(),f(h,{key:0},[m(o.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[o.$slots.icon?(c(),s(b(o.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):j.confirmation.icon?(c(),f("span",u({key:1,class:v.iconClass},o.ptm("icon")),null,16)):d("",!0)])),p("span",u({class:"p-confirm-dialog-message"},o.ptm("message")),g(v.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])};export{j as default};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, vue) {
|
|
2
|
+
this.primevue.confirmdialog = (function (BaseComponent, Button, ConfirmationEventBus, Dialog, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
7
8
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
8
9
|
var ConfirmationEventBus__default = /*#__PURE__*/_interopDefaultLegacy(ConfirmationEventBus);
|
|
9
10
|
var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
|
|
10
11
|
|
|
11
12
|
var script = {
|
|
12
13
|
name: 'ConfirmDialog',
|
|
14
|
+
extends: BaseComponent__default["default"],
|
|
13
15
|
props: {
|
|
14
16
|
group: String,
|
|
15
17
|
breakpoints: {
|
|
@@ -131,8 +133,6 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
|
|
|
131
133
|
}
|
|
132
134
|
};
|
|
133
135
|
|
|
134
|
-
const _hoisted_1 = { class: "p-confirm-dialog-message" };
|
|
135
|
-
|
|
136
136
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
137
137
|
const _component_CDButton = vue.resolveComponent("CDButton");
|
|
138
138
|
const _component_CDialog = vue.resolveComponent("CDialog");
|
|
@@ -151,7 +151,8 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
|
|
|
151
151
|
position: $options.position,
|
|
152
152
|
breakpoints: $props.breakpoints,
|
|
153
153
|
closeOnEscape: $options.closeOnEscape,
|
|
154
|
-
draggable: $props.draggable
|
|
154
|
+
draggable: $props.draggable,
|
|
155
|
+
pt: _ctx.pt
|
|
155
156
|
}, {
|
|
156
157
|
footer: vue.withCtx(() => [
|
|
157
158
|
vue.createVNode(_component_CDButton, {
|
|
@@ -159,33 +160,35 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
|
|
|
159
160
|
class: vue.normalizeClass($options.rejectClass),
|
|
160
161
|
iconPos: "left",
|
|
161
162
|
onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
|
|
162
|
-
autofocus: $options.autoFocusReject
|
|
163
|
+
autofocus: $options.autoFocusReject,
|
|
164
|
+
pt: _ctx.ptm('rejectButton')
|
|
163
165
|
}, {
|
|
164
166
|
icon: vue.withCtx((iconProps) => [
|
|
165
167
|
vue.renderSlot(_ctx.$slots, "rejecticon", {}, () => [
|
|
166
|
-
vue.createElementVNode("span", {
|
|
167
|
-
class:
|
|
168
|
-
}, null,
|
|
168
|
+
vue.createElementVNode("span", vue.mergeProps({
|
|
169
|
+
class: [$options.rejectIcon, iconProps.class]
|
|
170
|
+
}, _ctx.ptm('rejectButton')['icon']), null, 16)
|
|
169
171
|
])
|
|
170
172
|
]),
|
|
171
173
|
_: 3
|
|
172
|
-
}, 8, ["label", "class", "autofocus"]),
|
|
174
|
+
}, 8, ["label", "class", "autofocus", "pt"]),
|
|
173
175
|
vue.createVNode(_component_CDButton, {
|
|
174
176
|
label: $options.acceptLabel,
|
|
175
177
|
class: vue.normalizeClass($options.acceptClass),
|
|
176
178
|
iconPos: "left",
|
|
177
179
|
onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
|
|
178
|
-
autofocus: $options.autoFocusAccept
|
|
180
|
+
autofocus: $options.autoFocusAccept,
|
|
181
|
+
pt: _ctx.ptm('acceptButton')
|
|
179
182
|
}, {
|
|
180
183
|
icon: vue.withCtx((iconProps) => [
|
|
181
184
|
vue.renderSlot(_ctx.$slots, "accepticon", {}, () => [
|
|
182
|
-
vue.createElementVNode("span", {
|
|
183
|
-
class:
|
|
184
|
-
}, null,
|
|
185
|
+
vue.createElementVNode("span", vue.mergeProps({
|
|
186
|
+
class: [$options.acceptIcon, iconProps.class]
|
|
187
|
+
}, _ctx.ptm('acceptButton')['icon']), null, 16)
|
|
185
188
|
])
|
|
186
189
|
]),
|
|
187
190
|
_: 3
|
|
188
|
-
}, 8, ["label", "class", "autofocus"])
|
|
191
|
+
}, 8, ["label", "class", "autofocus", "pt"])
|
|
189
192
|
]),
|
|
190
193
|
default: vue.withCtx(() => [
|
|
191
194
|
(!_ctx.$slots.message)
|
|
@@ -197,13 +200,13 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
|
|
|
197
200
|
class: "p-confirm-dialog-icon"
|
|
198
201
|
}))
|
|
199
202
|
: ($data.confirmation.icon)
|
|
200
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
203
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
201
204
|
key: 1,
|
|
202
|
-
class:
|
|
203
|
-
}, null,
|
|
205
|
+
class: $options.iconClass
|
|
206
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
204
207
|
: vue.createCommentVNode("", true)
|
|
205
208
|
]),
|
|
206
|
-
vue.createElementVNode("span",
|
|
209
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)
|
|
207
210
|
], 64))
|
|
208
211
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
209
212
|
key: 1,
|
|
@@ -211,11 +214,11 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
|
|
|
211
214
|
}, null, 8, ["message"]))
|
|
212
215
|
]),
|
|
213
216
|
_: 3
|
|
214
|
-
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
|
|
217
|
+
}, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
script.render = render;
|
|
218
221
|
|
|
219
222
|
return script;
|
|
220
223
|
|
|
221
|
-
})(primevue.button, primevue.confirmationeventbus, primevue.dialog, Vue);
|
|
224
|
+
})(primevue.basecomponent, primevue.button, primevue.confirmationeventbus, primevue.dialog, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.confirmdialog=function(e,o,t,i){"use strict";function
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.confirmdialog=function(e,o,t,i,n){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),a=c(o),r=c(t),l=c(i),m={name:"ConfirmDialog",extends:s.default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},r.default.on("confirm",this.confirmListener),r.default.on("close",this.closeListener)},beforeUnmount(){r.default.off("confirm",this.confirmListener),r.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:l.default,CDButton:a.default}};return m.render=function(e,o,t,i,c,s){const a=n.resolveComponent("CDButton"),r=n.resolveComponent("CDialog");return n.openBlock(),n.createBlock(r,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable,pt:e.pt},{footer:n.withCtx((()=>[n.createVNode(a,{label:s.rejectLabel,class:n.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject,pt:e.ptm("rejectButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"rejecticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.rejectIcon,o.class]},e.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),n.createVNode(a,{label:s.acceptLabel,class:n.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept,pt:e.ptm("acceptButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"accepticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.acceptIcon,o.class]},e.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:n.withCtx((()=>[e.$slots.message?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:s.iconClass},e.ptm("icon")),null,16)):n.createCommentVNode("",!0)])),n.createElementVNode("span",n.mergeProps({class:"p-confirm-dialog-message"},e.ptm("message")),n.toDisplayString(s.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])},m}(primevue.basecomponent,primevue.button,primevue.confirmationeventbus,primevue.dialog,Vue);
|
|
@@ -8,9 +8,79 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
|
+
import { ButtonPassThroughOptions } from '../button';
|
|
11
12
|
import { ConfirmationOptions } from '../confirmationoptions';
|
|
12
13
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
13
14
|
|
|
15
|
+
export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes) | null | undefined;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Custom passthrough(pt) option method.
|
|
19
|
+
*/
|
|
20
|
+
export interface ConfirmPopupPassThroughMethodOptions {
|
|
21
|
+
props: ConfirmPopupProps;
|
|
22
|
+
state: ConfirmPopupState;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Custom passthrough(pt) options.
|
|
27
|
+
* @see {@link ConfirmPopupProps.pt}
|
|
28
|
+
*/
|
|
29
|
+
export interface ConfirmPopupPassThroughOptions {
|
|
30
|
+
/**
|
|
31
|
+
* Uses to pass attributes to the root's DOM element.
|
|
32
|
+
*/
|
|
33
|
+
root?: ConfirmPopupPassThroughOptionType;
|
|
34
|
+
/**
|
|
35
|
+
* Uses to pass attributes to the content's DOM element.
|
|
36
|
+
*/
|
|
37
|
+
content?: ConfirmPopupPassThroughOptionType;
|
|
38
|
+
/**
|
|
39
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
40
|
+
*/
|
|
41
|
+
icon?: ConfirmPopupPassThroughOptionType;
|
|
42
|
+
/**
|
|
43
|
+
* Uses to pass attributes to the message's DOM element.
|
|
44
|
+
*/
|
|
45
|
+
message?: ConfirmPopupPassThroughOptionType;
|
|
46
|
+
/**
|
|
47
|
+
* Uses to pass attributes to the footer's DOM element.
|
|
48
|
+
*/
|
|
49
|
+
footer?: ConfirmPopupPassThroughOptionType;
|
|
50
|
+
/**
|
|
51
|
+
* Uses to pass attributes to the Button component.
|
|
52
|
+
* @see {@link ButtonPassThroughOptions}
|
|
53
|
+
*/
|
|
54
|
+
rejectButton?: ButtonPassThroughOptions;
|
|
55
|
+
/**
|
|
56
|
+
* Uses to pass attributes to the Button component.
|
|
57
|
+
* @see {@link ButtonPassThroughOptions}
|
|
58
|
+
*/
|
|
59
|
+
acceptButton?: ButtonPassThroughOptions;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Custom passthrough attributes for each DOM elements
|
|
64
|
+
*/
|
|
65
|
+
export interface ConfirmPopupPassThroughAttributes {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Defines current inline state in ConfirmPopup component.
|
|
71
|
+
*/
|
|
72
|
+
export interface ConfirmPopupState {
|
|
73
|
+
/**
|
|
74
|
+
* Current visible state as a boolean.
|
|
75
|
+
* @defaultValue false
|
|
76
|
+
*/
|
|
77
|
+
visible: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Current confirmation message.
|
|
80
|
+
*/
|
|
81
|
+
confirmation: ConfirmationOptions;
|
|
82
|
+
}
|
|
83
|
+
|
|
14
84
|
/**
|
|
15
85
|
* Defines valid properties in ConfirmPopup component.
|
|
16
86
|
*/
|
|
@@ -19,6 +89,11 @@ export interface ConfirmPopupProps {
|
|
|
19
89
|
* Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.
|
|
20
90
|
*/
|
|
21
91
|
group?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
94
|
+
* @type {ConfirmPopupPassThroughOptions}
|
|
95
|
+
*/
|
|
96
|
+
pt?: ConfirmPopupPassThroughOptions;
|
|
22
97
|
}
|
|
23
98
|
|
|
24
99
|
/**
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Portal>
|
|
3
3
|
<transition name="p-confirm-popup" @enter="onEnter" @after-enter="onAfterEnter" @leave="onLeave" @after-leave="onAfterLeave">
|
|
4
|
-
<div v-if="visible" :ref="containerRef" v-focustrap role="alertdialog" :class="containerClass" :aria-modal="visible" @click="onOverlayClick" @keydown="onOverlayKeydown" v-bind="
|
|
4
|
+
<div v-if="visible" :ref="containerRef" v-focustrap role="alertdialog" :class="containerClass" :aria-modal="visible" @click="onOverlayClick" @keydown="onOverlayKeydown" v-bind="{ ...$attrs, ...ptm('root') }">
|
|
5
5
|
<template v-if="!$slots.message">
|
|
6
|
-
<div class="p-confirm-popup-content">
|
|
6
|
+
<div class="p-confirm-popup-content" v-bind="ptm('content')">
|
|
7
7
|
<slot name="icon" class="p-confirm-popup-icon">
|
|
8
8
|
<component v-if="$slots.icon" :is="$slots.icon" class="p-confirm-popup-icon" />
|
|
9
|
-
<span v-else-if="confirmation.icon" :class="iconClass" />
|
|
9
|
+
<span v-else-if="confirmation.icon" :class="iconClass" v-bind="ptm('icon')" />
|
|
10
10
|
</slot>
|
|
11
|
-
<span class="p-confirm-popup-message">{{ confirmation.message }}</span>
|
|
11
|
+
<span class="p-confirm-popup-message" v-bind="ptm('message')">{{ confirmation.message }}</span>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
<component v-else :is="$slots.message" :message="confirmation"></component>
|
|
15
|
-
<div class="p-confirm-popup-footer">
|
|
16
|
-
<CPButton :label="rejectLabel" :class="rejectClass" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject">
|
|
15
|
+
<div class="p-confirm-popup-footer" v-bind="ptm('footer')">
|
|
16
|
+
<CPButton :label="rejectLabel" :class="rejectClass" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject" :pt="ptm('rejectButton')">
|
|
17
17
|
<template #icon="iconProps">
|
|
18
18
|
<slot name="rejecticon">
|
|
19
|
-
<span :class="[rejectIcon, iconProps.class]" />
|
|
19
|
+
<span :class="[rejectIcon, iconProps.class]" v-bind="ptm('rejectButton')['icon']" />
|
|
20
20
|
</slot>
|
|
21
21
|
</template>
|
|
22
22
|
</CPButton>
|
|
23
|
-
<CPButton :label="acceptLabel" :class="acceptClass" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept">
|
|
23
|
+
<CPButton :label="acceptLabel" :class="acceptClass" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept" :pt="ptm('acceptButton')">
|
|
24
24
|
<template #icon="iconProps">
|
|
25
25
|
<slot name="accepticon">
|
|
26
|
-
<span :class="[acceptIcon, iconProps.class]" />
|
|
26
|
+
<span :class="[acceptIcon, iconProps.class]" v-bind="ptm('acceptButton')['icon']" />
|
|
27
27
|
</slot>
|
|
28
28
|
</template>
|
|
29
29
|
</CPButton>
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
37
38
|
import Button from 'primevue/button';
|
|
38
39
|
import ConfirmationEventBus from 'primevue/confirmationeventbus';
|
|
39
40
|
import FocusTrap from 'primevue/focustrap';
|
|
@@ -43,6 +44,7 @@ import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils } from 'primevue
|
|
|
43
44
|
|
|
44
45
|
export default {
|
|
45
46
|
name: 'ConfirmPopup',
|
|
47
|
+
extends: BaseComponent,
|
|
46
48
|
inheritAttrs: false,
|
|
47
49
|
props: {
|
|
48
50
|
group: String
|