primevue 3.41.1 → 3.43.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 +4 -0
- package/accordion/Accordion.vue +1 -0
- package/accordion/accordion.cjs.js +1 -0
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -0
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -0
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +2 -3
- 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 +23 -4
- package/autocomplete/BaseAutoComplete.vue +2 -2
- package/autocomplete/autocomplete.cjs.js +2 -2
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +2 -2
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +2 -2
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +4 -5
- package/avatar/Avatar.vue +4 -11
- package/avatar/BaseAvatar.vue +2 -2
- package/avatar/avatar.cjs.js +6 -13
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +6 -13
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +6 -13
- package/avatar/avatar.min.js +1 -1
- package/badge/Badge.d.ts +8 -4
- package/badgedirective/BadgeDirective.d.ts +4 -0
- package/basecomponent/BaseComponent.vue +14 -1
- package/basecomponent/basecomponent.cjs.js +8 -1
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +8 -1
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +8 -1
- package/basecomponent/basecomponent.min.js +1 -1
- package/blockui/BlockUI.d.ts +4 -0
- package/breadcrumb/Breadcrumb.d.ts +6 -2
- 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/calendar/BaseCalendar.vue +6 -2
- package/calendar/Calendar.d.ts +50 -13
- package/calendar/Calendar.vue +15 -19
- package/calendar/calendar.cjs.js +25 -21
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +25 -21
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +25 -21
- package/calendar/calendar.min.js +1 -1
- package/calendar/style/calendarstyle.cjs.js +4 -2
- package/calendar/style/calendarstyle.cjs.min.js +1 -1
- package/calendar/style/calendarstyle.esm.js +4 -2
- package/calendar/style/calendarstyle.esm.min.js +1 -1
- package/calendar/style/calendarstyle.js +4 -2
- package/calendar/style/calendarstyle.min.js +1 -1
- package/carousel/Carousel.d.ts +4 -0
- package/carousel/Carousel.vue +4 -2
- package/carousel/carousel.cjs.js +3 -1
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +3 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +3 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +2 -2
- package/cascadeselect/CascadeSelect.d.ts +6 -2
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +2 -2
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +2 -2
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +4 -0
- package/chart/Chart.vue +1 -1
- package/chart/chart.cjs.js +2 -1
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +2 -1
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +2 -1
- 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/BaseCheckbox.vue +2 -2
- package/checkbox/Checkbox.d.ts +6 -2
- 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 +4 -0
- package/chips/BaseChips.vue +2 -2
- package/chips/Chips.d.ts +6 -2
- 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 +4 -0
- package/column/Column.d.ts +27 -13
- package/columngroup/ColumnGroup.d.ts +2 -3
- package/config/config.cjs.js +1 -1
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +1 -1
- package/config/config.esm.min.js +1 -1
- package/config/config.js +1 -1
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +20 -2
- package/confirmpopup/ConfirmPopup.d.ts +20 -2
- package/confirmpopup/ConfirmPopup.vue +0 -1
- package/contextmenu/BaseContextMenu.vue +2 -2
- package/contextmenu/ContextMenu.d.ts +6 -2
- 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 +279 -129
- package/core/core.min.js +16 -16
- package/datatable/BodyCell.vue +1 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +20 -2
- package/datatable/FooterCell.vue +1 -0
- package/datatable/HeaderCell.vue +1 -0
- package/datatable/HeaderCheckbox.vue +1 -0
- package/datatable/RowCheckbox.vue +1 -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 +13 -0
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +13 -0
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +13 -0
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +20 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
- package/deferredcontent/DeferredContent.d.ts +4 -0
- package/dialog/Dialog.d.ts +20 -16
- package/divider/Divider.d.ts +4 -0
- package/dock/BaseDock.vue +2 -2
- package/dock/Dock.d.ts +6 -2
- package/dock/DockSub.vue +2 -2
- package/dock/dock.cjs.js +6 -6
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +6 -6
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +6 -6
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +2 -2
- package/dropdown/Dropdown.d.ts +30 -26
- package/dropdown/Dropdown.vue +2 -2
- package/dropdown/dropdown.cjs.js +4 -4
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +4 -4
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +4 -4
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +4 -0
- package/editor/Editor.vue +6 -0
- package/editor/editor.cjs.js +6 -0
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +6 -0
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +6 -0
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +4 -0
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +26 -6
- package/galleria/BaseGalleria.vue +8 -0
- package/galleria/Galleria.d.ts +12 -0
- package/galleria/Galleria.vue +1 -1
- package/galleria/GalleriaContent.vue +11 -1
- package/galleria/GalleriaItem.vue +72 -3
- package/galleria/galleria.cjs.js +87 -7
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +87 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +87 -7
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +4 -0
- package/image/Image.vue +4 -1
- package/image/image.cjs.js +18 -13
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +18 -13
- package/image/image.esm.min.js +1 -1
- package/image/image.js +18 -13
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +4 -0
- package/inlinemessage/InlineMessage.vue +2 -2
- package/inlinemessage/inlinemessage.cjs.js +7 -5
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +5 -3
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +7 -5
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/Inplace.d.ts +19 -1
- package/inputgroup/InputGroup.d.ts +4 -0
- package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
- package/inputmask/InputMask.d.ts +4 -0
- package/inputnumber/BaseInputNumber.vue +2 -2
- package/inputnumber/InputNumber.d.ts +32 -14
- package/inputnumber/InputNumber.vue +10 -5
- package/inputnumber/inputnumber.cjs.js +24 -25
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +24 -25
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +24 -25
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +2 -2
- package/inputswitch/InputSwitch.d.ts +6 -2
- 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/BaseKnob.vue +2 -2
- package/knob/Knob.d.ts +6 -2
- package/knob/knob.cjs.js +2 -2
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +2 -2
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +2 -2
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +2 -2
- package/listbox/Listbox.d.ts +6 -2
- package/listbox/Listbox.vue +4 -3
- package/listbox/listbox.cjs.js +6 -5
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +6 -5
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +6 -5
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +2 -2
- package/megamenu/MegaMenu.d.ts +6 -2
- package/megamenu/megamenu.cjs.js +2 -2
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -2
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -2
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/style/megamenustyle.cjs.js +1 -1
- package/megamenu/style/megamenustyle.cjs.min.js +1 -1
- package/megamenu/style/megamenustyle.esm.js +1 -1
- package/megamenu/style/megamenustyle.esm.min.js +1 -1
- package/megamenu/style/megamenustyle.js +1 -1
- package/megamenu/style/megamenustyle.min.js +1 -1
- package/menu/BaseMenu.vue +2 -2
- package/menu/Menu.d.ts +6 -2
- package/menu/Menu.vue +5 -1
- package/menu/menu.cjs.js +6 -3
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +6 -3
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +6 -3
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +2 -2
- package/menubar/Menubar.d.ts +6 -2
- 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/multiselect/BaseMultiSelect.vue +2 -2
- package/multiselect/MultiSelect.d.ts +6 -2
- package/multiselect/multiselect.cjs.js +2 -2
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +2 -2
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -2
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +2 -2
- package/orderlist/OrderList.d.ts +25 -7
- 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 +4 -0
- package/overlaypanel/OverlayPanel.d.ts +4 -0
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +44 -26
- package/panel/Panel.d.ts +4 -0
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +4 -0
- package/passthrough/tailwind/index.cjs.js +166 -53
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +166 -53
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +166 -53
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/BasePassword.vue +2 -2
- package/password/Password.d.ts +23 -5
- package/password/Password.vue +2 -1
- package/password/password.cjs.js +5 -4
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +5 -4
- package/password/password.esm.min.js +1 -1
- package/password/password.js +5 -4
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +31 -13
- package/picklist/PickList.vue +48 -15
- package/picklist/picklist.cjs.js +47 -38
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +47 -38
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +47 -38
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +10 -6
- package/progressspinner/ProgressSpinner.d.ts +4 -0
- package/radiobutton/BaseRadioButton.vue +2 -2
- package/radiobutton/RadioButton.d.ts +6 -2
- 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 +4 -0
- package/resources/themes/arya-blue/theme.css +6 -6
- package/resources/themes/arya-green/theme.css +6 -6
- package/resources/themes/arya-orange/theme.css +6 -6
- package/resources/themes/arya-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
- package/resources/themes/fluent-light/theme.css +6 -6
- package/resources/themes/lara-dark-amber/theme.css +6 -6
- package/resources/themes/lara-dark-blue/theme.css +6 -6
- package/resources/themes/lara-dark-cyan/theme.css +6 -6
- package/resources/themes/lara-dark-green/theme.css +6 -6
- package/resources/themes/lara-dark-indigo/theme.css +6 -6
- package/resources/themes/lara-dark-pink/theme.css +6 -6
- package/resources/themes/lara-dark-purple/theme.css +6 -6
- package/resources/themes/lara-dark-teal/theme.css +6 -6
- package/resources/themes/lara-light-amber/theme.css +6 -6
- package/resources/themes/lara-light-blue/theme.css +6 -6
- package/resources/themes/lara-light-cyan/theme.css +6 -6
- package/resources/themes/lara-light-green/theme.css +6 -6
- package/resources/themes/lara-light-indigo/theme.css +6 -6
- package/resources/themes/lara-light-pink/theme.css +6 -6
- package/resources/themes/lara-light-purple/theme.css +6 -6
- package/resources/themes/lara-light-teal/theme.css +6 -6
- package/resources/themes/luna-amber/theme.css +6 -6
- package/resources/themes/luna-blue/theme.css +6 -6
- package/resources/themes/luna-green/theme.css +6 -6
- package/resources/themes/luna-pink/theme.css +6 -6
- package/resources/themes/md-dark-deeppurple/theme.css +6 -6
- package/resources/themes/md-dark-indigo/theme.css +6 -6
- package/resources/themes/md-light-deeppurple/theme.css +6 -6
- package/resources/themes/md-light-indigo/theme.css +6 -6
- package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-dark-indigo/theme.css +6 -6
- package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-light-indigo/theme.css +6 -6
- package/resources/themes/mira/theme.css +6 -6
- package/resources/themes/nano/theme.css +6 -6
- package/resources/themes/nova/theme.css +6 -6
- package/resources/themes/nova-accent/theme.css +6 -6
- package/resources/themes/nova-alt/theme.css +6 -6
- package/resources/themes/nova-vue/theme.css +6 -6
- package/resources/themes/rhea/theme.css +6 -6
- package/resources/themes/saga-blue/theme.css +6 -6
- package/resources/themes/saga-green/theme.css +6 -6
- package/resources/themes/saga-orange/theme.css +6 -6
- package/resources/themes/saga-purple/theme.css +6 -6
- package/resources/themes/soho-dark/theme.css +6 -6
- package/resources/themes/soho-light/theme.css +6 -6
- package/resources/themes/tailwind-light/theme.css +6 -6
- package/resources/themes/vela-blue/theme.css +6 -6
- package/resources/themes/vela-green/theme.css +6 -6
- package/resources/themes/vela-orange/theme.css +6 -6
- package/resources/themes/vela-purple/theme.css +6 -6
- package/resources/themes/viva-dark/theme.css +6 -6
- package/resources/themes/viva-light/theme.css +6 -6
- package/row/Row.d.ts +2 -3
- package/scrollpanel/ScrollPanel.d.ts +4 -0
- package/scrolltop/ScrollTop.d.ts +4 -0
- package/selectbutton/BaseSelectButton.vue +1 -1
- package/selectbutton/SelectButton.d.ts +5 -1
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +1 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +4 -0
- package/skeleton/Skeleton.d.ts +4 -0
- package/slider/BaseSlider.vue +2 -2
- package/slider/Slider.d.ts +6 -2
- package/slider/slider.cjs.js +2 -2
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +2 -2
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +2 -2
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +2 -2
- package/speeddial/SpeedDial.d.ts +21 -3
- 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/splitbutton/SplitButton.d.ts +20 -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 +1 -1
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +1 -1
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/splitter/Splitter.d.ts +4 -0
- package/splitter/Splitter.vue +1 -2
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +1 -1
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +1 -1
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +4 -0
- package/steps/Steps.d.ts +4 -0
- package/tabmenu/BaseTabMenu.vue +2 -2
- package/tabmenu/TabMenu.d.ts +6 -2
- package/tabmenu/tabmenu.cjs.js +2 -2
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +2 -2
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +2 -2
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +4 -5
- package/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +1 -0
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -0
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -0
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +4 -0
- package/terminal/Terminal.d.ts +4 -0
- package/textarea/Textarea.d.ts +4 -0
- package/tieredmenu/BaseTieredMenu.vue +2 -2
- package/tieredmenu/TieredMenu.d.ts +20 -16
- package/tieredmenu/TieredMenu.vue +5 -1
- package/tieredmenu/tieredmenu.cjs.js +6 -3
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +6 -3
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +6 -3
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +4 -0
- package/toast/Toast.d.ts +4 -0
- package/togglebutton/BaseToggleButton.vue +2 -2
- package/togglebutton/ToggleButton.d.ts +6 -2
- 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/BaseToolbar.vue +1 -1
- package/toolbar/Toolbar.d.ts +5 -1
- package/toolbar/toolbar.cjs.js +1 -1
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +4 -0
- package/tree/BaseTree.vue +6 -2
- package/tree/Tree.d.ts +52 -82
- package/tree/Tree.vue +5 -2
- package/tree/TreeNode.vue +17 -8
- package/tree/style/treestyle.cjs.js +1 -0
- package/tree/style/treestyle.cjs.min.js +1 -1
- package/tree/style/treestyle.esm.js +1 -0
- package/tree/style/treestyle.esm.min.js +1 -1
- package/tree/style/treestyle.js +1 -0
- package/tree/style/treestyle.min.js +1 -1
- package/tree/tree.cjs.js +35 -12
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +36 -13
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +35 -12
- package/tree/tree.min.js +1 -1
- package/treenode/TreeNode.d.ts +71 -0
- package/treenode/package.json +3 -0
- package/treeselect/BaseTreeSelect.vue +2 -2
- package/treeselect/TreeSelect.d.ts +24 -5
- package/treeselect/treeselect.cjs.js +2 -2
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -2
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -2
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +4 -0
- package/treetable/BodyCell.vue +18 -4
- package/treetable/FooterCell.vue +1 -0
- package/treetable/HeaderCell.vue +1 -0
- package/treetable/TreeTable.d.ts +25 -2
- package/treetable/TreeTable.vue +5 -2
- package/treetable/TreeTableRow.vue +5 -0
- package/treetable/treetable.cjs.js +40 -7
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +41 -8
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +40 -7
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +2 -2
- package/tristatecheckbox/TriStateCheckbox.d.ts +6 -2
- 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/virtualscroller/VirtualScroller.d.ts +4 -0
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.basecomponent=function(n,t,e,o){"use strict";function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var l=i(n);function r(n){return r="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},r(n)}function a(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function s(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?a(Object(e),!0).forEach((function(t){u(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function u(n,t,e){return(t=p(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function p(n){var t=c(n,"string");return"symbol"===r(t)?t:String(t)}function c(n,t){if("object"!==r(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var d="\n@layer primevue {\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat("\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type:not(:only-of-type) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type:not(:only-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n","\n").concat("\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n","\n").concat("\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n").concat("\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n","\n}\n"),f=l.default.extend({name:"common",css:d,loadGlobalStyle:function(n){return o.useStyle(n,s({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function b(n){return b="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},b(n)}function v(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function h(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?v(Object(e),!0).forEach((function(t){g(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function g(n,t,e){return(t=y(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function y(n){var t=m(n,"string");return"symbol"===b(t)?t:String(t)}function m(n,t){if("object"!==b(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var O={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(n){var t,e;n||(f.loadStyle({nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}))}}},beforeCreate:function(){var n,t,e,o,i,l,r,a,s,u,p,c=null===(n=this.pt)||void 0===n?void 0:n._usept,d=c?null===(t=this.pt)||void 0===t||null===(t=t.originalValue)||void 0===t?void 0:t[this.$.type.name]:void 0;null===(o=(c?null===(e=this.pt)||void 0===e||null===(e=e.value)||void 0===e?void 0:e[this.$.type.name]:this.pt)||d)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var f=null===(l=this.$config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l._usept,b=f?null===(r=this.$primevue)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r.originalValue:void 0;null===(u=(f?null===(a=this.$primevue)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.pt)||void 0===a?void 0:a.value:null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s?void 0:s.pt)||b)||void 0===u||null===(u=u[this.$.type.name])||void 0===u||null===(u=u.hooks)||void 0===u||null===(p=u.onBeforeCreate)||void 0===p||p.call(u)},created:function(){this._hook("onCreated")},beforeMount:function(){var n;l.default.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(n){if(!this.$options.hostName){var t=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(n)),e=this._useDefaultPT(this._getOptionValue,"hooks.".concat(n));null==t||t(),null==e||e()}},_loadGlobalStyles:function(){var n,e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);t.ObjectUtils.isNotEmpty(e)&&f.loadGlobalStyle(e,{nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce})},_getHostInstance:function(n){return n?this.$options.hostName?n.$.type.name===this.$options.hostName?n:this._getHostInstance(n.$parentInstance):n.$parentInstance:void 0},_getPropValue:function(n){var t;return this[n]||(null===(t=this._getHostInstance(this))||void 0===t?void 0:t[n])},_getOptionValue:function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?t.ObjectUtils.isObject(n)?this._getOptionValue(t.ObjectUtils.getItemValue(n[Object.keys(n).find((function(n){return t.ObjectUtils.toFlatCase(n)===i}))||""],e),o.join("."),e):void 0:t.ObjectUtils.getItemValue(n,e)},_getPTValue:function(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a="data-pc-",s=/./g.test(i)&&!!l[i.split(".")[0]],u=this._getPropValue("ptOptions")||(null===(n=this.$config)||void 0===n?void 0:n.ptOptions)||{},p=u.mergeSections,c=void 0===p||p,d=u.mergeProps,f=void 0!==d&&d,b=r?s?this._useGlobalPT(this._getPTClassValue,i,l):this._useDefaultPT(this._getPTClassValue,i,l):void 0,v=s?void 0:this._usePT(this._getPT(o,this.$name),this._getPTClassValue,i,h(h({},l),{},{global:b||{}})),y="transition"!==i&&h(h({},"root"===i&&g({},"".concat(a,"name"),t.ObjectUtils.toFlatCase(this.$.type.name))),{},g({},"".concat(a,"section"),t.ObjectUtils.toFlatCase(i)));return c||!c&&v?f?e.mergeProps(b,v,y):h(h(h({},b),v),y):h(h({},v),y)},_getPTClassValue:function(){var n=this._getOptionValue.apply(this,arguments);return t.ObjectUtils.isString(n)||t.ObjectUtils.isArray(n)?{class:n}:n},_getPT:function(n){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,l=function(n){var l,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=i?i(n):n,s=t.ObjectUtils.toFlatCase(o),u=t.ObjectUtils.toFlatCase(e.$name);return null!==(l=r?s!==u?null==a?void 0:a[s]:void 0:null==a?void 0:a[s])&&void 0!==l?l:a};return null!=n&&n.hasOwnProperty("_usept")?{_usept:n._usept,originalValue:l(n.originalValue),value:l(n.value)}:l(n,!0)},_usePT:function(n,o,i,l){var r=function(n){return o(n,i,l)};if(null!=n&&n.hasOwnProperty("_usept")){var a,s=n._usept||(null===(a=this.$config)||void 0===a?void 0:a.ptOptions)||{},u=s.mergeSections,p=void 0===u||u,c=s.mergeProps,d=void 0!==c&&c,f=r(n.originalValue),b=r(n.value);if(void 0===f&&void 0===b)return;return t.ObjectUtils.isString(b)?b:t.ObjectUtils.isString(f)?f:p||!p&&b?d?e.mergeProps(f,b):h(h({},f),b):b}return r(n)},_useGlobalPT:function(n,t,e){return this._usePT(this.globalPT,n,t,e)},_useDefaultPT:function(n,t,e){return this._usePT(this.defaultPT,n,t,e)},ptm:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),n))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",h({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),n))},sx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var e=this._getOptionValue(this.$style.inlineStyles,n,h(h({},this.$params),t));return[this._getOptionValue(f.inlineStyles,n,h(h({},this.$params),t)),e]}}},computed:{globalPT:function(){var n,e=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return t.ObjectUtils.getItemValue(n,{instance:e})}))},defaultPT:function(){var n,e=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return e._getOptionValue(n,e.$name,h({},e.$params))||t.ObjectUtils.getItemValue(n,h({},e.$params))}))},isUnstyled:function(){var n;return void 0!==this.unstyled?this.unstyled:null===(n=this.$config)||void 0===n?void 0:n.unstyled},$params:function(){return{instance:this,props:this.$props,state:this.$data,parentInstance:this.$parentInstance}},$style:function(){return h(h({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var n;return null===(n=this.$primevue)||void 0===n?void 0:n.config},$name:function(){return this.$options.hostName||this.$.type.name}}};return O}(primevue.base.style,primevue.utils,Vue,primevue.usestyle);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.basecomponent=function(n,t,e,o){"use strict";function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var l=i(n);function r(n){return r="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},r(n)}function a(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function s(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?a(Object(e),!0).forEach((function(t){u(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function u(n,t,e){return(t=p(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function p(n){var t=c(n,"string");return"symbol"===r(t)?t:String(t)}function c(n,t){if("object"!==r(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var d="\n@layer primevue {\n.p-component, .p-component * {\n box-sizing: border-box;\n}\n\n.p-hidden-space {\n visibility: hidden;\n}\n\n.p-reset {\n margin: 0;\n padding: 0;\n border: 0;\n outline: 0;\n text-decoration: none;\n font-size: 100%;\n list-style: none;\n}\n\n.p-disabled, .p-disabled * {\n cursor: default !important;\n pointer-events: none;\n user-select: none;\n}\n\n.p-component-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.p-unselectable-text {\n user-select: none;\n}\n\n.p-sr-only {\n border: 0;\n clip: rect(1px, 1px, 1px, 1px);\n clip-path: inset(50%);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n word-wrap: normal !important;\n}\n\n.p-link {\n\ttext-align: left;\n\tbackground-color: transparent;\n\tmargin: 0;\n\tpadding: 0;\n\tborder: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-link:disabled {\n\tcursor: default;\n}\n\n/* Non vue overlay animations */\n.p-connected-overlay {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n opacity: 1;\n transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n opacity: 0;\n transform: scaleY(1);\n transition: opacity .1s linear;\n}\n\n/* Vue based overlay animations */\n.p-connected-overlay-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n transition: opacity .1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n".concat("\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n vertical-align: bottom;\n text-align: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-button-label {\n flex: 1 1 auto;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-only {\n justify-content: center;\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n flex: 0 0 auto;\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-buttonset .p-button {\n margin: 0;\n}\n\n.p-buttonset .p-button:not(:last-child), .p-buttonset .p-button:not(:last-child):hover {\n border-right: 0 none;\n}\n\n.p-buttonset .p-button:not(:first-of-type):not(:last-of-type) {\n border-radius: 0;\n}\n\n.p-buttonset .p-button:first-of-type:not(:only-of-type) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-buttonset .p-button:last-of-type:not(:only-of-type) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-buttonset .p-button:focus {\n position: relative;\n z-index: 1;\n}\n","\n").concat("\n.p-checkbox {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n position: relative;\n}\n\n.p-checkbox.p-checkbox-disabled {\n cursor: default;\n}\n\n.p-checkbox-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n","\n").concat("\n.p-fluid .p-inputtext {\n width: 100%;\n}\n\n/* InputGroup */\n.p-inputgroup {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup-addon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-inputgroup .p-float-label {\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-fluid .p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper,\n.p-fluid .p-inputgroup .p-input {\n flex: 1 1 auto;\n width: 1%;\n}\n\n/* Floating Label */\n.p-float-label {\n display: block;\n position: relative;\n}\n\n.p-float-label label {\n position: absolute;\n pointer-events: none;\n top: 50%;\n margin-top: -.5rem;\n transition-property: all;\n transition-timing-function: ease;\n line-height: 1;\n}\n\n.p-float-label textarea ~ label {\n top: 1rem;\n}\n\n.p-float-label input:focus ~ label,\n.p-float-label input.p-filled ~ label,\n.p-float-label input:-webkit-autofill ~ label,\n.p-float-label textarea:focus ~ label,\n.p-float-label textarea.p-filled ~ label,\n.p-float-label .p-inputwrapper-focus ~ label,\n.p-float-label .p-inputwrapper-filled ~ label {\n top: -.75rem;\n font-size: 12px;\n}\n\n\n.p-float-label .p-placeholder,\n.p-float-label input::placeholder,\n.p-float-label .p-inputtext::placeholder {\n opacity: 0;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-float-label .p-focus .p-placeholder,\n.p-float-label input:focus::placeholder,\n.p-float-label .p-inputtext:focus::placeholder {\n opacity: 1;\n transition-property: all;\n transition-timing-function: ease;\n}\n\n.p-input-icon-left,\n.p-input-icon-right {\n position: relative;\n display: inline-block;\n}\n\n.p-input-icon-left > i,\n.p-input-icon-left > svg,\n.p-input-icon-right > i,\n.p-input-icon-right > svg {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n\n.p-fluid .p-input-icon-left,\n.p-fluid .p-input-icon-right {\n display: block;\n width: 100%;\n}\n","\n").concat("\n.p-radiobutton {\n position: relative;\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n vertical-align: bottom;\n}\n\n.p-radiobutton.p-radiobutton-disabled {\n cursor: default;\n}\n\n.p-radiobutton-box {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.p-radiobutton-icon {\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n transform: translateZ(0) scale(.1);\n border-radius: 50%;\n visibility: hidden;\n}\n\n.p-radiobutton-box.p-highlight .p-radiobutton-icon {\n transform: translateZ(0) scale(1.0, 1.0);\n visibility: visible;\n}\n","\n}\n"),f=l.default.extend({name:"common",css:d,loadGlobalStyle:function(n){return o.useStyle(n,s({name:"global"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}});function b(n){return b="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},b(n)}function v(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function h(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?v(Object(e),!0).forEach((function(t){g(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function g(n,t,e){return(t=y(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function y(n){var t=m(n,"string");return"symbol"===b(t)?t:String(t)}function m(n,t){if("object"!==b(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var O={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(n){var t,e;n||(f.loadStyle({nonce:null===(t=this.$config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce}),this.$options.style&&this.$style.loadStyle({nonce:null===(e=this.$config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce}))}}},beforeCreate:function(){var n,t,e,o,i,l,r,a,s,u,p,c=null===(n=this.pt)||void 0===n?void 0:n._usept,d=c?null===(t=this.pt)||void 0===t||null===(t=t.originalValue)||void 0===t?void 0:t[this.$.type.name]:void 0;null===(o=(c?null===(e=this.pt)||void 0===e||null===(e=e.value)||void 0===e?void 0:e[this.$.type.name]:this.pt)||d)||void 0===o||null===(o=o.hooks)||void 0===o||null===(i=o.onBeforeCreate)||void 0===i||i.call(o);var f=null===(l=this.$config)||void 0===l||null===(l=l.pt)||void 0===l?void 0:l._usept,b=f?null===(r=this.$primevue)||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.pt)||void 0===r?void 0:r.originalValue:void 0;null===(u=(f?null===(a=this.$primevue)||void 0===a||null===(a=a.config)||void 0===a||null===(a=a.pt)||void 0===a?void 0:a.value:null===(s=this.$primevue)||void 0===s||null===(s=s.config)||void 0===s?void 0:s.pt)||b)||void 0===u||null===(u=u[this.$.type.name])||void 0===u||null===(u=u.hooks)||void 0===u||null===(p=u.onBeforeCreate)||void 0===p||p.call(u)},created:function(){this._hook("onCreated")},beforeMount:function(){var n;l.default.loadStyle({nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(n){if(!this.$options.hostName){var t=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(n)),e=this._useDefaultPT(this._getOptionValue,"hooks.".concat(n));null==t||t(),null==e||e()}},_loadGlobalStyles:function(){var n,e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);t.ObjectUtils.isNotEmpty(e)&&f.loadGlobalStyle(e,{nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce})},_getHostInstance:function(n){return n?this.$options.hostName?n.$.type.name===this.$options.hostName?n:this._getHostInstance(n.$parentInstance):n.$parentInstance:void 0},_getPropValue:function(n){var t;return this[n]||(null===(t=this._getHostInstance(this))||void 0===t?void 0:t[n])},_getOptionValue:function(n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.ObjectUtils.toFlatCase(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").split("."),i=o.shift();return i?t.ObjectUtils.isObject(n)?this._getOptionValue(t.ObjectUtils.getItemValue(n[Object.keys(n).find((function(n){return t.ObjectUtils.toFlatCase(n)===i}))||""],e),o.join("."),e):void 0:t.ObjectUtils.getItemValue(n,e)},_getPTValue:function(){var n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a="data-pc-",s=/./g.test(i)&&!!l[i.split(".")[0]],u=this._getPropValue("ptOptions")||(null===(n=this.$config)||void 0===n?void 0:n.ptOptions)||{},p=u.mergeSections,c=void 0===p||p,d=u.mergeProps,f=void 0!==d&&d,b=r?s?this._useGlobalPT(this._getPTClassValue,i,l):this._useDefaultPT(this._getPTClassValue,i,l):void 0,v=s?void 0:this._usePT(this._getPT(o,this.$name),this._getPTClassValue,i,h(h({},l),{},{global:b||{}})),y="transition"!==i&&h(h({},"root"===i&&g({},"".concat(a,"name"),t.ObjectUtils.toFlatCase(this.$.type.name))),{},g({},"".concat(a,"section"),t.ObjectUtils.toFlatCase(i)));return c||!c&&v?f?e.mergeProps(b,v,y):h(h(h({},b),v),y):h(h({},v),y)},_getPTClassValue:function(){var n=this._getOptionValue.apply(this,arguments);return t.ObjectUtils.isString(n)||t.ObjectUtils.isArray(n)?{class:n}:n},_getPT:function(n){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,l=function(n){var l,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=i?i(n):n,s=t.ObjectUtils.toFlatCase(o),u=t.ObjectUtils.toFlatCase(e.$name);return null!==(l=r?s!==u?null==a?void 0:a[s]:void 0:null==a?void 0:a[s])&&void 0!==l?l:a};return null!=n&&n.hasOwnProperty("_usept")?{_usept:n._usept,originalValue:l(n.originalValue),value:l(n.value)}:l(n,!0)},_usePT:function(n,o,i,l){var r=function(n){return o(n,i,l)};if(null!=n&&n.hasOwnProperty("_usept")){var a,s=n._usept||(null===(a=this.$config)||void 0===a?void 0:a.ptOptions)||{},u=s.mergeSections,p=void 0===u||u,c=s.mergeProps,d=void 0!==c&&c,f=r(n.originalValue),b=r(n.value);if(void 0===f&&void 0===b)return;return t.ObjectUtils.isString(b)?b:t.ObjectUtils.isString(f)?f:p||!p&&b?d?e.mergeProps(f,b):h(h({},f),b):b}return r(n)},_useGlobalPT:function(n,t,e){return this._usePT(this.globalPT,n,t,e)},_useDefaultPT:function(n,t,e){return this._usePT(this.defaultPT,n,t,e)},ptm:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._getPTValue(this.pt,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),n))},ptmo:function(){return this._getPTValue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",h({instance:this},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),!1)},cx:function(){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h(h({},this.$params),n))},sx:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var e=this._getOptionValue(this.$style.inlineStyles,n,h(h({},this.$params),t));return[this._getOptionValue(f.inlineStyles,n,h(h({},this.$params),t)),e]}}},computed:{globalPT:function(){var n,e=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return t.ObjectUtils.getItemValue(n,{instance:e})}))},defaultPT:function(){var n,e=this;return this._getPT(null===(n=this.$config)||void 0===n?void 0:n.pt,void 0,(function(n){return e._getOptionValue(n,e.$name,h({},e.$params))||t.ObjectUtils.getItemValue(n,h({},e.$params))}))},isUnstyled:function(){var n;return void 0!==this.unstyled?this.unstyled:null===(n=this.$config)||void 0===n?void 0:n.unstyled},$params:function(){var n=this.$parentInstance||this.$parent;return{instance:this,props:this.$props,state:this.$data,parent:{instance:n,props:null==n?void 0:n.$props,state:null==n?void 0:n.$data},parentInstance:n}},$style:function(){return h(h({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var n;return null===(n=this.$primevue)||void 0===n?void 0:n.config},$name:function(){return this.$options.hostName||this.$.type.name}}};return O}(primevue.base.style,primevue.utils,Vue,primevue.usestyle);
|
package/blockui/BlockUI.d.ts
CHANGED
|
@@ -31,6 +31,10 @@ export interface BreadcrumbPassThroughMethodOptions {
|
|
|
31
31
|
* Defines current options.
|
|
32
32
|
*/
|
|
33
33
|
context: BreadcrumbContext;
|
|
34
|
+
/**
|
|
35
|
+
* Defines parent options.
|
|
36
|
+
*/
|
|
37
|
+
parent: any;
|
|
34
38
|
/**
|
|
35
39
|
* Defines passthrough(pt) options in global config.
|
|
36
40
|
*/
|
|
@@ -141,11 +145,11 @@ export interface BreadcrumbProps {
|
|
|
141
145
|
/**
|
|
142
146
|
* Defines a string value that labels an interactive element.
|
|
143
147
|
*/
|
|
144
|
-
|
|
148
|
+
ariaLabel?: string | undefined;
|
|
145
149
|
/**
|
|
146
150
|
* Identifier of the underlying menu element.
|
|
147
151
|
*/
|
|
148
|
-
|
|
152
|
+
ariaLabelledby?: string | undefined;
|
|
149
153
|
/**
|
|
150
154
|
* Used to pass attributes to DOM elements inside the component.
|
|
151
155
|
* @type {BreadcrumbPassThroughOptions}
|
package/button/Button.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ import { ComponentHooks } from '../basecomponent';
|
|
|
12
12
|
import { PassThroughOptions } from '../passthrough';
|
|
13
13
|
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
14
14
|
|
|
15
|
-
export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
|
15
|
+
export declare type ButtonPassThroughOptionType<T = any> = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions<T>) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Custom passthrough(pt) option method.
|
|
19
19
|
*/
|
|
20
|
-
export interface ButtonPassThroughMethodOptions {
|
|
20
|
+
export interface ButtonPassThroughMethodOptions<T> {
|
|
21
21
|
/**
|
|
22
22
|
* Defines instance.
|
|
23
23
|
*/
|
|
@@ -33,7 +33,7 @@ export interface ButtonPassThroughMethodOptions {
|
|
|
33
33
|
/**
|
|
34
34
|
* Defines parent instance.
|
|
35
35
|
*/
|
|
36
|
-
parent:
|
|
36
|
+
parent: T;
|
|
37
37
|
/**
|
|
38
38
|
* Defines passthrough(pt) options in global config.
|
|
39
39
|
*/
|
|
@@ -44,27 +44,27 @@ export interface ButtonPassThroughMethodOptions {
|
|
|
44
44
|
* Custom passthrough(pt) options.
|
|
45
45
|
* @see {@link ButtonProps.pt}
|
|
46
46
|
*/
|
|
47
|
-
export interface ButtonPassThroughOptions {
|
|
47
|
+
export interface ButtonPassThroughOptions<T = any> {
|
|
48
48
|
/**
|
|
49
49
|
* Used to pass attributes to the root's DOM element.
|
|
50
50
|
*/
|
|
51
|
-
root?: ButtonPassThroughOptionType
|
|
51
|
+
root?: ButtonPassThroughOptionType<T>;
|
|
52
52
|
/**
|
|
53
53
|
* Used to pass attributes to the loading icon's DOM element.
|
|
54
54
|
*/
|
|
55
|
-
loadingIcon?: ButtonPassThroughOptionType
|
|
55
|
+
loadingIcon?: ButtonPassThroughOptionType<T>;
|
|
56
56
|
/**
|
|
57
57
|
* Used to pass attributes to the icon's DOM element.
|
|
58
58
|
*/
|
|
59
|
-
icon?: ButtonPassThroughOptionType
|
|
59
|
+
icon?: ButtonPassThroughOptionType<T>;
|
|
60
60
|
/**
|
|
61
61
|
* Used to pass attributes to the label's DOM element.
|
|
62
62
|
*/
|
|
63
|
-
label?: ButtonPassThroughOptionType
|
|
63
|
+
label?: ButtonPassThroughOptionType<T>;
|
|
64
64
|
/**
|
|
65
65
|
* Used to pass attributes to the badge's DOM element.
|
|
66
66
|
*/
|
|
67
|
-
badge?: ButtonPassThroughOptionType
|
|
67
|
+
badge?: ButtonPassThroughOptionType<T>;
|
|
68
68
|
/**
|
|
69
69
|
* Used to manage all lifecycle hooks.
|
|
70
70
|
* @see {@link BaseComponent.ComponentHooks}
|
|
@@ -171,7 +171,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|
|
171
171
|
* Used to pass attributes to DOM elements inside the component.
|
|
172
172
|
* @type {ButtonPassThroughOptions}
|
|
173
173
|
*/
|
|
174
|
-
pt?: PassThrough<ButtonPassThroughOptions
|
|
174
|
+
pt?: PassThrough<ButtonPassThroughOptions<any>>;
|
|
175
175
|
/**
|
|
176
176
|
* Used to configure passthrough(pt) options of the component.
|
|
177
177
|
* @type {PassThroughOptions}
|
package/button/Button.vue
CHANGED
|
@@ -26,10 +26,6 @@ export default {
|
|
|
26
26
|
methods: {
|
|
27
27
|
getPTOptions(key) {
|
|
28
28
|
return this.ptm(key, {
|
|
29
|
-
parent: {
|
|
30
|
-
props: this.$parent?.$props,
|
|
31
|
-
state: this.$parent?.$data
|
|
32
|
-
},
|
|
33
29
|
context: {
|
|
34
30
|
disabled: this.disabled
|
|
35
31
|
}
|
|
@@ -41,7 +37,7 @@ export default {
|
|
|
41
37
|
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
|
42
38
|
},
|
|
43
39
|
defaultAriaLabel() {
|
|
44
|
-
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs
|
|
40
|
+
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
|
|
45
41
|
},
|
|
46
42
|
hasIcon() {
|
|
47
43
|
return this.icon || this.$slots.icon;
|
package/button/button.cjs.js
CHANGED
|
@@ -101,12 +101,7 @@ var script = {
|
|
|
101
101
|
"extends": script$1,
|
|
102
102
|
methods: {
|
|
103
103
|
getPTOptions: function getPTOptions(key) {
|
|
104
|
-
var _this$$parent, _this$$parent2;
|
|
105
104
|
return this.ptm(key, {
|
|
106
|
-
parent: {
|
|
107
|
-
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
108
|
-
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
109
|
-
},
|
|
110
105
|
context: {
|
|
111
106
|
disabled: this.disabled
|
|
112
107
|
}
|
|
@@ -118,7 +113,7 @@ var script = {
|
|
|
118
113
|
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
|
119
114
|
},
|
|
120
115
|
defaultAriaLabel: function defaultAriaLabel() {
|
|
121
|
-
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs
|
|
116
|
+
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
|
|
122
117
|
},
|
|
123
118
|
hasIcon: function hasIcon() {
|
|
124
119
|
return this.icon || this.$slots.icon;
|
package/button/button.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),l=require("primevue/basecomponent"),a=require("primevue/button/style"),o=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),s=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){
|
|
1
|
+
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),l=require("primevue/basecomponent"),a=require("primevue/button/style"),o=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),s=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:s.default,Badge:r.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];c.render=function(e,t,n,l,a,i){var r=o.resolveComponent("SpinnerIcon"),s=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(r,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(s,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},module.exports=c;
|
package/button/button.esm.js
CHANGED
|
@@ -91,12 +91,7 @@ var script = {
|
|
|
91
91
|
"extends": script$1,
|
|
92
92
|
methods: {
|
|
93
93
|
getPTOptions: function getPTOptions(key) {
|
|
94
|
-
var _this$$parent, _this$$parent2;
|
|
95
94
|
return this.ptm(key, {
|
|
96
|
-
parent: {
|
|
97
|
-
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
98
|
-
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
99
|
-
},
|
|
100
95
|
context: {
|
|
101
96
|
disabled: this.disabled
|
|
102
97
|
}
|
|
@@ -108,7 +103,7 @@ var script = {
|
|
|
108
103
|
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
|
109
104
|
},
|
|
110
105
|
defaultAriaLabel: function defaultAriaLabel() {
|
|
111
|
-
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs
|
|
106
|
+
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
|
|
112
107
|
},
|
|
113
108
|
hasIcon: function hasIcon() {
|
|
114
109
|
return this.icon || this.$slots.icon;
|
package/button/button.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/badge";import t from"primevue/icons/spinner";import n from"primevue/ripple";import
|
|
1
|
+
import e from"primevue/badge";import t from"primevue/icons/spinner";import n from"primevue/ripple";import l from"primevue/basecomponent";import a from"primevue/button/style";import{resolveComponent as i,resolveDirective as o,withDirectives as s,openBlock as d,createElementBlock as r,mergeProps as u,renderSlot as c,normalizeClass as p,createBlock as f,createCommentVNode as g,createElementVNode as y,toDisplayString as b}from"vue";var m={name:"Button",extends:{name:"BaseButton",extends:l,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:a,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:t,Badge:e},directives:{ripple:n}},v=["aria-label","disabled","data-pc-severity"];m.render=function(e,t,n,l,a,m){var h=i("SpinnerIcon"),x=i("Badge"),S=o("ripple");return s((d(),r("button",u({class:e.cx("root"),type:"button","aria-label":m.defaultAriaLabel,disabled:m.disabled},m.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[c(e.$slots,"default",{},(function(){return[e.loading?c(e.$slots,"loadingicon",{key:0,class:p([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(d(),r("span",u({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(d(),f(h,u({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):c(e.$slots,"icon",{key:1,class:p([e.cx("icon")])},(function(){return[e.icon?(d(),r("span",u({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):g("",!0)]})),y("span",u({class:e.cx("label")},e.ptm("label")),b(e.label||" "),17),e.badge?(d(),f(x,u({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):g("",!0)]}))],16,v)),[[S]])};export{m as default};
|
package/button/button.js
CHANGED
|
@@ -96,12 +96,7 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, But
|
|
|
96
96
|
"extends": script$1,
|
|
97
97
|
methods: {
|
|
98
98
|
getPTOptions: function getPTOptions(key) {
|
|
99
|
-
var _this$$parent, _this$$parent2;
|
|
100
99
|
return this.ptm(key, {
|
|
101
|
-
parent: {
|
|
102
|
-
props: (_this$$parent = this.$parent) === null || _this$$parent === void 0 ? void 0 : _this$$parent.$props,
|
|
103
|
-
state: (_this$$parent2 = this.$parent) === null || _this$$parent2 === void 0 ? void 0 : _this$$parent2.$data
|
|
104
|
-
},
|
|
105
100
|
context: {
|
|
106
101
|
disabled: this.disabled
|
|
107
102
|
}
|
|
@@ -113,7 +108,7 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, But
|
|
|
113
108
|
return this.$attrs.disabled || this.$attrs.disabled === '' || this.loading;
|
|
114
109
|
},
|
|
115
110
|
defaultAriaLabel: function defaultAriaLabel() {
|
|
116
|
-
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs
|
|
111
|
+
return this.label ? this.label + (this.badge ? ' ' + this.badge : '') : this.$attrs.ariaLabel;
|
|
117
112
|
},
|
|
118
113
|
hasIcon: function hasIcon() {
|
|
119
114
|
return this.icon || this.$slots.icon;
|
package/button/button.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,l,a,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),r=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,l,a,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(e),r=i(t),d=i(n),c={name:"Button",extends:{name:"BaseButton",extends:i(l).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:i(a).default,provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){return this.ptm(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:s.default},directives:{ripple:d.default}},u=["aria-label","disabled","data-pc-severity"];return c.render=function(e,t,n,l,a,i){var s=o.resolveComponent("SpinnerIcon"),r=o.resolveComponent("Badge"),d=o.resolveDirective("ripple");return o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({class:e.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[o.renderSlot(e.$slots,"default",{},(function(){return[e.loading?o.renderSlot(e.$slots,"loadingicon",{key:0,class:o.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(o.openBlock(),o.createBlock(s,o.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):o.renderSlot(e.$slots,"icon",{key:1,class:o.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):o.createCommentVNode("",!0)]})),o.createElementVNode("span",o.mergeProps({class:e.cx("label")},e.ptm("label")),o.toDisplayString(e.label||" "),17),e.badge?(o.openBlock(),o.createBlock(r,o.mergeProps({key:2,value:e.badge,class:e.badgeClass,severity:e.badgeSeverity,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","severity","unstyled"])):o.createCommentVNode("",!0)]}))],16,u)),[[d]])},c}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,primevue.button.style,Vue);
|
|
@@ -31,6 +31,10 @@ export default {
|
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: false
|
|
33
33
|
},
|
|
34
|
+
iconDisplay: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: 'button'
|
|
37
|
+
},
|
|
34
38
|
icon: {
|
|
35
39
|
type: String,
|
|
36
40
|
default: undefined
|
|
@@ -216,11 +220,11 @@ export default {
|
|
|
216
220
|
type: null,
|
|
217
221
|
default: null
|
|
218
222
|
},
|
|
219
|
-
|
|
223
|
+
ariaLabelledby: {
|
|
220
224
|
type: String,
|
|
221
225
|
default: null
|
|
222
226
|
},
|
|
223
|
-
|
|
227
|
+
ariaLabel: {
|
|
224
228
|
type: String,
|
|
225
229
|
default: null
|
|
226
230
|
}
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
12
|
+
import { ButtonPassThroughOptions } from '../button';
|
|
13
13
|
import { PassThroughOptions } from '../passthrough';
|
|
14
14
|
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
15
15
|
|
|
@@ -37,12 +37,30 @@ export interface CalendarPassThroughMethodOptions {
|
|
|
37
37
|
* Defines current options.
|
|
38
38
|
*/
|
|
39
39
|
context: CalendarContext;
|
|
40
|
+
/**
|
|
41
|
+
* Defines parent options.
|
|
42
|
+
*/
|
|
43
|
+
parent: any;
|
|
40
44
|
/**
|
|
41
45
|
* Defines passthrough(pt) options in global config.
|
|
42
46
|
*/
|
|
43
47
|
global: object | undefined;
|
|
44
48
|
}
|
|
45
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Custom shared passthrough(pt) option method.
|
|
52
|
+
*/
|
|
53
|
+
export interface CalendarSharedPassThroughMethodOptions {
|
|
54
|
+
/**
|
|
55
|
+
* Defines valid properties.
|
|
56
|
+
*/
|
|
57
|
+
props: CalendarProps;
|
|
58
|
+
/**
|
|
59
|
+
* Defines current inline state.
|
|
60
|
+
*/
|
|
61
|
+
state: CalendarState;
|
|
62
|
+
}
|
|
63
|
+
|
|
46
64
|
/**
|
|
47
65
|
* Custom Calendar responsive options metadata.
|
|
48
66
|
*/
|
|
@@ -117,9 +135,9 @@ export interface CalendarPassThroughOptions {
|
|
|
117
135
|
input?: CalendarPassThroughOptionType;
|
|
118
136
|
/**
|
|
119
137
|
* Used to pass attributes to the Button component.
|
|
120
|
-
* @see {@link
|
|
138
|
+
* @see {@link ButtonPassThroughOptions}
|
|
121
139
|
*/
|
|
122
|
-
dropdownButton?:
|
|
140
|
+
dropdownButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
|
|
123
141
|
/**
|
|
124
142
|
* Used to pass attributes to the panel's DOM element.
|
|
125
143
|
*/
|
|
@@ -138,9 +156,9 @@ export interface CalendarPassThroughOptions {
|
|
|
138
156
|
header?: CalendarPassThroughOptionType;
|
|
139
157
|
/**
|
|
140
158
|
* Used to pass attributes to the Button component.
|
|
141
|
-
* @see {@link
|
|
159
|
+
* @see {@link ButtonPassThroughOptions}
|
|
142
160
|
*/
|
|
143
|
-
previousButton?:
|
|
161
|
+
previousButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
|
|
144
162
|
/**
|
|
145
163
|
* Used to pass attributes to the title's DOM element.
|
|
146
164
|
*/
|
|
@@ -159,9 +177,9 @@ export interface CalendarPassThroughOptions {
|
|
|
159
177
|
decadeTitle?: CalendarPassThroughOptionType;
|
|
160
178
|
/**
|
|
161
179
|
* Used to pass attributes to the Button component.
|
|
162
|
-
* @see {@link
|
|
180
|
+
* @see {@link ButtonPassThroughOptions}
|
|
163
181
|
*/
|
|
164
|
-
nextButton?:
|
|
182
|
+
nextButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
|
|
165
183
|
/**
|
|
166
184
|
* Used to pass attributes to the container's DOM element.
|
|
167
185
|
*/
|
|
@@ -288,14 +306,14 @@ export interface CalendarPassThroughOptions {
|
|
|
288
306
|
buttonbar?: CalendarPassThroughOptionType;
|
|
289
307
|
/**
|
|
290
308
|
* Used to pass attributes to the Button component.
|
|
291
|
-
* @see {@link
|
|
309
|
+
* @see {@link ButtonPassThroughOptions}
|
|
292
310
|
*/
|
|
293
|
-
todayButton?:
|
|
311
|
+
todayButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
|
|
294
312
|
/**
|
|
295
313
|
* Used to pass attributes to the Button component.
|
|
296
|
-
* @see {@link
|
|
314
|
+
* @see {@link ButtonPassThroughOptions}
|
|
297
315
|
*/
|
|
298
|
-
clearButton?:
|
|
316
|
+
clearButton?: ButtonPassThroughOptions<CalendarSharedPassThroughMethodOptions>;
|
|
299
317
|
/**
|
|
300
318
|
* Used to pass attributes to the aria selected day's DOM element.
|
|
301
319
|
*/
|
|
@@ -479,6 +497,11 @@ export interface CalendarProps {
|
|
|
479
497
|
* @defaultValue false
|
|
480
498
|
*/
|
|
481
499
|
showIcon?: boolean | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* Icon position of the component. This only applies if the showIcon option is set to true.
|
|
502
|
+
* @defaultValue 'button'
|
|
503
|
+
*/
|
|
504
|
+
iconDisplay?: 'button' | 'input' | undefined;
|
|
482
505
|
/**
|
|
483
506
|
* Icon of the calendar button.
|
|
484
507
|
* @deprecated since v3.27.0. Use 'dropdownicon' slot.
|
|
@@ -708,11 +731,11 @@ export interface CalendarProps {
|
|
|
708
731
|
/**
|
|
709
732
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
710
733
|
*/
|
|
711
|
-
|
|
734
|
+
ariaLabelledby?: string | undefined;
|
|
712
735
|
/**
|
|
713
736
|
* Establishes a string value that labels the component.
|
|
714
737
|
*/
|
|
715
|
-
|
|
738
|
+
ariaLabel?: string | undefined;
|
|
716
739
|
/**
|
|
717
740
|
* Used to pass attributes to DOM elements inside the component.
|
|
718
741
|
* @type {CalendarPassThroughOptions}
|
|
@@ -784,6 +807,20 @@ export interface CalendarSlots {
|
|
|
784
807
|
*/
|
|
785
808
|
class: any;
|
|
786
809
|
}): VNode[];
|
|
810
|
+
/**
|
|
811
|
+
* Custom input icon template.
|
|
812
|
+
* @param {Object} scope - input icon slot's params.
|
|
813
|
+
*/
|
|
814
|
+
inputicon(scope: {
|
|
815
|
+
/**
|
|
816
|
+
* Style class of the input icon
|
|
817
|
+
*/
|
|
818
|
+
class: any;
|
|
819
|
+
/**
|
|
820
|
+
* Click callback
|
|
821
|
+
*/
|
|
822
|
+
clickCallback: () => void;
|
|
823
|
+
}): VNode[];
|
|
787
824
|
/**
|
|
788
825
|
* Custom previous icon template.
|
|
789
826
|
* @param {Object} scope - previous icon slot's params.
|
package/calendar/Calendar.vue
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
v-bind="{ ...inputProps, ...ptm('input') }"
|
|
29
29
|
/>
|
|
30
30
|
<CalendarButton
|
|
31
|
-
v-if="showIcon"
|
|
31
|
+
v-if="showIcon && iconDisplay === 'button'"
|
|
32
32
|
:class="cx('dropdownButton')"
|
|
33
33
|
:disabled="disabled"
|
|
34
34
|
@click="onButtonClick"
|
|
@@ -47,6 +47,11 @@
|
|
|
47
47
|
</slot>
|
|
48
48
|
</template>
|
|
49
49
|
</CalendarButton>
|
|
50
|
+
<template v-else-if="showIcon && iconDisplay === 'input'">
|
|
51
|
+
<slot name="inputicon" :class="cx('inputIcon')" :clickCallback="onButtonClick">
|
|
52
|
+
<component :is="icon ? 'i' : 'CalendarIcon'" :class="[icon, cx('inputIcon')]" @click="onButtonClick" v-bind="ptm('inputicon')" />
|
|
53
|
+
</slot>
|
|
54
|
+
</template>
|
|
50
55
|
<Portal :appendTo="appendTo" :disabled="inline">
|
|
51
56
|
<transition name="p-connected-overlay" @enter="onOverlayEnter($event)" @after-enter="onOverlayEnterComplete" @after-leave="onOverlayAfterLeave" @leave="onOverlayLeave" v-bind="ptm('transition')">
|
|
52
57
|
<div
|
|
@@ -1267,14 +1272,10 @@ export default {
|
|
|
1267
1272
|
let formattedValue = null;
|
|
1268
1273
|
|
|
1269
1274
|
if (date) {
|
|
1270
|
-
|
|
1271
|
-
formattedValue = this.formatTime(date);
|
|
1272
|
-
} else {
|
|
1273
|
-
formattedValue = this.formatDate(date, this.datePattern);
|
|
1275
|
+
formattedValue = this.formatDate(date, this.datePattern);
|
|
1274
1276
|
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}
|
|
1277
|
+
if (this.showTime || this.timeOnly) {
|
|
1278
|
+
formattedValue += ' ' + this.formatTime(date);
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
1281
|
|
|
@@ -1793,18 +1794,13 @@ export default {
|
|
|
1793
1794
|
let date;
|
|
1794
1795
|
let parts = text.split(' ');
|
|
1795
1796
|
|
|
1796
|
-
|
|
1797
|
-
date = new Date();
|
|
1798
|
-
this.populateTime(date, parts[0], parts[1]);
|
|
1799
|
-
} else {
|
|
1800
|
-
const dateFormat = this.datePattern;
|
|
1797
|
+
const dateFormat = this.datePattern;
|
|
1801
1798
|
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
}
|
|
1799
|
+
if (this.showTime || this.timeOnly) {
|
|
1800
|
+
date = this.parseDate(parts[0], dateFormat);
|
|
1801
|
+
this.populateTime(date, parts[1], parts[2]);
|
|
1802
|
+
} else {
|
|
1803
|
+
date = this.parseDate(text, dateFormat);
|
|
1808
1804
|
}
|
|
1809
1805
|
|
|
1810
1806
|
return date;
|