primevue 3.31.0 → 3.32.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/accordion/Accordion.d.ts +5 -5
- package/accordion/Accordion.vue +1 -1
- package/accordion/accordion.cjs.js +3 -3
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -3
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -3
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +18 -12
- package/autocomplete/AutoComplete.d.ts +34 -23
- package/autocomplete/AutoComplete.vue +3 -3
- package/autocomplete/BaseAutoComplete.vue +4 -0
- package/autocomplete/autocomplete.cjs.js +9 -5
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +9 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +9 -5
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +7 -7
- package/avatar/Avatar.vue +2 -2
- package/avatar/avatar.cjs.js +2 -2
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -2
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -2
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +3 -3
- package/badge/Badge.d.ts +3 -3
- package/badgedirective/BadgeDirective.d.ts +45 -4
- package/badgedirective/badgedirective.cjs.js +11 -1
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +11 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +11 -1
- package/badgedirective/badgedirective.min.js +1 -1
- package/basecomponent/BaseComponent.vue +51 -25
- package/basecomponent/basecomponent.cjs.js +66 -42
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +66 -42
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +66 -42
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +9 -3
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +9 -3
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +9 -3
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BaseBlockUI.vue +0 -8
- package/blockui/BlockUI.d.ts +7 -3
- package/blockui/BlockUI.vue +35 -10
- package/blockui/blockui.cjs.js +34 -12
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +34 -12
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +34 -12
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +10 -10
- package/button/Button.d.ts +8 -7
- package/button/Button.vue +4 -0
- package/button/button.cjs.js +5 -0
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +5 -0
- package/button/button.esm.min.js +1 -1
- package/button/button.js +5 -0
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +129 -53
- package/calendar/Calendar.vue +49 -7
- package/calendar/calendar.cjs.js +72 -35
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +72 -35
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +72 -35
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +9 -9
- package/carousel/Carousel.d.ts +32 -20
- package/carousel/Carousel.vue +10 -2
- package/carousel/carousel.cjs.js +11 -2
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +11 -2
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +11 -2
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +25 -19
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/cascadeselect.cjs.js +3 -3
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +3 -3
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +5 -5
- package/checkbox/Checkbox.d.ts +8 -8
- package/chip/Chip.d.ts +7 -7
- package/chips/Chips.d.ts +10 -10
- package/colorpicker/ColorPicker.d.ts +18 -11
- package/colorpicker/ColorPicker.vue +1 -1
- package/colorpicker/colorpicker.cjs.js +3 -3
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +3 -3
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +3 -3
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +58 -58
- package/columngroup/ColumnGroup.d.ts +3 -3
- package/config/PrimeVue.d.ts +8 -0
- package/config/config.cjs.js +4 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +4 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +4 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +14 -14
- package/confirmpopup/ConfirmPopup.d.ts +16 -10
- package/confirmpopup/ConfirmPopup.vue +1 -1
- package/confirmpopup/confirmpopup.cjs.js +3 -3
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +4 -4
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +3 -3
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +19 -13
- package/contextmenu/ContextMenu.vue +1 -1
- package/contextmenu/ContextMenuSub.vue +1 -1
- package/contextmenu/contextmenu.cjs.js +6 -6
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +7 -7
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +6 -6
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1958 -1326
- package/core/core.min.js +18 -16
- package/datatable/BaseDataTable.vue +1 -1
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.d.ts +37 -31
- package/datatable/DataTable.vue +4 -1
- package/datatable/datatable.cjs.js +10 -5
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +10 -5
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +10 -5
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +10 -10
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
- package/deferredcontent/DeferredContent.d.ts +3 -3
- package/dialog/BaseDialog.vue +3 -7
- package/dialog/Dialog.d.ts +21 -15
- package/dialog/Dialog.vue +2 -1
- package/dialog/dialog.cjs.js +9 -6
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +9 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +9 -6
- package/dialog/dialog.min.js +1 -1
- package/divider/BaseDivider.vue +9 -24
- package/divider/Divider.d.ts +4 -4
- package/divider/Divider.vue +1 -1
- package/divider/divider.cjs.js +15 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +15 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +15 -2
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +1 -1
- package/dock/Dock.d.ts +9 -9
- package/dock/Dock.vue +19 -2
- package/dock/dock.cjs.js +10 -4
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +10 -4
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +10 -4
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +5 -5
- package/dropdown/Dropdown.d.ts +34 -28
- package/dropdown/Dropdown.vue +2 -2
- package/dropdown/dropdown.cjs.js +9 -9
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +9 -9
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +9 -9
- package/dropdown/dropdown.min.js +1 -1
- package/editor/BaseEditor.vue +0 -14
- package/editor/Editor.d.ts +19 -19
- package/editor/Editor.vue +20 -20
- package/editor/editor.cjs.js +20 -34
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +20 -34
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +20 -34
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +17 -11
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +3 -3
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -3
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +3 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +24 -24
- package/fileupload/FileUpload.vue +4 -4
- package/fileupload/fileupload.cjs.js +10 -4
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +10 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +10 -4
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +5 -5
- package/galleria/Galleria.d.ts +53 -34
- package/galleria/Galleria.vue +1 -1
- package/galleria/GalleriaItem.vue +9 -2
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +14 -5
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +14 -5
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +14 -5
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +28 -21
- package/image/Image.vue +2 -2
- package/image/image.cjs.js +4 -3
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +4 -3
- package/image/image.esm.min.js +1 -1
- package/image/image.js +4 -3
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +5 -5
- package/inplace/Inplace.d.ts +8 -8
- package/inputmask/InputMask.d.ts +32 -4
- package/inputmask/InputMask.vue +9 -1
- package/inputmask/inputmask.cjs.js +9 -1
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +9 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +9 -1
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +10 -10
- package/inputswitch/InputSwitch.d.ts +7 -7
- package/inputtext/InputText.d.ts +3 -3
- package/knob/Knob.d.ts +7 -7
- package/listbox/Listbox.d.ts +18 -18
- package/megamenu/MegaMenu.d.ts +18 -18
- package/megamenu/MegaMenuSub.vue +1 -0
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +20 -14
- package/menu/Menu.vue +1 -1
- package/menu/menu.cjs.js +3 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -3
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +21 -17
- package/menubar/MenubarSub.vue +3 -1
- package/menubar/menubar.cjs.js +4 -2
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +4 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +4 -2
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +18 -12
- package/message/Message.vue +1 -1
- package/message/message.cjs.js +3 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +4 -4
- package/message/message.esm.min.js +1 -1
- package/message/message.js +3 -3
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +47 -41
- package/multiselect/MultiSelect.vue +1 -1
- package/multiselect/multiselect.cjs.js +3 -3
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +3 -3
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +3 -3
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +24 -18
- package/orderlist/OrderList.vue +2 -1
- package/orderlist/orderlist.cjs.js +3 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +15 -15
- package/overlaypanel/OverlayPanel.d.ts +13 -7
- package/overlaypanel/OverlayPanel.vue +2 -1
- package/overlaypanel/overlaypanel.cjs.js +5 -3
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +6 -4
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +5 -3
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +15 -15
- package/paginator/Paginator.d.ts +20 -20
- package/paginator/Paginator.vue +2 -1
- package/paginator/paginator.cjs.js +2 -0
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +3 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -0
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +19 -13
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +3 -3
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +3 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +27 -21
- package/panelmenu/PanelMenu.vue +1 -1
- package/panelmenu/PanelMenuSub.vue +1 -1
- package/panelmenu/panelmenu.cjs.js +6 -6
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +6 -6
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +6 -6
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +74 -0
- package/passthrough/index.cjs.min.js +1 -0
- package/passthrough/index.d.ts +15 -0
- package/passthrough/index.esm.js +70 -0
- package/passthrough/index.esm.min.js +1 -0
- package/passthrough/index.js +77 -0
- package/passthrough/index.min.js +1 -0
- package/passthrough/package.json +6 -0
- package/{tailwind/tailwind.cjs.js → passthrough/tailwind/index.cjs.js} +1268 -828
- package/passthrough/tailwind/index.cjs.min.js +1 -0
- package/{tailwind/Tailwind.d.ts → passthrough/tailwind/index.d.ts} +1 -1
- package/{tailwind/tailwind.esm.js → passthrough/tailwind/index.esm.js} +1265 -828
- package/passthrough/tailwind/index.esm.min.js +1 -0
- package/{tailwind/tailwind.js → passthrough/tailwind/index.js} +1273 -830
- package/passthrough/tailwind/index.min.js +1 -0
- package/passthrough/tailwind/package.json +6 -0
- package/password/Password.d.ts +25 -14
- package/password/Password.vue +2 -1
- package/password/password.cjs.js +4 -3
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +4 -3
- package/password/password.esm.min.js +1 -1
- package/password/password.js +4 -3
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +42 -36
- package/picklist/PickList.vue +3 -2
- package/picklist/picklist.cjs.js +4 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +4 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +4 -2
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +5 -5
- package/progressspinner/ProgressSpinner.d.ts +5 -5
- package/radiobutton/RadioButton.d.ts +10 -10
- package/rating/Rating.d.ts +12 -12
- package/rating/Rating.vue +3 -3
- package/rating/rating.cjs.js +3 -3
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +3 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +3 -3
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +7 -0
- package/resources/themes/arya-green/theme.css +7 -0
- package/resources/themes/arya-orange/theme.css +7 -0
- package/resources/themes/arya-purple/theme.css +7 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +14 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +14 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +14 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +14 -0
- package/resources/themes/fluent-light/theme.css +7 -0
- package/resources/themes/lara-dark-blue/theme.css +7 -0
- package/resources/themes/lara-dark-indigo/theme.css +7 -0
- package/resources/themes/lara-dark-purple/theme.css +7 -0
- package/resources/themes/lara-dark-teal/theme.css +7 -0
- package/resources/themes/lara-light-blue/theme.css +7 -0
- package/resources/themes/lara-light-indigo/theme.css +7 -0
- package/resources/themes/lara-light-purple/theme.css +7 -0
- package/resources/themes/lara-light-teal/theme.css +7 -0
- package/resources/themes/luna-amber/theme.css +7 -0
- package/resources/themes/luna-blue/theme.css +7 -0
- package/resources/themes/luna-green/theme.css +7 -0
- package/resources/themes/luna-pink/theme.css +7 -0
- package/resources/themes/md-dark-deeppurple/theme.css +7 -0
- package/resources/themes/md-dark-indigo/theme.css +7 -0
- package/resources/themes/md-light-deeppurple/theme.css +7 -0
- package/resources/themes/md-light-indigo/theme.css +7 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-dark-indigo/theme.css +7 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-light-indigo/theme.css +7 -0
- package/resources/themes/mira/theme.css +7 -0
- package/resources/themes/nano/theme.css +7 -0
- package/resources/themes/nova/theme.css +7 -0
- package/resources/themes/nova-accent/theme.css +7 -0
- package/resources/themes/nova-alt/theme.css +7 -0
- package/resources/themes/nova-vue/theme.css +7 -0
- package/resources/themes/rhea/theme.css +7 -0
- package/resources/themes/saga-blue/theme.css +7 -0
- package/resources/themes/saga-green/theme.css +7 -0
- package/resources/themes/saga-orange/theme.css +7 -0
- package/resources/themes/saga-purple/theme.css +7 -0
- package/resources/themes/soho-dark/theme.css +7 -0
- package/resources/themes/soho-light/theme.css +7 -0
- package/resources/themes/tailwind-light/theme.css +7 -0
- package/resources/themes/vela-blue/theme.css +7 -0
- package/resources/themes/vela-green/theme.css +7 -0
- package/resources/themes/vela-orange/theme.css +7 -0
- package/resources/themes/vela-purple/theme.css +7 -0
- package/resources/themes/viva-dark/theme.css +7 -0
- package/resources/themes/viva-light/theme.css +7 -0
- package/ripple/Ripple.d.ts +3 -3
- package/row/Row.d.ts +2 -2
- package/scrollpanel/ScrollPanel.d.ts +7 -7
- package/scrolltop/ScrollTop.d.ts +11 -5
- package/scrolltop/ScrollTop.vue +1 -1
- package/scrolltop/scrolltop.cjs.js +3 -3
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +4 -4
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +3 -3
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +5 -5
- package/sidebar/Sidebar.d.ts +16 -10
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -3
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -3
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -3
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +3 -3
- package/slider/Slider.d.ts +7 -7
- package/speeddial/BaseSpeedDial.vue +12 -36
- package/speeddial/SpeedDial.d.ts +14 -9
- package/speeddial/SpeedDial.vue +5 -4
- package/speeddial/speeddial.cjs.js +44 -23
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +44 -23
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -23
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +8 -8
- package/splitbutton/SplitButton.vue +22 -3
- package/splitbutton/splitbutton.cjs.js +17 -5
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +17 -5
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +17 -5
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +16 -5
- package/splitter/Splitter.vue +8 -1
- package/splitter/splitter.cjs.js +9 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +9 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +9 -1
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +3 -3
- package/splitterpanel/SplitterPanel.vue +1 -1
- 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/Steps.d.ts +8 -8
- package/styleclass/StyleClass.d.ts +2 -2
- package/tabmenu/TabMenu.d.ts +9 -9
- package/tabpanel/TabPanel.d.ts +10 -10
- package/tabview/TabView.d.ts +16 -16
- package/tag/Tag.d.ts +5 -5
- package/terminal/Terminal.d.ts +11 -11
- package/textarea/Textarea.d.ts +3 -3
- package/tieredmenu/TieredMenu.d.ts +19 -13
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/tieredmenu.cjs.js +3 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +3 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +3 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +9 -9
- package/toast/BaseToast.vue +4 -0
- package/toast/Toast.d.ts +23 -17
- package/toast/Toast.vue +3 -2
- package/toast/toast.cjs.js +4 -2
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +5 -3
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -2
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +31 -9
- package/togglebutton/ToggleButton.vue +12 -3
- package/togglebutton/togglebutton.cjs.js +12 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +12 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +12 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +6 -6
- package/toolbar/Toolbar.vue +3 -3
- package/toolbar/toolbar.cjs.js +3 -6
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -6
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +3 -6
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +35 -6
- package/tooltip/tooltip.cjs.js +17 -4
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +17 -4
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +413 -400
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +20 -20
- package/tree/Tree.vue +1 -0
- package/tree/tree.cjs.js +3 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -2
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +23 -17
- package/treeselect/TreeSelect.vue +2 -2
- package/treeselect/treeselect.cjs.js +4 -4
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +4 -4
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +4 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +21 -21
- package/treetable/TreeTable.vue +2 -1
- package/treetable/treetable.cjs.js +1 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +1 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
- package/usestyle/UseStyle.d.ts +2 -1
- package/usestyle/usestyle.cjs.js +20 -7
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +20 -7
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +20 -7
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -0
- package/utils/utils.cjs.js +48 -8
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +48 -8
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +48 -8
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +129 -125
- package/vetur-tags.json +1 -0
- package/virtualscroller/BaseVirtualScroller.vue +1 -1
- package/virtualscroller/VirtualScroller.d.ts +7 -7
- package/virtualscroller/virtualscroller.cjs.js +2 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +2 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +2 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +160 -127
- package/tailwind/package.json +0 -6
- package/tailwind/tailwind.cjs.min.js +0 -1
- package/tailwind/tailwind.esm.min.js +0 -1
- package/tailwind/tailwind.min.js +0 -1
package/blockui/BlockUI.vue
CHANGED
|
@@ -35,14 +35,36 @@ export default {
|
|
|
35
35
|
|
|
36
36
|
if (this.fullScreen) {
|
|
37
37
|
styleClass += ' p-blockui-document';
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
|
|
39
|
+
this.mask = DomHandler.createElement('div', {
|
|
40
|
+
'data-pc-section': 'mask',
|
|
41
|
+
style: {
|
|
42
|
+
position: 'fixed',
|
|
43
|
+
top: '0',
|
|
44
|
+
left: '0',
|
|
45
|
+
width: '100%',
|
|
46
|
+
height: '100%'
|
|
47
|
+
},
|
|
48
|
+
class: !this.isUnstyled && styleClass,
|
|
49
|
+
'p-bind': this.ptm('mask')
|
|
50
|
+
});
|
|
51
|
+
|
|
40
52
|
document.body.appendChild(this.mask);
|
|
41
53
|
DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
42
54
|
document.activeElement.blur();
|
|
43
55
|
} else {
|
|
44
|
-
this.mask =
|
|
45
|
-
|
|
56
|
+
this.mask = DomHandler.createElement('div', {
|
|
57
|
+
'data-pc-section': 'mask',
|
|
58
|
+
style: {
|
|
59
|
+
position: 'absolute',
|
|
60
|
+
top: '0',
|
|
61
|
+
left: '0',
|
|
62
|
+
width: '100%',
|
|
63
|
+
height: '100%'
|
|
64
|
+
},
|
|
65
|
+
class: !this.isUnstyled && styleClass,
|
|
66
|
+
'p-bind': this.ptm('mask')
|
|
67
|
+
});
|
|
46
68
|
this.$refs.container.appendChild(this.mask);
|
|
47
69
|
}
|
|
48
70
|
|
|
@@ -55,18 +77,21 @@ export default {
|
|
|
55
77
|
},
|
|
56
78
|
unblock() {
|
|
57
79
|
!this.isUnstyled && DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
58
|
-
|
|
80
|
+
|
|
81
|
+
if (DomHandler.hasCSSAnimation(this.mask) > 0) {
|
|
82
|
+
this.mask.addEventListener('animationend', () => {
|
|
83
|
+
this.removeMask();
|
|
84
|
+
});
|
|
85
|
+
} else {
|
|
59
86
|
this.removeMask();
|
|
60
|
-
}
|
|
87
|
+
}
|
|
61
88
|
},
|
|
62
89
|
removeMask() {
|
|
63
90
|
ZIndexUtils.clear(this.mask);
|
|
64
91
|
|
|
65
92
|
if (this.fullScreen) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
69
|
-
}
|
|
93
|
+
document.body.removeChild(this.mask);
|
|
94
|
+
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
70
95
|
} else {
|
|
71
96
|
this.$refs.container.removeChild(this.mask);
|
|
72
97
|
}
|
package/blockui/blockui.cjs.js
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
|
|
10
10
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
11
11
|
|
|
12
|
-
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui
|
|
12
|
+
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n";
|
|
13
13
|
var classes = {
|
|
14
14
|
root: 'p-blockui-container'
|
|
15
15
|
};
|
|
@@ -75,14 +75,34 @@ var script = {
|
|
|
75
75
|
var styleClass = 'p-blockui p-component-overlay p-component-overlay-enter';
|
|
76
76
|
if (this.fullScreen) {
|
|
77
77
|
styleClass += ' p-blockui-document';
|
|
78
|
-
this.mask =
|
|
79
|
-
|
|
78
|
+
this.mask = utils.DomHandler.createElement('div', {
|
|
79
|
+
'data-pc-section': 'mask',
|
|
80
|
+
style: {
|
|
81
|
+
position: 'fixed',
|
|
82
|
+
top: '0',
|
|
83
|
+
left: '0',
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: '100%'
|
|
86
|
+
},
|
|
87
|
+
"class": !this.isUnstyled && styleClass,
|
|
88
|
+
'p-bind': this.ptm('mask')
|
|
89
|
+
});
|
|
80
90
|
document.body.appendChild(this.mask);
|
|
81
91
|
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
82
92
|
document.activeElement.blur();
|
|
83
93
|
} else {
|
|
84
|
-
this.mask =
|
|
85
|
-
|
|
94
|
+
this.mask = utils.DomHandler.createElement('div', {
|
|
95
|
+
'data-pc-section': 'mask',
|
|
96
|
+
style: {
|
|
97
|
+
position: 'absolute',
|
|
98
|
+
top: '0',
|
|
99
|
+
left: '0',
|
|
100
|
+
width: '100%',
|
|
101
|
+
height: '100%'
|
|
102
|
+
},
|
|
103
|
+
"class": !this.isUnstyled && styleClass,
|
|
104
|
+
'p-bind': this.ptm('mask')
|
|
105
|
+
});
|
|
86
106
|
this.$refs.container.appendChild(this.mask);
|
|
87
107
|
}
|
|
88
108
|
if (this.autoZIndex) {
|
|
@@ -94,17 +114,19 @@ var script = {
|
|
|
94
114
|
unblock: function unblock() {
|
|
95
115
|
var _this = this;
|
|
96
116
|
!this.isUnstyled && utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
97
|
-
this.mask
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
if (utils.DomHandler.hasCSSAnimation(this.mask) > 0) {
|
|
118
|
+
this.mask.addEventListener('animationend', function () {
|
|
119
|
+
_this.removeMask();
|
|
120
|
+
});
|
|
121
|
+
} else {
|
|
122
|
+
this.removeMask();
|
|
123
|
+
}
|
|
100
124
|
},
|
|
101
125
|
removeMask: function removeMask() {
|
|
102
126
|
utils.ZIndexUtils.clear(this.mask);
|
|
103
127
|
if (this.fullScreen) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
107
|
-
}
|
|
128
|
+
document.body.removeChild(this.mask);
|
|
129
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
108
130
|
} else {
|
|
109
131
|
this.$refs.container.removeChild(this.mask);
|
|
110
132
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),
|
|
1
|
+
"use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),o=require("primevue/usestyle"),n=require("vue");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=s(t),a=o.useStyle("\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n",{name:"blockui",manual:!0}),l={name:"BlockUI",extends:{name:"BaseBlockUI",extends:i.default,props:{blocked:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0}},css:{classes:{root:"p-blockui-container"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}},emits:["block","unblock"],mask:null,data:function(){return{isBlocked:!1}},watch:{blocked:function(e){!0===e?this.block():this.unblock()}},mounted:function(){this.blocked&&this.block()},methods:{block:function(){var t="p-blockui p-component-overlay p-component-overlay-enter";this.fullScreen?(t+=" p-blockui-document",this.mask=e.DomHandler.createElement("div",{"data-pc-section":"mask",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&t,"p-bind":this.ptm("mask")}),document.body.appendChild(this.mask),e.DomHandler.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()):(this.mask=e.DomHandler.createElement("div",{"data-pc-section":"mask",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&t,"p-bind":this.ptm("mask")}),this.$refs.container.appendChild(this.mask)),this.autoZIndex&&e.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal),this.isBlocked=!0,this.$emit("block")},unblock:function(){var t=this;!this.isUnstyled&&e.DomHandler.addClass(this.mask,"p-component-overlay-leave"),e.DomHandler.hasCSSAnimation(this.mask)>0?this.mask.addEventListener("animationend",(function(){t.removeMask()})):this.removeMask()},removeMask:function(){e.ZIndexUtils.clear(this.mask),this.fullScreen?(document.body.removeChild(this.mask),e.DomHandler.removeClass(document.body,"p-overflow-hidden")):this.$refs.container.removeChild(this.mask),this.isBlocked=!1,this.$emit("unblock")}}},d=["aria-busy"];l.render=function(e,t,o,s,i,a){return n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"container",class:e.cx("root"),"aria-busy":i.isBlocked},e.ptm("root")),[n.renderSlot(e.$slots,"default")],16,d)},module.exports=l;
|
package/blockui/blockui.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import BaseComponent from 'primevue/basecomponent';
|
|
|
3
3
|
import { useStyle } from 'primevue/usestyle';
|
|
4
4
|
import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
|
|
5
5
|
|
|
6
|
-
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui
|
|
6
|
+
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n";
|
|
7
7
|
var classes = {
|
|
8
8
|
root: 'p-blockui-container'
|
|
9
9
|
};
|
|
@@ -69,14 +69,34 @@ var script = {
|
|
|
69
69
|
var styleClass = 'p-blockui p-component-overlay p-component-overlay-enter';
|
|
70
70
|
if (this.fullScreen) {
|
|
71
71
|
styleClass += ' p-blockui-document';
|
|
72
|
-
this.mask =
|
|
73
|
-
|
|
72
|
+
this.mask = DomHandler.createElement('div', {
|
|
73
|
+
'data-pc-section': 'mask',
|
|
74
|
+
style: {
|
|
75
|
+
position: 'fixed',
|
|
76
|
+
top: '0',
|
|
77
|
+
left: '0',
|
|
78
|
+
width: '100%',
|
|
79
|
+
height: '100%'
|
|
80
|
+
},
|
|
81
|
+
"class": !this.isUnstyled && styleClass,
|
|
82
|
+
'p-bind': this.ptm('mask')
|
|
83
|
+
});
|
|
74
84
|
document.body.appendChild(this.mask);
|
|
75
85
|
DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
76
86
|
document.activeElement.blur();
|
|
77
87
|
} else {
|
|
78
|
-
this.mask =
|
|
79
|
-
|
|
88
|
+
this.mask = DomHandler.createElement('div', {
|
|
89
|
+
'data-pc-section': 'mask',
|
|
90
|
+
style: {
|
|
91
|
+
position: 'absolute',
|
|
92
|
+
top: '0',
|
|
93
|
+
left: '0',
|
|
94
|
+
width: '100%',
|
|
95
|
+
height: '100%'
|
|
96
|
+
},
|
|
97
|
+
"class": !this.isUnstyled && styleClass,
|
|
98
|
+
'p-bind': this.ptm('mask')
|
|
99
|
+
});
|
|
80
100
|
this.$refs.container.appendChild(this.mask);
|
|
81
101
|
}
|
|
82
102
|
if (this.autoZIndex) {
|
|
@@ -88,17 +108,19 @@ var script = {
|
|
|
88
108
|
unblock: function unblock() {
|
|
89
109
|
var _this = this;
|
|
90
110
|
!this.isUnstyled && DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
91
|
-
this.mask
|
|
92
|
-
|
|
93
|
-
|
|
111
|
+
if (DomHandler.hasCSSAnimation(this.mask) > 0) {
|
|
112
|
+
this.mask.addEventListener('animationend', function () {
|
|
113
|
+
_this.removeMask();
|
|
114
|
+
});
|
|
115
|
+
} else {
|
|
116
|
+
this.removeMask();
|
|
117
|
+
}
|
|
94
118
|
},
|
|
95
119
|
removeMask: function removeMask() {
|
|
96
120
|
ZIndexUtils.clear(this.mask);
|
|
97
121
|
if (this.fullScreen) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
101
|
-
}
|
|
122
|
+
document.body.removeChild(this.mask);
|
|
123
|
+
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
102
124
|
} else {
|
|
103
125
|
this.$refs.container.removeChild(this.mask);
|
|
104
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DomHandler as e,ZIndexUtils as t}from"primevue/utils";import o from"primevue/basecomponent";import{useStyle as n}from"primevue/usestyle";import{openBlock as
|
|
1
|
+
import{DomHandler as e,ZIndexUtils as t}from"primevue/utils";import o from"primevue/basecomponent";import{useStyle as n}from"primevue/usestyle";import{openBlock as i,createElementBlock as s,mergeProps as a,renderSlot as l}from"vue";var c=n("\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n",{name:"blockui",manual:!0}),d={name:"BlockUI",extends:{name:"BaseBlockUI",extends:o,props:{blocked:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0}},css:{classes:{root:"p-blockui-container"},loadStyle:c.load},provide:function(){return{$parentInstance:this}}},emits:["block","unblock"],mask:null,data:function(){return{isBlocked:!1}},watch:{blocked:function(e){!0===e?this.block():this.unblock()}},mounted:function(){this.blocked&&this.block()},methods:{block:function(){var o="p-blockui p-component-overlay p-component-overlay-enter";this.fullScreen?(o+=" p-blockui-document",this.mask=e.createElement("div",{"data-pc-section":"mask",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&o,"p-bind":this.ptm("mask")}),document.body.appendChild(this.mask),e.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()):(this.mask=e.createElement("div",{"data-pc-section":"mask",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&o,"p-bind":this.ptm("mask")}),this.$refs.container.appendChild(this.mask)),this.autoZIndex&&t.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal),this.isBlocked=!0,this.$emit("block")},unblock:function(){var t=this;!this.isUnstyled&&e.addClass(this.mask,"p-component-overlay-leave"),e.hasCSSAnimation(this.mask)>0?this.mask.addEventListener("animationend",(function(){t.removeMask()})):this.removeMask()},removeMask:function(){t.clear(this.mask),this.fullScreen?(document.body.removeChild(this.mask),e.removeClass(document.body,"p-overflow-hidden")):this.$refs.container.removeChild(this.mask),this.isBlocked=!1,this.$emit("unblock")}}},m=["aria-busy"];d.render=function(e,t,o,n,c,d){return i(),s("div",a({ref:"container",class:e.cx("root"),"aria-busy":c.isBlocked},e.ptm("root")),[l(e.$slots,"default")],16,m)};export{d as default};
|
package/blockui/blockui.js
CHANGED
|
@@ -6,7 +6,7 @@ this.primevue.blockui = (function (utils, BaseComponent, usestyle, vue) {
|
|
|
6
6
|
|
|
7
7
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
8
|
|
|
9
|
-
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui
|
|
9
|
+
var styles = "\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n";
|
|
10
10
|
var classes = {
|
|
11
11
|
root: 'p-blockui-container'
|
|
12
12
|
};
|
|
@@ -72,14 +72,34 @@ this.primevue.blockui = (function (utils, BaseComponent, usestyle, vue) {
|
|
|
72
72
|
var styleClass = 'p-blockui p-component-overlay p-component-overlay-enter';
|
|
73
73
|
if (this.fullScreen) {
|
|
74
74
|
styleClass += ' p-blockui-document';
|
|
75
|
-
this.mask =
|
|
76
|
-
|
|
75
|
+
this.mask = utils.DomHandler.createElement('div', {
|
|
76
|
+
'data-pc-section': 'mask',
|
|
77
|
+
style: {
|
|
78
|
+
position: 'fixed',
|
|
79
|
+
top: '0',
|
|
80
|
+
left: '0',
|
|
81
|
+
width: '100%',
|
|
82
|
+
height: '100%'
|
|
83
|
+
},
|
|
84
|
+
"class": !this.isUnstyled && styleClass,
|
|
85
|
+
'p-bind': this.ptm('mask')
|
|
86
|
+
});
|
|
77
87
|
document.body.appendChild(this.mask);
|
|
78
88
|
utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
79
89
|
document.activeElement.blur();
|
|
80
90
|
} else {
|
|
81
|
-
this.mask =
|
|
82
|
-
|
|
91
|
+
this.mask = utils.DomHandler.createElement('div', {
|
|
92
|
+
'data-pc-section': 'mask',
|
|
93
|
+
style: {
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
top: '0',
|
|
96
|
+
left: '0',
|
|
97
|
+
width: '100%',
|
|
98
|
+
height: '100%'
|
|
99
|
+
},
|
|
100
|
+
"class": !this.isUnstyled && styleClass,
|
|
101
|
+
'p-bind': this.ptm('mask')
|
|
102
|
+
});
|
|
83
103
|
this.$refs.container.appendChild(this.mask);
|
|
84
104
|
}
|
|
85
105
|
if (this.autoZIndex) {
|
|
@@ -91,17 +111,19 @@ this.primevue.blockui = (function (utils, BaseComponent, usestyle, vue) {
|
|
|
91
111
|
unblock: function unblock() {
|
|
92
112
|
var _this = this;
|
|
93
113
|
!this.isUnstyled && utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
94
|
-
this.mask
|
|
95
|
-
|
|
96
|
-
|
|
114
|
+
if (utils.DomHandler.hasCSSAnimation(this.mask) > 0) {
|
|
115
|
+
this.mask.addEventListener('animationend', function () {
|
|
116
|
+
_this.removeMask();
|
|
117
|
+
});
|
|
118
|
+
} else {
|
|
119
|
+
this.removeMask();
|
|
120
|
+
}
|
|
97
121
|
},
|
|
98
122
|
removeMask: function removeMask() {
|
|
99
123
|
utils.ZIndexUtils.clear(this.mask);
|
|
100
124
|
if (this.fullScreen) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
104
|
-
}
|
|
125
|
+
document.body.removeChild(this.mask);
|
|
126
|
+
utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
105
127
|
} else {
|
|
106
128
|
this.$refs.container.removeChild(this.mask);
|
|
107
129
|
}
|
package/blockui/blockui.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.blockui=function(e,t,n,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t),
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.blockui=function(e,t,n,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t),a=n.useStyle("\n.p-blockui-container {\n position: relative;\n}\n\n.p-blockui.p-component-overlay {\n position: absolute;\n}\n\n.p-blockui-document.p-component-overlay {\n position: fixed;\n}\n",{name:"blockui",manual:!0}),l={name:"BlockUI",extends:{name:"BaseBlockUI",extends:s.default,props:{blocked:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0}},css:{classes:{root:"p-blockui-container"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}},emits:["block","unblock"],mask:null,data:function(){return{isBlocked:!1}},watch:{blocked:function(e){!0===e?this.block():this.unblock()}},mounted:function(){this.blocked&&this.block()},methods:{block:function(){var t="p-blockui p-component-overlay p-component-overlay-enter";this.fullScreen?(t+=" p-blockui-document",this.mask=e.DomHandler.createElement("div",{"data-pc-section":"mask",style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&t,"p-bind":this.ptm("mask")}),document.body.appendChild(this.mask),e.DomHandler.addClass(document.body,"p-overflow-hidden"),document.activeElement.blur()):(this.mask=e.DomHandler.createElement("div",{"data-pc-section":"mask",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},class:!this.isUnstyled&&t,"p-bind":this.ptm("mask")}),this.$refs.container.appendChild(this.mask)),this.autoZIndex&&e.ZIndexUtils.set("modal",this.mask,this.baseZIndex+this.$primevue.config.zIndex.modal),this.isBlocked=!0,this.$emit("block")},unblock:function(){var t=this;!this.isUnstyled&&e.DomHandler.addClass(this.mask,"p-component-overlay-leave"),e.DomHandler.hasCSSAnimation(this.mask)>0?this.mask.addEventListener("animationend",(function(){t.removeMask()})):this.removeMask()},removeMask:function(){e.ZIndexUtils.clear(this.mask),this.fullScreen?(document.body.removeChild(this.mask),e.DomHandler.removeClass(document.body,"p-overflow-hidden")):this.$refs.container.removeChild(this.mask),this.isBlocked=!1,this.$emit("unblock")}}},d=["aria-busy"];return l.render=function(e,t,n,i,s,a){return o.openBlock(),o.createElementBlock("div",o.mergeProps({ref:"container",class:e.cx("root"),"aria-busy":s.isBlocked},e.ptm("root")),[o.renderSlot(e.$slots,"default")],16,d)},l}(primevue.utils,primevue.basecomponent,primevue.usestyle,Vue);
|
|
@@ -29,39 +29,39 @@ export interface BreadcrumbPassThroughMethodOptions {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface BreadcrumbPassThroughOptions {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Used to pass attributes to the root's DOM element.
|
|
33
33
|
*/
|
|
34
34
|
root?: BreadcrumbPassThroughOptionType;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Used to pass attributes to the list's DOM element.
|
|
37
37
|
*/
|
|
38
38
|
menu?: BreadcrumbPassThroughOptionType;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Used to pass attributes to the list item's DOM element.
|
|
41
41
|
*/
|
|
42
42
|
menuitem?: BreadcrumbPassThroughOptionType;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Used to pass attributes to the action's DOM element.
|
|
45
45
|
*/
|
|
46
46
|
action?: BreadcrumbPassThroughOptionType;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Used to pass attributes to the icon's DOM element.
|
|
49
49
|
*/
|
|
50
50
|
icon?: BreadcrumbPassThroughOptionType;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Used to pass attributes to the label's DOM element.
|
|
53
53
|
*/
|
|
54
54
|
label?: BreadcrumbPassThroughOptionType;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Used to pass attributes to the separator's DOM element.
|
|
57
57
|
*/
|
|
58
58
|
separator?: BreadcrumbPassThroughOptionType;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Used to pass attributes to the separator icon's DOM element.
|
|
61
61
|
*/
|
|
62
62
|
separatorIcon?: BreadcrumbPassThroughOptionType;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Used to manage all lifecycle hooks
|
|
65
65
|
* @see {@link BaseComponent.ComponentHooks}
|
|
66
66
|
*/
|
|
67
67
|
hooks?: ComponentHooks;
|
|
@@ -114,7 +114,7 @@ export interface BreadcrumbProps {
|
|
|
114
114
|
*/
|
|
115
115
|
'aria-labelledby'?: string | undefined;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
118
118
|
* @type {BreadcrumbPassThroughOptions}
|
|
119
119
|
*/
|
|
120
120
|
pt?: BreadcrumbPassThroughOptions;
|
package/button/Button.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface ButtonPassThroughMethodOptions {
|
|
|
20
20
|
instance: any;
|
|
21
21
|
props: ButtonProps;
|
|
22
22
|
context: ButtonContext;
|
|
23
|
+
parent: any;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -28,27 +29,27 @@ export interface ButtonPassThroughMethodOptions {
|
|
|
28
29
|
*/
|
|
29
30
|
export interface ButtonPassThroughOptions {
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Used to pass attributes to the root's DOM element.
|
|
32
33
|
*/
|
|
33
34
|
root?: ButtonPassThroughOptionType;
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* Used to pass attributes to the loading icon's DOM element.
|
|
36
37
|
*/
|
|
37
38
|
loadingIcon?: ButtonPassThroughOptionType;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Used to pass attributes to the icon's DOM element.
|
|
40
41
|
*/
|
|
41
42
|
icon?: ButtonPassThroughOptionType;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Used to pass attributes to the label's DOM element.
|
|
44
45
|
*/
|
|
45
46
|
label?: ButtonPassThroughOptionType;
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* Used to pass attributes to the badge's DOM element.
|
|
48
49
|
*/
|
|
49
50
|
badge?: ButtonPassThroughOptionType;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Used to manage all lifecycle hooks
|
|
52
53
|
* @see {@link BaseComponent.ComponentHooks}
|
|
53
54
|
*/
|
|
54
55
|
hooks?: ComponentHooks;
|
|
@@ -146,7 +147,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|
|
146
147
|
*/
|
|
147
148
|
plain?: boolean | undefined;
|
|
148
149
|
/**
|
|
149
|
-
*
|
|
150
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
150
151
|
* @type {ButtonPassThroughOptions}
|
|
151
152
|
*/
|
|
152
153
|
pt?: ButtonPassThroughOptions;
|
package/button/Button.vue
CHANGED
package/button/button.cjs.js
CHANGED
|
@@ -127,7 +127,12 @@ var script = {
|
|
|
127
127
|
"extends": script$1,
|
|
128
128
|
methods: {
|
|
129
129
|
getPTOptions: function getPTOptions(key) {
|
|
130
|
+
var _this$$parent, _this$$parent2;
|
|
130
131
|
return this.ptm(key, {
|
|
132
|
+
parent: {
|
|
133
|
+
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
134
|
+
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
135
|
+
},
|
|
131
136
|
context: {
|
|
132
137
|
disabled: this.disabled
|
|
133
138
|
}
|
package/button/button.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),o=require("primevue/basecomponent"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=
|
|
1
|
+
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),o=require("primevue/basecomponent"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass(e.cx("icon"))},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},module.exports=b;
|
package/button/button.esm.js
CHANGED
|
@@ -118,7 +118,12 @@ var script = {
|
|
|
118
118
|
"extends": script$1,
|
|
119
119
|
methods: {
|
|
120
120
|
getPTOptions: function getPTOptions(key) {
|
|
121
|
+
var _this$$parent, _this$$parent2;
|
|
121
122
|
return this.ptm(key, {
|
|
123
|
+
parent: {
|
|
124
|
+
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
125
|
+
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
126
|
+
},
|
|
122
127
|
context: {
|
|
123
128
|
disabled: this.disabled
|
|
124
129
|
}
|
package/button/button.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/badge";import n from"primevue/icons/spinner";import e from"primevue/ripple";import o from"primevue/basecomponent";import{resolveComponent as l,resolveDirective as i,withDirectives as a,openBlock as r,createElementBlock as s,mergeProps as u,renderSlot as
|
|
1
|
+
import t from"primevue/badge";import n from"primevue/icons/spinner";import e from"primevue/ripple";import o from"primevue/basecomponent";import{resolveComponent as l,resolveDirective as i,withDirectives as a,openBlock as r,createElementBlock as s,mergeProps as u,renderSlot as p,normalizeClass as d,createBlock as c,createCommentVNode as b,createElementVNode as f,toDisplayString as g}from"vue";function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function m(t,n,e){return(n=v(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function v(t){var n=h(t,"string");return"symbol"===y(n)?n:String(n)}function h(t,n){if("object"!==y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var S={name:"Button",extends:{name:"BaseButton",extends:o,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(t){var n,e=t.instance,o=t.props;return["p-button p-component",(n={"p-button-icon-only":e.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":e.$attrs.disabled||""===e.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!e.hasIcon&&o.label,"p-button-link":o.link},m(n,"p-button-".concat(o.severity),o.severity),m(n,"p-button-raised",o.raised),m(n,"p-button-rounded",o.rounded),m(n,"p-button-text",o.text),m(n,"p-button-outlined",o.outlined),m(n,"p-button-sm","small"===o.size),m(n,"p-button-lg","large"===o.size),m(n,"p-button-plain",o.plain),n)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var n=t.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&n.label,"p-button-icon-right":"right"===n.iconPos&&n.label,"p-button-icon-top":"top"===n.iconPos&&n.label,"p-button-icon-bottom":"bottom"===n.iconPos&&n.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(t){var n,e;return this.ptm(t,{parent:{props:null===(n=this.$parent)||void 0===n?void 0:n.$props,state:null===(e=this.$parent)||void 0===e?void 0:e.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:n,Badge:t},directives:{ripple:e}},x=["aria-label","disabled","data-pc-severity"];S.render=function(t,n,e,o,y,m){var v=l("SpinnerIcon"),h=l("Badge"),S=i("ripple");return a((r(),s("button",u({class:t.cx("root"),type:"button","aria-label":m.defaultAriaLabel,disabled:m.disabled},m.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":t.severity}),[p(t.$slots,"default",{},(function(){return[t.loading?p(t.$slots,"loadingicon",{key:0,class:d([t.cx("loadingIcon"),t.cx("icon")])},(function(){return[t.loadingIcon?(r(),s("span",u({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(r(),c(v,u({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]})):p(t.$slots,"icon",{key:1,class:d(t.cx("icon"))},(function(){return[t.icon?(r(),s("span",u({key:0,class:[t.cx("icon"),t.icon]},t.ptm("icon")),null,16)):b("",!0)]})),f("span",u({class:t.cx("label")},t.ptm("label")),g(t.label||" "),17),t.badge?(r(),c(h,u({key:2,value:t.badge,class:t.badgeClass,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","unstyled"])):b("",!0)]}))],16,x)),[[S]])};export{S as default};
|
package/button/button.js
CHANGED
|
@@ -123,7 +123,12 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, vue
|
|
|
123
123
|
"extends": script$1,
|
|
124
124
|
methods: {
|
|
125
125
|
getPTOptions: function getPTOptions(key) {
|
|
126
|
+
var _this$$parent, _this$$parent2;
|
|
126
127
|
return this.ptm(key, {
|
|
128
|
+
parent: {
|
|
129
|
+
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
130
|
+
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
131
|
+
},
|
|
127
132
|
context: {
|
|
128
133
|
disabled: this.disabled
|
|
129
134
|
}
|
package/button/button.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,o,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];return b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass(e.cx("icon"))},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},b}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,o,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];return b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass(e.cx("icon"))},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},b}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,Vue);
|