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/avatar/Avatar.vue
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="containerClass" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel">
|
|
3
|
-
<slot
|
|
4
|
-
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
</template>
|
|
2
|
+
<div :class="containerClass" :aria-labelledby="ariaLabelledby" :aria-label="ariaLabel" v-bind="ptm('root')">
|
|
3
|
+
<slot>
|
|
4
|
+
<span v-if="label" class="p-avatar-text" v-bind="ptm('label')">{{ label }}</span>
|
|
5
|
+
<component v-else-if="$slots.icon" :is="$slots.icon" class="p-avatar-icon" v-bind="ptm('icon')" />
|
|
6
|
+
<span v-else-if="icon" :class="['p-avatar-icon', icon]" v-bind="ptm('icon')" />
|
|
7
|
+
<img v-else-if="image" :src="image" :alt="ariaLabel" @error="onError" v-bind="ptm('image')" />
|
|
8
|
+
</slot>
|
|
10
9
|
</div>
|
|
11
10
|
</template>
|
|
12
11
|
|
|
13
12
|
<script>
|
|
13
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
14
|
+
|
|
14
15
|
export default {
|
|
15
16
|
name: 'Avatar',
|
|
17
|
+
extends: BaseComponent,
|
|
16
18
|
emits: ['error'],
|
|
17
19
|
props: {
|
|
18
20
|
label: {
|
package/avatar/avatar.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: 'Avatar',
|
|
12
|
+
extends: BaseComponent__default["default"],
|
|
7
13
|
emits: ['error'],
|
|
8
14
|
props: {
|
|
9
15
|
label: {
|
|
@@ -56,44 +62,40 @@ var script = {
|
|
|
56
62
|
};
|
|
57
63
|
|
|
58
64
|
const _hoisted_1 = ["aria-labelledby", "aria-label"];
|
|
59
|
-
const _hoisted_2 =
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "p-avatar-text"
|
|
62
|
-
};
|
|
63
|
-
const _hoisted_3 = ["src", "alt"];
|
|
65
|
+
const _hoisted_2 = ["src", "alt"];
|
|
64
66
|
|
|
65
67
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
67
|
-
class:
|
|
68
|
+
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
69
|
+
class: $options.containerClass,
|
|
68
70
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
69
71
|
"aria-label": _ctx.ariaLabel
|
|
70
|
-
}, [
|
|
71
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
],
|
|
72
|
+
}, _ctx.ptm('root')), [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
74
|
+
($props.label)
|
|
75
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
76
|
+
key: 0,
|
|
77
|
+
class: "p-avatar-text"
|
|
78
|
+
}, _ctx.ptm('label')), vue.toDisplayString($props.label), 17))
|
|
79
|
+
: (_ctx.$slots.icon)
|
|
80
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
|
|
81
|
+
key: 1,
|
|
82
|
+
class: "p-avatar-icon"
|
|
83
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
84
|
+
: ($props.icon)
|
|
85
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
86
|
+
key: 2,
|
|
87
|
+
class: ['p-avatar-icon', $props.icon]
|
|
88
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
89
|
+
: ($props.image)
|
|
90
|
+
? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
91
|
+
key: 3,
|
|
92
|
+
src: $props.image,
|
|
93
|
+
alt: _ctx.ariaLabel,
|
|
94
|
+
onError: _cache[0] || (_cache[0] = (...args) => ($options.onError && $options.onError(...args)))
|
|
95
|
+
}, _ctx.ptm('image')), null, 16, _hoisted_2))
|
|
96
|
+
: vue.createCommentVNode("", true)
|
|
97
|
+
])
|
|
98
|
+
], 16, _hoisted_1))
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
function styleInject(css, ref) {
|
package/avatar/avatar.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),a=require("vue");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"Avatar",extends:t(e).default,emits:["error"],props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},methods:{onError(){this.$emit("error")}},computed:{containerClass(){return["p-avatar p-component",{"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}]}}};const n=["aria-labelledby","aria-label"],l=["src","alt"];!function(e,a){void 0===a&&(a={});var t=a.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n}\n.p-avatar.p-avatar-image {\n background-color: transparent;\n}\n.p-avatar.p-avatar-circle {\n border-radius: 50%;\n}\n.p-avatar-circle img {\n border-radius: 50%;\n}\n.p-avatar .p-avatar-icon {\n font-size: 1rem;\n}\n.p-avatar img {\n width: 100%;\n height: 100%;\n}\n"),r.render=function(e,t,r,i,o,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:s.containerClass,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("root")),[a.renderSlot(e.$slots,"default",{},(()=>[r.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:"p-avatar-text"},e.ptm("label")),a.toDisplayString(r.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),a.mergeProps({key:1,class:"p-avatar-icon"},e.ptm("icon")),null,16)):r.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:["p-avatar-icon",r.icon]},e.ptm("icon")),null,16)):r.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:r.image,alt:e.ariaLabel,onError:t[0]||(t[0]=(...e)=>s.onError&&s.onError(...e))},e.ptm("image")),null,16,l)):a.createCommentVNode("",!0)]))],16,n)},module.exports=r;
|
package/avatar/avatar.esm.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
2
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, toDisplayString, createBlock, resolveDynamicComponent, createCommentVNode } from 'vue';
|
|
2
3
|
|
|
3
4
|
var script = {
|
|
4
5
|
name: 'Avatar',
|
|
6
|
+
extends: BaseComponent,
|
|
5
7
|
emits: ['error'],
|
|
6
8
|
props: {
|
|
7
9
|
label: {
|
|
@@ -54,44 +56,40 @@ var script = {
|
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
const _hoisted_1 = ["aria-labelledby", "aria-label"];
|
|
57
|
-
const _hoisted_2 =
|
|
58
|
-
key: 0,
|
|
59
|
-
class: "p-avatar-text"
|
|
60
|
-
};
|
|
61
|
-
const _hoisted_3 = ["src", "alt"];
|
|
59
|
+
const _hoisted_2 = ["src", "alt"];
|
|
62
60
|
|
|
63
61
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
-
return (openBlock(), createElementBlock("div", {
|
|
65
|
-
class:
|
|
62
|
+
return (openBlock(), createElementBlock("div", mergeProps({
|
|
63
|
+
class: $options.containerClass,
|
|
66
64
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
67
65
|
"aria-label": _ctx.ariaLabel
|
|
68
|
-
}, [
|
|
69
|
-
renderSlot(_ctx.$slots, "default")
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
],
|
|
66
|
+
}, _ctx.ptm('root')), [
|
|
67
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
68
|
+
($props.label)
|
|
69
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "p-avatar-text"
|
|
72
|
+
}, _ctx.ptm('label')), toDisplayString($props.label), 17))
|
|
73
|
+
: (_ctx.$slots.icon)
|
|
74
|
+
? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), mergeProps({
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "p-avatar-icon"
|
|
77
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
78
|
+
: ($props.icon)
|
|
79
|
+
? (openBlock(), createElementBlock("span", mergeProps({
|
|
80
|
+
key: 2,
|
|
81
|
+
class: ['p-avatar-icon', $props.icon]
|
|
82
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
83
|
+
: ($props.image)
|
|
84
|
+
? (openBlock(), createElementBlock("img", mergeProps({
|
|
85
|
+
key: 3,
|
|
86
|
+
src: $props.image,
|
|
87
|
+
alt: _ctx.ariaLabel,
|
|
88
|
+
onError: _cache[0] || (_cache[0] = (...args) => ($options.onError && $options.onError(...args)))
|
|
89
|
+
}, _ctx.ptm('image')), null, 16, _hoisted_2))
|
|
90
|
+
: createCommentVNode("", true)
|
|
91
|
+
])
|
|
92
|
+
], 16, _hoisted_1))
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
function styleInject(css, ref) {
|
package/avatar/avatar.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as
|
|
1
|
+
import a from"primevue/basecomponent";import{openBlock as e,createElementBlock as t,mergeProps as r,renderSlot as n,toDisplayString as l,createBlock as i,resolveDynamicComponent as o,createCommentVNode as s}from"vue";var p={name:"Avatar",extends:a,emits:["error"],props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},methods:{onError(){this.$emit("error")}},computed:{containerClass(){return["p-avatar p-component",{"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}]}}};const c=["aria-labelledby","aria-label"],d=["src","alt"];!function(a,e){void 0===e&&(e={});var t=e.insertAt;if(a&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}}("\n.p-avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n}\n.p-avatar.p-avatar-image {\n background-color: transparent;\n}\n.p-avatar.p-avatar-circle {\n border-radius: 50%;\n}\n.p-avatar-circle img {\n border-radius: 50%;\n}\n.p-avatar .p-avatar-icon {\n font-size: 1rem;\n}\n.p-avatar img {\n width: 100%;\n height: 100%;\n}\n"),p.render=function(a,p,m,u,g,v){return e(),t("div",r({class:v.containerClass,"aria-labelledby":a.ariaLabelledby,"aria-label":a.ariaLabel},a.ptm("root")),[n(a.$slots,"default",{},(()=>[m.label?(e(),t("span",r({key:0,class:"p-avatar-text"},a.ptm("label")),l(m.label),17)):a.$slots.icon?(e(),i(o(a.$slots.icon),r({key:1,class:"p-avatar-icon"},a.ptm("icon")),null,16)):m.icon?(e(),t("span",r({key:2,class:["p-avatar-icon",m.icon]},a.ptm("icon")),null,16)):m.image?(e(),t("img",r({key:3,src:m.image,alt:a.ariaLabel,onError:p[0]||(p[0]=(...a)=>v.onError&&v.onError(...a))},a.ptm("image")),null,16,d)):s("",!0)]))],16,c)};export{p as default};
|
package/avatar/avatar.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.avatar = (function (vue) {
|
|
2
|
+
this.primevue.avatar = (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: 'Avatar',
|
|
11
|
+
extends: BaseComponent__default["default"],
|
|
7
12
|
emits: ['error'],
|
|
8
13
|
props: {
|
|
9
14
|
label: {
|
|
@@ -56,44 +61,40 @@ this.primevue.avatar = (function (vue) {
|
|
|
56
61
|
};
|
|
57
62
|
|
|
58
63
|
const _hoisted_1 = ["aria-labelledby", "aria-label"];
|
|
59
|
-
const _hoisted_2 =
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "p-avatar-text"
|
|
62
|
-
};
|
|
63
|
-
const _hoisted_3 = ["src", "alt"];
|
|
64
|
+
const _hoisted_2 = ["src", "alt"];
|
|
64
65
|
|
|
65
66
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
-
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
67
|
-
class:
|
|
67
|
+
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
68
|
+
class: $options.containerClass,
|
|
68
69
|
"aria-labelledby": _ctx.ariaLabelledby,
|
|
69
70
|
"aria-label": _ctx.ariaLabel
|
|
70
|
-
}, [
|
|
71
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
],
|
|
71
|
+
}, _ctx.ptm('root')), [
|
|
72
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
73
|
+
($props.label)
|
|
74
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
75
|
+
key: 0,
|
|
76
|
+
class: "p-avatar-text"
|
|
77
|
+
}, _ctx.ptm('label')), vue.toDisplayString($props.label), 17))
|
|
78
|
+
: (_ctx.$slots.icon)
|
|
79
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
|
|
80
|
+
key: 1,
|
|
81
|
+
class: "p-avatar-icon"
|
|
82
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
83
|
+
: ($props.icon)
|
|
84
|
+
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
85
|
+
key: 2,
|
|
86
|
+
class: ['p-avatar-icon', $props.icon]
|
|
87
|
+
}, _ctx.ptm('icon')), null, 16))
|
|
88
|
+
: ($props.image)
|
|
89
|
+
? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
|
|
90
|
+
key: 3,
|
|
91
|
+
src: $props.image,
|
|
92
|
+
alt: _ctx.ariaLabel,
|
|
93
|
+
onError: _cache[0] || (_cache[0] = (...args) => ($options.onError && $options.onError(...args)))
|
|
94
|
+
}, _ctx.ptm('image')), null, 16, _hoisted_2))
|
|
95
|
+
: vue.createCommentVNode("", true)
|
|
96
|
+
])
|
|
97
|
+
], 16, _hoisted_1))
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
function styleInject(css, ref) {
|
|
@@ -130,4 +131,4 @@ this.primevue.avatar = (function (vue) {
|
|
|
130
131
|
|
|
131
132
|
return script;
|
|
132
133
|
|
|
133
|
-
})(Vue);
|
|
134
|
+
})(primevue.basecomponent, Vue);
|
package/avatar/avatar.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.avatar=function(e){"use strict";var
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.avatar=function(e,a){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"Avatar",extends:t(e).default,emits:["error"],props:{label:{type:String,default:null},icon:{type:String,default:null},image:{type:String,default:null},size:{type:String,default:"normal"},shape:{type:String,default:"square"},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},methods:{onError(){this.$emit("error")}},computed:{containerClass(){return["p-avatar p-component",{"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}]}}};const n=["aria-labelledby","aria-label"],l=["src","alt"];return function(e,a){void 0===a&&(a={});var t=a.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-avatar {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n font-size: 1rem;\n}\n.p-avatar.p-avatar-image {\n background-color: transparent;\n}\n.p-avatar.p-avatar-circle {\n border-radius: 50%;\n}\n.p-avatar-circle img {\n border-radius: 50%;\n}\n.p-avatar .p-avatar-icon {\n font-size: 1rem;\n}\n.p-avatar img {\n width: 100%;\n height: 100%;\n}\n"),r.render=function(e,t,r,i,o,s){return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:s.containerClass,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("root")),[a.renderSlot(e.$slots,"default",{},(()=>[r.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:"p-avatar-text"},e.ptm("label")),a.toDisplayString(r.label),17)):e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),a.mergeProps({key:1,class:"p-avatar-icon"},e.ptm("icon")),null,16)):r.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:["p-avatar-icon",r.icon]},e.ptm("icon")),null,16)):r.image?(a.openBlock(),a.createElementBlock("img",a.mergeProps({key:3,src:r.image,alt:e.ariaLabel,onError:t[0]||(t[0]=(...e)=>s.onError&&s.onError(...e))},e.ptm("image")),null,16,l)):a.createCommentVNode("",!0)]))],16,n)},r}(primevue.basecomponent,Vue);
|
|
@@ -9,10 +9,36 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
11
11
|
|
|
12
|
+
export declare type AvatarGroupPassThroughOptionType = AvatarGroupPassThroughAttributes | null | undefined;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Custom passthrough attributes for each DOM elements
|
|
16
|
+
*/
|
|
17
|
+
export interface AvatarGroupPassThroughAttributes {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Custom passthrough(pt) options.
|
|
23
|
+
* @see {@link AvatarGroupProps.pt}
|
|
24
|
+
*/
|
|
25
|
+
export interface AvatarGroupPassThroughOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Uses to pass attributes to the root's DOM element.
|
|
28
|
+
*/
|
|
29
|
+
root?: AvatarGroupPassThroughOptionType;
|
|
30
|
+
}
|
|
31
|
+
|
|
12
32
|
/**
|
|
13
33
|
* Defines valid properties in AvatarGroup component.
|
|
14
34
|
*/
|
|
15
|
-
export interface AvatarGroupProps {
|
|
35
|
+
export interface AvatarGroupProps {
|
|
36
|
+
/**
|
|
37
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
38
|
+
* @type {AvatarGroupPassThroughOptions}
|
|
39
|
+
*/
|
|
40
|
+
pt?: AvatarGroupPassThroughOptions;
|
|
41
|
+
}
|
|
16
42
|
|
|
17
43
|
/**
|
|
18
44
|
* Defines valid slots in AvatarGroup component.
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="p-avatar-group p-component">
|
|
2
|
+
<div class="p-avatar-group p-component" v-bind="ptm('root')">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
9
|
+
|
|
8
10
|
export default {
|
|
9
|
-
name: 'AvatarGroup'
|
|
11
|
+
name: 'AvatarGroup',
|
|
12
|
+
extends: BaseComponent
|
|
10
13
|
};
|
|
11
14
|
</script>
|
|
12
15
|
|
|
@@ -1,17 +1,21 @@
|
|
|
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
|
-
name: 'AvatarGroup'
|
|
11
|
+
name: 'AvatarGroup',
|
|
12
|
+
extends: BaseComponent__default["default"]
|
|
7
13
|
};
|
|
8
14
|
|
|
9
|
-
const _hoisted_1 = { class: "p-avatar-group p-component" };
|
|
10
|
-
|
|
11
15
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
-
return (vue.openBlock(), vue.createElementBlock("div",
|
|
16
|
+
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-avatar-group p-component" }, _ctx.ptm('root')), [
|
|
13
17
|
vue.renderSlot(_ctx.$slots, "default")
|
|
14
|
-
]))
|
|
18
|
+
], 16))
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
function styleInject(css, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
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 r={name:"AvatarGroup",extends:n(e).default};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n}\n.p-avatar-group {\n display: flex;\n align-items: center;\n}\n"),r.render=function(e,n,r,a,o,d){return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"p-avatar-group p-component"},e.ptm("root")),[t.renderSlot(e.$slots,"default")],16)},module.exports=r;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
2
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';
|
|
2
3
|
|
|
3
4
|
var script = {
|
|
4
|
-
name: 'AvatarGroup'
|
|
5
|
+
name: 'AvatarGroup',
|
|
6
|
+
extends: BaseComponent
|
|
5
7
|
};
|
|
6
8
|
|
|
7
|
-
const _hoisted_1 = { class: "p-avatar-group p-component" };
|
|
8
|
-
|
|
9
9
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10
|
-
return (openBlock(), createElementBlock("div",
|
|
10
|
+
return (openBlock(), createElementBlock("div", mergeProps({ class: "p-avatar-group p-component" }, _ctx.ptm('root')), [
|
|
11
11
|
renderSlot(_ctx.$slots, "default")
|
|
12
|
-
]))
|
|
12
|
+
], 16))
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
function styleInject(css, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{openBlock as
|
|
1
|
+
import e from"primevue/basecomponent";import{openBlock as t,createElementBlock as a,mergeProps as n,renderSlot as r}from"vue";var o={name:"AvatarGroup",extends:e};!function(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("\n.p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n}\n.p-avatar-group {\n display: flex;\n align-items: center;\n}\n"),o.render=function(e,o,p,d,i,s){return t(),a("div",n({class:"p-avatar-group p-component"},e.ptm("root")),[r(e.$slots,"default")],16)};export{o as default};
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.avatargroup = (function (vue) {
|
|
2
|
+
this.primevue.avatargroup = (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
|
-
name: 'AvatarGroup'
|
|
10
|
+
name: 'AvatarGroup',
|
|
11
|
+
extends: BaseComponent__default["default"]
|
|
7
12
|
};
|
|
8
13
|
|
|
9
|
-
const _hoisted_1 = { class: "p-avatar-group p-component" };
|
|
10
|
-
|
|
11
14
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12
|
-
return (vue.openBlock(), vue.createElementBlock("div",
|
|
15
|
+
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-avatar-group p-component" }, _ctx.ptm('root')), [
|
|
13
16
|
vue.renderSlot(_ctx.$slots, "default")
|
|
14
|
-
]))
|
|
17
|
+
], 16))
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
function styleInject(css, ref) {
|
|
@@ -48,4 +51,4 @@ this.primevue.avatargroup = (function (vue) {
|
|
|
48
51
|
|
|
49
52
|
return script;
|
|
50
53
|
|
|
51
|
-
})(Vue);
|
|
54
|
+
})(primevue.basecomponent, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.avatargroup=function(e){"use strict";
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.avatargroup=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r={name:"AvatarGroup",extends:n(e).default};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-avatar-group .p-avatar + .p-avatar {\n margin-left: -1rem;\n}\n.p-avatar-group {\n display: flex;\n align-items: center;\n}\n"),r.render=function(e,n,r,a,o,i){return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"p-avatar-group p-component"},e.ptm("root")),[t.renderSlot(e.$slots,"default")],16)},r}(primevue.basecomponent,Vue);
|
package/badge/Badge.d.ts
CHANGED
|
@@ -10,6 +10,33 @@
|
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
12
|
|
|
13
|
+
export declare type BadgePassThroughOptionType = BadgePassThroughAttributes | ((options: BadgePassThroughMethodOptions) => BadgePassThroughAttributes) | null | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface BadgePassThroughMethodOptions {
|
|
19
|
+
props: BadgeProps;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Custom passthrough attributes for each DOM elements
|
|
24
|
+
*/
|
|
25
|
+
export interface BadgePassThroughAttributes {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Custom passthrough(pt) options.
|
|
31
|
+
* @see {@link BadgeProps.pt}
|
|
32
|
+
*/
|
|
33
|
+
export interface BadgePassThroughOptions {
|
|
34
|
+
/**
|
|
35
|
+
* Uses to pass attributes to the root's DOM element.
|
|
36
|
+
*/
|
|
37
|
+
root?: BadgePassThroughOptionType;
|
|
38
|
+
}
|
|
39
|
+
|
|
13
40
|
/**
|
|
14
41
|
* Defines valid properties in Badge component.
|
|
15
42
|
*/
|
|
@@ -26,6 +53,11 @@ export interface BadgeProps {
|
|
|
26
53
|
* Size of the badge, valid options are 'large' and 'xlarge'.
|
|
27
54
|
*/
|
|
28
55
|
size?: 'large' | 'xlarge' | null | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
58
|
+
* @type {BadgePassThroughOptions}
|
|
59
|
+
*/
|
|
60
|
+
pt?: BadgePassThroughOptions;
|
|
29
61
|
}
|
|
30
62
|
|
|
31
63
|
/**
|
package/badge/Badge.vue
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<span :class="badgeClass">
|
|
2
|
+
<span :class="badgeClass" v-bind="ptm('root')">
|
|
3
3
|
<slot>{{ value }}</slot>
|
|
4
4
|
</span>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
9
|
import { ObjectUtils } from 'primevue/utils';
|
|
9
10
|
|
|
10
11
|
export default {
|
|
11
12
|
name: 'Badge',
|
|
13
|
+
extends: BaseComponent,
|
|
12
14
|
props: {
|
|
13
15
|
value: {
|
|
14
16
|
type: [String, Number],
|
package/badge/badge.cjs.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
3
4
|
var utils = require('primevue/utils');
|
|
4
5
|
var vue = require('vue');
|
|
5
6
|
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
10
|
+
|
|
6
11
|
var script = {
|
|
7
12
|
name: 'Badge',
|
|
13
|
+
extends: BaseComponent__default["default"],
|
|
8
14
|
props: {
|
|
9
15
|
value: {
|
|
10
16
|
type: [String, Number],
|
|
@@ -42,13 +48,11 @@ var script = {
|
|
|
42
48
|
};
|
|
43
49
|
|
|
44
50
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45
|
-
return (vue.openBlock(), vue.createElementBlock("span", {
|
|
46
|
-
class: vue.normalizeClass($options.badgeClass)
|
|
47
|
-
}, [
|
|
51
|
+
return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.badgeClass }, _ctx.ptm('root')), [
|
|
48
52
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
49
53
|
vue.createTextVNode(vue.toDisplayString($props.value), 1)
|
|
50
54
|
])
|
|
51
|
-
],
|
|
55
|
+
], 16))
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
script.render = render;
|