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
|
@@ -355,7 +355,15 @@ var script$9 = {
|
|
|
355
355
|
hide() {
|
|
356
356
|
this.overlayVisible = false;
|
|
357
357
|
},
|
|
358
|
-
onContentClick() {
|
|
358
|
+
onContentClick(event) {
|
|
359
|
+
this.selfClick = true;
|
|
360
|
+
|
|
361
|
+
OverlayEventBus__default['default'].emit('overlay-click', {
|
|
362
|
+
originalEvent: event,
|
|
363
|
+
target: this.overlay
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
onContentMouseDown() {
|
|
359
367
|
this.selfClick = true;
|
|
360
368
|
},
|
|
361
369
|
onOverlayEnter(el) {
|
|
@@ -369,7 +377,7 @@ var script$9 = {
|
|
|
369
377
|
this.bindResizeListener();
|
|
370
378
|
|
|
371
379
|
this.overlayEventListener = (e) => {
|
|
372
|
-
if (this.
|
|
380
|
+
if (!this.isOutsideClicked(e.target)) {
|
|
373
381
|
this.selfClick = true;
|
|
374
382
|
}
|
|
375
383
|
};
|
|
@@ -392,13 +400,16 @@ var script$9 = {
|
|
|
392
400
|
overlayRef(el) {
|
|
393
401
|
this.overlay = el;
|
|
394
402
|
},
|
|
395
|
-
|
|
396
|
-
return this
|
|
403
|
+
isOutsideClicked(target) {
|
|
404
|
+
return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
|
|
405
|
+
},
|
|
406
|
+
isTargetClicked(target) {
|
|
407
|
+
return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
|
|
397
408
|
},
|
|
398
409
|
bindOutsideClickListener() {
|
|
399
410
|
if (!this.outsideClickListener) {
|
|
400
411
|
this.outsideClickListener = (event) => {
|
|
401
|
-
if (this.overlayVisible && !this.selfClick &&
|
|
412
|
+
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
|
|
402
413
|
this.overlayVisible = false;
|
|
403
414
|
}
|
|
404
415
|
this.selfClick = false;
|
|
@@ -531,7 +542,7 @@ const _hoisted_6$1 = {
|
|
|
531
542
|
key: 0,
|
|
532
543
|
class: "p-column-filter-operator"
|
|
533
544
|
};
|
|
534
|
-
const _hoisted_7
|
|
545
|
+
const _hoisted_7 = { class: "p-column-filter-constraints" };
|
|
535
546
|
const _hoisted_8 = {
|
|
536
547
|
key: 1,
|
|
537
548
|
class: "p-column-filter-add-rule"
|
|
@@ -590,7 +601,8 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
590
601
|
ref: $options.overlayRef,
|
|
591
602
|
class: $options.overlayClass,
|
|
592
603
|
onKeydown: _cache[12] || (_cache[12] = vue.withKeys((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
|
|
593
|
-
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args)))
|
|
604
|
+
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
|
|
605
|
+
onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
|
|
594
606
|
}, [
|
|
595
607
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.filterHeaderTemplate), {
|
|
596
608
|
field: $props.field,
|
|
@@ -634,7 +646,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
634
646
|
}, null, 8, ["options", "modelValue"])
|
|
635
647
|
]))
|
|
636
648
|
: vue.createCommentVNode("", true),
|
|
637
|
-
vue.createVNode("div", _hoisted_7
|
|
649
|
+
vue.createVNode("div", _hoisted_7, [
|
|
638
650
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.fieldConstraints, (fieldConstraint, i) => {
|
|
639
651
|
return (vue.openBlock(), vue.createBlock("div", {
|
|
640
652
|
key: i,
|
|
@@ -816,7 +828,7 @@ var script$8 = {
|
|
|
816
828
|
},
|
|
817
829
|
methods: {
|
|
818
830
|
columnProp(prop) {
|
|
819
|
-
return
|
|
831
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
820
832
|
},
|
|
821
833
|
onClick(event) {
|
|
822
834
|
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
@@ -1122,7 +1134,7 @@ var script$7 = {
|
|
|
1122
1134
|
},
|
|
1123
1135
|
methods: {
|
|
1124
1136
|
columnProp(col, prop) {
|
|
1125
|
-
return
|
|
1137
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1126
1138
|
},
|
|
1127
1139
|
getFilterColumnHeaderClass(column) {
|
|
1128
1140
|
return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
|
|
@@ -1131,6 +1143,20 @@ var script$7 = {
|
|
|
1131
1143
|
},
|
|
1132
1144
|
getFilterColumnHeaderStyle(column) {
|
|
1133
1145
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
1146
|
+
},
|
|
1147
|
+
getHeaderColumns(row){
|
|
1148
|
+
let cols = [];
|
|
1149
|
+
|
|
1150
|
+
if (row.children && row.children.default) {
|
|
1151
|
+
row.children.default().forEach(child => {
|
|
1152
|
+
if (child.children && child.children instanceof Array)
|
|
1153
|
+
cols = [...cols, ...child.children];
|
|
1154
|
+
else if (child.type.name === 'Column')
|
|
1155
|
+
cols.push(child);
|
|
1156
|
+
});
|
|
1157
|
+
|
|
1158
|
+
return cols;
|
|
1159
|
+
}
|
|
1134
1160
|
}
|
|
1135
1161
|
},
|
|
1136
1162
|
components: {
|
|
@@ -1263,7 +1289,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1263
1289
|
key: i,
|
|
1264
1290
|
role: "row"
|
|
1265
1291
|
}, [
|
|
1266
|
-
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(
|
|
1292
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getHeaderColumns(row), (col, j) => {
|
|
1267
1293
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
1268
1294
|
key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
|
|
1269
1295
|
}, [
|
|
@@ -1418,8 +1444,8 @@ script$5.render = render$5;
|
|
|
1418
1444
|
|
|
1419
1445
|
var script$4 = {
|
|
1420
1446
|
name: 'BodyCell',
|
|
1421
|
-
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1422
|
-
'row-toggle', 'radio-change', 'checkbox-change'],
|
|
1447
|
+
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1448
|
+
'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1423
1449
|
props: {
|
|
1424
1450
|
rowData: {
|
|
1425
1451
|
type: Object,
|
|
@@ -1453,6 +1479,10 @@ var script$4 = {
|
|
|
1453
1479
|
type: Boolean,
|
|
1454
1480
|
default: false
|
|
1455
1481
|
},
|
|
1482
|
+
editingMeta: {
|
|
1483
|
+
type: Object,
|
|
1484
|
+
default: null
|
|
1485
|
+
},
|
|
1456
1486
|
editMode: {
|
|
1457
1487
|
type: String,
|
|
1458
1488
|
default: null
|
|
@@ -1474,6 +1504,9 @@ var script$4 = {
|
|
|
1474
1504
|
watch: {
|
|
1475
1505
|
editing(newValue) {
|
|
1476
1506
|
this.d_editing = newValue;
|
|
1507
|
+
},
|
|
1508
|
+
'$data.d_editing': function(newValue) {
|
|
1509
|
+
this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
|
|
1477
1510
|
}
|
|
1478
1511
|
},
|
|
1479
1512
|
mounted() {
|
|
@@ -1485,6 +1518,11 @@ var script$4 = {
|
|
|
1485
1518
|
if (this.columnProp('frozen')) {
|
|
1486
1519
|
this.updateStickyPosition();
|
|
1487
1520
|
}
|
|
1521
|
+
|
|
1522
|
+
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
|
|
1523
|
+
const focusableEl = utils.DomHandler.getFirstFocusableElement(this.$el);
|
|
1524
|
+
focusableEl && focusableEl.focus();
|
|
1525
|
+
}
|
|
1488
1526
|
},
|
|
1489
1527
|
beforeUnmount() {
|
|
1490
1528
|
if (this.overlayEventListener) {
|
|
@@ -1494,10 +1532,10 @@ var script$4 = {
|
|
|
1494
1532
|
},
|
|
1495
1533
|
methods: {
|
|
1496
1534
|
columnProp(prop) {
|
|
1497
|
-
return
|
|
1535
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
1498
1536
|
},
|
|
1499
1537
|
resolveFieldData() {
|
|
1500
|
-
return utils.ObjectUtils.resolveFieldData(this.rowData, this.
|
|
1538
|
+
return utils.ObjectUtils.resolveFieldData(this.rowData, this.field);
|
|
1501
1539
|
},
|
|
1502
1540
|
toggleRow(event) {
|
|
1503
1541
|
this.$emit('row-toggle', {
|
|
@@ -1536,7 +1574,6 @@ var script$4 = {
|
|
|
1536
1574
|
switchCellToViewMode() {
|
|
1537
1575
|
this.d_editing = false;
|
|
1538
1576
|
this.unbindDocumentEditListener();
|
|
1539
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: false});
|
|
1540
1577
|
OverlayEventBus__default['default'].off('overlay-click', this.overlayEventListener);
|
|
1541
1578
|
this.overlayEventListener = null;
|
|
1542
1579
|
},
|
|
@@ -1547,8 +1584,7 @@ var script$4 = {
|
|
|
1547
1584
|
if (!this.d_editing) {
|
|
1548
1585
|
this.d_editing = true;
|
|
1549
1586
|
this.bindDocumentEditListener();
|
|
1550
|
-
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1551
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: true});
|
|
1587
|
+
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1552
1588
|
|
|
1553
1589
|
this.overlayEventListener = (e) => {
|
|
1554
1590
|
if (this.$el && this.$el.contains(e.target)) {
|
|
@@ -1560,10 +1596,13 @@ var script$4 = {
|
|
|
1560
1596
|
}
|
|
1561
1597
|
},
|
|
1562
1598
|
completeEdit(event, type) {
|
|
1563
|
-
|
|
1599
|
+
const completeEvent = {
|
|
1564
1600
|
originalEvent: event,
|
|
1565
1601
|
data: this.rowData,
|
|
1566
|
-
|
|
1602
|
+
newData: this.editingRowData,
|
|
1603
|
+
value: this.rowData[this.field],
|
|
1604
|
+
newValue: this.editingRowData[this.field],
|
|
1605
|
+
field: this.field,
|
|
1567
1606
|
index: this.rowIndex,
|
|
1568
1607
|
type: type,
|
|
1569
1608
|
defaultPrevented: false,
|
|
@@ -1587,7 +1626,7 @@ var script$4 = {
|
|
|
1587
1626
|
|
|
1588
1627
|
case 27:
|
|
1589
1628
|
this.switchCellToViewMode();
|
|
1590
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1629
|
+
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1591
1630
|
break;
|
|
1592
1631
|
|
|
1593
1632
|
case 9:
|
|
@@ -1676,13 +1715,13 @@ var script$4 = {
|
|
|
1676
1715
|
return (utils.DomHandler.find(this.$el, '.p-invalid').length === 0);
|
|
1677
1716
|
},
|
|
1678
1717
|
onRowEditInit(event) {
|
|
1679
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1718
|
+
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1680
1719
|
},
|
|
1681
1720
|
onRowEditSave(event) {
|
|
1682
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, field: this.
|
|
1721
|
+
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1683
1722
|
},
|
|
1684
1723
|
onRowEditCancel(event) {
|
|
1685
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1724
|
+
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1686
1725
|
},
|
|
1687
1726
|
updateStickyPosition() {
|
|
1688
1727
|
if (this.columnProp('frozen')) {
|
|
@@ -1707,6 +1746,12 @@ var script$4 = {
|
|
|
1707
1746
|
}
|
|
1708
1747
|
},
|
|
1709
1748
|
computed: {
|
|
1749
|
+
editingRowData() {
|
|
1750
|
+
return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
|
|
1751
|
+
},
|
|
1752
|
+
field() {
|
|
1753
|
+
return this.columnProp('field');
|
|
1754
|
+
},
|
|
1710
1755
|
containerClass() {
|
|
1711
1756
|
return [this.columnProp('bodyClass'), this.columnProp('class'), {
|
|
1712
1757
|
'p-selection-column': this.columnProp('selectionMode') != null,
|
|
@@ -1759,93 +1804,104 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1759
1804
|
key: 1,
|
|
1760
1805
|
data: $props.rowData,
|
|
1761
1806
|
column: $props.column,
|
|
1807
|
+
field: $options.field,
|
|
1762
1808
|
index: $props.rowIndex,
|
|
1763
1809
|
frozenRow: $props.frozenRow
|
|
1764
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1810
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1765
1811
|
: ($props.column.children && $props.column.children.editor && $data.d_editing)
|
|
1766
1812
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.editor), {
|
|
1767
1813
|
key: 2,
|
|
1768
|
-
data: $
|
|
1814
|
+
data: $options.editingRowData,
|
|
1769
1815
|
column: $props.column,
|
|
1816
|
+
field: $options.field,
|
|
1770
1817
|
index: $props.rowIndex,
|
|
1771
1818
|
frozenRow: $props.frozenRow
|
|
1772
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1773
|
-
: ($
|
|
1774
|
-
? (vue.openBlock(), vue.createBlock(vue.
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1819
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1820
|
+
: ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
|
|
1821
|
+
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
|
|
1822
|
+
key: 3,
|
|
1823
|
+
data: $options.editingRowData,
|
|
1824
|
+
column: $props.column,
|
|
1825
|
+
field: $options.field,
|
|
1826
|
+
index: $props.rowIndex,
|
|
1827
|
+
frozenRow: $props.frozenRow
|
|
1828
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1829
|
+
: ($options.columnProp('selectionMode'))
|
|
1830
|
+
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 4 }, [
|
|
1831
|
+
($options.columnProp('selectionMode') === 'single')
|
|
1832
|
+
? (vue.openBlock(), vue.createBlock(_component_DTRadioButton, {
|
|
1833
|
+
key: 0,
|
|
1785
1834
|
value: $props.rowData,
|
|
1786
1835
|
checked: $props.selected,
|
|
1787
|
-
onChange: $options.
|
|
1836
|
+
onChange: $options.toggleRowWithRadio
|
|
1788
1837
|
}, null, 8, ["value", "checked", "onChange"]))
|
|
1789
|
-
:
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1838
|
+
: ($options.columnProp('selectionMode') ==='multiple')
|
|
1839
|
+
? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
|
|
1840
|
+
key: 1,
|
|
1841
|
+
value: $props.rowData,
|
|
1842
|
+
checked: $props.selected,
|
|
1843
|
+
onChange: $options.toggleRowWithCheckbox
|
|
1844
|
+
}, null, 8, ["value", "checked", "onChange"]))
|
|
1845
|
+
: vue.createCommentVNode("", true)
|
|
1846
|
+
], 64))
|
|
1847
|
+
: ($options.columnProp('rowReorder'))
|
|
1848
|
+
? (vue.openBlock(), vue.createBlock("i", {
|
|
1798
1849
|
key: 5,
|
|
1799
|
-
class:
|
|
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
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1850
|
+
class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
|
|
1851
|
+
}, null, 2))
|
|
1852
|
+
: ($options.columnProp('expander'))
|
|
1853
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1854
|
+
key: 6,
|
|
1855
|
+
class: "p-row-toggler p-link",
|
|
1856
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
|
|
1857
|
+
type: "button"
|
|
1858
|
+
}, [
|
|
1859
|
+
vue.createVNode("span", { class: $props.rowTogglerIcon }, null, 2)
|
|
1860
|
+
], 512)), [
|
|
1861
|
+
[_directive_ripple]
|
|
1862
|
+
])
|
|
1863
|
+
: ($props.editMode === 'row' && $options.columnProp('rowEditor'))
|
|
1864
|
+
? (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 7 }, [
|
|
1865
|
+
(!$data.d_editing)
|
|
1866
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1867
|
+
key: 0,
|
|
1868
|
+
class: "p-row-editor-init p-link",
|
|
1869
|
+
onClick: _cache[2] || (_cache[2] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
|
|
1870
|
+
type: "button"
|
|
1871
|
+
}, [
|
|
1872
|
+
_hoisted_2$3
|
|
1873
|
+
], 512)), [
|
|
1874
|
+
[_directive_ripple]
|
|
1875
|
+
])
|
|
1876
|
+
: vue.createCommentVNode("", true),
|
|
1877
|
+
($data.d_editing)
|
|
1878
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1879
|
+
key: 1,
|
|
1880
|
+
class: "p-row-editor-save p-link",
|
|
1881
|
+
onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
|
|
1882
|
+
type: "button"
|
|
1883
|
+
}, [
|
|
1884
|
+
_hoisted_3$1
|
|
1885
|
+
], 512)), [
|
|
1886
|
+
[_directive_ripple]
|
|
1887
|
+
])
|
|
1888
|
+
: vue.createCommentVNode("", true),
|
|
1889
|
+
($data.d_editing)
|
|
1890
|
+
? vue.withDirectives((vue.openBlock(), vue.createBlock("button", {
|
|
1891
|
+
key: 2,
|
|
1892
|
+
class: "p-row-editor-cancel p-link",
|
|
1893
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
|
|
1894
|
+
type: "button"
|
|
1895
|
+
}, [
|
|
1896
|
+
_hoisted_4$1
|
|
1897
|
+
], 512)), [
|
|
1898
|
+
[_directive_ripple]
|
|
1899
|
+
])
|
|
1900
|
+
: vue.createCommentVNode("", true)
|
|
1901
|
+
], 64))
|
|
1902
|
+
: (vue.openBlock(), vue.createBlock(vue.Fragment, { key: 8 }, [
|
|
1903
|
+
vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)
|
|
1904
|
+
], 64))
|
|
1849
1905
|
], 38))
|
|
1850
1906
|
}
|
|
1851
1907
|
|
|
@@ -1856,7 +1912,7 @@ var script$3 = {
|
|
|
1856
1912
|
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
|
|
1857
1913
|
'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
|
|
1858
1914
|
'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
|
|
1859
|
-
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-
|
|
1915
|
+
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1860
1916
|
props: {
|
|
1861
1917
|
value: {
|
|
1862
1918
|
type: Array,
|
|
@@ -1934,6 +1990,10 @@ var script$3 = {
|
|
|
1934
1990
|
type: null,
|
|
1935
1991
|
default: null
|
|
1936
1992
|
},
|
|
1993
|
+
rowStyle: {
|
|
1994
|
+
type: null,
|
|
1995
|
+
default: null
|
|
1996
|
+
},
|
|
1937
1997
|
editMode: {
|
|
1938
1998
|
type: String,
|
|
1939
1999
|
default: null
|
|
@@ -1950,6 +2010,10 @@ var script$3 = {
|
|
|
1950
2010
|
type: null,
|
|
1951
2011
|
default: null
|
|
1952
2012
|
},
|
|
2013
|
+
editingMeta: {
|
|
2014
|
+
type: Object,
|
|
2015
|
+
default: null
|
|
2016
|
+
},
|
|
1953
2017
|
loading: {
|
|
1954
2018
|
type: Boolean,
|
|
1955
2019
|
default: false
|
|
@@ -1992,7 +2056,7 @@ var script$3 = {
|
|
|
1992
2056
|
},
|
|
1993
2057
|
methods: {
|
|
1994
2058
|
columnProp(col, prop) {
|
|
1995
|
-
return
|
|
2059
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1996
2060
|
},
|
|
1997
2061
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1998
2062
|
let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
@@ -2251,8 +2315,8 @@ var script$3 = {
|
|
|
2251
2315
|
onRowEditCancel(event) {
|
|
2252
2316
|
this.$emit('row-edit-cancel', event);
|
|
2253
2317
|
},
|
|
2254
|
-
|
|
2255
|
-
this.$emit('editing-
|
|
2318
|
+
onEditingMetaChange(event) {
|
|
2319
|
+
this.$emit('editing-meta-change', event);
|
|
2256
2320
|
},
|
|
2257
2321
|
updateFrozenRowStickyPosition() {
|
|
2258
2322
|
this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
@@ -2330,19 +2394,20 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2330
2394
|
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
|
|
2331
2395
|
? (vue.openBlock(), vue.createBlock("tr", {
|
|
2332
2396
|
class: $options.getRowClass(rowData),
|
|
2397
|
+
style: $props.rowStyle,
|
|
2333
2398
|
key: $options.getRowKey(rowData, index),
|
|
2334
2399
|
onClick: $event => ($options.onRowClick($event, rowData, index)),
|
|
2335
2400
|
onDblclick: $event => ($options.onRowDblClick($event, rowData, index)),
|
|
2336
2401
|
onContextmenu: $event => ($options.onRowRightClick($event, rowData, index)),
|
|
2337
|
-
onTouchend: _cache[
|
|
2402
|
+
onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
|
|
2338
2403
|
onKeydown: $event => ($options.onRowKeyDown($event, rowData, index)),
|
|
2339
2404
|
tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
|
|
2340
|
-
onMousedown: _cache[
|
|
2405
|
+
onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
|
|
2341
2406
|
onDragstart: $event => ($options.onRowDragStart($event, index)),
|
|
2342
2407
|
onDragover: $event => ($options.onRowDragOver($event,index)),
|
|
2343
|
-
onDragleave: _cache[
|
|
2344
|
-
onDragend: _cache[
|
|
2345
|
-
onDrop: _cache[
|
|
2408
|
+
onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
|
|
2409
|
+
onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
|
|
2410
|
+
onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
|
|
2346
2411
|
role: "row"
|
|
2347
2412
|
}, [
|
|
2348
2413
|
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
@@ -2372,12 +2437,13 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2372
2437
|
onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
|
|
2373
2438
|
onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
|
|
2374
2439
|
onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
|
|
2375
|
-
|
|
2376
|
-
|
|
2440
|
+
editingMeta: $props.editingMeta,
|
|
2441
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
2442
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange"]))
|
|
2377
2443
|
: vue.createCommentVNode("", true)
|
|
2378
2444
|
], 64))
|
|
2379
2445
|
}), 128))
|
|
2380
|
-
],
|
|
2446
|
+
], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
|
|
2381
2447
|
: vue.createCommentVNode("", true),
|
|
2382
2448
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
2383
2449
|
? (vue.openBlock(), vue.createBlock("tr", {
|
|
@@ -2447,7 +2513,7 @@ var script$2 = {
|
|
|
2447
2513
|
},
|
|
2448
2514
|
methods: {
|
|
2449
2515
|
columnProp(prop) {
|
|
2450
|
-
return
|
|
2516
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
2451
2517
|
},
|
|
2452
2518
|
updateStickyPosition() {
|
|
2453
2519
|
if (this.columnProp('frozen')) {
|
|
@@ -2520,7 +2586,21 @@ var script$1 = {
|
|
|
2520
2586
|
},
|
|
2521
2587
|
methods: {
|
|
2522
2588
|
columnProp(col, prop) {
|
|
2523
|
-
return
|
|
2589
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
2590
|
+
},
|
|
2591
|
+
getFooterColumns(row){
|
|
2592
|
+
let cols = [];
|
|
2593
|
+
|
|
2594
|
+
if (row.children && row.children.default) {
|
|
2595
|
+
row.children.default().forEach(child => {
|
|
2596
|
+
if (child.children && child.children instanceof Array)
|
|
2597
|
+
cols = [...cols, ...child.children];
|
|
2598
|
+
else if (child.type.name === 'Column')
|
|
2599
|
+
cols.push(child);
|
|
2600
|
+
});
|
|
2601
|
+
|
|
2602
|
+
return cols;
|
|
2603
|
+
}
|
|
2524
2604
|
}
|
|
2525
2605
|
},
|
|
2526
2606
|
computed: {
|
|
@@ -2582,7 +2662,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2582
2662
|
key: i,
|
|
2583
2663
|
role: "row"
|
|
2584
2664
|
}, [
|
|
2585
|
-
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList(
|
|
2665
|
+
(vue.openBlock(true), vue.createBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), (col, j) => {
|
|
2586
2666
|
return (vue.openBlock(), vue.createBlock(vue.Fragment, {
|
|
2587
2667
|
key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
|
|
2588
2668
|
}, [
|
|
@@ -2608,7 +2688,7 @@ var script = {
|
|
|
2608
2688
|
'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all',
|
|
2609
2689
|
'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
|
|
2610
2690
|
'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
|
|
2611
|
-
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'
|
|
2691
|
+
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
2612
2692
|
props: {
|
|
2613
2693
|
value: {
|
|
2614
2694
|
type: Array,
|
|
@@ -2814,6 +2894,10 @@ var script = {
|
|
|
2814
2894
|
type: null,
|
|
2815
2895
|
default: null
|
|
2816
2896
|
},
|
|
2897
|
+
rowStyle: {
|
|
2898
|
+
type: null,
|
|
2899
|
+
default: null
|
|
2900
|
+
},
|
|
2817
2901
|
scrollable: {
|
|
2818
2902
|
type: Boolean,
|
|
2819
2903
|
default: false
|
|
@@ -2845,6 +2929,14 @@ var script = {
|
|
|
2845
2929
|
stripedRows: {
|
|
2846
2930
|
type: Boolean,
|
|
2847
2931
|
default: false
|
|
2932
|
+
},
|
|
2933
|
+
tableStyle: {
|
|
2934
|
+
type: null,
|
|
2935
|
+
default: null
|
|
2936
|
+
},
|
|
2937
|
+
tableClass: {
|
|
2938
|
+
type: String,
|
|
2939
|
+
default: null
|
|
2848
2940
|
}
|
|
2849
2941
|
},
|
|
2850
2942
|
data() {
|
|
@@ -2859,8 +2951,8 @@ var script = {
|
|
|
2859
2951
|
d_expandedRowKeys: null,
|
|
2860
2952
|
d_columnOrder: null,
|
|
2861
2953
|
d_editingRowKeys: null,
|
|
2862
|
-
|
|
2863
|
-
|
|
2954
|
+
d_editingMeta: {},
|
|
2955
|
+
d_filters: this.cloneFilters(this.filters)
|
|
2864
2956
|
};
|
|
2865
2957
|
},
|
|
2866
2958
|
rowTouched: false,
|
|
@@ -2936,6 +3028,10 @@ var script = {
|
|
|
2936
3028
|
if (this.isStateful() && this.resizableColumns) {
|
|
2937
3029
|
this.restoreColumnWidths();
|
|
2938
3030
|
}
|
|
3031
|
+
|
|
3032
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3033
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3034
|
+
}
|
|
2939
3035
|
},
|
|
2940
3036
|
beforeUnmount() {
|
|
2941
3037
|
this.unbindColumnResizeEvents();
|
|
@@ -2946,12 +3042,18 @@ var script = {
|
|
|
2946
3042
|
if (this.isStateful()) {
|
|
2947
3043
|
this.saveState();
|
|
2948
3044
|
}
|
|
3045
|
+
|
|
3046
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3047
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3048
|
+
}
|
|
2949
3049
|
},
|
|
2950
3050
|
methods: {
|
|
2951
3051
|
columnProp(col, prop) {
|
|
2952
|
-
return
|
|
3052
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
2953
3053
|
},
|
|
2954
3054
|
onPage(event) {
|
|
3055
|
+
this.clearEditingMetaData();
|
|
3056
|
+
|
|
2955
3057
|
this.d_first = event.first;
|
|
2956
3058
|
this.d_rows = event.rows;
|
|
2957
3059
|
|
|
@@ -3011,6 +3113,8 @@ var script = {
|
|
|
3011
3113
|
}
|
|
3012
3114
|
},
|
|
3013
3115
|
sortSingle(value) {
|
|
3116
|
+
this.clearEditingMetaData();
|
|
3117
|
+
|
|
3014
3118
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
3015
3119
|
this.d_multiSortMeta = [
|
|
3016
3120
|
{field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
|
|
@@ -3045,6 +3149,8 @@ var script = {
|
|
|
3045
3149
|
return data;
|
|
3046
3150
|
},
|
|
3047
3151
|
sortMultiple(value) {
|
|
3152
|
+
this.clearEditingMetaData();
|
|
3153
|
+
|
|
3048
3154
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
3049
3155
|
const firstSortMeta = this.d_multiSortMeta[0];
|
|
3050
3156
|
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
@@ -3102,6 +3208,8 @@ var script = {
|
|
|
3102
3208
|
return;
|
|
3103
3209
|
}
|
|
3104
3210
|
|
|
3211
|
+
this.clearEditingMetaData();
|
|
3212
|
+
|
|
3105
3213
|
let globalFilterFieldsArray;
|
|
3106
3214
|
if (this.filters['global']) {
|
|
3107
3215
|
globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
@@ -3192,7 +3300,7 @@ var script = {
|
|
|
3192
3300
|
|
|
3193
3301
|
if (this.selectionMode) {
|
|
3194
3302
|
const rowData = e.data;
|
|
3195
|
-
const rowIndex = e.index;
|
|
3303
|
+
const rowIndex = this.d_first + e.index;
|
|
3196
3304
|
|
|
3197
3305
|
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
|
3198
3306
|
utils.DomHandler.clearSelection();
|
|
@@ -4112,18 +4220,6 @@ var script = {
|
|
|
4112
4220
|
onCellEditCancel(event) {
|
|
4113
4221
|
this.$emit('cell-edit-cancel', event);
|
|
4114
4222
|
},
|
|
4115
|
-
onEditingCellChange(event) {
|
|
4116
|
-
let { rowIndex, cellIndex, editing } = event;
|
|
4117
|
-
let _editingCells = [...this.d_editingCells];
|
|
4118
|
-
|
|
4119
|
-
if (editing)
|
|
4120
|
-
_editingCells.push({ rowIndex, cellIndex });
|
|
4121
|
-
else
|
|
4122
|
-
_editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex));
|
|
4123
|
-
|
|
4124
|
-
this.d_editingCells = _editingCells;
|
|
4125
|
-
this.$emit('value-change', this.processedData);
|
|
4126
|
-
},
|
|
4127
4223
|
onRowEditInit(event) {
|
|
4128
4224
|
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
4129
4225
|
_editingRows.push(event.data);
|
|
@@ -4142,6 +4238,24 @@ var script = {
|
|
|
4142
4238
|
this.$emit('update:editingRows', _editingRows);
|
|
4143
4239
|
this.$emit('row-edit-cancel', event);
|
|
4144
4240
|
},
|
|
4241
|
+
onEditingMetaChange(event) {
|
|
4242
|
+
let { data, field, index, editing } = event;
|
|
4243
|
+
let meta = this.d_editingMeta[index];
|
|
4244
|
+
|
|
4245
|
+
if (editing) {
|
|
4246
|
+
!meta && (meta = this.d_editingMeta[index] = { data: { ...data }, fields: [] });
|
|
4247
|
+
meta['fields'].push(field);
|
|
4248
|
+
}
|
|
4249
|
+
else if (meta) {
|
|
4250
|
+
const fields = meta['fields'].filter(f => f !== field);
|
|
4251
|
+
!fields.length ? (delete this.d_editingMeta[index]) : (meta['fields'] = fields);
|
|
4252
|
+
}
|
|
4253
|
+
},
|
|
4254
|
+
clearEditingMetaData() {
|
|
4255
|
+
if (this.editMode) {
|
|
4256
|
+
this.d_editingMeta = {};
|
|
4257
|
+
}
|
|
4258
|
+
},
|
|
4145
4259
|
createLazyLoadEvent(event) {
|
|
4146
4260
|
return {
|
|
4147
4261
|
originalEvent: event,
|
|
@@ -4241,7 +4355,22 @@ var script = {
|
|
|
4241
4355
|
document.head.removeChild(this.styleElement);
|
|
4242
4356
|
this.styleElement = null;
|
|
4243
4357
|
}
|
|
4244
|
-
}
|
|
4358
|
+
},
|
|
4359
|
+
recursiveGetChildren(children, results) {
|
|
4360
|
+
if (!results) {
|
|
4361
|
+
results = [];
|
|
4362
|
+
}
|
|
4363
|
+
if (children && children.length) {
|
|
4364
|
+
children.forEach((child) => {
|
|
4365
|
+
if (child.children instanceof Array) {
|
|
4366
|
+
results.concat(this.recursiveGetChildren(child.children, results));
|
|
4367
|
+
} else if (child.type.name == 'Column') {
|
|
4368
|
+
results.push(child);
|
|
4369
|
+
}
|
|
4370
|
+
});
|
|
4371
|
+
}
|
|
4372
|
+
return results;
|
|
4373
|
+
},
|
|
4245
4374
|
},
|
|
4246
4375
|
computed: {
|
|
4247
4376
|
containerClass() {
|
|
@@ -4266,19 +4395,13 @@ var script = {
|
|
|
4266
4395
|
];
|
|
4267
4396
|
},
|
|
4268
4397
|
columns() {
|
|
4269
|
-
let cols = [];
|
|
4270
4398
|
let children = this.getChildren();
|
|
4271
4399
|
|
|
4272
4400
|
if (!children) {
|
|
4273
4401
|
return;
|
|
4274
4402
|
}
|
|
4275
4403
|
|
|
4276
|
-
|
|
4277
|
-
if (child.children && child.children instanceof Array)
|
|
4278
|
-
cols = [...cols, ...child.children];
|
|
4279
|
-
else if (child.type.name === 'Column')
|
|
4280
|
-
cols.push(child);
|
|
4281
|
-
});
|
|
4404
|
+
const cols = this.recursiveGetChildren(children, []);
|
|
4282
4405
|
|
|
4283
4406
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
4284
4407
|
let orderedColumns = [];
|
|
@@ -4321,24 +4444,21 @@ var script = {
|
|
|
4321
4444
|
hasFilters() {
|
|
4322
4445
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
4323
4446
|
},
|
|
4324
|
-
hasEditingCell() {
|
|
4325
|
-
return this.d_editingCells && this.d_editingCells.length !== 0;
|
|
4326
|
-
},
|
|
4327
4447
|
processedData() {
|
|
4328
4448
|
let data = this.value || [];
|
|
4329
4449
|
|
|
4330
|
-
if (!this.lazy
|
|
4450
|
+
if (!this.lazy) {
|
|
4331
4451
|
if (data && data.length) {
|
|
4452
|
+
if (this.hasFilters) {
|
|
4453
|
+
data = this.filter(data);
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4332
4456
|
if (this.sorted) {
|
|
4333
4457
|
if(this.sortMode === 'single')
|
|
4334
4458
|
data = this.sortSingle(data);
|
|
4335
4459
|
else if(this.sortMode === 'multiple')
|
|
4336
4460
|
data = this.sortMultiple(data);
|
|
4337
4461
|
}
|
|
4338
|
-
|
|
4339
|
-
if (this.hasFilters) {
|
|
4340
|
-
data = this.filter(data);
|
|
4341
|
-
}
|
|
4342
4462
|
}
|
|
4343
4463
|
}
|
|
4344
4464
|
|
|
@@ -4409,26 +4529,21 @@ const _hoisted_2 = {
|
|
|
4409
4529
|
class: "p-datatable-header"
|
|
4410
4530
|
};
|
|
4411
4531
|
const _hoisted_3 = {
|
|
4412
|
-
ref: "table",
|
|
4413
|
-
role: "table",
|
|
4414
|
-
class: "p-datatable-table"
|
|
4415
|
-
};
|
|
4416
|
-
const _hoisted_4 = {
|
|
4417
4532
|
key: 4,
|
|
4418
4533
|
class: "p-datatable-footer"
|
|
4419
4534
|
};
|
|
4420
|
-
const
|
|
4535
|
+
const _hoisted_4 = {
|
|
4421
4536
|
ref: "resizeHelper",
|
|
4422
4537
|
class: "p-column-resizer-helper",
|
|
4423
4538
|
style: {"display":"none"}
|
|
4424
4539
|
};
|
|
4425
|
-
const
|
|
4540
|
+
const _hoisted_5 = {
|
|
4426
4541
|
key: 5,
|
|
4427
4542
|
ref: "reorderIndicatorUp",
|
|
4428
4543
|
class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
|
|
4429
4544
|
style: {"position":"absolute","display":"none"}
|
|
4430
4545
|
};
|
|
4431
|
-
const
|
|
4546
|
+
const _hoisted_6 = {
|
|
4432
4547
|
key: 6,
|
|
4433
4548
|
ref: "reorderIndicatorDown",
|
|
4434
4549
|
class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
|
|
@@ -4460,7 +4575,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4460
4575
|
? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
|
|
4461
4576
|
key: 2,
|
|
4462
4577
|
rows: $data.d_rows,
|
|
4463
|
-
first: $data.d_first,
|
|
4578
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4464
4579
|
totalRecords: $options.totalRecordsLength,
|
|
4465
4580
|
pageLinkSize: $props.pageLinkSize,
|
|
4466
4581
|
template: $props.paginatorTemplate,
|
|
@@ -4470,19 +4585,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4470
4585
|
onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
|
|
4471
4586
|
alwaysShow: $props.alwaysShowPaginator
|
|
4472
4587
|
}, vue.createSlots({ _: 2 }, [
|
|
4473
|
-
(_ctx.$slots.
|
|
4588
|
+
(_ctx.$slots.paginatorstart)
|
|
4474
4589
|
? {
|
|
4475
|
-
name: "
|
|
4590
|
+
name: "start",
|
|
4476
4591
|
fn: vue.withCtx(() => [
|
|
4477
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4592
|
+
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
4478
4593
|
])
|
|
4479
4594
|
}
|
|
4480
4595
|
: undefined,
|
|
4481
|
-
(_ctx.$slots.
|
|
4596
|
+
(_ctx.$slots.paginatorend)
|
|
4482
4597
|
? {
|
|
4483
|
-
name: "
|
|
4598
|
+
name: "end",
|
|
4484
4599
|
fn: vue.withCtx(() => [
|
|
4485
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4600
|
+
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
4486
4601
|
])
|
|
4487
4602
|
}
|
|
4488
4603
|
: undefined
|
|
@@ -4492,7 +4607,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4492
4607
|
class: "p-datatable-wrapper",
|
|
4493
4608
|
style: {maxHeight: $props.scrollHeight}
|
|
4494
4609
|
}, [
|
|
4495
|
-
vue.createVNode("table",
|
|
4610
|
+
vue.createVNode("table", {
|
|
4611
|
+
ref: "table",
|
|
4612
|
+
role: "table",
|
|
4613
|
+
class: [$props.tableClass, 'p-datatable-table'],
|
|
4614
|
+
style: $props.tableStyle
|
|
4615
|
+
}, [
|
|
4496
4616
|
vue.createVNode(_component_DTTableHeader, {
|
|
4497
4617
|
columnGroup: $options.headerColumnGroup,
|
|
4498
4618
|
columns: $options.columns,
|
|
@@ -4537,6 +4657,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4537
4657
|
groupRowsBy: $props.groupRowsBy,
|
|
4538
4658
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4539
4659
|
rowClass: $props.rowClass,
|
|
4660
|
+
rowStyle: $props.rowStyle,
|
|
4540
4661
|
editMode: $props.editMode,
|
|
4541
4662
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4542
4663
|
scrollable: $props.scrollable,
|
|
@@ -4571,8 +4692,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4571
4692
|
onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
|
|
4572
4693
|
onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
|
|
4573
4694
|
onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
|
|
4574
|
-
|
|
4575
|
-
|
|
4695
|
+
editingMeta: $data.d_editingMeta,
|
|
4696
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4697
|
+
}, 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"]))
|
|
4576
4698
|
: vue.createCommentVNode("", true),
|
|
4577
4699
|
vue.createVNode(_component_DTTableBody, {
|
|
4578
4700
|
value: $options.dataToRender,
|
|
@@ -4588,6 +4710,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4588
4710
|
groupRowsBy: $props.groupRowsBy,
|
|
4589
4711
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4590
4712
|
rowClass: $props.rowClass,
|
|
4713
|
+
rowStyle: $props.rowStyle,
|
|
4591
4714
|
editMode: $props.editMode,
|
|
4592
4715
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4593
4716
|
scrollable: $props.scrollable,
|
|
@@ -4602,77 +4725,78 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4602
4725
|
loading: $props.loading,
|
|
4603
4726
|
responsiveLayout: $props.responsiveLayout,
|
|
4604
4727
|
onRowgroupToggle: $options.toggleRowGroup,
|
|
4605
|
-
onRowClick: _cache[
|
|
4606
|
-
onRowDblclick: _cache[
|
|
4607
|
-
onRowRightclick: _cache[
|
|
4728
|
+
onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
|
|
4729
|
+
onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
|
|
4730
|
+
onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
|
|
4608
4731
|
onRowTouchend: $options.onRowTouchEnd,
|
|
4609
4732
|
onRowKeydown: $options.onRowKeyDown,
|
|
4610
4733
|
onRowMousedown: $options.onRowMouseDown,
|
|
4611
|
-
onRowDragstart: _cache[
|
|
4612
|
-
onRowDragover: _cache[
|
|
4613
|
-
onRowDragleave: _cache[
|
|
4614
|
-
onRowDragend: _cache[
|
|
4615
|
-
onRowDrop: _cache[
|
|
4616
|
-
onRowToggle: _cache[
|
|
4617
|
-
onRadioChange: _cache[
|
|
4618
|
-
onCheckboxChange: _cache[
|
|
4619
|
-
onCellEditInit: _cache[
|
|
4620
|
-
onCellEditComplete: _cache[
|
|
4621
|
-
onCellEditCancel: _cache[
|
|
4622
|
-
onRowEditInit: _cache[
|
|
4623
|
-
onRowEditSave: _cache[
|
|
4624
|
-
onRowEditCancel: _cache[
|
|
4625
|
-
|
|
4626
|
-
|
|
4734
|
+
onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
|
|
4735
|
+
onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
|
|
4736
|
+
onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
|
|
4737
|
+
onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
|
|
4738
|
+
onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
|
|
4739
|
+
onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
|
|
4740
|
+
onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
|
|
4741
|
+
onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
|
|
4742
|
+
onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
|
|
4743
|
+
onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
|
|
4744
|
+
onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
|
|
4745
|
+
onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
|
|
4746
|
+
onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
|
|
4747
|
+
onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
|
|
4748
|
+
editingMeta: $data.d_editingMeta,
|
|
4749
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4750
|
+
}, 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"]),
|
|
4627
4751
|
vue.createVNode(_component_DTTableFooter, {
|
|
4628
4752
|
columnGroup: $options.footerColumnGroup,
|
|
4629
4753
|
columns: $options.columns
|
|
4630
4754
|
}, null, 8, ["columnGroup", "columns"])
|
|
4631
|
-
],
|
|
4755
|
+
], 6)
|
|
4632
4756
|
], 4),
|
|
4633
4757
|
($options.paginatorBottom)
|
|
4634
4758
|
? (vue.openBlock(), vue.createBlock(_component_DTPaginator, {
|
|
4635
4759
|
key: 3,
|
|
4636
4760
|
rows: $data.d_rows,
|
|
4637
|
-
first: $data.d_first,
|
|
4761
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4638
4762
|
totalRecords: $options.totalRecordsLength,
|
|
4639
4763
|
pageLinkSize: $props.pageLinkSize,
|
|
4640
4764
|
template: $props.paginatorTemplate,
|
|
4641
4765
|
rowsPerPageOptions: $props.rowsPerPageOptions,
|
|
4642
4766
|
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
4643
4767
|
class: "p-paginator-bottom",
|
|
4644
|
-
onPage: _cache[
|
|
4768
|
+
onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
|
|
4645
4769
|
alwaysShow: $props.alwaysShowPaginator
|
|
4646
4770
|
}, vue.createSlots({ _: 2 }, [
|
|
4647
|
-
(_ctx.$slots.
|
|
4771
|
+
(_ctx.$slots.paginatorstart)
|
|
4648
4772
|
? {
|
|
4649
|
-
name: "
|
|
4773
|
+
name: "start",
|
|
4650
4774
|
fn: vue.withCtx(() => [
|
|
4651
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4775
|
+
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
4652
4776
|
])
|
|
4653
4777
|
}
|
|
4654
4778
|
: undefined,
|
|
4655
|
-
(_ctx.$slots.
|
|
4779
|
+
(_ctx.$slots.paginatorend)
|
|
4656
4780
|
? {
|
|
4657
|
-
name: "
|
|
4781
|
+
name: "end",
|
|
4658
4782
|
fn: vue.withCtx(() => [
|
|
4659
|
-
vue.renderSlot(_ctx.$slots, "
|
|
4783
|
+
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
4660
4784
|
])
|
|
4661
4785
|
}
|
|
4662
4786
|
: undefined
|
|
4663
4787
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
4664
4788
|
: vue.createCommentVNode("", true),
|
|
4665
4789
|
(_ctx.$slots.footer)
|
|
4666
|
-
? (vue.openBlock(), vue.createBlock("div",
|
|
4790
|
+
? (vue.openBlock(), vue.createBlock("div", _hoisted_3, [
|
|
4667
4791
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
4668
4792
|
]))
|
|
4669
4793
|
: vue.createCommentVNode("", true),
|
|
4670
|
-
vue.createVNode("div",
|
|
4794
|
+
vue.createVNode("div", _hoisted_4, null, 512),
|
|
4671
4795
|
($props.reorderableColumns)
|
|
4672
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
4796
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_5, null, 512))
|
|
4673
4797
|
: vue.createCommentVNode("", true),
|
|
4674
4798
|
($props.reorderableColumns)
|
|
4675
|
-
? (vue.openBlock(), vue.createBlock("span",
|
|
4799
|
+
? (vue.openBlock(), vue.createBlock("span", _hoisted_6, null, 512))
|
|
4676
4800
|
: vue.createCommentVNode("", true)
|
|
4677
4801
|
], 2))
|
|
4678
4802
|
}
|