primevue 3.32.2 → 3.34.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 +21 -2
- package/accordion/accordion.cjs.js +3 -3
- package/accordion/accordion.esm.js +3 -3
- package/accordion/accordion.js +3 -3
- package/accordiontab/AccordionTab.d.ts +24 -2
- package/autocomplete/AutoComplete.d.ts +24 -2
- package/autocomplete/AutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +5 -5
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +5 -5
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +5 -5
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +21 -2
- package/avatargroup/AvatarGroup.d.ts +8 -2
- package/badge/Badge.d.ts +18 -2
- package/badgedirective/BadgeDirective.d.ts +12 -2
- package/badgedirective/badgedirective.cjs.js +3 -3
- package/badgedirective/badgedirective.esm.js +3 -3
- package/badgedirective/badgedirective.js +3 -3
- package/basecomponent/BaseComponent.vue +20 -22
- package/basecomponent/basecomponent.cjs.js +41 -28
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +41 -28
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +41 -28
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +42 -25
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +42 -25
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +42 -25
- package/basedirective/basedirective.min.js +1 -1
- package/blockui/BlockUI.d.ts +21 -2
- package/breadcrumb/Breadcrumb.d.ts +47 -2
- package/breadcrumb/Breadcrumb.vue +7 -2
- package/breadcrumb/BreadcrumbItem.vue +28 -3
- package/breadcrumb/breadcrumb.cjs.js +35 -8
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +36 -9
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +35 -8
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +24 -2
- package/button/button.cjs.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.js +1 -1
- package/calendar/Calendar.d.ts +26 -4
- package/calendar/Calendar.vue +63 -29
- package/calendar/calendar.cjs.js +137 -51
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +137 -51
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +137 -51
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +8 -2
- package/carousel/Carousel.d.ts +24 -2
- package/carousel/Carousel.vue +22 -2
- package/carousel/carousel.cjs.js +9 -5
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +9 -5
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +9 -5
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +21 -2
- package/cascadeselect/cascadeselect.cjs.js +3 -3
- package/cascadeselect/cascadeselect.esm.js +3 -3
- package/cascadeselect/cascadeselect.js +3 -3
- package/chart/Chart.d.ts +18 -2
- package/chart/chart.cjs.js +3 -3
- package/chart/chart.esm.js +3 -3
- package/chart/chart.js +3 -3
- package/checkbox/Checkbox.d.ts +24 -2
- package/checkbox/checkbox.cjs.js +3 -3
- package/checkbox/checkbox.esm.js +3 -3
- package/checkbox/checkbox.js +3 -3
- package/chip/Chip.d.ts +21 -2
- package/chips/Chips.d.ts +21 -2
- package/chips/chips.cjs.js +3 -3
- package/chips/chips.esm.js +3 -3
- package/chips/chips.js +3 -3
- package/colorpicker/ColorPicker.d.ts +21 -2
- package/column/Column.d.ts +24 -2
- package/columngroup/ColumnGroup.d.ts +24 -2
- package/config/PrimeVue.d.ts +93 -92
- package/config/config.cjs.js +4 -3
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +4 -3
- package/config/config.esm.min.js +1 -1
- package/config/config.js +4 -3
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +21 -2
- package/confirmpopup/ConfirmPopup.d.ts +21 -2
- package/confirmpopup/confirmpopup.cjs.js +3 -3
- package/confirmpopup/confirmpopup.esm.js +3 -3
- package/confirmpopup/confirmpopup.js +3 -3
- package/contextmenu/ContextMenu.d.ts +54 -2
- package/contextmenu/ContextMenu.vue +13 -7
- package/contextmenu/ContextMenuSub.vue +34 -2
- package/contextmenu/contextmenu.cjs.js +41 -14
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +42 -15
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +41 -14
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +256 -147
- package/core/core.min.js +12 -12
- package/datatable/BodyCell.vue +14 -4
- package/datatable/DataTable.d.ts +41 -3
- package/datatable/DataTable.vue +6 -3
- package/datatable/TableBody.vue +7 -8
- package/datatable/datatable.cjs.js +63 -57
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +63 -57
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +63 -57
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +21 -2
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
- package/deferredcontent/DeferredContent.d.ts +21 -2
- package/dialog/Dialog.d.ts +21 -2
- package/dialog/Dialog.vue +2 -2
- package/dialog/dialog.cjs.js +7 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +8 -6
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +7 -5
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +18 -2
- package/dock/Dock.d.ts +46 -2
- package/dock/Dock.vue +5 -0
- package/dock/DockSub.vue +20 -1
- package/dock/dock.cjs.js +21 -2
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +22 -3
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +21 -2
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +24 -2
- package/dropdown/dropdown.cjs.js +6 -6
- package/dropdown/dropdown.esm.js +6 -6
- package/dropdown/dropdown.js +6 -6
- package/editor/Editor.d.ts +22 -2
- package/editor/editor.cjs.js +3 -3
- package/editor/editor.esm.js +3 -3
- package/editor/editor.js +3 -3
- package/fieldset/Fieldset.d.ts +21 -2
- package/fieldset/fieldset.cjs.js +4 -4
- package/fieldset/fieldset.esm.js +4 -4
- package/fieldset/fieldset.js +4 -4
- package/fileupload/FileContent.vue +8 -6
- package/fileupload/FileUpload.d.ts +21 -2
- package/fileupload/FileUpload.vue +9 -7
- package/fileupload/fileupload.cjs.js +17 -13
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +17 -13
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +17 -13
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +8 -2
- package/galleria/Galleria.d.ts +24 -2
- package/galleria/galleria.cjs.js +9 -9
- package/galleria/galleria.esm.js +9 -9
- package/galleria/galleria.js +9 -9
- package/image/Image.d.ts +21 -2
- package/image/image.cjs.js +3 -3
- package/image/image.esm.js +3 -3
- package/image/image.js +3 -3
- package/inlinemessage/InlineMessage.d.ts +21 -2
- package/inplace/Inplace.d.ts +21 -2
- package/inplace/inplace.cjs.js +3 -3
- package/inplace/inplace.esm.js +3 -3
- package/inplace/inplace.js +3 -3
- package/inputmask/InputMask.d.ts +21 -2
- package/inputmask/InputMask.vue +3 -1
- package/inputmask/inputmask.cjs.js +2 -1
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +2 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +2 -1
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +21 -2
- package/inputnumber/inputnumber.cjs.js +6 -6
- package/inputnumber/inputnumber.esm.js +6 -6
- package/inputnumber/inputnumber.js +6 -6
- package/inputswitch/InputSwitch.d.ts +21 -2
- package/inputswitch/inputswitch.cjs.js +3 -3
- package/inputswitch/inputswitch.esm.js +3 -3
- package/inputswitch/inputswitch.js +3 -3
- package/inputtext/InputText.d.ts +21 -2
- package/knob/Knob.d.ts +21 -2
- package/listbox/Listbox.d.ts +24 -2
- package/listbox/listbox.cjs.js +3 -3
- package/listbox/listbox.esm.js +3 -3
- package/listbox/listbox.js +3 -3
- package/megamenu/MegaMenu.d.ts +58 -2
- package/megamenu/MegaMenu.vue +6 -30
- package/megamenu/MegaMenuSub.vue +34 -3
- package/megamenu/megamenu.cjs.js +36 -39
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +37 -40
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +36 -39
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +60 -2
- package/menu/Menu.vue +6 -1
- package/menu/Menuitem.vue +26 -1
- package/menu/menu.cjs.js +29 -7
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +30 -8
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +29 -7
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +62 -2
- package/menubar/Menubar.vue +6 -0
- package/menubar/MenubarSub.vue +32 -1
- package/menubar/menubar.cjs.js +34 -6
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +35 -7
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +34 -6
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +1 -0
- package/message/Message.d.ts +21 -2
- package/message/message.cjs.js +3 -3
- package/message/message.esm.js +3 -3
- package/message/message.js +3 -3
- package/multiselect/MultiSelect.d.ts +24 -2
- package/multiselect/multiselect.cjs.js +6 -6
- package/multiselect/multiselect.esm.js +6 -6
- package/multiselect/multiselect.js +6 -6
- package/orderlist/OrderList.d.ts +24 -2
- package/orderlist/OrderList.vue +7 -5
- package/orderlist/orderlist.cjs.js +10 -8
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +10 -8
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +10 -8
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +24 -2
- package/organizationchart/organizationchart.cjs.js +4 -4
- package/organizationchart/organizationchart.esm.js +4 -4
- package/organizationchart/organizationchart.js +4 -4
- package/overlaypanel/OverlayPanel.d.ts +21 -2
- package/overlaypanel/overlaypanel.cjs.js +3 -3
- package/overlaypanel/overlaypanel.esm.js +3 -3
- package/overlaypanel/overlaypanel.js +3 -3
- package/package.json +1 -1
- package/paginator/FirstPageLink.vue +1 -1
- package/paginator/JumpToPageDropdown.vue +1 -0
- package/paginator/LastPageLink.vue +1 -1
- package/paginator/NextPageLink.vue +1 -1
- package/paginator/Paginator.d.ts +24 -2
- package/paginator/PrevPageLink.vue +1 -1
- package/paginator/RowsPerPageDropdown.vue +1 -0
- package/paginator/paginator.cjs.js +19 -9
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +19 -9
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +19 -9
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +21 -2
- package/panel/panel.cjs.js +3 -3
- package/panel/panel.esm.js +3 -3
- package/panel/panel.js +3 -3
- package/panelmenu/PanelMenu.d.ts +58 -2
- package/panelmenu/PanelMenu.vue +6 -0
- package/panelmenu/PanelMenuList.vue +1 -0
- package/panelmenu/PanelMenuSub.vue +33 -1
- package/panelmenu/panelmenu.cjs.js +41 -12
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +42 -13
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +41 -12
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +15 -9
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.d.ts +4 -4
- package/passthrough/index.esm.js +15 -9
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +15 -9
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +3 -3
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +3 -3
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +3 -3
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/Password.d.ts +21 -2
- package/password/password.cjs.js +3 -3
- package/password/password.esm.js +3 -3
- package/password/password.js +3 -3
- package/picklist/PickList.d.ts +24 -2
- package/picklist/PickList.vue +8 -5
- package/picklist/picklist.cjs.js +10 -8
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +10 -8
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +10 -8
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +18 -2
- package/progressspinner/ProgressSpinner.d.ts +18 -2
- package/radiobutton/RadioButton.d.ts +21 -2
- package/radiobutton/radiobutton.cjs.js +3 -3
- package/radiobutton/radiobutton.esm.js +3 -3
- package/radiobutton/radiobutton.js +3 -3
- package/rating/Rating.d.ts +24 -2
- package/ripple/Ripple.d.ts +8 -2
- package/row/Row.d.ts +16 -0
- package/scrollpanel/ScrollPanel.d.ts +21 -2
- package/scrolltop/ScrollTop.d.ts +21 -2
- package/selectbutton/SelectButton.d.ts +24 -2
- package/sidebar/Sidebar.d.ts +21 -2
- package/sidebar/sidebar.cjs.js +3 -3
- package/sidebar/sidebar.esm.js +3 -3
- package/sidebar/sidebar.js +3 -3
- package/skeleton/Skeleton.d.ts +18 -2
- package/slider/Slider.d.ts +18 -2
- package/speeddial/SpeedDial.d.ts +24 -2
- package/speeddial/speeddial.cjs.js +4 -4
- package/speeddial/speeddial.esm.js +4 -4
- package/speeddial/speeddial.js +4 -4
- package/splitbutton/SplitButton.d.ts +35 -2
- package/splitbutton/SplitButton.vue +6 -2
- package/splitbutton/splitbutton.cjs.js +17 -9
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +18 -10
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +17 -9
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +24 -2
- package/splitterpanel/SplitterPanel.d.ts +21 -2
- package/steps/Steps.d.ts +51 -2
- package/steps/Steps.vue +31 -1
- package/steps/steps.cjs.js +31 -3
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +31 -3
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +32 -4
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +8 -2
- package/tabmenu/TabMenu.d.ts +50 -2
- package/tabmenu/TabMenu.vue +27 -1
- package/tabmenu/tabmenu.cjs.js +26 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +26 -3
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +27 -4
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +24 -2
- package/tabview/TabView.d.ts +8 -2
- package/tabview/tabview.cjs.js +3 -3
- package/tabview/tabview.esm.js +3 -3
- package/tabview/tabview.js +3 -3
- package/tag/Tag.d.ts +18 -2
- package/terminal/Terminal.d.ts +21 -2
- package/textarea/Textarea.d.ts +21 -2
- package/tieredmenu/TieredMenu.d.ts +58 -2
- package/tieredmenu/TieredMenu.vue +6 -0
- package/tieredmenu/TieredMenuSub.vue +33 -1
- package/tieredmenu/tieredmenu.cjs.js +35 -7
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +36 -8
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +35 -7
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +21 -2
- package/toast/Toast.d.ts +21 -2
- package/toast/toast.cjs.js +7 -7
- package/toast/toast.esm.js +7 -7
- package/toast/toast.js +7 -7
- package/togglebutton/ToggleButton.d.ts +24 -2
- package/togglebutton/ToggleButton.vue +4 -4
- package/togglebutton/togglebutton.cjs.js +7 -7
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +7 -7
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +7 -7
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +18 -2
- package/tooltip/Tooltip.d.ts +12 -2
- package/tooltip/tooltip.cjs.js +2 -2
- package/tooltip/tooltip.esm.js +2 -2
- package/tooltip/tooltip.js +2 -2
- package/tree/Tree.d.ts +24 -2
- package/tree/Tree.vue +1 -1
- package/tree/tree.cjs.js +7 -7
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +7 -7
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +7 -7
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +21 -2
- package/treeselect/treeselect.cjs.js +6 -6
- package/treeselect/treeselect.esm.js +6 -6
- package/treeselect/treeselect.js +6 -6
- package/treetable/BodyCell.vue +1 -1
- package/treetable/TreeTable.d.ts +24 -2
- package/treetable/TreeTableRow.vue +1 -1
- package/treetable/treetable.cjs.js +22 -20
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +22 -20
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +22 -20
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
- package/tristatecheckbox/tristatecheckbox.js +3 -3
- package/ts-helpers.d.ts +2 -2
- package/utils/utils.cjs.js +30 -20
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +30 -20
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +30 -20
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +1 -1
- package/virtualscroller/BaseVirtualScroller.vue +3 -3
- package/virtualscroller/VirtualScroller.d.ts +21 -2
- package/virtualscroller/virtualscroller.cjs.js +6 -6
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +6 -6
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +6 -6
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +13 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ChevronRightIcon from 'primevue/icons/chevronright';
|
|
2
2
|
import BaseComponent from 'primevue/basecomponent';
|
|
3
3
|
import { useStyle } from 'primevue/usestyle';
|
|
4
|
-
import { resolveComponent, openBlock, createElementBlock,
|
|
4
|
+
import { mergeProps, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, withCtx, createElementVNode, resolveDynamicComponent, normalizeClass, createCommentVNode, toDisplayString, renderList, renderSlot, createVNode } from 'vue';
|
|
5
5
|
|
|
6
6
|
var styles = "\n.p-breadcrumb {\n overflow-x: auto;\n}\n\n.p-breadcrumb .p-breadcrumb-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n}\n\n.p-breadcrumb .p-menuitem-text {\n line-height: 1;\n}\n\n.p-breadcrumb .p-menuitem-link {\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb .p-menuitem-separator {\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb::-webkit-scrollbar {\n display: none;\n}\n";
|
|
7
7
|
var classes = {
|
|
@@ -95,7 +95,7 @@ var script$1 = {
|
|
|
95
95
|
var _this$item = this.item,
|
|
96
96
|
to = _this$item.to,
|
|
97
97
|
url = _this$item.url;
|
|
98
|
-
var lastPath =
|
|
98
|
+
var lastPath = typeof window !== 'undefined' ? window.location.pathname : '';
|
|
99
99
|
return to === lastPath || url === lastPath ? 'page' : undefined;
|
|
100
100
|
}
|
|
101
101
|
},
|
|
@@ -107,6 +107,24 @@ var script$1 = {
|
|
|
107
107
|
index: this.index
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
+
},
|
|
111
|
+
getMenuItemProps: function getMenuItemProps() {
|
|
112
|
+
var _this = this;
|
|
113
|
+
return {
|
|
114
|
+
action: mergeProps({
|
|
115
|
+
"class": this.cx('action'),
|
|
116
|
+
'aria-current': this.isCurrentUrl(),
|
|
117
|
+
onClick: function onClick($event) {
|
|
118
|
+
return _this.onClick($event);
|
|
119
|
+
}
|
|
120
|
+
}, this.ptm('action', this.ptmOptions)),
|
|
121
|
+
icon: mergeProps({
|
|
122
|
+
"class": [this.cx('icon'), this.item.icon]
|
|
123
|
+
}, this.ptm('icon', this.ptmOptions)),
|
|
124
|
+
label: mergeProps({
|
|
125
|
+
"class": this.cx('label')
|
|
126
|
+
}, this.ptm('label', this.ptmOptions))
|
|
127
|
+
};
|
|
110
128
|
}
|
|
111
129
|
}
|
|
112
130
|
};
|
|
@@ -118,7 +136,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
118
136
|
return $options.visible() ? (openBlock(), createElementBlock("li", mergeProps({
|
|
119
137
|
key: 0,
|
|
120
138
|
"class": [_ctx.cx('menuitem'), $props.item["class"]]
|
|
121
|
-
}, _ctx.ptm('menuitem', $options.ptmOptions)), [!$props.templates
|
|
139
|
+
}, _ctx.ptm('menuitem', $options.ptmOptions)), [!$props.templates.item ? (openBlock(), createElementBlock(Fragment, {
|
|
122
140
|
key: 0
|
|
123
141
|
}, [$props.item.to ? (openBlock(), createBlock(_component_router_link, {
|
|
124
142
|
key: 0,
|
|
@@ -174,8 +192,10 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
174
192
|
"class": _ctx.cx('label')
|
|
175
193
|
}, _ctx.ptm('label', $options.ptmOptions)), toDisplayString($options.label()), 17)) : createCommentVNode("", true)], 16, _hoisted_2))], 64)) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {
|
|
176
194
|
key: 1,
|
|
177
|
-
item: $props.item
|
|
178
|
-
|
|
195
|
+
item: $props.item,
|
|
196
|
+
label: $options.label(),
|
|
197
|
+
props: $options.getMenuItemProps
|
|
198
|
+
}, null, 8, ["item", "label", "props"]))], 16)) : createCommentVNode("", true);
|
|
179
199
|
}
|
|
180
200
|
|
|
181
201
|
script$1.render = render$1;
|
|
@@ -183,6 +203,11 @@ script$1.render = render$1;
|
|
|
183
203
|
var script = {
|
|
184
204
|
name: 'Breadcrumb',
|
|
185
205
|
"extends": script$2,
|
|
206
|
+
beforeMount: function beforeMount() {
|
|
207
|
+
if (!this.$slots.item) {
|
|
208
|
+
console.warn('In future versions, vue-router support will be removed. Item templating should be used.');
|
|
209
|
+
}
|
|
210
|
+
},
|
|
186
211
|
components: {
|
|
187
212
|
BreadcrumbItem: script$1,
|
|
188
213
|
ChevronRightIcon: ChevronRightIcon
|
|
@@ -204,8 +229,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
204
229
|
"class": _ctx.cx('home'),
|
|
205
230
|
templates: _ctx.$slots,
|
|
206
231
|
exact: _ctx.exact,
|
|
207
|
-
pt: _ctx.pt
|
|
208
|
-
|
|
232
|
+
pt: _ctx.pt,
|
|
233
|
+
unstyled: _ctx.unstyled
|
|
234
|
+
}, _ctx.ptm('home')), null, 16, ["item", "class", "templates", "exact", "pt", "unstyled"])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.model, function (item, i) {
|
|
209
235
|
return openBlock(), createElementBlock(Fragment, {
|
|
210
236
|
key: item.label
|
|
211
237
|
}, [_ctx.home || i !== 0 ? (openBlock(), createElementBlock("li", mergeProps({
|
|
@@ -220,8 +246,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
220
246
|
index: i,
|
|
221
247
|
templates: _ctx.$slots,
|
|
222
248
|
exact: _ctx.exact,
|
|
223
|
-
pt: _ctx.pt
|
|
224
|
-
|
|
249
|
+
pt: _ctx.pt,
|
|
250
|
+
unstyled: _ctx.unstyled
|
|
251
|
+
}, null, 8, ["item", "index", "templates", "exact", "pt", "unstyled"])], 64);
|
|
225
252
|
}), 128))], 16)], 16);
|
|
226
253
|
}
|
|
227
254
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"primevue/icons/chevronright";import t from"primevue/basecomponent";import{useStyle as n}from"primevue/usestyle";import{
|
|
1
|
+
import e from"primevue/icons/chevronright";import t from"primevue/basecomponent";import{useStyle as n}from"primevue/usestyle";import{mergeProps as i,resolveComponent as a,openBlock as l,createElementBlock as r,Fragment as s,createBlock as m,withCtx as o,createElementVNode as c,resolveDynamicComponent as p,normalizeClass as u,createCommentVNode as d,toDisplayString as b,renderList as h,renderSlot as f,createVNode as x}from"vue";var y=n("\n.p-breadcrumb {\n overflow-x: auto;\n}\n\n.p-breadcrumb .p-breadcrumb-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n}\n\n.p-breadcrumb .p-menuitem-text {\n line-height: 1;\n}\n\n.p-breadcrumb .p-menuitem-link {\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb .p-menuitem-separator {\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb::-webkit-scrollbar {\n display: none;\n}\n",{name:"breadcrumb",manual:!0}),v={name:"BaseBreadcrumb",extends:t,props:{model:{type:Array,default:null},home:{type:null,default:null},exact:{type:Boolean,default:!0}},css:{classes:{root:"p-breadcrumb p-component",menu:"p-breadcrumb-list",home:"p-breadcrumb-home",separator:"p-menuitem-separator",menuitem:function(e){return["p-menuitem",{"p-disabled":e.instance.disabled()}]},action:function(e){return["p-menuitem-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-menuitem-icon",label:"p-menuitem-text"},loadStyle:y.load},provide:function(){return{$parentInstance:this}}},k={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:t,props:{item:null,templates:null,exact:null,index:null},methods:{onClick:function(e,t){this.item.command&&this.item.command({originalEvent:e,item:this.item}),this.item.to&&t&&t(e)},visible:function(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label:function(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl:function(){var e=this.item,t="undefined"!=typeof window?window.location.pathname:"";return e.to===t||e.url===t?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var e=this;return{action:i({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(t){return e.onClick(t)}},this.ptm("action",this.ptmOptions)),icon:i({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:i({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},g=["href","aria-current","onClick"],C=["href","target","aria-current"];k.render=function(e,t,n,h,f,x){var y=a("router-link");return x.visible()?(l(),r("li",i({key:0,class:[e.cx("menuitem"),n.item.class]},e.ptm("menuitem",x.ptmOptions)),[n.templates.item?(l(),m(p(n.templates.item),{key:1,item:n.item,label:x.label(),props:x.getMenuItemProps},null,8,["item","label","props"])):(l(),r(s,{key:0},[n.item.to?(l(),m(y,{key:0,to:n.item.to,custom:""},{default:o((function(t){var a=t.navigate;return[c("a",i({href:t.href,class:e.cx("action",{isActive:t.isActive,isExactActive:t.isExactActive}),"aria-current":x.isCurrentUrl(),onClick:function(e){return x.onClick(e,a)}},e.ptm("action",x.ptmOptions)),[n.templates.itemicon?(l(),m(p(n.templates.itemicon),{key:0,item:n.item,class:u(e.cx("icon"))},null,8,["item","class"])):n.item.icon?(l(),r("span",i({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",x.ptmOptions)),null,16)):d("",!0),n.item.label?(l(),r("span",i({key:2,class:e.cx("label")},e.ptm("label",x.ptmOptions)),b(x.label()),17)):d("",!0)],16,g)]})),_:1},8,["to"])):(l(),r("a",i({key:1,href:n.item.url||"#",class:e.cx("action"),target:n.item.target,"aria-current":x.isCurrentUrl(),onClick:t[0]||(t[0]=function(){return x.onClick&&x.onClick.apply(x,arguments)})},e.ptm("action",x.ptmOptions)),[n.templates&&n.templates.itemicon?(l(),m(p(n.templates.itemicon),{key:0,item:n.item,class:u(e.cx("icon",x.ptmOptions))},null,8,["item","class"])):n.item.icon?(l(),r("span",i({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",x.ptmOptions)),null,16)):d("",!0),n.item.label?(l(),r("span",i({key:2,class:e.cx("label")},e.ptm("label",x.ptmOptions)),b(x.label()),17)):d("",!0)],16,C))],64))],16)):d("",!0)};var O={name:"Breadcrumb",extends:v,beforeMount:function(){this.$slots.item||console.warn("In future versions, vue-router support will be removed. Item templating should be used.")},components:{BreadcrumbItem:k,ChevronRightIcon:e}};O.render=function(e,t,n,o,p,u){var b=a("BreadcrumbItem"),y=a("ChevronRightIcon");return l(),r("nav",i({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"breadcrumb"}),[c("ol",i({class:e.cx("menu")},e.ptm("menu")),[e.home?(l(),m(b,i({key:0,item:e.home,class:e.cx("home"),templates:e.$slots,exact:e.exact,pt:e.pt,unstyled:e.unstyled},e.ptm("home")),null,16,["item","class","templates","exact","pt","unstyled"])):d("",!0),(l(!0),r(s,null,h(e.model,(function(t,n){return l(),r(s,{key:t.label},[e.home||0!==n?(l(),r("li",i({key:0,class:e.cx("separator")},e.ptm("separator")),[f(e.$slots,"separator",{},(function(){return[x(y,i({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]}))],16)):d("",!0),x(b,{item:t,index:n,templates:e.$slots,exact:e.exact,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","exact","pt","unstyled"])],64)})),128))],16)],16)};export{O as default};
|
package/breadcrumb/breadcrumb.js
CHANGED
|
@@ -99,7 +99,7 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
99
99
|
var _this$item = this.item,
|
|
100
100
|
to = _this$item.to,
|
|
101
101
|
url = _this$item.url;
|
|
102
|
-
var lastPath =
|
|
102
|
+
var lastPath = typeof window !== 'undefined' ? window.location.pathname : '';
|
|
103
103
|
return to === lastPath || url === lastPath ? 'page' : undefined;
|
|
104
104
|
}
|
|
105
105
|
},
|
|
@@ -111,6 +111,24 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
111
111
|
index: this.index
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
+
},
|
|
115
|
+
getMenuItemProps: function getMenuItemProps() {
|
|
116
|
+
var _this = this;
|
|
117
|
+
return {
|
|
118
|
+
action: vue.mergeProps({
|
|
119
|
+
"class": this.cx('action'),
|
|
120
|
+
'aria-current': this.isCurrentUrl(),
|
|
121
|
+
onClick: function onClick($event) {
|
|
122
|
+
return _this.onClick($event);
|
|
123
|
+
}
|
|
124
|
+
}, this.ptm('action', this.ptmOptions)),
|
|
125
|
+
icon: vue.mergeProps({
|
|
126
|
+
"class": [this.cx('icon'), this.item.icon]
|
|
127
|
+
}, this.ptm('icon', this.ptmOptions)),
|
|
128
|
+
label: vue.mergeProps({
|
|
129
|
+
"class": this.cx('label')
|
|
130
|
+
}, this.ptm('label', this.ptmOptions))
|
|
131
|
+
};
|
|
114
132
|
}
|
|
115
133
|
}
|
|
116
134
|
};
|
|
@@ -122,7 +140,7 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
122
140
|
return $options.visible() ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
123
141
|
key: 0,
|
|
124
142
|
"class": [_ctx.cx('menuitem'), $props.item["class"]]
|
|
125
|
-
}, _ctx.ptm('menuitem', $options.ptmOptions)), [!$props.templates
|
|
143
|
+
}, _ctx.ptm('menuitem', $options.ptmOptions)), [!$props.templates.item ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
126
144
|
key: 0
|
|
127
145
|
}, [$props.item.to ? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
128
146
|
key: 0,
|
|
@@ -178,8 +196,10 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
178
196
|
"class": _ctx.cx('label')
|
|
179
197
|
}, _ctx.ptm('label', $options.ptmOptions)), vue.toDisplayString($options.label()), 17)) : vue.createCommentVNode("", true)], 16, _hoisted_2))], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
|
|
180
198
|
key: 1,
|
|
181
|
-
item: $props.item
|
|
182
|
-
|
|
199
|
+
item: $props.item,
|
|
200
|
+
label: $options.label(),
|
|
201
|
+
props: $options.getMenuItemProps
|
|
202
|
+
}, null, 8, ["item", "label", "props"]))], 16)) : vue.createCommentVNode("", true);
|
|
183
203
|
}
|
|
184
204
|
|
|
185
205
|
script$1.render = render$1;
|
|
@@ -187,6 +207,11 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
187
207
|
var script = {
|
|
188
208
|
name: 'Breadcrumb',
|
|
189
209
|
"extends": script$2,
|
|
210
|
+
beforeMount: function beforeMount() {
|
|
211
|
+
if (!this.$slots.item) {
|
|
212
|
+
console.warn('In future versions, vue-router support will be removed. Item templating should be used.');
|
|
213
|
+
}
|
|
214
|
+
},
|
|
190
215
|
components: {
|
|
191
216
|
BreadcrumbItem: script$1,
|
|
192
217
|
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
@@ -208,8 +233,9 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
208
233
|
"class": _ctx.cx('home'),
|
|
209
234
|
templates: _ctx.$slots,
|
|
210
235
|
exact: _ctx.exact,
|
|
211
|
-
pt: _ctx.pt
|
|
212
|
-
|
|
236
|
+
pt: _ctx.pt,
|
|
237
|
+
unstyled: _ctx.unstyled
|
|
238
|
+
}, _ctx.ptm('home')), null, 16, ["item", "class", "templates", "exact", "pt", "unstyled"])) : vue.createCommentVNode("", true), (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.model, function (item, i) {
|
|
213
239
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
214
240
|
key: item.label
|
|
215
241
|
}, [_ctx.home || i !== 0 ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
@@ -224,8 +250,9 @@ this.primevue.breadcrumb = (function (ChevronRightIcon, BaseComponent, usestyle,
|
|
|
224
250
|
index: i,
|
|
225
251
|
templates: _ctx.$slots,
|
|
226
252
|
exact: _ctx.exact,
|
|
227
|
-
pt: _ctx.pt
|
|
228
|
-
|
|
253
|
+
pt: _ctx.pt,
|
|
254
|
+
unstyled: _ctx.unstyled
|
|
255
|
+
}, null, 8, ["item", "index", "templates", "exact", "pt", "unstyled"])], 64);
|
|
229
256
|
}), 128))], 16)], 16);
|
|
230
257
|
}
|
|
231
258
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t,n,o){"use strict";function
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.breadcrumb=function(e,t,n,o){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=i(e),l=i(t),a=n.useStyle("\n.p-breadcrumb {\n overflow-x: auto;\n}\n\n.p-breadcrumb .p-breadcrumb-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n}\n\n.p-breadcrumb .p-menuitem-text {\n line-height: 1;\n}\n\n.p-breadcrumb .p-menuitem-link {\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb .p-menuitem-separator {\n display: flex;\n align-items: center;\n}\n\n.p-breadcrumb::-webkit-scrollbar {\n display: none;\n}\n",{name:"breadcrumb",manual:!0}),m={name:"BaseBreadcrumb",extends:l.default,props:{model:{type:Array,default:null},home:{type:null,default:null},exact:{type:Boolean,default:!0}},css:{classes:{root:"p-breadcrumb p-component",menu:"p-breadcrumb-list",home:"p-breadcrumb-home",separator:"p-menuitem-separator",menuitem:function(e){return["p-menuitem",{"p-disabled":e.instance.disabled()}]},action:function(e){return["p-menuitem-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-menuitem-icon",label:"p-menuitem-text"},loadStyle:a.load},provide:function(){return{$parentInstance:this}}},c={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:l.default,props:{item:null,templates:null,exact:null,index:null},methods:{onClick:function(e,t){this.item.command&&this.item.command({originalEvent:e,item:this.item}),this.item.to&&t&&t(e)},visible:function(){return"function"==typeof this.item.visible?this.item.visible():!1!==this.item.visible},disabled:function(){return"function"==typeof this.item.disabled?this.item.disabled():this.item.disabled},label:function(){return"function"==typeof this.item.label?this.item.label():this.item.label},isCurrentUrl:function(){var e=this.item,t="undefined"!=typeof window?window.location.pathname:"";return e.to===t||e.url===t?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var e=this;return{action:o.mergeProps({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(t){return e.onClick(t)}},this.ptm("action",this.ptmOptions)),icon:o.mergeProps({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:o.mergeProps({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},s=["href","aria-current","onClick"],p=["href","target","aria-current"];c.render=function(e,t,n,i,r,l){var a=o.resolveComponent("router-link");return l.visible()?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:[e.cx("menuitem"),n.item.class]},e.ptm("menuitem",l.ptmOptions)),[n.templates.item?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.item),{key:1,item:n.item,label:l.label(),props:l.getMenuItemProps},null,8,["item","label","props"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[n.item.to?(o.openBlock(),o.createBlock(a,{key:0,to:n.item.to,custom:""},{default:o.withCtx((function(t){var i=t.navigate;return[o.createElementVNode("a",o.mergeProps({href:t.href,class:e.cx("action",{isActive:t.isActive,isExactActive:t.isExactActive}),"aria-current":l.isCurrentUrl(),onClick:function(e){return l.onClick(e,i)}},e.ptm("action",l.ptmOptions)),[n.templates.itemicon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.itemicon),{key:0,item:n.item,class:o.normalizeClass(e.cx("icon"))},null,8,["item","class"])):n.item.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",l.ptmOptions)),null,16)):o.createCommentVNode("",!0),n.item.label?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:2,class:e.cx("label")},e.ptm("label",l.ptmOptions)),o.toDisplayString(l.label()),17)):o.createCommentVNode("",!0)],16,s)]})),_:1},8,["to"])):(o.openBlock(),o.createElementBlock("a",o.mergeProps({key:1,href:n.item.url||"#",class:e.cx("action"),target:n.item.target,"aria-current":l.isCurrentUrl(),onClick:t[0]||(t[0]=function(){return l.onClick&&l.onClick.apply(l,arguments)})},e.ptm("action",l.ptmOptions)),[n.templates&&n.templates.itemicon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(n.templates.itemicon),{key:0,item:n.item,class:o.normalizeClass(e.cx("icon",l.ptmOptions))},null,8,["item","class"])):n.item.icon?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:1,class:[e.cx("icon"),n.item.icon]},e.ptm("icon",l.ptmOptions)),null,16)):o.createCommentVNode("",!0),n.item.label?(o.openBlock(),o.createElementBlock("span",o.mergeProps({key:2,class:e.cx("label")},e.ptm("label",l.ptmOptions)),o.toDisplayString(l.label()),17)):o.createCommentVNode("",!0)],16,p))],64))],16)):o.createCommentVNode("",!0)};var u={name:"Breadcrumb",extends:m,beforeMount:function(){this.$slots.item||console.warn("In future versions, vue-router support will be removed. Item templating should be used.")},components:{BreadcrumbItem:c,ChevronRightIcon:r.default}};return u.render=function(e,t,n,i,r,l){var a=o.resolveComponent("BreadcrumbItem"),m=o.resolveComponent("ChevronRightIcon");return o.openBlock(),o.createElementBlock("nav",o.mergeProps({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"breadcrumb"}),[o.createElementVNode("ol",o.mergeProps({class:e.cx("menu")},e.ptm("menu")),[e.home?(o.openBlock(),o.createBlock(a,o.mergeProps({key:0,item:e.home,class:e.cx("home"),templates:e.$slots,exact:e.exact,pt:e.pt,unstyled:e.unstyled},e.ptm("home")),null,16,["item","class","templates","exact","pt","unstyled"])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.model,(function(t,n){return o.openBlock(),o.createElementBlock(o.Fragment,{key:t.label},[e.home||0!==n?(o.openBlock(),o.createElementBlock("li",o.mergeProps({key:0,class:e.cx("separator")},e.ptm("separator")),[o.renderSlot(e.$slots,"separator",{},(function(){return[o.createVNode(m,o.mergeProps({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]}))],16)):o.createCommentVNode("",!0),o.createVNode(a,{item:t,index:n,templates:e.$slots,exact:e.exact,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","exact","pt","unstyled"])],64)})),128))],16)],16)},u}(primevue.icons.chevronright,primevue.basecomponent,primevue.usestyle,Vue);
|
package/button/Button.d.ts
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import {
|
|
12
|
+
import { PassThroughOptions } from '../passthrough';
|
|
13
|
+
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
13
14
|
|
|
14
15
|
export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
|
15
16
|
|
|
@@ -17,10 +18,26 @@ export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes |
|
|
|
17
18
|
* Custom passthrough(pt) option method.
|
|
18
19
|
*/
|
|
19
20
|
export interface ButtonPassThroughMethodOptions {
|
|
21
|
+
/**
|
|
22
|
+
* Defines instance.
|
|
23
|
+
*/
|
|
20
24
|
instance: any;
|
|
25
|
+
/**
|
|
26
|
+
* Defines valid properties.
|
|
27
|
+
*/
|
|
21
28
|
props: ButtonProps;
|
|
29
|
+
/**
|
|
30
|
+
* Defines current options.
|
|
31
|
+
*/
|
|
22
32
|
context: ButtonContext;
|
|
33
|
+
/**
|
|
34
|
+
* Defines parent instance.
|
|
35
|
+
*/
|
|
23
36
|
parent: any;
|
|
37
|
+
/**
|
|
38
|
+
* Defines passthrough(pt) options in global config.
|
|
39
|
+
*/
|
|
40
|
+
global: object | undefined;
|
|
24
41
|
}
|
|
25
42
|
|
|
26
43
|
/**
|
|
@@ -150,7 +167,12 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|
|
150
167
|
* Used to pass attributes to DOM elements inside the component.
|
|
151
168
|
* @type {ButtonPassThroughOptions}
|
|
152
169
|
*/
|
|
153
|
-
pt?:
|
|
170
|
+
pt?: PassThrough<ButtonPassThroughOptions>;
|
|
171
|
+
/**
|
|
172
|
+
* Used to configure passthrough(pt) options of the component.
|
|
173
|
+
* @type {PassThroughOptions}
|
|
174
|
+
*/
|
|
175
|
+
ptOptions?: PassThroughOptions;
|
|
154
176
|
/**
|
|
155
177
|
* When enabled, it removes component related styles in the core.
|
|
156
178
|
* @defaultValue false
|
package/button/button.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
|
|
|
13
13
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
14
14
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
15
15
|
|
|
16
|
-
function _typeof(
|
|
16
|
+
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); }
|
|
17
17
|
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; }
|
|
18
18
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
19
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
package/button/button.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import Ripple from 'primevue/ripple';
|
|
|
4
4
|
import BaseComponent from 'primevue/basecomponent';
|
|
5
5
|
import { resolveComponent, resolveDirective, withDirectives, openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createBlock, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
6
6
|
|
|
7
|
-
function _typeof(
|
|
7
|
+
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); }
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
package/button/button.js
CHANGED
|
@@ -9,7 +9,7 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, vue
|
|
|
9
9
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
10
10
|
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
11
11
|
|
|
12
|
-
function _typeof(
|
|
12
|
+
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); }
|
|
13
13
|
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; }
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
12
|
import { ButtonPassThroughOptionType } from '../button';
|
|
13
|
-
import {
|
|
13
|
+
import { PassThroughOptions } from '../passthrough';
|
|
14
|
+
import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
|
14
15
|
|
|
15
16
|
export declare type CalendarPassThroughOptionType = CalendarPassThroughAttributes | ((options: CalendarPassThroughMethodOptions) => CalendarPassThroughAttributes | string) | string | null | undefined;
|
|
16
17
|
|
|
@@ -20,10 +21,26 @@ export declare type CalendarPassThroughTransitionType = TransitionProps | ((opti
|
|
|
20
21
|
* Custom passthrough(pt) option method.
|
|
21
22
|
*/
|
|
22
23
|
export interface CalendarPassThroughMethodOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Defines instance.
|
|
26
|
+
*/
|
|
23
27
|
instance: any;
|
|
28
|
+
/**
|
|
29
|
+
* Defines valid properties.
|
|
30
|
+
*/
|
|
24
31
|
props: CalendarProps;
|
|
32
|
+
/**
|
|
33
|
+
* Defines current inline state.
|
|
34
|
+
*/
|
|
25
35
|
state: CalendarState;
|
|
36
|
+
/**
|
|
37
|
+
* Defines current options.
|
|
38
|
+
*/
|
|
26
39
|
context: CalendarContext;
|
|
40
|
+
/**
|
|
41
|
+
* Defines passthrough(pt) options in global config.
|
|
42
|
+
*/
|
|
43
|
+
global: object | undefined;
|
|
27
44
|
}
|
|
28
45
|
|
|
29
46
|
/**
|
|
@@ -393,7 +410,7 @@ export interface CalendarContext {
|
|
|
393
410
|
}
|
|
394
411
|
|
|
395
412
|
/**
|
|
396
|
-
* Defines
|
|
413
|
+
* Defines current month options.
|
|
397
414
|
*/
|
|
398
415
|
export interface CalendarMonthOptions {
|
|
399
416
|
/**
|
|
@@ -624,7 +641,7 @@ export interface CalendarProps {
|
|
|
624
641
|
*/
|
|
625
642
|
showWeek?: boolean | undefined;
|
|
626
643
|
/**
|
|
627
|
-
*
|
|
644
|
+
* Whether to allow entering the date manually via typing.
|
|
628
645
|
* @defaultValue true
|
|
629
646
|
*/
|
|
630
647
|
manualInput?: boolean | undefined;
|
|
@@ -691,7 +708,12 @@ export interface CalendarProps {
|
|
|
691
708
|
* Used to pass attributes to DOM elements inside the component.
|
|
692
709
|
* @type {CalendarPassThroughOptions}
|
|
693
710
|
*/
|
|
694
|
-
pt?:
|
|
711
|
+
pt?: PassThrough<CalendarPassThroughOptions>;
|
|
712
|
+
/**
|
|
713
|
+
* Used to configure passthrough(pt) options of the component.
|
|
714
|
+
* @type {PassThroughOptions}
|
|
715
|
+
*/
|
|
716
|
+
ptOptions?: PassThroughOptions;
|
|
695
717
|
/**
|
|
696
718
|
* When enabled, it removes component related styles in the core.
|
|
697
719
|
* @defaultValue false
|