primevue 3.27.0 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/autocomplete/AutoComplete.d.ts +10 -1
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +4 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +4 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +4 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +44 -0
- package/avatar/Avatar.vue +10 -8
- package/avatar/avatar.cjs.js +36 -34
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +33 -35
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +37 -36
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +27 -1
- package/avatargroup/AvatarGroup.vue +5 -2
- package/avatargroup/avatargroup.cjs.js +9 -5
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +6 -6
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +10 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +32 -0
- package/badge/Badge.vue +3 -1
- package/badge/badge.cjs.js +8 -4
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +5 -5
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +9 -6
- package/badge/badge.min.js +1 -1
- package/basecomponent/BaseComponent.vue +10 -3
- package/basecomponent/basecomponent.cjs.js +10 -3
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +10 -3
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +10 -3
- package/basecomponent/basecomponent.min.js +1 -1
- package/baseicon/BaseIcon.vue +2 -2
- package/baseicon/baseicon.cjs.js +2 -2
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +2 -2
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +2 -2
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.d.ts +44 -0
- package/blockui/BlockUI.vue +3 -1
- package/blockui/blockui.cjs.js +9 -3
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +6 -4
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +10 -5
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +60 -0
- package/breadcrumb/Breadcrumb.vue +8 -6
- package/breadcrumb/BreadcrumbItem.vue +14 -10
- package/breadcrumb/breadcrumb.cjs.js +53 -51
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +53 -52
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +54 -53
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +48 -0
- package/button/Button.vue +10 -9
- package/button/button.cjs.js +43 -44
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +43 -45
- package/button/button.esm.min.js +1 -1
- package/button/button.js +44 -46
- package/button/button.min.js +1 -1
- package/chart/Chart.d.ts +36 -0
- package/chart/Chart.vue +5 -2
- package/chart/chart.cjs.js +10 -5
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +7 -6
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +11 -7
- package/chart/chart.min.js +1 -1
- package/chip/Chip.d.ts +60 -0
- package/chip/Chip.vue +10 -9
- package/chip/chip.cjs.js +35 -36
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +35 -37
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +36 -38
- package/chip/chip.min.js +1 -1
- package/config/PrimeVue.d.ts +8 -0
- package/config/config.cjs.js +3 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +3 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +3 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +88 -0
- package/confirmdialog/ConfirmDialog.vue +9 -6
- package/confirmdialog/confirmdialog.cjs.js +22 -18
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +22 -19
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +23 -20
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +75 -0
- package/confirmpopup/ConfirmPopup.vue +11 -9
- package/confirmpopup/confirmpopup.cjs.js +27 -25
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +27 -26
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +28 -27
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +135 -0
- package/contextmenu/ContextMenu.vue +4 -1
- package/contextmenu/ContextMenuSub.vue +46 -10
- package/contextmenu/contextmenu.cjs.js +57 -46
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +57 -47
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +58 -48
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +278 -246
- package/core/core.min.js +11 -11
- package/dialog/Dialog.d.ts +87 -0
- package/dialog/Dialog.vue +23 -10
- package/dialog/dialog.cjs.js +31 -30
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +31 -31
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +32 -32
- package/dialog/dialog.min.js +1 -1
- package/dock/Dock.d.ts +94 -0
- package/dock/Dock.vue +4 -2
- package/dock/DockSub.vue +30 -6
- package/dock/dock.cjs.js +52 -39
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +52 -40
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +53 -41
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.vue +1 -1
- package/dropdown/dropdown.cjs.js +1 -1
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -1
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.vue +3 -1
- package/dynamicdialog/dynamicdialog.cjs.js +5 -1
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +4 -1
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +6 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/fileupload/FileContent.vue +11 -9
- package/fileupload/FileUpload.d.ts +154 -0
- package/fileupload/FileUpload.vue +26 -24
- package/fileupload/fileupload.cjs.js +100 -97
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +100 -98
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +101 -99
- package/fileupload/fileupload.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +52 -0
- package/inlinemessage/InlineMessage.vue +7 -3
- package/inlinemessage/inlinemessage.cjs.js +12 -11
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +12 -12
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +13 -13
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/Inplace.d.ts +59 -0
- package/inplace/Inplace.vue +7 -5
- package/inplace/inplace.cjs.js +17 -16
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +17 -17
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +18 -18
- package/inplace/inplace.min.js +1 -1
- package/listbox/Listbox.d.ts +1 -1
- package/megamenu/MegaMenu.d.ts +149 -0
- package/megamenu/MegaMenu.vue +6 -3
- package/megamenu/MegaMenuSub.vue +43 -15
- package/megamenu/megamenu.cjs.js +83 -75
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +83 -76
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +84 -77
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +113 -0
- package/menu/Menu.vue +11 -8
- package/menu/Menuitem.vue +20 -8
- package/menu/menu.cjs.js +73 -62
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +73 -63
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +74 -64
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +146 -0
- package/menubar/Menubar.vue +8 -5
- package/menubar/MenubarSub.vue +38 -10
- package/menubar/menubar.cjs.js +70 -60
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +70 -61
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +71 -62
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +64 -1
- package/message/Message.vue +9 -7
- package/message/message.cjs.js +22 -21
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +22 -22
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -23
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +1 -1
- package/overlaypanel/OverlayPanel.d.ts +56 -0
- package/overlaypanel/OverlayPanel.vue +6 -4
- package/overlaypanel/overlaypanel.cjs.js +13 -10
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +13 -11
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +14 -12
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/panel/Panel.d.ts +10 -1
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +4 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +4 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +4 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +133 -0
- package/panelmenu/PanelMenu.vue +36 -13
- package/panelmenu/PanelMenuList.vue +3 -0
- package/panelmenu/PanelMenuSub.vue +33 -12
- package/panelmenu/panelmenu.cjs.js +115 -96
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +115 -97
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +116 -98
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.vue +2 -2
- package/password/password.cjs.js +2 -2
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -2
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -2
- package/password/password.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +40 -0
- package/progressbar/ProgressBar.vue +8 -5
- package/progressbar/progressbar.cjs.js +25 -23
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +22 -24
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -25
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +40 -0
- package/progressspinner/ProgressSpinner.vue +6 -3
- package/progressspinner/progressspinner.cjs.js +18 -13
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +15 -14
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +19 -15
- package/progressspinner/progressspinner.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +1 -1
- package/resources/themes/arya-green/theme.css +1 -1
- package/resources/themes/arya-orange/theme.css +1 -1
- package/resources/themes/arya-purple/theme.css +1 -1
- package/resources/themes/bootstrap4-dark-blue/theme.css +1 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +1 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +1 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +1 -1
- package/resources/themes/fluent-light/theme.css +1 -1
- package/resources/themes/lara-dark-blue/theme.css +1 -1
- package/resources/themes/lara-dark-indigo/theme.css +1 -1
- package/resources/themes/lara-dark-purple/theme.css +1 -1
- package/resources/themes/lara-dark-teal/theme.css +1 -1
- package/resources/themes/lara-light-blue/theme.css +1 -1
- package/resources/themes/lara-light-indigo/theme.css +1 -1
- package/resources/themes/lara-light-purple/theme.css +1 -1
- package/resources/themes/lara-light-teal/theme.css +1 -1
- package/resources/themes/luna-amber/theme.css +1 -1
- package/resources/themes/luna-blue/theme.css +1 -1
- package/resources/themes/luna-green/theme.css +1 -1
- package/resources/themes/luna-pink/theme.css +1 -1
- package/resources/themes/md-dark-deeppurple/theme.css +4 -1
- package/resources/themes/md-dark-indigo/theme.css +4 -1
- package/resources/themes/md-light-deeppurple/theme.css +4 -1
- package/resources/themes/md-light-indigo/theme.css +4 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -1
- package/resources/themes/mdc-dark-indigo/theme.css +4 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -1
- package/resources/themes/mdc-light-indigo/theme.css +4 -1
- package/resources/themes/mira/theme.css +1 -1
- package/resources/themes/nano/theme.css +1 -1
- package/resources/themes/nova/theme.css +1 -1
- package/resources/themes/nova-accent/theme.css +1 -1
- package/resources/themes/nova-alt/theme.css +1 -1
- package/resources/themes/nova-vue/theme.css +1 -1
- package/resources/themes/rhea/theme.css +1 -1
- package/resources/themes/saga-blue/theme.css +1 -1
- package/resources/themes/saga-green/theme.css +1 -1
- package/resources/themes/saga-orange/theme.css +1 -1
- package/resources/themes/saga-purple/theme.css +1 -1
- package/resources/themes/soho-dark/theme.css +1 -1
- package/resources/themes/soho-light/theme.css +1 -1
- package/resources/themes/tailwind-light/theme.css +1 -1
- package/resources/themes/vela-blue/theme.css +1 -1
- package/resources/themes/vela-green/theme.css +1 -1
- package/resources/themes/vela-orange/theme.css +1 -1
- package/resources/themes/vela-purple/theme.css +1 -1
- package/resources/themes/viva-dark/theme.css +1 -1
- package/resources/themes/viva-light/theme.css +1 -1
- package/scrolltop/ScrollTop.d.ts +48 -0
- package/scrolltop/ScrollTop.vue +5 -2
- package/scrolltop/scrolltop.cjs.js +10 -7
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +10 -8
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +11 -9
- package/scrolltop/scrolltop.min.js +1 -1
- package/sidebar/Sidebar.d.ts +68 -0
- package/sidebar/Sidebar.vue +9 -7
- package/sidebar/sidebar.cjs.js +26 -24
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +26 -25
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +27 -26
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +32 -0
- package/skeleton/Skeleton.vue +4 -1
- package/skeleton/skeleton.cjs.js +10 -4
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +7 -5
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +11 -6
- package/skeleton/skeleton.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +101 -0
- package/speeddial/SpeedDial.vue +31 -8
- package/speeddial/speeddial.cjs.js +47 -33
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +47 -34
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +48 -35
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +64 -0
- package/splitbutton/SplitButton.vue +8 -5
- package/splitbutton/splitbutton.cjs.js +23 -18
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +23 -19
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +24 -20
- package/splitbutton/splitbutton.min.js +1 -1
- package/steps/Steps.d.ts +52 -0
- package/steps/Steps.vue +11 -8
- package/steps/steps.cjs.js +34 -33
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +31 -34
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +35 -35
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +79 -0
- package/tabmenu/TabMenu.vue +20 -10
- package/tabmenu/tabmenu.cjs.js +47 -41
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +47 -42
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +48 -43
- package/tabmenu/tabmenu.min.js +1 -1
- package/tag/Tag.d.ts +40 -0
- package/tag/Tag.vue +7 -4
- package/tag/tag.cjs.js +14 -12
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +11 -13
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +15 -14
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +79 -0
- package/terminal/Terminal.vue +12 -10
- package/terminal/terminal.cjs.js +23 -28
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +23 -29
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +24 -30
- package/terminal/terminal.min.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +130 -0
- package/tieredmenu/TieredMenu.vue +4 -1
- package/tieredmenu/TieredMenuSub.vue +39 -11
- package/tieredmenu/tieredmenu.cjs.js +53 -41
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +53 -42
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +54 -43
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/Toast.d.ts +79 -0
- package/toast/Toast.vue +4 -1
- package/toast/ToastMessage.vue +12 -10
- package/toast/toast.cjs.js +31 -31
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +31 -32
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +32 -33
- package/toast/toast.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +1 -2
- package/vetur-attributes.json +160 -0
- package/vetur-tags.json +79 -34
- package/web-types.json +404 -2
package/breadcrumb/breadcrumb.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
2
|
+
this.primevue.breadcrumb = (function (BaseComponent, ChevronRightIcon, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
7
8
|
var ChevronRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightIcon);
|
|
8
9
|
|
|
9
10
|
var script$1 = {
|
|
10
11
|
name: 'BreadcrumbItem',
|
|
12
|
+
extends: BaseComponent__default["default"],
|
|
11
13
|
props: {
|
|
12
14
|
item: null,
|
|
13
15
|
templates: null,
|
|
14
|
-
exact: null
|
|
16
|
+
exact: null,
|
|
17
|
+
index: null
|
|
15
18
|
},
|
|
16
19
|
methods: {
|
|
17
20
|
onClick(event, navigate) {
|
|
@@ -56,26 +59,18 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
|
|
59
|
-
const _hoisted_1
|
|
60
|
-
const _hoisted_2
|
|
61
|
-
key: 2,
|
|
62
|
-
class: "p-menuitem-text"
|
|
63
|
-
};
|
|
64
|
-
const _hoisted_3$1 = ["href", "target", "aria-current"];
|
|
65
|
-
const _hoisted_4 = {
|
|
66
|
-
key: 2,
|
|
67
|
-
class: "p-menuitem-text"
|
|
68
|
-
};
|
|
62
|
+
const _hoisted_1 = ["href", "aria-current", "onClick"];
|
|
63
|
+
const _hoisted_2 = ["href", "target", "aria-current"];
|
|
69
64
|
|
|
70
65
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
71
66
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
72
67
|
|
|
73
68
|
return ($options.visible())
|
|
74
|
-
? (vue.openBlock(), vue.createElementBlock("li", {
|
|
69
|
+
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
75
70
|
key: 0,
|
|
76
|
-
class:
|
|
77
|
-
}, [
|
|
78
|
-
(!$props.templates.item)
|
|
71
|
+
class: $options.containerClass()
|
|
72
|
+
}, _ctx.ptm('menuitem')), [
|
|
73
|
+
(!$props.templates || !$props.templates.item)
|
|
79
74
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
80
75
|
($props.item.to)
|
|
81
76
|
? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
@@ -84,12 +79,12 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
84
79
|
custom: ""
|
|
85
80
|
}, {
|
|
86
81
|
default: vue.withCtx(({ navigate, href, isActive, isExactActive }) => [
|
|
87
|
-
vue.createElementVNode("a", {
|
|
82
|
+
vue.createElementVNode("a", vue.mergeProps({
|
|
88
83
|
href: href,
|
|
89
|
-
class:
|
|
84
|
+
class: $options.linkClass({ isActive, isExactActive }),
|
|
90
85
|
"aria-current": $options.isCurrentUrl(),
|
|
91
86
|
onClick: $event => ($options.onClick($event, navigate))
|
|
92
|
-
}, [
|
|
87
|
+
}, _ctx.ptm('action')), [
|
|
93
88
|
($props.templates.itemicon)
|
|
94
89
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
95
90
|
key: 0,
|
|
@@ -97,48 +92,54 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
97
92
|
class: "p-menuitem-icon"
|
|
98
93
|
}, null, 8, ["item"]))
|
|
99
94
|
: ($props.item.icon)
|
|
100
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
95
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
101
96
|
key: 1,
|
|
102
|
-
class:
|
|
103
|
-
}, null,
|
|
97
|
+
class: ['p-menuitem-icon', $props.item.icon]
|
|
98
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
104
99
|
: vue.createCommentVNode("", true),
|
|
105
100
|
($props.item.label)
|
|
106
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
101
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
102
|
+
key: 2,
|
|
103
|
+
class: "p-menuitem-text"
|
|
104
|
+
}, _ctx.ptm('label')), vue.toDisplayString($options.label()), 17))
|
|
107
105
|
: vue.createCommentVNode("", true)
|
|
108
|
-
],
|
|
106
|
+
], 16, _hoisted_1)
|
|
109
107
|
]),
|
|
110
108
|
_: 1
|
|
111
109
|
}, 8, ["to"]))
|
|
112
|
-
: (vue.openBlock(), vue.createElementBlock("a", {
|
|
110
|
+
: (vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
113
111
|
key: 1,
|
|
114
112
|
href: $props.item.url || '#',
|
|
115
|
-
class:
|
|
113
|
+
class: $options.linkClass(),
|
|
116
114
|
target: $props.item.target,
|
|
117
115
|
"aria-current": $options.isCurrentUrl(),
|
|
118
116
|
onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args)))
|
|
119
|
-
}, [
|
|
120
|
-
($props.templates.itemicon)
|
|
117
|
+
}, _ctx.ptm('action')), [
|
|
118
|
+
($props.templates && $props.templates.itemicon)
|
|
121
119
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
122
120
|
key: 0,
|
|
123
121
|
item: $props.item,
|
|
124
122
|
class: "p-menuitem-icon"
|
|
125
123
|
}, null, 8, ["item"]))
|
|
126
124
|
: ($props.item.icon)
|
|
127
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
125
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
128
126
|
key: 1,
|
|
129
|
-
class:
|
|
130
|
-
}, null,
|
|
127
|
+
class: ['p-menuitem-icon', $props.item.icon]
|
|
128
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
131
129
|
: vue.createCommentVNode("", true),
|
|
132
130
|
($props.item.label)
|
|
133
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
131
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
132
|
+
key: 2,
|
|
133
|
+
class: "p-menuitem-text"
|
|
134
|
+
}, _ctx.ptm('label')), vue.toDisplayString($options.label()), 17))
|
|
134
135
|
: vue.createCommentVNode("", true)
|
|
135
|
-
],
|
|
136
|
+
], 16, _hoisted_2))
|
|
136
137
|
], 64))
|
|
137
138
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
|
|
138
139
|
key: 1,
|
|
139
140
|
item: $props.item
|
|
140
141
|
}, null, 8, ["item"]))
|
|
141
|
-
],
|
|
142
|
+
], 16))
|
|
142
143
|
: vue.createCommentVNode("", true)
|
|
143
144
|
}
|
|
144
145
|
|
|
@@ -146,6 +147,7 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
146
147
|
|
|
147
148
|
var script = {
|
|
148
149
|
name: 'Breadcrumb',
|
|
150
|
+
extends: BaseComponent__default["default"],
|
|
149
151
|
props: {
|
|
150
152
|
model: {
|
|
151
153
|
type: Array,
|
|
@@ -166,48 +168,47 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
166
168
|
}
|
|
167
169
|
};
|
|
168
170
|
|
|
169
|
-
const _hoisted_1 = { class: "p-breadcrumb p-component" };
|
|
170
|
-
const _hoisted_2 = { class: "p-breadcrumb-list" };
|
|
171
|
-
const _hoisted_3 = {
|
|
172
|
-
key: 0,
|
|
173
|
-
class: "p-menuitem-separator"
|
|
174
|
-
};
|
|
175
|
-
|
|
176
171
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
177
172
|
const _component_BreadcrumbItem = vue.resolveComponent("BreadcrumbItem");
|
|
178
173
|
const _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
179
174
|
|
|
180
|
-
return (vue.openBlock(), vue.createElementBlock("nav",
|
|
181
|
-
vue.createElementVNode("ol",
|
|
175
|
+
return (vue.openBlock(), vue.createElementBlock("nav", vue.mergeProps({ class: "p-breadcrumb p-component" }, _ctx.ptm('root')), [
|
|
176
|
+
vue.createElementVNode("ol", vue.mergeProps({ class: "p-breadcrumb-list" }, _ctx.ptm('menu')), [
|
|
182
177
|
($props.home)
|
|
183
178
|
? (vue.openBlock(), vue.createBlock(_component_BreadcrumbItem, {
|
|
184
179
|
key: 0,
|
|
185
180
|
item: $props.home,
|
|
186
181
|
class: "p-breadcrumb-home",
|
|
187
182
|
templates: _ctx.$slots,
|
|
188
|
-
exact: $props.exact
|
|
189
|
-
|
|
183
|
+
exact: $props.exact,
|
|
184
|
+
pt: _ctx.pt
|
|
185
|
+
}, null, 8, ["item", "templates", "exact", "pt"]))
|
|
190
186
|
: vue.createCommentVNode("", true),
|
|
191
187
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.model, (item, i) => {
|
|
192
188
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
193
189
|
key: item.label
|
|
194
190
|
}, [
|
|
195
191
|
($props.home || i !== 0)
|
|
196
|
-
? (vue.openBlock(), vue.createElementBlock("li",
|
|
192
|
+
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "p-menuitem-separator"
|
|
195
|
+
}, _ctx.ptm('separator')), [
|
|
197
196
|
vue.renderSlot(_ctx.$slots, "separator", {}, () => [
|
|
198
|
-
vue.createVNode(_component_ChevronRightIcon, { "aria-hidden": "true" })
|
|
197
|
+
vue.createVNode(_component_ChevronRightIcon, vue.mergeProps({ "aria-hidden": "true" }, _ctx.ptm('separatorIcon')), null, 16)
|
|
199
198
|
])
|
|
200
|
-
]))
|
|
199
|
+
], 16))
|
|
201
200
|
: vue.createCommentVNode("", true),
|
|
202
201
|
vue.createVNode(_component_BreadcrumbItem, {
|
|
203
202
|
item: item,
|
|
203
|
+
index: i,
|
|
204
204
|
templates: _ctx.$slots,
|
|
205
|
-
exact: $props.exact
|
|
206
|
-
|
|
205
|
+
exact: $props.exact,
|
|
206
|
+
pt: _ctx.pt
|
|
207
|
+
}, null, 8, ["item", "index", "templates", "exact", "pt"])
|
|
207
208
|
], 64))
|
|
208
209
|
}), 128))
|
|
209
|
-
])
|
|
210
|
-
]))
|
|
210
|
+
], 16)
|
|
211
|
+
], 16))
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
function styleInject(css, ref) {
|
|
@@ -244,4 +245,4 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, vue) {
|
|
|
244
245
|
|
|
245
246
|
return script;
|
|
246
247
|
|
|
247
|
-
})(primevue.icons.chevronright, Vue);
|
|
248
|
+
})(primevue.basecomponent, primevue.icons.chevronright, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t){"use strict";function
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(e),o=i(t),r={name:"BreadcrumbItem",extends:l.default,props:{item:null,templates:null,exact:null,index:null},methods:{onClick(e,t){this.item.command&&this.item.command({originalEvent:e,item:this.item}),this.item.to&&t&&t(e)},containerClass(){return["p-menuitem",{"p-disabled":this.disabled()},this.item.class]},linkClass(e){return["p-menuitem-link",{"router-link-active":e&&e.isActive,"router-link-active-exact":this.exact&&e&&e.isExactActive}]},visible(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl(){const{to:e,url:t}=this.item;let n=this.$router?this.$router.currentRoute.path:"";return e===n||t===n?"page":void 0}}};const m=["href","aria-current","onClick"],a=["href","target","aria-current"];r.render=function(e,t,i,l,o,r){const c=n.resolveComponent("router-link");return r.visible()?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,class:r.containerClass()},e.ptm("menuitem")),[i.templates&&i.templates.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.item),{key:1,item:i.item},null,8,["item"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[i.item.to?(n.openBlock(),n.createBlock(c,{key:0,to:i.item.to,custom:""},{default:n.withCtx((({navigate:t,href:l,isActive:o,isExactActive:a})=>[n.createElementVNode("a",n.mergeProps({href:l,class:r.linkClass({isActive:o,isExactActive:a}),"aria-current":r.isCurrentUrl(),onClick:e=>r.onClick(e,t)},e.ptm("action")),[i.templates.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.itemicon),{key:0,item:i.item,class:"p-menuitem-icon"},null,8,["item"])):i.item.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:["p-menuitem-icon",i.item.icon]},e.ptm("icon")),null,16)):n.createCommentVNode("",!0),i.item.label?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:2,class:"p-menuitem-text"},e.ptm("label")),n.toDisplayString(r.label()),17)):n.createCommentVNode("",!0)],16,m)])),_:1},8,["to"])):(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:1,href:i.item.url||"#",class:r.linkClass(),target:i.item.target,"aria-current":r.isCurrentUrl(),onClick:t[0]||(t[0]=(...e)=>r.onClick&&r.onClick(...e))},e.ptm("action")),[i.templates&&i.templates.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.itemicon),{key:0,item:i.item,class:"p-menuitem-icon"},null,8,["item"])):i.item.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:["p-menuitem-icon",i.item.icon]},e.ptm("icon")),null,16)):n.createCommentVNode("",!0),i.item.label?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:2,class:"p-menuitem-text"},e.ptm("label")),n.toDisplayString(r.label()),17)):n.createCommentVNode("",!0)],16,a))],64))],16)):n.createCommentVNode("",!0)};var c={name:"Breadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null},exact:{type:Boolean,default:!0}},components:{BreadcrumbItem:r,ChevronRightIcon:o.default}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&i.firstChild?i.insertBefore(l,i.firstChild):i.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-breadcrumb {\n overflow-x: auto;\n}\n.p-breadcrumb .p-breadcrumb-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n}\n.p-breadcrumb .p-menuitem-text {\n line-height: 1;\n}\n.p-breadcrumb .p-menuitem-link {\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n.p-breadcrumb .p-menuitem-separator {\n display: flex;\n align-items: center;\n}\n.p-breadcrumb::-webkit-scrollbar {\n display: none;\n}\n"),c.render=function(e,t,i,l,o,r){const m=n.resolveComponent("BreadcrumbItem"),a=n.resolveComponent("ChevronRightIcon");return n.openBlock(),n.createElementBlock("nav",n.mergeProps({class:"p-breadcrumb p-component"},e.ptm("root")),[n.createElementVNode("ol",n.mergeProps({class:"p-breadcrumb-list"},e.ptm("menu")),[i.home?(n.openBlock(),n.createBlock(m,{key:0,item:i.home,class:"p-breadcrumb-home",templates:e.$slots,exact:i.exact,pt:e.pt},null,8,["item","templates","exact","pt"])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.model,((t,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:t.label},[i.home||0!==l?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,class:"p-menuitem-separator"},e.ptm("separator")),[n.renderSlot(e.$slots,"separator",{},(()=>[n.createVNode(a,n.mergeProps({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]))],16)):n.createCommentVNode("",!0),n.createVNode(m,{item:t,index:l,templates:e.$slots,exact:i.exact,pt:e.pt},null,8,["item","index","templates","exact","pt"])],64)))),128))],16)],16)},c}(primevue.basecomponent,primevue.icons.chevronright,Vue);
|
package/button/Button.d.ts
CHANGED
|
@@ -10,6 +10,49 @@
|
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
12
|
|
|
13
|
+
export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes) | null | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface ButtonPassThroughMethodOptions {
|
|
19
|
+
props: ButtonProps;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough(pt) options.
|
|
24
|
+
* @see {@link ButtonProps.pt}
|
|
25
|
+
*/
|
|
26
|
+
export interface ButtonPassThroughOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Uses to pass attributes to the root's DOM element.
|
|
29
|
+
*/
|
|
30
|
+
root?: ButtonPassThroughOptionType;
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the loading icon's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
loadingIcon?: ButtonPassThroughOptionType;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
icon?: ButtonPassThroughOptionType;
|
|
39
|
+
/**
|
|
40
|
+
* Uses to pass attributes to the label's DOM element.
|
|
41
|
+
*/
|
|
42
|
+
label?: ButtonPassThroughOptionType;
|
|
43
|
+
/**
|
|
44
|
+
* Uses to pass attributes to the badge's DOM element.
|
|
45
|
+
*/
|
|
46
|
+
badge?: ButtonPassThroughOptionType;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Custom passthrough attributes for each DOM elements
|
|
51
|
+
*/
|
|
52
|
+
export interface ButtonPassThroughAttributes {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}
|
|
55
|
+
|
|
13
56
|
/**
|
|
14
57
|
* Defines valid properties in Button component.
|
|
15
58
|
*/
|
|
@@ -94,6 +137,11 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|
|
94
137
|
* @defaultValue false
|
|
95
138
|
*/
|
|
96
139
|
plain?: boolean | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
142
|
+
* @type {ButtonPassThroughOptions}
|
|
143
|
+
*/
|
|
144
|
+
pt?: ButtonPassThroughOptions;
|
|
97
145
|
}
|
|
98
146
|
|
|
99
147
|
/**
|
package/button/Button.vue
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button v-ripple :class="buttonClass" type="button" :aria-label="defaultAriaLabel" :disabled="disabled">
|
|
3
|
-
<slot
|
|
4
|
-
<template v-if="!$slots.default">
|
|
2
|
+
<button v-ripple :class="buttonClass" type="button" :aria-label="defaultAriaLabel" :disabled="disabled" v-bind="ptm('root')">
|
|
3
|
+
<slot>
|
|
5
4
|
<slot v-if="loading" name="loadingicon" :class="loadingIconStyleClass">
|
|
6
|
-
<span v-if="loadingIcon" :class="[loadingIconStyleClass, loadingIcon]" />
|
|
7
|
-
<SpinnerIcon v-else :class="loadingIconStyleClass" spin />
|
|
5
|
+
<span v-if="loadingIcon" :class="[loadingIconStyleClass, loadingIcon]" v-bind="ptm('loadingIcon')" />
|
|
6
|
+
<SpinnerIcon v-else :class="loadingIconStyleClass" spin v-bind="ptm('loadingIcon')" />
|
|
8
7
|
</slot>
|
|
9
8
|
<slot v-else name="icon" :class="iconStyleClass">
|
|
10
|
-
<span v-if="icon" :class="[iconStyleClass, icon]"></span>
|
|
9
|
+
<span v-if="icon" :class="[iconStyleClass, icon]" v-bind="ptm('icon')"></span>
|
|
11
10
|
</slot>
|
|
12
|
-
<span class="p-button-label">{{ label || ' ' }}</span>
|
|
13
|
-
<span v-if="badge" :class="badgeStyleClass">{{ badge }}</span>
|
|
14
|
-
</
|
|
11
|
+
<span class="p-button-label" v-bind="ptm('label')">{{ label || ' ' }}</span>
|
|
12
|
+
<span v-if="badge" :class="badgeStyleClass" v-bind="ptm('badge')">{{ badge }}</span>
|
|
13
|
+
</slot>
|
|
15
14
|
</button>
|
|
16
15
|
</template>
|
|
17
16
|
|
|
18
17
|
<script>
|
|
18
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
19
19
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
20
20
|
import Ripple from 'primevue/ripple';
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
23
|
name: 'Button',
|
|
24
|
+
extends: BaseComponent,
|
|
24
25
|
props: {
|
|
25
26
|
label: {
|
|
26
27
|
type: String,
|
package/button/button.cjs.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var SpinnerIcon = require('primevue/icons/spinner');
|
|
4
5
|
var Ripple = require('primevue/ripple');
|
|
5
6
|
var vue = require('vue');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
9
|
|
|
10
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
9
11
|
var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
|
|
10
12
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
11
13
|
|
|
12
14
|
var script = {
|
|
13
15
|
name: 'Button',
|
|
16
|
+
extends: BaseComponent__default["default"],
|
|
14
17
|
props: {
|
|
15
18
|
label: {
|
|
16
19
|
type: String,
|
|
@@ -142,58 +145,54 @@ var script = {
|
|
|
142
145
|
};
|
|
143
146
|
|
|
144
147
|
const _hoisted_1 = ["aria-label", "disabled"];
|
|
145
|
-
const _hoisted_2 = { class: "p-button-label" };
|
|
146
148
|
|
|
147
149
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
148
150
|
const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
|
|
149
151
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
150
152
|
|
|
151
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
|
|
152
|
-
class:
|
|
153
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
154
|
+
class: $options.buttonClass,
|
|
153
155
|
type: "button",
|
|
154
156
|
"aria-label": $options.defaultAriaLabel,
|
|
155
157
|
disabled: $options.disabled
|
|
156
|
-
}, [
|
|
157
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
: vue.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
], 64))
|
|
195
|
-
: vue.createCommentVNode("", true)
|
|
196
|
-
], 10, _hoisted_1)), [
|
|
158
|
+
}, _ctx.ptm('root')), [
|
|
159
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
160
|
+
($props.loading)
|
|
161
|
+
? vue.renderSlot(_ctx.$slots, "loadingicon", {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: vue.normalizeClass($options.loadingIconStyleClass)
|
|
164
|
+
}, () => [
|
|
165
|
+
($props.loadingIcon)
|
|
166
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
167
|
+
key: 0,
|
|
168
|
+
class: [$options.loadingIconStyleClass, $props.loadingIcon]
|
|
169
|
+
}, _ctx.ptm('loadingIcon')), null, 16))
|
|
170
|
+
: (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
|
|
171
|
+
key: 1,
|
|
172
|
+
class: $options.loadingIconStyleClass,
|
|
173
|
+
spin: ""
|
|
174
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))
|
|
175
|
+
])
|
|
176
|
+
: vue.renderSlot(_ctx.$slots, "icon", {
|
|
177
|
+
key: 1,
|
|
178
|
+
class: vue.normalizeClass($options.iconStyleClass)
|
|
179
|
+
}, () => [
|
|
180
|
+
($props.icon)
|
|
181
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
182
|
+
key: 0,
|
|
183
|
+
class: [$options.iconStyleClass, $props.icon]
|
|
184
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
185
|
+
: vue.createCommentVNode("", true)
|
|
186
|
+
]),
|
|
187
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-button-label" }, _ctx.ptm('label')), vue.toDisplayString($props.label || ' '), 17),
|
|
188
|
+
($props.badge)
|
|
189
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
190
|
+
key: 2,
|
|
191
|
+
class: $options.badgeStyleClass
|
|
192
|
+
}, _ctx.ptm('badge')), vue.toDisplayString($props.badge), 17))
|
|
193
|
+
: vue.createCommentVNode("", true)
|
|
194
|
+
])
|
|
195
|
+
], 16, _hoisted_1)), [
|
|
197
196
|
[_directive_ripple]
|
|
198
197
|
])
|
|
199
198
|
}
|
package/button/button.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("primevue/icons/spinner"),
|
|
1
|
+
"use strict";var t=require("primevue/basecomponent"),e=require("primevue/icons/spinner"),l=require("primevue/ripple"),n=require("vue");function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=o(t),s=o(e),a=o(l),r={name:"Button",extends:i.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}},computed:{buttonClass(){return["p-button p-component",{"p-button-icon-only":this.hasIcon&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-disabled":this.$attrs.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.hasIcon&&this.label,"p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size,"p-button-plain":this.plain}]},iconStyleClass(){return["p-button-icon",this.iconClass,{"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}]},loadingIconStyleClass(){return["p-button-loading-icon pi-spin",this.iconStyleClass]},badgeStyleClass(){return["p-badge p-component",this.badgeClass,{"p-badge-no-gutter":this.badge&&1===String(this.badge).length}]},disabled(){return this.$attrs.disabled||this.loading},defaultAriaLabel(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:s.default},directives:{ripple:a.default}};const p=["aria-label","disabled"];r.render=function(t,e,l,o,i,s){const a=n.resolveComponent("SpinnerIcon"),r=n.resolveDirective("ripple");return n.withDirectives((n.openBlock(),n.createElementBlock("button",n.mergeProps({class:s.buttonClass,type:"button","aria-label":s.defaultAriaLabel,disabled:s.disabled},t.ptm("root")),[n.renderSlot(t.$slots,"default",{},(()=>[l.loading?n.renderSlot(t.$slots,"loadingicon",{key:0,class:n.normalizeClass(s.loadingIconStyleClass)},(()=>[l.loadingIcon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:0,class:[s.loadingIconStyleClass,l.loadingIcon]},t.ptm("loadingIcon")),null,16)):(n.openBlock(),n.createBlock(a,n.mergeProps({key:1,class:s.loadingIconStyleClass,spin:""},t.ptm("loadingIcon")),null,16,["class"]))])):n.renderSlot(t.$slots,"icon",{key:1,class:n.normalizeClass(s.iconStyleClass)},(()=>[l.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:0,class:[s.iconStyleClass,l.icon]},t.ptm("icon")),null,16)):n.createCommentVNode("",!0)])),n.createElementVNode("span",n.mergeProps({class:"p-button-label"},t.ptm("label")),n.toDisplayString(l.label||" "),17),l.badge?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:2,class:s.badgeStyleClass},t.ptm("badge")),n.toDisplayString(l.badge),17)):n.createCommentVNode("",!0)]))],16,p)),[[r]])},module.exports=r;
|
package/button/button.esm.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
1
2
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
2
3
|
import Ripple from 'primevue/ripple';
|
|
3
|
-
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock,
|
|
4
|
+
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createBlock, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
4
5
|
|
|
5
6
|
var script = {
|
|
6
7
|
name: 'Button',
|
|
8
|
+
extends: BaseComponent,
|
|
7
9
|
props: {
|
|
8
10
|
label: {
|
|
9
11
|
type: String,
|
|
@@ -135,58 +137,54 @@ var script = {
|
|
|
135
137
|
};
|
|
136
138
|
|
|
137
139
|
const _hoisted_1 = ["aria-label", "disabled"];
|
|
138
|
-
const _hoisted_2 = { class: "p-button-label" };
|
|
139
140
|
|
|
140
141
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
141
142
|
const _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
142
143
|
const _directive_ripple = resolveDirective("ripple");
|
|
143
144
|
|
|
144
|
-
return withDirectives((openBlock(), createElementBlock("button", {
|
|
145
|
-
class:
|
|
145
|
+
return withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
146
|
+
class: $options.buttonClass,
|
|
146
147
|
type: "button",
|
|
147
148
|
"aria-label": $options.defaultAriaLabel,
|
|
148
149
|
disabled: $options.disabled
|
|
149
|
-
}, [
|
|
150
|
-
renderSlot(_ctx.$slots, "default")
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
], 64))
|
|
188
|
-
: createCommentVNode("", true)
|
|
189
|
-
], 10, _hoisted_1)), [
|
|
150
|
+
}, _ctx.ptm('root')), [
|
|
151
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
152
|
+
($props.loading)
|
|
153
|
+
? renderSlot(_ctx.$slots, "loadingicon", {
|
|
154
|
+
key: 0,
|
|
155
|
+
class: normalizeClass($options.loadingIconStyleClass)
|
|
156
|
+
}, () => [
|
|
157
|
+
($props.loadingIcon)
|
|
158
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
159
|
+
key: 0,
|
|
160
|
+
class: [$options.loadingIconStyleClass, $props.loadingIcon]
|
|
161
|
+
}, _ctx.ptm('loadingIcon')), null, 16))
|
|
162
|
+
: (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
|
|
163
|
+
key: 1,
|
|
164
|
+
class: $options.loadingIconStyleClass,
|
|
165
|
+
spin: ""
|
|
166
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))
|
|
167
|
+
])
|
|
168
|
+
: renderSlot(_ctx.$slots, "icon", {
|
|
169
|
+
key: 1,
|
|
170
|
+
class: normalizeClass($options.iconStyleClass)
|
|
171
|
+
}, () => [
|
|
172
|
+
($props.icon)
|
|
173
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
174
|
+
key: 0,
|
|
175
|
+
class: [$options.iconStyleClass, $props.icon]
|
|
176
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
177
|
+
: createCommentVNode("", true)
|
|
178
|
+
]),
|
|
179
|
+
createElementVNode("span", mergeProps({ class: "p-button-label" }, _ctx.ptm('label')), toDisplayString($props.label || ' '), 17),
|
|
180
|
+
($props.badge)
|
|
181
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
182
|
+
key: 2,
|
|
183
|
+
class: $options.badgeStyleClass
|
|
184
|
+
}, _ctx.ptm('badge')), toDisplayString($props.badge), 17))
|
|
185
|
+
: createCommentVNode("", true)
|
|
186
|
+
])
|
|
187
|
+
], 16, _hoisted_1)), [
|
|
190
188
|
[_directive_ripple]
|
|
191
189
|
])
|
|
192
190
|
}
|