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
|
@@ -345,7 +345,15 @@ var script$9 = {
|
|
|
345
345
|
hide() {
|
|
346
346
|
this.overlayVisible = false;
|
|
347
347
|
},
|
|
348
|
-
onContentClick() {
|
|
348
|
+
onContentClick(event) {
|
|
349
|
+
this.selfClick = true;
|
|
350
|
+
|
|
351
|
+
OverlayEventBus.emit('overlay-click', {
|
|
352
|
+
originalEvent: event,
|
|
353
|
+
target: this.overlay
|
|
354
|
+
});
|
|
355
|
+
},
|
|
356
|
+
onContentMouseDown() {
|
|
349
357
|
this.selfClick = true;
|
|
350
358
|
},
|
|
351
359
|
onOverlayEnter(el) {
|
|
@@ -359,7 +367,7 @@ var script$9 = {
|
|
|
359
367
|
this.bindResizeListener();
|
|
360
368
|
|
|
361
369
|
this.overlayEventListener = (e) => {
|
|
362
|
-
if (this.
|
|
370
|
+
if (!this.isOutsideClicked(e.target)) {
|
|
363
371
|
this.selfClick = true;
|
|
364
372
|
}
|
|
365
373
|
};
|
|
@@ -382,13 +390,16 @@ var script$9 = {
|
|
|
382
390
|
overlayRef(el) {
|
|
383
391
|
this.overlay = el;
|
|
384
392
|
},
|
|
385
|
-
|
|
386
|
-
return this
|
|
393
|
+
isOutsideClicked(target) {
|
|
394
|
+
return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
|
|
395
|
+
},
|
|
396
|
+
isTargetClicked(target) {
|
|
397
|
+
return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
|
|
387
398
|
},
|
|
388
399
|
bindOutsideClickListener() {
|
|
389
400
|
if (!this.outsideClickListener) {
|
|
390
401
|
this.outsideClickListener = (event) => {
|
|
391
|
-
if (this.overlayVisible && !this.selfClick &&
|
|
402
|
+
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
|
|
392
403
|
this.overlayVisible = false;
|
|
393
404
|
}
|
|
394
405
|
this.selfClick = false;
|
|
@@ -521,7 +532,7 @@ const _hoisted_6$1 = {
|
|
|
521
532
|
key: 0,
|
|
522
533
|
class: "p-column-filter-operator"
|
|
523
534
|
};
|
|
524
|
-
const _hoisted_7
|
|
535
|
+
const _hoisted_7 = { class: "p-column-filter-constraints" };
|
|
525
536
|
const _hoisted_8 = {
|
|
526
537
|
key: 1,
|
|
527
538
|
class: "p-column-filter-add-rule"
|
|
@@ -580,7 +591,8 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
580
591
|
ref: $options.overlayRef,
|
|
581
592
|
class: $options.overlayClass,
|
|
582
593
|
onKeydown: _cache[12] || (_cache[12] = withKeys((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
|
|
583
|
-
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args)))
|
|
594
|
+
onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
|
|
595
|
+
onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
|
|
584
596
|
}, [
|
|
585
597
|
(openBlock(), createBlock(resolveDynamicComponent($props.filterHeaderTemplate), {
|
|
586
598
|
field: $props.field,
|
|
@@ -624,7 +636,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
624
636
|
}, null, 8, ["options", "modelValue"])
|
|
625
637
|
]))
|
|
626
638
|
: createCommentVNode("", true),
|
|
627
|
-
createVNode("div", _hoisted_7
|
|
639
|
+
createVNode("div", _hoisted_7, [
|
|
628
640
|
(openBlock(true), createBlock(Fragment, null, renderList($options.fieldConstraints, (fieldConstraint, i) => {
|
|
629
641
|
return (openBlock(), createBlock("div", {
|
|
630
642
|
key: i,
|
|
@@ -806,7 +818,7 @@ var script$8 = {
|
|
|
806
818
|
},
|
|
807
819
|
methods: {
|
|
808
820
|
columnProp(prop) {
|
|
809
|
-
return
|
|
821
|
+
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
810
822
|
},
|
|
811
823
|
onClick(event) {
|
|
812
824
|
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
@@ -1112,7 +1124,7 @@ var script$7 = {
|
|
|
1112
1124
|
},
|
|
1113
1125
|
methods: {
|
|
1114
1126
|
columnProp(col, prop) {
|
|
1115
|
-
return
|
|
1127
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
1116
1128
|
},
|
|
1117
1129
|
getFilterColumnHeaderClass(column) {
|
|
1118
1130
|
return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
|
|
@@ -1121,6 +1133,20 @@ var script$7 = {
|
|
|
1121
1133
|
},
|
|
1122
1134
|
getFilterColumnHeaderStyle(column) {
|
|
1123
1135
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
1136
|
+
},
|
|
1137
|
+
getHeaderColumns(row){
|
|
1138
|
+
let cols = [];
|
|
1139
|
+
|
|
1140
|
+
if (row.children && row.children.default) {
|
|
1141
|
+
row.children.default().forEach(child => {
|
|
1142
|
+
if (child.children && child.children instanceof Array)
|
|
1143
|
+
cols = [...cols, ...child.children];
|
|
1144
|
+
else if (child.type.name === 'Column')
|
|
1145
|
+
cols.push(child);
|
|
1146
|
+
});
|
|
1147
|
+
|
|
1148
|
+
return cols;
|
|
1149
|
+
}
|
|
1124
1150
|
}
|
|
1125
1151
|
},
|
|
1126
1152
|
components: {
|
|
@@ -1253,7 +1279,7 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1253
1279
|
key: i,
|
|
1254
1280
|
role: "row"
|
|
1255
1281
|
}, [
|
|
1256
|
-
(openBlock(true), createBlock(Fragment, null, renderList(
|
|
1282
|
+
(openBlock(true), createBlock(Fragment, null, renderList($options.getHeaderColumns(row), (col, j) => {
|
|
1257
1283
|
return (openBlock(), createBlock(Fragment, {
|
|
1258
1284
|
key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
|
|
1259
1285
|
}, [
|
|
@@ -1408,8 +1434,8 @@ script$5.render = render$5;
|
|
|
1408
1434
|
|
|
1409
1435
|
var script$4 = {
|
|
1410
1436
|
name: 'BodyCell',
|
|
1411
|
-
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1412
|
-
'row-toggle', 'radio-change', 'checkbox-change'],
|
|
1437
|
+
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1438
|
+
'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1413
1439
|
props: {
|
|
1414
1440
|
rowData: {
|
|
1415
1441
|
type: Object,
|
|
@@ -1443,6 +1469,10 @@ var script$4 = {
|
|
|
1443
1469
|
type: Boolean,
|
|
1444
1470
|
default: false
|
|
1445
1471
|
},
|
|
1472
|
+
editingMeta: {
|
|
1473
|
+
type: Object,
|
|
1474
|
+
default: null
|
|
1475
|
+
},
|
|
1446
1476
|
editMode: {
|
|
1447
1477
|
type: String,
|
|
1448
1478
|
default: null
|
|
@@ -1464,6 +1494,9 @@ var script$4 = {
|
|
|
1464
1494
|
watch: {
|
|
1465
1495
|
editing(newValue) {
|
|
1466
1496
|
this.d_editing = newValue;
|
|
1497
|
+
},
|
|
1498
|
+
'$data.d_editing': function(newValue) {
|
|
1499
|
+
this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
|
|
1467
1500
|
}
|
|
1468
1501
|
},
|
|
1469
1502
|
mounted() {
|
|
@@ -1475,6 +1508,11 @@ var script$4 = {
|
|
|
1475
1508
|
if (this.columnProp('frozen')) {
|
|
1476
1509
|
this.updateStickyPosition();
|
|
1477
1510
|
}
|
|
1511
|
+
|
|
1512
|
+
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
|
|
1513
|
+
const focusableEl = DomHandler.getFirstFocusableElement(this.$el);
|
|
1514
|
+
focusableEl && focusableEl.focus();
|
|
1515
|
+
}
|
|
1478
1516
|
},
|
|
1479
1517
|
beforeUnmount() {
|
|
1480
1518
|
if (this.overlayEventListener) {
|
|
@@ -1484,10 +1522,10 @@ var script$4 = {
|
|
|
1484
1522
|
},
|
|
1485
1523
|
methods: {
|
|
1486
1524
|
columnProp(prop) {
|
|
1487
|
-
return
|
|
1525
|
+
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
1488
1526
|
},
|
|
1489
1527
|
resolveFieldData() {
|
|
1490
|
-
return ObjectUtils.resolveFieldData(this.rowData, this.
|
|
1528
|
+
return ObjectUtils.resolveFieldData(this.rowData, this.field);
|
|
1491
1529
|
},
|
|
1492
1530
|
toggleRow(event) {
|
|
1493
1531
|
this.$emit('row-toggle', {
|
|
@@ -1526,7 +1564,6 @@ var script$4 = {
|
|
|
1526
1564
|
switchCellToViewMode() {
|
|
1527
1565
|
this.d_editing = false;
|
|
1528
1566
|
this.unbindDocumentEditListener();
|
|
1529
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: false});
|
|
1530
1567
|
OverlayEventBus.off('overlay-click', this.overlayEventListener);
|
|
1531
1568
|
this.overlayEventListener = null;
|
|
1532
1569
|
},
|
|
@@ -1537,8 +1574,7 @@ var script$4 = {
|
|
|
1537
1574
|
if (!this.d_editing) {
|
|
1538
1575
|
this.d_editing = true;
|
|
1539
1576
|
this.bindDocumentEditListener();
|
|
1540
|
-
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1541
|
-
this.$emit('editing-cell-change', {rowIndex: this.rowIndex, cellIndex: this.index, editing: true});
|
|
1577
|
+
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1542
1578
|
|
|
1543
1579
|
this.overlayEventListener = (e) => {
|
|
1544
1580
|
if (this.$el && this.$el.contains(e.target)) {
|
|
@@ -1550,10 +1586,13 @@ var script$4 = {
|
|
|
1550
1586
|
}
|
|
1551
1587
|
},
|
|
1552
1588
|
completeEdit(event, type) {
|
|
1553
|
-
|
|
1589
|
+
const completeEvent = {
|
|
1554
1590
|
originalEvent: event,
|
|
1555
1591
|
data: this.rowData,
|
|
1556
|
-
|
|
1592
|
+
newData: this.editingRowData,
|
|
1593
|
+
value: this.rowData[this.field],
|
|
1594
|
+
newValue: this.editingRowData[this.field],
|
|
1595
|
+
field: this.field,
|
|
1557
1596
|
index: this.rowIndex,
|
|
1558
1597
|
type: type,
|
|
1559
1598
|
defaultPrevented: false,
|
|
@@ -1577,7 +1616,7 @@ var script$4 = {
|
|
|
1577
1616
|
|
|
1578
1617
|
case 27:
|
|
1579
1618
|
this.switchCellToViewMode();
|
|
1580
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1619
|
+
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1581
1620
|
break;
|
|
1582
1621
|
|
|
1583
1622
|
case 9:
|
|
@@ -1666,13 +1705,13 @@ var script$4 = {
|
|
|
1666
1705
|
return (DomHandler.find(this.$el, '.p-invalid').length === 0);
|
|
1667
1706
|
},
|
|
1668
1707
|
onRowEditInit(event) {
|
|
1669
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, field: this.
|
|
1708
|
+
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1670
1709
|
},
|
|
1671
1710
|
onRowEditSave(event) {
|
|
1672
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, field: this.
|
|
1711
|
+
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1673
1712
|
},
|
|
1674
1713
|
onRowEditCancel(event) {
|
|
1675
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, field: this.
|
|
1714
|
+
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1676
1715
|
},
|
|
1677
1716
|
updateStickyPosition() {
|
|
1678
1717
|
if (this.columnProp('frozen')) {
|
|
@@ -1697,6 +1736,12 @@ var script$4 = {
|
|
|
1697
1736
|
}
|
|
1698
1737
|
},
|
|
1699
1738
|
computed: {
|
|
1739
|
+
editingRowData() {
|
|
1740
|
+
return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
|
|
1741
|
+
},
|
|
1742
|
+
field() {
|
|
1743
|
+
return this.columnProp('field');
|
|
1744
|
+
},
|
|
1700
1745
|
containerClass() {
|
|
1701
1746
|
return [this.columnProp('bodyClass'), this.columnProp('class'), {
|
|
1702
1747
|
'p-selection-column': this.columnProp('selectionMode') != null,
|
|
@@ -1749,93 +1794,104 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1749
1794
|
key: 1,
|
|
1750
1795
|
data: $props.rowData,
|
|
1751
1796
|
column: $props.column,
|
|
1797
|
+
field: $options.field,
|
|
1752
1798
|
index: $props.rowIndex,
|
|
1753
1799
|
frozenRow: $props.frozenRow
|
|
1754
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1800
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1755
1801
|
: ($props.column.children && $props.column.children.editor && $data.d_editing)
|
|
1756
1802
|
? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.editor), {
|
|
1757
1803
|
key: 2,
|
|
1758
|
-
data: $
|
|
1804
|
+
data: $options.editingRowData,
|
|
1759
1805
|
column: $props.column,
|
|
1806
|
+
field: $options.field,
|
|
1760
1807
|
index: $props.rowIndex,
|
|
1761
1808
|
frozenRow: $props.frozenRow
|
|
1762
|
-
}, null, 8, ["data", "column", "index", "frozenRow"]))
|
|
1763
|
-
: ($
|
|
1764
|
-
? (openBlock(), createBlock(
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1809
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1810
|
+
: ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
|
|
1811
|
+
? (openBlock(), createBlock(resolveDynamicComponent($props.column.children.body), {
|
|
1812
|
+
key: 3,
|
|
1813
|
+
data: $options.editingRowData,
|
|
1814
|
+
column: $props.column,
|
|
1815
|
+
field: $options.field,
|
|
1816
|
+
index: $props.rowIndex,
|
|
1817
|
+
frozenRow: $props.frozenRow
|
|
1818
|
+
}, null, 8, ["data", "column", "field", "index", "frozenRow"]))
|
|
1819
|
+
: ($options.columnProp('selectionMode'))
|
|
1820
|
+
? (openBlock(), createBlock(Fragment, { key: 4 }, [
|
|
1821
|
+
($options.columnProp('selectionMode') === 'single')
|
|
1822
|
+
? (openBlock(), createBlock(_component_DTRadioButton, {
|
|
1823
|
+
key: 0,
|
|
1775
1824
|
value: $props.rowData,
|
|
1776
1825
|
checked: $props.selected,
|
|
1777
|
-
onChange: $options.
|
|
1826
|
+
onChange: $options.toggleRowWithRadio
|
|
1778
1827
|
}, null, 8, ["value", "checked", "onChange"]))
|
|
1779
|
-
:
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1828
|
+
: ($options.columnProp('selectionMode') ==='multiple')
|
|
1829
|
+
? (openBlock(), createBlock(_component_DTCheckbox, {
|
|
1830
|
+
key: 1,
|
|
1831
|
+
value: $props.rowData,
|
|
1832
|
+
checked: $props.selected,
|
|
1833
|
+
onChange: $options.toggleRowWithCheckbox
|
|
1834
|
+
}, null, 8, ["value", "checked", "onChange"]))
|
|
1835
|
+
: createCommentVNode("", true)
|
|
1836
|
+
], 64))
|
|
1837
|
+
: ($options.columnProp('rowReorder'))
|
|
1838
|
+
? (openBlock(), createBlock("i", {
|
|
1788
1839
|
key: 5,
|
|
1789
|
-
class:
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
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
|
-
|
|
1840
|
+
class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
|
|
1841
|
+
}, null, 2))
|
|
1842
|
+
: ($options.columnProp('expander'))
|
|
1843
|
+
? withDirectives((openBlock(), createBlock("button", {
|
|
1844
|
+
key: 6,
|
|
1845
|
+
class: "p-row-toggler p-link",
|
|
1846
|
+
onClick: _cache[1] || (_cache[1] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
|
|
1847
|
+
type: "button"
|
|
1848
|
+
}, [
|
|
1849
|
+
createVNode("span", { class: $props.rowTogglerIcon }, null, 2)
|
|
1850
|
+
], 512)), [
|
|
1851
|
+
[_directive_ripple]
|
|
1852
|
+
])
|
|
1853
|
+
: ($props.editMode === 'row' && $options.columnProp('rowEditor'))
|
|
1854
|
+
? (openBlock(), createBlock(Fragment, { key: 7 }, [
|
|
1855
|
+
(!$data.d_editing)
|
|
1856
|
+
? withDirectives((openBlock(), createBlock("button", {
|
|
1857
|
+
key: 0,
|
|
1858
|
+
class: "p-row-editor-init p-link",
|
|
1859
|
+
onClick: _cache[2] || (_cache[2] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
|
|
1860
|
+
type: "button"
|
|
1861
|
+
}, [
|
|
1862
|
+
_hoisted_2$3
|
|
1863
|
+
], 512)), [
|
|
1864
|
+
[_directive_ripple]
|
|
1865
|
+
])
|
|
1866
|
+
: createCommentVNode("", true),
|
|
1867
|
+
($data.d_editing)
|
|
1868
|
+
? withDirectives((openBlock(), createBlock("button", {
|
|
1869
|
+
key: 1,
|
|
1870
|
+
class: "p-row-editor-save p-link",
|
|
1871
|
+
onClick: _cache[3] || (_cache[3] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
|
|
1872
|
+
type: "button"
|
|
1873
|
+
}, [
|
|
1874
|
+
_hoisted_3$1
|
|
1875
|
+
], 512)), [
|
|
1876
|
+
[_directive_ripple]
|
|
1877
|
+
])
|
|
1878
|
+
: createCommentVNode("", true),
|
|
1879
|
+
($data.d_editing)
|
|
1880
|
+
? withDirectives((openBlock(), createBlock("button", {
|
|
1881
|
+
key: 2,
|
|
1882
|
+
class: "p-row-editor-cancel p-link",
|
|
1883
|
+
onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
|
|
1884
|
+
type: "button"
|
|
1885
|
+
}, [
|
|
1886
|
+
_hoisted_4$1
|
|
1887
|
+
], 512)), [
|
|
1888
|
+
[_directive_ripple]
|
|
1889
|
+
])
|
|
1890
|
+
: createCommentVNode("", true)
|
|
1891
|
+
], 64))
|
|
1892
|
+
: (openBlock(), createBlock(Fragment, { key: 8 }, [
|
|
1893
|
+
createTextVNode(toDisplayString($options.resolveFieldData()), 1)
|
|
1894
|
+
], 64))
|
|
1839
1895
|
], 38))
|
|
1840
1896
|
}
|
|
1841
1897
|
|
|
@@ -1846,7 +1902,7 @@ var script$3 = {
|
|
|
1846
1902
|
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
|
|
1847
1903
|
'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
|
|
1848
1904
|
'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
|
|
1849
|
-
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-
|
|
1905
|
+
'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1850
1906
|
props: {
|
|
1851
1907
|
value: {
|
|
1852
1908
|
type: Array,
|
|
@@ -1924,6 +1980,10 @@ var script$3 = {
|
|
|
1924
1980
|
type: null,
|
|
1925
1981
|
default: null
|
|
1926
1982
|
},
|
|
1983
|
+
rowStyle: {
|
|
1984
|
+
type: null,
|
|
1985
|
+
default: null
|
|
1986
|
+
},
|
|
1927
1987
|
editMode: {
|
|
1928
1988
|
type: String,
|
|
1929
1989
|
default: null
|
|
@@ -1940,6 +2000,10 @@ var script$3 = {
|
|
|
1940
2000
|
type: null,
|
|
1941
2001
|
default: null
|
|
1942
2002
|
},
|
|
2003
|
+
editingMeta: {
|
|
2004
|
+
type: Object,
|
|
2005
|
+
default: null
|
|
2006
|
+
},
|
|
1943
2007
|
loading: {
|
|
1944
2008
|
type: Boolean,
|
|
1945
2009
|
default: false
|
|
@@ -1982,7 +2046,7 @@ var script$3 = {
|
|
|
1982
2046
|
},
|
|
1983
2047
|
methods: {
|
|
1984
2048
|
columnProp(col, prop) {
|
|
1985
|
-
return
|
|
2049
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
1986
2050
|
},
|
|
1987
2051
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
1988
2052
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
@@ -2241,8 +2305,8 @@ var script$3 = {
|
|
|
2241
2305
|
onRowEditCancel(event) {
|
|
2242
2306
|
this.$emit('row-edit-cancel', event);
|
|
2243
2307
|
},
|
|
2244
|
-
|
|
2245
|
-
this.$emit('editing-
|
|
2308
|
+
onEditingMetaChange(event) {
|
|
2309
|
+
this.$emit('editing-meta-change', event);
|
|
2246
2310
|
},
|
|
2247
2311
|
updateFrozenRowStickyPosition() {
|
|
2248
2312
|
this.$el.style.top = DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
@@ -2320,19 +2384,20 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2320
2384
|
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
|
|
2321
2385
|
? (openBlock(), createBlock("tr", {
|
|
2322
2386
|
class: $options.getRowClass(rowData),
|
|
2387
|
+
style: $props.rowStyle,
|
|
2323
2388
|
key: $options.getRowKey(rowData, index),
|
|
2324
2389
|
onClick: $event => ($options.onRowClick($event, rowData, index)),
|
|
2325
2390
|
onDblclick: $event => ($options.onRowDblClick($event, rowData, index)),
|
|
2326
2391
|
onContextmenu: $event => ($options.onRowRightClick($event, rowData, index)),
|
|
2327
|
-
onTouchend: _cache[
|
|
2392
|
+
onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
|
|
2328
2393
|
onKeydown: $event => ($options.onRowKeyDown($event, rowData, index)),
|
|
2329
2394
|
tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
|
|
2330
|
-
onMousedown: _cache[
|
|
2395
|
+
onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
|
|
2331
2396
|
onDragstart: $event => ($options.onRowDragStart($event, index)),
|
|
2332
2397
|
onDragover: $event => ($options.onRowDragOver($event,index)),
|
|
2333
|
-
onDragleave: _cache[
|
|
2334
|
-
onDragend: _cache[
|
|
2335
|
-
onDrop: _cache[
|
|
2398
|
+
onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
|
|
2399
|
+
onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
|
|
2400
|
+
onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
|
|
2336
2401
|
role: "row"
|
|
2337
2402
|
}, [
|
|
2338
2403
|
(openBlock(true), createBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
@@ -2362,12 +2427,13 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2362
2427
|
onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
|
|
2363
2428
|
onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
|
|
2364
2429
|
onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
|
|
2365
|
-
|
|
2366
|
-
|
|
2430
|
+
editingMeta: $props.editingMeta,
|
|
2431
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
2432
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange"]))
|
|
2367
2433
|
: createCommentVNode("", true)
|
|
2368
2434
|
], 64))
|
|
2369
2435
|
}), 128))
|
|
2370
|
-
],
|
|
2436
|
+
], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
|
|
2371
2437
|
: createCommentVNode("", true),
|
|
2372
2438
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
2373
2439
|
? (openBlock(), createBlock("tr", {
|
|
@@ -2437,7 +2503,7 @@ var script$2 = {
|
|
|
2437
2503
|
},
|
|
2438
2504
|
methods: {
|
|
2439
2505
|
columnProp(prop) {
|
|
2440
|
-
return
|
|
2506
|
+
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
2441
2507
|
},
|
|
2442
2508
|
updateStickyPosition() {
|
|
2443
2509
|
if (this.columnProp('frozen')) {
|
|
@@ -2510,7 +2576,21 @@ var script$1 = {
|
|
|
2510
2576
|
},
|
|
2511
2577
|
methods: {
|
|
2512
2578
|
columnProp(col, prop) {
|
|
2513
|
-
return
|
|
2579
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
2580
|
+
},
|
|
2581
|
+
getFooterColumns(row){
|
|
2582
|
+
let cols = [];
|
|
2583
|
+
|
|
2584
|
+
if (row.children && row.children.default) {
|
|
2585
|
+
row.children.default().forEach(child => {
|
|
2586
|
+
if (child.children && child.children instanceof Array)
|
|
2587
|
+
cols = [...cols, ...child.children];
|
|
2588
|
+
else if (child.type.name === 'Column')
|
|
2589
|
+
cols.push(child);
|
|
2590
|
+
});
|
|
2591
|
+
|
|
2592
|
+
return cols;
|
|
2593
|
+
}
|
|
2514
2594
|
}
|
|
2515
2595
|
},
|
|
2516
2596
|
computed: {
|
|
@@ -2572,7 +2652,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2572
2652
|
key: i,
|
|
2573
2653
|
role: "row"
|
|
2574
2654
|
}, [
|
|
2575
|
-
(openBlock(true), createBlock(Fragment, null, renderList(
|
|
2655
|
+
(openBlock(true), createBlock(Fragment, null, renderList($options.getFooterColumns(row), (col, j) => {
|
|
2576
2656
|
return (openBlock(), createBlock(Fragment, {
|
|
2577
2657
|
key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
|
|
2578
2658
|
}, [
|
|
@@ -2598,7 +2678,7 @@ var script = {
|
|
|
2598
2678
|
'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all',
|
|
2599
2679
|
'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
|
|
2600
2680
|
'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
|
|
2601
|
-
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'
|
|
2681
|
+
'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
2602
2682
|
props: {
|
|
2603
2683
|
value: {
|
|
2604
2684
|
type: Array,
|
|
@@ -2804,6 +2884,10 @@ var script = {
|
|
|
2804
2884
|
type: null,
|
|
2805
2885
|
default: null
|
|
2806
2886
|
},
|
|
2887
|
+
rowStyle: {
|
|
2888
|
+
type: null,
|
|
2889
|
+
default: null
|
|
2890
|
+
},
|
|
2807
2891
|
scrollable: {
|
|
2808
2892
|
type: Boolean,
|
|
2809
2893
|
default: false
|
|
@@ -2835,6 +2919,14 @@ var script = {
|
|
|
2835
2919
|
stripedRows: {
|
|
2836
2920
|
type: Boolean,
|
|
2837
2921
|
default: false
|
|
2922
|
+
},
|
|
2923
|
+
tableStyle: {
|
|
2924
|
+
type: null,
|
|
2925
|
+
default: null
|
|
2926
|
+
},
|
|
2927
|
+
tableClass: {
|
|
2928
|
+
type: String,
|
|
2929
|
+
default: null
|
|
2838
2930
|
}
|
|
2839
2931
|
},
|
|
2840
2932
|
data() {
|
|
@@ -2849,8 +2941,8 @@ var script = {
|
|
|
2849
2941
|
d_expandedRowKeys: null,
|
|
2850
2942
|
d_columnOrder: null,
|
|
2851
2943
|
d_editingRowKeys: null,
|
|
2852
|
-
|
|
2853
|
-
|
|
2944
|
+
d_editingMeta: {},
|
|
2945
|
+
d_filters: this.cloneFilters(this.filters)
|
|
2854
2946
|
};
|
|
2855
2947
|
},
|
|
2856
2948
|
rowTouched: false,
|
|
@@ -2926,6 +3018,10 @@ var script = {
|
|
|
2926
3018
|
if (this.isStateful() && this.resizableColumns) {
|
|
2927
3019
|
this.restoreColumnWidths();
|
|
2928
3020
|
}
|
|
3021
|
+
|
|
3022
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3023
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3024
|
+
}
|
|
2929
3025
|
},
|
|
2930
3026
|
beforeUnmount() {
|
|
2931
3027
|
this.unbindColumnResizeEvents();
|
|
@@ -2936,12 +3032,18 @@ var script = {
|
|
|
2936
3032
|
if (this.isStateful()) {
|
|
2937
3033
|
this.saveState();
|
|
2938
3034
|
}
|
|
3035
|
+
|
|
3036
|
+
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
|
3037
|
+
this.updateEditingRowKeys(this.editingRows);
|
|
3038
|
+
}
|
|
2939
3039
|
},
|
|
2940
3040
|
methods: {
|
|
2941
3041
|
columnProp(col, prop) {
|
|
2942
|
-
return
|
|
3042
|
+
return ObjectUtils.getVNodeProp(col, prop);
|
|
2943
3043
|
},
|
|
2944
3044
|
onPage(event) {
|
|
3045
|
+
this.clearEditingMetaData();
|
|
3046
|
+
|
|
2945
3047
|
this.d_first = event.first;
|
|
2946
3048
|
this.d_rows = event.rows;
|
|
2947
3049
|
|
|
@@ -3001,6 +3103,8 @@ var script = {
|
|
|
3001
3103
|
}
|
|
3002
3104
|
},
|
|
3003
3105
|
sortSingle(value) {
|
|
3106
|
+
this.clearEditingMetaData();
|
|
3107
|
+
|
|
3004
3108
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
3005
3109
|
this.d_multiSortMeta = [
|
|
3006
3110
|
{field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
|
|
@@ -3035,6 +3139,8 @@ var script = {
|
|
|
3035
3139
|
return data;
|
|
3036
3140
|
},
|
|
3037
3141
|
sortMultiple(value) {
|
|
3142
|
+
this.clearEditingMetaData();
|
|
3143
|
+
|
|
3038
3144
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
3039
3145
|
const firstSortMeta = this.d_multiSortMeta[0];
|
|
3040
3146
|
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
@@ -3092,6 +3198,8 @@ var script = {
|
|
|
3092
3198
|
return;
|
|
3093
3199
|
}
|
|
3094
3200
|
|
|
3201
|
+
this.clearEditingMetaData();
|
|
3202
|
+
|
|
3095
3203
|
let globalFilterFieldsArray;
|
|
3096
3204
|
if (this.filters['global']) {
|
|
3097
3205
|
globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
@@ -3182,7 +3290,7 @@ var script = {
|
|
|
3182
3290
|
|
|
3183
3291
|
if (this.selectionMode) {
|
|
3184
3292
|
const rowData = e.data;
|
|
3185
|
-
const rowIndex = e.index;
|
|
3293
|
+
const rowIndex = this.d_first + e.index;
|
|
3186
3294
|
|
|
3187
3295
|
if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
|
|
3188
3296
|
DomHandler.clearSelection();
|
|
@@ -4102,18 +4210,6 @@ var script = {
|
|
|
4102
4210
|
onCellEditCancel(event) {
|
|
4103
4211
|
this.$emit('cell-edit-cancel', event);
|
|
4104
4212
|
},
|
|
4105
|
-
onEditingCellChange(event) {
|
|
4106
|
-
let { rowIndex, cellIndex, editing } = event;
|
|
4107
|
-
let _editingCells = [...this.d_editingCells];
|
|
4108
|
-
|
|
4109
|
-
if (editing)
|
|
4110
|
-
_editingCells.push({ rowIndex, cellIndex });
|
|
4111
|
-
else
|
|
4112
|
-
_editingCells = _editingCells.filter(cell => !(cell.rowIndex === rowIndex && cell.cellIndex === cellIndex));
|
|
4113
|
-
|
|
4114
|
-
this.d_editingCells = _editingCells;
|
|
4115
|
-
this.$emit('value-change', this.processedData);
|
|
4116
|
-
},
|
|
4117
4213
|
onRowEditInit(event) {
|
|
4118
4214
|
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
4119
4215
|
_editingRows.push(event.data);
|
|
@@ -4132,6 +4228,24 @@ var script = {
|
|
|
4132
4228
|
this.$emit('update:editingRows', _editingRows);
|
|
4133
4229
|
this.$emit('row-edit-cancel', event);
|
|
4134
4230
|
},
|
|
4231
|
+
onEditingMetaChange(event) {
|
|
4232
|
+
let { data, field, index, editing } = event;
|
|
4233
|
+
let meta = this.d_editingMeta[index];
|
|
4234
|
+
|
|
4235
|
+
if (editing) {
|
|
4236
|
+
!meta && (meta = this.d_editingMeta[index] = { data: { ...data }, fields: [] });
|
|
4237
|
+
meta['fields'].push(field);
|
|
4238
|
+
}
|
|
4239
|
+
else if (meta) {
|
|
4240
|
+
const fields = meta['fields'].filter(f => f !== field);
|
|
4241
|
+
!fields.length ? (delete this.d_editingMeta[index]) : (meta['fields'] = fields);
|
|
4242
|
+
}
|
|
4243
|
+
},
|
|
4244
|
+
clearEditingMetaData() {
|
|
4245
|
+
if (this.editMode) {
|
|
4246
|
+
this.d_editingMeta = {};
|
|
4247
|
+
}
|
|
4248
|
+
},
|
|
4135
4249
|
createLazyLoadEvent(event) {
|
|
4136
4250
|
return {
|
|
4137
4251
|
originalEvent: event,
|
|
@@ -4231,7 +4345,22 @@ var script = {
|
|
|
4231
4345
|
document.head.removeChild(this.styleElement);
|
|
4232
4346
|
this.styleElement = null;
|
|
4233
4347
|
}
|
|
4234
|
-
}
|
|
4348
|
+
},
|
|
4349
|
+
recursiveGetChildren(children, results) {
|
|
4350
|
+
if (!results) {
|
|
4351
|
+
results = [];
|
|
4352
|
+
}
|
|
4353
|
+
if (children && children.length) {
|
|
4354
|
+
children.forEach((child) => {
|
|
4355
|
+
if (child.children instanceof Array) {
|
|
4356
|
+
results.concat(this.recursiveGetChildren(child.children, results));
|
|
4357
|
+
} else if (child.type.name == 'Column') {
|
|
4358
|
+
results.push(child);
|
|
4359
|
+
}
|
|
4360
|
+
});
|
|
4361
|
+
}
|
|
4362
|
+
return results;
|
|
4363
|
+
},
|
|
4235
4364
|
},
|
|
4236
4365
|
computed: {
|
|
4237
4366
|
containerClass() {
|
|
@@ -4256,19 +4385,13 @@ var script = {
|
|
|
4256
4385
|
];
|
|
4257
4386
|
},
|
|
4258
4387
|
columns() {
|
|
4259
|
-
let cols = [];
|
|
4260
4388
|
let children = this.getChildren();
|
|
4261
4389
|
|
|
4262
4390
|
if (!children) {
|
|
4263
4391
|
return;
|
|
4264
4392
|
}
|
|
4265
4393
|
|
|
4266
|
-
|
|
4267
|
-
if (child.children && child.children instanceof Array)
|
|
4268
|
-
cols = [...cols, ...child.children];
|
|
4269
|
-
else if (child.type.name === 'Column')
|
|
4270
|
-
cols.push(child);
|
|
4271
|
-
});
|
|
4394
|
+
const cols = this.recursiveGetChildren(children, []);
|
|
4272
4395
|
|
|
4273
4396
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
4274
4397
|
let orderedColumns = [];
|
|
@@ -4311,24 +4434,21 @@ var script = {
|
|
|
4311
4434
|
hasFilters() {
|
|
4312
4435
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
4313
4436
|
},
|
|
4314
|
-
hasEditingCell() {
|
|
4315
|
-
return this.d_editingCells && this.d_editingCells.length !== 0;
|
|
4316
|
-
},
|
|
4317
4437
|
processedData() {
|
|
4318
4438
|
let data = this.value || [];
|
|
4319
4439
|
|
|
4320
|
-
if (!this.lazy
|
|
4440
|
+
if (!this.lazy) {
|
|
4321
4441
|
if (data && data.length) {
|
|
4442
|
+
if (this.hasFilters) {
|
|
4443
|
+
data = this.filter(data);
|
|
4444
|
+
}
|
|
4445
|
+
|
|
4322
4446
|
if (this.sorted) {
|
|
4323
4447
|
if(this.sortMode === 'single')
|
|
4324
4448
|
data = this.sortSingle(data);
|
|
4325
4449
|
else if(this.sortMode === 'multiple')
|
|
4326
4450
|
data = this.sortMultiple(data);
|
|
4327
4451
|
}
|
|
4328
|
-
|
|
4329
|
-
if (this.hasFilters) {
|
|
4330
|
-
data = this.filter(data);
|
|
4331
|
-
}
|
|
4332
4452
|
}
|
|
4333
4453
|
}
|
|
4334
4454
|
|
|
@@ -4399,26 +4519,21 @@ const _hoisted_2 = {
|
|
|
4399
4519
|
class: "p-datatable-header"
|
|
4400
4520
|
};
|
|
4401
4521
|
const _hoisted_3 = {
|
|
4402
|
-
ref: "table",
|
|
4403
|
-
role: "table",
|
|
4404
|
-
class: "p-datatable-table"
|
|
4405
|
-
};
|
|
4406
|
-
const _hoisted_4 = {
|
|
4407
4522
|
key: 4,
|
|
4408
4523
|
class: "p-datatable-footer"
|
|
4409
4524
|
};
|
|
4410
|
-
const
|
|
4525
|
+
const _hoisted_4 = {
|
|
4411
4526
|
ref: "resizeHelper",
|
|
4412
4527
|
class: "p-column-resizer-helper",
|
|
4413
4528
|
style: {"display":"none"}
|
|
4414
4529
|
};
|
|
4415
|
-
const
|
|
4530
|
+
const _hoisted_5 = {
|
|
4416
4531
|
key: 5,
|
|
4417
4532
|
ref: "reorderIndicatorUp",
|
|
4418
4533
|
class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
|
|
4419
4534
|
style: {"position":"absolute","display":"none"}
|
|
4420
4535
|
};
|
|
4421
|
-
const
|
|
4536
|
+
const _hoisted_6 = {
|
|
4422
4537
|
key: 6,
|
|
4423
4538
|
ref: "reorderIndicatorDown",
|
|
4424
4539
|
class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
|
|
@@ -4450,7 +4565,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4450
4565
|
? (openBlock(), createBlock(_component_DTPaginator, {
|
|
4451
4566
|
key: 2,
|
|
4452
4567
|
rows: $data.d_rows,
|
|
4453
|
-
first: $data.d_first,
|
|
4568
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4454
4569
|
totalRecords: $options.totalRecordsLength,
|
|
4455
4570
|
pageLinkSize: $props.pageLinkSize,
|
|
4456
4571
|
template: $props.paginatorTemplate,
|
|
@@ -4460,19 +4575,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4460
4575
|
onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
|
|
4461
4576
|
alwaysShow: $props.alwaysShowPaginator
|
|
4462
4577
|
}, createSlots({ _: 2 }, [
|
|
4463
|
-
(_ctx.$slots.
|
|
4578
|
+
(_ctx.$slots.paginatorstart)
|
|
4464
4579
|
? {
|
|
4465
|
-
name: "
|
|
4580
|
+
name: "start",
|
|
4466
4581
|
fn: withCtx(() => [
|
|
4467
|
-
renderSlot(_ctx.$slots, "
|
|
4582
|
+
renderSlot(_ctx.$slots, "paginatorstart")
|
|
4468
4583
|
])
|
|
4469
4584
|
}
|
|
4470
4585
|
: undefined,
|
|
4471
|
-
(_ctx.$slots.
|
|
4586
|
+
(_ctx.$slots.paginatorend)
|
|
4472
4587
|
? {
|
|
4473
|
-
name: "
|
|
4588
|
+
name: "end",
|
|
4474
4589
|
fn: withCtx(() => [
|
|
4475
|
-
renderSlot(_ctx.$slots, "
|
|
4590
|
+
renderSlot(_ctx.$slots, "paginatorend")
|
|
4476
4591
|
])
|
|
4477
4592
|
}
|
|
4478
4593
|
: undefined
|
|
@@ -4482,7 +4597,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4482
4597
|
class: "p-datatable-wrapper",
|
|
4483
4598
|
style: {maxHeight: $props.scrollHeight}
|
|
4484
4599
|
}, [
|
|
4485
|
-
createVNode("table",
|
|
4600
|
+
createVNode("table", {
|
|
4601
|
+
ref: "table",
|
|
4602
|
+
role: "table",
|
|
4603
|
+
class: [$props.tableClass, 'p-datatable-table'],
|
|
4604
|
+
style: $props.tableStyle
|
|
4605
|
+
}, [
|
|
4486
4606
|
createVNode(_component_DTTableHeader, {
|
|
4487
4607
|
columnGroup: $options.headerColumnGroup,
|
|
4488
4608
|
columns: $options.columns,
|
|
@@ -4527,6 +4647,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4527
4647
|
groupRowsBy: $props.groupRowsBy,
|
|
4528
4648
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4529
4649
|
rowClass: $props.rowClass,
|
|
4650
|
+
rowStyle: $props.rowStyle,
|
|
4530
4651
|
editMode: $props.editMode,
|
|
4531
4652
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4532
4653
|
scrollable: $props.scrollable,
|
|
@@ -4561,8 +4682,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4561
4682
|
onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
|
|
4562
4683
|
onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
|
|
4563
4684
|
onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
|
|
4564
|
-
|
|
4565
|
-
|
|
4685
|
+
editingMeta: $data.d_editingMeta,
|
|
4686
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4687
|
+
}, 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"]))
|
|
4566
4688
|
: createCommentVNode("", true),
|
|
4567
4689
|
createVNode(_component_DTTableBody, {
|
|
4568
4690
|
value: $options.dataToRender,
|
|
@@ -4578,6 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4578
4700
|
groupRowsBy: $props.groupRowsBy,
|
|
4579
4701
|
expandableRowGroups: $props.expandableRowGroups,
|
|
4580
4702
|
rowClass: $props.rowClass,
|
|
4703
|
+
rowStyle: $props.rowStyle,
|
|
4581
4704
|
editMode: $props.editMode,
|
|
4582
4705
|
compareSelectionBy: $props.compareSelectionBy,
|
|
4583
4706
|
scrollable: $props.scrollable,
|
|
@@ -4592,77 +4715,78 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4592
4715
|
loading: $props.loading,
|
|
4593
4716
|
responsiveLayout: $props.responsiveLayout,
|
|
4594
4717
|
onRowgroupToggle: $options.toggleRowGroup,
|
|
4595
|
-
onRowClick: _cache[
|
|
4596
|
-
onRowDblclick: _cache[
|
|
4597
|
-
onRowRightclick: _cache[
|
|
4718
|
+
onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
|
|
4719
|
+
onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
|
|
4720
|
+
onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
|
|
4598
4721
|
onRowTouchend: $options.onRowTouchEnd,
|
|
4599
4722
|
onRowKeydown: $options.onRowKeyDown,
|
|
4600
4723
|
onRowMousedown: $options.onRowMouseDown,
|
|
4601
|
-
onRowDragstart: _cache[
|
|
4602
|
-
onRowDragover: _cache[
|
|
4603
|
-
onRowDragleave: _cache[
|
|
4604
|
-
onRowDragend: _cache[
|
|
4605
|
-
onRowDrop: _cache[
|
|
4606
|
-
onRowToggle: _cache[
|
|
4607
|
-
onRadioChange: _cache[
|
|
4608
|
-
onCheckboxChange: _cache[
|
|
4609
|
-
onCellEditInit: _cache[
|
|
4610
|
-
onCellEditComplete: _cache[
|
|
4611
|
-
onCellEditCancel: _cache[
|
|
4612
|
-
onRowEditInit: _cache[
|
|
4613
|
-
onRowEditSave: _cache[
|
|
4614
|
-
onRowEditCancel: _cache[
|
|
4615
|
-
|
|
4616
|
-
|
|
4724
|
+
onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
|
|
4725
|
+
onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
|
|
4726
|
+
onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
|
|
4727
|
+
onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
|
|
4728
|
+
onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
|
|
4729
|
+
onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
|
|
4730
|
+
onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
|
|
4731
|
+
onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
|
|
4732
|
+
onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
|
|
4733
|
+
onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
|
|
4734
|
+
onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
|
|
4735
|
+
onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
|
|
4736
|
+
onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
|
|
4737
|
+
onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
|
|
4738
|
+
editingMeta: $data.d_editingMeta,
|
|
4739
|
+
onEditingMetaChange: $options.onEditingMetaChange
|
|
4740
|
+
}, 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"]),
|
|
4617
4741
|
createVNode(_component_DTTableFooter, {
|
|
4618
4742
|
columnGroup: $options.footerColumnGroup,
|
|
4619
4743
|
columns: $options.columns
|
|
4620
4744
|
}, null, 8, ["columnGroup", "columns"])
|
|
4621
|
-
],
|
|
4745
|
+
], 6)
|
|
4622
4746
|
], 4),
|
|
4623
4747
|
($options.paginatorBottom)
|
|
4624
4748
|
? (openBlock(), createBlock(_component_DTPaginator, {
|
|
4625
4749
|
key: 3,
|
|
4626
4750
|
rows: $data.d_rows,
|
|
4627
|
-
first: $data.d_first,
|
|
4751
|
+
first: $props.lazy ? 0 : $data.d_first,
|
|
4628
4752
|
totalRecords: $options.totalRecordsLength,
|
|
4629
4753
|
pageLinkSize: $props.pageLinkSize,
|
|
4630
4754
|
template: $props.paginatorTemplate,
|
|
4631
4755
|
rowsPerPageOptions: $props.rowsPerPageOptions,
|
|
4632
4756
|
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
4633
4757
|
class: "p-paginator-bottom",
|
|
4634
|
-
onPage: _cache[
|
|
4758
|
+
onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
|
|
4635
4759
|
alwaysShow: $props.alwaysShowPaginator
|
|
4636
4760
|
}, createSlots({ _: 2 }, [
|
|
4637
|
-
(_ctx.$slots.
|
|
4761
|
+
(_ctx.$slots.paginatorstart)
|
|
4638
4762
|
? {
|
|
4639
|
-
name: "
|
|
4763
|
+
name: "start",
|
|
4640
4764
|
fn: withCtx(() => [
|
|
4641
|
-
renderSlot(_ctx.$slots, "
|
|
4765
|
+
renderSlot(_ctx.$slots, "paginatorstart")
|
|
4642
4766
|
])
|
|
4643
4767
|
}
|
|
4644
4768
|
: undefined,
|
|
4645
|
-
(_ctx.$slots.
|
|
4769
|
+
(_ctx.$slots.paginatorend)
|
|
4646
4770
|
? {
|
|
4647
|
-
name: "
|
|
4771
|
+
name: "end",
|
|
4648
4772
|
fn: withCtx(() => [
|
|
4649
|
-
renderSlot(_ctx.$slots, "
|
|
4773
|
+
renderSlot(_ctx.$slots, "paginatorend")
|
|
4650
4774
|
])
|
|
4651
4775
|
}
|
|
4652
4776
|
: undefined
|
|
4653
4777
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
4654
4778
|
: createCommentVNode("", true),
|
|
4655
4779
|
(_ctx.$slots.footer)
|
|
4656
|
-
? (openBlock(), createBlock("div",
|
|
4780
|
+
? (openBlock(), createBlock("div", _hoisted_3, [
|
|
4657
4781
|
renderSlot(_ctx.$slots, "footer")
|
|
4658
4782
|
]))
|
|
4659
4783
|
: createCommentVNode("", true),
|
|
4660
|
-
createVNode("div",
|
|
4784
|
+
createVNode("div", _hoisted_4, null, 512),
|
|
4661
4785
|
($props.reorderableColumns)
|
|
4662
|
-
? (openBlock(), createBlock("span",
|
|
4786
|
+
? (openBlock(), createBlock("span", _hoisted_5, null, 512))
|
|
4663
4787
|
: createCommentVNode("", true),
|
|
4664
4788
|
($props.reorderableColumns)
|
|
4665
|
-
? (openBlock(), createBlock("span",
|
|
4789
|
+
? (openBlock(), createBlock("span", _hoisted_6, null, 512))
|
|
4666
4790
|
: createCommentVNode("", true)
|
|
4667
4791
|
], 2))
|
|
4668
4792
|
}
|