primevue 3.9.1 → 3.12.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 +256 -2
- package/accordion/Accordion.d.ts +74 -11
- package/accordion/accordion.esm.js +1 -1
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -1
- package/accordiontab/AccordionTab.d.ts +37 -8
- package/accordiontab/accordiontab.esm.js +1 -1
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +1 -1
- package/api/Api.d.ts +292 -285
- package/api/api.js +1 -1
- package/autocomplete/AutoComplete.d.ts +280 -63
- package/autocomplete/AutoComplete.vue +2 -2
- package/autocomplete/autocomplete.cjs.js +7 -6
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +4 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +8 -7
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +57 -8
- package/avatar/avatar.esm.js +1 -1
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +29 -3
- package/avatargroup/avatargroup.esm.js +1 -1
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +1 -1
- package/badge/Badge.d.ts +46 -5
- package/badge/badge.esm.js +1 -1
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +1 -1
- package/badgedirective/badgedirective.esm.js +1 -1
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +1 -1
- package/blockui/BlockUI.d.ts +52 -11
- package/blockui/blockui.esm.js +1 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +49 -9
- package/breadcrumb/breadcrumb.esm.js +1 -1
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/button/Button.d.ts +68 -11
- package/button/button.cjs.js +1 -1
- package/button/button.esm.js +1 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/calendar/Calendar.d.ts +333 -62
- package/calendar/Calendar.vue +67 -35
- package/calendar/calendar.cjs.js +141 -110
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +139 -107
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +143 -111
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +43 -9
- package/card/card.esm.js +1 -1
- package/card/card.esm.min.js +1 -1
- package/card/card.js +1 -1
- package/carousel/Carousel.d.ts +121 -24
- package/carousel/carousel.cjs.js +1 -1
- package/carousel/carousel.esm.js +1 -1
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +2 -2
- package/cascadeselect/CascadeSelect.d.ts +164 -31
- package/cascadeselect/cascadeselect.cjs.js +2 -2
- package/cascadeselect/cascadeselect.esm.js +1 -1
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +3 -3
- package/chart/Chart.d.ts +104 -12
- package/chart/Chart.vue +9 -2
- package/chart/chart.cjs.js +11 -6
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +10 -3
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +10 -3
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +66 -8
- package/checkbox/checkbox.esm.js +1 -1
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/chip/Chip.d.ts +50 -4
- package/chip/chip.esm.js +1 -1
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chips/Chips.d.ts +88 -15
- package/chips/chips.esm.js +1 -1
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -1
- package/colorpicker/ColorPicker.d.ts +105 -16
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +2 -2
- package/column/Column.d.ts +452 -78
- package/column/Column.vue +6 -2
- package/column/column.cjs.js +6 -2
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +7 -3
- package/column/column.esm.min.js +1 -1
- package/column/column.js +7 -3
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.d.ts +30 -4
- package/columngroup/columngroup.esm.js +1 -1
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +1 -1
- package/config/config.cjs.js +1 -1
- package/config/config.esm.js +1 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +2 -2
- package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
- package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
- package/confirmationeventbus/confirmationeventbus.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +62 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +2 -1
- package/confirmationservice/confirmationservice.cjs.js +2 -2
- package/confirmationservice/confirmationservice.esm.js +1 -1
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +3 -3
- package/confirmdialog/ConfirmDialog.d.ts +57 -5
- package/confirmdialog/confirmdialog.cjs.js +6 -6
- package/confirmdialog/confirmdialog.esm.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +7 -7
- package/confirmpopup/ConfirmPopup.d.ts +38 -7
- package/confirmpopup/confirmpopup.cjs.js +6 -6
- package/confirmpopup/confirmpopup.esm.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +7 -7
- package/contextmenu/ContextMenu.d.ts +88 -16
- package/contextmenu/contextmenu.cjs.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -1
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +2 -2
- package/core/core.js +754 -327
- package/core/core.min.js +7 -5
- package/datatable/BodyCell.vue +26 -1
- package/datatable/DataTable.d.ts +1056 -131
- package/datatable/DataTable.vue +124 -118
- package/datatable/HeaderCheckbox.vue +5 -2
- package/datatable/RowCheckbox.vue +1 -1
- package/datatable/RowRadioButton.vue +1 -1
- package/datatable/TableBody.vue +53 -14
- package/datatable/TableFooter.vue +18 -1
- package/datatable/TableHeader.vue +18 -1
- package/datatable/datatable.cjs.js +488 -362
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +478 -353
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +489 -364
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +198 -32
- package/dataview/dataview.cjs.js +1 -1
- package/dataview/dataview.esm.js +1 -1
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +2 -2
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +34 -5
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +31 -6
- package/deferredcontent/deferredcontent.esm.js +1 -1
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +1 -1
- package/dialog/Dialog.d.ts +187 -34
- package/dialog/Dialog.vue +1 -1
- package/dialog/dialog.cjs.js +2 -3
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -3
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +3 -4
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +53 -8
- package/divider/divider.esm.js +1 -1
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +1 -1
- package/dock/Dock.d.ts +92 -15
- package/dock/DockSub.vue +3 -1
- package/dock/dock.cjs.js +4 -1
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +4 -2
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +5 -3
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +335 -76
- package/dropdown/Dropdown.vue +16 -12
- package/dropdown/dropdown.cjs.js +21 -15
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +19 -13
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +22 -16
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +78 -11
- package/editor/editor.cjs.js +1 -1
- package/editor/editor.esm.js +1 -1
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/fieldset/Fieldset.d.ts +63 -11
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +2 -2
- package/fileupload/FileUpload.d.ts +255 -37
- package/fileupload/fileupload.cjs.js +4 -4
- package/fileupload/fileupload.esm.js +1 -1
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +5 -5
- package/fullcalendar/FullCalendar.d.ts +29 -3
- package/fullcalendar/fullcalendar.esm.js +1 -1
- package/fullcalendar/fullcalendar.esm.min.js +1 -1
- package/fullcalendar/fullcalendar.js +1 -1
- package/galleria/Galleria.d.ts +196 -46
- package/galleria/galleria.cjs.js +3 -3
- package/galleria/galleria.esm.js +1 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +4 -4
- package/image/Image.d.ts +51 -6
- package/image/image.esm.js +1 -1
- package/image/image.esm.min.js +1 -1
- package/image/image.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +34 -6
- package/inlinemessage/inlinemessage.esm.js +1 -1
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +1 -1
- package/inplace/Inplace.d.ts +57 -12
- package/inplace/inplace.cjs.js +1 -1
- package/inplace/inplace.esm.js +1 -1
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inputmask/InputMask.d.ts +75 -15
- package/inputmask/inputmask.esm.js +1 -1
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +1 -1
- package/inputnumber/InputNumber.d.ts +180 -30
- package/inputnumber/inputnumber.cjs.js +2 -2
- package/inputnumber/inputnumber.esm.js +1 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +3 -3
- package/inputswitch/InputSwitch.d.ts +61 -9
- package/inputswitch/inputswitch.esm.js +1 -1
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +1 -1
- package/inputtext/InputText.d.ts +34 -5
- package/inputtext/inputtext.esm.js +1 -1
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +1 -1
- package/knob/Knob.d.ts +92 -18
- package/knob/Knob.vue +1 -1
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +2 -2
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +2 -2
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +240 -55
- package/listbox/Listbox.vue +2 -2
- package/listbox/listbox.cjs.js +5 -4
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +4 -3
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +6 -5
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +60 -12
- package/megamenu/megamenu.cjs.js +1 -1
- package/megamenu/megamenu.esm.js +1 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -2
- package/menu/Menu.d.ts +84 -15
- package/menu/menu.cjs.js +2 -2
- package/menu/menu.esm.js +1 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -3
- package/menubar/Menubar.d.ts +52 -11
- package/menubar/menubar.cjs.js +1 -1
- package/menubar/menubar.esm.js +1 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -2
- package/menuitem/MenuItem.d.ts +82 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +57 -11
- package/message/message.cjs.js +1 -1
- package/message/message.esm.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -2
- package/multiselect/MultiSelect.d.ts +363 -83
- package/multiselect/MultiSelect.vue +17 -13
- package/multiselect/multiselect.cjs.js +20 -13
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +18 -11
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +21 -14
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +126 -19
- package/orderlist/OrderList.vue +10 -1
- package/orderlist/orderlist.cjs.js +19 -11
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +18 -10
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +20 -12
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +137 -15
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.js +1 -1
- package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
- package/overlayeventbus/overlayeventbus.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +107 -12
- package/overlaypanel/overlaypanel.cjs.js +5 -5
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +6 -6
- package/package.json +1 -1
- package/paginator/Paginator.d.ts +129 -27
- package/paginator/paginator.cjs.js +8 -8
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +9 -9
- package/panel/Panel.d.ts +64 -9
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +2 -2
- package/panelmenu/PanelMenu.d.ts +59 -11
- package/panelmenu/PanelMenu.vue +2 -2
- package/panelmenu/panelmenu.cjs.js +4 -4
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +5 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +5 -5
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +115 -24
- package/password/password.cjs.js +2 -2
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +3 -3
- package/picklist/PickList.d.ts +203 -32
- package/picklist/PickList.vue +10 -1
- package/picklist/picklist.cjs.js +27 -19
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +26 -18
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +28 -20
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +43 -8
- package/progressbar/progressbar.esm.js +1 -1
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +39 -6
- package/progressspinner/progressspinner.esm.js +1 -1
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +1 -1
- package/radiobutton/RadioButton.d.ts +52 -7
- package/radiobutton/radiobutton.esm.js +1 -1
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +1 -1
- package/rating/Rating.d.ts +67 -10
- package/rating/rating.esm.js +1 -1
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +1 -1
- package/resources/themes/arya-blue/theme.css +41 -22
- package/resources/themes/arya-green/theme.css +41 -22
- package/resources/themes/arya-orange/theme.css +41 -22
- package/resources/themes/arya-purple/theme.css +41 -22
- package/resources/themes/bootstrap4-dark-blue/theme.css +29 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +29 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +29 -6
- package/resources/themes/bootstrap4-light-purple/theme.css +29 -6
- package/resources/themes/fluent-light/theme.css +41 -22
- package/resources/themes/lara-dark-blue/theme.css +371 -361
- package/resources/themes/lara-dark-indigo/theme.css +371 -361
- package/resources/themes/lara-dark-purple/theme.css +371 -361
- package/resources/themes/lara-dark-teal/theme.css +371 -361
- package/resources/themes/lara-light-blue/theme.css +41 -31
- package/resources/themes/lara-light-indigo/theme.css +41 -31
- package/resources/themes/lara-light-purple/theme.css +41 -31
- package/resources/themes/lara-light-teal/theme.css +41 -31
- package/resources/themes/luna-amber/theme.css +41 -22
- package/resources/themes/luna-blue/theme.css +41 -22
- package/resources/themes/luna-green/theme.css +41 -22
- package/resources/themes/luna-pink/theme.css +41 -22
- package/resources/themes/md-dark-deeppurple/theme.css +24 -5
- package/resources/themes/md-dark-indigo/theme.css +24 -5
- package/resources/themes/md-light-deeppurple/theme.css +24 -5
- package/resources/themes/md-light-indigo/theme.css +24 -5
- package/resources/themes/mdc-dark-deeppurple/theme.css +24 -5
- package/resources/themes/mdc-dark-indigo/theme.css +24 -5
- package/resources/themes/mdc-light-deeppurple/theme.css +24 -5
- package/resources/themes/mdc-light-indigo/theme.css +24 -5
- package/resources/themes/nova/theme.css +41 -22
- package/resources/themes/nova-accent/theme.css +41 -22
- package/resources/themes/nova-alt/theme.css +41 -22
- package/resources/themes/nova-vue/theme.css +41 -22
- package/resources/themes/rhea/theme.css +41 -22
- package/resources/themes/saga-blue/theme.css +25 -6
- package/resources/themes/saga-green/theme.css +25 -6
- package/resources/themes/saga-orange/theme.css +25 -6
- package/resources/themes/saga-purple/theme.css +25 -6
- package/resources/themes/tailwind-light/theme.css +44 -25
- package/resources/themes/vela-blue/theme.css +41 -22
- package/resources/themes/vela-green/theme.css +41 -22
- package/resources/themes/vela-orange/theme.css +41 -22
- package/resources/themes/vela-purple/theme.css +41 -22
- package/ripple/ripple.esm.js +1 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +1 -1
- package/row/Row.d.ts +25 -3
- package/row/row.esm.js +1 -1
- package/row/row.esm.min.js +1 -1
- package/row/row.js +1 -1
- package/scrollpanel/ScrollPanel.d.ts +27 -5
- package/scrollpanel/scrollpanel.esm.js +1 -1
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +1 -1
- package/scrolltop/ScrollTop.d.ts +47 -7
- package/scrolltop/scrolltop.esm.js +1 -1
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/selectbutton/SelectButton.d.ts +101 -17
- package/selectbutton/selectbutton.cjs.js +1 -1
- package/selectbutton/selectbutton.esm.js +1 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -2
- package/sidebar/Sidebar.d.ts +81 -16
- package/sidebar/Sidebar.vue +2 -0
- package/sidebar/sidebar.cjs.js +2 -2
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +2 -2
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +3 -3
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +58 -9
- package/skeleton/skeleton.esm.js +1 -1
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +1 -1
- package/slider/Slider.d.ts +90 -14
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/speeddial/SpeedDial.d.ts +166 -29
- package/speeddial/SpeedDial.vue +3 -1
- package/speeddial/speeddial.cjs.js +5 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +4 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +6 -4
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +76 -11
- package/splitbutton/SplitButton.vue +3 -1
- package/splitbutton/splitbutton.cjs.js +15 -13
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +15 -13
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +16 -14
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +74 -7
- package/splitter/Splitter.vue +5 -5
- package/splitter/splitter.cjs.js +1 -1
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +2 -2
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +2 -2
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +34 -7
- package/splitterpanel/splitterpanel.esm.js +1 -1
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +1 -1
- package/steps/Steps.d.ts +51 -11
- package/steps/steps.esm.js +1 -1
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -1
- package/styleclass/styleclass.esm.js +1 -1
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +1 -1
- package/tabmenu/TabMenu.d.ts +63 -10
- package/tabmenu/tabmenu.cjs.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -1
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +2 -2
- package/tabpanel/TabPanel.d.ts +38 -7
- package/tabpanel/tabpanel.esm.js +1 -1
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +1 -1
- package/tabview/TabView.d.ts +73 -11
- package/tabview/TabView.vue +1 -1
- package/tabview/tabview.cjs.js +2 -2
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +2 -2
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +3 -3
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +44 -8
- package/tag/Tag.vue +1 -1
- package/tag/tag.cjs.js +6 -6
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +8 -8
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +7 -7
- package/tag/tag.min.js +1 -1
- package/terminal/Terminal.d.ts +36 -5
- package/terminal/terminal.cjs.js +3 -3
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +4 -4
- package/terminalservice/TerminalService.d.ts +1 -1
- package/terminalservice/terminalservice.esm.js +1 -1
- package/terminalservice/terminalservice.esm.min.js +1 -1
- package/terminalservice/terminalservice.js +1 -1
- package/textarea/Textarea.d.ts +38 -6
- package/textarea/textarea.esm.js +1 -1
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +1 -1
- package/tieredmenu/TieredMenu.d.ts +89 -15
- package/tieredmenu/tieredmenu.cjs.js +2 -2
- package/tieredmenu/tieredmenu.esm.js +1 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +3 -3
- package/timeline/Timeline.d.ts +94 -15
- package/timeline/timeline.esm.js +1 -1
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +1 -1
- package/toast/Toast.d.ts +118 -12
- package/toast/toast.cjs.js +7 -7
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +8 -8
- package/toasteventbus/toasteventbus.esm.js +1 -1
- package/toasteventbus/toasteventbus.esm.min.js +1 -1
- package/toasteventbus/toasteventbus.js +1 -1
- package/toastservice/ToastService.d.ts +17 -5
- package/toastservice/toastservice.cjs.js +3 -3
- package/toastservice/toastservice.esm.js +1 -1
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +4 -4
- package/togglebutton/ToggleButton.d.ts +64 -11
- package/togglebutton/togglebutton.cjs.js +1 -1
- package/togglebutton/togglebutton.esm.js +1 -1
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/toolbar/Toolbar.d.ts +31 -6
- package/toolbar/toolbar.esm.js +1 -1
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +1 -1
- package/tooltip/tooltip.esm.js +1 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +1 -1
- package/tree/Tree.d.ts +189 -26
- package/tree/Tree.vue +1 -0
- package/tree/tree.cjs.js +2 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +2 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -3
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +201 -44
- package/treeselect/treeselect.cjs.js +3 -3
- package/treeselect/treeselect.esm.js +1 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +4 -4
- package/treetable/BodyCell.vue +5 -5
- package/treetable/FooterCell.vue +3 -3
- package/treetable/HeaderCell.vue +2 -2
- package/treetable/TreeTable.d.ts +459 -63
- package/treetable/TreeTable.vue +6 -2
- package/treetable/treetable.cjs.js +13 -13
- 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 +14 -14
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +40 -6
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +5 -19
- package/useconfirm/useconfirm.js +1 -1
- package/usetoast/UseToast.d.ts +3 -5
- package/usetoast/usetoast.js +1 -1
- package/utils/Utils.d.ts +3 -0
- package/utils/utils.cjs.js +41 -4
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +41 -4
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +42 -5
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +70 -30
- package/vetur-tags.json +18 -8
- package/virtualscroller/VirtualScroller.d.ts +294 -53
- package/virtualscroller/VirtualScroller.vue +304 -253
- package/virtualscroller/virtualscroller.cjs.js +333 -264
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +334 -265
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +334 -265
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +229 -45
package/README.md
CHANGED
|
@@ -5,6 +5,260 @@
|
|
|
5
5
|
|
|
6
6
|
[](https://www.primefaces.org/primevue)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# PrimeVue
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
PrimeVue is a rich set of open source UI Components for Vue. See [PrimeVue homepage](https://www.primefaces.org/primevue/) for live showcase and documentation.
|
|
11
|
+
|
|
12
|
+
## Download
|
|
13
|
+
|
|
14
|
+
PrimeVue is available at npm, if you have an existing application run the following command to download it to your project.
|
|
15
|
+
|
|
16
|
+
````
|
|
17
|
+
npm install primevue@^3 --save
|
|
18
|
+
npm install primeicons --save
|
|
19
|
+
````
|
|
20
|
+
|
|
21
|
+
or
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
yarn add primevue
|
|
25
|
+
yarn add primeicons
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Next step is setting up PrimeVue configuration.
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
import {createApp} from 'vue';
|
|
32
|
+
import App from './App.vue';
|
|
33
|
+
import PrimeVue from 'primevue/config';
|
|
34
|
+
const app = createApp(App);
|
|
35
|
+
|
|
36
|
+
app.use(PrimeVue);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Import
|
|
40
|
+
|
|
41
|
+
### Module
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
import {createApp} from 'vue';
|
|
45
|
+
import App from './App.vue';
|
|
46
|
+
import PrimeVue from 'primevue/config';
|
|
47
|
+
import Dialog from 'primevue/dialog';
|
|
48
|
+
const app = createApp(App);
|
|
49
|
+
|
|
50
|
+
app.use(PrimeVue);
|
|
51
|
+
|
|
52
|
+
app.component('Dialog', Dialog);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Finally you'll be able to utilize the component in your application. See the Styles section to apply styling.
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
<Dialog></Dialog>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### CDN
|
|
62
|
+
|
|
63
|
+
```javascript
|
|
64
|
+
<script src="https://unpkg.com/primevue@^3/core/core.min.js"></script>/script>
|
|
65
|
+
<script src="https://unpkg.com/primevue@^3/multiselect/multiselect.min.js"></script>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Single File Components
|
|
69
|
+
|
|
70
|
+
SFC files are available in the npm distribution and if you'd like to use SFCs directly, add ***/sfc*** as a suffix when referencing an import path. This will instruct your bundler to process the *.vue files in your local build instead of using the compiled output. One use case for this approach is optimizing for SSR by removing whitespaces.
|
|
71
|
+
|
|
72
|
+
```javascript
|
|
73
|
+
import Dialog from 'primevue/dialog/sfc';
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Script Tag
|
|
77
|
+
|
|
78
|
+
Other alternative is utilizing the components directly within the browser with the ***iife*** build. Note that PrimeVue does not provide a ***umd*** build.
|
|
79
|
+
|
|
80
|
+
```javascript
|
|
81
|
+
<html>
|
|
82
|
+
<head>
|
|
83
|
+
<meta charset="utf-8">
|
|
84
|
+
<title>PrimeVue Demo</title>
|
|
85
|
+
<link href="https://unpkg.com/primevue/resources/themes/lara-light-indigo/theme.css" rel="stylesheet">
|
|
86
|
+
<link href="https://unpkg.com/primevue/resources/primevue.min.css" rel="stylesheet">
|
|
87
|
+
<link href="https://unpkg.com/primeicons/primeicons.css" rel="stylesheet">
|
|
88
|
+
|
|
89
|
+
<script src="https://unpkg.com/vue@next"></script>
|
|
90
|
+
<script src="https://unpkg.com/primevue^3/core/core.min.js"></script>
|
|
91
|
+
<script src="https://unpkg.com/primevue^3/slider/slider.min.js"></script>
|
|
92
|
+
</head>
|
|
93
|
+
|
|
94
|
+
<body>
|
|
95
|
+
<div id="app">
|
|
96
|
+
<p-slider v-model="val"></p-slider>
|
|
97
|
+
<h6>{{val}}</h6>
|
|
98
|
+
</div>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
const {createApp, ref} = Vue;
|
|
102
|
+
|
|
103
|
+
const App = {
|
|
104
|
+
setup() {
|
|
105
|
+
const val = ref(null);
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
val
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
components: {
|
|
112
|
+
'p-slider': primevue.slider
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
createApp(App).use(primevue.config.default).mount("#app");
|
|
117
|
+
</script>
|
|
118
|
+
</body>
|
|
119
|
+
</html>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Styles
|
|
123
|
+
|
|
124
|
+
The css dependencies are as follows, note that you may change the theme with another one of your choice.
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
primevue/resources/themes/saga-blue/theme.css //theme
|
|
128
|
+
primevue/resources/primevue.min.css //core css
|
|
129
|
+
primeicons/primeicons.css //icons
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
If you are using a bundler such as webpack with a css loader you may also import them to your main application component.
|
|
133
|
+
|
|
134
|
+
```javascript
|
|
135
|
+
import 'primevue/resources/themes/lara-light-indigo/theme.css';
|
|
136
|
+
import 'primevue/resources/primevue.min.css';
|
|
137
|
+
import 'primeicons/primeicons.css';
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Nuxt Integration
|
|
141
|
+
|
|
142
|
+
Nuxt 3 is currently in beta and an official module is planned after the final release. At the moment, PrimeVue can easily be used with Nuxt 3 using a custom plugin.
|
|
143
|
+
|
|
144
|
+
**nuxt.config.js**
|
|
145
|
+
|
|
146
|
+
Open the nuxt configuration file and add the css dependencies.
|
|
147
|
+
|
|
148
|
+
```javascript
|
|
149
|
+
import { defineNuxtConfig } from 'nuxt3';
|
|
150
|
+
|
|
151
|
+
export default defineNuxtConfig({
|
|
152
|
+
css: [
|
|
153
|
+
'primevue/resources/themes/saga-blue/theme.css',
|
|
154
|
+
'primevue/resources/primevue.css',
|
|
155
|
+
'primeicons/primeicons.css'
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**primevue.js**
|
|
161
|
+
|
|
162
|
+
Create a file like **primevue.js** under the plugins directory for the configuration.
|
|
163
|
+
|
|
164
|
+
```javascript
|
|
165
|
+
import { defineNuxtPlugin } from "#app";
|
|
166
|
+
import PrimeVue from "primevue/config";
|
|
167
|
+
import Button from "primevue/button";
|
|
168
|
+
|
|
169
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
170
|
+
nuxtApp.vueApp.use(PrimeVue, {ripple: true});
|
|
171
|
+
nuxtApp.vueApp.component('Button', Button);
|
|
172
|
+
//other components that you need
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Configuration
|
|
177
|
+
|
|
178
|
+
### Dependencies
|
|
179
|
+
|
|
180
|
+
PrimeVue components are not wrappers and implemented natively with the Vue APIs. There are some exceptions having 3rd party dependencies such as Quill for Editor.
|
|
181
|
+
|
|
182
|
+
In addition, components require PrimeIcons library for icons.
|
|
183
|
+
|
|
184
|
+
```javascript
|
|
185
|
+
dependencies: {
|
|
186
|
+
"vue": "^3.0.0",
|
|
187
|
+
"primeicons": "^5.0.0"
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Prop Cases
|
|
192
|
+
|
|
193
|
+
Component prop names are described as camel case throughout the documentation however camel-case is also fully supported. Events on the other hand should always be camel-case.
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
<Dialog :showHeader="false"></Dialog>
|
|
197
|
+
|
|
198
|
+
<!-- can be written as -->
|
|
199
|
+
|
|
200
|
+
<Dialog :show-header="false"></Dialog>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Ripple
|
|
204
|
+
|
|
205
|
+
Ripple is an optional animation for the supported components such as buttons. It is disabled by default and needs to be enabled at your app's entry file (e.g. main.js) during the PrimeVue setup.
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
import {createApp} from 'vue';
|
|
209
|
+
import PrimeVue from 'primevue/config';
|
|
210
|
+
const app = createApp(App);
|
|
211
|
+
|
|
212
|
+
app.use(PrimeVue, {ripple: true});
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Outlined vs Filled Input Styles
|
|
216
|
+
|
|
217
|
+
Input fields come in two styles, default is ***outlined*** with borders around the field whereas ***filled*** alternative adds a background color to the field. Applying *p-input-filled* to an ancestor of an input enables the filled style. If you prefer to use filled inputs in the entire application, use a global container such as the document body or the application element to apply the style class. Note that in case you add it to the application element, components that are teleported to the document body such as Dialog will not be able to display filled inputs as they are not a descendant of the application root element in the DOM tree, to resolve this case set inputStyle to 'filled' at PrimeVue configuration as well.
|
|
218
|
+
|
|
219
|
+
```javascript
|
|
220
|
+
import {createApp} from 'vue';
|
|
221
|
+
import PrimeVue from 'primevue/config';
|
|
222
|
+
const app = createApp(App);
|
|
223
|
+
|
|
224
|
+
app.use(PrimeVue, {inputStyle: 'filled'});
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
## ZIndex Layering
|
|
228
|
+
|
|
229
|
+
ZIndexes are managed automatically to make sure layering of overlay components work seamlessly when combining multiple components. Still there may be cases where you'd like to configure the configure default values such as a custom layout where header section is fixed. In a case like this, dropdown needs to be displayed below the application header but a modal dialog should be displayed above. PrimeVue configuration offers the ***zIndex*** property to customize the default values for components categories. Default values are described below and can be customized when setting up PrimeVue.
|
|
230
|
+
|
|
231
|
+
```javascript
|
|
232
|
+
import {createApp} from 'vue';
|
|
233
|
+
import PrimeVue from 'primevue/config';
|
|
234
|
+
const app = createApp(App);
|
|
235
|
+
|
|
236
|
+
app.use(PrimeVue, {
|
|
237
|
+
zIndex: {
|
|
238
|
+
modal: 1100, //dialog, sidebar
|
|
239
|
+
overlay: 1000, //dropdown, overlaypanel
|
|
240
|
+
menu: 1000, //overlay menus
|
|
241
|
+
tooltip: 1100 //tooltip
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## Locale
|
|
247
|
+
|
|
248
|
+
PrimeVue provides a Locale API to support i18n and l7n, visit the [Locale](https://www.primefaces.org/primevue/showcase/#/locale) documentation for more information.
|
|
249
|
+
|
|
250
|
+
## Quickstart with Vue CLI
|
|
251
|
+
|
|
252
|
+
An [example application](https://github.com/primefaces/primevue-quickstart) based on Vue CLI is available at github.
|
|
253
|
+
|
|
254
|
+
## Quickstart with Vite
|
|
255
|
+
|
|
256
|
+
A [starter application](https://github.com/primefaces/primevue-quickstart-vite) is also provided for Vite users.
|
|
257
|
+
|
|
258
|
+
## Quickstart with Nuxt
|
|
259
|
+
|
|
260
|
+
A [sample application](https://github.com/primefaces/primevue-quickstart-nuxt3) is created for Nuxt 3 users.
|
|
261
|
+
|
|
262
|
+
## Quickstart with TypeScript
|
|
263
|
+
|
|
264
|
+
Typescript is fully supported as type definition files are provided in the npm package of PrimeVue. A sample [typescript-primevue](https://github.com/primefaces/primevue-typescript-quickstart) application with Vue CLI is available as at github.
|
package/accordion/Accordion.d.ts
CHANGED
|
@@ -1,19 +1,82 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
3
|
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export interface AccordionTabOpenEvent {
|
|
5
|
+
/**
|
|
6
|
+
* Browser mouse event.
|
|
7
|
+
* @type {MouseEvent}
|
|
8
|
+
*/
|
|
9
|
+
originalEvent: MouseEvent;
|
|
10
|
+
/**
|
|
11
|
+
* Opened tab index.
|
|
12
|
+
*/
|
|
13
|
+
index: number;
|
|
7
14
|
}
|
|
8
15
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @extends {AccordionTabOpenEvent}
|
|
18
|
+
*/
|
|
19
|
+
export interface AccordionTabCloseEvent extends AccordionTabOpenEvent { }
|
|
20
|
+
|
|
21
|
+
export interface AccordionProps {
|
|
22
|
+
/**
|
|
23
|
+
* When enabled, multiple tabs can be activated at the same time.
|
|
24
|
+
*/
|
|
25
|
+
multiple?: boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the active tab or an array of indexes in multiple mode.
|
|
28
|
+
*/
|
|
29
|
+
activeIndex?: number | number[] | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* When enabled, hidden tabs are not rendered at all. Defaults to false that hides tabs with css.
|
|
32
|
+
*/
|
|
33
|
+
lazy?: boolean | undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface AccordionSlots {
|
|
37
|
+
/**
|
|
38
|
+
* Default slot to detect AccordionTab components.
|
|
39
|
+
*/
|
|
40
|
+
default: () => VNode[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare type AccordionEmits = {
|
|
44
|
+
/**
|
|
45
|
+
* Emitted when the active tab changes.
|
|
46
|
+
* @param {number | undefined} value - Index of new active tab.
|
|
47
|
+
*/
|
|
48
|
+
'update:activeIndex': (value: number | undefined) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback to invoke when a tab gets expanded.
|
|
51
|
+
* @param {AccordionTabOpenEvent} event - Custom tab open event.
|
|
52
|
+
*/
|
|
53
|
+
'tab-open': (event: AccordionTabOpenEvent) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Callback to invoke when an active tab is collapsed by clicking on the header.
|
|
56
|
+
* @param {AccordionTabCloseEvent} event - Custom tab close event.
|
|
57
|
+
*/
|
|
58
|
+
'tab-close': (event: AccordionTabCloseEvent) => void;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> { }
|
|
62
|
+
|
|
63
|
+
declare module '@vue/runtime-core' {
|
|
64
|
+
interface GlobalComponents {
|
|
65
|
+
Accordion: GlobalComponentConstructor<Accordion>
|
|
16
66
|
}
|
|
17
67
|
}
|
|
18
68
|
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* Accordion groups a collection of contents in tabs.
|
|
72
|
+
*
|
|
73
|
+
* Helper Components:
|
|
74
|
+
*
|
|
75
|
+
* - AccordionTab
|
|
76
|
+
*
|
|
77
|
+
* Demos:
|
|
78
|
+
*
|
|
79
|
+
* - [Accordion](https://www.primefaces.org/primevue/showcase/#/accordion)
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
19
82
|
export default Accordion;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{UniqueComponentId as e}from"primevue/utils";import{openBlock as t,createBlock as i,Fragment as a,renderList as n,createVNode as d,toDisplayString as s,createCommentVNode as o,resolveDynamicComponent as c,Transition as r,withCtx as l,withDirectives as h,vShow as p}from"vue";var b={name:"Accordion",emits:["tab-close","tab-open","update:activeIndex"],props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1}},data(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex(e){this.d_activeIndex=e}},methods:{onTabClick(e,t,i){if(!this.isTabDisabled(t)){const t=this.isTabActive(i),a=t?"tab-close":"tab-open";this.multiple?t?this.d_activeIndex=this.d_activeIndex.filter((e=>e!==i)):this.d_activeIndex?this.d_activeIndex.push(i):this.d_activeIndex=[i]:this.d_activeIndex=this.d_activeIndex===i?null:i,this.$emit("update:activeIndex",this.d_activeIndex),this.$emit(a,{originalEvent:e,index:i})}},onTabKeydown(e,t,i){13===e.which&&this.onTabClick(e,t,i)},isTabActive(e){return this.multiple?this.d_activeIndex&&this.d_activeIndex.includes(e):e===this.d_activeIndex},getKey:(e,t)=>e.props&&e.props.header?e.props.header:t,isTabDisabled:e=>e.props&&e.props.disabled,getTabClass(e){return["p-accordion-tab",{"p-accordion-tab-active":this.isTabActive(e)}]},getTabHeaderClass(e,t){return["p-accordion-header",{"p-highlight":this.isTabActive(t),"p-disabled":this.isTabDisabled(e)}]},getTabAriaId(e){return this.ariaId+"_"+e},getHeaderIcon(e){const t=this.isTabActive(e);return["p-accordion-toggle-icon pi",{"pi-chevron-right":!t,"pi-chevron-down":t}]},isAccordionTab:e=>"AccordionTab"===e.type.name},computed:{tabs(){const e=[];return this.$slots.default().forEach((t=>{this.isAccordionTab(t)?e.push(t):t.children&&t.children instanceof Array&&t.children.forEach((t=>{this.isAccordionTab(t)&&e.push(t)}))})),e},ariaId:()=>e()}};const u={class:"p-accordion p-component"},v={key:0,class:"p-accordion-header-text"},x={class:"p-accordion-content"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-accordion-header-link {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: relative;\n text-decoration: none;\n}\n.p-accordion-header-link:focus {\n z-index: 1;\n}\n.p-accordion-header-text {\n line-height: 1;\n}\n"),b.render=function(e,b,T,m,g,y){return t(),i("div",u,[(t(!0),i(a,null,n(y.tabs,((e,a)=>(t(),i("div",{key:y.getKey(e,a),class:y.getTabClass(a)},[d("div",{class:y.getTabHeaderClass(e,a)},[d("a",{role:"tab",class:"p-accordion-header-link",onClick:t=>y.onTabClick(t,e,a),onKeydown:t=>y.onTabKeydown(t,e,a),tabindex:y.isTabDisabled(e)?null:"0","aria-expanded":y.isTabActive(a),id:y.getTabAriaId(a)+"_header","aria-controls":y.getTabAriaId(a)+"_content"},[d("span",{class:y.getHeaderIcon(a)},null,2),e.props&&e.props.header?(t(),i("span",v,s(e.props.header),1)):o("",!0),e.children&&e.children.header?(t(),i(c(e.children.header),{key:1})):o("",!0)],40,["onClick","onKeydown","tabindex","aria-expanded","id","aria-controls"])],2),d(r,{name:"p-toggleable-content"},{default:l((()=>[!T.lazy||y.isTabActive(a)?h((t(),i("div",{key:0,class:"p-toggleable-content",role:"region",id:y.getTabAriaId(a)+"_content","aria-labelledby":y.getTabAriaId(a)+"_header"},[d("div",x,[(t(),i(c(e)))])],8,["id","aria-labelledby"])),[[p,!!T.lazy||y.isTabActive(a)]]):o("",!0)])),_:2},1024)],2)))),128))])};export default
|
|
1
|
+
import{UniqueComponentId as e}from"primevue/utils";import{openBlock as t,createBlock as i,Fragment as a,renderList as n,createVNode as d,toDisplayString as s,createCommentVNode as o,resolveDynamicComponent as c,Transition as r,withCtx as l,withDirectives as h,vShow as p}from"vue";var b={name:"Accordion",emits:["tab-close","tab-open","update:activeIndex"],props:{multiple:{type:Boolean,default:!1},activeIndex:{type:[Number,Array],default:null},lazy:{type:Boolean,default:!1}},data(){return{d_activeIndex:this.activeIndex}},watch:{activeIndex(e){this.d_activeIndex=e}},methods:{onTabClick(e,t,i){if(!this.isTabDisabled(t)){const t=this.isTabActive(i),a=t?"tab-close":"tab-open";this.multiple?t?this.d_activeIndex=this.d_activeIndex.filter((e=>e!==i)):this.d_activeIndex?this.d_activeIndex.push(i):this.d_activeIndex=[i]:this.d_activeIndex=this.d_activeIndex===i?null:i,this.$emit("update:activeIndex",this.d_activeIndex),this.$emit(a,{originalEvent:e,index:i})}},onTabKeydown(e,t,i){13===e.which&&this.onTabClick(e,t,i)},isTabActive(e){return this.multiple?this.d_activeIndex&&this.d_activeIndex.includes(e):e===this.d_activeIndex},getKey:(e,t)=>e.props&&e.props.header?e.props.header:t,isTabDisabled:e=>e.props&&e.props.disabled,getTabClass(e){return["p-accordion-tab",{"p-accordion-tab-active":this.isTabActive(e)}]},getTabHeaderClass(e,t){return["p-accordion-header",{"p-highlight":this.isTabActive(t),"p-disabled":this.isTabDisabled(e)}]},getTabAriaId(e){return this.ariaId+"_"+e},getHeaderIcon(e){const t=this.isTabActive(e);return["p-accordion-toggle-icon pi",{"pi-chevron-right":!t,"pi-chevron-down":t}]},isAccordionTab:e=>"AccordionTab"===e.type.name},computed:{tabs(){const e=[];return this.$slots.default().forEach((t=>{this.isAccordionTab(t)?e.push(t):t.children&&t.children instanceof Array&&t.children.forEach((t=>{this.isAccordionTab(t)&&e.push(t)}))})),e},ariaId:()=>e()}};const u={class:"p-accordion p-component"},v={key:0,class:"p-accordion-header-text"},x={class:"p-accordion-content"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-accordion-header-link {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: relative;\n text-decoration: none;\n}\n.p-accordion-header-link:focus {\n z-index: 1;\n}\n.p-accordion-header-text {\n line-height: 1;\n}\n"),b.render=function(e,b,T,m,g,y){return t(),i("div",u,[(t(!0),i(a,null,n(y.tabs,((e,a)=>(t(),i("div",{key:y.getKey(e,a),class:y.getTabClass(a)},[d("div",{class:y.getTabHeaderClass(e,a)},[d("a",{role:"tab",class:"p-accordion-header-link",onClick:t=>y.onTabClick(t,e,a),onKeydown:t=>y.onTabKeydown(t,e,a),tabindex:y.isTabDisabled(e)?null:"0","aria-expanded":y.isTabActive(a),id:y.getTabAriaId(a)+"_header","aria-controls":y.getTabAriaId(a)+"_content"},[d("span",{class:y.getHeaderIcon(a)},null,2),e.props&&e.props.header?(t(),i("span",v,s(e.props.header),1)):o("",!0),e.children&&e.children.header?(t(),i(c(e.children.header),{key:1})):o("",!0)],40,["onClick","onKeydown","tabindex","aria-expanded","id","aria-controls"])],2),d(r,{name:"p-toggleable-content"},{default:l((()=>[!T.lazy||y.isTabActive(a)?h((t(),i("div",{key:0,class:"p-toggleable-content",role:"region",id:y.getTabAriaId(a)+"_content","aria-labelledby":y.getTabAriaId(a)+"_header"},[d("div",x,[(t(),i(c(e)))])],8,["id","aria-labelledby"])),[[p,!!T.lazy||y.isTabActive(a)]]):o("",!0)])),_:2},1024)],2)))),128))])};export{b as default};
|
package/accordion/accordion.js
CHANGED
|
@@ -1,16 +1,45 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
+
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
2
3
|
|
|
3
|
-
interface AccordionTabProps {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export interface AccordionTabProps {
|
|
5
|
+
/**
|
|
6
|
+
* Orientation of tab headers.
|
|
7
|
+
*/
|
|
8
|
+
header?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the tab is disabled.
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean | undefined;
|
|
6
13
|
}
|
|
7
14
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
export interface AccordionTabSlots {
|
|
16
|
+
/**
|
|
17
|
+
* Default slot for content.
|
|
18
|
+
*/
|
|
19
|
+
default: () => VNode[];
|
|
20
|
+
/**
|
|
21
|
+
* Custom content for the title section of a panel is defined using the header template.
|
|
22
|
+
*/
|
|
23
|
+
header: () => VNode[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare type AccordionTabEmits = { }
|
|
27
|
+
|
|
28
|
+
declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> { }
|
|
29
|
+
|
|
30
|
+
declare module '@vue/runtime-core' {
|
|
31
|
+
interface GlobalComponents {
|
|
32
|
+
AccordionTab: GlobalComponentConstructor<AccordionTab>
|
|
13
33
|
}
|
|
14
34
|
}
|
|
15
35
|
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* AccordionTab is a helper component for Accordion.
|
|
39
|
+
*
|
|
40
|
+
* Demos:
|
|
41
|
+
*
|
|
42
|
+
* - [Accordion](https://www.primefaces.org/primevue/showcase/#/accordion)
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
16
45
|
export default AccordionTab;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{renderSlot as e}from"vue";var r={name:"AccordionTab",props:{header:null,disabled:Boolean}};r.render=function(r,o,a,n,d,l){return e(r.$slots,"default")};export default
|
|
1
|
+
import{renderSlot as e}from"vue";var r={name:"AccordionTab",props:{header:null,disabled:Boolean}};r.render=function(r,o,a,n,d,l){return e(r.$slots,"default")};export{r as default};
|