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/tabmenu/tabmenu.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
2
|
+
this.primevue.tabmenu = (function (BaseComponent, Ripple, utils, 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 Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
8
9
|
|
|
9
10
|
var script = {
|
|
10
11
|
name: 'TabMenu',
|
|
12
|
+
extends: BaseComponent__default["default"],
|
|
11
13
|
emits: ['update:activeIndex', 'tab-change'],
|
|
12
14
|
props: {
|
|
13
15
|
model: {
|
|
@@ -55,6 +57,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
55
57
|
clearTimeout(this.timeout);
|
|
56
58
|
},
|
|
57
59
|
methods: {
|
|
60
|
+
getPTOptions(key, index) {
|
|
61
|
+
return this.ptm(key, {
|
|
62
|
+
context: {
|
|
63
|
+
order: index
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
},
|
|
58
67
|
onItemClick(event, item, index, navigate) {
|
|
59
68
|
if (this.disabled(item)) {
|
|
60
69
|
event.preventDefault();
|
|
@@ -235,31 +244,23 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
235
244
|
}
|
|
236
245
|
};
|
|
237
246
|
|
|
238
|
-
const _hoisted_1 =
|
|
239
|
-
const _hoisted_2 = ["aria-
|
|
240
|
-
const _hoisted_3 = ["
|
|
241
|
-
const _hoisted_4 =
|
|
242
|
-
const _hoisted_5 = ["onClick", "onKeydown"];
|
|
243
|
-
const _hoisted_6 = ["href", "target", "aria-label", "aria-disabled", "tabindex"];
|
|
244
|
-
const _hoisted_7 = { class: "p-menuitem-text" };
|
|
245
|
-
const _hoisted_8 = {
|
|
246
|
-
ref: "inkbar",
|
|
247
|
-
role: "none",
|
|
248
|
-
class: "p-tabmenu-ink-bar"
|
|
249
|
-
};
|
|
247
|
+
const _hoisted_1 = ["aria-labelledby", "aria-label"];
|
|
248
|
+
const _hoisted_2 = ["href", "aria-label", "aria-disabled", "tabindex", "onClick", "onKeydown"];
|
|
249
|
+
const _hoisted_3 = ["onClick", "onKeydown"];
|
|
250
|
+
const _hoisted_4 = ["href", "target", "aria-label", "aria-disabled", "tabindex"];
|
|
250
251
|
|
|
251
252
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
252
253
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
253
254
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
254
255
|
|
|
255
|
-
return (vue.openBlock(), vue.createElementBlock("div",
|
|
256
|
-
vue.createElementVNode("ul", {
|
|
256
|
+
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-tabmenu p-component" }, _ctx.ptm('root')), [
|
|
257
|
+
vue.createElementVNode("ul", vue.mergeProps({
|
|
257
258
|
ref: "nav",
|
|
258
259
|
class: "p-tabmenu-nav p-reset",
|
|
259
260
|
role: "menubar",
|
|
260
261
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
261
262
|
"aria-label": _ctx.ariaLabel
|
|
262
|
-
}, [
|
|
263
|
+
}, _ctx.ptm('menu')), [
|
|
263
264
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.model, (item, i) => {
|
|
264
265
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
265
266
|
key: $options.label(item) + '_' + i.toString()
|
|
@@ -272,16 +273,16 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
272
273
|
}, {
|
|
273
274
|
default: vue.withCtx(({ navigate, href, isActive, isExactActive }) => [
|
|
274
275
|
($options.visible(item))
|
|
275
|
-
? (vue.openBlock(), vue.createElementBlock("li", {
|
|
276
|
+
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
276
277
|
key: 0,
|
|
277
278
|
ref_for: true,
|
|
278
279
|
ref: "tab",
|
|
279
|
-
class:
|
|
280
|
-
style:
|
|
280
|
+
class: $options.getRouteItemClass(item, isActive, isExactActive),
|
|
281
|
+
style: item.style,
|
|
281
282
|
role: "presentation"
|
|
282
|
-
}, [
|
|
283
|
+
}, $options.getPTOptions('menuitem', i)), [
|
|
283
284
|
(!_ctx.$slots.item)
|
|
284
|
-
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
|
|
285
|
+
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
285
286
|
key: 0,
|
|
286
287
|
ref_for: true,
|
|
287
288
|
ref: "tabLink",
|
|
@@ -293,7 +294,7 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
293
294
|
tabindex: isExactActive ? '0' : '-1',
|
|
294
295
|
onClick: $event => ($options.onItemClick($event, item, i, navigate)),
|
|
295
296
|
onKeydown: $event => ($options.onKeydownItem($event, item, i, navigate))
|
|
296
|
-
}, [
|
|
297
|
+
}, $options.getPTOptions('action', i)), [
|
|
297
298
|
(_ctx.$slots.itemicon)
|
|
298
299
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.itemicon), {
|
|
299
300
|
key: 0,
|
|
@@ -301,13 +302,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
301
302
|
class: vue.normalizeClass($options.getItemIcon(item))
|
|
302
303
|
}, null, 8, ["item", "class"]))
|
|
303
304
|
: (item.icon)
|
|
304
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
305
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
305
306
|
key: 1,
|
|
306
|
-
class:
|
|
307
|
-
}, null,
|
|
307
|
+
class: $options.getItemIcon(item)
|
|
308
|
+
}, $options.getPTOptions('icon', i)), null, 16))
|
|
308
309
|
: vue.createCommentVNode("", true),
|
|
309
|
-
vue.createElementVNode("span",
|
|
310
|
-
],
|
|
310
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-menuitem-text" }, $options.getPTOptions('label', i)), vue.toDisplayString($options.label(item)), 17)
|
|
311
|
+
], 16, _hoisted_2)), [
|
|
311
312
|
[_directive_ripple]
|
|
312
313
|
])
|
|
313
314
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
|
|
@@ -315,23 +316,23 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
315
316
|
item: item,
|
|
316
317
|
index: i
|
|
317
318
|
}, null, 8, ["item", "index"]))
|
|
318
|
-
],
|
|
319
|
+
], 16))
|
|
319
320
|
: vue.createCommentVNode("", true)
|
|
320
321
|
]),
|
|
321
322
|
_: 2
|
|
322
323
|
}, 1032, ["to"]))
|
|
323
324
|
: ($options.visible(item))
|
|
324
|
-
? (vue.openBlock(), vue.createElementBlock("li", {
|
|
325
|
+
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
325
326
|
key: 1,
|
|
326
327
|
ref_for: true,
|
|
327
328
|
ref: "tab",
|
|
328
|
-
class:
|
|
329
|
+
class: $options.getItemClass(item, i),
|
|
329
330
|
role: "presentation",
|
|
330
331
|
onClick: $event => ($options.onItemClick($event, item, i)),
|
|
331
332
|
onKeydown: $event => ($options.onKeydownItem($event, item, i))
|
|
332
|
-
}, [
|
|
333
|
+
}, $options.getPTOptions('menuitem', i)), [
|
|
333
334
|
(!_ctx.$slots.item)
|
|
334
|
-
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
|
|
335
|
+
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
335
336
|
key: 0,
|
|
336
337
|
ref_for: true,
|
|
337
338
|
ref: "tabLink",
|
|
@@ -342,7 +343,7 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
342
343
|
"aria-label": $options.label(item),
|
|
343
344
|
"aria-disabled": $options.disabled(item),
|
|
344
345
|
tabindex: $options.setTabIndex(i)
|
|
345
|
-
}, [
|
|
346
|
+
}, $options.getPTOptions('action', i)), [
|
|
346
347
|
(_ctx.$slots.itemicon)
|
|
347
348
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.itemicon), {
|
|
348
349
|
key: 0,
|
|
@@ -350,13 +351,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
350
351
|
class: vue.normalizeClass($options.getItemIcon(item))
|
|
351
352
|
}, null, 8, ["item", "class"]))
|
|
352
353
|
: (item.icon)
|
|
353
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
354
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
354
355
|
key: 1,
|
|
355
|
-
class:
|
|
356
|
-
}, null,
|
|
356
|
+
class: $options.getItemIcon(item)
|
|
357
|
+
}, $options.getPTOptions('icon', i)), null, 16))
|
|
357
358
|
: vue.createCommentVNode("", true),
|
|
358
|
-
vue.createElementVNode("span",
|
|
359
|
-
],
|
|
359
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-menuitem-text" }, $options.getPTOptions('label', i)), vue.toDisplayString($options.label(item)), 17)
|
|
360
|
+
], 16, _hoisted_4)), [
|
|
360
361
|
[_directive_ripple]
|
|
361
362
|
])
|
|
362
363
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
|
|
@@ -364,13 +365,17 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
364
365
|
item: item,
|
|
365
366
|
index: i
|
|
366
367
|
}, null, 8, ["item", "index"]))
|
|
367
|
-
],
|
|
368
|
+
], 16, _hoisted_3))
|
|
368
369
|
: vue.createCommentVNode("", true)
|
|
369
370
|
], 64))
|
|
370
371
|
}), 128)),
|
|
371
|
-
vue.createElementVNode("li",
|
|
372
|
-
|
|
373
|
-
|
|
372
|
+
vue.createElementVNode("li", vue.mergeProps({
|
|
373
|
+
ref: "inkbar",
|
|
374
|
+
role: "none",
|
|
375
|
+
class: "p-tabmenu-ink-bar"
|
|
376
|
+
}, _ctx.ptm('inkbar')), null, 16)
|
|
377
|
+
], 16, _hoisted_1)
|
|
378
|
+
], 16))
|
|
374
379
|
}
|
|
375
380
|
|
|
376
381
|
function styleInject(css, ref) {
|
|
@@ -407,4 +412,4 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
|
|
|
407
412
|
|
|
408
413
|
return script;
|
|
409
414
|
|
|
410
|
-
})(primevue.ripple, primevue.utils, Vue);
|
|
415
|
+
})(primevue.basecomponent, primevue.ripple, primevue.utils, Vue);
|
package/tabmenu/tabmenu.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n){"use strict";function
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(e),o=i(t),s={name:"TabMenu",extends:l.default,emits:["update:activeIndex","tab-change"],props:{model:{type:Array,default:null},exact:{type:Boolean,default:!0},activeIndex:{type:Number,default:0},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},timeout:null,data(){return{d_activeIndex:this.activeIndex}},watch:{$route(){this.timeout=setTimeout((()=>this.updateInkBar()),50)},activeIndex(e){this.d_activeIndex=e}},mounted(){this.updateInkBar()},updated(){this.updateInkBar()},beforeUnmount(){clearTimeout(this.timeout)},methods:{getPTOptions(e,t){return this.ptm(e,{context:{order:t}})},onItemClick(e,t,n,a){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),t.to&&a&&a(e),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem(e,t,n){let a=n,i={};const l=this.$refs.tabLink;switch(e.code){case"ArrowRight":i=this.findNextItem(this.$refs.tab,a),a=i.i;break;case"ArrowLeft":i=this.findPrevItem(this.$refs.tab,a),a=i.i;break;case"End":i=this.findPrevItem(this.$refs.tab,this.model.length),a=i.i,e.preventDefault();break;case"Home":i=this.findNextItem(this.$refs.tab,-1),a=i.i,e.preventDefault();break;case"Space":case"Enter":e.currentTarget&&e.currentTarget.click(),e.preventDefault();break;case"Tab":this.setDefaultTabIndexes(l)}l[a]&&l[n]&&(l[n].tabIndex="-1",l[a].tabIndex="0",l[a].focus())},findNextItem(e,t){let a=t+1;if(a>=e.length)return{nextItem:e[e.length],i:e.length};let i=e[a];return i?n.DomHandler.hasClass(i,"p-disabled")?this.findNextItem(e,a):{nextItem:i,i:a}:null},findPrevItem(e,t){let a=t-1;if(a<0)return{nextItem:e[0],i:0};let i=e[a];return i?n.DomHandler.hasClass(i,"p-disabled")?this.findPrevItem(e,a):{prevItem:i,i:a}:null},getItemClass(e,t){return["p-tabmenuitem",e.class,{"p-highlight":this.d_activeIndex===t,"p-disabled":this.disabled(e)}]},getRouteItemClass(e,t,n){return["p-tabmenuitem",e.class,{"p-highlight":this.exact?n:t,"p-disabled":this.disabled(e)}]},getItemIcon:e=>["p-menuitem-icon",e.icon],visible:e=>"function"==typeof e.visible?e.visible():!1!==e.visible,disabled:e=>"function"==typeof e.disabled?e.disabled():e.disabled,label:e=>"function"==typeof e.label?e.label():e.label,setDefaultTabIndexes(e){setTimeout((()=>{e.forEach((e=>{e.tabIndex=n.DomHandler.hasClass(e.parentElement,"p-highlight")?"0":"-1"}))}),300)},setTabIndex(e){return this.d_activeIndex===e?"0":"-1"},updateInkBar(){let e=this.$refs.nav.children,t=!1;for(let a=0;a<e.length;a++){let i=e[a];n.DomHandler.hasClass(i,"p-highlight")&&(this.$refs.inkbar.style.width=n.DomHandler.getWidth(i)+"px",this.$refs.inkbar.style.left=n.DomHandler.getOffset(i).left-n.DomHandler.getOffset(this.$refs.nav).left+"px",t=!0)}t||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")}},directives:{ripple:o.default}};const r=["aria-labelledby","aria-label"],m=["href","aria-label","aria-disabled","tabindex","onClick","onKeydown"],d=["onClick","onKeydown"],c=["href","target","aria-label","aria-disabled","tabindex"];return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-tabmenu {\n overflow-x: auto;\n}\n.p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n}\n.p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabmenu-nav a:focus {\n z-index: 1;\n}\n.p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n}\n.p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabmenu::-webkit-scrollbar {\n display: none;\n}\n"),s.render=function(e,t,n,i,l,o){const s=a.resolveComponent("router-link"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"p-tabmenu p-component"},e.ptm("root")),[a.createElementVNode("ul",a.mergeProps({ref:"nav",class:"p-tabmenu-nav p-reset",role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("menu")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.model,((t,n)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:o.label(t)+"_"+n.toString()},[t.to&&!o.disabled(t)?(a.openBlock(),a.createBlock(s,{key:0,to:t.to,custom:""},{default:a.withCtx((({navigate:i,href:l,isActive:s,isExactActive:r})=>[o.visible(t)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,ref_for:!0,ref:"tab",class:o.getRouteItemClass(t,s,r),style:t.style,role:"presentation"},o.getPTOptions("menuitem",n)),[e.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:n},null,8,["item","index"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:l,class:"p-menuitem-link","aria-label":o.label(t),"aria-disabled":o.disabled(t),tabindex:r?"0":"-1",onClick:e=>o.onItemClick(e,t,n,i),onKeydown:e=>o.onKeydownItem(e,t,n,i)},o.getPTOptions("action",n)),[e.$slots.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:a.normalizeClass(o.getItemIcon(t))},null,8,["item","class"])):t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:o.getItemIcon(t)},o.getPTOptions("icon",n)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:"p-menuitem-text"},o.getPTOptions("label",n)),a.toDisplayString(o.label(t)),17)],16,m)),[[p]])],16)):a.createCommentVNode("",!0)])),_:2},1032,["to"])):o.visible(t)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,ref_for:!0,ref:"tab",class:o.getItemClass(t,n),role:"presentation",onClick:e=>o.onItemClick(e,t,n),onKeydown:e=>o.onKeydownItem(e,t,n)},o.getPTOptions("menuitem",n)),[e.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:n},null,8,["item","index"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:"p-menuitem-link",target:t.target,"aria-label":o.label(t),"aria-disabled":o.disabled(t),tabindex:o.setTabIndex(n)},o.getPTOptions("action",n)),[e.$slots.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:a.normalizeClass(o.getItemIcon(t))},null,8,["item","class"])):t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:o.getItemIcon(t)},o.getPTOptions("icon",n)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:"p-menuitem-text"},o.getPTOptions("label",n)),a.toDisplayString(o.label(t)),17)],16,c)),[[p]])],16,d)):a.createCommentVNode("",!0)],64)))),128)),a.createElementVNode("li",a.mergeProps({ref:"inkbar",role:"none",class:"p-tabmenu-ink-bar"},e.ptm("inkbar")),null,16)],16,r)],16)},s}(primevue.basecomponent,primevue.ripple,primevue.utils,Vue);
|
package/tag/Tag.d.ts
CHANGED
|
@@ -10,6 +10,41 @@
|
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
12
|
|
|
13
|
+
export declare type TagPassThroughOptionType = TagPassThroughAttributes | ((options: TagPassThroughMethodOptions) => TagPassThroughAttributes) | null | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface TagPassThroughMethodOptions {
|
|
19
|
+
props: TagProps;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough(pt) options.
|
|
24
|
+
* @see {@link TagProps.pt}
|
|
25
|
+
*/
|
|
26
|
+
export interface TagPassThroughOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Uses to pass attributes to the root's DOM element.
|
|
29
|
+
*/
|
|
30
|
+
root?: TagPassThroughOptionType;
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the icon's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
icon?: TagPassThroughOptionType;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the value's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
value?: TagPassThroughOptionType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Custom passthrough attributes for each DOM elements
|
|
43
|
+
*/
|
|
44
|
+
export interface TagPassThroughAttributes {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}
|
|
47
|
+
|
|
13
48
|
/**
|
|
14
49
|
* Defines valid properties in Tag component.
|
|
15
50
|
*/
|
|
@@ -32,6 +67,11 @@ export interface TagProps {
|
|
|
32
67
|
* @deprecated since v3.27.0. Use 'icon' slot.
|
|
33
68
|
*/
|
|
34
69
|
icon?: string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
72
|
+
* @type {TagPassThroughOptions}
|
|
73
|
+
*/
|
|
74
|
+
pt?: TagPassThroughOptions;
|
|
35
75
|
}
|
|
36
76
|
|
|
37
77
|
/**
|
package/tag/Tag.vue
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span :class="containerClass">
|
|
3
|
-
<component v-if="$slots.icon" :is="$slots.icon" class="p-tag-icon" />
|
|
4
|
-
<span v-else-if="icon" :class="iconClass"></span>
|
|
2
|
+
<span :class="containerClass" v-bind="ptm('root')">
|
|
3
|
+
<component v-if="$slots.icon" :is="$slots.icon" class="p-tag-icon" v-bind="ptm('icon')" />
|
|
4
|
+
<span v-else-if="icon" :class="iconClass" v-bind="ptm('icon')"></span>
|
|
5
5
|
<slot>
|
|
6
|
-
<span class="p-tag-value">{{ value }}</span>
|
|
6
|
+
<span class="p-tag-value" v-bind="ptm('value')">{{ value }}</span>
|
|
7
7
|
</slot>
|
|
8
8
|
</span>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script>
|
|
12
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
13
|
+
|
|
12
14
|
export default {
|
|
13
15
|
name: 'Tag',
|
|
16
|
+
extends: BaseComponent,
|
|
14
17
|
props: {
|
|
15
18
|
value: null,
|
|
16
19
|
severity: null,
|
package/tag/tag.cjs.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var vue = require('vue');
|
|
4
5
|
|
|
6
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
7
|
+
|
|
8
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
9
|
+
|
|
5
10
|
var script = {
|
|
6
11
|
name: 'Tag',
|
|
12
|
+
extends: BaseComponent__default["default"],
|
|
7
13
|
props: {
|
|
8
14
|
value: null,
|
|
9
15
|
severity: null,
|
|
@@ -29,27 +35,23 @@ var script = {
|
|
|
29
35
|
}
|
|
30
36
|
};
|
|
31
37
|
|
|
32
|
-
const _hoisted_1 = { class: "p-tag-value" };
|
|
33
|
-
|
|
34
38
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35
|
-
return (vue.openBlock(), vue.createElementBlock("span", {
|
|
36
|
-
class: vue.normalizeClass($options.containerClass)
|
|
37
|
-
}, [
|
|
39
|
+
return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
|
|
38
40
|
(_ctx.$slots.icon)
|
|
39
|
-
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
41
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
|
|
40
42
|
key: 0,
|
|
41
43
|
class: "p-tag-icon"
|
|
42
|
-
}))
|
|
44
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
43
45
|
: ($props.icon)
|
|
44
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
46
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
45
47
|
key: 1,
|
|
46
|
-
class:
|
|
47
|
-
}, null,
|
|
48
|
+
class: $options.iconClass
|
|
49
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
48
50
|
: vue.createCommentVNode("", true),
|
|
49
51
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
50
|
-
vue.createElementVNode("span",
|
|
52
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), vue.toDisplayString($props.value), 17)
|
|
51
53
|
])
|
|
52
|
-
],
|
|
54
|
+
], 16))
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
function styleInject(css, ref) {
|
package/tag/tag.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("vue")
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),t=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"Tag",extends:n(e).default,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&o.firstChild?o.insertBefore(s,o.firstChild):o.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),o.render=function(e,n,o,s,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps({class:a.containerClass},e.ptm("root")),[e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):o.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:1,class:a.iconClass},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[t.createElementVNode("span",t.mergeProps({class:"p-tag-value"},e.ptm("value")),t.toDisplayString(o.value),17)]))],16)},module.exports=o;
|
package/tag/tag.esm.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
2
|
+
import { openBlock, createElementBlock, mergeProps, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
|
|
2
3
|
|
|
3
4
|
var script = {
|
|
4
5
|
name: 'Tag',
|
|
6
|
+
extends: BaseComponent,
|
|
5
7
|
props: {
|
|
6
8
|
value: null,
|
|
7
9
|
severity: null,
|
|
@@ -27,27 +29,23 @@ var script = {
|
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
|
|
30
|
-
const _hoisted_1 = { class: "p-tag-value" };
|
|
31
|
-
|
|
32
32
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
33
|
-
return (openBlock(), createElementBlock("span", {
|
|
34
|
-
class: normalizeClass($options.containerClass)
|
|
35
|
-
}, [
|
|
33
|
+
return (openBlock(), createElementBlock("span", mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
|
|
36
34
|
(_ctx.$slots.icon)
|
|
37
|
-
? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {
|
|
35
|
+
? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), mergeProps({
|
|
38
36
|
key: 0,
|
|
39
37
|
class: "p-tag-icon"
|
|
40
|
-
}))
|
|
38
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
41
39
|
: ($props.icon)
|
|
42
|
-
? (openBlock(), createElementBlock("span", {
|
|
40
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
43
41
|
key: 1,
|
|
44
|
-
class:
|
|
45
|
-
}, null,
|
|
42
|
+
class: $options.iconClass
|
|
43
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
46
44
|
: createCommentVNode("", true),
|
|
47
45
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
48
|
-
createElementVNode("span",
|
|
46
|
+
createElementVNode("span", mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), toDisplayString($props.value), 17)
|
|
49
47
|
])
|
|
50
|
-
],
|
|
48
|
+
], 16))
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
function styleInject(css, ref) {
|
package/tag/tag.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as
|
|
1
|
+
import e from"primevue/basecomponent";import{openBlock as n,createElementBlock as t,mergeProps as s,createBlock as a,resolveDynamicComponent as i,createCommentVNode as o,renderSlot as r,createElementVNode as l,toDisplayString as p}from"vue";var c={name:"Tag",extends:e,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),c.render=function(e,c,d,u,g,m){return n(),t("span",s({class:m.containerClass},e.ptm("root")),[e.$slots.icon?(n(),a(i(e.$slots.icon),s({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):d.icon?(n(),t("span",s({key:1,class:m.iconClass},e.ptm("icon")),null,16)):o("",!0),r(e.$slots,"default",{},(()=>[l("span",s({class:"p-tag-value"},e.ptm("value")),p(d.value),17)]))],16)};export{c as default};
|
package/tag/tag.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.tag = (function (vue) {
|
|
2
|
+
this.primevue.tag = (function (BaseComponent, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
|
+
|
|
7
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
|
+
|
|
5
9
|
var script = {
|
|
6
10
|
name: 'Tag',
|
|
11
|
+
extends: BaseComponent__default["default"],
|
|
7
12
|
props: {
|
|
8
13
|
value: null,
|
|
9
14
|
severity: null,
|
|
@@ -29,27 +34,23 @@ this.primevue.tag = (function (vue) {
|
|
|
29
34
|
}
|
|
30
35
|
};
|
|
31
36
|
|
|
32
|
-
const _hoisted_1 = { class: "p-tag-value" };
|
|
33
|
-
|
|
34
37
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
35
|
-
return (vue.openBlock(), vue.createElementBlock("span", {
|
|
36
|
-
class: vue.normalizeClass($options.containerClass)
|
|
37
|
-
}, [
|
|
38
|
+
return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
|
|
38
39
|
(_ctx.$slots.icon)
|
|
39
|
-
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
|
|
40
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
|
|
40
41
|
key: 0,
|
|
41
42
|
class: "p-tag-icon"
|
|
42
|
-
}))
|
|
43
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
43
44
|
: ($props.icon)
|
|
44
|
-
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
45
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
45
46
|
key: 1,
|
|
46
|
-
class:
|
|
47
|
-
}, null,
|
|
47
|
+
class: $options.iconClass
|
|
48
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
48
49
|
: vue.createCommentVNode("", true),
|
|
49
50
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
50
|
-
vue.createElementVNode("span",
|
|
51
|
+
vue.createElementVNode("span", vue.mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), vue.toDisplayString($props.value), 17)
|
|
51
52
|
])
|
|
52
|
-
],
|
|
53
|
+
], 16))
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
function styleInject(css, ref) {
|
|
@@ -86,4 +87,4 @@ this.primevue.tag = (function (vue) {
|
|
|
86
87
|
|
|
87
88
|
return script;
|
|
88
89
|
|
|
89
|
-
})(Vue);
|
|
90
|
+
})(primevue.basecomponent, Vue);
|
package/tag/tag.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.tag=function(e){"use strict";var
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.tag=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"Tag",extends:n(e).default,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&o.firstChild?o.insertBefore(s,o.firstChild):o.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),o.render=function(e,n,o,s,i,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps({class:r.containerClass},e.ptm("root")),[e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):o.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:1,class:r.iconClass},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[t.createElementVNode("span",t.mergeProps({class:"p-tag-value"},e.ptm("value")),t.toDisplayString(o.value),17)]))],16)},o}(primevue.basecomponent,Vue);
|
package/terminal/Terminal.d.ts
CHANGED
|
@@ -9,6 +9,80 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
11
11
|
|
|
12
|
+
export declare type TerminalPassThroughOptionType = TerminalPassThroughAttributes | ((options: TerminalPassThroughMethodOptions) => TerminalPassThroughAttributes) | null | undefined;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Custom passthrough(pt) option method.
|
|
16
|
+
*/
|
|
17
|
+
export interface TerminalPassThroughMethodOptions {
|
|
18
|
+
props: TerminalProps;
|
|
19
|
+
state: TerminalState;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough(pt) options.
|
|
24
|
+
* @see {@link TerminalProps.pt}
|
|
25
|
+
*/
|
|
26
|
+
export interface TerminalPassThroughOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Uses to pass attributes to the root's DOM element.
|
|
29
|
+
*/
|
|
30
|
+
root?: TerminalPassThroughOptionType;
|
|
31
|
+
/**
|
|
32
|
+
* Uses to pass attributes to the welcome message's DOM element.
|
|
33
|
+
*/
|
|
34
|
+
welcomeMessage?: TerminalPassThroughOptionType;
|
|
35
|
+
/**
|
|
36
|
+
* Uses to pass attributes to the content's DOM element.
|
|
37
|
+
*/
|
|
38
|
+
content?: TerminalPassThroughOptionType;
|
|
39
|
+
/**
|
|
40
|
+
* Uses to pass attributes to the commands' DOM element.
|
|
41
|
+
*/
|
|
42
|
+
commands?: TerminalPassThroughOptionType;
|
|
43
|
+
/**
|
|
44
|
+
* Uses to pass attributes to the prompt's DOM element.
|
|
45
|
+
*/
|
|
46
|
+
prompt?: TerminalPassThroughOptionType;
|
|
47
|
+
/**
|
|
48
|
+
* Uses to pass attributes to the command's DOM element.
|
|
49
|
+
*/
|
|
50
|
+
command?: TerminalPassThroughOptionType;
|
|
51
|
+
/**
|
|
52
|
+
* Uses to pass attributes to the response's DOM element.
|
|
53
|
+
*/
|
|
54
|
+
response?: TerminalPassThroughOptionType;
|
|
55
|
+
/**
|
|
56
|
+
* Uses to pass attributes to the container's DOM element.
|
|
57
|
+
*/
|
|
58
|
+
container?: TerminalPassThroughOptionType;
|
|
59
|
+
/**
|
|
60
|
+
* Uses to pass attributes to the command text's DOM element.
|
|
61
|
+
*/
|
|
62
|
+
commandText?: TerminalPassThroughOptionType;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Custom passthrough attributes for each DOM elements
|
|
67
|
+
*/
|
|
68
|
+
export interface TerminalPassThroughAttributes {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Defines current inline state in Terminal component.
|
|
74
|
+
*/
|
|
75
|
+
export interface TerminalState {
|
|
76
|
+
/**
|
|
77
|
+
* Current command text as a string.
|
|
78
|
+
*/
|
|
79
|
+
commandText: string;
|
|
80
|
+
/**
|
|
81
|
+
* Current commands as an array.
|
|
82
|
+
*/
|
|
83
|
+
commands: string[];
|
|
84
|
+
}
|
|
85
|
+
|
|
12
86
|
/**
|
|
13
87
|
* Defines valid properties in Terminal component.
|
|
14
88
|
*/
|
|
@@ -21,6 +95,11 @@ export interface TerminalProps {
|
|
|
21
95
|
* Prompt text for each command.
|
|
22
96
|
*/
|
|
23
97
|
prompt?: string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
100
|
+
* @type {TerminalPassThroughOptions}
|
|
101
|
+
*/
|
|
102
|
+
pt?: TerminalPassThroughOptions;
|
|
24
103
|
}
|
|
25
104
|
|
|
26
105
|
/**
|