primevue 3.42.0 → 3.44.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 +8 -0
- package/accordion/Accordion.vue +1 -0
- package/accordion/accordion.cjs.js +3 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -2
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +6 -3
- package/animateonscroll/animateonscroll.cjs.js +2 -2
- package/animateonscroll/animateonscroll.cjs.min.js +1 -1
- package/animateonscroll/animateonscroll.esm.js +2 -2
- package/animateonscroll/animateonscroll.esm.min.js +1 -1
- package/animateonscroll/animateonscroll.js +2 -2
- package/animateonscroll/animateonscroll.min.js +1 -1
- package/api/api.cjs.js +6 -6
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +6 -6
- package/api/api.esm.min.js +1 -1
- package/api/api.js +6 -6
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +25 -2
- package/autocomplete/AutoComplete.vue +2 -1
- package/autocomplete/autocomplete.cjs.js +5 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +5 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +5 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +6 -3
- package/avatar/Avatar.vue +4 -11
- package/avatar/avatar.cjs.js +4 -11
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +4 -11
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +4 -11
- package/avatar/avatar.min.js +1 -1
- package/badge/Badge.d.ts +8 -4
- package/badgedirective/BadgeDirective.d.ts +8 -0
- package/badgedirective/badgedirective.cjs.js +2 -2
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +2 -2
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +2 -2
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/style/basestyle.cjs.js +2 -2
- package/base/style/basestyle.cjs.min.js +1 -1
- package/base/style/basestyle.esm.js +2 -2
- package/base/style/basestyle.esm.min.js +1 -1
- package/base/style/basestyle.js +2 -2
- package/base/style/basestyle.min.js +1 -1
- package/basecomponent/BaseComponent.vue +16 -1
- package/basecomponent/basecomponent.cjs.js +14 -5
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +14 -5
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +14 -5
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +2 -2
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +2 -2
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +2 -2
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/basedirective/basedirective.cjs.js +2 -3
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +2 -3
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +2 -3
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +8 -0
- package/breadcrumb/Breadcrumb.d.ts +8 -0
- package/button/Button.d.ts +10 -10
- package/button/Button.vue +1 -5
- package/button/button.cjs.js +1 -6
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +1 -6
- package/button/button.esm.min.js +1 -1
- package/button/button.js +1 -6
- package/button/button.min.js +1 -1
- package/button/style/buttonstyle.cjs.js +2 -2
- package/button/style/buttonstyle.cjs.min.js +1 -1
- package/button/style/buttonstyle.esm.js +2 -2
- package/button/style/buttonstyle.esm.min.js +1 -1
- package/button/style/buttonstyle.js +2 -2
- package/button/style/buttonstyle.min.js +1 -1
- package/calendar/Calendar.d.ts +37 -11
- package/calendar/Calendar.vue +9 -5
- package/calendar/calendar.cjs.js +10 -8
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +10 -8
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +10 -8
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +8 -0
- package/carousel/Carousel.vue +4 -2
- package/carousel/carousel.cjs.js +5 -3
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +5 -3
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +5 -3
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +8 -0
- package/cascadeselect/CascadeSelect.vue +1 -1
- package/cascadeselect/CascadeSelectSub.vue +4 -1
- package/cascadeselect/cascadeselect.cjs.js +7 -4
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +7 -4
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +7 -4
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +8 -0
- package/chart/Chart.vue +1 -1
- package/chart/chart.cjs.js +4 -3
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +4 -3
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +4 -3
- package/chart/chart.min.js +1 -1
- package/chart/style/chartstyle.cjs.js +6 -2
- package/chart/style/chartstyle.cjs.min.js +1 -1
- package/chart/style/chartstyle.esm.js +6 -2
- package/chart/style/chartstyle.esm.min.js +1 -1
- package/chart/style/chartstyle.js +6 -2
- package/chart/style/chartstyle.min.js +1 -1
- package/checkbox/Checkbox.d.ts +8 -0
- package/checkbox/checkbox.cjs.js +2 -2
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +2 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +2 -2
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +8 -0
- package/chips/Chips.d.ts +8 -0
- package/chips/chips.cjs.js +2 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +2 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +2 -2
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +8 -0
- package/column/Column.d.ts +31 -13
- package/columngroup/ColumnGroup.d.ts +6 -3
- package/config/config.cjs.js +3 -3
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +3 -3
- package/config/config.esm.min.js +1 -1
- package/config/config.js +3 -3
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +24 -2
- package/confirmpopup/ConfirmPopup.d.ts +24 -2
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +2 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +8 -0
- package/contextmenu/contextmenu.cjs.js +2 -2
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +2 -2
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +2 -2
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +308 -229
- package/core/core.min.js +27 -27
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +23 -1
- package/datatable/FooterCell.vue +1 -0
- package/datatable/HeaderCell.vue +1 -0
- package/datatable/HeaderCheckbox.vue +1 -0
- package/datatable/RowCheckbox.vue +2 -0
- package/datatable/RowRadioButton.vue +1 -0
- package/datatable/TableBody.vue +1 -0
- package/datatable/TableFooter.vue +2 -0
- package/datatable/TableHeader.vue +3 -0
- package/datatable/datatable.cjs.js +34 -20
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +34 -20
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +34 -20
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +24 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +8 -0
- package/deferredcontent/DeferredContent.d.ts +8 -0
- package/dialog/Dialog.d.ts +20 -16
- package/dialog/dialog.cjs.js +2 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +8 -0
- package/dock/Dock.d.ts +8 -0
- package/dropdown/Dropdown.d.ts +28 -24
- package/dropdown/Dropdown.vue +5 -3
- package/dropdown/dropdown.cjs.js +8 -7
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +8 -7
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +8 -7
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +1 -1
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +1 -1
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/dynamicdialog/DynamicDialog.vue +1 -1
- package/dynamicdialog/dynamicdialog.cjs.js +1 -3
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +1 -3
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +1 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/Editor.d.ts +8 -0
- package/editor/editor.cjs.js +2 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +2 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +8 -0
- 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 +30 -6
- package/galleria/BaseGalleria.vue +8 -0
- package/galleria/Galleria.d.ts +16 -0
- package/galleria/Galleria.vue +1 -1
- package/galleria/GalleriaContent.vue +11 -1
- package/galleria/GalleriaItem.vue +72 -3
- package/galleria/galleria.cjs.js +93 -13
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +93 -13
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +93 -13
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +8 -0
- package/image/Image.vue +4 -1
- package/image/image.cjs.js +20 -15
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +20 -15
- package/image/image.esm.min.js +1 -1
- package/image/image.js +20 -15
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +8 -0
- package/inplace/Inplace.d.ts +23 -1
- package/inplace/inplace.cjs.js +2 -2
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +2 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inplace/inplace.min.js +1 -1
- package/inputgroup/InputGroup.d.ts +8 -0
- package/inputgroupaddon/InputGroupAddon.d.ts +8 -0
- package/inputmask/InputMask.d.ts +8 -0
- package/inputnumber/InputNumber.d.ts +30 -12
- package/inputnumber/InputNumber.vue +10 -5
- package/inputnumber/inputnumber.cjs.js +22 -23
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +22 -23
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +22 -23
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +8 -0
- package/inputswitch/inputswitch.cjs.js +2 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +2 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +2 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +8 -4
- package/inputtext/InputText.vue +9 -9
- package/inputtext/inputtext.cjs.js +9 -9
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +9 -9
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +9 -9
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +8 -0
- package/listbox/Listbox.d.ts +8 -0
- package/listbox/listbox.cjs.js +2 -2
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +2 -2
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +2 -2
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +8 -0
- package/menu/Menu.d.ts +8 -0
- package/menu/menu.cjs.js +2 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +2 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +2 -2
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +8 -0
- package/menubar/menubar.cjs.js +2 -2
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -2
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -2
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +17 -13
- package/message/message.cjs.js +2 -2
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +2 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -2
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +8 -0
- package/multiselect/multiselect.cjs.js +4 -4
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +4 -4
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -4
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +27 -5
- package/orderlist/OrderList.vue +4 -4
- package/orderlist/orderlist.cjs.js +18 -18
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +18 -18
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +18 -18
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +8 -0
- package/organizationchart/organizationchart.cjs.js +2 -2
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +2 -2
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +2 -2
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +8 -0
- package/overlaypanel/overlaypanel.cjs.js +2 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +2 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +2 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +44 -26
- package/paginator/style/paginatorstyle.cjs.js +2 -2
- package/paginator/style/paginatorstyle.cjs.min.js +1 -1
- package/paginator/style/paginatorstyle.esm.js +2 -2
- package/paginator/style/paginatorstyle.esm.min.js +1 -1
- package/paginator/style/paginatorstyle.js +2 -2
- package/paginator/style/paginatorstyle.min.js +1 -1
- package/panel/Panel.d.ts +8 -0
- 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 +8 -0
- package/panelmenu/panelmenu.cjs.js +2 -2
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -2
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +2 -2
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +2 -2
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +2 -2
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +2 -2
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +168 -124
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +168 -124
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +168 -124
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/Password.d.ts +25 -3
- package/password/Password.vue +2 -1
- package/password/password.cjs.js +5 -6
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +5 -6
- package/password/password.esm.min.js +1 -1
- package/password/password.js +5 -6
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +35 -13
- package/picklist/PickList.vue +48 -12
- package/picklist/picklist.cjs.js +49 -37
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +49 -37
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +49 -37
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +10 -6
- package/progressspinner/ProgressSpinner.d.ts +8 -0
- package/radiobutton/RadioButton.d.ts +8 -0
- package/radiobutton/radiobutton.cjs.js +2 -2
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +2 -2
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +2 -2
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +8 -0
- package/row/Row.d.ts +6 -3
- package/scrollpanel/ScrollPanel.d.ts +8 -0
- package/scrollpanel/ScrollPanel.vue +8 -1
- package/scrollpanel/scrollpanel.cjs.js +14 -5
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +14 -5
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +14 -5
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +8 -0
- package/selectbutton/SelectButton.d.ts +8 -0
- package/sidebar/Sidebar.d.ts +8 -0
- package/sidebar/sidebar.cjs.js +2 -2
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +2 -2
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -2
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +8 -0
- package/slider/Slider.d.ts +8 -0
- package/speeddial/SpeedDial.d.ts +23 -1
- package/speeddial/speeddial.cjs.js +2 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +2 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +2 -2
- package/speeddial/speeddial.min.js +1 -1
- package/speeddial/style/speeddialstyle.cjs.js +2 -2
- package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
- package/speeddial/style/speeddialstyle.esm.js +2 -2
- package/speeddial/style/speeddialstyle.esm.min.js +1 -1
- package/speeddial/style/speeddialstyle.js +2 -2
- package/speeddial/style/speeddialstyle.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +24 -2
- package/splitbutton/SplitButton.vue +2 -2
- package/splitbutton/splitbutton.cjs.js +4 -4
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +4 -4
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +4 -4
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.cjs.js +3 -3
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +3 -3
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +3 -3
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/splitter/Splitter.d.ts +8 -0
- package/splitterpanel/SplitterPanel.d.ts +8 -0
- package/steps/Steps.d.ts +8 -0
- package/tabmenu/TabMenu.d.ts +8 -0
- package/tabpanel/TabPanel.d.ts +8 -5
- package/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +3 -2
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +3 -2
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +3 -2
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +8 -0
- package/terminal/Terminal.d.ts +8 -0
- package/textarea/Textarea.d.ts +8 -0
- package/tieredmenu/TieredMenu.d.ts +18 -14
- package/tieredmenu/tieredmenu.cjs.js +2 -2
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -2
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +8 -0
- package/toast/Toast.d.ts +8 -0
- package/toast/style/toaststyle.cjs.js +2 -2
- package/toast/style/toaststyle.cjs.min.js +1 -1
- package/toast/style/toaststyle.esm.js +2 -2
- package/toast/style/toaststyle.esm.min.js +1 -1
- package/toast/style/toaststyle.js +2 -2
- package/toast/style/toaststyle.min.js +1 -1
- package/toast/toast.cjs.js +4 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +4 -4
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -4
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +8 -0
- package/togglebutton/togglebutton.cjs.js +2 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +2 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +8 -0
- package/tooltip/Tooltip.d.ts +8 -0
- package/tree/Tree.d.ts +46 -22
- package/tree/Tree.vue +3 -1
- package/tree/tree.cjs.js +9 -5
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +9 -5
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +9 -5
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +25 -3
- 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/BodyCell.vue +3 -1
- package/treetable/FooterCell.vue +1 -0
- package/treetable/HeaderCell.vue +1 -0
- package/treetable/TreeTable.d.ts +23 -1
- package/treetable/TreeTable.vue +3 -1
- package/treetable/treetable.cjs.js +19 -13
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +19 -13
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +19 -13
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +8 -0
- package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +2 -2
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/usestyle/usestyle.cjs.js +2 -2
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +2 -2
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +2 -2
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +1 -0
- package/utils/utils.cjs.js +27 -3
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +27 -3
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +27 -3
- package/utils/utils.min.js +1 -1
- package/virtualscroller/VirtualScroller.d.ts +8 -0
- package/virtualscroller/VirtualScroller.vue +1 -1
- package/virtualscroller/virtualscroller.cjs.js +5 -5
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +5 -5
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +5 -5
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/focustrap";import t from"primevue/icons/times";import n from"primevue/overlayeventbus";import i from"primevue/portal";import o from"primevue/ripple";import{ZIndexUtils as r,DomHandler as s,ConnectedOverlayScrollHandler as l,UniqueComponentId as c}from"primevue/utils";import a from"primevue/basecomponent";import u from"primevue/overlaypanel/style";import{resolveComponent as d,resolveDirective as h,openBlock as f,createBlock as p,withCtx as y,createVNode as v,Transition as m,mergeProps as b,withDirectives as L,createElementBlock as w,renderSlot as k,Fragment as C,createElementVNode as g,resolveDynamicComponent as E,createCommentVNode as O}from"vue";var S={name:"OverlayPanel",extends:{name:"BaseOverlayPanel",extends:a,props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0},closeOnEscape:{type:Boolean,default:!0}},style:u,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&r.clear(this.container),this.overlayEventListener&&(n.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,t){this.visible?this.hide():this.show(e,t)},show:function(e,t){this.visible=!0,this.eventTarget=e.currentTarget,this.target=t||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var t=this;this.container.setAttribute(this.attributeSelector,""),s.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&r.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(e){t.container.contains(e.target)&&(t.selfClick=!0)},this.focus(),n.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),n.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&r.clear(e)},alignOverlay:function(){s.absolutePosition(this.container,this.target);var e=s.getOffset(this.container),t=s.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-overlaypanel-flipped","true"),!this.isUnstyled&&s.addClass(this.container,"p-overlaypanel-flipped"))},onContentKeydown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.hide(),s.focus(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&s.isClient()&&(this.outsideClickListener=function(t){!e.visible||e.selfClick||e.isTargetClicked(t)||(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new l(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!s.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",s.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-overlaypanel[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){n.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{attributeSelector:function(){return c()},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{focustrap:e,ripple:o},components:{Portal:i,TimesIcon:t}};function K(e){return K="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},K(e)}function T(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e
|
|
1
|
+
import e from"primevue/focustrap";import t from"primevue/icons/times";import n from"primevue/overlayeventbus";import i from"primevue/portal";import o from"primevue/ripple";import{ZIndexUtils as r,DomHandler as s,ConnectedOverlayScrollHandler as l,UniqueComponentId as c}from"primevue/utils";import a from"primevue/basecomponent";import u from"primevue/overlaypanel/style";import{resolveComponent as d,resolveDirective as h,openBlock as f,createBlock as p,withCtx as y,createVNode as v,Transition as m,mergeProps as b,withDirectives as L,createElementBlock as w,renderSlot as k,Fragment as C,createElementVNode as g,resolveDynamicComponent as E,createCommentVNode as O}from"vue";var S={name:"OverlayPanel",extends:{name:"BaseOverlayPanel",extends:a,props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0},closeOnEscape:{type:Boolean,default:!0}},style:u,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&r.clear(this.container),this.overlayEventListener&&(n.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,t){this.visible?this.hide():this.show(e,t)},show:function(e,t){this.visible=!0,this.eventTarget=e.currentTarget,this.target=t||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var t=this;this.container.setAttribute(this.attributeSelector,""),s.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&r.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(e){t.container.contains(e.target)&&(t.selfClick=!0)},this.focus(),n.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),n.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&r.clear(e)},alignOverlay:function(){s.absolutePosition(this.container,this.target);var e=s.getOffset(this.container),t=s.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-overlaypanel-flipped","true"),!this.isUnstyled&&s.addClass(this.container,"p-overlaypanel-flipped"))},onContentKeydown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.hide(),s.focus(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&s.isClient()&&(this.outsideClickListener=function(t){!e.visible||e.selfClick||e.isTargetClicked(t)||(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new l(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!s.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",s.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-overlaypanel[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){n.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{attributeSelector:function(){return c()},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{focustrap:e,ripple:o},components:{Portal:i,TimesIcon:t}};function K(e){return K="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},K(e)}function T(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){var i;return(t="symbol"==K(i=I(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=K(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["aria-modal"],j=["aria-label"];S.render=function(e,t,n,i,o,r){var s=d("Portal"),l=h("ripple"),c=h("focustrap");return f(),p(s,{appendTo:e.appendTo},{default:y((function(){return[v(m,b({name:"p-overlaypanel",onEnter:r.onEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:y((function(){return[o.visible?L((f(),w("div",b({key:0,ref:r.containerRef,role:"dialog","aria-modal":o.visible,onClick:t[5]||(t[5]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),class:e.cx("root")},x(x({},e.$attrs),e.ptm("root"))),[e.$slots.container?k(e.$slots,"container",{key:0,onClose:r.hide,onKeydown:function(e){return r.onButtonKeydown(e)},closeCallback:r.hide,keydownCallback:function(e){return r.onButtonKeydown(e)}}):(f(),w(C,{key:1},[g("div",b({class:e.cx("content"),onClick:t[0]||(t[0]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onMousedown:t[1]||(t[1]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onContentKeydown&&r.onContentKeydown.apply(r,arguments)})},e.ptm("content")),[k(e.$slots,"default")],16),e.showCloseIcon?L((f(),w("button",b({key:0,class:e.cx("closeButton"),"aria-label":r.closeAriaLabel,type:"button",autofocus:"",onClick:t[3]||(t[3]=function(){return r.hide&&r.hide.apply(r,arguments)}),onKeydown:t[4]||(t[4]=function(){return r.onButtonKeydown&&r.onButtonKeydown.apply(r,arguments)})},e.ptm("closeButton")),[k(e.$slots,"closeicon",{},(function(){return[(f(),p(E(e.closeIcon?"span":"TimesIcon"),b({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,j)),[[l]]):O("",!0)],64))],16,P)),[[c]]):O("",!0)]})),_:3},16,["onEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])};export{S as default};
|
|
@@ -331,8 +331,8 @@ this.primevue.overlaypanel = (function (FocusTrap, TimesIcon, OverlayEventBus, P
|
|
|
331
331
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
332
332
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
333
333
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
334
|
-
function _toPropertyKey(
|
|
335
|
-
function _toPrimitive(
|
|
334
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
335
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
336
336
|
var _hoisted_1 = ["aria-modal"];
|
|
337
337
|
var _hoisted_2 = ["aria-label"];
|
|
338
338
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.overlaypanel=function(e,t,n,i,o,r,s,l,c){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e),d=a(t),h=a(n),f=a(i),p=a(o),v={name:"OverlayPanel",extends:{name:"BaseOverlayPanel",extends:a(s).default,props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0},closeOnEscape:{type:Boolean,default:!0}},style:a(l).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&r.ZIndexUtils.clear(this.container),this.overlayEventListener&&(h.default.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,t){this.visible?this.hide():this.show(e,t)},show:function(e,t){this.visible=!0,this.eventTarget=e.currentTarget,this.target=t||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var t=this;this.container.setAttribute(this.attributeSelector,""),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&r.ZIndexUtils.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(e){t.container.contains(e.target)&&(t.selfClick=!0)},this.focus(),h.default.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),h.default.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),t=r.DomHandler.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-overlaypanel-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-overlaypanel-flipped"))},onContentKeydown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.hide(),r.DomHandler.focus(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&r.DomHandler.isClient()&&(this.outsideClickListener=function(t){!e.visible||e.selfClick||e.isTargetClicked(t)||(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",r.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-overlaypanel[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){h.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{attributeSelector:function(){return r.UniqueComponentId()},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{focustrap:u.default,ripple:p.default},components:{Portal:f.default,TimesIcon:d.default}};function y(e){return y="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},y(e)}function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=k(e,"string");return"symbol"===y(t)?t:String(t)}function k(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var C=["aria-modal"],g=["aria-label"];return v.render=function(e,t,n,i,o,r){var s=c.resolveComponent("Portal"),l=c.resolveDirective("ripple"),a=c.resolveDirective("focustrap");return c.openBlock(),c.createBlock(s,{appendTo:e.appendTo},{default:c.withCtx((function(){return[c.createVNode(c.Transition,c.mergeProps({name:"p-overlaypanel",onEnter:r.onEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:c.withCtx((function(){return[o.visible?c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,ref:r.containerRef,role:"dialog","aria-modal":o.visible,onClick:t[5]||(t[5]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),class:e.cx("root")},b(b({},e.$attrs),e.ptm("root"))),[e.$slots.container?c.renderSlot(e.$slots,"container",{key:0,onClose:r.hide,onKeydown:function(e){return r.onButtonKeydown(e)},closeCallback:r.hide,keydownCallback:function(e){return r.onButtonKeydown(e)}}):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",c.mergeProps({class:e.cx("content"),onClick:t[0]||(t[0]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onMousedown:t[1]||(t[1]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onContentKeydown&&r.onContentKeydown.apply(r,arguments)})},e.ptm("content")),[c.renderSlot(e.$slots,"default")],16),e.showCloseIcon?c.withDirectives((c.openBlock(),c.createElementBlock("button",c.mergeProps({key:0,class:e.cx("closeButton"),"aria-label":r.closeAriaLabel,type:"button",autofocus:"",onClick:t[3]||(t[3]=function(){return r.hide&&r.hide.apply(r,arguments)}),onKeydown:t[4]||(t[4]=function(){return r.onButtonKeydown&&r.onButtonKeydown.apply(r,arguments)})},e.ptm("closeButton")),[c.renderSlot(e.$slots,"closeicon",{},(function(){return[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),c.mergeProps({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,g)),[[l]]):c.createCommentVNode("",!0)],64))],16,C)),[[a]]):c.createCommentVNode("",!0)]})),_:3},16,["onEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])},v}(primevue.focustrap,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.overlaypanel.style,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.overlaypanel=function(e,t,n,i,o,r,s,l,c){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(e),d=a(t),h=a(n),f=a(i),p=a(o),v={name:"OverlayPanel",extends:{name:"BaseOverlayPanel",extends:a(s).default,props:{dismissable:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!1},appendTo:{type:String,default:"body"},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},breakpoints:{type:Object,default:null},closeIcon:{type:String,default:void 0},closeOnEscape:{type:Boolean,default:!0}},style:a(l).default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,emits:["show","hide"],data:function(){return{visible:!1}},watch:{dismissable:{immediate:!0,handler:function(e){e?this.bindOutsideClickListener():this.unbindOutsideClickListener()}}},selfClick:!1,target:null,eventTarget:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,styleElement:null,overlayEventListener:null,documentKeydownListener:null,beforeUnmount:function(){this.dismissable&&this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.destroyStyle(),this.unbindResizeListener(),this.target=null,this.container&&this.autoZIndex&&r.ZIndexUtils.clear(this.container),this.overlayEventListener&&(h.default.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null),this.container=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{toggle:function(e,t){this.visible?this.hide():this.show(e,t)},show:function(e,t){this.visible=!0,this.eventTarget=e.currentTarget,this.target=t||e.currentTarget},hide:function(){this.visible=!1},onContentClick:function(){this.selfClick=!0},onEnter:function(e){var t=this;this.container.setAttribute(this.attributeSelector,""),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.dismissable&&this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&r.ZIndexUtils.set("overlay",e,this.baseZIndex+this.$primevue.config.zIndex.overlay),this.overlayEventListener=function(e){t.container.contains(e.target)&&(t.selfClick=!0)},this.focus(),h.default.on("overlay-click",this.overlayEventListener),this.$emit("show"),this.closeOnEscape&&this.bindDocumentKeyDownListener()},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.unbindDocumentKeyDownListener(),h.default.off("overlay-click",this.overlayEventListener),this.overlayEventListener=null,this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),t=r.DomHandler.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-overlaypanel-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-overlaypanel-flipped"))},onContentKeydown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.hide(),r.DomHandler.focus(this.target))},onButtonKeydown:function(e){switch(e.code){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":e.preventDefault()}},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus()},onKeyDown:function(e){"Escape"===e.code&&this.closeOnEscape&&(this.visible=!1)},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener("keydown",this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&(window.document.removeEventListener("keydown",this.documentKeydownListener),this.documentKeydownListener=null)},bindOutsideClickListener:function(){var e=this;!this.outsideClickListener&&r.DomHandler.isClient()&&(this.outsideClickListener=function(t){!e.visible||e.selfClick||e.isTargetClicked(t)||(e.visible=!1),e.selfClick=!1},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null,this.selfClick=!1)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked:function(e){return this.eventTarget&&(this.eventTarget===e.target||this.eventTarget.contains(e.target))},containerRef:function(e){this.container=e},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement("style"),this.styleElement.type="text/css",r.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="";for(var n in this.breakpoints)t+="\n @media screen and (max-width: ".concat(n,") {\n .p-overlaypanel[").concat(this.attributeSelector,"] {\n width: ").concat(this.breakpoints[n]," !important;\n }\n }\n ");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},onOverlayClick:function(e){h.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{attributeSelector:function(){return r.UniqueComponentId()},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{focustrap:u.default,ripple:p.default},components:{Portal:f.default,TimesIcon:d.default}};function y(e){return y="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},y(e)}function m(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 b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t,n){var i;return(t="symbol"==y(i=w(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var k=["aria-modal"],C=["aria-label"];return v.render=function(e,t,n,i,o,r){var s=c.resolveComponent("Portal"),l=c.resolveDirective("ripple"),a=c.resolveDirective("focustrap");return c.openBlock(),c.createBlock(s,{appendTo:e.appendTo},{default:c.withCtx((function(){return[c.createVNode(c.Transition,c.mergeProps({name:"p-overlaypanel",onEnter:r.onEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:c.withCtx((function(){return[o.visible?c.withDirectives((c.openBlock(),c.createElementBlock("div",c.mergeProps({key:0,ref:r.containerRef,role:"dialog","aria-modal":o.visible,onClick:t[5]||(t[5]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),class:e.cx("root")},b(b({},e.$attrs),e.ptm("root"))),[e.$slots.container?c.renderSlot(e.$slots,"container",{key:0,onClose:r.hide,onKeydown:function(e){return r.onButtonKeydown(e)},closeCallback:r.hide,keydownCallback:function(e){return r.onButtonKeydown(e)}}):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[c.createElementVNode("div",c.mergeProps({class:e.cx("content"),onClick:t[0]||(t[0]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onMousedown:t[1]||(t[1]=function(){return r.onContentClick&&r.onContentClick.apply(r,arguments)}),onKeydown:t[2]||(t[2]=function(){return r.onContentKeydown&&r.onContentKeydown.apply(r,arguments)})},e.ptm("content")),[c.renderSlot(e.$slots,"default")],16),e.showCloseIcon?c.withDirectives((c.openBlock(),c.createElementBlock("button",c.mergeProps({key:0,class:e.cx("closeButton"),"aria-label":r.closeAriaLabel,type:"button",autofocus:"",onClick:t[3]||(t[3]=function(){return r.hide&&r.hide.apply(r,arguments)}),onKeydown:t[4]||(t[4]=function(){return r.onButtonKeydown&&r.onButtonKeydown.apply(r,arguments)})},e.ptm("closeButton")),[c.renderSlot(e.$slots,"closeicon",{},(function(){return[(c.openBlock(),c.createBlock(c.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),c.mergeProps({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,C)),[[l]]):c.createCommentVNode("",!0)],64))],16,k)),[[a]]):c.createCommentVNode("",!0)]})),_:3},16,["onEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])},v}(primevue.focustrap,primevue.icons.times,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.overlaypanel.style,Vue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primevue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "PrimeTek Informatics",
|
|
6
6
|
"description": "PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.",
|
package/paginator/Paginator.d.ts
CHANGED
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { DropdownPassThroughOptions } from '../dropdown';
|
|
13
|
+
import { InputNumberPassThroughOptions } from '../inputnumber';
|
|
14
14
|
import { PassThroughOptions } from '../passthrough';
|
|
15
15
|
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
16
16
|
|
|
17
|
-
export declare type PaginatorPassThroughOptionType = PaginatorPassThroughAttributes | ((options: PaginatorPassThroughMethodOptions) => PaginatorPassThroughAttributes | string) | string | null | undefined;
|
|
17
|
+
export declare type PaginatorPassThroughOptionType<T = any> = PaginatorPassThroughAttributes | ((options: PaginatorPassThroughMethodOptions<T>) => PaginatorPassThroughAttributes | string) | string | null | undefined;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Custom passthrough(pt) option method.
|
|
21
21
|
*/
|
|
22
|
-
export interface PaginatorPassThroughMethodOptions {
|
|
22
|
+
export interface PaginatorPassThroughMethodOptions<T> {
|
|
23
23
|
/**
|
|
24
24
|
* Defines instance.
|
|
25
25
|
*/
|
|
@@ -32,6 +32,10 @@ export interface PaginatorPassThroughMethodOptions {
|
|
|
32
32
|
* Defines current inline state.
|
|
33
33
|
*/
|
|
34
34
|
state: PaginatorState;
|
|
35
|
+
/**
|
|
36
|
+
* Defines parent instance.
|
|
37
|
+
*/
|
|
38
|
+
parent: T;
|
|
35
39
|
/**
|
|
36
40
|
* Defines current options.
|
|
37
41
|
*/
|
|
@@ -42,86 +46,100 @@ export interface PaginatorPassThroughMethodOptions {
|
|
|
42
46
|
global: object | undefined;
|
|
43
47
|
}
|
|
44
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Custom shared passthrough(pt) option method.
|
|
51
|
+
*/
|
|
52
|
+
export interface PaginatorSharedPassThroughMethodOptions {
|
|
53
|
+
/**
|
|
54
|
+
* Defines valid properties.
|
|
55
|
+
*/
|
|
56
|
+
props: PaginatorProps;
|
|
57
|
+
/**
|
|
58
|
+
* Defines current inline state.
|
|
59
|
+
*/
|
|
60
|
+
state: PaginatorState;
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
/**
|
|
46
64
|
* Custom passthrough(pt) options.
|
|
47
65
|
* @see {@link PaginatorProps.pt}
|
|
48
66
|
*/
|
|
49
|
-
export interface PaginatorPassThroughOptions {
|
|
67
|
+
export interface PaginatorPassThroughOptions<T = any> {
|
|
50
68
|
/**
|
|
51
69
|
* Used to pass attributes to the paginator wrapper's DOM element.
|
|
52
70
|
*/
|
|
53
|
-
paginatorWrapper?: PaginatorPassThroughOptionType;
|
|
71
|
+
paginatorWrapper?: PaginatorPassThroughOptionType<T> | any;
|
|
54
72
|
/**
|
|
55
73
|
* Used to pass attributes to the root's DOM element.
|
|
56
74
|
*/
|
|
57
|
-
root?: PaginatorPassThroughOptionType
|
|
75
|
+
root?: PaginatorPassThroughOptionType<T>;
|
|
58
76
|
/**
|
|
59
77
|
* Used to pass attributes to the start's DOM element.
|
|
60
78
|
*/
|
|
61
|
-
start?: PaginatorPassThroughOptionType
|
|
79
|
+
start?: PaginatorPassThroughOptionType<T>;
|
|
62
80
|
/**
|
|
63
81
|
* Used to pass attributes to the first page button's DOM element.
|
|
64
82
|
*/
|
|
65
|
-
firstPageButton?: PaginatorPassThroughOptionType
|
|
83
|
+
firstPageButton?: PaginatorPassThroughOptionType<T>;
|
|
66
84
|
/**
|
|
67
85
|
* Used to pass attributes to the first page icon's DOM element.
|
|
68
86
|
*/
|
|
69
|
-
firstPageIcon?: PaginatorPassThroughOptionType
|
|
87
|
+
firstPageIcon?: PaginatorPassThroughOptionType<T>;
|
|
70
88
|
/**
|
|
71
89
|
* Used to pass attributes to the prev page button's DOM element.
|
|
72
90
|
*/
|
|
73
|
-
previousPageButton?: PaginatorPassThroughOptionType
|
|
91
|
+
previousPageButton?: PaginatorPassThroughOptionType<T>;
|
|
74
92
|
/**
|
|
75
93
|
* Used to pass attributes to the prev page icon's DOM element.
|
|
76
94
|
*/
|
|
77
|
-
previousPageIcon?: PaginatorPassThroughOptionType
|
|
95
|
+
previousPageIcon?: PaginatorPassThroughOptionType<T>;
|
|
78
96
|
/**
|
|
79
97
|
* Used to pass attributes to the next page button's DOM element.
|
|
80
98
|
*/
|
|
81
|
-
nextPageButton?: PaginatorPassThroughOptionType
|
|
99
|
+
nextPageButton?: PaginatorPassThroughOptionType<T>;
|
|
82
100
|
/**
|
|
83
101
|
* Used to pass attributes to the next page icon's DOM element.
|
|
84
102
|
*/
|
|
85
|
-
nextPageIcon?: PaginatorPassThroughOptionType
|
|
103
|
+
nextPageIcon?: PaginatorPassThroughOptionType<T>;
|
|
86
104
|
/**
|
|
87
105
|
* Used to pass attributes to the last page button's DOM element.
|
|
88
106
|
*/
|
|
89
|
-
lastPageButton?: PaginatorPassThroughOptionType
|
|
107
|
+
lastPageButton?: PaginatorPassThroughOptionType<T>;
|
|
90
108
|
/**
|
|
91
109
|
* Used to pass attributes to the last page icon's DOM element.
|
|
92
110
|
*/
|
|
93
|
-
lastPageIcon?: PaginatorPassThroughOptionType
|
|
111
|
+
lastPageIcon?: PaginatorPassThroughOptionType<T>;
|
|
94
112
|
/**
|
|
95
113
|
* Used to pass attributes to the pages's DOM element.
|
|
96
114
|
*/
|
|
97
|
-
pages?: PaginatorPassThroughOptionType
|
|
115
|
+
pages?: PaginatorPassThroughOptionType<T>;
|
|
98
116
|
/**
|
|
99
117
|
* Used to pass attributes to the page button's DOM element.
|
|
100
118
|
*/
|
|
101
|
-
pageButton?: PaginatorPassThroughOptionType
|
|
119
|
+
pageButton?: PaginatorPassThroughOptionType<T>;
|
|
102
120
|
/**
|
|
103
121
|
* Used to pass attributes to the current's DOM element.
|
|
104
122
|
*/
|
|
105
|
-
current?: PaginatorPassThroughOptionType
|
|
123
|
+
current?: PaginatorPassThroughOptionType<T>;
|
|
106
124
|
/**
|
|
107
125
|
* Used to pass attributes to the Dropdown component.
|
|
108
|
-
* @see {@link
|
|
126
|
+
* @see {@link DropdownPassThroughOptions}
|
|
109
127
|
*/
|
|
110
|
-
rowPerPageDropdown?:
|
|
128
|
+
rowPerPageDropdown?: DropdownPassThroughOptions<PaginatorSharedPassThroughMethodOptions>;
|
|
111
129
|
/**
|
|
112
130
|
* Used to pass attributes to the Dropdown component.
|
|
113
|
-
* @see {@link
|
|
131
|
+
* @see {@link DropdownPassThroughOptions}
|
|
114
132
|
*/
|
|
115
|
-
jumpToPageDropdown?:
|
|
133
|
+
jumpToPageDropdown?: DropdownPassThroughOptions<PaginatorSharedPassThroughMethodOptions>;
|
|
116
134
|
/**
|
|
117
135
|
* Used to pass attributes to the Dropdown component.
|
|
118
|
-
* @see {@link
|
|
136
|
+
* @see {@link InputNumberPassThroughOptions}
|
|
119
137
|
*/
|
|
120
|
-
jumpToPageInput?:
|
|
138
|
+
jumpToPageInput?: InputNumberPassThroughOptions<PaginatorSharedPassThroughMethodOptions>;
|
|
121
139
|
/**
|
|
122
140
|
* Used to pass attributes to the end's DOM element.
|
|
123
141
|
*/
|
|
124
|
-
end?: PaginatorPassThroughOptionType
|
|
142
|
+
end?: PaginatorPassThroughOptionType<T>;
|
|
125
143
|
/**
|
|
126
144
|
* Used to manage all lifecycle hooks.
|
|
127
145
|
* @see {@link BaseComponent.ComponentHooks}
|
|
@@ -8,8 +8,8 @@ var BaseStyle__default = /*#__PURE__*/_interopDefaultLegacy(BaseStyle);
|
|
|
8
8
|
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
-
function _toPropertyKey(
|
|
12
|
-
function _toPrimitive(
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
var css = "\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
|
|
14
14
|
var classes = {
|
|
15
15
|
paginator: function paginator(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function e(n,
|
|
1
|
+
"use strict";function n(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function e(n,e,r){var i;return(e="symbol"==t(i=a(e,"string"))?i:String(i))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function a(n,e){if("object"!=t(n)||!n)return n;var a=n[Symbol.toPrimitive];if(void 0!==a){var r=a.call(n,e||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}var r=n(require("primevue/base/style")).default.extend({name:"paginator",css:"\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n",classes:{paginator:function(n){var t=n.instance,a=n.key;return["p-paginator p-component",e({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(a),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(n){return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(n){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(n){return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(n){return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(n){return["p-paginator-page p-paginator-element p-link",{"p-highlight":n.pageLink-1===n.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"}});module.exports=r;
|
|
@@ -2,8 +2,8 @@ import BaseStyle from 'primevue/base/style';
|
|
|
2
2
|
|
|
3
3
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
var css = "\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
|
|
8
8
|
var classes = {
|
|
9
9
|
paginator: function paginator(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"primevue/base/style";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function e(n,
|
|
1
|
+
import n from"primevue/base/style";function t(n){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(n)}function e(n,e,r){var i;return(e="symbol"==t(i=a(e,"string"))?i:String(i))in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function a(n,e){if("object"!=t(n)||!n)return n;var a=n[Symbol.toPrimitive];if(void 0!==a){var r=a.call(n,e||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}var r=n.extend({name:"paginator",css:"\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n",classes:{paginator:function(n){var t=n.instance,a=n.key;return["p-paginator p-component",e({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(a),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(n){return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(n){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(n){return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(n){return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(n){return["p-paginator-page p-paginator-element p-link",{"p-highlight":n.pageLink-1===n.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"}});export{r as default};
|
|
@@ -9,8 +9,8 @@ this.primevue.paginator.style = (function (BaseStyle) {
|
|
|
9
9
|
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
-
function _toPropertyKey(
|
|
13
|
-
function _toPrimitive(
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
var css = "\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
|
|
15
15
|
var classes = {
|
|
16
16
|
paginator: function paginator(_ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.paginator=this.primevue.paginator||{},this.primevue.paginator.style=function(n){"use strict";function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}function a(n,t,
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.paginator=this.primevue.paginator||{},this.primevue.paginator.style=function(n){"use strict";function t(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}function a(n,t,a){var r;return(t="symbol"==e(r=i(t,"string"))?r:String(r))in n?Object.defineProperty(n,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[t]=a,n}function i(n,t){if("object"!=e(n)||!n)return n;var a=n[Symbol.toPrimitive];if(void 0!==a){var i=a.call(n,t||"default");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}return t(primevue.base.style).default.extend({name:"paginator",css:"\n@layer primevue {\n .p-paginator-default {\n display: flex;\n }\n\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n\n .p-paginator-left-content {\n margin-right: auto;\n }\n\n .p-paginator-right-content {\n margin-left: auto;\n }\n\n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n\n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n",classes:{paginator:function(n){var t=n.instance,e=n.key;return["p-paginator p-component",a({"p-paginator-default":!t.hasBreakpoints()},"p-paginator-".concat(e),t.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(n){return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(n){return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(n){return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(n){return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.instance.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(n){return["p-paginator-page p-paginator-element p-link",{"p-highlight":n.pageLink-1===n.props.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"}})}();
|
package/panel/Panel.d.ts
CHANGED
|
@@ -32,6 +32,14 @@ export interface PanelPassThroughMethodOptions {
|
|
|
32
32
|
* Defines current inline state.
|
|
33
33
|
*/
|
|
34
34
|
state: PanelState;
|
|
35
|
+
/**
|
|
36
|
+
* Defines valid attributes.
|
|
37
|
+
*/
|
|
38
|
+
attrs: any;
|
|
39
|
+
/**
|
|
40
|
+
* Defines parent options.
|
|
41
|
+
*/
|
|
42
|
+
parent: any;
|
|
35
43
|
/**
|
|
36
44
|
* Defines passthrough(pt) options in global config.
|
|
37
45
|
*/
|
package/panel/Panel.vue
CHANGED
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
return UniqueComponentId();
|
|
82
82
|
},
|
|
83
83
|
buttonAriaLabel() {
|
|
84
|
-
return this.toggleButtonProps && this.toggleButtonProps
|
|
84
|
+
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
components: {
|
package/panel/panel.cjs.js
CHANGED
|
@@ -71,7 +71,7 @@ var script = {
|
|
|
71
71
|
return utils.UniqueComponentId();
|
|
72
72
|
},
|
|
73
73
|
buttonAriaLabel: function buttonAriaLabel() {
|
|
74
|
-
return this.toggleButtonProps && this.toggleButtonProps
|
|
74
|
+
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
components: {
|
|
@@ -87,8 +87,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
87
87
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
88
88
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
89
89
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
90
|
-
function _toPropertyKey(
|
|
91
|
-
function _toPrimitive(
|
|
90
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
91
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
92
92
|
var _hoisted_1 = ["id"];
|
|
93
93
|
var _hoisted_2 = ["id", "aria-label", "aria-controls", "aria-expanded"];
|
|
94
94
|
var _hoisted_3 = ["id", "aria-labelledby"];
|
package/panel/panel.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/icons/minus"),t=require("primevue/icons/plus"),o=require("primevue/ripple"),r=require("primevue/utils"),n=require("primevue/basecomponent"),l=require("primevue/panel/style"),a=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),s=i(t),
|
|
1
|
+
"use strict";var e=require("primevue/icons/minus"),t=require("primevue/icons/plus"),o=require("primevue/ripple"),r=require("primevue/utils"),n=require("primevue/basecomponent"),l=require("primevue/panel/style"),a=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),s=i(t),p=i(o),u={name:"Panel",extends:{name:"BasePanel",extends:i(n).default,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:null,default:null}},style:i(l).default,provide:function(){return{$parentInstance:this}}},emits:["update:collapsed","toggle"],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit("update:collapsed",this.d_collapsed),this.$emit("toggle",{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){"Enter"!==e.code&&"Space"!==e.code||(this.toggle(e),e.preventDefault())}},computed:{ariaId:function(){return r.UniqueComponentId()},buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header}},components:{PlusIcon:s.default,MinusIcon:c.default},directives:{ripple:p.default}};function d(e){return d="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},d(e)}function m(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function g(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){f(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function f(e,t,o){var r;return(t="symbol"==d(r=b(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function b(e,t){if("object"!=d(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y=["id"],v=["id","aria-label","aria-controls","aria-expanded"],h=["id","aria-labelledby"];u.render=function(e,t,o,r,n,l){var i=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"panel"}),[a.createElementVNode("div",a.mergeProps({class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header",{id:l.ariaId+"_header",class:a.normalizeClass(e.cx("title"))},(function(){return[e.header?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,id:l.ariaId+"_header",class:e.cx("title")},e.ptm("title")),a.toDisplayString(e.header),17,y)):a.createCommentVNode("",!0)]})),a.createElementVNode("div",a.mergeProps({class:e.cx("icons")},e.ptm("icons")),[a.renderSlot(e.$slots,"icons"),e.toggleable?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,id:l.ariaId+"_header",type:"button",role:"button",class:e.cx("toggler"),"aria-label":l.buttonAriaLabel,"aria-controls":l.ariaId+"_content","aria-expanded":!n.d_collapsed,onClick:t[0]||(t[0]=function(){return l.toggle&&l.toggle.apply(l,arguments)}),onKeydown:t[1]||(t[1]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},g(g({},e.toggleButtonProps),e.ptm("toggler"))),[a.renderSlot(e.$slots,"togglericon",{collapsed:n.d_collapsed},(function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.d_collapsed?"PlusIcon":"MinusIcon"),a.normalizeProps(a.guardReactiveProps(e.ptm("togglericon"))),null,16))]}))],16,v)),[[i]]):a.createCommentVNode("",!0)],16)],16),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},e.ptm("transition")),{default:a.withCtx((function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({id:l.ariaId+"_content",class:e.cx("toggleablecontent"),role:"region","aria-labelledby":l.ariaId+"_header"},e.ptm("toggleablecontent")),[a.createElementVNode("div",a.mergeProps({class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"default")],16),e.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("footer")},e.ptm("footer")),[a.renderSlot(e.$slots,"footer")],16)):a.createCommentVNode("",!0)],16,h),[[a.vShow,!n.d_collapsed]])]})),_:3},16)],16)},module.exports=u;
|
package/panel/panel.esm.js
CHANGED
|
@@ -61,7 +61,7 @@ var script = {
|
|
|
61
61
|
return UniqueComponentId();
|
|
62
62
|
},
|
|
63
63
|
buttonAriaLabel: function buttonAriaLabel() {
|
|
64
|
-
return this.toggleButtonProps && this.toggleButtonProps
|
|
64
|
+
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
components: {
|
|
@@ -77,8 +77,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
77
77
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
78
78
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
79
79
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
80
|
-
function _toPropertyKey(
|
|
81
|
-
function _toPrimitive(
|
|
80
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
81
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
82
82
|
var _hoisted_1 = ["id"];
|
|
83
83
|
var _hoisted_2 = ["id", "aria-label", "aria-controls", "aria-expanded"];
|
|
84
84
|
var _hoisted_3 = ["id", "aria-labelledby"];
|
package/panel/panel.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/icons/minus";import t from"primevue/icons/plus";import o from"primevue/ripple";import{UniqueComponentId as r}from"primevue/utils";import n from"primevue/basecomponent";import l from"primevue/panel/style";import{resolveDirective as i,openBlock as a,createElementBlock as c,mergeProps as s,createElementVNode as p,renderSlot as u,normalizeClass as d,toDisplayString as
|
|
1
|
+
import e from"primevue/icons/minus";import t from"primevue/icons/plus";import o from"primevue/ripple";import{UniqueComponentId as r}from"primevue/utils";import n from"primevue/basecomponent";import l from"primevue/panel/style";import{resolveDirective as i,openBlock as a,createElementBlock as c,mergeProps as s,createElementVNode as p,renderSlot as u,normalizeClass as d,toDisplayString as m,createCommentVNode as f,withDirectives as g,createBlock as b,resolveDynamicComponent as y,normalizeProps as v,guardReactiveProps as h,createVNode as P,Transition as O,withCtx as _,vShow as j}from"vue";var w={name:"Panel",extends:{name:"BasePanel",extends:n,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:null,default:null}},style:l,provide:function(){return{$parentInstance:this}}},emits:["update:collapsed","toggle"],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit("update:collapsed",this.d_collapsed),this.$emit("toggle",{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){"Enter"!==e.code&&"Space"!==e.code||(this.toggle(e),e.preventDefault())}},computed:{ariaId:function(){return r()},buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header}},components:{PlusIcon:t,MinusIcon:e},directives:{ripple:o}};function x(e){return x="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},x(e)}function I(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function S(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?I(Object(o),!0).forEach((function(t){$(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):I(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function $(e,t,o){var r;return(t="symbol"==x(r=B(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function B(e,t){if("object"!=x(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var D=["id"],k=["id","aria-label","aria-controls","aria-expanded"],E=["id","aria-labelledby"];w.render=function(e,t,o,r,n,l){var w=i("ripple");return a(),c("div",s({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"panel"}),[p("div",s({class:e.cx("header")},e.ptm("header")),[u(e.$slots,"header",{id:l.ariaId+"_header",class:d(e.cx("title"))},(function(){return[e.header?(a(),c("span",s({key:0,id:l.ariaId+"_header",class:e.cx("title")},e.ptm("title")),m(e.header),17,D)):f("",!0)]})),p("div",s({class:e.cx("icons")},e.ptm("icons")),[u(e.$slots,"icons"),e.toggleable?g((a(),c("button",s({key:0,id:l.ariaId+"_header",type:"button",role:"button",class:e.cx("toggler"),"aria-label":l.buttonAriaLabel,"aria-controls":l.ariaId+"_content","aria-expanded":!n.d_collapsed,onClick:t[0]||(t[0]=function(){return l.toggle&&l.toggle.apply(l,arguments)}),onKeydown:t[1]||(t[1]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},S(S({},e.toggleButtonProps),e.ptm("toggler"))),[u(e.$slots,"togglericon",{collapsed:n.d_collapsed},(function(){return[(a(),b(y(n.d_collapsed?"PlusIcon":"MinusIcon"),v(h(e.ptm("togglericon"))),null,16))]}))],16,k)),[[w]]):f("",!0)],16)],16),P(O,s({name:"p-toggleable-content"},e.ptm("transition")),{default:_((function(){return[g(p("div",s({id:l.ariaId+"_content",class:e.cx("toggleablecontent"),role:"region","aria-labelledby":l.ariaId+"_header"},e.ptm("toggleablecontent")),[p("div",s({class:e.cx("content")},e.ptm("content")),[u(e.$slots,"default")],16),e.$slots.footer?(a(),c("div",s({key:0,class:e.cx("footer")},e.ptm("footer")),[u(e.$slots,"footer")],16)):f("",!0)],16,E),[[j,!n.d_collapsed]])]})),_:3},16)],16)};export{w as default};
|
package/panel/panel.js
CHANGED
|
@@ -65,7 +65,7 @@ this.primevue.panel = (function (MinusIcon, PlusIcon, Ripple, utils, BaseCompone
|
|
|
65
65
|
return utils.UniqueComponentId();
|
|
66
66
|
},
|
|
67
67
|
buttonAriaLabel: function buttonAriaLabel() {
|
|
68
|
-
return this.toggleButtonProps && this.toggleButtonProps
|
|
68
|
+
return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
components: {
|
|
@@ -81,8 +81,8 @@ this.primevue.panel = (function (MinusIcon, PlusIcon, Ripple, utils, BaseCompone
|
|
|
81
81
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
82
82
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
83
83
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
84
|
-
function _toPropertyKey(
|
|
85
|
-
function _toPrimitive(
|
|
84
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
85
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
86
86
|
var _hoisted_1 = ["id"];
|
|
87
87
|
var _hoisted_2 = ["id", "aria-label", "aria-controls", "aria-expanded"];
|
|
88
88
|
var _hoisted_3 = ["id", "aria-labelledby"];
|
package/panel/panel.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.panel=function(e,t,o,r,n,l,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),s=i(t),p=i(o),u={name:"Panel",extends:{name:"BasePanel",extends:i(n).default,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:null,default:null}},style:i(l).default,provide:function(){return{$parentInstance:this}}},emits:["update:collapsed","toggle"],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit("update:collapsed",this.d_collapsed),this.$emit("toggle",{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){"Enter"!==e.code&&"Space"!==e.code||(this.toggle(e),e.preventDefault())}},computed:{ariaId:function(){return r.UniqueComponentId()},buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.panel=function(e,t,o,r,n,l,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=i(e),s=i(t),p=i(o),u={name:"Panel",extends:{name:"BasePanel",extends:i(n).default,props:{header:String,toggleable:Boolean,collapsed:Boolean,toggleButtonProps:{type:null,default:null}},style:i(l).default,provide:function(){return{$parentInstance:this}}},emits:["update:collapsed","toggle"],data:function(){return{d_collapsed:this.collapsed}},watch:{collapsed:function(e){this.d_collapsed=e}},methods:{toggle:function(e){this.d_collapsed=!this.d_collapsed,this.$emit("update:collapsed",this.d_collapsed),this.$emit("toggle",{originalEvent:e,value:this.d_collapsed})},onKeyDown:function(e){"Enter"!==e.code&&"Space"!==e.code||(this.toggle(e),e.preventDefault())}},computed:{ariaId:function(){return r.UniqueComponentId()},buttonAriaLabel:function(){return this.toggleButtonProps&&this.toggleButtonProps.ariaLabel?this.toggleButtonProps.ariaLabel:this.header}},components:{PlusIcon:s.default,MinusIcon:c.default},directives:{ripple:p.default}};function d(e){return d="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},d(e)}function m(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function g(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?m(Object(o),!0).forEach((function(t){f(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function f(e,t,o){var r;return(t="symbol"==d(r=b(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function b(e,t){if("object"!=d(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y=["id"],v=["id","aria-label","aria-controls","aria-expanded"],h=["id","aria-labelledby"];return u.render=function(e,t,o,r,n,l){var i=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"panel"}),[a.createElementVNode("div",a.mergeProps({class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header",{id:l.ariaId+"_header",class:a.normalizeClass(e.cx("title"))},(function(){return[e.header?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,id:l.ariaId+"_header",class:e.cx("title")},e.ptm("title")),a.toDisplayString(e.header),17,y)):a.createCommentVNode("",!0)]})),a.createElementVNode("div",a.mergeProps({class:e.cx("icons")},e.ptm("icons")),[a.renderSlot(e.$slots,"icons"),e.toggleable?a.withDirectives((a.openBlock(),a.createElementBlock("button",a.mergeProps({key:0,id:l.ariaId+"_header",type:"button",role:"button",class:e.cx("toggler"),"aria-label":l.buttonAriaLabel,"aria-controls":l.ariaId+"_content","aria-expanded":!n.d_collapsed,onClick:t[0]||(t[0]=function(){return l.toggle&&l.toggle.apply(l,arguments)}),onKeydown:t[1]||(t[1]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},g(g({},e.toggleButtonProps),e.ptm("toggler"))),[a.renderSlot(e.$slots,"togglericon",{collapsed:n.d_collapsed},(function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.d_collapsed?"PlusIcon":"MinusIcon"),a.normalizeProps(a.guardReactiveProps(e.ptm("togglericon"))),null,16))]}))],16,v)),[[i]]):a.createCommentVNode("",!0)],16)],16),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},e.ptm("transition")),{default:a.withCtx((function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({id:l.ariaId+"_content",class:e.cx("toggleablecontent"),role:"region","aria-labelledby":l.ariaId+"_header"},e.ptm("toggleablecontent")),[a.createElementVNode("div",a.mergeProps({class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"default")],16),e.$slots.footer?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("footer")},e.ptm("footer")),[a.renderSlot(e.$slots,"footer")],16)):a.createCommentVNode("",!0)],16,h),[[a.vShow,!n.d_collapsed]])]})),_:3},16)],16)},u}(primevue.icons.minus,primevue.icons.plus,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.panel.style,Vue);
|
package/panelmenu/PanelMenu.d.ts
CHANGED
|
@@ -37,6 +37,14 @@ export interface PanelMenuPassThroughMethodOptions {
|
|
|
37
37
|
* Defines current options.
|
|
38
38
|
*/
|
|
39
39
|
context: PanelMenuContext;
|
|
40
|
+
/**
|
|
41
|
+
* Defines valid attributes.
|
|
42
|
+
*/
|
|
43
|
+
attrs: any;
|
|
44
|
+
/**
|
|
45
|
+
* Defines parent options.
|
|
46
|
+
*/
|
|
47
|
+
parent: any;
|
|
40
48
|
/**
|
|
41
49
|
* Defines passthrough(pt) options in global config.
|
|
42
50
|
*/
|