primevue 3.7.2 → 3.9.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.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/api/Api.d.ts +73 -32
- 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 +43 -9
- 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/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 +7 -0
- package/breadcrumb/Breadcrumb.vue +4 -0
- package/breadcrumb/BreadcrumbItem.vue +5 -2
- package/breadcrumb/breadcrumb.cjs.js +6 -3
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +6 -3
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +6 -3
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/calendar/Calendar.d.ts +11 -1
- package/calendar/Calendar.vue +362 -67
- package/calendar/calendar.cjs.js +459 -168
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +461 -170
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +459 -168
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +6 -1
- 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 +19 -6
- package/chart/Chart.vue +9 -2
- package/chart/chart.cjs.js +9 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +9 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +9 -2
- package/chart/chart.min.js +1 -1
- package/chips/Chips.d.ts +5 -1
- package/colorpicker/ColorPicker.d.ts +3 -0
- 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 +42 -11
- package/confirmationservice/ConfirmationService.d.ts +3 -2
- 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 +7 -0
- 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 +5 -1
- 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 +7644 -0
- package/core/core.min.js +47 -0
- package/datatable/BodyCell.vue +37 -17
- package/datatable/ColumnFilter.vue +17 -6
- package/datatable/DataTable.d.ts +37 -9
- package/datatable/DataTable.vue +90 -48
- package/datatable/FooterCell.vue +2 -2
- package/datatable/HeaderCell.vue +2 -2
- package/datatable/TableBody.vue +15 -6
- package/datatable/TableFooter.vue +17 -2
- package/datatable/TableHeader.vue +17 -2
- package/datatable/datatable.cjs.js +321 -197
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +321 -197
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +321 -197
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +9 -4
- 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/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/dock/Dock.d.ts +10 -1
- package/dock/Dock.vue +1 -1
- package/dock/DockSub.vue +13 -8
- package/dock/dock.cjs.js +24 -10
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +20 -10
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +25 -12
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +56 -13
- 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/fileupload/FileUpload.d.ts +5 -0
- package/galleria/Galleria.d.ts +20 -4
- package/inplace/Inplace.d.ts +1 -0
- package/inplace/Inplace.vue +12 -1
- package/inplace/inplace.cjs.js +13 -2
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +13 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +13 -2
- package/inplace/inplace.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +1 -1
- 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.vue +6 -3
- package/inputswitch/inputswitch.cjs.js +6 -3
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +6 -3
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +6 -3
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +1 -1
- 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/listbox/Listbox.d.ts +48 -12
- package/megamenu/MegaMenu.d.ts +5 -1
- 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 +5 -1
- 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 +5 -1
- package/menubar/MenubarSub.vue +8 -5
- package/menubar/menubar.cjs.js +8 -5
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +8 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +8 -5
- package/menubar/menubar.min.js +1 -1
- package/message/Message.d.ts +1 -0
- 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 +61 -14
- package/orderlist/OrderList.d.ts +8 -1
- 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/overlaypanel/OverlayPanel.vue +1 -0
- package/overlaypanel/overlaypanel.cjs.js +1 -0
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -0
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -0
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +5 -1
- package/paginator/CurrentPageReport.vue +5 -1
- package/paginator/JumpToPageInput.vue +1 -1
- package/paginator/Paginator.d.ts +10 -4
- package/paginator/Paginator.vue +10 -7
- package/paginator/paginator.cjs.js +16 -8
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +16 -8
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +16 -8
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +1 -0
- package/panel/Panel.vue +1 -1
- package/panelmenu/PanelMenu.d.ts +5 -3
- package/panelmenu/PanelMenu.vue +6 -3
- package/panelmenu/PanelMenuSub.vue +8 -5
- package/panelmenu/panelmenu.cjs.js +14 -8
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +14 -8
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +14 -8
- package/panelmenu/panelmenu.min.js +1 -1
- package/picklist/PickList.d.ts +14 -3
- 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.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/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 +57 -16
- package/resources/themes/arya-green/theme.css +57 -16
- package/resources/themes/arya-orange/theme.css +57 -16
- package/resources/themes/arya-purple/theme.css +57 -16
- package/resources/themes/bootstrap4-dark-blue/theme.css +54 -20
- package/resources/themes/bootstrap4-dark-purple/theme.css +54 -20
- package/resources/themes/bootstrap4-light-blue/theme.css +54 -20
- package/resources/themes/bootstrap4-light-purple/theme.css +54 -20
- package/resources/themes/fluent-light/theme.css +57 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -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 +5414 -0
- package/resources/themes/luna-amber/theme.css +54 -20
- package/resources/themes/luna-blue/theme.css +54 -20
- package/resources/themes/luna-green/theme.css +54 -20
- package/resources/themes/luna-pink/theme.css +54 -20
- package/resources/themes/md-dark-deeppurple/theme.css +245 -48
- package/resources/themes/md-dark-indigo/theme.css +245 -48
- package/resources/themes/md-light-deeppurple/theme.css +245 -48
- package/resources/themes/md-light-indigo/theme.css +245 -48
- package/resources/themes/mdc-dark-deeppurple/theme.css +245 -48
- package/resources/themes/mdc-dark-indigo/theme.css +245 -48
- package/resources/themes/mdc-light-deeppurple/theme.css +245 -48
- package/resources/themes/mdc-light-indigo/theme.css +245 -48
- package/resources/themes/nova/theme.css +54 -20
- package/resources/themes/nova-accent/theme.css +54 -20
- package/resources/themes/nova-alt/theme.css +54 -20
- package/resources/themes/nova-vue/theme.css +54 -20
- package/resources/themes/rhea/theme.css +54 -20
- package/resources/themes/saga-blue/theme.css +57 -16
- package/resources/themes/saga-green/theme.css +57 -16
- package/resources/themes/saga-orange/theme.css +57 -16
- package/resources/themes/saga-purple/theme.css +57 -16
- package/resources/themes/tailwind-light/theme.css +68 -19
- package/resources/themes/vela-blue/theme.css +57 -16
- package/resources/themes/vela-green/theme.css +57 -16
- package/resources/themes/vela-orange/theme.css +57 -16
- package/resources/themes/vela-purple/theme.css +57 -16
- package/selectbutton/SelectButton.d.ts +13 -5
- 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/speeddial/SpeedDial.d.ts +5 -1
- package/speeddial/SpeedDial.vue +2 -1
- package/speeddial/speeddial.cjs.js +2 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +2 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +2 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitter/Splitter.vue +5 -3
- package/splitter/splitter.cjs.js +4 -2
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +5 -3
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +4 -2
- package/splitter/splitter.min.js +1 -1
- package/steps/Steps.d.ts +5 -3
- 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 +5 -3
- package/tabmenu/TabMenu.vue +10 -3
- package/tabmenu/tabmenu.cjs.js +7 -4
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +7 -4
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +7 -4
- package/tabmenu/tabmenu.min.js +1 -1
- package/terminal/terminal.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/TerminalService.d.ts +9 -6
- package/tieredmenu/TieredMenu.d.ts +5 -3
- package/tieredmenu/TieredMenuSub.vue +8 -5
- package/tieredmenu/tieredmenu.cjs.js +8 -5
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +8 -5
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +8 -5
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +8 -3
- package/toast/Toast.d.ts +7 -0
- package/toastservice/ToastService.d.ts +3 -2
- package/tooltip/tooltip.cjs.js +5 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +5 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +5 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +5 -1
- 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 +20 -3
- 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/BodyCell.vue +2 -3
- package/treetable/FooterCell.vue +2 -2
- package/treetable/HeaderCell.vue +2 -2
- package/treetable/TreeTable.d.ts +2 -2
- package/treetable/TreeTable.vue +10 -10
- package/treetable/TreeTableRow.vue +2 -2
- package/treetable/treetable.cjs.js +18 -18
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +19 -19
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +18 -18
- package/treetable/treetable.min.js +1 -1
- package/utils/Utils.d.ts +80 -0
- package/utils/package.json +3 -2
- package/utils/utils.cjs.js +126 -108
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +126 -108
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +126 -108
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +24 -0
- package/vetur-tags.json +9 -3
- package/virtualscroller/VirtualScroller.d.ts +52 -6
- package/virtualscroller/VirtualScroller.vue +1 -1
- package/virtualscroller/virtualscroller.cjs.js +1 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +228 -13
package/datatable/datatable.js
CHANGED
|
@@ -348,7 +348,15 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
348
348
|
hide() {
|
|
349
349
|
this.overlayVisible = false;
|
|
350
350
|
},
|
|
351
|
-
onContentClick() {
|
|
351
|
+
onContentClick(event) {
|
|
352
|
+
this.selfClick = true;
|
|
353
|
+
|
|
354
|
+
OverlayEventBus__default['default'].emit('overlay-click', {
|
|
355
|
+
originalEvent: event,
|
|
356
|
+
target: this.overlay
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
onContentMouseDown() {
|
|
352
360
|
this.selfClick = true;
|
|
353
361
|
},
|
|
354
362
|
onOverlayEnter(el) {
|
|
@@ -362,7 +370,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
362
370
|
this.bindResizeListener();
|
|
363
371
|
|
|
364
372
|
this.overlayEventListener = (e) => {
|
|
365
|
-
if (this.
|
|
373
|
+
if (!this.isOutsideClicked(e.target)) {
|
|
366
374
|
this.selfClick = true;
|
|
367
375
|
}
|
|
368
376
|
};
|
|
@@ -385,13 +393,16 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
385
393
|
overlayRef(el) {
|
|
386
394
|
this.overlay = el;
|
|
387
395
|
},
|
|
388
|
-
|
|
389
|
-
return this
|
|
396
|
+
isOutsideClicked(target) {
|
|
397
|
+
return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
|
|
398
|
+
},
|
|
399
|
+
isTargetClicked(target) {
|
|
400
|
+
return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
|
|
390
401
|
},
|
|
391
402
|
bindOutsideClickListener() {
|
|
392
403
|
if (!this.outsideClickListener) {
|
|
393
404
|
this.outsideClickListener = (event) => {
|
|
394
|
-
if (this.overlayVisible && !this.selfClick &&
|
|
405
|
+
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
|
|
395
406
|
this.overlayVisible = false;
|
|
396
407
|
}
|
|
397
408
|
this.selfClick = false;
|
|
@@ -524,7 +535,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
524
535
|
key: 0,
|
|
525
536
|
class: "p-column-filter-operator"
|
|
526
537
|
};
|
|
527
|
-
const _hoisted_7
|
|
538
|
+
const _hoisted_7 = { class: "p-column-filter-constraints" };
|
|
528
539
|
const _hoisted_8 = {
|
|
529
540
|
key: 1,
|
|
530
541
|
class: "p-column-filter-add-rule"
|
|
@@ -583,7 +594,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
583
594
|
ref: $options.overlayRef,
|
|
584
595
|
class: $options.overlayClass,
|
|
585
596
|
onKeydown: _cache[12] || (_cache[12] = vue.withKeys((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
|
|
586
|
-
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args)))
|
|
597
|
+
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
|
|
598
|
+
onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
|
|
587
599
|
}, [
|
|
588
600
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterHeaderTemplate), {
|
|
589
601
|
field: $props.field,
|
|
@@ -627,7 +639,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
627
639
|
}, null, 8, ["options", "modelValue"])
|
|
628
640
|
]))
|
|
629
641
|
: vue.createCommentVNode("", true),
|
|
630
|
-
vue.createVNode("div", _hoisted_7
|
|
642
|
+
vue.createVNode("div", _hoisted_7, [
|
|
631
643
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.fieldConstraints, (fieldConstraint, i) => {
|
|
632
644
|
return (vue.openBlock(), vue.createBlock("div", {
|
|
633
645
|
key: i,
|
|
@@ -809,7 +821,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
809
821
|
},
|
|
810
822
|
methods: {
|
|
811
823
|
columnProp(prop) {
|
|
812
|
-
return
|
|
824
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
813
825
|
},
|
|
814
826
|
onClick(event) {
|
|
815
827
|
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
@@ -1115,7 +1127,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1115
1127
|
},
|
|
1116
1128
|
methods: {
|
|
1117
1129
|
columnProp(col, prop) {
|
|
1118
|
-
return
|
|
1130
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1119
1131
|
},
|
|
1120
1132
|
getFilterColumnHeaderClass(column) {
|
|
1121
1133
|
return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
|
|
@@ -1124,6 +1136,20 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1124
1136
|
},
|
|
1125
1137
|
getFilterColumnHeaderStyle(column) {
|
|
1126
1138
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
1139
|
+
},
|
|
1140
|
+
getHeaderColumns(row){
|
|
1141
|
+
let cols = [];
|
|
1142
|
+
|
|
1143
|
+
if (row.children && row.children.default) {
|
|
1144
|
+
row.children.default().forEach(child => {
|
|
1145
|
+
if (child.children && child.children instanceof Array)
|
|
1146
|
+
cols = [...cols, ...child.children];
|
|
1147
|
+
else if (child.type.name === 'Column')
|
|
1148
|
+
cols.push(child);
|
|
1149
|
+
});
|
|
1150
|
+
|
|
1151
|
+
return cols;
|
|
1152
|
+
}
|
|
1127
1153
|
}
|
|
1128
1154
|
},
|
|
1129
1155
|
components: {
|
|
@@ -1256,7 +1282,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1256
1282
|
key: i,
|
|
1257
1283
|
role: "row"
|
|
1258
1284
|
}, [
|
|
1259
|
-
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(
|
|
1285
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getHeaderColumns(row), (col, j) => {
|
|
1260
1286
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
1261
1287
|
key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
|
|
1262
1288
|
}, [
|
|
@@ -1411,8 +1437,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1411
1437
|
|
|
1412
1438
|
var script$4 = {
|
|
1413
1439
|
name: 'BodyCell',
|
|
1414
|
-
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1415
|
-
'row-toggle', 'radio-change', 'checkbox-change'],
|
|
1440
|
+
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1441
|
+
'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1416
1442
|
props: {
|
|
1417
1443
|
rowData: {
|
|
1418
1444
|
type: Object,
|
|
@@ -1446,6 +1472,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1446
1472
|
type: Boolean,
|
|
1447
1473
|
default: false
|
|
1448
1474
|
},
|
|
1475
|
+
editingMeta: {
|
|
1476
|
+
type: Object,
|
|
1477
|
+
default: null
|
|
1478
|
+
},
|
|
1449
1479
|
editMode: {
|
|
1450
1480
|
type: String,
|
|
1451
1481
|
default: null
|
|
@@ -1467,6 +1497,9 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1467
1497
|
watch: {
|
|
1468
1498
|
editing(newValue) {
|
|
1469
1499
|
this.d_editing = newValue;
|
|
1500
|
+
},
|
|
1501
|
+
'$data.d_editing': function(newValue) {
|
|
1502
|
+
this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
|
|
1470
1503
|
}
|
|
1471
1504
|
},
|
|
1472
1505
|
mounted() {
|
|
@@ -1478,6 +1511,11 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1478
1511
|
if (this.columnProp('frozen')) {
|
|
1479
1512
|
this.updateStickyPosition();
|
|
1480
1513
|
}
|
|
1514
|
+
|
|
1515
|
+
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
|
|
1516
|
+
const focusableEl = utils.DomHandler.getFirstFocusableElement(this.$el);
|
|
1517
|
+
focusableEl && focusableEl.focus();
|
|
1518
|
+
}
|
|
1481
1519
|
},
|
|
1482
1520
|
beforeUnmount() {
|
|
1483
1521
|
if (this.overlayEventListener) {
|
|
@@ -1487,10 +1525,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1487
1525
|
},
|
|
1488
1526
|
methods: {
|
|
1489
1527
|
columnProp(prop) {
|
|
1490
|
-
return
|
|
1528
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
1491
1529
|
},
|
|
1492
1530
|
resolveFieldData() {
|
|
1493
|
-
return utils.ObjectUtils.resolveFieldData(this.rowData, this.
|
|
1531
|
+
return utils.ObjectUtils.resolveFieldData(this.rowData, this.field);
|
|
1494
1532
|
},
|
|
1495
1533
|
toggleRow(event) {
|
|
1496
1534
|
this.$emit('row-toggle', {
|
|
@@ -1529,7 +1567,6 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1529
1567
|
switchCellToViewMode() {
|
|
1530
1568
|
this.d_editing = false;
|
|
1531
1569
|
this.unbindDocumentEditListener();
|
|
1532
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: false});
|
|
1533
1570
|
OverlayEventBus__default['default'].off('overlay-click', this.overlayEventListener);
|
|
1534
1571
|
this.overlayEventListener = null;
|
|
1535
1572
|
},
|
|
@@ -1540,8 +1577,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1540
1577
|
if (!this.d_editing) {
|
|
1541
1578
|
this.d_editing = true;
|
|
1542
1579
|
this.bindDocumentEditListener();
|
|
1543
|
-
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1544
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: true});
|
|
1580
|
+
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1545
1581
|
|
|
1546
1582
|
this.overlayEventListener = (e) => {
|
|
1547
1583
|
if (this.$el && this.$el.contains(e.target)) {
|
|
@@ -1553,10 +1589,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1553
1589
|
}
|
|
1554
1590
|
},
|
|
1555
1591
|
completeEdit(event, type) {
|
|
1556
|
-
|
|
1592
|
+
const completeEvent = {
|
|
1557
1593
|
originalEvent: event,
|
|
1558
1594
|
data: this.rowData,
|
|
1559
|
-
|
|
1595
|
+
newData: this.editingRowData,
|
|
1596
|
+
value: this.rowData[this.field],
|
|
1597
|
+
newValue: this.editingRowData[this.field],
|
|
1598
|
+
field: this.field,
|
|
1560
1599
|
index: this.rowIndex,
|
|
1561
1600
|
type: type,
|
|
1562
1601
|
defaultPrevented: false,
|
|
@@ -1580,7 +1619,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1580
1619
|
|
|
1581
1620
|
case 27:
|
|
1582
1621
|
this.switchCellToViewMode();
|
|
1583
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1622
|
+
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1584
1623
|
break;
|
|
1585
1624
|
|
|
1586
1625
|
case 9:
|
|
@@ -1669,13 +1708,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1669
1708
|
return (utils.DomHandler.find(this.$el, '.p-invalid').length === 0);
|
|
1670
1709
|
},
|
|
1671
1710
|
onRowEditInit(event) {
|
|
1672
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1711
|
+
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1673
1712
|
},
|
|
1674
1713
|
onRowEditSave(event) {
|
|
1675
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, field: this.
|
|
1714
|
+
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1676
1715
|
},
|
|
1677
1716
|
onRowEditCancel(event) {
|
|
1678
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1717
|
+
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1679
1718
|
},
|
|
1680
1719
|
updateStickyPosition() {
|
|
1681
1720
|
if (this.columnProp('frozen')) {
|
|
@@ -1700,6 +1739,12 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1700
1739
|
}
|
|
1701
1740
|
},
|
|
1702
1741
|
computed: {
|
|
1742
|
+
editingRowData() {
|
|
1743
|
+
return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
|
|
1744
|
+
},
|
|
1745
|
+
field() {
|
|
1746
|
+
return this.columnProp('field');
|
|
1747
|
+
},
|
|
1703
1748
|
containerClass() {
|
|
1704
1749
|
return [this.columnProp('bodyClass'), this.columnProp('class'), {
|
|
1705
1750
|
'p-selection-column': this.columnProp('selectionMode') != null,
|
|
@@ -1752,93 +1797,104 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1752
1797
|
key: 1,
|
|
1753
1798
|
data: $props.rowData,
|
|
1754
1799
|
column: $props.column,
|
|
1800
|
+
field: $options.field,
|
|
1755
1801
|
index: $props.rowIndex,
|
|
1756
1802
|
frozenRow: $props.frozenRow
|
|
1757
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1803
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1758
1804
|
: ($props.column.children && $props.column.children.editor && $data.d_editing)
|
|
1759
1805
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.editor), {
|
|
1760
1806
|
key: 2,
|
|
1761
|
-
data: $
|
|
1807
|
+
data: $options.editingRowData,
|
|
1762
1808
|
column: $props.column,
|
|
1809
|
+
field: $options.field,
|
|
1763
1810
|
index: $props.rowIndex,
|
|
1764
1811
|
frozenRow: $props.frozenRow
|
|
1765
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1766
|
-
: ($
|
|
1767
|
-
? (vue.openBlock(), vue.createBlock(vue.
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1812
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1813
|
+
: ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
|
|
1814
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
|
|
1815
|
+
key: 3,
|
|
1816
|
+
data: $options.editingRowData,
|
|
1817
|
+
column: $props.column,
|
|
1818
|
+
field: $options.field,
|
|
1819
|
+
index: $props.rowIndex,
|
|
1820
|
+
frozenRow: $props.frozenRow
|
|
1821
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1822
|
+
: ($options.columnProp('selectionMode'))
|
|
1823
|
+
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 4 }, [
|
|
1824
|
+
($options.columnProp('selectionMode') === 'single')
|
|
1825
|
+
? (vue.openBlock(), vue.createBlock(_component_DTRadioButton, {
|
|
1826
|
+
key: 0,
|
|
1778
1827
|
value: $props.rowData,
|
|
1779
1828
|
checked: $props.selected,
|
|
1780
|
-
onChange: $options.
|
|
1829
|
+
onChange: $options.toggleRowWithRadio
|
|
1781
1830
|
}, null, 8, ["value", "checked", "onChange"]))
|
|
1782
|
-
:
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1831
|
+
: ($options.columnProp('selectionMode') ==='multiple')
|
|
1832
|
+
? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
|
|
1833
|
+
key: 1,
|
|
1834
|
+
value: $props.rowData,
|
|
1835
|
+
checked: $props.selected,
|
|
1836
|
+
onChange: $options.toggleRowWithCheckbox
|
|
1837
|
+
}, null, 8, ["value", "checked", "onChange"]))
|
|
1838
|
+
: vue.createCommentVNode("", true)
|
|
1839
|
+
], 64))
|
|
1840
|
+
: ($options.columnProp('rowReorder'))
|
|
1841
|
+
? (vue.openBlock(), vue.createBlock("i", {
|
|
1791
1842
|
key: 5,
|
|
1792
|
-
class:
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1843
|
+
class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
|
|
1844
|
+
}, null, 2))
|
|
1845
|
+
: ($options.columnProp('expander'))
|
|
1846
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1847
|
+
key: 6,
|
|
1848
|
+
class: "p-row-toggler p-link",
|
|
1849
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
|
|
1850
|
+
type: "button"
|
|
1851
|
+
}, [
|
|
1852
|
+
vue.createVNode("span", { class: $props.rowTogglerIcon }, null, 2)
|
|
1853
|
+
], 512)), [
|
|
1854
|
+
[_directive_ripple]
|
|
1855
|
+
])
|
|
1856
|
+
: ($props.editMode === 'row' && $options.columnProp('rowEditor'))
|
|
1857
|
+
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 7 }, [
|
|
1858
|
+
(!$data.d_editing)
|
|
1859
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1860
|
+
key: 0,
|
|
1861
|
+
class: "p-row-editor-init p-link",
|
|
1862
|
+
onClick: _cache[2] || (_cache[2] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
|
|
1863
|
+
type: "button"
|
|
1864
|
+
}, [
|
|
1865
|
+
_hoisted_2$3
|
|
1866
|
+
], 512)), [
|
|
1867
|
+
[_directive_ripple]
|
|
1868
|
+
])
|
|
1869
|
+
: vue.createCommentVNode("", true),
|
|
1870
|
+
($data.d_editing)
|
|
1871
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1872
|
+
key: 1,
|
|
1873
|
+
class: "p-row-editor-save p-link",
|
|
1874
|
+
onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
|
|
1875
|
+
type: "button"
|
|
1876
|
+
}, [
|
|
1877
|
+
_hoisted_3$1
|
|
1878
|
+
], 512)), [
|
|
1879
|
+
[_directive_ripple]
|
|
1880
|
+
])
|
|
1881
|
+
: vue.createCommentVNode("", true),
|
|
1882
|
+
($data.d_editing)
|
|
1883
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1884
|
+
key: 2,
|
|
1885
|
+
class: "p-row-editor-cancel p-link",
|
|
1886
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
|
|
1887
|
+
type: "button"
|
|
1888
|
+
}, [
|
|
1889
|
+
_hoisted_4$1
|
|
1890
|
+
], 512)), [
|
|
1891
|
+
[_directive_ripple]
|
|
1892
|
+
])
|
|
1893
|
+
: vue.createCommentVNode("", true)
|
|
1894
|
+
], 64))
|
|
1895
|
+
: (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 8 }, [
|
|
1896
|
+
vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)
|
|
1897
|
+
], 64))
|
|
1842
1898
|
], 38))
|
|
1843
1899
|
}
|
|
1844
1900
|
|
|
@@ -1849,7 +1905,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1849
1905
|
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
|
|
1850
1906
|
'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
|
|
1851
1907
|
'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
|
|
1852
|
-
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-
|
|
1908
|
+
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1853
1909
|
props: {
|
|
1854
1910
|
value: {
|
|
1855
1911
|
type: Array,
|
|
@@ -1927,6 +1983,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1927
1983
|
type: null,
|
|
1928
1984
|
default: null
|
|
1929
1985
|
},
|
|
1986
|
+
rowStyle: {
|
|
1987
|
+
type: null,
|
|
1988
|
+
default: null
|
|
1989
|
+
},
|
|
1930
1990
|
editMode: {
|
|
1931
1991
|
type: String,
|
|
1932
1992
|
default: null
|
|
@@ -1943,6 +2003,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1943
2003
|
type: null,
|
|
1944
2004
|
default: null
|
|
1945
2005
|
},
|
|
2006
|
+
editingMeta: {
|
|
2007
|
+
type: Object,
|
|
2008
|
+
default: null
|
|
2009
|
+
},
|
|
1946
2010
|
loading: {
|
|
1947
2011
|
type: Boolean,
|
|
1948
2012
|
default: false
|
|
@@ -1985,7 +2049,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
1985
2049
|
},
|
|
1986
2050
|
methods: {
|
|
1987
2051
|
columnProp(col, prop) {
|
|
1988
|
-
return
|
|
2052
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1989
2053
|
},
|
|
1990
2054
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1991
2055
|
let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
@@ -2244,8 +2308,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2244
2308
|
onRowEditCancel(event) {
|
|
2245
2309
|
this.$emit('row-edit-cancel', event);
|
|
2246
2310
|
},
|
|
2247
|
-
|
|
2248
|
-
this.$emit('editing-
|
|
2311
|
+
onEditingMetaChange(event) {
|
|
2312
|
+
this.$emit('editing-meta-change', event);
|
|
2249
2313
|
},
|
|
2250
2314
|
updateFrozenRowStickyPosition() {
|
|
2251
2315
|
this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
@@ -2323,19 +2387,20 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2323
2387
|
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
|
|
2324
2388
|
? (vue.openBlock(), vue.createBlock("tr", {
|
|
2325
2389
|
class: $options.getRowClass(rowData),
|
|
2390
|
+
style: $props.rowStyle,
|
|
2326
2391
|
key: $options.getRowKey(rowData, index),
|
|
2327
2392
|
onClick: $event => ($options.onRowClick($event, rowData, index)),
|
|
2328
2393
|
onDblclick: $event => ($options.onRowDblClick($event, rowData, index)),
|
|
2329
2394
|
onContextmenu: $event => ($options.onRowRightClick($event, rowData, index)),
|
|
2330
|
-
onTouchend: _cache[
|
|
2395
|
+
onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
|
|
2331
2396
|
onKeydown: $event => ($options.onRowKeyDown($event, rowData, index)),
|
|
2332
2397
|
tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
|
|
2333
|
-
onMousedown: _cache[
|
|
2398
|
+
onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
|
|
2334
2399
|
onDragstart: $event => ($options.onRowDragStart($event, index)),
|
|
2335
2400
|
onDragover: $event => ($options.onRowDragOver($event,index)),
|
|
2336
|
-
onDragleave: _cache[
|
|
2337
|
-
onDragend: _cache[
|
|
2338
|
-
onDrop: _cache[
|
|
2401
|
+
onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
|
|
2402
|
+
onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
|
|
2403
|
+
onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
|
|
2339
2404
|
role: "row"
|
|
2340
2405
|
}, [
|
|
2341
2406
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
@@ -2365,12 +2430,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2365
2430
|
onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
|
|
2366
2431
|
onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
|
|
2367
2432
|
onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
|
|
2368
|
-
|
|
2369
|
-
|
|
2433
|
+
editingMeta: $props.editingMeta,
|
|
2434
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
2435
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange"]))
|
|
2370
2436
|
: vue.createCommentVNode("", true)
|
|
2371
2437
|
], 64))
|
|
2372
2438
|
}), 128))
|
|
2373
|
-
],
|
|
2439
|
+
], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
|
|
2374
2440
|
: vue.createCommentVNode("", true),
|
|
2375
2441
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
2376
2442
|
? (vue.openBlock(), vue.createBlock("tr", {
|
|
@@ -2440,7 +2506,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2440
2506
|
},
|
|
2441
2507
|
methods: {
|
|
2442
2508
|
columnProp(prop) {
|
|
2443
|
-
return
|
|
2509
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
2444
2510
|
},
|
|
2445
2511
|
updateStickyPosition() {
|
|
2446
2512
|
if (this.columnProp('frozen')) {
|
|
@@ -2513,7 +2579,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2513
2579
|
},
|
|
2514
2580
|
methods: {
|
|
2515
2581
|
columnProp(col, prop) {
|
|
2516
|
-
return
|
|
2582
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
2583
|
+
},
|
|
2584
|
+
getFooterColumns(row){
|
|
2585
|
+
let cols = [];
|
|
2586
|
+
|
|
2587
|
+
if (row.children && row.children.default) {
|
|
2588
|
+
row.children.default().forEach(child => {
|
|
2589
|
+
if (child.children && child.children instanceof Array)
|
|
2590
|
+
cols = [...cols, ...child.children];
|
|
2591
|
+
else if (child.type.name === 'Column')
|
|
2592
|
+
cols.push(child);
|
|
2593
|
+
});
|
|
2594
|
+
|
|
2595
|
+
return cols;
|
|
2596
|
+
}
|
|
2517
2597
|
}
|
|
2518
2598
|
},
|
|
2519
2599
|
computed: {
|
|
@@ -2575,7 +2655,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2575
2655
|
key: i,
|
|
2576
2656
|
role: "row"
|
|
2577
2657
|
}, [
|
|
2578
|
-
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(
|
|
2658
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), (col, j) => {
|
|
2579
2659
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
2580
2660
|
key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
|
|
2581
2661
|
}, [
|
|
@@ -2601,7 +2681,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2601
2681
|
'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all',
|
|
2602
2682
|
'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
|
|
2603
2683
|
'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
|
|
2604
|
-
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'
|
|
2684
|
+
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
2605
2685
|
props: {
|
|
2606
2686
|
value: {
|
|
2607
2687
|
type: Array,
|
|
@@ -2807,6 +2887,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2807
2887
|
type: null,
|
|
2808
2888
|
default: null
|
|
2809
2889
|
},
|
|
2890
|
+
rowStyle: {
|
|
2891
|
+
type: null,
|
|
2892
|
+
default: null
|
|
2893
|
+
},
|
|
2810
2894
|
scrollable: {
|
|
2811
2895
|
type: Boolean,
|
|
2812
2896
|
default: false
|
|
@@ -2838,6 +2922,14 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2838
2922
|
stripedRows: {
|
|
2839
2923
|
type: Boolean,
|
|
2840
2924
|
default: false
|
|
2925
|
+
},
|
|
2926
|
+
tableStyle: {
|
|
2927
|
+
type: null,
|
|
2928
|
+
default: null
|
|
2929
|
+
},
|
|
2930
|
+
tableClass: {
|
|
2931
|
+
type: String,
|
|
2932
|
+
default: null
|
|
2841
2933
|
}
|
|
2842
2934
|
},
|
|
2843
2935
|
data() {
|
|
@@ -2852,8 +2944,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2852
2944
|
d_expandedRowKeys: null,
|
|
2853
2945
|
d_columnOrder: null,
|
|
2854
2946
|
d_editingRowKeys: null,
|
|
2855
|
-
|
|
2856
|
-
|
|
2947
|
+
d_editingMeta: {},
|
|
2948
|
+
d_filters: this.cloneFilters(this.filters)
|
|
2857
2949
|
};
|
|
2858
2950
|
},
|
|
2859
2951
|
rowTouched: false,
|
|
@@ -2929,6 +3021,10 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2929
3021
|
if (this.isStateful() && this.resizableColumns) {
|
|
2930
3022
|
this.restoreColumnWidths();
|
|
2931
3023
|
}
|
|
3024
|
+
|
|
3025
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3026
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3027
|
+
}
|
|
2932
3028
|
},
|
|
2933
3029
|
beforeUnmount() {
|
|
2934
3030
|
this.unbindColumnResizeEvents();
|
|
@@ -2939,12 +3035,18 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
2939
3035
|
if (this.isStateful()) {
|
|
2940
3036
|
this.saveState();
|
|
2941
3037
|
}
|
|
3038
|
+
|
|
3039
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3040
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3041
|
+
}
|
|
2942
3042
|
},
|
|
2943
3043
|
methods: {
|
|
2944
3044
|
columnProp(col, prop) {
|
|
2945
|
-
return
|
|
3045
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
2946
3046
|
},
|
|
2947
3047
|
onPage(event) {
|
|
3048
|
+
this.clearEditingMetaData();
|
|
3049
|
+
|
|
2948
3050
|
this.d_first = event.first;
|
|
2949
3051
|
this.d_rows = event.rows;
|
|
2950
3052
|
|
|
@@ -3004,6 +3106,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
3004
3106
|
}
|
|
3005
3107
|
},
|
|
3006
3108
|
sortSingle(value) {
|
|
3109
|
+
this.clearEditingMetaData();
|
|
3110
|
+
|
|
3007
3111
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
3008
3112
|
this.d_multiSortMeta = [
|
|
3009
3113
|
{field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
|
|
@@ -3038,6 +3142,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
3038
3142
|
return data;
|
|
3039
3143
|
},
|
|
3040
3144
|
sortMultiple(value) {
|
|
3145
|
+
this.clearEditingMetaData();
|
|
3146
|
+
|
|
3041
3147
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
3042
3148
|
const firstSortMeta = this.d_multiSortMeta[0];
|
|
3043
3149
|
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
@@ -3095,6 +3201,8 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
3095
3201
|
return;
|
|
3096
3202
|
}
|
|
3097
3203
|
|
|
3204
|
+
this.clearEditingMetaData();
|
|
3205
|
+
|
|
3098
3206
|
let globalFilterFieldsArray;
|
|
3099
3207
|
if (this.filters['global']) {
|
|
3100
3208
|
globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
@@ -3185,7 +3293,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
3185
3293
|
|
|
3186
3294
|
if (this.selectionMode) {
|
|
3187
3295
|
const rowData = e.data;
|
|
3188
|
-
const rowIndex = e.index;
|
|
3296
|
+
const rowIndex = this.d_first + e.index;
|
|
3189
3297
|
|
|
3190
3298
|
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
|
3191
3299
|
utils.DomHandler.clearSelection();
|
|
@@ -4105,18 +4213,6 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4105
4213
|
onCellEditCancel(event) {
|
|
4106
4214
|
this.$emit('cell-edit-cancel', event);
|
|
4107
4215
|
},
|
|
4108
|
-
onEditingCellChange(event) {
|
|
4109
|
-
let { rowIndex, cellIndex, editing } = event;
|
|
4110
|
-
let _editingCells = [...this.d_editingCells];
|
|
4111
|
-
|
|
4112
|
-
if (editing)
|
|
4113
|
-
_editingCells.push({ rowIndex, cellIndex });
|
|
4114
|
-
else
|
|
4115
|
-
_editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex));
|
|
4116
|
-
|
|
4117
|
-
this.d_editingCells = _editingCells;
|
|
4118
|
-
this.$emit('value-change', this.processedData);
|
|
4119
|
-
},
|
|
4120
4216
|
onRowEditInit(event) {
|
|
4121
4217
|
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
4122
4218
|
_editingRows.push(event.data);
|
|
@@ -4135,6 +4231,24 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4135
4231
|
this.$emit('update:editingRows', _editingRows);
|
|
4136
4232
|
this.$emit('row-edit-cancel', event);
|
|
4137
4233
|
},
|
|
4234
|
+
onEditingMetaChange(event) {
|
|
4235
|
+
let { data, field, index, editing } = event;
|
|
4236
|
+
let meta = this.d_editingMeta[index];
|
|
4237
|
+
|
|
4238
|
+
if (editing) {
|
|
4239
|
+
!meta && (meta = this.d_editingMeta[index] = { data: { ...data }, fields: [] });
|
|
4240
|
+
meta['fields'].push(field);
|
|
4241
|
+
}
|
|
4242
|
+
else if (meta) {
|
|
4243
|
+
const fields = meta['fields'].filter(f => f !== field);
|
|
4244
|
+
!fields.length ? (delete this.d_editingMeta[index]) : (meta['fields'] = fields);
|
|
4245
|
+
}
|
|
4246
|
+
},
|
|
4247
|
+
clearEditingMetaData() {
|
|
4248
|
+
if (this.editMode) {
|
|
4249
|
+
this.d_editingMeta = {};
|
|
4250
|
+
}
|
|
4251
|
+
},
|
|
4138
4252
|
createLazyLoadEvent(event) {
|
|
4139
4253
|
return {
|
|
4140
4254
|
originalEvent: event,
|
|
@@ -4234,7 +4348,22 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4234
4348
|
document.head.removeChild(this.styleElement);
|
|
4235
4349
|
this.styleElement = null;
|
|
4236
4350
|
}
|
|
4237
|
-
}
|
|
4351
|
+
},
|
|
4352
|
+
recursiveGetChildren(children, results) {
|
|
4353
|
+
if (!results) {
|
|
4354
|
+
results = [];
|
|
4355
|
+
}
|
|
4356
|
+
if (children && children.length) {
|
|
4357
|
+
children.forEach((child) => {
|
|
4358
|
+
if (child.children instanceof Array) {
|
|
4359
|
+
results.concat(this.recursiveGetChildren(child.children, results));
|
|
4360
|
+
} else if (child.type.name == 'Column') {
|
|
4361
|
+
results.push(child);
|
|
4362
|
+
}
|
|
4363
|
+
});
|
|
4364
|
+
}
|
|
4365
|
+
return results;
|
|
4366
|
+
},
|
|
4238
4367
|
},
|
|
4239
4368
|
computed: {
|
|
4240
4369
|
containerClass() {
|
|
@@ -4259,19 +4388,13 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4259
4388
|
];
|
|
4260
4389
|
},
|
|
4261
4390
|
columns() {
|
|
4262
|
-
let cols = [];
|
|
4263
4391
|
let children = this.getChildren();
|
|
4264
4392
|
|
|
4265
4393
|
if (!children) {
|
|
4266
4394
|
return;
|
|
4267
4395
|
}
|
|
4268
4396
|
|
|
4269
|
-
|
|
4270
|
-
if (child.children && child.children instanceof Array)
|
|
4271
|
-
cols = [...cols, ...child.children];
|
|
4272
|
-
else if (child.type.name === 'Column')
|
|
4273
|
-
cols.push(child);
|
|
4274
|
-
});
|
|
4397
|
+
const cols = this.recursiveGetChildren(children, []);
|
|
4275
4398
|
|
|
4276
4399
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
4277
4400
|
let orderedColumns = [];
|
|
@@ -4314,24 +4437,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4314
4437
|
hasFilters() {
|
|
4315
4438
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
4316
4439
|
},
|
|
4317
|
-
hasEditingCell() {
|
|
4318
|
-
return this.d_editingCells && this.d_editingCells.length !== 0;
|
|
4319
|
-
},
|
|
4320
4440
|
processedData() {
|
|
4321
4441
|
let data = this.value || [];
|
|
4322
4442
|
|
|
4323
|
-
if (!this.lazy
|
|
4443
|
+
if (!this.lazy) {
|
|
4324
4444
|
if (data && data.length) {
|
|
4445
|
+
if (this.hasFilters) {
|
|
4446
|
+
data = this.filter(data);
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4325
4449
|
if (this.sorted) {
|
|
4326
4450
|
if(this.sortMode === 'single')
|
|
4327
4451
|
data = this.sortSingle(data);
|
|
4328
4452
|
else if(this.sortMode === 'multiple')
|
|
4329
4453
|
data = this.sortMultiple(data);
|
|
4330
4454
|
}
|
|
4331
|
-
|
|
4332
|
-
if (this.hasFilters) {
|
|
4333
|
-
data = this.filter(data);
|
|
4334
|
-
}
|
|
4335
4455
|
}
|
|
4336
4456
|
}
|
|
4337
4457
|
|
|
@@ -4402,26 +4522,21 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4402
4522
|
class: "p-datatable-header"
|
|
4403
4523
|
};
|
|
4404
4524
|
const _hoisted_3 = {
|
|
4405
|
-
ref: "table",
|
|
4406
|
-
role: "table",
|
|
4407
|
-
class: "p-datatable-table"
|
|
4408
|
-
};
|
|
4409
|
-
const _hoisted_4 = {
|
|
4410
4525
|
key: 4,
|
|
4411
4526
|
class: "p-datatable-footer"
|
|
4412
4527
|
};
|
|
4413
|
-
const
|
|
4528
|
+
const _hoisted_4 = {
|
|
4414
4529
|
ref: "resizeHelper",
|
|
4415
4530
|
class: "p-column-resizer-helper",
|
|
4416
4531
|
style: {"display":"none"}
|
|
4417
4532
|
};
|
|
4418
|
-
const
|
|
4533
|
+
const _hoisted_5 = {
|
|
4419
4534
|
key: 5,
|
|
4420
4535
|
ref: "reorderIndicatorUp",
|
|
4421
4536
|
class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
|
|
4422
4537
|
style: {"position":"absolute","display":"none"}
|
|
4423
4538
|
};
|
|
4424
|
-
const
|
|
4539
|
+
const _hoisted_6 = {
|
|
4425
4540
|
key: 6,
|
|
4426
4541
|
ref: "reorderIndicatorDown",
|
|
4427
4542
|
class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
|
|
@@ -4453,7 +4568,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4453
4568
|
? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
|
|
4454
4569
|
key: 2,
|
|
4455
4570
|
rows: $data.d_rows,
|
|
4456
|
-
first: $data.d_first,
|
|
4571
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4457
4572
|
totalRecords: $options.totalRecordsLength,
|
|
4458
4573
|
pageLinkSize: $props.pageLinkSize,
|
|
4459
4574
|
template: $props.paginatorTemplate,
|
|
@@ -4463,19 +4578,19 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4463
4578
|
onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
|
|
4464
4579
|
alwaysShow: $props.alwaysShowPaginator
|
|
4465
4580
|
}, vue.createSlots({ _: 2 }, [
|
|
4466
|
-
(_ctx.$slots.
|
|
4581
|
+
(_ctx.$slots.paginatorstart)
|
|
4467
4582
|
? {
|
|
4468
|
-
name: "
|
|
4583
|
+
name: "start",
|
|
4469
4584
|
fn: vue.withCtx(() => [
|
|
4470
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4585
|
+
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
4471
4586
|
])
|
|
4472
4587
|
}
|
|
4473
4588
|
: undefined,
|
|
4474
|
-
(_ctx.$slots.
|
|
4589
|
+
(_ctx.$slots.paginatorend)
|
|
4475
4590
|
? {
|
|
4476
|
-
name: "
|
|
4591
|
+
name: "end",
|
|
4477
4592
|
fn: vue.withCtx(() => [
|
|
4478
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4593
|
+
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
4479
4594
|
])
|
|
4480
4595
|
}
|
|
4481
4596
|
: undefined
|
|
@@ -4485,7 +4600,12 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4485
4600
|
class: "p-datatable-wrapper",
|
|
4486
4601
|
style: {maxHeight: $props.scrollHeight}
|
|
4487
4602
|
}, [
|
|
4488
|
-
vue.createVNode("table",
|
|
4603
|
+
vue.createVNode("table", {
|
|
4604
|
+
ref: "table",
|
|
4605
|
+
role: "table",
|
|
4606
|
+
class: [$props.tableClass, 'p-datatable-table'],
|
|
4607
|
+
style: $props.tableStyle
|
|
4608
|
+
}, [
|
|
4489
4609
|
vue.createVNode(_component_DTTableHeader, {
|
|
4490
4610
|
columnGroup: $options.headerColumnGroup,
|
|
4491
4611
|
columns: $options.columns,
|
|
@@ -4530,6 +4650,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4530
4650
|
groupRowsBy: $props.groupRowsBy,
|
|
4531
4651
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4532
4652
|
rowClass: $props.rowClass,
|
|
4653
|
+
rowStyle: $props.rowStyle,
|
|
4533
4654
|
editMode: $props.editMode,
|
|
4534
4655
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4535
4656
|
scrollable: $props.scrollable,
|
|
@@ -4564,8 +4685,9 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4564
4685
|
onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
|
|
4565
4686
|
onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
|
|
4566
4687
|
onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
|
|
4567
|
-
|
|
4568
|
-
|
|
4688
|
+
editingMeta: $data.d_editingMeta,
|
|
4689
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4690
|
+
}, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
|
|
4569
4691
|
: vue.createCommentVNode("", true),
|
|
4570
4692
|
vue.createVNode(_component_DTTableBody, {
|
|
4571
4693
|
value: $options.dataToRender,
|
|
@@ -4581,6 +4703,7 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4581
4703
|
groupRowsBy: $props.groupRowsBy,
|
|
4582
4704
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4583
4705
|
rowClass: $props.rowClass,
|
|
4706
|
+
rowStyle: $props.rowStyle,
|
|
4584
4707
|
editMode: $props.editMode,
|
|
4585
4708
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4586
4709
|
scrollable: $props.scrollable,
|
|
@@ -4595,77 +4718,78 @@ this.primevue.datatable = (function (utils, api, Paginator, vue, OverlayEventBus
|
|
|
4595
4718
|
loading: $props.loading,
|
|
4596
4719
|
responsiveLayout: $props.responsiveLayout,
|
|
4597
4720
|
onRowgroupToggle: $options.toggleRowGroup,
|
|
4598
|
-
onRowClick: _cache[
|
|
4599
|
-
onRowDblclick: _cache[
|
|
4600
|
-
onRowRightclick: _cache[
|
|
4721
|
+
onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
|
|
4722
|
+
onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
|
|
4723
|
+
onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
|
|
4601
4724
|
onRowTouchend: $options.onRowTouchEnd,
|
|
4602
4725
|
onRowKeydown: $options.onRowKeyDown,
|
|
4603
4726
|
onRowMousedown: $options.onRowMouseDown,
|
|
4604
|
-
onRowDragstart: _cache[
|
|
4605
|
-
onRowDragover: _cache[
|
|
4606
|
-
onRowDragleave: _cache[
|
|
4607
|
-
onRowDragend: _cache[
|
|
4608
|
-
onRowDrop: _cache[
|
|
4609
|
-
onRowToggle: _cache[
|
|
4610
|
-
onRadioChange: _cache[
|
|
4611
|
-
onCheckboxChange: _cache[
|
|
4612
|
-
onCellEditInit: _cache[
|
|
4613
|
-
onCellEditComplete: _cache[
|
|
4614
|
-
onCellEditCancel: _cache[
|
|
4615
|
-
onRowEditInit: _cache[
|
|
4616
|
-
onRowEditSave: _cache[
|
|
4617
|
-
onRowEditCancel: _cache[
|
|
4618
|
-
|
|
4619
|
-
|
|
4727
|
+
onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
|
|
4728
|
+
onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
|
|
4729
|
+
onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
|
|
4730
|
+
onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
|
|
4731
|
+
onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
|
|
4732
|
+
onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
|
|
4733
|
+
onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
|
|
4734
|
+
onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
|
|
4735
|
+
onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
|
|
4736
|
+
onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
|
|
4737
|
+
onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
|
|
4738
|
+
onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
|
|
4739
|
+
onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
|
|
4740
|
+
onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
|
|
4741
|
+
editingMeta: $data.d_editingMeta,
|
|
4742
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4743
|
+
}, null, 8, ["value", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]),
|
|
4620
4744
|
vue.createVNode(_component_DTTableFooter, {
|
|
4621
4745
|
columnGroup: $options.footerColumnGroup,
|
|
4622
4746
|
columns: $options.columns
|
|
4623
4747
|
}, null, 8, ["columnGroup", "columns"])
|
|
4624
|
-
],
|
|
4748
|
+
], 6)
|
|
4625
4749
|
], 4),
|
|
4626
4750
|
($options.paginatorBottom)
|
|
4627
4751
|
? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
|
|
4628
4752
|
key: 3,
|
|
4629
4753
|
rows: $data.d_rows,
|
|
4630
|
-
first: $data.d_first,
|
|
4754
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4631
4755
|
totalRecords: $options.totalRecordsLength,
|
|
4632
4756
|
pageLinkSize: $props.pageLinkSize,
|
|
4633
4757
|
template: $props.paginatorTemplate,
|
|
4634
4758
|
rowsPerPageOptions: $props.rowsPerPageOptions,
|
|
4635
4759
|
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
4636
4760
|
class: "p-paginator-bottom",
|
|
4637
|
-
onPage: _cache[
|
|
4761
|
+
onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
|
|
4638
4762
|
alwaysShow: $props.alwaysShowPaginator
|
|
4639
4763
|
}, vue.createSlots({ _: 2 }, [
|
|
4640
|
-
(_ctx.$slots.
|
|
4764
|
+
(_ctx.$slots.paginatorstart)
|
|
4641
4765
|
? {
|
|
4642
|
-
name: "
|
|
4766
|
+
name: "start",
|
|
4643
4767
|
fn: vue.withCtx(() => [
|
|
4644
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4768
|
+
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
4645
4769
|
])
|
|
4646
4770
|
}
|
|
4647
4771
|
: undefined,
|
|
4648
|
-
(_ctx.$slots.
|
|
4772
|
+
(_ctx.$slots.paginatorend)
|
|
4649
4773
|
? {
|
|
4650
|
-
name: "
|
|
4774
|
+
name: "end",
|
|
4651
4775
|
fn: vue.withCtx(() => [
|
|
4652
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4776
|
+
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
4653
4777
|
])
|
|
4654
4778
|
}
|
|
4655
4779
|
: undefined
|
|
4656
4780
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
4657
4781
|
: vue.createCommentVNode("", true),
|
|
4658
4782
|
(_ctx.$slots.footer)
|
|
4659
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
4783
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_3, [
|
|
4660
4784
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
4661
4785
|
]))
|
|
4662
4786
|
: vue.createCommentVNode("", true),
|
|
4663
|
-
vue.createVNode("div",
|
|
4787
|
+
vue.createVNode("div", _hoisted_4, null, 512),
|
|
4664
4788
|
($props.reorderableColumns)
|
|
4665
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
4789
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_5, null, 512))
|
|
4666
4790
|
: vue.createCommentVNode("", true),
|
|
4667
4791
|
($props.reorderableColumns)
|
|
4668
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
4792
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_6, null, 512))
|
|
4669
4793
|
: vue.createCommentVNode("", true)
|
|
4670
4794
|
], 2))
|
|
4671
4795
|
}
|