primevue 3.30.2 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.d.ts +5 -5
- package/accordion/Accordion.vue +1 -1
- package/accordion/accordion.cjs.js +3 -3
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -3
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -3
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +18 -12
- package/autocomplete/AutoComplete.d.ts +34 -23
- package/autocomplete/AutoComplete.vue +3 -3
- package/autocomplete/BaseAutoComplete.vue +4 -0
- package/autocomplete/autocomplete.cjs.js +9 -5
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +9 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +9 -5
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +7 -7
- package/avatar/Avatar.vue +2 -2
- package/avatar/avatar.cjs.js +2 -2
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +2 -2
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +2 -2
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +3 -3
- package/badge/Badge.d.ts +3 -3
- package/badgedirective/BadgeDirective.d.ts +45 -4
- package/badgedirective/badgedirective.cjs.js +11 -1
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +11 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +11 -1
- package/badgedirective/badgedirective.min.js +1 -1
- package/basecomponent/BaseComponent.vue +51 -25
- package/basecomponent/basecomponent.cjs.js +66 -42
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +66 -42
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +66 -42
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +9 -3
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +9 -3
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +9 -3
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BaseBlockUI.vue +0 -8
- package/blockui/BlockUI.d.ts +7 -3
- package/blockui/BlockUI.vue +35 -10
- package/blockui/blockui.cjs.js +34 -12
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +34 -12
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +34 -12
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +25 -10
- package/breadcrumb/BreadcrumbItem.vue +18 -8
- package/breadcrumb/breadcrumb.cjs.js +18 -8
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +18 -8
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +18 -8
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +8 -7
- package/button/Button.vue +4 -0
- package/button/button.cjs.js +5 -0
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +5 -0
- package/button/button.esm.min.js +1 -1
- package/button/button.js +5 -0
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +129 -53
- package/calendar/Calendar.vue +49 -7
- package/calendar/calendar.cjs.js +72 -35
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +72 -35
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +72 -35
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +9 -9
- package/carousel/Carousel.d.ts +32 -20
- package/carousel/Carousel.vue +10 -2
- package/carousel/carousel.cjs.js +11 -2
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +11 -2
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +11 -2
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +25 -19
- package/cascadeselect/CascadeSelect.vue +2 -1
- package/cascadeselect/CascadeSelectSub.vue +1 -0
- package/cascadeselect/cascadeselect.cjs.js +9 -7
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +9 -7
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +9 -7
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +5 -5
- package/checkbox/Checkbox.d.ts +8 -8
- package/chip/Chip.d.ts +7 -7
- package/chips/Chips.d.ts +10 -10
- package/colorpicker/ColorPicker.d.ts +18 -11
- package/colorpicker/ColorPicker.vue +1 -1
- package/colorpicker/colorpicker.cjs.js +3 -3
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +3 -3
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +3 -3
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +58 -58
- package/columngroup/ColumnGroup.d.ts +3 -3
- package/config/PrimeVue.d.ts +22 -0
- package/config/config.cjs.js +4 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +4 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +4 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +14 -14
- package/confirmpopup/ConfirmPopup.d.ts +16 -10
- package/confirmpopup/ConfirmPopup.vue +1 -1
- package/confirmpopup/confirmpopup.cjs.js +3 -3
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +4 -4
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +3 -3
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +27 -13
- package/contextmenu/ContextMenu.vue +1 -1
- package/contextmenu/ContextMenuSub.vue +14 -12
- package/contextmenu/contextmenu.cjs.js +19 -17
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +20 -18
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +19 -17
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +4538 -507
- package/core/core.min.js +19 -15
- package/datatable/BaseDataTable.vue +1 -1
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +1 -1
- package/datatable/DataTable.d.ts +37 -31
- package/datatable/DataTable.vue +4 -1
- package/datatable/datatable.cjs.js +10 -5
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +10 -5
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +10 -5
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +10 -10
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
- package/deferredcontent/DeferredContent.d.ts +3 -3
- package/dialog/BaseDialog.vue +3 -7
- package/dialog/Dialog.d.ts +21 -15
- package/dialog/Dialog.vue +2 -1
- package/dialog/dialog.cjs.js +9 -6
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +9 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +9 -6
- package/dialog/dialog.min.js +1 -1
- package/divider/BaseDivider.vue +9 -24
- package/divider/Divider.d.ts +4 -4
- package/divider/Divider.vue +1 -1
- package/divider/divider.cjs.js +15 -2
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +15 -2
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +15 -2
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +1 -1
- package/dock/Dock.d.ts +13 -9
- package/dock/Dock.vue +19 -2
- package/dock/DockSub.vue +8 -7
- package/dock/dock.cjs.js +18 -11
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +18 -11
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +18 -11
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +5 -5
- package/dropdown/Dropdown.d.ts +34 -28
- package/dropdown/Dropdown.vue +2 -2
- package/dropdown/dropdown.cjs.js +9 -9
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +9 -9
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +9 -9
- package/dropdown/dropdown.min.js +1 -1
- package/editor/BaseEditor.vue +0 -14
- package/editor/Editor.d.ts +19 -19
- package/editor/Editor.vue +20 -20
- package/editor/editor.cjs.js +20 -34
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +20 -34
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +20 -34
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +17 -11
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +3 -3
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -3
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +3 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +24 -24
- package/fileupload/FileUpload.vue +4 -4
- package/fileupload/fileupload.cjs.js +10 -4
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +10 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +10 -4
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +5 -5
- package/galleria/Galleria.d.ts +53 -34
- package/galleria/Galleria.vue +1 -1
- package/galleria/GalleriaItem.vue +9 -2
- package/galleria/GalleriaThumbnails.vue +1 -0
- package/galleria/galleria.cjs.js +14 -5
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +14 -5
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +14 -5
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +28 -21
- package/image/Image.vue +4 -4
- package/image/image.cjs.js +6 -5
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +6 -5
- package/image/image.esm.min.js +1 -1
- package/image/image.js +6 -5
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +5 -5
- package/inplace/Inplace.d.ts +8 -8
- package/inputmask/InputMask.d.ts +32 -4
- package/inputmask/InputMask.vue +9 -1
- package/inputmask/inputmask.cjs.js +9 -1
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +9 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +9 -1
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +10 -10
- package/inputswitch/InputSwitch.d.ts +9 -9
- package/inputtext/InputText.d.ts +3 -3
- package/knob/Knob.d.ts +7 -7
- package/listbox/Listbox.d.ts +18 -18
- package/megamenu/MegaMenu.d.ts +26 -18
- package/megamenu/MegaMenuSub.vue +14 -11
- package/megamenu/megamenu.cjs.js +15 -12
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +15 -12
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +15 -12
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +28 -14
- package/menu/Menu.vue +2 -2
- package/menu/Menuitem.vue +4 -1
- package/menu/menu.cjs.js +9 -5
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +9 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +9 -5
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +29 -17
- package/menubar/MenubarSub.vue +15 -11
- package/menubar/menubar.cjs.js +16 -12
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +16 -12
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +16 -12
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +18 -12
- package/message/Message.vue +1 -1
- package/message/message.cjs.js +3 -3
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +4 -4
- package/message/message.esm.min.js +1 -1
- package/message/message.js +3 -3
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +47 -41
- package/multiselect/MultiSelect.vue +1 -1
- package/multiselect/multiselect.cjs.js +3 -3
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +3 -3
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +3 -3
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +24 -18
- package/orderlist/OrderList.vue +2 -1
- package/orderlist/orderlist.cjs.js +3 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +15 -15
- package/overlaypanel/OverlayPanel.d.ts +13 -7
- package/overlaypanel/OverlayPanel.vue +2 -1
- package/overlaypanel/overlaypanel.cjs.js +5 -3
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +6 -4
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +5 -3
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +15 -15
- package/paginator/Paginator.d.ts +20 -20
- package/paginator/Paginator.vue +2 -1
- package/paginator/paginator.cjs.js +2 -0
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +3 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -0
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +19 -13
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +3 -3
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +3 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +35 -21
- package/panelmenu/PanelMenu.vue +13 -12
- package/panelmenu/PanelMenuSub.vue +14 -12
- package/panelmenu/panelmenu.cjs.js +31 -28
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +31 -28
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +31 -28
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +74 -0
- package/passthrough/index.cjs.min.js +1 -0
- package/passthrough/index.d.ts +15 -0
- package/passthrough/index.esm.js +70 -0
- package/passthrough/index.esm.min.js +1 -0
- package/passthrough/index.js +77 -0
- package/passthrough/index.min.js +1 -0
- package/passthrough/package.json +6 -0
- package/passthrough/tailwind/index.cjs.js +3828 -0
- package/passthrough/tailwind/index.cjs.min.js +1 -0
- package/passthrough/tailwind/index.d.ts +5 -0
- package/passthrough/tailwind/index.esm.js +3823 -0
- package/passthrough/tailwind/index.esm.min.js +1 -0
- package/passthrough/tailwind/index.js +3835 -0
- package/passthrough/tailwind/index.min.js +1 -0
- package/passthrough/tailwind/package.json +6 -0
- package/password/Password.d.ts +25 -14
- package/password/Password.vue +2 -1
- package/password/password.cjs.js +4 -3
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +4 -3
- package/password/password.esm.min.js +1 -1
- package/password/password.js +4 -3
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +42 -36
- package/picklist/PickList.vue +3 -2
- package/picklist/picklist.cjs.js +4 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +4 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +4 -2
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +5 -5
- package/progressspinner/ProgressSpinner.d.ts +5 -5
- package/radiobutton/RadioButton.d.ts +10 -10
- package/rating/Rating.d.ts +12 -12
- package/rating/Rating.vue +3 -3
- package/rating/rating.cjs.js +3 -3
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +3 -3
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +3 -3
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +7 -0
- package/resources/themes/arya-green/theme.css +7 -0
- package/resources/themes/arya-orange/theme.css +7 -0
- package/resources/themes/arya-purple/theme.css +7 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +7 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +7 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +7 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +7 -0
- package/resources/themes/fluent-light/theme.css +7 -0
- package/resources/themes/lara-dark-blue/theme.css +7 -0
- package/resources/themes/lara-dark-indigo/theme.css +7 -0
- package/resources/themes/lara-dark-purple/theme.css +7 -0
- package/resources/themes/lara-dark-teal/theme.css +7 -0
- package/resources/themes/lara-light-blue/theme.css +7 -0
- package/resources/themes/lara-light-indigo/theme.css +7 -0
- package/resources/themes/lara-light-purple/theme.css +7 -0
- package/resources/themes/lara-light-teal/theme.css +7 -0
- package/resources/themes/luna-amber/theme.css +7 -0
- package/resources/themes/luna-blue/theme.css +7 -0
- package/resources/themes/luna-green/theme.css +7 -0
- package/resources/themes/luna-pink/theme.css +7 -0
- package/resources/themes/md-dark-deeppurple/theme.css +7 -0
- package/resources/themes/md-dark-indigo/theme.css +7 -0
- package/resources/themes/md-light-deeppurple/theme.css +7 -0
- package/resources/themes/md-light-indigo/theme.css +7 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-dark-indigo/theme.css +7 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
- package/resources/themes/mdc-light-indigo/theme.css +7 -0
- package/resources/themes/mira/theme.css +7 -0
- package/resources/themes/nano/theme.css +7 -0
- package/resources/themes/nova/theme.css +7 -0
- package/resources/themes/nova-accent/theme.css +7 -0
- package/resources/themes/nova-alt/theme.css +7 -0
- package/resources/themes/nova-vue/theme.css +7 -0
- package/resources/themes/rhea/theme.css +7 -0
- package/resources/themes/saga-blue/theme.css +7 -0
- package/resources/themes/saga-green/theme.css +7 -0
- package/resources/themes/saga-orange/theme.css +7 -0
- package/resources/themes/saga-purple/theme.css +7 -0
- package/resources/themes/soho-dark/theme.css +7 -0
- package/resources/themes/soho-light/theme.css +7 -0
- package/resources/themes/tailwind-light/theme.css +7 -0
- package/resources/themes/vela-blue/theme.css +7 -0
- package/resources/themes/vela-green/theme.css +7 -0
- package/resources/themes/vela-orange/theme.css +7 -0
- package/resources/themes/vela-purple/theme.css +7 -0
- package/resources/themes/viva-dark/theme.css +7 -0
- package/resources/themes/viva-light/theme.css +7 -0
- package/ripple/Ripple.d.ts +3 -3
- package/row/Row.d.ts +2 -2
- package/scrollpanel/ScrollPanel.d.ts +7 -7
- package/scrolltop/ScrollTop.d.ts +11 -5
- package/scrolltop/ScrollTop.vue +1 -1
- package/scrolltop/scrolltop.cjs.js +3 -3
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +4 -4
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +3 -3
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +5 -5
- package/sidebar/Sidebar.d.ts +16 -10
- package/sidebar/Sidebar.vue +1 -1
- package/sidebar/sidebar.cjs.js +3 -3
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +3 -3
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -3
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +3 -3
- package/slider/Slider.d.ts +7 -7
- package/speeddial/BaseSpeedDial.vue +12 -36
- package/speeddial/SpeedDial.d.ts +14 -9
- package/speeddial/SpeedDial.vue +5 -4
- package/speeddial/speeddial.cjs.js +44 -23
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +44 -23
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +44 -23
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +8 -8
- package/splitbutton/SplitButton.vue +22 -3
- package/splitbutton/splitbutton.cjs.js +17 -5
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +17 -5
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +17 -5
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +16 -5
- package/splitter/Splitter.vue +8 -1
- package/splitter/splitter.cjs.js +9 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +9 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +9 -1
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +14 -3
- package/splitterpanel/SplitterPanel.vue +8 -1
- package/splitterpanel/splitterpanel.cjs.js +8 -1
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +8 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +8 -1
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/BaseSteps.vue +1 -1
- package/steps/Steps.d.ts +33 -8
- package/steps/Steps.vue +17 -7
- package/steps/steps.cjs.js +19 -9
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +19 -9
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +19 -9
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +2 -2
- package/tabmenu/TabMenu.d.ts +15 -11
- package/tabmenu/TabMenu.vue +11 -10
- package/tabmenu/tabmenu.cjs.js +11 -10
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +11 -10
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +11 -10
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +10 -10
- package/tabview/TabView.d.ts +16 -16
- package/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +2 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +2 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -1
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +5 -5
- package/terminal/Terminal.d.ts +11 -11
- package/textarea/Textarea.d.ts +3 -3
- package/tieredmenu/TieredMenu.d.ts +27 -13
- package/tieredmenu/TieredMenu.vue +1 -1
- package/tieredmenu/TieredMenuSub.vue +13 -11
- package/tieredmenu/tieredmenu.cjs.js +16 -14
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +16 -14
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +16 -14
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +9 -9
- package/toast/BaseToast.vue +4 -0
- package/toast/Toast.d.ts +23 -17
- package/toast/Toast.vue +3 -2
- package/toast/toast.cjs.js +4 -2
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +5 -3
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -2
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +31 -9
- package/togglebutton/ToggleButton.vue +12 -3
- package/togglebutton/togglebutton.cjs.js +12 -3
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +12 -3
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +12 -3
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +6 -6
- package/toolbar/Toolbar.vue +3 -3
- package/toolbar/toolbar.cjs.js +3 -6
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +3 -6
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +3 -6
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +35 -6
- package/tooltip/tooltip.cjs.js +17 -4
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +17 -4
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +413 -400
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +20 -20
- package/tree/Tree.vue +1 -0
- package/tree/tree.cjs.js +3 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -2
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +23 -17
- package/treeselect/TreeSelect.vue +2 -2
- package/treeselect/treeselect.cjs.js +4 -4
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +4 -4
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +4 -4
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +21 -21
- package/treetable/TreeTable.vue +2 -1
- package/treetable/treetable.cjs.js +1 -1
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +1 -1
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
- package/usestyle/UseStyle.d.ts +2 -1
- package/usestyle/usestyle.cjs.js +20 -7
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +20 -7
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +20 -7
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +4 -0
- package/utils/utils.cjs.js +48 -8
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +48 -8
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +48 -8
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +129 -125
- package/vetur-tags.json +1 -0
- package/virtualscroller/BaseVirtualScroller.vue +1 -1
- package/virtualscroller/VirtualScroller.d.ts +7 -7
- package/virtualscroller/virtualscroller.cjs.js +2 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +2 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +2 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +160 -127
|
@@ -20,6 +20,7 @@ export interface ToggleButtonPassThroughMethodOptions {
|
|
|
20
20
|
instance: any;
|
|
21
21
|
props: ToggleButtonProps;
|
|
22
22
|
state: ToggleButtonState;
|
|
23
|
+
context: ToggleButtonContext;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -28,27 +29,27 @@ export interface ToggleButtonPassThroughMethodOptions {
|
|
|
28
29
|
*/
|
|
29
30
|
export interface ToggleButtonPassThroughOptions {
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Used to pass attributes to the root's DOM element.
|
|
32
33
|
*/
|
|
33
34
|
root?: ToggleButtonPassThroughOptionType;
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* Used to pass attributes to the icon's DOM element.
|
|
36
37
|
*/
|
|
37
38
|
icon?: ToggleButtonPassThroughOptionType;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Used to pass attributes to the label's DOM element.
|
|
40
41
|
*/
|
|
41
42
|
label?: ToggleButtonPassThroughOptionType;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Used to pass attributes to the hidden input wrapper's DOM element.
|
|
44
45
|
*/
|
|
45
46
|
hiddenInputWrapper?: ToggleButtonPassThroughOptionType;
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* Used to pass attributes to the hidden input's DOM element.
|
|
48
49
|
*/
|
|
49
50
|
hiddenInput?: ToggleButtonPassThroughOptionType;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Used to manage all lifecycle hooks
|
|
52
53
|
* @see {@link BaseComponent.ComponentHooks}
|
|
53
54
|
*/
|
|
54
55
|
hooks?: ComponentHooks;
|
|
@@ -66,11 +67,32 @@ export interface ToggleButtonPassThroughAttributes {
|
|
|
66
67
|
*/
|
|
67
68
|
export interface ToggleButtonState {
|
|
68
69
|
/**
|
|
69
|
-
* Focused state as a
|
|
70
|
+
* Focused state as a boolean.
|
|
70
71
|
*/
|
|
71
72
|
focused: boolean;
|
|
72
73
|
}
|
|
73
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Defines current options in ToggleButton component.
|
|
77
|
+
*/
|
|
78
|
+
export interface ToggleButtonContext {
|
|
79
|
+
/**
|
|
80
|
+
* Current focused state as a boolean.
|
|
81
|
+
* @defaultValue false
|
|
82
|
+
*/
|
|
83
|
+
focused: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Current disabled state as a boolean.
|
|
86
|
+
* @defaultValue false
|
|
87
|
+
*/
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Current highlighted state as a boolean.
|
|
91
|
+
* @defaultValue false
|
|
92
|
+
*/
|
|
93
|
+
highlighted: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
74
96
|
/**
|
|
75
97
|
* Defines valid properties in ToggleButton component.
|
|
76
98
|
*/
|
|
@@ -127,7 +149,7 @@ export interface ToggleButtonProps {
|
|
|
127
149
|
*/
|
|
128
150
|
inputStyle?: object | undefined;
|
|
129
151
|
/**
|
|
130
|
-
*
|
|
152
|
+
* Used to pass all properties of the HTMLInputElement to the focusable input element inside the component.
|
|
131
153
|
*/
|
|
132
154
|
inputProps?: InputHTMLAttributes | undefined;
|
|
133
155
|
/**
|
|
@@ -139,7 +161,7 @@ export interface ToggleButtonProps {
|
|
|
139
161
|
*/
|
|
140
162
|
'aria-label'?: string | undefined;
|
|
141
163
|
/**
|
|
142
|
-
*
|
|
164
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
143
165
|
* @type {ToggleButtonPassThroughOptions}
|
|
144
166
|
*/
|
|
145
167
|
pt?: ToggleButtonPassThroughOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="container" v-ripple :class="cx('root')" @click="onClick($event)" v-bind="ptm('root')" :data-p-active="modelValue === true" data-pc-name="togglebutton">
|
|
2
|
+
<div ref="container" v-ripple :class="cx('root')" @click="onClick($event)" v-bind="ptm('root', ptOptions)" :data-p-active="modelValue === true" data-pc-name="togglebutton">
|
|
3
3
|
<span class="p-hidden-accessible" v-bind="ptm('hiddenInputWrapper')" :data-p-hidden-accessible="true">
|
|
4
4
|
<input
|
|
5
5
|
:id="inputId"
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
/>
|
|
18
18
|
</span>
|
|
19
19
|
<slot name="icon" :value="modelValue" :class="cx('icon')">
|
|
20
|
-
<span v-if="onIcon || offIcon" :class="[cx('icon'), modelValue ? onIcon : offIcon]" v-bind="ptm('icon')" />
|
|
20
|
+
<span v-if="onIcon || offIcon" :class="[cx('icon'), modelValue ? onIcon : offIcon]" v-bind="ptm('icon', ptOptions)" />
|
|
21
21
|
</slot>
|
|
22
|
-
<span :class="cx('label')" v-bind="ptm('label')">{{ label }}</span>
|
|
22
|
+
<span :class="cx('label')" v-bind="ptm('label', ptOptions)">{{ label }}</span>
|
|
23
23
|
</div>
|
|
24
24
|
</template>
|
|
25
25
|
|
|
@@ -87,6 +87,15 @@ export default {
|
|
|
87
87
|
},
|
|
88
88
|
label() {
|
|
89
89
|
return this.hasLabel ? (this.modelValue ? this.onLabel : this.offLabel) : ' ';
|
|
90
|
+
},
|
|
91
|
+
ptOptions() {
|
|
92
|
+
return {
|
|
93
|
+
context: {
|
|
94
|
+
focused: this.focused,
|
|
95
|
+
disabled: this.disabled,
|
|
96
|
+
highlighted: this.modelValue === true
|
|
97
|
+
}
|
|
98
|
+
};
|
|
90
99
|
}
|
|
91
100
|
},
|
|
92
101
|
directives: {
|
|
@@ -152,6 +152,15 @@ var script = {
|
|
|
152
152
|
},
|
|
153
153
|
label: function label() {
|
|
154
154
|
return this.hasLabel ? this.modelValue ? this.onLabel : this.offLabel : ' ';
|
|
155
|
+
},
|
|
156
|
+
ptOptions: function ptOptions() {
|
|
157
|
+
return {
|
|
158
|
+
context: {
|
|
159
|
+
focused: this.focused,
|
|
160
|
+
disabled: this.disabled,
|
|
161
|
+
highlighted: this.modelValue === true
|
|
162
|
+
}
|
|
163
|
+
};
|
|
155
164
|
}
|
|
156
165
|
},
|
|
157
166
|
directives: {
|
|
@@ -175,7 +184,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
175
184
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
176
185
|
return $options.onClick($event);
|
|
177
186
|
})
|
|
178
|
-
}, _ctx.ptm('root'), {
|
|
187
|
+
}, _ctx.ptm('root', $options.ptOptions), {
|
|
179
188
|
"data-p-active": _ctx.modelValue === true,
|
|
180
189
|
"data-pc-name": "togglebutton"
|
|
181
190
|
}), [vue.createElementVNode("span", vue.mergeProps({
|
|
@@ -205,10 +214,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
205
214
|
return [_ctx.onIcon || _ctx.offIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
206
215
|
key: 0,
|
|
207
216
|
"class": [_ctx.cx('icon'), _ctx.modelValue ? _ctx.onIcon : _ctx.offIcon]
|
|
208
|
-
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
217
|
+
}, _ctx.ptm('icon', $options.ptOptions)), null, 16)) : vue.createCommentVNode("", true)];
|
|
209
218
|
}), vue.createElementVNode("span", vue.mergeProps({
|
|
210
219
|
"class": _ctx.cx('label')
|
|
211
|
-
}, _ctx.ptm('label')), vue.toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
220
|
+
}, _ctx.ptm('label', $options.ptOptions)), vue.toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
212
221
|
}
|
|
213
222
|
|
|
214
223
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/ripple"),t=require("primevue/basecomponent"),n=require("vue");function
|
|
1
|
+
"use strict";var e=require("primevue/ripple"),t=require("primevue/basecomponent"),n=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e),l={name:"ToggleButton",extends:{name:"BaseToggleButton",extends:i(t).default,props:{modelValue:Boolean,onIcon:String,offIcon:String,onLabel:{type:String,default:"Yes"},offLabel:{type:String,default:"No"},iconPos:{type:String,default:"left"},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-button p-togglebutton p-component",{"p-focus":t.focused,"p-button-icon-only":t.hasIcon&&!t.hasLabel,"p-disabled":n.disabled,"p-highlight":!0===n.modelValue}]},icon:function(e){var t=e.instance,n=e.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&t.label,"p-button-icon-right":"right"===n.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","click","focus","blur"],outsideClickListener:null,data:function(){return{focused:!1}},mounted:function(){this.bindOutsideClickListener()},beforeUnmount:function(){this.unbindOutsideClickListener()},methods:{onClick:function(e){this.disabled||(this.$emit("update:modelValue",!this.modelValue),this.$emit("change",e),this.$emit("click",e),this.focused=!0)},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.focused&&!e.$refs.container.contains(t.target)&&(e.focused=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}},computed:{hasLabel:function(){return this.onLabel&&this.onLabel.length>0&&this.offLabel&&this.offLabel.length>0},hasIcon:function(){return this.$slots.icon||this.onIcon&&this.offIcon},label:function(){return this.hasLabel?this.modelValue?this.onLabel:this.offLabel:" "},ptOptions:function(){return{context:{focused:this.focused,disabled:this.disabled,highlighted:!0===this.modelValue}}}},directives:{ripple:o.default}};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=p(e,"string");return"symbol"===r(t)?t:String(t)}function p(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=["data-p-active"],f=["id","checked","value","aria-labelledby","aria-label"];l.render=function(e,t,i,o,l,r){var u=n.resolveDirective("ripple");return n.withDirectives((n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"container",class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return r.onClick(e)})},e.ptm("root",r.ptOptions),{"data-p-active":!0===e.modelValue,"data-pc-name":"togglebutton"}),[n.createElementVNode("span",n.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[n.createElementVNode("input",n.mergeProps({id:e.inputId,type:"checkbox",role:"switch",class:e.inputClass,style:e.inputStyle,checked:e.modelValue,value:e.modelValue,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(e){return r.onFocus(e)}),onBlur:t[1]||(t[1]=function(e){return r.onBlur(e)})},c(c({},e.inputProps),e.ptm("hiddenInput"))),null,16,f)],16),n.renderSlot(e.$slots,"icon",{value:e.modelValue,class:n.normalizeClass(e.cx("icon"))},(function(){return[e.onIcon||e.offIcon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:0,class:[e.cx("icon"),e.modelValue?e.onIcon:e.offIcon]},e.ptm("icon",r.ptOptions)),null,16)):n.createCommentVNode("",!0)]})),n.createElementVNode("span",n.mergeProps({class:e.cx("label")},e.ptm("label",r.ptOptions)),n.toDisplayString(r.label),17)],16,d)),[[u]])},module.exports=l;
|
|
@@ -145,6 +145,15 @@ var script = {
|
|
|
145
145
|
},
|
|
146
146
|
label: function label() {
|
|
147
147
|
return this.hasLabel ? this.modelValue ? this.onLabel : this.offLabel : ' ';
|
|
148
|
+
},
|
|
149
|
+
ptOptions: function ptOptions() {
|
|
150
|
+
return {
|
|
151
|
+
context: {
|
|
152
|
+
focused: this.focused,
|
|
153
|
+
disabled: this.disabled,
|
|
154
|
+
highlighted: this.modelValue === true
|
|
155
|
+
}
|
|
156
|
+
};
|
|
148
157
|
}
|
|
149
158
|
},
|
|
150
159
|
directives: {
|
|
@@ -168,7 +177,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
177
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
169
178
|
return $options.onClick($event);
|
|
170
179
|
})
|
|
171
|
-
}, _ctx.ptm('root'), {
|
|
180
|
+
}, _ctx.ptm('root', $options.ptOptions), {
|
|
172
181
|
"data-p-active": _ctx.modelValue === true,
|
|
173
182
|
"data-pc-name": "togglebutton"
|
|
174
183
|
}), [createElementVNode("span", mergeProps({
|
|
@@ -198,10 +207,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
207
|
return [_ctx.onIcon || _ctx.offIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
199
208
|
key: 0,
|
|
200
209
|
"class": [_ctx.cx('icon'), _ctx.modelValue ? _ctx.onIcon : _ctx.offIcon]
|
|
201
|
-
}, _ctx.ptm('icon')), null, 16)) : createCommentVNode("", true)];
|
|
210
|
+
}, _ctx.ptm('icon', $options.ptOptions)), null, 16)) : createCommentVNode("", true)];
|
|
202
211
|
}), createElementVNode("span", mergeProps({
|
|
203
212
|
"class": _ctx.cx('label')
|
|
204
|
-
}, _ctx.ptm('label')), toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
213
|
+
}, _ctx.ptm('label', $options.ptOptions)), toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
205
214
|
}
|
|
206
215
|
|
|
207
216
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/ripple";import t from"primevue/basecomponent";import{resolveDirective as n,withDirectives as i,openBlock as o,createElementBlock as l,mergeProps as r,createElementVNode as u,renderSlot as
|
|
1
|
+
import e from"primevue/ripple";import t from"primevue/basecomponent";import{resolveDirective as n,withDirectives as i,openBlock as o,createElementBlock as l,mergeProps as r,createElementVNode as u,renderSlot as s,normalizeClass as c,createCommentVNode as a,toDisplayString as p}from"vue";var d={name:"ToggleButton",extends:{name:"BaseToggleButton",extends:t,props:{modelValue:Boolean,onIcon:String,offIcon:String,onLabel:{type:String,default:"Yes"},offLabel:{type:String,default:"No"},iconPos:{type:String,default:"left"},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-button p-togglebutton p-component",{"p-focus":t.focused,"p-button-icon-only":t.hasIcon&&!t.hasLabel,"p-disabled":n.disabled,"p-highlight":!0===n.modelValue}]},icon:function(e){var t=e.instance,n=e.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&t.label,"p-button-icon-right":"right"===n.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","click","focus","blur"],outsideClickListener:null,data:function(){return{focused:!1}},mounted:function(){this.bindOutsideClickListener()},beforeUnmount:function(){this.unbindOutsideClickListener()},methods:{onClick:function(e){this.disabled||(this.$emit("update:modelValue",!this.modelValue),this.$emit("change",e),this.$emit("click",e),this.focused=!0)},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.focused&&!e.$refs.container.contains(t.target)&&(e.focused=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}},computed:{hasLabel:function(){return this.onLabel&&this.onLabel.length>0&&this.offLabel&&this.offLabel.length>0},hasIcon:function(){return this.$slots.icon||this.onIcon&&this.offIcon},label:function(){return this.hasLabel?this.modelValue?this.onLabel:this.offLabel:" "},ptOptions:function(){return{context:{focused:this.focused,disabled:this.disabled,highlighted:!0===this.modelValue}}}},directives:{ripple:e}};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=g(e,"string");return"symbol"===f(t)?t:String(t)}function g(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var v=["data-p-active"],O=["id","checked","value","aria-labelledby","aria-label"];d.render=function(e,t,d,f,b,m){var y=n("ripple");return i((o(),l("div",r({ref:"container",class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return m.onClick(e)})},e.ptm("root",m.ptOptions),{"data-p-active":!0===e.modelValue,"data-pc-name":"togglebutton"}),[u("span",r({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[u("input",r({id:e.inputId,type:"checkbox",role:"switch",class:e.inputClass,style:e.inputStyle,checked:e.modelValue,value:e.modelValue,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(e){return m.onFocus(e)}),onBlur:t[1]||(t[1]=function(e){return m.onBlur(e)})},h(h({},e.inputProps),e.ptm("hiddenInput"))),null,16,O)],16),s(e.$slots,"icon",{value:e.modelValue,class:c(e.cx("icon"))},(function(){return[e.onIcon||e.offIcon?(o(),l("span",r({key:0,class:[e.cx("icon"),e.modelValue?e.onIcon:e.offIcon]},e.ptm("icon",m.ptOptions)),null,16)):a("",!0)]})),u("span",r({class:e.cx("label")},e.ptm("label",m.ptOptions)),p(m.label),17)],16,v)),[[y]])};export{d as default};
|
|
@@ -150,6 +150,15 @@ this.primevue.togglebutton = (function (Ripple, BaseComponent, vue) {
|
|
|
150
150
|
},
|
|
151
151
|
label: function label() {
|
|
152
152
|
return this.hasLabel ? this.modelValue ? this.onLabel : this.offLabel : ' ';
|
|
153
|
+
},
|
|
154
|
+
ptOptions: function ptOptions() {
|
|
155
|
+
return {
|
|
156
|
+
context: {
|
|
157
|
+
focused: this.focused,
|
|
158
|
+
disabled: this.disabled,
|
|
159
|
+
highlighted: this.modelValue === true
|
|
160
|
+
}
|
|
161
|
+
};
|
|
153
162
|
}
|
|
154
163
|
},
|
|
155
164
|
directives: {
|
|
@@ -173,7 +182,7 @@ this.primevue.togglebutton = (function (Ripple, BaseComponent, vue) {
|
|
|
173
182
|
onClick: _cache[2] || (_cache[2] = function ($event) {
|
|
174
183
|
return $options.onClick($event);
|
|
175
184
|
})
|
|
176
|
-
}, _ctx.ptm('root'), {
|
|
185
|
+
}, _ctx.ptm('root', $options.ptOptions), {
|
|
177
186
|
"data-p-active": _ctx.modelValue === true,
|
|
178
187
|
"data-pc-name": "togglebutton"
|
|
179
188
|
}), [vue.createElementVNode("span", vue.mergeProps({
|
|
@@ -203,10 +212,10 @@ this.primevue.togglebutton = (function (Ripple, BaseComponent, vue) {
|
|
|
203
212
|
return [_ctx.onIcon || _ctx.offIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
204
213
|
key: 0,
|
|
205
214
|
"class": [_ctx.cx('icon'), _ctx.modelValue ? _ctx.onIcon : _ctx.offIcon]
|
|
206
|
-
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
215
|
+
}, _ctx.ptm('icon', $options.ptOptions)), null, 16)) : vue.createCommentVNode("", true)];
|
|
207
216
|
}), vue.createElementVNode("span", vue.mergeProps({
|
|
208
217
|
"class": _ctx.cx('label')
|
|
209
|
-
}, _ctx.ptm('label')), vue.toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
218
|
+
}, _ctx.ptm('label', $options.ptOptions)), vue.toDisplayString($options.label), 17)], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
210
219
|
}
|
|
211
220
|
|
|
212
221
|
script.render = render;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.togglebutton=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e),l={name:"ToggleButton",extends:{name:"BaseToggleButton",extends:i(t).default,props:{modelValue:Boolean,onIcon:String,offIcon:String,onLabel:{type:String,default:"Yes"},offLabel:{type:String,default:"No"},iconPos:{type:String,default:"left"},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-button p-togglebutton p-component",{"p-focus":t.focused,"p-button-icon-only":t.hasIcon&&!t.hasLabel,"p-disabled":n.disabled,"p-highlight":!0===n.modelValue}]},icon:function(e){var t=e.instance,n=e.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&t.label,"p-button-icon-right":"right"===n.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","click","focus","blur"],outsideClickListener:null,data:function(){return{focused:!1}},mounted:function(){this.bindOutsideClickListener()},beforeUnmount:function(){this.unbindOutsideClickListener()},methods:{onClick:function(e){this.disabled||(this.$emit("update:modelValue",!this.modelValue),this.$emit("change",e),this.$emit("click",e),this.focused=!0)},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.focused&&!e.$refs.container.contains(t.target)&&(e.focused=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}},computed:{hasLabel:function(){return this.onLabel&&this.onLabel.length>0&&this.offLabel&&this.offLabel.length>0},hasIcon:function(){return this.$slots.icon||this.onIcon&&this.offIcon},label:function(){return this.hasLabel?this.modelValue?this.onLabel:this.offLabel:" "}},directives:{ripple:o.default}};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=p(e,"string");return"symbol"===r(t)?t:String(t)}function p(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=["data-p-active"],f=["id","checked","value","aria-labelledby","aria-label"];return l.render=function(e,t,i,o,l,r){var u=n.resolveDirective("ripple");return n.withDirectives((n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"container",class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return r.onClick(e)})},e.ptm("root"),{"data-p-active":!0===e.modelValue,"data-pc-name":"togglebutton"}),[n.createElementVNode("span",n.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[n.createElementVNode("input",n.mergeProps({id:e.inputId,type:"checkbox",role:"switch",class:e.inputClass,style:e.inputStyle,checked:e.modelValue,value:e.modelValue,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(e){return r.onFocus(e)}),onBlur:t[1]||(t[1]=function(e){return r.onBlur(e)})},c(c({},e.inputProps),e.ptm("hiddenInput"))),null,16,f)],16),n.renderSlot(e.$slots,"icon",{value:e.modelValue,class:n.normalizeClass(e.cx("icon"))},(function(){return[e.onIcon||e.offIcon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:0,class:[e.cx("icon"),e.modelValue?e.onIcon:e.offIcon]},e.ptm("icon")),null,16)):n.createCommentVNode("",!0)]})),n.createElementVNode("span",n.mergeProps({class:e.cx("label")},e.ptm("label")),n.toDisplayString(r.label),17)],16,d)),[[u]])},l}(primevue.ripple,primevue.basecomponent,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.togglebutton=function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e),l={name:"ToggleButton",extends:{name:"BaseToggleButton",extends:i(t).default,props:{modelValue:Boolean,onIcon:String,offIcon:String,onLabel:{type:String,default:"Yes"},offLabel:{type:String,default:"No"},iconPos:{type:String,default:"left"},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-button p-togglebutton p-component",{"p-focus":t.focused,"p-button-icon-only":t.hasIcon&&!t.hasLabel,"p-disabled":n.disabled,"p-highlight":!0===n.modelValue}]},icon:function(e){var t=e.instance,n=e.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&t.label,"p-button-icon-right":"right"===n.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","click","focus","blur"],outsideClickListener:null,data:function(){return{focused:!1}},mounted:function(){this.bindOutsideClickListener()},beforeUnmount:function(){this.unbindOutsideClickListener()},methods:{onClick:function(e){this.disabled||(this.$emit("update:modelValue",!this.modelValue),this.$emit("change",e),this.$emit("click",e),this.focused=!0)},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.focused&&!e.$refs.container.contains(t.target)&&(e.focused=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}},computed:{hasLabel:function(){return this.onLabel&&this.onLabel.length>0&&this.offLabel&&this.offLabel.length>0},hasIcon:function(){return this.$slots.icon||this.onIcon&&this.offIcon},label:function(){return this.hasLabel?this.modelValue?this.onLabel:this.offLabel:" "},ptOptions:function(){return{context:{focused:this.focused,disabled:this.disabled,highlighted:!0===this.modelValue}}}},directives:{ripple:o.default}};function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=p(e,"string");return"symbol"===r(t)?t:String(t)}function p(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=["data-p-active"],f=["id","checked","value","aria-labelledby","aria-label"];return l.render=function(e,t,i,o,l,r){var u=n.resolveDirective("ripple");return n.withDirectives((n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"container",class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return r.onClick(e)})},e.ptm("root",r.ptOptions),{"data-p-active":!0===e.modelValue,"data-pc-name":"togglebutton"}),[n.createElementVNode("span",n.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[n.createElementVNode("input",n.mergeProps({id:e.inputId,type:"checkbox",role:"switch",class:e.inputClass,style:e.inputStyle,checked:e.modelValue,value:e.modelValue,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(e){return r.onFocus(e)}),onBlur:t[1]||(t[1]=function(e){return r.onBlur(e)})},c(c({},e.inputProps),e.ptm("hiddenInput"))),null,16,f)],16),n.renderSlot(e.$slots,"icon",{value:e.modelValue,class:n.normalizeClass(e.cx("icon"))},(function(){return[e.onIcon||e.offIcon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:0,class:[e.cx("icon"),e.modelValue?e.onIcon:e.offIcon]},e.ptm("icon",r.ptOptions)),null,16)):n.createCommentVNode("",!0)]})),n.createElementVNode("span",n.mergeProps({class:e.cx("label")},e.ptm("label",r.ptOptions)),n.toDisplayString(r.label),17)],16,d)),[[u]])},l}(primevue.ripple,primevue.basecomponent,Vue);
|
package/toolbar/Toolbar.d.ts
CHANGED
|
@@ -27,23 +27,23 @@ export interface ToolbarPassThroughMethodOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface ToolbarPassThroughOptions {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Used to pass attributes to the root's DOM element.
|
|
31
31
|
*/
|
|
32
32
|
root?: ToolbarPassThroughOptionType;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Used to pass attributes to the start's DOM element.
|
|
35
35
|
*/
|
|
36
36
|
start?: ToolbarPassThroughOptionType;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Used to pass attributes to the center's DOM element.
|
|
39
39
|
*/
|
|
40
40
|
center?: ToolbarPassThroughOptionType;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Used to pass attributes to the right's DOM element.
|
|
43
43
|
*/
|
|
44
44
|
end?: ToolbarPassThroughOptionType;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Used to manage all lifecycle hooks
|
|
47
47
|
* @see {@link BaseComponent.ComponentHooks}
|
|
48
48
|
*/
|
|
49
49
|
hooks?: ComponentHooks;
|
|
@@ -65,7 +65,7 @@ export interface ToolbarProps {
|
|
|
65
65
|
*/
|
|
66
66
|
'aria-labelledby'?: string | undefined;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
69
69
|
* @type {ToolbarPassThroughOptions}
|
|
70
70
|
*/
|
|
71
71
|
pt?: ToolbarPassThroughOptions;
|
package/toolbar/Toolbar.vue
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="cx('root')" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')" data-pc-name="toolbar">
|
|
3
|
-
<div :class="cx('start')"
|
|
3
|
+
<div :class="cx('start')" v-bind="ptm('start')">
|
|
4
4
|
<slot name="start"></slot>
|
|
5
5
|
</div>
|
|
6
|
-
<div :class="cx('center')"
|
|
6
|
+
<div :class="cx('center')" v-bind="ptm('center')">
|
|
7
7
|
<slot name="center"></slot>
|
|
8
8
|
</div>
|
|
9
|
-
<div :class="cx('end')"
|
|
9
|
+
<div :class="cx('end')" v-bind="ptm('end')">
|
|
10
10
|
<slot name="end"></slot>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
package/toolbar/toolbar.cjs.js
CHANGED
|
@@ -55,14 +55,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55
55
|
}, _ctx.ptm('root'), {
|
|
56
56
|
"data-pc-name": "toolbar"
|
|
57
57
|
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
58
|
-
"class": _ctx.cx('start')
|
|
59
|
-
"data-pc-section": "start"
|
|
58
|
+
"class": _ctx.cx('start')
|
|
60
59
|
}, _ctx.ptm('start')), [vue.renderSlot(_ctx.$slots, "start")], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
61
|
-
"class": _ctx.cx('center')
|
|
62
|
-
"data-pc-section": "center"
|
|
60
|
+
"class": _ctx.cx('center')
|
|
63
61
|
}, _ctx.ptm('center')), [vue.renderSlot(_ctx.$slots, "center")], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
64
|
-
"class": _ctx.cx('end')
|
|
65
|
-
"data-pc-section": "end"
|
|
62
|
+
"class": _ctx.cx('end')
|
|
66
63
|
}, _ctx.ptm('end')), [vue.renderSlot(_ctx.$slots, "end")], 16)], 16, _hoisted_1);
|
|
67
64
|
}
|
|
68
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/basecomponent"),
|
|
1
|
+
"use strict";var e=require("primevue/basecomponent"),r=require("primevue/usestyle"),t=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),a=r.useStyle("\n.p-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.p-toolbar-group-start,\n.p-toolbar-group-center,\n.p-toolbar-group-end {\n display: flex;\n align-items: center;\n}\n\n.p-toolbar-group-left,\n.p-toolbar-group-right {\n display: flex;\n align-items: center;\n}\n",{name:"toolbar",manual:!0}),l={name:"Toolbar",extends:{name:"BaseToolbar",extends:n.default,props:{"aria-labelledby":{type:String,default:null}},css:{classes:{root:"p-toolbar p-component",start:"p-toolbar-group-start p-toolbar-group-left",center:"p-toolbar-group-center",end:"p-toolbar-group-end p-toolbar-group-right"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}}},p=["aria-labelledby"];l.render=function(e,r,o,n,a,l){return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:e.cx("root"),role:"toolbar","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"toolbar"}),[t.createElementVNode("div",t.mergeProps({class:e.cx("start")},e.ptm("start")),[t.renderSlot(e.$slots,"start")],16),t.createElementVNode("div",t.mergeProps({class:e.cx("center")},e.ptm("center")),[t.renderSlot(e.$slots,"center")],16),t.createElementVNode("div",t.mergeProps({class:e.cx("end")},e.ptm("end")),[t.renderSlot(e.$slots,"end")],16)],16,p)},module.exports=l;
|
package/toolbar/toolbar.esm.js
CHANGED
|
@@ -49,14 +49,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49
49
|
}, _ctx.ptm('root'), {
|
|
50
50
|
"data-pc-name": "toolbar"
|
|
51
51
|
}), [createElementVNode("div", mergeProps({
|
|
52
|
-
"class": _ctx.cx('start')
|
|
53
|
-
"data-pc-section": "start"
|
|
52
|
+
"class": _ctx.cx('start')
|
|
54
53
|
}, _ctx.ptm('start')), [renderSlot(_ctx.$slots, "start")], 16), createElementVNode("div", mergeProps({
|
|
55
|
-
"class": _ctx.cx('center')
|
|
56
|
-
"data-pc-section": "center"
|
|
54
|
+
"class": _ctx.cx('center')
|
|
57
55
|
}, _ctx.ptm('center')), [renderSlot(_ctx.$slots, "center")], 16), createElementVNode("div", mergeProps({
|
|
58
|
-
"class": _ctx.cx('end')
|
|
59
|
-
"data-pc-section": "end"
|
|
56
|
+
"class": _ctx.cx('end')
|
|
60
57
|
}, _ctx.ptm('end')), [renderSlot(_ctx.$slots, "end")], 16)], 16, _hoisted_1);
|
|
61
58
|
}
|
|
62
59
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"primevue/basecomponent";import{useStyle as t}from"primevue/usestyle";import{openBlock as r,createElementBlock as o,mergeProps as a,createElementVNode as n,renderSlot as l}from"vue";var p=t("\n.p-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.p-toolbar-group-start,\n.p-toolbar-group-center,\n.p-toolbar-group-end {\n display: flex;\n align-items: center;\n}\n\n.p-toolbar-group-left,\n.p-toolbar-group-right {\n display: flex;\n align-items: center;\n}\n",{name:"toolbar",manual:!0}),s={name:"Toolbar",extends:{name:"BaseToolbar",extends:e,props:{"aria-labelledby":{type:String,default:null}},css:{classes:{root:"p-toolbar p-component",start:"p-toolbar-group-start p-toolbar-group-left",center:"p-toolbar-group-center",end:"p-toolbar-group-end p-toolbar-group-right"},loadStyle:p.load},provide:function(){return{$parentInstance:this}}}},i=["aria-labelledby"];s.render=function(e,t,p,s,b,c){return r(),o("div",a({class:e.cx("root"),role:"toolbar","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"toolbar"}),[n("div",a({class:e.cx("start")},e.ptm("start")),[l(e.$slots,"start")],16),n("div",a({class:e.cx("center")},e.ptm("center")),[l(e.$slots,"center")],16),n("div",a({class:e.cx("end")},e.ptm("end")),[l(e.$slots,"end")],16)],16,i)};export{s as default};
|
package/toolbar/toolbar.js
CHANGED
|
@@ -53,14 +53,11 @@ this.primevue.toolbar = (function (BaseComponent, usestyle, vue) {
|
|
|
53
53
|
}, _ctx.ptm('root'), {
|
|
54
54
|
"data-pc-name": "toolbar"
|
|
55
55
|
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
56
|
-
"class": _ctx.cx('start')
|
|
57
|
-
"data-pc-section": "start"
|
|
56
|
+
"class": _ctx.cx('start')
|
|
58
57
|
}, _ctx.ptm('start')), [vue.renderSlot(_ctx.$slots, "start")], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
59
|
-
"class": _ctx.cx('center')
|
|
60
|
-
"data-pc-section": "center"
|
|
58
|
+
"class": _ctx.cx('center')
|
|
61
59
|
}, _ctx.ptm('center')), [vue.renderSlot(_ctx.$slots, "center")], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
62
|
-
"class": _ctx.cx('end')
|
|
63
|
-
"data-pc-section": "end"
|
|
60
|
+
"class": _ctx.cx('end')
|
|
64
61
|
}, _ctx.ptm('end')), [vue.renderSlot(_ctx.$slots, "end")], 16)], 16, _hoisted_1);
|
|
65
62
|
}
|
|
66
63
|
|
package/toolbar/toolbar.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.toolbar=function(e,t,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),a=t.useStyle("\n.p-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.p-toolbar-group-start,\n.p-toolbar-group-center,\n.p-toolbar-group-end {\n display: flex;\n align-items: center;\n}\n\n.p-toolbar-group-left,\n.p-toolbar-group-right {\n display: flex;\n align-items: center;\n}\n",{name:"toolbar",manual:!0}),l={name:"Toolbar",extends:{name:"BaseToolbar",extends:n.default,props:{"aria-labelledby":{type:String,default:null}},css:{classes:{root:"p-toolbar p-component",start:"p-toolbar-group-start p-toolbar-group-left",center:"p-toolbar-group-center",end:"p-toolbar-group-end p-toolbar-group-right"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}}},
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.toolbar=function(e,t,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=o(e),a=t.useStyle("\n.p-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n\n.p-toolbar-group-start,\n.p-toolbar-group-center,\n.p-toolbar-group-end {\n display: flex;\n align-items: center;\n}\n\n.p-toolbar-group-left,\n.p-toolbar-group-right {\n display: flex;\n align-items: center;\n}\n",{name:"toolbar",manual:!0}),l={name:"Toolbar",extends:{name:"BaseToolbar",extends:n.default,props:{"aria-labelledby":{type:String,default:null}},css:{classes:{root:"p-toolbar p-component",start:"p-toolbar-group-start p-toolbar-group-left",center:"p-toolbar-group-center",end:"p-toolbar-group-end p-toolbar-group-right"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}}},p=["aria-labelledby"];return l.render=function(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),role:"toolbar","aria-labelledby":e.ariaLabelledby},e.ptm("root"),{"data-pc-name":"toolbar"}),[r.createElementVNode("div",r.mergeProps({class:e.cx("start")},e.ptm("start")),[r.renderSlot(e.$slots,"start")],16),r.createElementVNode("div",r.mergeProps({class:e.cx("center")},e.ptm("center")),[r.renderSlot(e.$slots,"center")],16),r.createElementVNode("div",r.mergeProps({class:e.cx("end")},e.ptm("end")),[r.renderSlot(e.$slots,"end")],16)],16,p)},l}(primevue.basecomponent,primevue.usestyle,Vue);
|
package/tooltip/Tooltip.d.ts
CHANGED
|
@@ -10,7 +10,14 @@
|
|
|
10
10
|
import { DirectiveBinding, ObjectDirective } from 'vue';
|
|
11
11
|
import { DirectiveHooks } from '../basedirective';
|
|
12
12
|
|
|
13
|
-
export declare type TooltipDirectivePassThroughOptionType = TooltipDirectivePassThroughAttributes | null | undefined;
|
|
13
|
+
export declare type TooltipDirectivePassThroughOptionType = TooltipDirectivePassThroughAttributes | ((options: TooltipPassThroughMethodOptions) => TooltipDirectivePassThroughAttributes) | null | undefined;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Custom passthrough(pt) option method.
|
|
17
|
+
*/
|
|
18
|
+
export interface TooltipPassThroughMethodOptions {
|
|
19
|
+
context: TooltipContext;
|
|
20
|
+
}
|
|
14
21
|
|
|
15
22
|
/**
|
|
16
23
|
* Defines options of Tooltip.
|
|
@@ -54,7 +61,7 @@ export interface TooltipOptions {
|
|
|
54
61
|
*/
|
|
55
62
|
hideDelay?: number | undefined;
|
|
56
63
|
/**
|
|
57
|
-
*
|
|
64
|
+
* Used to pass attributes to DOM elements inside the component.
|
|
58
65
|
* @type {TooltipDirectivePassThroughOptions}
|
|
59
66
|
*/
|
|
60
67
|
pt?: TooltipDirectivePassThroughOptions;
|
|
@@ -71,19 +78,19 @@ export interface TooltipOptions {
|
|
|
71
78
|
*/
|
|
72
79
|
export interface TooltipDirectivePassThroughOptions {
|
|
73
80
|
/**
|
|
74
|
-
*
|
|
81
|
+
* Used to pass attributes to the root's DOM element.
|
|
75
82
|
*/
|
|
76
83
|
root?: TooltipDirectivePassThroughOptionType;
|
|
77
84
|
/**
|
|
78
|
-
*
|
|
85
|
+
* Used to pass attributes to the text's DOM element.
|
|
79
86
|
*/
|
|
80
87
|
text?: TooltipDirectivePassThroughOptionType;
|
|
81
88
|
/**
|
|
82
|
-
*
|
|
89
|
+
* Used to pass attributes to the arrow's DOM element.
|
|
83
90
|
*/
|
|
84
91
|
arrow?: TooltipDirectivePassThroughOptionType;
|
|
85
92
|
/**
|
|
86
|
-
*
|
|
93
|
+
* Used to manage all lifecycle hooks
|
|
87
94
|
* @see {@link BaseDirective.DirectiveHooks}
|
|
88
95
|
*/
|
|
89
96
|
hooks?: DirectiveHooks;
|
|
@@ -96,6 +103,28 @@ export interface TooltipDirectivePassThroughAttributes {
|
|
|
96
103
|
[key: string]: any;
|
|
97
104
|
}
|
|
98
105
|
|
|
106
|
+
/**
|
|
107
|
+
* Defines current options in Tooltip directive.
|
|
108
|
+
*/
|
|
109
|
+
export interface TooltipContext {
|
|
110
|
+
/**
|
|
111
|
+
* Current top position state as a boolean.
|
|
112
|
+
*/
|
|
113
|
+
top: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Current right position state as a boolean.
|
|
116
|
+
*/
|
|
117
|
+
right: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Current bottom position state as a boolean.
|
|
120
|
+
*/
|
|
121
|
+
bottom: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Current left position state as a boolean.
|
|
124
|
+
*/
|
|
125
|
+
left: boolean;
|
|
126
|
+
}
|
|
127
|
+
|
|
99
128
|
/**
|
|
100
129
|
* Defines modifiers of Tooltip.
|
|
101
130
|
*/
|
package/tooltip/tooltip.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
|
|
9
9
|
var BaseDirective__default = /*#__PURE__*/_interopDefaultLegacy(BaseDirective);
|
|
10
10
|
|
|
11
|
-
var styles = "\n.p-tooltip {\n position:absolute;\n display:none;\n padding: .25em .5rem;\n max-width: 12.5rem;\n}\n\n.p-tooltip.p-tooltip-right,\n.p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n}\n\n.p-tooltip.p-tooltip-top,\n.p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n}\n\n.p-tooltip .p-tooltip-text {\n
|
|
11
|
+
var styles = "\n.p-tooltip {\n position:absolute;\n display:none;\n pointer-events:none;\n padding: .25em .5rem;\n max-width: 12.5rem;\n}\n\n.p-tooltip.p-tooltip-right,\n.p-tooltip.p-tooltip-left {\n padding: 0 .25rem;\n}\n\n.p-tooltip.p-tooltip-top,\n.p-tooltip.p-tooltip-bottom {\n padding:.25em 0;\n}\n\n.p-tooltip .p-tooltip-text {\n white-space: pre-line;\n word-break: break-word;\n}\n\n.p-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n\n.p-tooltip-right .p-tooltip-arrow {\n margin-top: -.25rem;\n border-width: .25em .25em .25em 0;\n}\n\n.p-tooltip-left .p-tooltip-arrow {\n margin-top: -.25rem;\n border-width: .25em 0 .25em .25rem;\n}\n\n.p-tooltip.p-tooltip-top {\n padding: .25em 0;\n}\n\n.p-tooltip-top .p-tooltip-arrow {\n margin-left: -.25rem;\n border-width: .25em .25em 0;\n}\n\n.p-tooltip-bottom .p-tooltip-arrow {\n margin-left: -.25rem;\n border-width: 0 .25em .25rem;\n}\n";
|
|
12
12
|
var classes = {
|
|
13
13
|
root: 'p-tooltip p-component',
|
|
14
14
|
arrow: 'p-tooltip-arrow',
|
|
@@ -233,13 +233,24 @@ var Tooltip = BaseTooltip.extend('tooltip', {
|
|
|
233
233
|
return document.getElementById(el.$_ptooltipId);
|
|
234
234
|
},
|
|
235
235
|
create: function create(el, options) {
|
|
236
|
+
var modifiers = el.$_ptooltipModifiers;
|
|
236
237
|
var tooltipArrow = utils.DomHandler.createElement('div', {
|
|
237
238
|
"class": !el.unstyled && this.cx('arrow'),
|
|
238
|
-
|
|
239
|
+
style: {
|
|
240
|
+
top: modifiers !== null && modifiers !== void 0 && modifiers.bottom ? '0' : modifiers !== null && modifiers !== void 0 && modifiers.right || modifiers !== null && modifiers !== void 0 && modifiers.left || !(modifiers !== null && modifiers !== void 0 && modifiers.right) && !(modifiers !== null && modifiers !== void 0 && modifiers.left) && !(modifiers !== null && modifiers !== void 0 && modifiers.top) && !(modifiers !== null && modifiers !== void 0 && modifiers.bottom) ? '50%' : null,
|
|
241
|
+
bottom: modifiers !== null && modifiers !== void 0 && modifiers.top ? '0' : null,
|
|
242
|
+
left: modifiers !== null && modifiers !== void 0 && modifiers.right || !(modifiers !== null && modifiers !== void 0 && modifiers.right) && !(modifiers !== null && modifiers !== void 0 && modifiers.left) && !(modifiers !== null && modifiers !== void 0 && modifiers.top) && !(modifiers !== null && modifiers !== void 0 && modifiers.bottom) ? '0' : modifiers !== null && modifiers !== void 0 && modifiers.top || modifiers !== null && modifiers !== void 0 && modifiers.bottom ? '50%' : null,
|
|
243
|
+
right: modifiers !== null && modifiers !== void 0 && modifiers.left ? '0' : null
|
|
244
|
+
},
|
|
245
|
+
'p-bind': this.ptm('arrow', {
|
|
246
|
+
context: modifiers
|
|
247
|
+
})
|
|
239
248
|
});
|
|
240
249
|
var tooltipText = utils.DomHandler.createElement('div', {
|
|
241
250
|
"class": !el.unstyled && this.cx('text'),
|
|
242
|
-
'p-bind': this.ptm('text'
|
|
251
|
+
'p-bind': this.ptm('text', {
|
|
252
|
+
context: modifiers
|
|
253
|
+
})
|
|
243
254
|
});
|
|
244
255
|
if (el.$_ptooltipEscape) {
|
|
245
256
|
tooltipText.innerHTML = el.$_ptooltipValue;
|
|
@@ -255,7 +266,9 @@ var Tooltip = BaseTooltip.extend('tooltip', {
|
|
|
255
266
|
width: el.$_ptooltipFitContent ? 'fit-content' : undefined
|
|
256
267
|
},
|
|
257
268
|
"class": [!el.unstyled && this.cx('root'), el.$_ptooltipClass],
|
|
258
|
-
'p-bind': this.ptm('root'
|
|
269
|
+
'p-bind': this.ptm('root', {
|
|
270
|
+
context: modifiers
|
|
271
|
+
})
|
|
259
272
|
}, tooltipArrow, tooltipText);
|
|
260
273
|
document.body.appendChild(container);
|
|
261
274
|
el.$_ptooltipId = container.id;
|