primevue 3.8.1 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/accordion/Accordion.d.ts +74 -11
- package/accordion/Accordion.vue +1 -1
- package/accordion/accordion.cjs.js +1 -1
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +37 -8
- package/api/Api.d.ts +293 -245
- package/api/api.cjs.js +66 -32
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +66 -32
- package/api/api.esm.min.js +1 -1
- package/api/api.js +66 -32
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +283 -32
- package/autocomplete/AutoComplete.vue +16 -9
- package/autocomplete/autocomplete.cjs.js +19 -11
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +19 -11
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +19 -11
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +57 -8
- package/avatargroup/AvatarGroup.d.ts +29 -3
- package/badge/Badge.d.ts +46 -5
- package/blockui/BlockUI.d.ts +52 -11
- package/blockui/BlockUI.vue +1 -1
- package/blockui/blockui.cjs.js +5 -7
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +6 -8
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +5 -7
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +52 -5
- package/breadcrumb/BreadcrumbItem.vue +5 -2
- package/breadcrumb/breadcrumb.cjs.js +5 -2
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +5 -2
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +5 -2
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +68 -11
- package/calendar/Calendar.d.ts +326 -56
- package/calendar/Calendar.vue +403 -80
- package/calendar/calendar.cjs.js +515 -197
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +517 -198
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +517 -198
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +43 -9
- package/carousel/Carousel.d.ts +123 -21
- package/carousel/Carousel.vue +2 -2
- package/carousel/carousel.cjs.js +6 -6
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +6 -6
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +6 -6
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +176 -30
- package/chart/Chart.d.ts +104 -12
- package/chart/Chart.vue +18 -4
- package/chart/chart.cjs.js +18 -4
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +18 -4
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +18 -4
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +65 -7
- package/chip/Chip.d.ts +50 -4
- package/chips/Chips.d.ts +90 -13
- package/colorpicker/ColorPicker.d.ts +105 -13
- package/colorpicker/ColorPicker.vue +6 -1
- package/colorpicker/colorpicker.cjs.js +6 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +6 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +6 -1
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +456 -55
- package/columngroup/ColumnGroup.d.ts +30 -4
- package/confirmationoptions/ConfirmationOptions.d.ts +50 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +2 -1
- package/confirmdialog/ConfirmDialog.d.ts +57 -5
- package/confirmdialog/ConfirmDialog.vue +8 -2
- package/confirmdialog/confirmdialog.cjs.js +11 -4
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +11 -4
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +11 -4
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +41 -3
- package/confirmpopup/ConfirmPopup.vue +7 -4
- package/confirmpopup/confirmpopup.cjs.js +13 -5
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +14 -6
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +13 -5
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +90 -14
- package/contextmenu/ContextMenuSub.vue +8 -5
- package/contextmenu/contextmenu.cjs.js +8 -5
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +8 -5
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +8 -5
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +501 -335
- package/core/core.min.js +14 -17
- package/datatable/BodyCell.vue +27 -1
- package/datatable/ColumnFilter.vue +17 -6
- package/datatable/DataTable.d.ts +1068 -115
- package/datatable/DataTable.vue +141 -99
- package/datatable/HeaderCheckbox.vue +4 -1
- package/datatable/TableBody.vue +57 -14
- package/datatable/TableFooter.vue +15 -1
- package/datatable/TableHeader.vue +15 -1
- package/datatable/datatable.cjs.js +527 -343
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +527 -344
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +528 -345
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +200 -29
- package/dataview/DataView.vue +8 -8
- package/dataview/dataview.cjs.js +12 -12
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +12 -12
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +12 -12
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
- package/deferredcontent/DeferredContent.d.ts +31 -6
- package/dialog/Dialog.d.ts +188 -35
- package/dialog/Dialog.vue +6 -1
- package/dialog/dialog.cjs.js +4 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +4 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +4 -2
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +53 -8
- package/dock/Dock.d.ts +96 -11
- package/dropdown/Dropdown.d.ts +351 -49
- package/dropdown/Dropdown.vue +1 -0
- package/dropdown/dropdown.cjs.js +1 -0
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1 -0
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1 -0
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +78 -11
- package/fieldset/Fieldset.d.ts +63 -11
- package/fileupload/FileUpload.d.ts +256 -33
- package/fullcalendar/FullCalendar.d.ts +29 -3
- package/galleria/Galleria.d.ts +203 -37
- package/image/Image.d.ts +51 -6
- package/inlinemessage/InlineMessage.d.ts +34 -6
- package/inplace/Inplace.d.ts +57 -12
- package/inputmask/InputMask.d.ts +75 -15
- package/inputnumber/InputNumber.d.ts +180 -30
- package/inputnumber/InputNumber.vue +19 -3
- package/inputnumber/inputnumber.cjs.js +19 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +19 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +19 -3
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +61 -9
- package/inputtext/InputText.d.ts +34 -5
- package/inputtext/InputText.vue +1 -1
- package/inputtext/inputtext.cjs.js +2 -2
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +3 -3
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +2 -2
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +92 -18
- package/listbox/Listbox.d.ts +255 -34
- package/megamenu/MegaMenu.d.ts +62 -10
- package/megamenu/MegaMenu.vue +11 -8
- package/megamenu/megamenu.cjs.js +11 -8
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +11 -8
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +11 -8
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +86 -13
- package/menu/Menu.vue +6 -3
- package/menu/Menuitem.vue +5 -2
- package/menu/menu.cjs.js +11 -5
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +11 -5
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +11 -5
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +54 -9
- package/menubar/Menubar.vue +1 -0
- package/menubar/MenubarSub.vue +8 -5
- package/menubar/menubar.cjs.js +9 -6
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +9 -6
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +9 -6
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +80 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +57 -10
- package/message/Message.vue +6 -2
- package/message/message.cjs.js +6 -2
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +6 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +6 -2
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +381 -54
- package/orderlist/OrderList.d.ts +124 -14
- package/orderlist/OrderList.vue +2 -0
- package/orderlist/orderlist.cjs.js +3 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +3 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +3 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +137 -15
- package/organizationchart/OrganizationChart.vue +1 -0
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +107 -12
- package/package.json +5 -1
- package/paginator/Paginator.d.ts +129 -21
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +4 -4
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +4 -4
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +4 -4
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +64 -8
- package/panel/Panel.vue +1 -1
- package/panelmenu/PanelMenu.d.ts +59 -9
- package/panelmenu/PanelMenu.vue +8 -5
- package/panelmenu/PanelMenuSub.vue +8 -5
- package/panelmenu/panelmenu.cjs.js +18 -12
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +18 -12
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +18 -12
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +115 -24
- package/picklist/PickList.d.ts +201 -23
- package/picklist/PickList.vue +10 -4
- package/picklist/picklist.cjs.js +13 -7
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +13 -7
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +13 -7
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +43 -8
- package/progressbar/ProgressBar.vue +13 -12
- package/progressbar/progressbar.cjs.js +13 -12
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +14 -13
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +13 -12
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +39 -6
- package/radiobutton/RadioButton.d.ts +51 -6
- package/rating/Rating.d.ts +67 -10
- package/rating/Rating.vue +1 -1
- package/rating/rating.cjs.js +1 -1
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +1 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +1 -1
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +5 -0
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +61 -16
- package/resources/themes/arya-green/theme.css +61 -16
- package/resources/themes/arya-orange/theme.css +61 -16
- package/resources/themes/arya-purple/theme.css +61 -16
- package/resources/themes/bootstrap4-dark-blue/theme.css +58 -20
- package/resources/themes/bootstrap4-dark-purple/theme.css +58 -20
- package/resources/themes/bootstrap4-light-blue/theme.css +58 -20
- package/resources/themes/bootstrap4-light-purple/theme.css +58 -20
- package/resources/themes/fluent-light/theme.css +61 -16
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-blue/theme.css +5418 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-indigo/theme.css +5418 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-purple/theme.css +5418 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-dark-teal/theme.css +5418 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-blue/theme.css +5418 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-indigo/theme.css +5418 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-purple/theme.css +5418 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/lara-light-teal/theme.css +5418 -0
- package/resources/themes/luna-amber/theme.css +58 -20
- package/resources/themes/luna-blue/theme.css +58 -20
- package/resources/themes/luna-green/theme.css +58 -20
- package/resources/themes/luna-pink/theme.css +58 -20
- package/resources/themes/md-dark-deeppurple/theme.css +249 -48
- package/resources/themes/md-dark-indigo/theme.css +249 -48
- package/resources/themes/md-light-deeppurple/theme.css +249 -48
- package/resources/themes/md-light-indigo/theme.css +249 -48
- package/resources/themes/mdc-dark-deeppurple/theme.css +249 -48
- package/resources/themes/mdc-dark-indigo/theme.css +249 -48
- package/resources/themes/mdc-light-deeppurple/theme.css +249 -48
- package/resources/themes/mdc-light-indigo/theme.css +249 -48
- package/resources/themes/nova/theme.css +58 -20
- package/resources/themes/nova-accent/theme.css +58 -20
- package/resources/themes/nova-alt/theme.css +58 -20
- package/resources/themes/nova-vue/theme.css +58 -20
- package/resources/themes/rhea/theme.css +58 -20
- package/resources/themes/saga-blue/theme.css +61 -16
- package/resources/themes/saga-green/theme.css +61 -16
- package/resources/themes/saga-orange/theme.css +61 -16
- package/resources/themes/saga-purple/theme.css +61 -16
- package/resources/themes/tailwind-light/theme.css +72 -19
- package/resources/themes/vela-blue/theme.css +61 -16
- package/resources/themes/vela-green/theme.css +61 -16
- package/resources/themes/vela-orange/theme.css +61 -16
- package/resources/themes/vela-purple/theme.css +61 -16
- package/row/Row.d.ts +25 -3
- package/scrollpanel/ScrollPanel.d.ts +27 -5
- package/scrolltop/ScrollTop.d.ts +47 -7
- package/selectbutton/SelectButton.d.ts +108 -16
- package/selectbutton/SelectButton.vue +8 -2
- package/selectbutton/selectbutton.cjs.js +14 -9
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +14 -9
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +14 -9
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +81 -16
- package/skeleton/Skeleton.d.ts +58 -9
- package/slider/Slider.d.ts +90 -14
- package/speeddial/SpeedDial.d.ts +168 -27
- package/splitbutton/SplitButton.d.ts +71 -11
- package/splitter/Splitter.d.ts +74 -7
- package/splitterpanel/SplitterPanel.d.ts +34 -7
- package/steps/Steps.d.ts +51 -9
- package/steps/Steps.vue +5 -2
- package/steps/steps.cjs.js +5 -2
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +5 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +5 -2
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +63 -8
- package/tabmenu/TabMenu.vue +6 -3
- package/tabmenu/tabmenu.cjs.js +6 -3
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +6 -3
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +6 -3
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +34 -7
- package/tabview/TabView.d.ts +73 -11
- package/tag/Tag.d.ts +44 -8
- package/terminal/Terminal.d.ts +36 -5
- package/terminalservice/TerminalService.d.ts +9 -6
- package/textarea/Textarea.d.ts +38 -6
- package/tieredmenu/TieredMenu.d.ts +89 -13
- package/tieredmenu/TieredMenuSub.vue +7 -4
- package/tieredmenu/tieredmenu.cjs.js +7 -4
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +7 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +7 -4
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +96 -12
- package/toast/Toast.d.ts +113 -8
- package/toastservice/ToastService.d.ts +17 -5
- package/togglebutton/ToggleButton.d.ts +64 -11
- package/toolbar/Toolbar.d.ts +31 -6
- package/toolbar/Toolbar.vue +2 -2
- package/toolbar/toolbar.cjs.js +2 -2
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +2 -2
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +2 -2
- package/toolbar/toolbar.min.js +1 -1
- package/tree/Tree.d.ts +191 -24
- package/tree/TreeNode.vue +4 -1
- package/tree/tree.cjs.js +4 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +4 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +4 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +207 -33
- package/treeselect/TreeSelect.vue +9 -0
- package/treeselect/treeselect.cjs.js +9 -0
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +9 -0
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +9 -0
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/TreeTable.d.ts +459 -63
- package/treetable/TreeTable.vue +8 -8
- package/treetable/treetable.cjs.js +12 -12
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +12 -12
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +12 -12
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +39 -5
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +5 -19
- package/usetoast/UseToast.d.ts +3 -5
- package/utils/Utils.d.ts +3 -0
- package/utils/utils.cjs.js +39 -2
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +39 -2
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +39 -2
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +73 -25
- package/vetur-tags.json +17 -5
- package/virtualscroller/VirtualScroller.d.ts +311 -24
- package/virtualscroller/VirtualScroller.vue +296 -255
- package/virtualscroller/virtualscroller.cjs.js +325 -266
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +325 -266
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +325 -266
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +316 -37
package/knob/Knob.d.ts
CHANGED
|
@@ -1,23 +1,97 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
|
+
|
|
3
|
+
export interface KnobProps {
|
|
4
|
+
/**
|
|
5
|
+
* Value of the component.
|
|
6
|
+
*/
|
|
7
|
+
modelValue?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Size of the component in pixels.
|
|
10
|
+
* Default value is 100.
|
|
11
|
+
*/
|
|
12
|
+
size?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* When present, it specifies that the component should be disabled.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* When present, it specifies that the component value cannot be edited.
|
|
19
|
+
*/
|
|
20
|
+
readonly?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Step factor to increment/decrement the value.
|
|
23
|
+
*/
|
|
24
|
+
step?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Mininum boundary value.
|
|
27
|
+
* Default value is 0.
|
|
28
|
+
*/
|
|
29
|
+
min?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum boundary value.
|
|
32
|
+
* Default value is 100.
|
|
33
|
+
*/
|
|
34
|
+
max?: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Background of the value.
|
|
37
|
+
*/
|
|
38
|
+
valueColor?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Background color of the range.
|
|
41
|
+
*/
|
|
42
|
+
rangeColor?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Color of the value text.
|
|
45
|
+
*/
|
|
46
|
+
textColor?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Width of the knob stroke.
|
|
49
|
+
* Default value is 14.
|
|
50
|
+
*/
|
|
51
|
+
strokeWidth?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the show the value inside the knob.
|
|
54
|
+
* Default value is true.
|
|
55
|
+
*/
|
|
56
|
+
showValue?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Template string of the value.
|
|
59
|
+
* Default value is '{value}'.
|
|
60
|
+
*/
|
|
61
|
+
valueTemplate?: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface KnobSlots {
|
|
15
65
|
}
|
|
16
66
|
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
67
|
+
export declare type KnobEmits = {
|
|
68
|
+
/**
|
|
69
|
+
* Emitted when the value changes.
|
|
70
|
+
* @param {number} value - New value.
|
|
71
|
+
*/
|
|
72
|
+
'update:modelValue': (value: number) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback to invoke when the value changes.
|
|
75
|
+
* @param {number} value - New value
|
|
76
|
+
*/
|
|
77
|
+
'change': (value: number) => void;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare class Knob extends ClassComponent<KnobProps, KnobSlots, KnobEmits> { }
|
|
81
|
+
|
|
82
|
+
declare module '@vue/runtime-core' {
|
|
83
|
+
interface GlobalComponents {
|
|
84
|
+
Knob: GlobalComponentConstructor<Knob>
|
|
85
|
+
}
|
|
21
86
|
}
|
|
22
87
|
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* Knob is a form component to define number inputs with a dial.
|
|
91
|
+
*
|
|
92
|
+
* Demos:
|
|
93
|
+
*
|
|
94
|
+
* - [Knob](https://www.primefaces.org/primevue/showcase/#/knob)
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
23
97
|
export default Knob;
|
package/listbox/Listbox.d.ts
CHANGED
|
@@ -1,44 +1,265 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
type ListboxOptionLabelType = string | ((data: any) => string) | undefined;
|
|
7
|
+
|
|
8
|
+
type ListboxOptionValueType = string | ((data: any) => any) | undefined;
|
|
9
|
+
|
|
10
|
+
type ListboxOptionDisabledType = string | ((data: any) => boolean) | undefined;
|
|
11
|
+
|
|
12
|
+
type ListboxOptionChildrenType = string | ((data: any) => any[]) | undefined;
|
|
13
|
+
|
|
14
|
+
type ListboxFilterMatchModeType = 'contains' | 'startsWith' | 'endsWith' | undefined;
|
|
15
|
+
|
|
16
|
+
export interface ListboxChangeEvent {
|
|
17
|
+
/**
|
|
18
|
+
* Original event
|
|
19
|
+
*/
|
|
20
|
+
originalEvent: Event;
|
|
21
|
+
/**
|
|
22
|
+
* Selected option value
|
|
23
|
+
*/
|
|
24
|
+
value: any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ListboxFilterEvent {
|
|
28
|
+
/**
|
|
29
|
+
* Original event
|
|
30
|
+
*/
|
|
31
|
+
originalEvent: Event;
|
|
32
|
+
/**
|
|
33
|
+
* Filter value
|
|
34
|
+
*/
|
|
35
|
+
value: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ListboxProps {
|
|
39
|
+
/**
|
|
40
|
+
* Value of the component.
|
|
41
|
+
*/
|
|
5
42
|
modelValue?: any;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
43
|
+
/**
|
|
44
|
+
* An array of selectitems to display as the available options.
|
|
45
|
+
*/
|
|
46
|
+
options?: any[] | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Property name or getter function to use as the label of an option.
|
|
49
|
+
*/
|
|
50
|
+
optionLabel?: ListboxOptionLabelType;
|
|
51
|
+
/**
|
|
52
|
+
* Property name or getter function to use as the value of an option, defaults to the option itself when not defined.
|
|
53
|
+
*/
|
|
54
|
+
optionValue?: ListboxOptionValueType;
|
|
55
|
+
/**
|
|
56
|
+
* Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.
|
|
57
|
+
*/
|
|
58
|
+
optionDisabled?: ListboxOptionDisabledType;
|
|
59
|
+
/**
|
|
60
|
+
* Property name or getter function to use as the label of an option group.
|
|
61
|
+
*/
|
|
62
|
+
optionGroupLabel?: ListboxOptionLabelType;
|
|
63
|
+
/**
|
|
64
|
+
* Property name or getter function that refers to the children options of option group.
|
|
65
|
+
*/
|
|
66
|
+
optionGroupChildren?: ListboxOptionChildrenType;
|
|
67
|
+
/**
|
|
68
|
+
* Inline style of inner list element.
|
|
69
|
+
*/
|
|
70
|
+
listStyle?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* When specified, disables the component.
|
|
73
|
+
*/
|
|
74
|
+
disabled?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* A property to uniquely identify an option.
|
|
77
|
+
*/
|
|
78
|
+
dataKey?: string | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* When specified, allows selecting multiple values.
|
|
81
|
+
*/
|
|
82
|
+
multiple?: boolean | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
|
|
85
|
+
* On touch enabled devices, metaKeySelection is turned off automatically.
|
|
86
|
+
* Default value is true.
|
|
87
|
+
*/
|
|
88
|
+
metaKeySelection?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* When specified, displays a filter input at header.
|
|
91
|
+
*/
|
|
92
|
+
filter?: boolean | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Placeholder text to show when filter input is empty.
|
|
95
|
+
*/
|
|
96
|
+
filterPlaceholder?: string | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
99
|
+
*/
|
|
100
|
+
filterLocale?: string | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Defines the filtering algorithm to use when searching the options.
|
|
103
|
+
* @see ListboxFilterMatchModeType
|
|
104
|
+
* Default value is 'contains'.
|
|
105
|
+
*/
|
|
106
|
+
filterMatchMode?: ListboxFilterMatchModeType;
|
|
107
|
+
/**
|
|
108
|
+
* Fields used when filtering the options, defaults to optionLabel.
|
|
109
|
+
*/
|
|
110
|
+
filterFields?: string[] | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.
|
|
113
|
+
* Default value is 'No results found'.
|
|
114
|
+
*/
|
|
115
|
+
emptyFilterMessage?: string | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* Text to display when there are no options available. Defaults to value from PrimeVue locale configuration.
|
|
118
|
+
* Default value is 'No results found'.
|
|
119
|
+
*/
|
|
120
|
+
emptyMessage?: string | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
|
|
123
|
+
* @see VirtualScroller.VirtualScrollerProps
|
|
124
|
+
*/
|
|
24
125
|
virtualScrollerOptions?: VirtualScrollerProps;
|
|
25
126
|
}
|
|
26
127
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
128
|
+
export interface ListboxSlots {
|
|
129
|
+
/**
|
|
130
|
+
* Custom header template.
|
|
131
|
+
* @param {Object} scope - header slot's params.
|
|
132
|
+
*/
|
|
133
|
+
header: (scope: {
|
|
134
|
+
/**
|
|
135
|
+
* Value of the component
|
|
136
|
+
*/
|
|
137
|
+
value: any;
|
|
138
|
+
/**
|
|
139
|
+
* Displayed options
|
|
140
|
+
*/
|
|
141
|
+
options: any[];
|
|
142
|
+
}) => VNode[];
|
|
143
|
+
/**
|
|
144
|
+
* Custom footer template.
|
|
145
|
+
* @param {Object} scope - footer slot's params.
|
|
146
|
+
*/
|
|
147
|
+
footer: (scope: {
|
|
148
|
+
/**
|
|
149
|
+
* Value of the component
|
|
150
|
+
*/
|
|
151
|
+
value: any;
|
|
152
|
+
/**
|
|
153
|
+
* Displayed options
|
|
154
|
+
*/
|
|
155
|
+
options: any[];
|
|
156
|
+
}) => VNode[];
|
|
157
|
+
/**
|
|
158
|
+
* Custom option template.
|
|
159
|
+
* @param {Object} scope - option slot's params.
|
|
160
|
+
*/
|
|
161
|
+
option: (scope: {
|
|
162
|
+
/**
|
|
163
|
+
* Option instance
|
|
164
|
+
*/
|
|
165
|
+
option: any;
|
|
166
|
+
/**
|
|
167
|
+
* Index of the option
|
|
168
|
+
*/
|
|
169
|
+
index: number;
|
|
170
|
+
}) => VNode[];
|
|
171
|
+
/**
|
|
172
|
+
* Custom optiongroup template.
|
|
173
|
+
* @param {Object} scope - optiongroup slot's params.
|
|
174
|
+
*/
|
|
175
|
+
optiongroup: (scope: {
|
|
176
|
+
/**
|
|
177
|
+
* Option instance
|
|
178
|
+
*/
|
|
179
|
+
option: any;
|
|
180
|
+
/**
|
|
181
|
+
* Index of the option
|
|
182
|
+
*/
|
|
183
|
+
index: number;
|
|
184
|
+
}) => VNode[];
|
|
185
|
+
/**
|
|
186
|
+
* Custom emptyfilter template.
|
|
187
|
+
*/
|
|
188
|
+
emptyfilter: () => VNode[];
|
|
189
|
+
/**
|
|
190
|
+
* Custom empty template.
|
|
191
|
+
*/
|
|
192
|
+
empty: () => VNode[];
|
|
193
|
+
/**
|
|
194
|
+
* Custom content template.
|
|
195
|
+
* @param {Object} scope - content slot's params.
|
|
196
|
+
*/
|
|
197
|
+
content: (scope: {
|
|
198
|
+
/**
|
|
199
|
+
* An array of objects to display for virtualscroller
|
|
200
|
+
*/
|
|
201
|
+
items: any;
|
|
202
|
+
/**
|
|
203
|
+
* Style class of the component
|
|
204
|
+
*/
|
|
205
|
+
styleClass: string;
|
|
206
|
+
/**
|
|
207
|
+
* Referance of the content
|
|
208
|
+
* @param {HTMLElement} el - Element of 'ref' property
|
|
209
|
+
*/
|
|
210
|
+
contentRef(el: any): void;
|
|
211
|
+
/**
|
|
212
|
+
* Options of the items
|
|
213
|
+
* @param {number} index - Rendered index
|
|
214
|
+
* @return {@link VirtualScroller.VirtualScrollerItemOptions}
|
|
215
|
+
*/
|
|
216
|
+
getItemOptions(index: number): VirtualScrollerItemOptions;
|
|
217
|
+
}) => VNode[];
|
|
218
|
+
/**
|
|
219
|
+
* Custom loader template.
|
|
220
|
+
* @param {Object} scope - loader slot's params.
|
|
221
|
+
*/
|
|
222
|
+
loader: (scope: {
|
|
223
|
+
/**
|
|
224
|
+
* Options of the loader items for virtualscroller
|
|
225
|
+
*/
|
|
226
|
+
options: any[];
|
|
227
|
+
}) => VNode[];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export declare type ListboxEmits = {
|
|
231
|
+
/**
|
|
232
|
+
* Emitted when the value changes.
|
|
233
|
+
* @param {*} value - New value.
|
|
234
|
+
*/
|
|
235
|
+
'update:modelValue': (value: any) => void;
|
|
236
|
+
/**
|
|
237
|
+
* Callback to invoke on value change.
|
|
238
|
+
* @param {ListboxChangeEvent} event - Custom change event.
|
|
239
|
+
*/
|
|
240
|
+
'change': (event: ListboxChangeEvent) => void;
|
|
241
|
+
/**
|
|
242
|
+
* Callback to invoke on filter input.
|
|
243
|
+
* @param {ListboxFilterEvent} event - Custom filter event.
|
|
244
|
+
*/
|
|
245
|
+
'filter': (event: ListboxFilterEvent) => void;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare class Listbox extends ClassComponent<ListboxProps, ListboxSlots, ListboxEmits> { }
|
|
249
|
+
|
|
250
|
+
declare module '@vue/runtime-core' {
|
|
251
|
+
interface GlobalComponents {
|
|
252
|
+
Listbox: GlobalComponentConstructor<Listbox>
|
|
41
253
|
}
|
|
42
254
|
}
|
|
43
255
|
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* Listbox is used to select one or more values from a list of items.
|
|
259
|
+
*
|
|
260
|
+
* Demos:
|
|
261
|
+
*
|
|
262
|
+
* - [Listbox](https://www.primefaces.org/primevue/showcase/#/listbox)
|
|
263
|
+
*
|
|
264
|
+
*/
|
|
44
265
|
export default Listbox;
|
package/megamenu/MegaMenu.d.ts
CHANGED
|
@@ -1,18 +1,70 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
3
|
+
import { MenuItem } from '../menuitem';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type MegaMenuOrientationType = 'horizontal' | 'vertical' | undefined;
|
|
6
|
+
|
|
7
|
+
export interface MegaMenuProps {
|
|
8
|
+
/**
|
|
9
|
+
* An array of menuitems.
|
|
10
|
+
*/
|
|
11
|
+
model?: MenuItem[] | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the orientation.
|
|
14
|
+
* @see MegaMenuOrientationType
|
|
15
|
+
* Default value is 'horizontal'.
|
|
16
|
+
*/
|
|
17
|
+
orientation?: MegaMenuOrientationType;
|
|
18
|
+
/**
|
|
19
|
+
* Whether to apply 'router-link-active-exact' class if route exactly matches the item path.
|
|
20
|
+
* Default value is true.
|
|
21
|
+
*/
|
|
22
|
+
exact?: boolean | undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface MegaMenuSlots {
|
|
26
|
+
/**
|
|
27
|
+
* Custom start template.
|
|
28
|
+
*/
|
|
29
|
+
start: () => VNode[];
|
|
30
|
+
/**
|
|
31
|
+
* Custom end template.
|
|
32
|
+
*/
|
|
33
|
+
end: () => VNode[];
|
|
34
|
+
/**
|
|
35
|
+
* Custom item template.
|
|
36
|
+
* @param {Object} scope - item slot's params.
|
|
37
|
+
*/
|
|
38
|
+
item: (scope: {
|
|
39
|
+
/**
|
|
40
|
+
* Menuitem instance
|
|
41
|
+
*/
|
|
42
|
+
item: MenuItem;
|
|
43
|
+
}) => VNode[];
|
|
7
44
|
}
|
|
8
45
|
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
46
|
+
export declare type MegaMenuEmits = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare class MegaMenu extends ClassComponent<MegaMenuProps, MegaMenuSlots, MegaMenuEmits> { }
|
|
50
|
+
|
|
51
|
+
declare module '@vue/runtime-core' {
|
|
52
|
+
interface GlobalComponents {
|
|
53
|
+
MegaMenu: GlobalComponentConstructor<MegaMenu>
|
|
15
54
|
}
|
|
16
55
|
}
|
|
17
56
|
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* MegaMenu is navigation component that displays submenus together.
|
|
60
|
+
*
|
|
61
|
+
* Helper API:
|
|
62
|
+
*
|
|
63
|
+
* - [MenuItem](https://www.primefaces.org/primevue/showcase/#/menumodel)
|
|
64
|
+
*
|
|
65
|
+
* Demos:
|
|
66
|
+
*
|
|
67
|
+
* - [MegaMenu](https://www.primefaces.org/primevue/showcase/#/megamenu)
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
18
70
|
export default MegaMenu;
|
package/megamenu/MegaMenu.vue
CHANGED
|
@@ -4,41 +4,41 @@
|
|
|
4
4
|
<slot name="start"></slot>
|
|
5
5
|
</div>
|
|
6
6
|
<ul class="p-megamenu-root-list" role="menubar">
|
|
7
|
-
<template v-for="(category,index) of model" :key="category
|
|
7
|
+
<template v-for="(category,index) of model" :key="label(category) + '_' + index">
|
|
8
8
|
<li v-if="visible(category)" :class="getCategoryClass(category)" :style="category.style"
|
|
9
9
|
@mouseenter="onCategoryMouseEnter($event, category)" role="none">
|
|
10
10
|
<template v-if="!$slots.item">
|
|
11
11
|
<router-link v-if="category.to && !disabled(category)" :to="category.to" custom v-slot="{navigate, href, isActive, isExactActive}">
|
|
12
12
|
<a :href="href" :class="linkClass(category, {isActive, isExactActive})" @click="onCategoryClick($event, category, navigate)" @keydown="onCategoryKeydown($event, category)" role="menuitem" v-ripple>
|
|
13
13
|
<span v-if="category.icon" :class="getCategoryIcon(category)"></span>
|
|
14
|
-
<span class="p-menuitem-text">{{category
|
|
14
|
+
<span class="p-menuitem-text">{{label(category)}}</span>
|
|
15
15
|
</a>
|
|
16
16
|
</router-link>
|
|
17
17
|
<a v-else :href="category.url" :class="linkClass(category)" :target="category.target" @click="onCategoryClick($event, category)" @keydown="onCategoryKeydown($event, category)"
|
|
18
18
|
role="menuitem" :aria-haspopup="category.items != null" :aria-expanded="category === activeItem" :tabindex="disabled(category) ? null : '0'" v-ripple>
|
|
19
19
|
<span v-if="category.icon" :class="getCategoryIcon(category)"></span>
|
|
20
|
-
<span class="p-menuitem-text">{{category
|
|
20
|
+
<span class="p-menuitem-text">{{label(category)}}</span>
|
|
21
21
|
<span v-if="category.items" :class="getCategorySubMenuIcon()"></span>
|
|
22
22
|
</a>
|
|
23
23
|
</template>
|
|
24
|
-
<component v-else :is="$slots.item" :item="
|
|
24
|
+
<component v-else :is="$slots.item" :item="category"></component>
|
|
25
25
|
<div class="p-megamenu-panel" v-if="category.items">
|
|
26
26
|
<div class="p-megamenu-grid">
|
|
27
|
-
<div v-for="(column,columnIndex) of category.items" :key="category
|
|
27
|
+
<div v-for="(column,columnIndex) of category.items" :key="label(category) + '_column_' + columnIndex" :class="getColumnClassName(category)">
|
|
28
28
|
<ul v-for="(submenu,submenuIndex) of column" class="p-megamenu-submenu" :key="submenu.label + '_submenu_' + submenuIndex" role="menu">
|
|
29
29
|
<li :class="getSubmenuHeaderClass(submenu)" :style="submenu.style" role="presentation">{{submenu.label}}</li>
|
|
30
|
-
<template v-for="(item, i) of submenu.items" :key="item
|
|
30
|
+
<template v-for="(item, i) of submenu.items" :key="label(item) + i.toString()">
|
|
31
31
|
<li role="none" :class="getSubmenuItemClass(item)" :style="item.style" v-if="visible(item) && !item.separator">
|
|
32
32
|
<template v-if="!$slots.item">
|
|
33
33
|
<router-link v-if="item.to && !disabled(item)" :to="item.to" custom v-slot="{navigate, href, isActive, isExactActive}">
|
|
34
34
|
<a :href="href" :class="linkClass(item, {isActive, isExactActive})" @click="onLeafClick($event, item, navigate)" role="menuitem" v-ripple>
|
|
35
35
|
<span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
|
|
36
|
-
<span class="p-menuitem-text">{{item
|
|
36
|
+
<span class="p-menuitem-text">{{label(item)}}</span>
|
|
37
37
|
</a>
|
|
38
38
|
</router-link>
|
|
39
39
|
<a v-else :href="item.url" :class="linkClass(item)" :target="item.target" @click="onLeafClick($event, item)" role="menuitem" :tabindex="disabled(item) ? null : '0'" v-ripple>
|
|
40
40
|
<span v-if="item.icon" :class="['p-menuitem-icon', item.icon]"></span>
|
|
41
|
-
<span class="p-menuitem-text">{{item
|
|
41
|
+
<span class="p-menuitem-text">{{label(item)}}</span>
|
|
42
42
|
<span :class="getSubmenuIcon()" v-if="item.items"></span>
|
|
43
43
|
</a>
|
|
44
44
|
</template>
|
|
@@ -308,6 +308,9 @@ export default {
|
|
|
308
308
|
},
|
|
309
309
|
disabled(item) {
|
|
310
310
|
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
|
311
|
+
},
|
|
312
|
+
label(item) {
|
|
313
|
+
return (typeof item.disabled === 'function' ? item.label() : item.label);
|
|
311
314
|
}
|
|
312
315
|
},
|
|
313
316
|
computed: {
|
package/megamenu/megamenu.cjs.js
CHANGED
|
@@ -250,6 +250,9 @@ var script = {
|
|
|
250
250
|
},
|
|
251
251
|
disabled(item) {
|
|
252
252
|
return (typeof item.disabled === 'function' ? item.disabled() : item.disabled);
|
|
253
|
+
},
|
|
254
|
+
label(item) {
|
|
255
|
+
return (typeof item.disabled === 'function' ? item.label() : item.label);
|
|
253
256
|
}
|
|
254
257
|
},
|
|
255
258
|
computed: {
|
|
@@ -306,7 +309,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
306
309
|
vue.createVNode("ul", _hoisted_2, [
|
|
307
310
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.model, (category, index) => {
|
|
308
311
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
309
|
-
key:
|
|
312
|
+
key: $options.label(category) + '_' + index
|
|
310
313
|
}, [
|
|
311
314
|
($options.visible(category))
|
|
312
315
|
? (vue.openBlock(), vue.createBlock("li", {
|
|
@@ -338,7 +341,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
338
341
|
class: $options.getCategoryIcon(category)
|
|
339
342
|
}, null, 2))
|
|
340
343
|
: vue.createCommentVNode("", true),
|
|
341
|
-
vue.createVNode("span", _hoisted_3, vue.toDisplayString(
|
|
344
|
+
vue.createVNode("span", _hoisted_3, vue.toDisplayString($options.label(category)), 1)
|
|
342
345
|
], 42, ["href", "onClick", "onKeydown"]), [
|
|
343
346
|
[_directive_ripple]
|
|
344
347
|
])
|
|
@@ -363,7 +366,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
366
|
class: $options.getCategoryIcon(category)
|
|
364
367
|
}, null, 2))
|
|
365
368
|
: vue.createCommentVNode("", true),
|
|
366
|
-
vue.createVNode("span", _hoisted_4, vue.toDisplayString(
|
|
369
|
+
vue.createVNode("span", _hoisted_4, vue.toDisplayString($options.label(category)), 1),
|
|
367
370
|
(category.items)
|
|
368
371
|
? (vue.openBlock(), vue.createBlock("span", {
|
|
369
372
|
key: 1,
|
|
@@ -376,14 +379,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
376
379
|
], 64))
|
|
377
380
|
: (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
|
|
378
381
|
key: 1,
|
|
379
|
-
item:
|
|
382
|
+
item: category
|
|
380
383
|
}, null, 8, ["item"])),
|
|
381
384
|
(category.items)
|
|
382
385
|
? (vue.openBlock(), vue.createBlock("div", _hoisted_5, [
|
|
383
386
|
vue.createVNode("div", _hoisted_6, [
|
|
384
387
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(category.items, (column, columnIndex) => {
|
|
385
388
|
return (vue.openBlock(), vue.createBlock("div", {
|
|
386
|
-
key:
|
|
389
|
+
key: $options.label(category) + '_column_' + columnIndex,
|
|
387
390
|
class: $options.getColumnClassName(category)
|
|
388
391
|
}, [
|
|
389
392
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(column, (submenu, submenuIndex) => {
|
|
@@ -399,7 +402,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
399
402
|
}, vue.toDisplayString(submenu.label), 7),
|
|
400
403
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(submenu.items, (item, i) => {
|
|
401
404
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
402
|
-
key:
|
|
405
|
+
key: $options.label(item) + i.toString()
|
|
403
406
|
}, [
|
|
404
407
|
($options.visible(item) && !item.separator)
|
|
405
408
|
? (vue.openBlock(), vue.createBlock("li", {
|
|
@@ -429,7 +432,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
429
432
|
class: ['p-menuitem-icon', item.icon]
|
|
430
433
|
}, null, 2))
|
|
431
434
|
: vue.createCommentVNode("", true),
|
|
432
|
-
vue.createVNode("span", _hoisted_7, vue.toDisplayString(
|
|
435
|
+
vue.createVNode("span", _hoisted_7, vue.toDisplayString($options.label(item)), 1)
|
|
433
436
|
], 10, ["href", "onClick"]), [
|
|
434
437
|
[_directive_ripple]
|
|
435
438
|
])
|
|
@@ -451,7 +454,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
451
454
|
class: ['p-menuitem-icon', item.icon]
|
|
452
455
|
}, null, 2))
|
|
453
456
|
: vue.createCommentVNode("", true),
|
|
454
|
-
vue.createVNode("span", _hoisted_8, vue.toDisplayString(
|
|
457
|
+
vue.createVNode("span", _hoisted_8, vue.toDisplayString($options.label(item)), 1),
|
|
455
458
|
(item.items)
|
|
456
459
|
? (vue.openBlock(), vue.createBlock("span", {
|
|
457
460
|
key: 1,
|