primevue 3.34.0 → 3.35.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 -0
- package/accordion/BaseAccordion.vue +17 -15
- package/accordion/accordion.cjs.js +1 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/BaseAutoComplete.vue +81 -79
- package/autocomplete/autocomplete.cjs.js +4 -2
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +4 -2
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +4 -2
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/BaseAvatar.vue +30 -28
- package/avatar/avatar.cjs.js +1 -1
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -1
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/BaseAvatarGroup.vue +9 -7
- package/avatargroup/avatargroup.cjs.js +1 -1
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -1
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/BaseBadge.vue +33 -31
- package/badge/badge.cjs.js +1 -1
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +1 -1
- package/badge/badge.min.js +1 -1
- package/badgedirective/badgedirective.cjs.js +1 -1
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/base.cjs.js +1 -1
- package/base/base.cjs.min.js +1 -1
- package/base/base.esm.js +1 -1
- package/base/base.esm.min.js +1 -1
- package/base/base.js +1 -1
- package/base/base.min.js +1 -1
- package/basecomponent/BaseComponent.vue +11 -8
- package/basecomponent/basecomponent.cjs.js +18 -13
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +18 -13
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +18 -13
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +7 -6
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +7 -6
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +7 -6
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BaseBlockUI.vue +12 -10
- package/blockui/BlockUI.vue +2 -0
- package/blockui/blockui.cjs.js +3 -1
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +3 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +3 -1
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/BaseBreadcrumb.vue +32 -30
- package/breadcrumb/Breadcrumb.vue +1 -1
- package/breadcrumb/breadcrumb.cjs.js +2 -2
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +2 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +2 -2
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/BaseCalendar.vue +149 -146
- package/calendar/Calendar.d.ts +11 -5
- package/calendar/Calendar.vue +85 -47
- package/calendar/calendar.cjs.js +162 -118
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +162 -118
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +162 -118
- package/calendar/calendar.min.js +1 -1
- package/carousel/BaseCarousel.vue +70 -68
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +1 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +81 -79
- package/cascadeselect/cascadeselect.cjs.js +1 -1
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/BaseChart.vue +4 -2
- package/chart/chart.cjs.js +1 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +1 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +1 -1
- package/chart/chart.min.js +1 -1
- package/chip/BaseChip.vue +22 -20
- package/chip/chip.cjs.js +1 -1
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chip/chip.min.js +1 -1
- package/chips/BaseChips.vue +46 -44
- package/chips/chips.cjs.js +1 -1
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/chips/chips.min.js +1 -1
- package/colorpicker/BaseColorPicker.vue +8 -6
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +1 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +8 -0
- package/config/PrimeVue.d.ts +3 -0
- package/config/config.cjs.js +5 -0
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +5 -0
- package/config/config.esm.min.js +1 -1
- package/config/config.js +5 -0
- package/config/config.min.js +1 -1
- package/confirmdialog/BaseConfirmDialog.vue +2 -2
- package/confirmdialog/ConfirmDialog.d.ts +22 -0
- package/confirmdialog/ConfirmDialog.vue +15 -10
- package/confirmdialog/confirmdialog.cjs.js +42 -29
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +43 -30
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +42 -29
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/BaseConfirmPopup.vue +72 -70
- package/confirmpopup/ConfirmPopup.d.ts +18 -0
- package/confirmpopup/ConfirmPopup.vue +45 -24
- package/confirmpopup/confirmpopup.cjs.js +14 -10
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +15 -11
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +14 -10
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +41 -39
- package/contextmenu/contextmenu.cjs.js +1 -1
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -1
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +138 -76
- package/core/core.min.js +18 -18
- package/datatable/BaseDataTable.vue +235 -233
- package/datatable/BodyCell.vue +1 -1
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.d.ts +48 -4
- package/datatable/DataTable.vue +32 -19
- package/datatable/TableBody.vue +1 -1
- package/datatable/datatable.cjs.js +74 -24
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +74 -24
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +74 -24
- package/datatable/datatable.min.js +1 -1
- package/dialog/BaseDialog.vue +136 -130
- package/dialog/Dialog.d.ts +20 -0
- package/dialog/Dialog.vue +54 -50
- package/dialog/dialog.cjs.js +24 -9
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +25 -10
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +24 -9
- package/dialog/dialog.min.js +1 -1
- package/divider/BaseDivider.vue +61 -59
- package/divider/divider.cjs.js +1 -1
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +106 -104
- package/dock/dock.cjs.js +1 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +1 -1
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +1 -1
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +93 -91
- 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/fieldset/BaseFieldset.vue +19 -17
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/BaseFileUpload.vue +44 -42
- package/fileupload/fileupload.cjs.js +1 -1
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +1 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +1 -1
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/BaseGalleria.vue +283 -281
- package/galleria/Galleria.vue +3 -0
- package/galleria/galleria.cjs.js +4 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +4 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +4 -1
- package/galleria/galleria.min.js +1 -1
- package/image/BaseImage.vue +64 -62
- package/image/Image.vue +4 -0
- package/image/image.cjs.js +5 -1
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +5 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.js +5 -1
- package/image/image.min.js +1 -1
- package/inlinemessage/BaseInlineMessage.vue +16 -14
- package/inlinemessage/inlinemessage.cjs.js +1 -1
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +1 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +1 -1
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/BaseInplace.vue +18 -16
- package/inplace/Inplace.vue +1 -1
- package/inplace/inplace.cjs.js +4 -2
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +4 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +4 -2
- package/inplace/inplace.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +101 -99
- package/inputnumber/InputNumber.vue +4 -4
- package/inputnumber/inputnumber.cjs.js +13 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +13 -5
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +13 -5
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +20 -18
- package/inputswitch/inputswitch.cjs.js +1 -1
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputswitch/inputswitch.min.js +1 -1
- package/knob/BaseKnob.vue +14 -12
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +34 -32
- package/listbox/listbox.cjs.js +1 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +1 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +111 -109
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/BaseMenu.vue +19 -17
- package/menu/menu.cjs.js +1 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +1 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -1
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +72 -70
- package/menubar/Menubar.vue +2 -2
- package/menubar/menubar.cjs.js +3 -3
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +3 -3
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +3 -3
- package/menubar/menubar.min.js +1 -1
- package/message/BaseMessage.vue +49 -47
- package/message/Message.d.ts +10 -0
- package/message/Message.vue +2 -1
- package/message/message.cjs.js +7 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +8 -4
- package/message/message.esm.min.js +1 -1
- package/message/message.js +7 -3
- package/message/message.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +106 -104
- package/multiselect/multiselect.cjs.js +1 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +38 -36
- package/orderlist/OrderList.vue +4 -4
- package/orderlist/orderlist.cjs.js +13 -5
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +14 -6
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +13 -5
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +53 -51
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +70 -68
- package/overlaypanel/OverlayPanel.d.ts +15 -0
- package/overlaypanel/OverlayPanel.vue +11 -8
- package/overlaypanel/overlaypanel.cjs.js +11 -3
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +12 -4
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +11 -3
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/BasePaginator.vue +40 -38
- package/paginator/JumpToPageDropdown.vue +7 -2
- package/paginator/Paginator.d.ts +20 -0
- package/paginator/Paginator.vue +7 -4
- package/paginator/RowsPerPageDropdown.vue +7 -2
- package/paginator/paginator.cjs.js +41 -12
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +42 -13
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +41 -12
- package/paginator/paginator.min.js +1 -1
- package/panel/BasePanel.vue +20 -18
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/BasePanelMenu.vue +33 -31
- package/panelmenu/panelmenu.cjs.js +1 -1
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1 -1
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1 -1
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +2 -9
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +2 -9
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +2 -9
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +5 -5
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +5 -5
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +5 -5
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/BasePassword.vue +27 -25
- package/password/password.cjs.js +1 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -1
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +34 -32
- package/picklist/PickList.vue +12 -12
- package/picklist/picklist.cjs.js +37 -13
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +38 -14
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +37 -13
- package/picklist/picklist.min.js +1 -1
- package/progressbar/BaseProgressBar.vue +99 -97
- package/progressbar/progressbar.cjs.js +1 -1
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +1 -1
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/BaseProgressSpinner.vue +26 -24
- package/progressspinner/progressspinner.cjs.js +1 -1
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/progressspinner/progressspinner.min.js +1 -1
- package/rating/BaseRating.vue +19 -17
- package/rating/Rating.vue +4 -1
- package/rating/rating.cjs.js +7 -5
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +7 -5
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +7 -5
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +5601 -5585
- package/resources/themes/arya-green/theme.css +5601 -5585
- package/resources/themes/arya-orange/theme.css +5601 -5585
- package/resources/themes/arya-purple/theme.css +5601 -5585
- package/resources/themes/bootstrap4-dark-blue/theme.css +5538 -5523
- package/resources/themes/bootstrap4-dark-purple/theme.css +5538 -5523
- package/resources/themes/bootstrap4-light-blue/theme.css +5607 -5592
- package/resources/themes/bootstrap4-light-purple/theme.css +5607 -5592
- package/resources/themes/fluent-light/theme.css +5734 -5718
- package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5590 -5556
- package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5590 -5556
- package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5590 -5556
- package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5590 -5556
- package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +5604 -5570
- package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5604 -5570
- package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5604 -5570
- package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5604 -5570
- package/resources/themes/luna-amber/theme.css +5553 -5539
- package/resources/themes/luna-blue/theme.css +5553 -5539
- package/resources/themes/luna-green/theme.css +5553 -5539
- package/resources/themes/luna-pink/theme.css +5553 -5539
- package/resources/themes/md-dark-deeppurple/theme.css +7052 -7037
- package/resources/themes/md-dark-indigo/theme.css +7052 -7037
- package/resources/themes/md-light-deeppurple/theme.css +7073 -7058
- package/resources/themes/md-light-indigo/theme.css +7073 -7058
- package/resources/themes/mdc-dark-deeppurple/theme.css +7067 -7052
- package/resources/themes/mdc-dark-indigo/theme.css +7067 -7052
- package/resources/themes/mdc-light-deeppurple/theme.css +7074 -7059
- package/resources/themes/mdc-light-indigo/theme.css +7074 -7059
- package/resources/themes/mira/theme.css +5773 -5757
- package/resources/themes/nano/theme.css +5574 -5559
- package/resources/themes/nova/theme.css +5563 -5548
- package/resources/themes/nova-accent/theme.css +5539 -5524
- package/resources/themes/nova-alt/theme.css +5550 -5535
- package/resources/themes/nova-vue/theme.css +5563 -5548
- package/resources/themes/rhea/theme.css +5530 -5515
- package/resources/themes/saga-blue/theme.css +5590 -5574
- package/resources/themes/saga-green/theme.css +5590 -5574
- package/resources/themes/saga-orange/theme.css +5590 -5574
- package/resources/themes/saga-purple/theme.css +5590 -5574
- package/resources/themes/soho-dark/theme.css +5542 -5526
- package/resources/themes/soho-light/theme.css +5602 -5586
- package/resources/themes/tailwind-light/theme.css +5653 -5637
- package/resources/themes/vela-blue/theme.css +5590 -5574
- package/resources/themes/vela-green/theme.css +5590 -5574
- package/resources/themes/vela-orange/theme.css +5590 -5574
- package/resources/themes/vela-purple/theme.css +5590 -5574
- package/resources/themes/viva-dark/theme.css +5709 -5693
- package/resources/themes/viva-light/theme.css +5692 -5676
- package/ripple/ripple.cjs.js +1 -1
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -1
- package/ripple/ripple.min.js +1 -1
- package/scrollpanel/BaseScrollPanel.vue +56 -54
- package/scrollpanel/scrollpanel.cjs.js +1 -1
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -1
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/BaseScrollTop.vue +33 -31
- package/scrolltop/scrolltop.cjs.js +1 -1
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/scrolltop/scrolltop.min.js +1 -1
- package/sidebar/BaseSidebar.vue +146 -144
- package/sidebar/Sidebar.d.ts +10 -0
- package/sidebar/Sidebar.vue +17 -12
- package/sidebar/sidebar.cjs.js +10 -3
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +11 -4
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +10 -3
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/BaseSkeleton.vue +30 -28
- package/skeleton/skeleton.cjs.js +1 -1
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/skeleton/skeleton.min.js +1 -1
- package/slider/BaseSlider.vue +39 -37
- package/slider/slider.cjs.js +1 -2
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +1 -2
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -2
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +77 -75
- package/speeddial/SpeedDial.vue +2 -2
- package/speeddial/speeddial.cjs.js +7 -3
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +7 -3
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +7 -3
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/BaseSplitButton.vue +32 -30
- package/splitbutton/SplitButton.vue +2 -1
- package/splitbutton/splitbutton.cjs.js +3 -2
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +3 -2
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +3 -2
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/BaseSplitter.vue +46 -44
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -1
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/BaseSplitterPanel.vue +13 -11
- package/splitterpanel/splitterpanel.cjs.js +1 -1
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +1 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +1 -1
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/BaseSteps.vue +52 -50
- package/steps/steps.cjs.js +1 -1
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -1
- package/steps/steps.min.js +1 -1
- package/tabmenu/BaseTabMenu.vue +40 -38
- package/tabmenu/TabMenu.vue +5 -0
- package/tabmenu/tabmenu.cjs.js +6 -1
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +6 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +6 -1
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/BaseTabView.vue +70 -68
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +16 -14
- package/tag/tag.cjs.js +1 -1
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +1 -1
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +1 -1
- package/tag/tag.min.js +1 -1
- package/terminal/BaseTerminal.vue +23 -21
- package/terminal/terminal.cjs.js +1 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/textarea/BaseTextarea.vue +9 -7
- package/textarea/Textarea.vue +1 -3
- package/textarea/textarea.cjs.js +2 -3
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +2 -3
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +2 -3
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +40 -38
- package/tieredmenu/tieredmenu.cjs.js +1 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +1 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +1 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/BaseTimeline.vue +111 -109
- package/timeline/timeline.cjs.js +1 -1
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -1
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +73 -71
- package/toast/Toast.d.ts +14 -0
- package/toast/ToastMessage.vue +3 -2
- package/toast/toast.cjs.js +9 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +10 -5
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +9 -4
- package/toast/toast.min.js +1 -1
- package/toolbar/BaseToolbar.vue +21 -19
- package/toolbar/toolbar.cjs.js +1 -2
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +1 -2
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -2
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +1 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +1 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +1 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tree/BaseTree.vue +82 -80
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +1 -1
- package/tree/tree.cjs.js +8 -6
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +9 -7
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +8 -6
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +51 -49
- package/treeselect/treeselect.cjs.js +1 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +1 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +1 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +169 -167
- package/treetable/BodyCell.vue +1 -1
- package/treetable/TreeTable.d.ts +48 -4
- package/treetable/TreeTable.vue +28 -16
- package/treetable/treetable.cjs.js +66 -18
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +66 -18
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +66 -18
- package/treetable/treetable.min.js +1 -1
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/web-types.json +46 -1
|
@@ -22,12 +22,9 @@ var classes = {
|
|
|
22
22
|
message: 'p-confirm-dialog-message',
|
|
23
23
|
rejectButton: function rejectButton(_ref2) {
|
|
24
24
|
var instance = _ref2.instance;
|
|
25
|
-
return ['p-confirm-dialog-reject', instance.confirmation
|
|
25
|
+
return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
|
|
26
26
|
},
|
|
27
|
-
acceptButton:
|
|
28
|
-
var instance = _ref3.instance;
|
|
29
|
-
return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
|
|
30
|
-
}
|
|
27
|
+
acceptButton: 'p-confirm-dialog-accept'
|
|
31
28
|
};
|
|
32
29
|
var script$1 = {
|
|
33
30
|
name: 'BaseConfirmDialog',
|
|
@@ -177,11 +174,45 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
177
174
|
draggable: _ctx.draggable,
|
|
178
175
|
pt: _ctx.pt,
|
|
179
176
|
unstyled: _ctx.unstyled
|
|
180
|
-
}, {
|
|
181
|
-
|
|
177
|
+
}, vue.createSlots({
|
|
178
|
+
"default": vue.withCtx(function () {
|
|
179
|
+
return [!_ctx.$slots.container ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
180
|
+
key: 0
|
|
181
|
+
}, [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
182
|
+
key: 0
|
|
183
|
+
}, [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
184
|
+
return [_ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
185
|
+
key: 0,
|
|
186
|
+
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
187
|
+
}, null, 8, ["class"])) : $data.confirmation.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
188
|
+
key: 1,
|
|
189
|
+
"class": _ctx.cx('icon')
|
|
190
|
+
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
191
|
+
}), vue.createElementVNode("span", vue.mergeProps({
|
|
192
|
+
"class": _ctx.cx('message')
|
|
193
|
+
}, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
194
|
+
key: 1,
|
|
195
|
+
message: $data.confirmation
|
|
196
|
+
}, null, 8, ["message"]))], 64)) : vue.createCommentVNode("", true)];
|
|
197
|
+
}),
|
|
198
|
+
_: 2
|
|
199
|
+
}, [_ctx.$slots.container ? {
|
|
200
|
+
name: "container",
|
|
201
|
+
fn: vue.withCtx(function (slotProps) {
|
|
202
|
+
return [vue.renderSlot(_ctx.$slots, "container", {
|
|
203
|
+
message: $data.confirmation,
|
|
204
|
+
onClose: slotProps.onClose,
|
|
205
|
+
onAccept: $options.accept,
|
|
206
|
+
onReject: $options.reject
|
|
207
|
+
})];
|
|
208
|
+
}),
|
|
209
|
+
key: "0"
|
|
210
|
+
} : undefined, !_ctx.$slots.container ? {
|
|
211
|
+
name: "footer",
|
|
212
|
+
fn: vue.withCtx(function () {
|
|
182
213
|
return [vue.createVNode(_component_CDButton, {
|
|
183
214
|
label: $options.rejectLabel,
|
|
184
|
-
"class": vue.normalizeClass(_ctx.cx('rejectButton')),
|
|
215
|
+
"class": vue.normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
|
|
185
216
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
186
217
|
return $options.reject();
|
|
187
218
|
}),
|
|
@@ -205,7 +236,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
205
236
|
key: "0"
|
|
206
237
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"]), vue.createVNode(_component_CDButton, {
|
|
207
238
|
label: $options.acceptLabel,
|
|
208
|
-
"class": vue.normalizeClass(_ctx.cx('acceptButton')),
|
|
239
|
+
"class": vue.normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
|
|
209
240
|
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
210
241
|
return $options.accept();
|
|
211
242
|
}),
|
|
@@ -229,26 +260,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
229
260
|
key: "0"
|
|
230
261
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"])];
|
|
231
262
|
}),
|
|
232
|
-
"
|
|
233
|
-
|
|
234
|
-
key: 0
|
|
235
|
-
}, [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
236
|
-
return [_ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
237
|
-
key: 0,
|
|
238
|
-
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
239
|
-
}, null, 8, ["class"])) : $data.confirmation.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
240
|
-
key: 1,
|
|
241
|
-
"class": _ctx.cx('icon')
|
|
242
|
-
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
243
|
-
}), vue.createElementVNode("span", vue.mergeProps({
|
|
244
|
-
"class": _ctx.cx('message')
|
|
245
|
-
}, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
246
|
-
key: 1,
|
|
247
|
-
message: $data.confirmation
|
|
248
|
-
}, null, 8, ["message"]))];
|
|
249
|
-
}),
|
|
250
|
-
_: 3
|
|
251
|
-
}, 8, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
263
|
+
key: "1"
|
|
264
|
+
} : undefined]), 1032, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
252
265
|
}
|
|
253
266
|
|
|
254
267
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/button"),t=require("primevue/confirmationeventbus"),n=require("primevue/dialog"),o=require("primevue/basecomponent"),c=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),a=i(t),s=i(n),l={name:"ConfirmDialog",extends:{name:"BaseConfirmDialog",extends:i(o).default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},css:{classes:{root:"p-confirm-dialog",icon:function(e){var t=e.instance;return["p-confirm-dialog-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-dialog-message",rejectButton:function(e){var t=e.instance;return["p-confirm-dialog-reject",t.confirmation
|
|
1
|
+
"use strict";var e=require("primevue/button"),t=require("primevue/confirmationeventbus"),n=require("primevue/dialog"),o=require("primevue/basecomponent"),c=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),a=i(t),s=i(n),l={name:"ConfirmDialog",extends:{name:"BaseConfirmDialog",extends:i(o).default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},css:{classes:{root:"p-confirm-dialog",icon:function(e){var t=e.instance;return["p-confirm-dialog-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-dialog-message",rejectButton:function(e){var t=e.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"}},provide:function(){return{$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},a.default.on("confirm",this.confirmListener),a.default.on("close",this.closeListener)},beforeUnmount:function(){a.default.off("confirm",this.confirmListener),a.default.off("close",this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},getCXOptions:function(e,t){return{contenxt:{icon:e,iconClass:t.class}}}},computed:{header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return!this.confirmation||this.confirmation.blockScroll},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null},autoFocusAccept:function(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject:function(){return"reject"===this.confirmation.defaultFocus},closeOnEscape:function(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:s.default,CDButton:r.default}};l.render=function(e,t,n,o,i,r){var a=c.resolveComponent("CDButton"),s=c.resolveComponent("CDialog");return c.openBlock(),c.createBlock(s,{visible:i.visible,"onUpdate:visible":[t[2]||(t[2]=function(e){return i.visible=e}),r.onHide],role:"alertdialog",class:c.normalizeClass(e.cx("root")),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,breakpoints:e.breakpoints,closeOnEscape:r.closeOnEscape,draggable:e.draggable,pt:e.pt,unstyled:e.unstyled},c.createSlots({default:c.withCtx((function(){return[e.$slots.container?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[e.$slots.message?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.$slots.icon),{key:0,class:c.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):c.createCommentVNode("",!0)]})),c.createElementVNode("span",c.mergeProps({class:e.cx("message")},e.ptm("message")),c.toDisplayString(r.message),17)],64))],64))]})),_:2},[e.$slots.container?{name:"container",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"container",{message:i.confirmation,onClose:t.onClose,onAccept:r.accept,onReject:r.reject})]})),key:"0"}:void 0,e.$slots.container?void 0:{name:"footer",fn:c.withCtx((function(){return[c.createVNode(a,{label:r.rejectLabel,class:c.normalizeClass([e.cx("rejectButton"),i.confirmation.rejectClass]),onClick:t[0]||(t[0]=function(e){return r.reject()}),autofocus:r.autoFocusReject,unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},c.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"rejecticon",{},(function(){return[c.createElementVNode("span",c.mergeProps({class:[r.rejectIcon,t.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"]),c.createVNode(a,{label:r.acceptLabel,class:c.normalizeClass([e.cx("acceptButton"),i.confirmation.acceptClass]),onClick:t[1]||(t[1]=function(e){return r.accept()}),autofocus:r.autoFocusAccept,unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},c.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"accepticon",{},(function(){return[c.createElementVNode("span",c.mergeProps({class:[r.acceptIcon,t.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"])]})),key:"1"}]),1032,["visible","class","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt","unstyled"])},module.exports=l;
|
|
@@ -2,7 +2,7 @@ import Button from 'primevue/button';
|
|
|
2
2
|
import ConfirmationEventBus from 'primevue/confirmationeventbus';
|
|
3
3
|
import Dialog from 'primevue/dialog';
|
|
4
4
|
import BaseComponent from 'primevue/basecomponent';
|
|
5
|
-
import { resolveComponent, openBlock, createBlock, normalizeClass, withCtx,
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, normalizeClass, createSlots, withCtx, createElementBlock, Fragment, renderSlot, resolveDynamicComponent, mergeProps, createCommentVNode, createElementVNode, toDisplayString, createVNode } from 'vue';
|
|
6
6
|
|
|
7
7
|
var classes = {
|
|
8
8
|
root: 'p-confirm-dialog',
|
|
@@ -13,12 +13,9 @@ var classes = {
|
|
|
13
13
|
message: 'p-confirm-dialog-message',
|
|
14
14
|
rejectButton: function rejectButton(_ref2) {
|
|
15
15
|
var instance = _ref2.instance;
|
|
16
|
-
return ['p-confirm-dialog-reject', instance.confirmation
|
|
16
|
+
return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
|
|
17
17
|
},
|
|
18
|
-
acceptButton:
|
|
19
|
-
var instance = _ref3.instance;
|
|
20
|
-
return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
|
|
21
|
-
}
|
|
18
|
+
acceptButton: 'p-confirm-dialog-accept'
|
|
22
19
|
};
|
|
23
20
|
var script$1 = {
|
|
24
21
|
name: 'BaseConfirmDialog',
|
|
@@ -168,11 +165,45 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
165
|
draggable: _ctx.draggable,
|
|
169
166
|
pt: _ctx.pt,
|
|
170
167
|
unstyled: _ctx.unstyled
|
|
171
|
-
}, {
|
|
172
|
-
|
|
168
|
+
}, createSlots({
|
|
169
|
+
"default": withCtx(function () {
|
|
170
|
+
return [!_ctx.$slots.container ? (openBlock(), createElementBlock(Fragment, {
|
|
171
|
+
key: 0
|
|
172
|
+
}, [!_ctx.$slots.message ? (openBlock(), createElementBlock(Fragment, {
|
|
173
|
+
key: 0
|
|
174
|
+
}, [renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
175
|
+
return [_ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {
|
|
176
|
+
key: 0,
|
|
177
|
+
"class": normalizeClass(_ctx.cx('icon'))
|
|
178
|
+
}, null, 8, ["class"])) : $data.confirmation.icon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
179
|
+
key: 1,
|
|
180
|
+
"class": _ctx.cx('icon')
|
|
181
|
+
}, _ctx.ptm('icon')), null, 16)) : createCommentVNode("", true)];
|
|
182
|
+
}), createElementVNode("span", mergeProps({
|
|
183
|
+
"class": _ctx.cx('message')
|
|
184
|
+
}, _ctx.ptm('message')), toDisplayString($options.message), 17)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {
|
|
185
|
+
key: 1,
|
|
186
|
+
message: $data.confirmation
|
|
187
|
+
}, null, 8, ["message"]))], 64)) : createCommentVNode("", true)];
|
|
188
|
+
}),
|
|
189
|
+
_: 2
|
|
190
|
+
}, [_ctx.$slots.container ? {
|
|
191
|
+
name: "container",
|
|
192
|
+
fn: withCtx(function (slotProps) {
|
|
193
|
+
return [renderSlot(_ctx.$slots, "container", {
|
|
194
|
+
message: $data.confirmation,
|
|
195
|
+
onClose: slotProps.onClose,
|
|
196
|
+
onAccept: $options.accept,
|
|
197
|
+
onReject: $options.reject
|
|
198
|
+
})];
|
|
199
|
+
}),
|
|
200
|
+
key: "0"
|
|
201
|
+
} : undefined, !_ctx.$slots.container ? {
|
|
202
|
+
name: "footer",
|
|
203
|
+
fn: withCtx(function () {
|
|
173
204
|
return [createVNode(_component_CDButton, {
|
|
174
205
|
label: $options.rejectLabel,
|
|
175
|
-
"class": normalizeClass(_ctx.cx('rejectButton')),
|
|
206
|
+
"class": normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
|
|
176
207
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
177
208
|
return $options.reject();
|
|
178
209
|
}),
|
|
@@ -196,7 +227,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
227
|
key: "0"
|
|
197
228
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"]), createVNode(_component_CDButton, {
|
|
198
229
|
label: $options.acceptLabel,
|
|
199
|
-
"class": normalizeClass(_ctx.cx('acceptButton')),
|
|
230
|
+
"class": normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
|
|
200
231
|
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
201
232
|
return $options.accept();
|
|
202
233
|
}),
|
|
@@ -220,26 +251,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
251
|
key: "0"
|
|
221
252
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"])];
|
|
222
253
|
}),
|
|
223
|
-
"
|
|
224
|
-
|
|
225
|
-
key: 0
|
|
226
|
-
}, [renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
227
|
-
return [_ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {
|
|
228
|
-
key: 0,
|
|
229
|
-
"class": normalizeClass(_ctx.cx('icon'))
|
|
230
|
-
}, null, 8, ["class"])) : $data.confirmation.icon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
231
|
-
key: 1,
|
|
232
|
-
"class": _ctx.cx('icon')
|
|
233
|
-
}, _ctx.ptm('icon')), null, 16)) : createCommentVNode("", true)];
|
|
234
|
-
}), createElementVNode("span", mergeProps({
|
|
235
|
-
"class": _ctx.cx('message')
|
|
236
|
-
}, _ctx.ptm('message')), toDisplayString($options.message), 17)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {
|
|
237
|
-
key: 1,
|
|
238
|
-
message: $data.confirmation
|
|
239
|
-
}, null, 8, ["message"]))];
|
|
240
|
-
}),
|
|
241
|
-
_: 3
|
|
242
|
-
}, 8, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
254
|
+
key: "1"
|
|
255
|
+
} : undefined]), 1032, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
243
256
|
}
|
|
244
257
|
|
|
245
258
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"primevue/button";import t from"primevue/confirmationeventbus";import o from"primevue/dialog";import e from"primevue/basecomponent";import{resolveComponent as i,openBlock as c,createBlock as s,normalizeClass as
|
|
1
|
+
import n from"primevue/button";import t from"primevue/confirmationeventbus";import o from"primevue/dialog";import e from"primevue/basecomponent";import{resolveComponent as i,openBlock as c,createBlock as s,normalizeClass as a,createSlots as r,withCtx as l,createElementBlock as u,Fragment as f,renderSlot as m,resolveDynamicComponent as p,mergeProps as d,createCommentVNode as h,createElementVNode as b,toDisplayString as g,createVNode as v}from"vue";var j={name:"ConfirmDialog",extends:{name:"BaseConfirmDialog",extends:e,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},css:{classes:{root:"p-confirm-dialog",icon:function(n){var t=n.instance;return["p-confirm-dialog-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-dialog-message",rejectButton:function(n){var t=n.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"}},provide:function(){return{$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var n=this;this.confirmListener=function(t){t&&t.group===n.group&&(n.confirmation=t,n.confirmation.onShow&&n.confirmation.onShow(),n.visible=!0)},this.closeListener=function(){n.visible=!1,n.confirmation=null},t.on("confirm",this.confirmListener),t.on("close",this.closeListener)},beforeUnmount:function(){t.off("confirm",this.confirmListener),t.off("close",this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},getCXOptions:function(n,t){return{contenxt:{icon:n,iconClass:t.class}}}},computed:{header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return!this.confirmation||this.confirmation.blockScroll},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null},autoFocusAccept:function(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject:function(){return"reject"===this.confirmation.defaultFocus},closeOnEscape:function(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:o,CDButton:n}};j.render=function(n,t,o,e,j,k){var y=i("CDButton"),$=i("CDialog");return c(),s($,{visible:j.visible,"onUpdate:visible":[t[2]||(t[2]=function(n){return j.visible=n}),k.onHide],role:"alertdialog",class:a(n.cx("root")),modal:!0,header:k.header,blockScroll:k.blockScroll,position:k.position,breakpoints:n.breakpoints,closeOnEscape:k.closeOnEscape,draggable:n.draggable,pt:n.pt,unstyled:n.unstyled},r({default:l((function(){return[n.$slots.container?h("",!0):(c(),u(f,{key:0},[n.$slots.message?(c(),s(p(n.$slots.message),{key:1,message:j.confirmation},null,8,["message"])):(c(),u(f,{key:0},[m(n.$slots,"icon",{},(function(){return[n.$slots.icon?(c(),s(p(n.$slots.icon),{key:0,class:a(n.cx("icon"))},null,8,["class"])):j.confirmation.icon?(c(),u("span",d({key:1,class:n.cx("icon")},n.ptm("icon")),null,16)):h("",!0)]})),b("span",d({class:n.cx("message")},n.ptm("message")),g(k.message),17)],64))],64))]})),_:2},[n.$slots.container?{name:"container",fn:l((function(t){return[m(n.$slots,"container",{message:j.confirmation,onClose:t.onClose,onAccept:k.accept,onReject:k.reject})]})),key:"0"}:void 0,n.$slots.container?void 0:{name:"footer",fn:l((function(){return[v(y,{label:k.rejectLabel,class:a([n.cx("rejectButton"),j.confirmation.rejectClass]),onClick:t[0]||(t[0]=function(n){return k.reject()}),autofocus:k.autoFocusReject,unstyled:n.unstyled,pt:n.ptm("rejectButton"),"data-pc-name":"rejectbutton"},r({_:2},[k.rejectIcon||n.$slots.rejecticon?{name:"icon",fn:l((function(t){return[m(n.$slots,"rejecticon",{},(function(){return[b("span",d({class:[k.rejectIcon,t.class]},n.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"]),v(y,{label:k.acceptLabel,class:a([n.cx("acceptButton"),j.confirmation.acceptClass]),onClick:t[1]||(t[1]=function(n){return k.accept()}),autofocus:k.autoFocusAccept,unstyled:n.unstyled,pt:n.ptm("acceptButton"),"data-pc-name":"acceptbutton"},r({_:2},[k.acceptIcon||n.$slots.accepticon?{name:"icon",fn:l((function(t){return[m(n.$slots,"accepticon",{},(function(){return[b("span",d({class:[k.acceptIcon,t.class]},n.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"])]})),key:"1"}]),1032,["visible","class","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt","unstyled"])};export{j as default};
|
|
@@ -18,12 +18,9 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, B
|
|
|
18
18
|
message: 'p-confirm-dialog-message',
|
|
19
19
|
rejectButton: function rejectButton(_ref2) {
|
|
20
20
|
var instance = _ref2.instance;
|
|
21
|
-
return ['p-confirm-dialog-reject', instance.confirmation
|
|
21
|
+
return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
|
|
22
22
|
},
|
|
23
|
-
acceptButton:
|
|
24
|
-
var instance = _ref3.instance;
|
|
25
|
-
return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
|
|
26
|
-
}
|
|
23
|
+
acceptButton: 'p-confirm-dialog-accept'
|
|
27
24
|
};
|
|
28
25
|
var script$1 = {
|
|
29
26
|
name: 'BaseConfirmDialog',
|
|
@@ -173,11 +170,45 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, B
|
|
|
173
170
|
draggable: _ctx.draggable,
|
|
174
171
|
pt: _ctx.pt,
|
|
175
172
|
unstyled: _ctx.unstyled
|
|
176
|
-
}, {
|
|
177
|
-
|
|
173
|
+
}, vue.createSlots({
|
|
174
|
+
"default": vue.withCtx(function () {
|
|
175
|
+
return [!_ctx.$slots.container ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
176
|
+
key: 0
|
|
177
|
+
}, [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
178
|
+
key: 0
|
|
179
|
+
}, [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
180
|
+
return [_ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
181
|
+
key: 0,
|
|
182
|
+
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
183
|
+
}, null, 8, ["class"])) : $data.confirmation.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
184
|
+
key: 1,
|
|
185
|
+
"class": _ctx.cx('icon')
|
|
186
|
+
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
187
|
+
}), vue.createElementVNode("span", vue.mergeProps({
|
|
188
|
+
"class": _ctx.cx('message')
|
|
189
|
+
}, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
190
|
+
key: 1,
|
|
191
|
+
message: $data.confirmation
|
|
192
|
+
}, null, 8, ["message"]))], 64)) : vue.createCommentVNode("", true)];
|
|
193
|
+
}),
|
|
194
|
+
_: 2
|
|
195
|
+
}, [_ctx.$slots.container ? {
|
|
196
|
+
name: "container",
|
|
197
|
+
fn: vue.withCtx(function (slotProps) {
|
|
198
|
+
return [vue.renderSlot(_ctx.$slots, "container", {
|
|
199
|
+
message: $data.confirmation,
|
|
200
|
+
onClose: slotProps.onClose,
|
|
201
|
+
onAccept: $options.accept,
|
|
202
|
+
onReject: $options.reject
|
|
203
|
+
})];
|
|
204
|
+
}),
|
|
205
|
+
key: "0"
|
|
206
|
+
} : undefined, !_ctx.$slots.container ? {
|
|
207
|
+
name: "footer",
|
|
208
|
+
fn: vue.withCtx(function () {
|
|
178
209
|
return [vue.createVNode(_component_CDButton, {
|
|
179
210
|
label: $options.rejectLabel,
|
|
180
|
-
"class": vue.normalizeClass(_ctx.cx('rejectButton')),
|
|
211
|
+
"class": vue.normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
|
|
181
212
|
onClick: _cache[0] || (_cache[0] = function ($event) {
|
|
182
213
|
return $options.reject();
|
|
183
214
|
}),
|
|
@@ -201,7 +232,7 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, B
|
|
|
201
232
|
key: "0"
|
|
202
233
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"]), vue.createVNode(_component_CDButton, {
|
|
203
234
|
label: $options.acceptLabel,
|
|
204
|
-
"class": vue.normalizeClass(_ctx.cx('acceptButton')),
|
|
235
|
+
"class": vue.normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
|
|
205
236
|
onClick: _cache[1] || (_cache[1] = function ($event) {
|
|
206
237
|
return $options.accept();
|
|
207
238
|
}),
|
|
@@ -225,26 +256,8 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, B
|
|
|
225
256
|
key: "0"
|
|
226
257
|
} : undefined]), 1032, ["label", "class", "autofocus", "unstyled", "pt"])];
|
|
227
258
|
}),
|
|
228
|
-
"
|
|
229
|
-
|
|
230
|
-
key: 0
|
|
231
|
-
}, [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
|
|
232
|
-
return [_ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
233
|
-
key: 0,
|
|
234
|
-
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
235
|
-
}, null, 8, ["class"])) : $data.confirmation.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
236
|
-
key: 1,
|
|
237
|
-
"class": _ctx.cx('icon')
|
|
238
|
-
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
239
|
-
}), vue.createElementVNode("span", vue.mergeProps({
|
|
240
|
-
"class": _ctx.cx('message')
|
|
241
|
-
}, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
|
|
242
|
-
key: 1,
|
|
243
|
-
message: $data.confirmation
|
|
244
|
-
}, null, 8, ["message"]))];
|
|
245
|
-
}),
|
|
246
|
-
_: 3
|
|
247
|
-
}, 8, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
259
|
+
key: "1"
|
|
260
|
+
} : undefined]), 1032, ["visible", "class", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt", "unstyled"]);
|
|
248
261
|
}
|
|
249
262
|
|
|
250
263
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.confirmdialog=function(t,n,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.confirmdialog=function(e,t,n,o,c){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),a=i(t),s=i(n),l={name:"ConfirmDialog",extends:{name:"BaseConfirmDialog",extends:i(o).default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},css:{classes:{root:"p-confirm-dialog",icon:function(e){var t=e.instance;return["p-confirm-dialog-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-dialog-message",rejectButton:function(e){var t=e.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"}},provide:function(){return{$parentInstance:this}}},confirmListener:null,closeListener:null,data:function(){return{visible:!1,confirmation:null}},mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},a.default.on("confirm",this.confirmListener),a.default.on("close",this.closeListener)},beforeUnmount:function(){a.default.off("confirm",this.confirmListener),a.default.off("close",this.closeListener)},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},getCXOptions:function(e,t){return{contenxt:{icon:e,iconClass:t.class}}}},computed:{header:function(){return this.confirmation?this.confirmation.header:null},message:function(){return this.confirmation?this.confirmation.message:null},blockScroll:function(){return!this.confirmation||this.confirmation.blockScroll},position:function(){return this.confirmation?this.confirmation.position:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null},autoFocusAccept:function(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject:function(){return"reject"===this.confirmation.defaultFocus},closeOnEscape:function(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:s.default,CDButton:r.default}};return l.render=function(e,t,n,o,i,r){var a=c.resolveComponent("CDButton"),s=c.resolveComponent("CDialog");return c.openBlock(),c.createBlock(s,{visible:i.visible,"onUpdate:visible":[t[2]||(t[2]=function(e){return i.visible=e}),r.onHide],role:"alertdialog",class:c.normalizeClass(e.cx("root")),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,breakpoints:e.breakpoints,closeOnEscape:r.closeOnEscape,draggable:e.draggable,pt:e.pt,unstyled:e.unstyled},c.createSlots({default:c.withCtx((function(){return[e.$slots.container?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[e.$slots.message?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[c.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.$slots.icon),{key:0,class:c.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(c.openBlock(),c.createElementBlock("span",c.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):c.createCommentVNode("",!0)]})),c.createElementVNode("span",c.mergeProps({class:e.cx("message")},e.ptm("message")),c.toDisplayString(r.message),17)],64))],64))]})),_:2},[e.$slots.container?{name:"container",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"container",{message:i.confirmation,onClose:t.onClose,onAccept:r.accept,onReject:r.reject})]})),key:"0"}:void 0,e.$slots.container?void 0:{name:"footer",fn:c.withCtx((function(){return[c.createVNode(a,{label:r.rejectLabel,class:c.normalizeClass([e.cx("rejectButton"),i.confirmation.rejectClass]),onClick:t[0]||(t[0]=function(e){return r.reject()}),autofocus:r.autoFocusReject,unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},c.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"rejecticon",{},(function(){return[c.createElementVNode("span",c.mergeProps({class:[r.rejectIcon,t.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"]),c.createVNode(a,{label:r.acceptLabel,class:c.normalizeClass([e.cx("acceptButton"),i.confirmation.acceptClass]),onClick:t[1]||(t[1]=function(e){return r.accept()}),autofocus:r.autoFocusAccept,unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},c.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:c.withCtx((function(t){return[c.renderSlot(e.$slots,"accepticon",{},(function(){return[c.createElementVNode("span",c.mergeProps({class:[r.acceptIcon,t.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","class","autofocus","unstyled","pt"])]})),key:"1"}]),1032,["visible","class","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt","unstyled"])},l}(primevue.button,primevue.confirmationeventbus,primevue.dialog,primevue.basecomponent,Vue);
|
|
@@ -3,74 +3,76 @@ import BaseComponent from 'primevue/basecomponent';
|
|
|
3
3
|
import { useStyle } from 'primevue/usestyle';
|
|
4
4
|
|
|
5
5
|
const styles = `
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.p-confirm-popup:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.p-confirm-popup-flipped:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
6
|
+
@layer primevue {
|
|
7
|
+
.p-confirm-popup {
|
|
8
|
+
position: absolute;
|
|
9
|
+
margin-top: 10px;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.p-confirm-popup-flipped {
|
|
15
|
+
margin-top: 0;
|
|
16
|
+
margin-bottom: 10px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Animation */
|
|
20
|
+
.p-confirm-popup-enter-from {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transform: scaleY(0.8);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.p-confirm-popup-leave-to {
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.p-confirm-popup-enter-active {
|
|
30
|
+
transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.p-confirm-popup-leave-active {
|
|
34
|
+
transition: opacity 0.1s linear;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.p-confirm-popup:after,
|
|
38
|
+
.p-confirm-popup:before {
|
|
39
|
+
bottom: 100%;
|
|
40
|
+
left: calc(var(--overlayArrowLeft, 0) + 1.25rem);
|
|
41
|
+
content: ' ';
|
|
42
|
+
height: 0;
|
|
43
|
+
width: 0;
|
|
44
|
+
position: absolute;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.p-confirm-popup:after {
|
|
49
|
+
border-width: 8px;
|
|
50
|
+
margin-left: -8px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.p-confirm-popup:before {
|
|
54
|
+
border-width: 10px;
|
|
55
|
+
margin-left: -10px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.p-confirm-popup-flipped:after,
|
|
59
|
+
.p-confirm-popup-flipped:before {
|
|
60
|
+
bottom: auto;
|
|
61
|
+
top: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.p-confirm-popup.p-confirm-popup-flipped:after {
|
|
65
|
+
border-bottom-color: transparent;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-confirm-popup.p-confirm-popup-flipped:before {
|
|
69
|
+
border-bottom-color: transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.p-confirm-popup .p-confirm-popup-content {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
77
|
`;
|
|
76
78
|
|
|
@@ -86,8 +88,8 @@ const classes = {
|
|
|
86
88
|
icon: ({ instance }) => ['p-confirm-popup-icon', instance.confirmation ? instance.confirmation.icon : null],
|
|
87
89
|
message: 'p-confirm-popup-message',
|
|
88
90
|
footer: 'p-confirm-popup-footer',
|
|
89
|
-
rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation
|
|
90
|
-
acceptButton:
|
|
91
|
+
rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null],
|
|
92
|
+
acceptButton: 'p-confirm-dialog-accept'
|
|
91
93
|
};
|
|
92
94
|
|
|
93
95
|
const { load: loadStyle } = useStyle(styles, { name: 'confirmpopup', manual: true });
|
|
@@ -165,6 +165,24 @@ export interface ConfirmPopupSlots {
|
|
|
165
165
|
* Custom icon template.
|
|
166
166
|
*/
|
|
167
167
|
rejecticon(): VNode[];
|
|
168
|
+
/**
|
|
169
|
+
* Custom container slot.
|
|
170
|
+
* @param {Object} scope - container slot's params.
|
|
171
|
+
*/
|
|
172
|
+
container(scope: {
|
|
173
|
+
/**
|
|
174
|
+
* Message of the component
|
|
175
|
+
*/
|
|
176
|
+
message: any;
|
|
177
|
+
/**
|
|
178
|
+
* Accept function of the component
|
|
179
|
+
*/
|
|
180
|
+
onAccept: () => void;
|
|
181
|
+
/**
|
|
182
|
+
* Reject function of the component
|
|
183
|
+
*/
|
|
184
|
+
onReject: () => void;
|
|
185
|
+
}): VNode[];
|
|
168
186
|
}
|
|
169
187
|
|
|
170
188
|
/**
|