primevue 3.43.0 → 3.45.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/accordion/Accordion.d.ts +4 -0
- package/accordion/Accordion.vue +1 -0
- package/accordion/accordion.cjs.js +3 -2
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +3 -2
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +3 -2
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +4 -0
- package/animateonscroll/animateonscroll.cjs.js +2 -2
- package/animateonscroll/animateonscroll.cjs.min.js +1 -1
- package/animateonscroll/animateonscroll.esm.js +2 -2
- package/animateonscroll/animateonscroll.esm.min.js +1 -1
- package/animateonscroll/animateonscroll.js +2 -2
- package/animateonscroll/animateonscroll.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +4 -0
- package/autocomplete/AutoComplete.vue +2 -1
- package/autocomplete/autocomplete.cjs.js +5 -3
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +5 -3
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +5 -3
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +4 -0
- package/badgedirective/BadgeDirective.d.ts +4 -0
- package/badgedirective/badgedirective.cjs.js +2 -2
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +2 -2
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +2 -2
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/style/basestyle.cjs.js +2 -2
- package/base/style/basestyle.cjs.min.js +1 -1
- package/base/style/basestyle.esm.js +2 -2
- package/base/style/basestyle.esm.min.js +1 -1
- package/base/style/basestyle.js +2 -2
- package/base/style/basestyle.min.js +1 -1
- package/basecomponent/BaseComponent.vue +4 -2
- package/basecomponent/basecomponent.cjs.js +9 -7
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +9 -7
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +9 -7
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +3 -3
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +3 -3
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +3 -3
- package/basecomponent/style/basecomponentstyle.min.js +1 -1
- package/basedirective/basedirective.cjs.js +2 -3
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +2 -3
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +2 -3
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +8 -14
- package/baseicon/baseicon.cjs.js +10 -15
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +10 -15
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +10 -15
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.d.ts +4 -0
- package/breadcrumb/Breadcrumb.d.ts +4 -0
- package/button/style/buttonstyle.cjs.js +2 -2
- package/button/style/buttonstyle.cjs.min.js +1 -1
- package/button/style/buttonstyle.esm.js +2 -2
- package/button/style/buttonstyle.esm.min.js +1 -1
- package/button/style/buttonstyle.js +2 -2
- package/button/style/buttonstyle.min.js +1 -1
- package/calendar/Calendar.d.ts +8 -0
- package/calendar/Calendar.vue +31 -15
- package/calendar/calendar.cjs.js +31 -17
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +31 -17
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +31 -17
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +4 -0
- package/carousel/carousel.cjs.js +2 -2
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +2 -2
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +2 -2
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +4 -0
- package/cascadeselect/CascadeSelect.vue +2 -1
- package/cascadeselect/CascadeSelectSub.vue +4 -1
- package/cascadeselect/cascadeselect.cjs.js +8 -4
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +8 -4
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +8 -4
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.js +1 -1
- package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
- package/chart/Chart.d.ts +4 -0
- package/chart/chart.cjs.js +2 -2
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +2 -2
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +2 -2
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/checkbox.cjs.js +2 -2
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +2 -2
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +2 -2
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +4 -0
- package/chips/Chips.d.ts +4 -0
- package/chips/Chips.vue +1 -0
- package/chips/chips.cjs.js +3 -2
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +3 -2
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +3 -2
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +4 -0
- package/column/Column.d.ts +4 -0
- package/column/Column.vue +7 -0
- package/column/column.cjs.js +9 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +9 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +9 -0
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.d.ts +4 -0
- package/columngroup/ColumnGroup.vue +7 -0
- package/columngroup/columngroup.cjs.js +9 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +9 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +9 -0
- package/columngroup/columngroup.min.js +1 -1
- package/config/config.cjs.js +2 -2
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +2 -2
- package/config/config.esm.min.js +1 -1
- package/config/config.js +2 -2
- package/config/config.min.js +1 -1
- package/confirmdialog/ConfirmDialog.d.ts +5 -1
- package/confirmpopup/ConfirmPopup.d.ts +4 -0
- package/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/confirmpopup.cjs.js +4 -4
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +4 -4
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +4 -4
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +4 -0
- package/contextmenu/ContextMenu.vue +1 -0
- package/contextmenu/contextmenu.cjs.js +3 -2
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +3 -2
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +3 -2
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +358 -257
- package/core/core.min.js +36 -36
- package/datatable/BaseDataTable.vue +2 -2
- package/datatable/BodyRow.vue +578 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +5 -1
- package/datatable/DataTable.vue +111 -132
- package/datatable/HeaderCell.vue +9 -7
- package/datatable/RowCheckbox.vue +1 -0
- package/datatable/TableBody.vue +74 -414
- package/datatable/TableFooter.vue +19 -26
- package/datatable/TableHeader.vue +19 -26
- package/datatable/datatable.cjs.js +908 -650
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +909 -651
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +908 -650
- package/datatable/datatable.min.js +1 -1
- package/datatable/style/datatablestyle.cjs.js +5 -4
- package/datatable/style/datatablestyle.cjs.min.js +1 -1
- package/datatable/style/datatablestyle.esm.js +5 -4
- package/datatable/style/datatablestyle.esm.min.js +1 -1
- package/datatable/style/datatablestyle.js +5 -4
- package/datatable/style/datatablestyle.min.js +1 -1
- package/dataview/DataView.d.ts +4 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
- package/deferredcontent/DeferredContent.d.ts +4 -0
- package/dialog/dialog.cjs.js +2 -2
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +2 -2
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +2 -2
- package/dialog/dialog.min.js +1 -1
- package/dialog/style/dialogstyle.cjs.js +1 -1
- package/dialog/style/dialogstyle.cjs.min.js +1 -1
- package/dialog/style/dialogstyle.esm.js +1 -1
- package/dialog/style/dialogstyle.esm.min.js +1 -1
- package/dialog/style/dialogstyle.js +1 -1
- package/dialog/style/dialogstyle.min.js +1 -1
- package/divider/Divider.d.ts +4 -0
- package/dock/Dock.d.ts +4 -0
- package/dock/DockSub.vue +1 -0
- package/dock/dock.cjs.js +1 -0
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +1 -0
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +1 -0
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.vue +29 -1
- package/dropdown/dropdown.cjs.js +55 -30
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +55 -30
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +55 -30
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.js +1 -1
- package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
- package/dropdown/style/dropdownstyle.esm.js +1 -1
- package/dropdown/style/dropdownstyle.esm.min.js +1 -1
- package/dropdown/style/dropdownstyle.js +1 -1
- package/dropdown/style/dropdownstyle.min.js +1 -1
- package/dynamicdialog/DynamicDialog.vue +1 -1
- package/dynamicdialog/dynamicdialog.cjs.js +1 -3
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +1 -3
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +1 -3
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/Editor.d.ts +4 -0
- package/editor/editor.cjs.js +2 -2
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +2 -2
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +2 -2
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +4 -0
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +3 -3
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +3 -3
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +3 -3
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +4 -0
- package/galleria/Galleria.d.ts +4 -0
- package/galleria/GalleriaItem.vue +1 -0
- package/galleria/GalleriaThumbnails.vue +1 -1
- package/galleria/galleria.cjs.js +8 -7
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +8 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +8 -7
- package/galleria/galleria.min.js +1 -1
- package/icons/sortamountdown/index.cjs.js +10 -7
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +11 -8
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +10 -7
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +1 -21
- package/icons/sortamountupalt/index.cjs.js +10 -7
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +11 -8
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +10 -7
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +1 -21
- package/image/Image.d.ts +4 -0
- package/image/Image.vue +2 -6
- package/image/image.cjs.js +4 -7
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +4 -7
- package/image/image.esm.min.js +1 -1
- package/image/image.js +4 -7
- package/image/image.min.js +1 -1
- package/image/style/imagestyle.cjs.js +1 -1
- package/image/style/imagestyle.cjs.min.js +1 -1
- package/image/style/imagestyle.esm.js +1 -1
- package/image/style/imagestyle.esm.min.js +1 -1
- package/image/style/imagestyle.js +1 -1
- package/image/style/imagestyle.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +4 -0
- package/inplace/Inplace.d.ts +4 -0
- package/inplace/inplace.cjs.js +2 -2
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +2 -2
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +2 -2
- package/inplace/inplace.min.js +1 -1
- package/inputgroup/InputGroup.d.ts +4 -0
- package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
- package/inputmask/InputMask.d.ts +4 -0
- package/inputnumber/BaseInputNumber.vue +7 -0
- package/inputnumber/InputNumber.d.ts +7 -0
- package/inputnumber/InputNumber.vue +4 -3
- package/inputnumber/inputnumber.cjs.js +15 -5
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +15 -5
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +15 -5
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +4 -0
- package/inputswitch/inputswitch.cjs.js +2 -2
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +2 -2
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +2 -2
- package/inputswitch/inputswitch.min.js +1 -1
- package/knob/Knob.d.ts +4 -0
- package/knob/Knob.vue +1 -1
- package/knob/knob.cjs.js +1 -1
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +1 -1
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +1 -1
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +1 -1
- package/listbox/Listbox.d.ts +5 -1
- package/listbox/Listbox.vue +2 -0
- package/listbox/listbox.cjs.js +5 -3
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +5 -3
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +5 -3
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +4 -0
- package/megamenu/MegaMenu.vue +2 -1
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +4 -0
- package/menu/Menu.vue +1 -0
- package/menu/menu.cjs.js +3 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -2
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +4 -0
- package/menubar/Menubar.vue +2 -1
- package/menubar/menubar.cjs.js +4 -3
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +4 -3
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +4 -3
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +0 -6
- package/message/message.cjs.js +2 -2
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +2 -2
- package/message/message.esm.min.js +1 -1
- package/message/message.js +2 -2
- package/message/message.min.js +1 -1
- package/message/style/messagestyle.cjs.js +1 -1
- package/message/style/messagestyle.cjs.min.js +1 -1
- package/message/style/messagestyle.esm.js +1 -1
- package/message/style/messagestyle.esm.min.js +1 -1
- package/message/style/messagestyle.js +1 -1
- package/message/style/messagestyle.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +4 -0
- package/multiselect/MultiSelect.vue +2 -0
- package/multiselect/multiselect.cjs.js +6 -4
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +6 -4
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +6 -4
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +1 -1
- package/orderlist/OrderList.d.ts +5 -1
- package/orderlist/OrderList.vue +1 -0
- package/orderlist/orderlist.cjs.js +4 -3
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +4 -3
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +4 -3
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +4 -0
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/organizationchart.cjs.js +3 -3
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +3 -3
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +3 -3
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +4 -0
- package/overlaypanel/overlaypanel.cjs.js +2 -2
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +2 -2
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +2 -2
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/Paginator.vue +4 -4
- package/paginator/paginator.cjs.js +2 -2
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +2 -2
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -2
- package/paginator/paginator.min.js +1 -1
- package/paginator/style/paginatorstyle.cjs.js +2 -2
- package/paginator/style/paginatorstyle.cjs.min.js +1 -1
- package/paginator/style/paginatorstyle.esm.js +2 -2
- package/paginator/style/paginatorstyle.esm.min.js +1 -1
- package/paginator/style/paginatorstyle.js +2 -2
- package/paginator/style/paginatorstyle.min.js +1 -1
- package/panel/Panel.d.ts +4 -0
- package/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +3 -3
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +3 -3
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +3 -3
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +4 -0
- package/panelmenu/PanelMenu.vue +1 -0
- package/panelmenu/PanelMenuList.vue +1 -0
- package/panelmenu/panelmenu.cjs.js +4 -2
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +4 -2
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +4 -2
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/index.cjs.js +2 -2
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.esm.js +2 -2
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +2 -2
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +2 -71
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +2 -71
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +2 -71
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/Password.d.ts +4 -0
- package/password/password.cjs.js +2 -4
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -4
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -4
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +1 -1
- package/picklist/PickList.d.ts +5 -1
- package/picklist/PickList.vue +2 -1
- package/picklist/picklist.cjs.js +5 -4
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +5 -4
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +5 -4
- package/picklist/picklist.min.js +1 -1
- package/picklist/style/pickliststyle.cjs.js +1 -1
- package/picklist/style/pickliststyle.cjs.min.js +1 -1
- package/picklist/style/pickliststyle.esm.js +1 -1
- package/picklist/style/pickliststyle.esm.min.js +1 -1
- package/picklist/style/pickliststyle.js +1 -1
- package/picklist/style/pickliststyle.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +4 -0
- package/radiobutton/RadioButton.d.ts +4 -0
- package/radiobutton/radiobutton.cjs.js +2 -2
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +2 -2
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +2 -2
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +4 -0
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
- package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
- package/resources/themes/fluent-light/theme.css +4 -4
- package/resources/themes/lara-dark-amber/theme.css +4 -4
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-cyan/theme.css +4 -4
- package/resources/themes/lara-dark-green/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-pink/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-amber/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +4 -4
- package/resources/themes/lara-light-cyan/theme.css +4 -4
- package/resources/themes/lara-light-green/theme.css +4 -4
- package/resources/themes/lara-light-indigo/theme.css +4 -4
- package/resources/themes/lara-light-pink/theme.css +4 -4
- package/resources/themes/lara-light-purple/theme.css +4 -4
- package/resources/themes/lara-light-teal/theme.css +44 -44
- package/resources/themes/luna-amber/theme.css +4 -4
- package/resources/themes/luna-blue/theme.css +4 -4
- package/resources/themes/luna-green/theme.css +4 -4
- package/resources/themes/luna-pink/theme.css +4 -4
- package/resources/themes/md-dark-deeppurple/theme.css +4 -4
- package/resources/themes/md-dark-indigo/theme.css +4 -4
- package/resources/themes/md-light-deeppurple/theme.css +4 -4
- package/resources/themes/md-light-indigo/theme.css +4 -4
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-dark-indigo/theme.css +4 -4
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-light-indigo/theme.css +4 -4
- package/resources/themes/mira/theme.css +4 -4
- package/resources/themes/nano/theme.css +4 -4
- package/resources/themes/nova/theme.css +4 -4
- package/resources/themes/nova-accent/theme.css +4 -4
- package/resources/themes/nova-alt/theme.css +4 -4
- package/resources/themes/nova-vue/theme.css +4 -4
- package/resources/themes/rhea/theme.css +4 -4
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +4 -4
- package/resources/themes/soho-light/theme.css +4 -4
- package/resources/themes/tailwind-light/theme.css +4 -4
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +4 -4
- package/resources/themes/viva-light/theme.css +4 -4
- package/ripple/style/ripplestyle.cjs.js +1 -1
- package/ripple/style/ripplestyle.cjs.min.js +1 -1
- package/ripple/style/ripplestyle.esm.js +1 -1
- package/ripple/style/ripplestyle.esm.min.js +1 -1
- package/ripple/style/ripplestyle.js +1 -1
- package/ripple/style/ripplestyle.min.js +1 -1
- package/row/Row.d.ts +4 -0
- package/row/Row.vue +7 -0
- package/row/row.cjs.js +9 -0
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +9 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +9 -0
- package/row/row.min.js +1 -1
- package/scrollpanel/ScrollPanel.d.ts +4 -0
- package/scrollpanel/ScrollPanel.vue +8 -1
- package/scrollpanel/scrollpanel.cjs.js +14 -5
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +14 -5
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +14 -5
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +4 -0
- package/selectbutton/SelectButton.d.ts +4 -0
- package/sidebar/Sidebar.d.ts +4 -0
- package/sidebar/sidebar.cjs.js +2 -2
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +2 -2
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +2 -2
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +4 -0
- package/slider/Slider.d.ts +4 -0
- package/slider/Slider.vue +26 -19
- package/slider/slider.cjs.js +19 -11
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +19 -11
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +19 -11
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +4 -0
- package/speeddial/SpeedDial.vue +1 -0
- package/speeddial/speeddial.cjs.js +3 -2
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +3 -2
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +3 -2
- package/speeddial/speeddial.min.js +1 -1
- package/speeddial/style/speeddialstyle.cjs.js +2 -2
- package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
- package/speeddial/style/speeddialstyle.esm.js +2 -2
- package/speeddial/style/speeddialstyle.esm.min.js +1 -1
- package/speeddial/style/speeddialstyle.js +2 -2
- package/speeddial/style/speeddialstyle.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +4 -0
- package/splitbutton/style/splitbuttonstyle.cjs.js +2 -2
- package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.esm.js +2 -2
- package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
- package/splitbutton/style/splitbuttonstyle.js +2 -2
- package/splitbutton/style/splitbuttonstyle.min.js +1 -1
- package/splitter/Splitter.d.ts +4 -0
- package/splitterpanel/SplitterPanel.d.ts +4 -0
- package/steps/Steps.d.ts +4 -0
- package/steps/Steps.vue +1 -0
- package/steps/steps.cjs.js +1 -0
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -0
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -0
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +4 -0
- package/tabmenu/TabMenu.vue +1 -0
- package/tabmenu/tabmenu.cjs.js +1 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +1 -0
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +1 -0
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +4 -0
- package/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +3 -2
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +3 -2
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +3 -2
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +4 -0
- package/terminal/Terminal.d.ts +4 -0
- package/terminal/Terminal.vue +1 -1
- package/terminal/terminal.cjs.js +1 -1
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +1 -1
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +1 -1
- package/terminal/terminal.min.js +1 -1
- package/textarea/Textarea.d.ts +4 -0
- package/tieredmenu/TieredMenu.vue +1 -0
- package/tieredmenu/tieredmenu.cjs.js +3 -2
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +3 -2
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +3 -2
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +4 -0
- package/toast/Toast.d.ts +4 -0
- package/toast/style/toaststyle.cjs.js +2 -2
- package/toast/style/toaststyle.cjs.min.js +1 -1
- package/toast/style/toaststyle.esm.js +2 -2
- package/toast/style/toaststyle.esm.min.js +1 -1
- package/toast/style/toaststyle.js +2 -2
- package/toast/style/toaststyle.min.js +1 -1
- package/toast/toast.cjs.js +4 -4
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +4 -4
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +4 -4
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +4 -0
- package/togglebutton/togglebutton.cjs.js +2 -2
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +2 -2
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +2 -2
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +4 -0
- package/tooltip/Tooltip.d.ts +4 -0
- package/tree/BaseTree.vue +1 -1
- package/tree/Tree.d.ts +1 -1
- package/tree/Tree.vue +1 -1
- package/tree/TreeNode.vue +1 -0
- package/tree/tree.cjs.js +7 -6
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +7 -6
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +7 -6
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +1 -1
- package/treeselect/TreeSelect.d.ts +5 -1
- package/treeselect/TreeSelect.vue +1 -0
- package/treeselect/treeselect.cjs.js +6 -5
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +6 -5
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +6 -5
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +5 -1
- package/treetable/HeaderCell.vue +1 -1
- package/treetable/TreeTable.d.ts +10 -1
- package/treetable/TreeTable.vue +32 -24
- package/treetable/TreeTableRow.vue +32 -20
- package/treetable/style/treetablestyle.cjs.js +1 -1
- package/treetable/style/treetablestyle.cjs.min.js +1 -1
- package/treetable/style/treetablestyle.esm.js +1 -1
- package/treetable/style/treetablestyle.esm.min.js +1 -1
- package/treetable/style/treetablestyle.js +1 -1
- package/treetable/style/treetablestyle.min.js +1 -1
- package/treetable/treetable.cjs.js +82 -55
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +83 -56
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +82 -55
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +4 -0
- package/tristatecheckbox/TriStateCheckbox.vue +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +3 -3
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/usestyle/usestyle.cjs.js +2 -2
- package/usestyle/usestyle.cjs.min.js +1 -1
- package/usestyle/usestyle.esm.js +2 -2
- package/usestyle/usestyle.esm.min.js +1 -1
- package/usestyle/usestyle.js +2 -2
- package/usestyle/usestyle.min.js +1 -1
- package/utils/Utils.d.ts +10 -0
- package/utils/utils.cjs.js +167 -42
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +167 -43
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +167 -42
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/virtualscroller/VirtualScroller.d.ts +4 -0
- package/virtualscroller/VirtualScroller.vue +20 -16
- package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.js +1 -1
- package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.js +24 -20
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +24 -20
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +24 -20
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +11 -1
package/datatable/datatable.js
CHANGED
|
@@ -31,7 +31,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
31
31
|
var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
|
|
32
32
|
var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
|
|
33
33
|
|
|
34
|
-
var script$
|
|
34
|
+
var script$c = {
|
|
35
35
|
name: 'BaseDataTable',
|
|
36
36
|
"extends": BaseComponent__default["default"],
|
|
37
37
|
props: {
|
|
@@ -153,7 +153,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
153
153
|
},
|
|
154
154
|
metaKeySelection: {
|
|
155
155
|
type: Boolean,
|
|
156
|
-
"default":
|
|
156
|
+
"default": false
|
|
157
157
|
},
|
|
158
158
|
contextMenu: {
|
|
159
159
|
type: Boolean,
|
|
@@ -196,7 +196,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
196
196
|
"default": false
|
|
197
197
|
},
|
|
198
198
|
expandedRows: {
|
|
199
|
-
type: Array,
|
|
199
|
+
type: [Array, Object],
|
|
200
200
|
"default": null
|
|
201
201
|
},
|
|
202
202
|
expandedRowIcon: {
|
|
@@ -308,7 +308,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
var script$
|
|
311
|
+
var script$b = {
|
|
312
312
|
name: 'RowCheckbox',
|
|
313
313
|
hostName: 'DataTable',
|
|
314
314
|
"extends": BaseComponent__default["default"],
|
|
@@ -363,6 +363,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
363
363
|
utils.DomHandler.focus(this.$refs.input);
|
|
364
364
|
}
|
|
365
365
|
event.preventDefault();
|
|
366
|
+
event.stopPropagation();
|
|
366
367
|
},
|
|
367
368
|
onFocus: function onFocus() {
|
|
368
369
|
this.focused = true;
|
|
@@ -391,7 +392,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
391
392
|
};
|
|
392
393
|
|
|
393
394
|
var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
|
|
394
|
-
function render$
|
|
395
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
395
396
|
var _component_CheckIcon = vue.resolveComponent("CheckIcon");
|
|
396
397
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
397
398
|
"class": _ctx.cx('checkboxWrapper'),
|
|
@@ -431,9 +432,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
431
432
|
}, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 16)], 16);
|
|
432
433
|
}
|
|
433
434
|
|
|
434
|
-
script$
|
|
435
|
+
script$b.render = render$b;
|
|
435
436
|
|
|
436
|
-
var script$
|
|
437
|
+
var script$a = {
|
|
437
438
|
name: 'RowRadioButton',
|
|
438
439
|
hostName: 'DataTable',
|
|
439
440
|
"extends": BaseComponent__default["default"],
|
|
@@ -498,7 +499,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
498
499
|
};
|
|
499
500
|
|
|
500
501
|
var _hoisted_1$6 = ["checked", "disabled", "name"];
|
|
501
|
-
function render$
|
|
502
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
502
503
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
503
504
|
"class": _ctx.cx('radiobuttonWrapper'),
|
|
504
505
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
@@ -532,9 +533,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
532
533
|
}, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
|
|
533
534
|
}
|
|
534
535
|
|
|
535
|
-
script$
|
|
536
|
+
script$a.render = render$a;
|
|
536
537
|
|
|
537
|
-
var script$
|
|
538
|
+
var script$9 = {
|
|
538
539
|
name: 'BodyCell',
|
|
539
540
|
hostName: 'DataTable',
|
|
540
541
|
"extends": BaseComponent__default["default"],
|
|
@@ -986,8 +987,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
986
987
|
}
|
|
987
988
|
},
|
|
988
989
|
components: {
|
|
989
|
-
DTRadioButton: script$
|
|
990
|
-
DTCheckbox: script$
|
|
990
|
+
DTRadioButton: script$a,
|
|
991
|
+
DTCheckbox: script$b,
|
|
991
992
|
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
992
993
|
ChevronRightIcon: ChevronRightIcon__default["default"],
|
|
993
994
|
BarsIcon: BarsIcon__default["default"],
|
|
@@ -1000,18 +1001,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1000
1001
|
}
|
|
1001
1002
|
};
|
|
1002
1003
|
|
|
1003
|
-
function _typeof$
|
|
1004
|
-
function ownKeys$
|
|
1005
|
-
function _objectSpread$
|
|
1006
|
-
function _defineProperty$
|
|
1007
|
-
function _toPropertyKey$
|
|
1008
|
-
function _toPrimitive$
|
|
1004
|
+
function _typeof$a(o) { "@babel/helpers - typeof"; return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$a(o); }
|
|
1005
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1006
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty$a(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1007
|
+
function _defineProperty$a(obj, key, value) { key = _toPropertyKey$a(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1008
|
+
function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
|
|
1009
|
+
function _toPrimitive$a(t, r) { if ("object" != _typeof$a(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$a(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1009
1010
|
var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1010
1011
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1011
1012
|
var _hoisted_3$2 = ["aria-label"];
|
|
1012
1013
|
var _hoisted_4$1 = ["aria-label"];
|
|
1013
1014
|
var _hoisted_5$1 = ["aria-label"];
|
|
1014
|
-
function render$
|
|
1015
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1015
1016
|
var _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
|
|
1016
1017
|
var _component_DTCheckbox = vue.resolveComponent("DTCheckbox");
|
|
1017
1018
|
var _component_BarsIcon = vue.resolveComponent("BarsIcon");
|
|
@@ -1023,7 +1024,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1023
1024
|
style: $options.containerStyle,
|
|
1024
1025
|
"class": $options.containerClass,
|
|
1025
1026
|
role: "cell"
|
|
1026
|
-
}, _objectSpread$
|
|
1027
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
|
|
1027
1028
|
data: $props.rowData,
|
|
1028
1029
|
column: $props.column,
|
|
1029
1030
|
field: $options.field,
|
|
@@ -1043,7 +1044,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1043
1044
|
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1044
1045
|
}),
|
|
1045
1046
|
role: "cell"
|
|
1046
|
-
}, _objectSpread$
|
|
1047
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
|
|
1047
1048
|
"data-p-selection-column": $options.columnProp('selectionMode') != null,
|
|
1048
1049
|
"data-p-editable-column": $options.isEditable(),
|
|
1049
1050
|
"data-p-cell-editing": $data.d_editing,
|
|
@@ -1186,14 +1187,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1186
1187
|
}, [vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
|
|
1187
1188
|
}
|
|
1188
1189
|
|
|
1189
|
-
script$
|
|
1190
|
+
script$9.render = render$9;
|
|
1190
1191
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1192
|
+
function _typeof$9(o) { "@babel/helpers - typeof"; return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$9(o); }
|
|
1193
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1194
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1195
|
+
function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1196
|
+
function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
|
|
1197
|
+
function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1198
|
+
var script$8 = {
|
|
1199
|
+
name: 'BodyRow',
|
|
1193
1200
|
hostName: 'DataTable',
|
|
1194
1201
|
"extends": BaseComponent__default["default"],
|
|
1195
1202
|
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1196
1203
|
props: {
|
|
1204
|
+
rowData: {
|
|
1205
|
+
type: Object,
|
|
1206
|
+
"default": null
|
|
1207
|
+
},
|
|
1208
|
+
index: {
|
|
1209
|
+
type: Number,
|
|
1210
|
+
"default": 0
|
|
1211
|
+
},
|
|
1197
1212
|
value: {
|
|
1198
1213
|
type: Array,
|
|
1199
1214
|
"default": null
|
|
@@ -1243,11 +1258,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1243
1258
|
"default": null
|
|
1244
1259
|
},
|
|
1245
1260
|
expandedRows: {
|
|
1246
|
-
type: Array,
|
|
1247
|
-
"default": null
|
|
1248
|
-
},
|
|
1249
|
-
expandedRowKeys: {
|
|
1250
|
-
type: null,
|
|
1261
|
+
type: [Array, Object],
|
|
1251
1262
|
"default": null
|
|
1252
1263
|
},
|
|
1253
1264
|
selection: {
|
|
@@ -1278,6 +1289,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1278
1289
|
type: null,
|
|
1279
1290
|
"default": null
|
|
1280
1291
|
},
|
|
1292
|
+
rowGroupHeaderStyle: {
|
|
1293
|
+
type: null,
|
|
1294
|
+
"default": null
|
|
1295
|
+
},
|
|
1281
1296
|
editMode: {
|
|
1282
1297
|
type: String,
|
|
1283
1298
|
"default": null
|
|
@@ -1317,35 +1332,34 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1317
1332
|
isVirtualScrollerDisabled: {
|
|
1318
1333
|
type: Boolean,
|
|
1319
1334
|
"default": false
|
|
1335
|
+
},
|
|
1336
|
+
expandedRowId: {
|
|
1337
|
+
type: String,
|
|
1338
|
+
"default": null
|
|
1339
|
+
},
|
|
1340
|
+
nameAttributeSelector: {
|
|
1341
|
+
type: String,
|
|
1342
|
+
"default": null
|
|
1320
1343
|
}
|
|
1321
1344
|
},
|
|
1322
1345
|
data: function data() {
|
|
1323
1346
|
return {
|
|
1324
|
-
|
|
1325
|
-
tabindexArray: [],
|
|
1326
|
-
isARowSelected: false
|
|
1347
|
+
d_rowExpanded: false
|
|
1327
1348
|
};
|
|
1328
1349
|
},
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
this
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
}
|
|
1336
|
-
},
|
|
1337
|
-
updated: function updated() {
|
|
1338
|
-
if (this.frozenRow) {
|
|
1339
|
-
this.updateFrozenRowStickyPosition();
|
|
1340
|
-
}
|
|
1341
|
-
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1342
|
-
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1350
|
+
watch: {
|
|
1351
|
+
expandedRows: function expandedRows(newValue) {
|
|
1352
|
+
var _this = this;
|
|
1353
|
+
this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
|
|
1354
|
+
return _this.equals(_this.rowData, d);
|
|
1355
|
+
});
|
|
1343
1356
|
}
|
|
1344
1357
|
},
|
|
1345
1358
|
methods: {
|
|
1346
1359
|
columnProp: function columnProp(col, prop) {
|
|
1347
1360
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1348
1361
|
},
|
|
1362
|
+
//@todo - update this method
|
|
1349
1363
|
getColumnPT: function getColumnPT(key) {
|
|
1350
1364
|
var columnMetaData = {
|
|
1351
1365
|
parent: {
|
|
@@ -1356,80 +1370,33 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1356
1370
|
};
|
|
1357
1371
|
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
1358
1372
|
column: columnMetaData
|
|
1359
|
-
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.
|
|
1360
|
-
},
|
|
1361
|
-
getColumnProp: function getColumnProp(column) {
|
|
1362
|
-
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1373
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
|
|
1363
1374
|
},
|
|
1364
|
-
|
|
1365
|
-
|
|
1375
|
+
//@todo - update this method
|
|
1376
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key) {
|
|
1377
|
+
var _this$$parentInstance;
|
|
1378
|
+
var datatable = (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.$parentInstance;
|
|
1366
1379
|
return this.ptm(key, {
|
|
1367
1380
|
context: {
|
|
1368
|
-
index:
|
|
1369
|
-
selectable: (
|
|
1370
|
-
selected: this.isSelected
|
|
1371
|
-
stripedRows: (
|
|
1381
|
+
index: this.rowIndex,
|
|
1382
|
+
selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
|
|
1383
|
+
selected: this.isSelected,
|
|
1384
|
+
stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
|
|
1372
1385
|
}
|
|
1373
1386
|
});
|
|
1374
1387
|
},
|
|
1375
|
-
|
|
1376
|
-
var
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1380
|
-
return currentRowFieldData !== previousRowFieldData;
|
|
1381
|
-
} else {
|
|
1382
|
-
return true;
|
|
1383
|
-
}
|
|
1384
|
-
},
|
|
1385
|
-
getRowKey: function getRowKey(rowData, index) {
|
|
1386
|
-
return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
|
|
1387
|
-
},
|
|
1388
|
-
getRowIndex: function getRowIndex(index) {
|
|
1389
|
-
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1390
|
-
return getItemOptions ? getItemOptions(index).index : index;
|
|
1391
|
-
},
|
|
1392
|
-
getRowStyle: function getRowStyle(rowData) {
|
|
1393
|
-
if (this.rowStyle) {
|
|
1394
|
-
return this.rowStyle(rowData);
|
|
1395
|
-
}
|
|
1396
|
-
},
|
|
1397
|
-
getRowClass: function getRowClass(rowData) {
|
|
1398
|
-
var rowStyleClass = [];
|
|
1399
|
-
if (this.rowClass) {
|
|
1400
|
-
var rowClassValue = this.rowClass(rowData);
|
|
1401
|
-
if (rowClassValue) {
|
|
1402
|
-
rowStyleClass.push(rowClassValue);
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
return [this.cx('row', {
|
|
1406
|
-
rowData: rowData
|
|
1407
|
-
}), rowStyleClass];
|
|
1408
|
-
},
|
|
1409
|
-
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
|
|
1410
|
-
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
1411
|
-
return false;
|
|
1412
|
-
} else {
|
|
1413
|
-
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1414
|
-
var nextRowData = value[i + 1];
|
|
1415
|
-
if (nextRowData) {
|
|
1416
|
-
var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1417
|
-
return currentRowFieldData !== nextRowFieldData;
|
|
1418
|
-
} else {
|
|
1419
|
-
return true;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
},
|
|
1423
|
-
shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
|
|
1424
|
-
if (this.rowGroupMode) {
|
|
1388
|
+
shouldRenderBodyCell: function shouldRenderBodyCell(column) {
|
|
1389
|
+
var isHidden = this.columnProp(column, 'hidden');
|
|
1390
|
+
if (this.rowGroupMode && !isHidden) {
|
|
1391
|
+
var field = this.columnProp(column, 'field');
|
|
1425
1392
|
if (this.rowGroupMode === 'subheader') {
|
|
1426
|
-
return this.groupRowsBy !==
|
|
1393
|
+
return this.groupRowsBy !== field;
|
|
1427
1394
|
} else if (this.rowGroupMode === 'rowspan') {
|
|
1428
1395
|
if (this.isGrouped(column)) {
|
|
1429
|
-
var prevRowData = value[
|
|
1396
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1430
1397
|
if (prevRowData) {
|
|
1431
|
-
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[
|
|
1432
|
-
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData,
|
|
1398
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
|
|
1399
|
+
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, field);
|
|
1433
1400
|
return currentRowFieldData !== previousRowFieldData;
|
|
1434
1401
|
} else {
|
|
1435
1402
|
return true;
|
|
@@ -1439,19 +1406,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1439
1406
|
}
|
|
1440
1407
|
}
|
|
1441
1408
|
} else {
|
|
1442
|
-
return !
|
|
1409
|
+
return !isHidden;
|
|
1443
1410
|
}
|
|
1444
1411
|
},
|
|
1445
|
-
calculateRowGroupSize: function calculateRowGroupSize(
|
|
1412
|
+
calculateRowGroupSize: function calculateRowGroupSize(column) {
|
|
1446
1413
|
if (this.isGrouped(column)) {
|
|
1447
|
-
var
|
|
1414
|
+
var index = this.rowIndex;
|
|
1415
|
+
var field = this.columnProp(column, 'field');
|
|
1416
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[index], field);
|
|
1448
1417
|
var nextRowFieldData = currentRowFieldData;
|
|
1449
1418
|
var groupRowSpan = 0;
|
|
1450
1419
|
while (currentRowFieldData === nextRowFieldData) {
|
|
1451
1420
|
groupRowSpan++;
|
|
1452
|
-
var nextRowData = value[++index];
|
|
1421
|
+
var nextRowData = this.value[++index];
|
|
1453
1422
|
if (nextRowData) {
|
|
1454
|
-
nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData,
|
|
1423
|
+
nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, field);
|
|
1455
1424
|
} else {
|
|
1456
1425
|
break;
|
|
1457
1426
|
}
|
|
@@ -1462,55 +1431,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1462
1431
|
}
|
|
1463
1432
|
},
|
|
1464
1433
|
isGrouped: function isGrouped(column) {
|
|
1465
|
-
|
|
1466
|
-
|
|
1434
|
+
var field = this.columnProp(column, 'field');
|
|
1435
|
+
if (this.groupRowsBy && field) {
|
|
1436
|
+
if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
|
|
1467
1437
|
} else {
|
|
1468
1438
|
return false;
|
|
1469
1439
|
}
|
|
1470
1440
|
},
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
|
|
1474
|
-
}
|
|
1475
|
-
return false;
|
|
1476
|
-
},
|
|
1477
|
-
isRowExpanded: function isRowExpanded(rowData) {
|
|
1478
|
-
if (rowData && this.expandedRows) {
|
|
1479
|
-
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
1480
|
-
}
|
|
1481
|
-
return false;
|
|
1482
|
-
},
|
|
1483
|
-
isRowGroupExpanded: function isRowGroupExpanded(rowData) {
|
|
1484
|
-
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1485
|
-
var groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1486
|
-
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1487
|
-
}
|
|
1488
|
-
return false;
|
|
1489
|
-
},
|
|
1490
|
-
isSelected: function isSelected(rowData) {
|
|
1491
|
-
if (rowData && this.selection) {
|
|
1492
|
-
if (this.dataKey) {
|
|
1493
|
-
return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
1494
|
-
} else {
|
|
1495
|
-
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return false;
|
|
1441
|
+
findIndexInSelection: function findIndexInSelection(data) {
|
|
1442
|
+
return this.findIndex(data, this.selection);
|
|
1499
1443
|
},
|
|
1500
|
-
|
|
1501
|
-
if (rowData && this.contextMenuSelection) {
|
|
1502
|
-
return this.equals(rowData, this.contextMenuSelection, this.dataKey);
|
|
1503
|
-
}
|
|
1504
|
-
return false;
|
|
1505
|
-
},
|
|
1506
|
-
findIndexInSelection: function findIndexInSelection(rowData) {
|
|
1507
|
-
return this.findIndex(rowData, this.selection);
|
|
1508
|
-
},
|
|
1509
|
-
findIndex: function findIndex(rowData, collection) {
|
|
1444
|
+
findIndex: function findIndex(data, collection) {
|
|
1510
1445
|
var index = -1;
|
|
1511
1446
|
if (collection && collection.length) {
|
|
1512
1447
|
for (var i = 0; i < collection.length; i++) {
|
|
1513
|
-
if (this.equals(
|
|
1448
|
+
if (this.equals(data, collection[i])) {
|
|
1514
1449
|
index = i;
|
|
1515
1450
|
break;
|
|
1516
1451
|
}
|
|
@@ -1521,56 +1456,56 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1521
1456
|
equals: function equals(data1, data2) {
|
|
1522
1457
|
return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
|
|
1523
1458
|
},
|
|
1524
|
-
onRowGroupToggle: function onRowGroupToggle(event
|
|
1459
|
+
onRowGroupToggle: function onRowGroupToggle(event) {
|
|
1525
1460
|
this.$emit('rowgroup-toggle', {
|
|
1526
1461
|
originalEvent: event,
|
|
1527
|
-
data:
|
|
1462
|
+
data: this.rowData
|
|
1528
1463
|
});
|
|
1529
1464
|
},
|
|
1530
|
-
onRowClick: function onRowClick(event
|
|
1465
|
+
onRowClick: function onRowClick(event) {
|
|
1531
1466
|
this.$emit('row-click', {
|
|
1532
1467
|
originalEvent: event,
|
|
1533
|
-
data: rowData,
|
|
1534
|
-
index: rowIndex
|
|
1468
|
+
data: this.rowData,
|
|
1469
|
+
index: this.rowIndex
|
|
1535
1470
|
});
|
|
1536
1471
|
},
|
|
1537
|
-
onRowDblClick: function onRowDblClick(event
|
|
1472
|
+
onRowDblClick: function onRowDblClick(event) {
|
|
1538
1473
|
this.$emit('row-dblclick', {
|
|
1539
1474
|
originalEvent: event,
|
|
1540
|
-
data: rowData,
|
|
1541
|
-
index: rowIndex
|
|
1475
|
+
data: this.rowData,
|
|
1476
|
+
index: this.rowIndex
|
|
1542
1477
|
});
|
|
1543
1478
|
},
|
|
1544
|
-
onRowRightClick: function onRowRightClick(event
|
|
1479
|
+
onRowRightClick: function onRowRightClick(event) {
|
|
1545
1480
|
this.$emit('row-rightclick', {
|
|
1546
1481
|
originalEvent: event,
|
|
1547
|
-
data: rowData,
|
|
1548
|
-
index: rowIndex
|
|
1482
|
+
data: this.rowData,
|
|
1483
|
+
index: this.rowIndex
|
|
1549
1484
|
});
|
|
1550
1485
|
},
|
|
1551
1486
|
onRowTouchEnd: function onRowTouchEnd(event) {
|
|
1552
1487
|
this.$emit('row-touchend', event);
|
|
1553
1488
|
},
|
|
1554
|
-
onRowKeyDown: function onRowKeyDown(event
|
|
1489
|
+
onRowKeyDown: function onRowKeyDown(event) {
|
|
1555
1490
|
this.$emit('row-keydown', {
|
|
1556
1491
|
originalEvent: event,
|
|
1557
|
-
data: rowData,
|
|
1558
|
-
index: rowIndex
|
|
1492
|
+
data: this.rowData,
|
|
1493
|
+
index: this.rowIndex
|
|
1559
1494
|
});
|
|
1560
1495
|
},
|
|
1561
1496
|
onRowMouseDown: function onRowMouseDown(event) {
|
|
1562
1497
|
this.$emit('row-mousedown', event);
|
|
1563
1498
|
},
|
|
1564
|
-
onRowDragStart: function onRowDragStart(event
|
|
1499
|
+
onRowDragStart: function onRowDragStart(event) {
|
|
1565
1500
|
this.$emit('row-dragstart', {
|
|
1566
1501
|
originalEvent: event,
|
|
1567
|
-
index: rowIndex
|
|
1502
|
+
index: this.rowIndex
|
|
1568
1503
|
});
|
|
1569
1504
|
},
|
|
1570
|
-
onRowDragOver: function onRowDragOver(event
|
|
1505
|
+
onRowDragOver: function onRowDragOver(event) {
|
|
1571
1506
|
this.$emit('row-dragover', {
|
|
1572
1507
|
originalEvent: event,
|
|
1573
|
-
index: rowIndex
|
|
1508
|
+
index: this.rowIndex
|
|
1574
1509
|
});
|
|
1575
1510
|
},
|
|
1576
1511
|
onRowDragLeave: function onRowDragLeave(event) {
|
|
@@ -1583,7 +1518,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1583
1518
|
this.$emit('row-drop', event);
|
|
1584
1519
|
},
|
|
1585
1520
|
onRowToggle: function onRowToggle(event) {
|
|
1586
|
-
this
|
|
1521
|
+
this.d_rowExpanded = !this.d_rowExpanded;
|
|
1522
|
+
this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
|
|
1523
|
+
expanded: this.d_rowExpanded
|
|
1524
|
+
}));
|
|
1587
1525
|
},
|
|
1588
1526
|
onRadioChange: function onRadioChange(event) {
|
|
1589
1527
|
this.$emit('radio-change', event);
|
|
@@ -1612,6 +1550,420 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1612
1550
|
onEditingMetaChange: function onEditingMetaChange(event) {
|
|
1613
1551
|
this.$emit('editing-meta-change', event);
|
|
1614
1552
|
},
|
|
1553
|
+
getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
|
|
1554
|
+
options = options || this.virtualScrollerContentProps;
|
|
1555
|
+
return options ? options[option] : null;
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
computed: {
|
|
1559
|
+
rowIndex: function rowIndex() {
|
|
1560
|
+
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1561
|
+
return getItemOptions ? getItemOptions(this.index).index : this.index;
|
|
1562
|
+
},
|
|
1563
|
+
rowStyles: function rowStyles() {
|
|
1564
|
+
var _this$rowStyle;
|
|
1565
|
+
return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
|
|
1566
|
+
},
|
|
1567
|
+
rowClasses: function rowClasses() {
|
|
1568
|
+
var rowStyleClass = [];
|
|
1569
|
+
if (this.rowClass) {
|
|
1570
|
+
var rowClassValue = this.rowClass(this.rowData);
|
|
1571
|
+
if (rowClassValue) {
|
|
1572
|
+
rowStyleClass.push(rowClassValue);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
return [this.cx('row', {
|
|
1576
|
+
rowData: this.rowData,
|
|
1577
|
+
index: this.rowIndex
|
|
1578
|
+
}), rowStyleClass];
|
|
1579
|
+
},
|
|
1580
|
+
rowTabindex: function rowTabindex() {
|
|
1581
|
+
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1582
|
+
return this.rowIndex === 0 ? 0 : -1;
|
|
1583
|
+
}
|
|
1584
|
+
return -1;
|
|
1585
|
+
},
|
|
1586
|
+
isRowEditing: function isRowEditing() {
|
|
1587
|
+
if (this.rowData && this.editingRows) {
|
|
1588
|
+
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
|
|
1589
|
+
}
|
|
1590
|
+
return false;
|
|
1591
|
+
},
|
|
1592
|
+
isRowGroupExpanded: function isRowGroupExpanded() {
|
|
1593
|
+
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1594
|
+
var groupFieldValue = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1595
|
+
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1596
|
+
}
|
|
1597
|
+
return false;
|
|
1598
|
+
},
|
|
1599
|
+
isSelected: function isSelected() {
|
|
1600
|
+
if (this.rowData && this.selection) {
|
|
1601
|
+
if (this.dataKey) {
|
|
1602
|
+
return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
|
|
1603
|
+
} else {
|
|
1604
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
return false;
|
|
1608
|
+
},
|
|
1609
|
+
isSelectedWithContextMenu: function isSelectedWithContextMenu() {
|
|
1610
|
+
if (this.rowData && this.contextMenuSelection) {
|
|
1611
|
+
return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
|
|
1612
|
+
}
|
|
1613
|
+
return false;
|
|
1614
|
+
},
|
|
1615
|
+
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
|
|
1616
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1617
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1618
|
+
if (prevRowData) {
|
|
1619
|
+
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1620
|
+
return currentRowFieldData !== previousRowFieldData;
|
|
1621
|
+
} else {
|
|
1622
|
+
return true;
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
|
|
1626
|
+
if (this.expandableRowGroups && !this.isRowGroupExpanded) {
|
|
1627
|
+
return false;
|
|
1628
|
+
} else {
|
|
1629
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1630
|
+
var nextRowData = this.value[this.rowIndex + 1];
|
|
1631
|
+
if (nextRowData) {
|
|
1632
|
+
var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1633
|
+
return currentRowFieldData !== nextRowFieldData;
|
|
1634
|
+
} else {
|
|
1635
|
+
return true;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
columnsLength: function columnsLength() {
|
|
1640
|
+
var _this2 = this;
|
|
1641
|
+
var hiddenColLength = 0;
|
|
1642
|
+
this.columns.forEach(function (column) {
|
|
1643
|
+
if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1644
|
+
if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1645
|
+
});
|
|
1646
|
+
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
components: {
|
|
1650
|
+
DTBodyCell: script$9,
|
|
1651
|
+
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1652
|
+
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
|
|
1657
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1658
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1659
|
+
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1660
|
+
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1661
|
+
function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1662
|
+
var _hoisted_1$4 = ["colspan"];
|
|
1663
|
+
var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1664
|
+
var _hoisted_3$1 = ["id"];
|
|
1665
|
+
var _hoisted_4 = ["colspan"];
|
|
1666
|
+
var _hoisted_5 = ["colspan"];
|
|
1667
|
+
var _hoisted_6 = ["colspan"];
|
|
1668
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1669
|
+
var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
|
|
1670
|
+
var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
1671
|
+
var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
|
|
1672
|
+
return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1673
|
+
key: 0
|
|
1674
|
+
}, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1675
|
+
key: 0,
|
|
1676
|
+
"class": _ctx.cx('rowGroupHeader'),
|
|
1677
|
+
style: $props.rowGroupHeaderStyle,
|
|
1678
|
+
role: "row"
|
|
1679
|
+
}, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1680
|
+
colspan: $options.columnsLength - 1
|
|
1681
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1682
|
+
key: 0,
|
|
1683
|
+
"class": _ctx.cx('rowGroupToggler'),
|
|
1684
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1685
|
+
return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
|
|
1686
|
+
}),
|
|
1687
|
+
type: "button"
|
|
1688
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1689
|
+
key: 0,
|
|
1690
|
+
expanded: $options.isRowGroupExpanded
|
|
1691
|
+
}, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1692
|
+
key: 1
|
|
1693
|
+
}, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1694
|
+
key: 0,
|
|
1695
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1696
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
|
|
1697
|
+
key: 1,
|
|
1698
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1699
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1700
|
+
key: 2,
|
|
1701
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1702
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
|
|
1703
|
+
key: 3,
|
|
1704
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1705
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
|
|
1706
|
+
data: $props.rowData,
|
|
1707
|
+
index: $options.rowIndex
|
|
1708
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1709
|
+
key: 1,
|
|
1710
|
+
"class": $options.rowClasses,
|
|
1711
|
+
style: $options.rowStyles,
|
|
1712
|
+
tabindex: $options.rowTabindex,
|
|
1713
|
+
role: "row",
|
|
1714
|
+
"aria-selected": $props.selectionMode ? $options.isSelected : null,
|
|
1715
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1716
|
+
return $options.onRowClick && $options.onRowClick.apply($options, arguments);
|
|
1717
|
+
}),
|
|
1718
|
+
onDblclick: _cache[2] || (_cache[2] = function () {
|
|
1719
|
+
return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
|
|
1720
|
+
}),
|
|
1721
|
+
onContextmenu: _cache[3] || (_cache[3] = function () {
|
|
1722
|
+
return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
|
|
1723
|
+
}),
|
|
1724
|
+
onTouchend: _cache[4] || (_cache[4] = function () {
|
|
1725
|
+
return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
|
|
1726
|
+
}),
|
|
1727
|
+
onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
|
|
1728
|
+
return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
|
|
1729
|
+
}, ["self"])),
|
|
1730
|
+
onMousedown: _cache[6] || (_cache[6] = function () {
|
|
1731
|
+
return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
|
|
1732
|
+
}),
|
|
1733
|
+
onDragstart: _cache[7] || (_cache[7] = function () {
|
|
1734
|
+
return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
|
|
1735
|
+
}),
|
|
1736
|
+
onDragover: _cache[8] || (_cache[8] = function () {
|
|
1737
|
+
return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
|
|
1738
|
+
}),
|
|
1739
|
+
onDragleave: _cache[9] || (_cache[9] = function () {
|
|
1740
|
+
return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
|
|
1741
|
+
}),
|
|
1742
|
+
onDragend: _cache[10] || (_cache[10] = function () {
|
|
1743
|
+
return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
|
|
1744
|
+
}),
|
|
1745
|
+
onDrop: _cache[11] || (_cache[11] = function () {
|
|
1746
|
+
return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
|
|
1747
|
+
})
|
|
1748
|
+
}, $options.getBodyRowPTOptions('bodyRow'), {
|
|
1749
|
+
"data-p-index": $options.rowIndex,
|
|
1750
|
+
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1751
|
+
"data-p-highlight": $props.selection && $options.isSelected,
|
|
1752
|
+
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
|
|
1753
|
+
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
|
|
1754
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
|
|
1755
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1756
|
+
rowData: $props.rowData,
|
|
1757
|
+
column: col,
|
|
1758
|
+
rowIndex: $options.rowIndex,
|
|
1759
|
+
index: i,
|
|
1760
|
+
selected: $options.isSelected,
|
|
1761
|
+
frozenRow: $props.frozenRow,
|
|
1762
|
+
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
|
|
1763
|
+
editMode: $props.editMode,
|
|
1764
|
+
editing: $props.editMode === 'row' && $options.isRowEditing,
|
|
1765
|
+
editingMeta: $props.editingMeta,
|
|
1766
|
+
responsiveLayout: $props.responsiveLayout,
|
|
1767
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
1768
|
+
ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1769
|
+
name: $props.nameAttributeSelector,
|
|
1770
|
+
isRowExpanded: $data.d_rowExpanded,
|
|
1771
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
1772
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
1773
|
+
onRadioChange: $options.onRadioChange,
|
|
1774
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1775
|
+
onRowToggle: $options.onRowToggle,
|
|
1776
|
+
onCellEditInit: $options.onCellEditInit,
|
|
1777
|
+
onCellEditComplete: $options.onCellEditComplete,
|
|
1778
|
+
onCellEditCancel: $options.onCellEditCancel,
|
|
1779
|
+
onRowEditInit: $options.onRowEditInit,
|
|
1780
|
+
onRowEditSave: $options.onRowEditSave,
|
|
1781
|
+
onRowEditCancel: $options.onRowEditCancel,
|
|
1782
|
+
onEditingMetaChange: $options.onEditingMetaChange,
|
|
1783
|
+
unstyled: _ctx.unstyled,
|
|
1784
|
+
pt: _ctx.pt
|
|
1785
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
1786
|
+
}), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1787
|
+
key: 2,
|
|
1788
|
+
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1789
|
+
"class": _ctx.cx('rowExpansion'),
|
|
1790
|
+
role: "row"
|
|
1791
|
+
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1792
|
+
colspan: $options.columnsLength
|
|
1793
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
1794
|
+
data: $props.rowData,
|
|
1795
|
+
index: $options.rowIndex
|
|
1796
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1797
|
+
key: 3,
|
|
1798
|
+
"class": _ctx.cx('rowGroupFooter'),
|
|
1799
|
+
role: "row"
|
|
1800
|
+
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1801
|
+
colspan: $options.columnsLength - 1
|
|
1802
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1803
|
+
data: $props.rowData,
|
|
1804
|
+
index: $options.rowIndex
|
|
1805
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1806
|
+
key: 1,
|
|
1807
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1808
|
+
role: "row"
|
|
1809
|
+
}, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1810
|
+
colspan: $options.columnsLength
|
|
1811
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
1812
|
+
key: 0
|
|
1813
|
+
})) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
script$8.render = render$8;
|
|
1817
|
+
|
|
1818
|
+
var script$7 = {
|
|
1819
|
+
name: 'TableBody',
|
|
1820
|
+
hostName: 'DataTable',
|
|
1821
|
+
"extends": BaseComponent__default["default"],
|
|
1822
|
+
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1823
|
+
props: {
|
|
1824
|
+
value: {
|
|
1825
|
+
type: Array,
|
|
1826
|
+
"default": null
|
|
1827
|
+
},
|
|
1828
|
+
columns: {
|
|
1829
|
+
type: null,
|
|
1830
|
+
"default": null
|
|
1831
|
+
},
|
|
1832
|
+
frozenRow: {
|
|
1833
|
+
type: Boolean,
|
|
1834
|
+
"default": false
|
|
1835
|
+
},
|
|
1836
|
+
empty: {
|
|
1837
|
+
type: Boolean,
|
|
1838
|
+
"default": false
|
|
1839
|
+
},
|
|
1840
|
+
rowGroupMode: {
|
|
1841
|
+
type: String,
|
|
1842
|
+
"default": null
|
|
1843
|
+
},
|
|
1844
|
+
groupRowsBy: {
|
|
1845
|
+
type: [Array, String, Function],
|
|
1846
|
+
"default": null
|
|
1847
|
+
},
|
|
1848
|
+
expandableRowGroups: {
|
|
1849
|
+
type: Boolean,
|
|
1850
|
+
"default": false
|
|
1851
|
+
},
|
|
1852
|
+
expandedRowGroups: {
|
|
1853
|
+
type: Array,
|
|
1854
|
+
"default": null
|
|
1855
|
+
},
|
|
1856
|
+
first: {
|
|
1857
|
+
type: Number,
|
|
1858
|
+
"default": 0
|
|
1859
|
+
},
|
|
1860
|
+
dataKey: {
|
|
1861
|
+
type: [String, Function],
|
|
1862
|
+
"default": null
|
|
1863
|
+
},
|
|
1864
|
+
expandedRowIcon: {
|
|
1865
|
+
type: String,
|
|
1866
|
+
"default": null
|
|
1867
|
+
},
|
|
1868
|
+
collapsedRowIcon: {
|
|
1869
|
+
type: String,
|
|
1870
|
+
"default": null
|
|
1871
|
+
},
|
|
1872
|
+
expandedRows: {
|
|
1873
|
+
type: [Array, Object],
|
|
1874
|
+
"default": null
|
|
1875
|
+
},
|
|
1876
|
+
selection: {
|
|
1877
|
+
type: [Array, Object],
|
|
1878
|
+
"default": null
|
|
1879
|
+
},
|
|
1880
|
+
selectionKeys: {
|
|
1881
|
+
type: null,
|
|
1882
|
+
"default": null
|
|
1883
|
+
},
|
|
1884
|
+
selectionMode: {
|
|
1885
|
+
type: String,
|
|
1886
|
+
"default": null
|
|
1887
|
+
},
|
|
1888
|
+
contextMenu: {
|
|
1889
|
+
type: Boolean,
|
|
1890
|
+
"default": false
|
|
1891
|
+
},
|
|
1892
|
+
contextMenuSelection: {
|
|
1893
|
+
type: Object,
|
|
1894
|
+
"default": null
|
|
1895
|
+
},
|
|
1896
|
+
rowClass: {
|
|
1897
|
+
type: null,
|
|
1898
|
+
"default": null
|
|
1899
|
+
},
|
|
1900
|
+
rowStyle: {
|
|
1901
|
+
type: null,
|
|
1902
|
+
"default": null
|
|
1903
|
+
},
|
|
1904
|
+
editMode: {
|
|
1905
|
+
type: String,
|
|
1906
|
+
"default": null
|
|
1907
|
+
},
|
|
1908
|
+
compareSelectionBy: {
|
|
1909
|
+
type: String,
|
|
1910
|
+
"default": 'deepEquals'
|
|
1911
|
+
},
|
|
1912
|
+
editingRows: {
|
|
1913
|
+
type: Array,
|
|
1914
|
+
"default": null
|
|
1915
|
+
},
|
|
1916
|
+
editingRowKeys: {
|
|
1917
|
+
type: null,
|
|
1918
|
+
"default": null
|
|
1919
|
+
},
|
|
1920
|
+
editingMeta: {
|
|
1921
|
+
type: Object,
|
|
1922
|
+
"default": null
|
|
1923
|
+
},
|
|
1924
|
+
templates: {
|
|
1925
|
+
type: null,
|
|
1926
|
+
"default": null
|
|
1927
|
+
},
|
|
1928
|
+
scrollable: {
|
|
1929
|
+
type: Boolean,
|
|
1930
|
+
"default": false
|
|
1931
|
+
},
|
|
1932
|
+
responsiveLayout: {
|
|
1933
|
+
type: String,
|
|
1934
|
+
"default": 'stack'
|
|
1935
|
+
},
|
|
1936
|
+
virtualScrollerContentProps: {
|
|
1937
|
+
type: Object,
|
|
1938
|
+
"default": null
|
|
1939
|
+
},
|
|
1940
|
+
isVirtualScrollerDisabled: {
|
|
1941
|
+
type: Boolean,
|
|
1942
|
+
"default": false
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
data: function data() {
|
|
1946
|
+
return {
|
|
1947
|
+
rowGroupHeaderStyleObject: {}
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
mounted: function mounted() {
|
|
1951
|
+
if (this.frozenRow) {
|
|
1952
|
+
this.updateFrozenRowStickyPosition();
|
|
1953
|
+
}
|
|
1954
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1955
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
updated: function updated() {
|
|
1959
|
+
if (this.frozenRow) {
|
|
1960
|
+
this.updateFrozenRowStickyPosition();
|
|
1961
|
+
}
|
|
1962
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1963
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1964
|
+
}
|
|
1965
|
+
},
|
|
1966
|
+
methods: {
|
|
1615
1967
|
updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
|
|
1616
1968
|
this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
1617
1969
|
},
|
|
@@ -1627,74 +1979,42 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1627
1979
|
// For VirtualScroller
|
|
1628
1980
|
var contentRef = this.getVirtualScrollerProp('contentRef');
|
|
1629
1981
|
contentRef && contentRef(el);
|
|
1630
|
-
},
|
|
1631
|
-
setRowTabindex: function setRowTabindex(index) {
|
|
1632
|
-
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1633
|
-
return index === 0 ? 0 : -1;
|
|
1634
|
-
}
|
|
1635
|
-
return -1;
|
|
1636
1982
|
}
|
|
1637
1983
|
},
|
|
1638
1984
|
computed: {
|
|
1639
|
-
columnsLength: function columnsLength() {
|
|
1640
|
-
var _this = this;
|
|
1641
|
-
var hiddenColLength = 0;
|
|
1642
|
-
this.columns.forEach(function (column) {
|
|
1643
|
-
if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1644
|
-
if (_this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1645
|
-
});
|
|
1646
|
-
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1647
|
-
},
|
|
1648
1985
|
rowGroupHeaderStyle: function rowGroupHeaderStyle() {
|
|
1649
1986
|
if (this.scrollable) {
|
|
1650
1987
|
return {
|
|
1651
1988
|
top: this.rowGroupHeaderStyleObject.top
|
|
1652
1989
|
};
|
|
1653
1990
|
}
|
|
1654
|
-
return null;
|
|
1655
|
-
},
|
|
1656
|
-
bodyStyle: function bodyStyle() {
|
|
1657
|
-
return this.getVirtualScrollerProp('contentStyle');
|
|
1658
|
-
},
|
|
1659
|
-
expandedRowId: function expandedRowId() {
|
|
1660
|
-
return utils.UniqueComponentId();
|
|
1991
|
+
return null;
|
|
1661
1992
|
},
|
|
1662
|
-
|
|
1663
|
-
return
|
|
1993
|
+
bodyStyle: function bodyStyle() {
|
|
1994
|
+
return this.getVirtualScrollerProp('contentStyle');
|
|
1664
1995
|
},
|
|
1665
1996
|
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1666
|
-
var _this$$
|
|
1997
|
+
var _this$$parentInstance;
|
|
1667
1998
|
return {
|
|
1668
1999
|
context: {
|
|
1669
|
-
scrollable: (_this$$
|
|
2000
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
1670
2001
|
}
|
|
1671
2002
|
};
|
|
2003
|
+
},
|
|
2004
|
+
expandedRowId: function expandedRowId() {
|
|
2005
|
+
return utils.UniqueComponentId();
|
|
2006
|
+
},
|
|
2007
|
+
nameAttributeSelector: function nameAttributeSelector() {
|
|
2008
|
+
return utils.UniqueComponentId();
|
|
1672
2009
|
}
|
|
1673
2010
|
},
|
|
1674
2011
|
components: {
|
|
1675
|
-
|
|
1676
|
-
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1677
|
-
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
2012
|
+
DTBodyRow: script$8
|
|
1678
2013
|
}
|
|
1679
2014
|
};
|
|
1680
2015
|
|
|
1681
|
-
function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
|
|
1682
|
-
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1683
|
-
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1684
|
-
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1685
|
-
function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
|
|
1686
|
-
function _toPrimitive$8(input, hint) { if (_typeof$8(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$8(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1687
|
-
var _hoisted_1$4 = ["colspan"];
|
|
1688
|
-
var _hoisted_2$1 = ["onClick"];
|
|
1689
|
-
var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1690
|
-
var _hoisted_4 = ["id"];
|
|
1691
|
-
var _hoisted_5 = ["colspan"];
|
|
1692
|
-
var _hoisted_6 = ["colspan"];
|
|
1693
|
-
var _hoisted_7 = ["colspan"];
|
|
1694
2016
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1695
|
-
var
|
|
1696
|
-
var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
1697
|
-
var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
|
|
2017
|
+
var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
|
|
1698
2018
|
return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
1699
2019
|
ref: $options.bodyRef,
|
|
1700
2020
|
"class": _ctx.cx('tbody'),
|
|
@@ -1702,165 +2022,119 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1702
2022
|
style: $options.bodyStyle
|
|
1703
2023
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1704
2024
|
key: 0
|
|
1705
|
-
}, vue.renderList($props.value, function (rowData,
|
|
1706
|
-
return vue.openBlock(), vue.
|
|
1707
|
-
key:
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
role: "row",
|
|
1746
|
-
"aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
|
|
1747
|
-
onClick: function onClick($event) {
|
|
1748
|
-
return $options.onRowClick($event, rowData, $options.getRowIndex(index));
|
|
1749
|
-
},
|
|
1750
|
-
onDblclick: function onDblclick($event) {
|
|
1751
|
-
return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
|
|
1752
|
-
},
|
|
1753
|
-
onContextmenu: function onContextmenu($event) {
|
|
1754
|
-
return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
|
|
1755
|
-
},
|
|
1756
|
-
onTouchend: _cache[9] || (_cache[9] = function ($event) {
|
|
1757
|
-
return $options.onRowTouchEnd($event);
|
|
2025
|
+
}, vue.renderList($props.value, function (rowData, rowIndex) {
|
|
2026
|
+
return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
2027
|
+
key: rowIndex,
|
|
2028
|
+
rowData: rowData,
|
|
2029
|
+
index: rowIndex,
|
|
2030
|
+
value: $props.value,
|
|
2031
|
+
columns: $props.columns,
|
|
2032
|
+
frozenRow: $props.frozenRow,
|
|
2033
|
+
empty: $props.empty,
|
|
2034
|
+
first: $props.first,
|
|
2035
|
+
dataKey: $props.dataKey,
|
|
2036
|
+
selection: $props.selection,
|
|
2037
|
+
selectionKeys: $props.selectionKeys,
|
|
2038
|
+
selectionMode: $props.selectionMode,
|
|
2039
|
+
contextMenu: $props.contextMenu,
|
|
2040
|
+
contextMenuSelection: $props.contextMenuSelection,
|
|
2041
|
+
rowGroupMode: $props.rowGroupMode,
|
|
2042
|
+
groupRowsBy: $props.groupRowsBy,
|
|
2043
|
+
expandableRowGroups: $props.expandableRowGroups,
|
|
2044
|
+
rowClass: $props.rowClass,
|
|
2045
|
+
rowStyle: $props.rowStyle,
|
|
2046
|
+
editMode: $props.editMode,
|
|
2047
|
+
compareSelectionBy: $props.compareSelectionBy,
|
|
2048
|
+
scrollable: $props.scrollable,
|
|
2049
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
2050
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
2051
|
+
expandedRows: $props.expandedRows,
|
|
2052
|
+
expandedRowGroups: $props.expandedRowGroups,
|
|
2053
|
+
editingRows: $props.editingRows,
|
|
2054
|
+
editingRowKeys: $props.editingRowKeys,
|
|
2055
|
+
templates: $props.templates,
|
|
2056
|
+
responsiveLayout: $props.responsiveLayout,
|
|
2057
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
2058
|
+
isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
|
|
2059
|
+
editingMeta: $props.editingMeta,
|
|
2060
|
+
rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
|
|
2061
|
+
expandedRowId: $options.expandedRowId,
|
|
2062
|
+
nameAttributeSelector: $options.nameAttributeSelector,
|
|
2063
|
+
onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
2064
|
+
return _ctx.$emit('rowgroup-toggle', $event);
|
|
1758
2065
|
}),
|
|
1759
|
-
|
|
1760
|
-
return
|
|
1761
|
-
}, ["self"]),
|
|
1762
|
-
onMousedown: _cache[10] || (_cache[10] = function ($event) {
|
|
1763
|
-
return $options.onRowMouseDown($event);
|
|
2066
|
+
onRowClick: _cache[1] || (_cache[1] = function ($event) {
|
|
2067
|
+
return _ctx.$emit('row-click', $event);
|
|
1764
2068
|
}),
|
|
1765
|
-
|
|
1766
|
-
return
|
|
1767
|
-
},
|
|
1768
|
-
onDragover: function onDragover($event) {
|
|
1769
|
-
return $options.onRowDragOver($event, $options.getRowIndex(index));
|
|
1770
|
-
},
|
|
1771
|
-
onDragleave: _cache[11] || (_cache[11] = function ($event) {
|
|
1772
|
-
return $options.onRowDragLeave($event);
|
|
2069
|
+
onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
|
|
2070
|
+
return _ctx.$emit('row-dblclick', $event);
|
|
1773
2071
|
}),
|
|
1774
|
-
|
|
1775
|
-
return
|
|
2072
|
+
onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
|
|
2073
|
+
return _ctx.$emit('row-rightclick', $event);
|
|
1776
2074
|
}),
|
|
1777
|
-
|
|
1778
|
-
return
|
|
1779
|
-
})
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
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
|
-
}), 256))], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1836
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
1837
|
-
id: $options.expandedRowId + '_' + index + '_expansion',
|
|
1838
|
-
"class": _ctx.cx('rowExpansion'),
|
|
1839
|
-
role: "row"
|
|
1840
|
-
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1841
|
-
colspan: $options.columnsLength
|
|
1842
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
1843
|
-
data: rowData,
|
|
1844
|
-
index: $options.getRowIndex(index)
|
|
1845
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1846
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
1847
|
-
"class": _ctx.cx('rowGroupFooter'),
|
|
1848
|
-
role: "row"
|
|
1849
|
-
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1850
|
-
colspan: $options.columnsLength - 1
|
|
1851
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1852
|
-
data: rowData,
|
|
1853
|
-
index: $options.getRowIndex(index)
|
|
1854
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
1855
|
-
}), 256)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2075
|
+
onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
|
|
2076
|
+
return _ctx.$emit('row-touchend', $event);
|
|
2077
|
+
}),
|
|
2078
|
+
onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
|
|
2079
|
+
return _ctx.$emit('row-keydown', $event);
|
|
2080
|
+
}),
|
|
2081
|
+
onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
|
|
2082
|
+
return _ctx.$emit('row-mousedown', $event);
|
|
2083
|
+
}),
|
|
2084
|
+
onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
|
|
2085
|
+
return _ctx.$emit('row-dragstart', $event);
|
|
2086
|
+
}),
|
|
2087
|
+
onRowDragover: _cache[8] || (_cache[8] = function ($event) {
|
|
2088
|
+
return _ctx.$emit('row-dragover', $event);
|
|
2089
|
+
}),
|
|
2090
|
+
onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
|
|
2091
|
+
return _ctx.$emit('row-dragleave', $event);
|
|
2092
|
+
}),
|
|
2093
|
+
onRowDragend: _cache[10] || (_cache[10] = function ($event) {
|
|
2094
|
+
return _ctx.$emit('row-dragend', $event);
|
|
2095
|
+
}),
|
|
2096
|
+
onRowDrop: _cache[11] || (_cache[11] = function ($event) {
|
|
2097
|
+
return _ctx.$emit('row-drop', $event);
|
|
2098
|
+
}),
|
|
2099
|
+
onRowToggle: _cache[12] || (_cache[12] = function ($event) {
|
|
2100
|
+
return _ctx.$emit('row-toggle', $event);
|
|
2101
|
+
}),
|
|
2102
|
+
onRadioChange: _cache[13] || (_cache[13] = function ($event) {
|
|
2103
|
+
return _ctx.$emit('radio-change', $event);
|
|
2104
|
+
}),
|
|
2105
|
+
onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
|
|
2106
|
+
return _ctx.$emit('checkbox-change', $event);
|
|
2107
|
+
}),
|
|
2108
|
+
onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
|
|
2109
|
+
return _ctx.$emit('cell-edit-init', $event);
|
|
2110
|
+
}),
|
|
2111
|
+
onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
|
|
2112
|
+
return _ctx.$emit('cell-edit-complete', $event);
|
|
2113
|
+
}),
|
|
2114
|
+
onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
|
|
2115
|
+
return _ctx.$emit('cell-edit-cancel', $event);
|
|
2116
|
+
}),
|
|
2117
|
+
onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
|
|
2118
|
+
return _ctx.$emit('row-edit-init', $event);
|
|
2119
|
+
}),
|
|
2120
|
+
onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
|
|
2121
|
+
return _ctx.$emit('row-edit-save', $event);
|
|
2122
|
+
}),
|
|
2123
|
+
onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
|
|
2124
|
+
return _ctx.$emit('row-edit-cancel', $event);
|
|
2125
|
+
}),
|
|
2126
|
+
onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
|
|
2127
|
+
return _ctx.$emit('editing-meta-change', $event);
|
|
2128
|
+
}),
|
|
2129
|
+
unstyled: _ctx.unstyled,
|
|
2130
|
+
pt: _ctx.pt
|
|
2131
|
+
}, null, 8, ["rowData", "index", "value", "columns", "frozenRow", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "editingMeta", "rowGroupHeaderStyle", "expandedRowId", "nameAttributeSelector", "unstyled", "pt"]);
|
|
2132
|
+
}), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
1856
2133
|
key: 1,
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
1862
|
-
key: 0
|
|
1863
|
-
})) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
|
|
2134
|
+
empty: $props.empty,
|
|
2135
|
+
columns: $props.columns,
|
|
2136
|
+
templates: $props.templates
|
|
2137
|
+
}, null, 8, ["empty", "columns", "templates"]))], 16);
|
|
1864
2138
|
}
|
|
1865
2139
|
|
|
1866
2140
|
script$7.render = render$7;
|
|
@@ -1957,8 +2231,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1957
2231
|
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1958
2232
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty$7(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1959
2233
|
function _defineProperty$7(obj, key, value) { key = _toPropertyKey$7(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1960
|
-
function _toPropertyKey$7(
|
|
1961
|
-
function _toPrimitive$7(
|
|
2234
|
+
function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : String(i); }
|
|
2235
|
+
function _toPrimitive$7(t, r) { if ("object" != _typeof$7(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$7(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1962
2236
|
var _hoisted_1$3 = ["colspan", "rowspan", "data-p-frozen-column"];
|
|
1963
2237
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1964
2238
|
return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
@@ -1977,13 +2251,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1977
2251
|
|
|
1978
2252
|
script$6.render = render$6;
|
|
1979
2253
|
|
|
1980
|
-
function
|
|
1981
|
-
function
|
|
1982
|
-
function
|
|
1983
|
-
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
1984
|
-
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
1985
|
-
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
1986
|
-
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
2254
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2255
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
2256
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1987
2257
|
var script$5 = {
|
|
1988
2258
|
name: 'TableFooter',
|
|
1989
2259
|
hostName: 'DataTable',
|
|
@@ -1998,6 +2268,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1998
2268
|
"default": null
|
|
1999
2269
|
}
|
|
2000
2270
|
},
|
|
2271
|
+
provide: function provide() {
|
|
2272
|
+
return {
|
|
2273
|
+
$rows: this.d_footerRows,
|
|
2274
|
+
$columns: this.d_footerColumns
|
|
2275
|
+
};
|
|
2276
|
+
},
|
|
2277
|
+
data: function data() {
|
|
2278
|
+
return {
|
|
2279
|
+
d_footerRows: new utils.HelperSet({
|
|
2280
|
+
type: 'Row'
|
|
2281
|
+
}),
|
|
2282
|
+
d_footerColumns: new utils.HelperSet({
|
|
2283
|
+
type: 'Column'
|
|
2284
|
+
})
|
|
2285
|
+
};
|
|
2286
|
+
},
|
|
2287
|
+
beforeUnmount: function beforeUnmount() {
|
|
2288
|
+
this.d_footerRows.clear();
|
|
2289
|
+
this.d_footerColumns.clear();
|
|
2290
|
+
},
|
|
2001
2291
|
methods: {
|
|
2002
2292
|
columnProp: function columnProp(col, prop) {
|
|
2003
2293
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2042,36 +2332,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2042
2332
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
2043
2333
|
},
|
|
2044
2334
|
getFooterRows: function getFooterRows() {
|
|
2045
|
-
var
|
|
2046
|
-
|
|
2047
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
2048
|
-
var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
|
|
2049
|
-
_step;
|
|
2050
|
-
try {
|
|
2051
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2052
|
-
var child = _step.value;
|
|
2053
|
-
if (child.type.name === 'Row') {
|
|
2054
|
-
rows.push(child);
|
|
2055
|
-
} else if (child.children && child.children instanceof Array) {
|
|
2056
|
-
rows = child.children;
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
} catch (err) {
|
|
2060
|
-
_iterator.e(err);
|
|
2061
|
-
} finally {
|
|
2062
|
-
_iterator.f();
|
|
2063
|
-
}
|
|
2064
|
-
return rows;
|
|
2065
|
-
}
|
|
2335
|
+
var _this$d_footerRows;
|
|
2336
|
+
return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
|
|
2066
2337
|
},
|
|
2067
2338
|
getFooterColumns: function getFooterColumns(row) {
|
|
2068
|
-
var
|
|
2069
|
-
|
|
2070
|
-
row.children["default"]().forEach(function (child) {
|
|
2071
|
-
if (child.children && child.children instanceof Array) cols = [].concat(_toConsumableArray$2(cols), _toConsumableArray$2(child.children));else if (child.type.name === 'Column') cols.push(child);
|
|
2072
|
-
});
|
|
2073
|
-
return cols;
|
|
2074
|
-
}
|
|
2339
|
+
var _this$d_footerColumns;
|
|
2340
|
+
return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
|
|
2075
2341
|
}
|
|
2076
2342
|
},
|
|
2077
2343
|
computed: {
|
|
@@ -2080,20 +2346,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2080
2346
|
if (this.columnGroup) {
|
|
2081
2347
|
hasFooter = true;
|
|
2082
2348
|
} else if (this.columns) {
|
|
2083
|
-
var
|
|
2084
|
-
|
|
2349
|
+
var _iterator = _createForOfIteratorHelper$1(this.columns),
|
|
2350
|
+
_step;
|
|
2085
2351
|
try {
|
|
2086
|
-
for (
|
|
2087
|
-
var col =
|
|
2352
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2353
|
+
var col = _step.value;
|
|
2088
2354
|
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
2089
2355
|
hasFooter = true;
|
|
2090
2356
|
break;
|
|
2091
2357
|
}
|
|
2092
2358
|
}
|
|
2093
2359
|
} catch (err) {
|
|
2094
|
-
|
|
2360
|
+
_iterator.e(err);
|
|
2095
2361
|
} finally {
|
|
2096
|
-
|
|
2362
|
+
_iterator.f();
|
|
2097
2363
|
}
|
|
2098
2364
|
}
|
|
2099
2365
|
return hasFooter;
|
|
@@ -2116,8 +2382,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2116
2382
|
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2117
2383
|
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty$6(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2118
2384
|
function _defineProperty$6(obj, key, value) { key = _toPropertyKey$6(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2119
|
-
function _toPropertyKey$6(
|
|
2120
|
-
function _toPrimitive$6(
|
|
2385
|
+
function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : String(i); }
|
|
2386
|
+
function _toPrimitive$6(t, r) { if ("object" != _typeof$6(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$6(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2121
2387
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2122
2388
|
var _component_DTFooterCell = vue.resolveComponent("DTFooterCell");
|
|
2123
2389
|
return $options.hasFooter ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
|
|
@@ -2163,8 +2429,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2163
2429
|
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2164
2430
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty$5(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2165
2431
|
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2166
|
-
function _toPropertyKey$5(
|
|
2167
|
-
function _toPrimitive$5(
|
|
2432
|
+
function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : String(i); }
|
|
2433
|
+
function _toPrimitive$5(t, r) { if ("object" != _typeof$5(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$5(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2168
2434
|
var script$4 = {
|
|
2169
2435
|
name: 'ColumnFilter',
|
|
2170
2436
|
hostName: 'DataTable',
|
|
@@ -2383,6 +2649,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2383
2649
|
onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
|
|
2384
2650
|
switch (event.code) {
|
|
2385
2651
|
case 'Enter':
|
|
2652
|
+
case 'NumpadEnter':
|
|
2386
2653
|
case 'Space':
|
|
2387
2654
|
this.toggleMenu(event);
|
|
2388
2655
|
break;
|
|
@@ -2704,8 +2971,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2704
2971
|
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2705
2972
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty$4(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2706
2973
|
function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2707
|
-
function _toPropertyKey$4(
|
|
2708
|
-
function _toPrimitive$4(
|
|
2974
|
+
function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : String(i); }
|
|
2975
|
+
function _toPrimitive$4(t, r) { if ("object" != _typeof$4(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$4(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2709
2976
|
var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
|
|
2710
2977
|
var _hoisted_2 = ["id", "aria-modal"];
|
|
2711
2978
|
var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
|
|
@@ -3184,7 +3451,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3184
3451
|
});
|
|
3185
3452
|
},
|
|
3186
3453
|
onKeyDown: function onKeyDown(event) {
|
|
3187
|
-
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3454
|
+
if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3188
3455
|
this.$emit('column-click', {
|
|
3189
3456
|
originalEvent: event,
|
|
3190
3457
|
column: this.column
|
|
@@ -3199,16 +3466,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3199
3466
|
});
|
|
3200
3467
|
},
|
|
3201
3468
|
onDragStart: function onDragStart(event) {
|
|
3202
|
-
this.$emit('column-dragstart',
|
|
3469
|
+
this.$emit('column-dragstart', {
|
|
3470
|
+
originalEvent: event,
|
|
3471
|
+
column: this.column
|
|
3472
|
+
});
|
|
3203
3473
|
},
|
|
3204
3474
|
onDragOver: function onDragOver(event) {
|
|
3205
|
-
this.$emit('column-dragover',
|
|
3475
|
+
this.$emit('column-dragover', {
|
|
3476
|
+
originalEvent: event,
|
|
3477
|
+
column: this.column
|
|
3478
|
+
});
|
|
3206
3479
|
},
|
|
3207
3480
|
onDragLeave: function onDragLeave(event) {
|
|
3208
|
-
this.$emit('column-dragleave',
|
|
3481
|
+
this.$emit('column-dragleave', {
|
|
3482
|
+
originalEvent: event,
|
|
3483
|
+
column: this.column
|
|
3484
|
+
});
|
|
3209
3485
|
},
|
|
3210
3486
|
onDrop: function onDrop(event) {
|
|
3211
|
-
this.$emit('column-drop',
|
|
3487
|
+
this.$emit('column-drop', {
|
|
3488
|
+
originalEvent: event,
|
|
3489
|
+
column: this.column
|
|
3490
|
+
});
|
|
3212
3491
|
},
|
|
3213
3492
|
onResizeStart: function onResizeStart(event) {
|
|
3214
3493
|
this.$emit('column-resizestart', event);
|
|
@@ -3250,8 +3529,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3250
3529
|
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
3251
3530
|
if (filterRow) {
|
|
3252
3531
|
var index = utils.DomHandler.index(this.$el);
|
|
3253
|
-
filterRow.children[index]
|
|
3254
|
-
|
|
3532
|
+
if (filterRow.children[index]) {
|
|
3533
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
3534
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
3535
|
+
}
|
|
3255
3536
|
}
|
|
3256
3537
|
}
|
|
3257
3538
|
},
|
|
@@ -3317,8 +3598,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3317
3598
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3318
3599
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty$3(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3319
3600
|
function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3320
|
-
function _toPropertyKey$3(
|
|
3321
|
-
function _toPrimitive$3(
|
|
3601
|
+
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : String(i); }
|
|
3602
|
+
function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3322
3603
|
var _hoisted_1 = ["tabindex", "colspan", "rowspan", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-highlight", "data-p-filter-column", "data-p-frozen-column", "data-p-reorderable-column"];
|
|
3323
3604
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3324
3605
|
var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
|
|
@@ -3448,13 +3729,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3448
3729
|
|
|
3449
3730
|
script$2.render = render$2;
|
|
3450
3731
|
|
|
3451
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
3452
|
-
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3453
|
-
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3454
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
3455
|
-
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
3456
|
-
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
3457
|
-
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
3458
3732
|
var script$1 = {
|
|
3459
3733
|
name: 'TableHeader',
|
|
3460
3734
|
hostName: 'DataTable',
|
|
@@ -3530,6 +3804,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3530
3804
|
"default": null
|
|
3531
3805
|
}
|
|
3532
3806
|
},
|
|
3807
|
+
provide: function provide() {
|
|
3808
|
+
return {
|
|
3809
|
+
$rows: this.d_headerRows,
|
|
3810
|
+
$columns: this.d_headerColumns
|
|
3811
|
+
};
|
|
3812
|
+
},
|
|
3813
|
+
data: function data() {
|
|
3814
|
+
return {
|
|
3815
|
+
d_headerRows: new utils.HelperSet({
|
|
3816
|
+
type: 'Row'
|
|
3817
|
+
}),
|
|
3818
|
+
d_headerColumns: new utils.HelperSet({
|
|
3819
|
+
type: 'Column'
|
|
3820
|
+
})
|
|
3821
|
+
};
|
|
3822
|
+
},
|
|
3823
|
+
beforeUnmount: function beforeUnmount() {
|
|
3824
|
+
this.d_headerRows.clear();
|
|
3825
|
+
this.d_headerColumns.clear();
|
|
3826
|
+
},
|
|
3533
3827
|
methods: {
|
|
3534
3828
|
columnProp: function columnProp(col, prop) {
|
|
3535
3829
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -3602,36 +3896,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3602
3896
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
3603
3897
|
},
|
|
3604
3898
|
getHeaderRows: function getHeaderRows() {
|
|
3605
|
-
var
|
|
3606
|
-
|
|
3607
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
3608
|
-
var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
|
|
3609
|
-
_step;
|
|
3610
|
-
try {
|
|
3611
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3612
|
-
var child = _step.value;
|
|
3613
|
-
if (child.type.name === 'Row') {
|
|
3614
|
-
rows.push(child);
|
|
3615
|
-
} else if (child.children && child.children instanceof Array) {
|
|
3616
|
-
rows = child.children;
|
|
3617
|
-
}
|
|
3618
|
-
}
|
|
3619
|
-
} catch (err) {
|
|
3620
|
-
_iterator.e(err);
|
|
3621
|
-
} finally {
|
|
3622
|
-
_iterator.f();
|
|
3623
|
-
}
|
|
3624
|
-
return rows;
|
|
3625
|
-
}
|
|
3899
|
+
var _this$d_headerRows;
|
|
3900
|
+
return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
|
|
3626
3901
|
},
|
|
3627
3902
|
getHeaderColumns: function getHeaderColumns(row) {
|
|
3628
|
-
var
|
|
3629
|
-
|
|
3630
|
-
row.children["default"]().forEach(function (child) {
|
|
3631
|
-
if (child.children && child.children instanceof Array) cols = [].concat(_toConsumableArray$1(cols), _toConsumableArray$1(child.children));else if (child.type.name === 'Column') cols.push(child);
|
|
3632
|
-
});
|
|
3633
|
-
return cols;
|
|
3634
|
-
}
|
|
3903
|
+
var _this$d_headerColumns;
|
|
3904
|
+
return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
|
|
3635
3905
|
}
|
|
3636
3906
|
},
|
|
3637
3907
|
computed: {
|
|
@@ -3655,8 +3925,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3655
3925
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3656
3926
|
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3657
3927
|
function _defineProperty$2(obj, key, value) { key = _toPropertyKey$2(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3658
|
-
function _toPropertyKey$2(
|
|
3659
|
-
function _toPrimitive$2(
|
|
3928
|
+
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
|
|
3929
|
+
function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3660
3930
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3661
3931
|
var _component_DTHeaderCell = vue.resolveComponent("DTHeaderCell");
|
|
3662
3932
|
var _component_DTHeaderCheckbox = vue.resolveComponent("DTHeaderCheckbox");
|
|
@@ -3872,11 +4142,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3872
4142
|
script$1.render = render$1;
|
|
3873
4143
|
|
|
3874
4144
|
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
4145
|
+
var _excluded = ["expanded"];
|
|
4146
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4147
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
3875
4148
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3876
4149
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3877
4150
|
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3878
|
-
function _toPropertyKey$1(
|
|
3879
|
-
function _toPrimitive$1(
|
|
4151
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
|
|
4152
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
3880
4153
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3881
4154
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3882
4155
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
@@ -3890,8 +4163,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3890
4163
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
3891
4164
|
var script = {
|
|
3892
4165
|
name: 'DataTable',
|
|
3893
|
-
"extends": script$
|
|
4166
|
+
"extends": script$c,
|
|
3894
4167
|
emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick', 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change', 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand', 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
4168
|
+
provide: function provide() {
|
|
4169
|
+
return {
|
|
4170
|
+
$columns: this.d_columns,
|
|
4171
|
+
$columnGroups: this.d_columnGroups
|
|
4172
|
+
};
|
|
4173
|
+
},
|
|
3895
4174
|
data: function data() {
|
|
3896
4175
|
return {
|
|
3897
4176
|
d_first: this.first,
|
|
@@ -3902,11 +4181,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3902
4181
|
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
3903
4182
|
d_groupRowsSortMeta: null,
|
|
3904
4183
|
d_selectionKeys: null,
|
|
3905
|
-
d_expandedRowKeys: null,
|
|
3906
4184
|
d_columnOrder: null,
|
|
3907
4185
|
d_editingRowKeys: null,
|
|
3908
4186
|
d_editingMeta: {},
|
|
3909
|
-
d_filters: this.cloneFilters(this.filters)
|
|
4187
|
+
d_filters: this.cloneFilters(this.filters),
|
|
4188
|
+
d_columns: new utils.HelperSet({
|
|
4189
|
+
type: 'Column'
|
|
4190
|
+
}),
|
|
4191
|
+
d_columnGroups: new utils.HelperSet({
|
|
4192
|
+
type: 'ColumnGroup'
|
|
4193
|
+
})
|
|
3910
4194
|
};
|
|
3911
4195
|
},
|
|
3912
4196
|
rowTouched: false,
|
|
@@ -3920,6 +4204,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3920
4204
|
colReorderIconWidth: null,
|
|
3921
4205
|
colReorderIconHeight: null,
|
|
3922
4206
|
draggedColumn: null,
|
|
4207
|
+
draggedColumnElement: null,
|
|
3923
4208
|
draggedRowIndex: null,
|
|
3924
4209
|
droppedRowIndex: null,
|
|
3925
4210
|
rowDragging: null,
|
|
@@ -3953,11 +4238,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3953
4238
|
}
|
|
3954
4239
|
}
|
|
3955
4240
|
},
|
|
3956
|
-
expandedRows: function expandedRows(newValue) {
|
|
3957
|
-
if (this.dataKey) {
|
|
3958
|
-
this.updateExpandedRowKeys(newValue);
|
|
3959
|
-
}
|
|
3960
|
-
},
|
|
3961
4241
|
editingRows: {
|
|
3962
4242
|
immediate: true,
|
|
3963
4243
|
handler: function handler(newValue) {
|
|
@@ -3990,6 +4270,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3990
4270
|
this.unbindColumnResizeEvents();
|
|
3991
4271
|
this.destroyStyleElement();
|
|
3992
4272
|
this.destroyResponsiveStyle();
|
|
4273
|
+
this.d_columns.clear();
|
|
4274
|
+
this.d_columnGroups.clear();
|
|
3993
4275
|
},
|
|
3994
4276
|
updated: function updated() {
|
|
3995
4277
|
if (this.isStateful()) {
|
|
@@ -4004,6 +4286,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4004
4286
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
4005
4287
|
},
|
|
4006
4288
|
onPage: function onPage(event) {
|
|
4289
|
+
var _this = this;
|
|
4007
4290
|
this.clearEditingMetaData();
|
|
4008
4291
|
this.d_first = event.first;
|
|
4009
4292
|
this.d_rows = event.rows;
|
|
@@ -4013,15 +4296,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4013
4296
|
this.$emit('update:first', this.d_first);
|
|
4014
4297
|
this.$emit('update:rows', this.d_rows);
|
|
4015
4298
|
this.$emit('page', pageEvent);
|
|
4016
|
-
this.$
|
|
4299
|
+
this.$nextTick(function () {
|
|
4300
|
+
_this.$emit('value-change', _this.processedData);
|
|
4301
|
+
});
|
|
4017
4302
|
},
|
|
4018
4303
|
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
4304
|
+
var _this2 = this;
|
|
4019
4305
|
var event = e.originalEvent;
|
|
4020
4306
|
var column = e.column;
|
|
4021
4307
|
if (this.columnProp(column, 'sortable')) {
|
|
4022
4308
|
var targetNode = event.target;
|
|
4023
4309
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
4024
|
-
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
|
|
4310
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !utils.DomHandler.isClickable(event.target)) {
|
|
4025
4311
|
utils.DomHandler.clearSelection();
|
|
4026
4312
|
if (this.sortMode === 'single') {
|
|
4027
4313
|
if (this.d_sortField === columnField) {
|
|
@@ -4049,12 +4335,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4049
4335
|
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
4050
4336
|
}
|
|
4051
4337
|
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
4052
|
-
this.$
|
|
4338
|
+
this.$nextTick(function () {
|
|
4339
|
+
_this2.$emit('value-change', _this2.processedData);
|
|
4340
|
+
});
|
|
4053
4341
|
}
|
|
4054
4342
|
}
|
|
4055
4343
|
},
|
|
4056
4344
|
sortSingle: function sortSingle(value) {
|
|
4057
|
-
var
|
|
4345
|
+
var _this3 = this;
|
|
4058
4346
|
this.clearEditingMetaData();
|
|
4059
4347
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
4060
4348
|
this.d_multiSortMeta = [{
|
|
@@ -4084,12 +4372,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4084
4372
|
data.sort(function (data1, data2) {
|
|
4085
4373
|
var value1 = resolvedFieldData.get(data1);
|
|
4086
4374
|
var value2 = resolvedFieldData.get(data2);
|
|
4087
|
-
return utils.ObjectUtils.sort(value1, value2,
|
|
4375
|
+
return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
|
|
4088
4376
|
});
|
|
4089
4377
|
return data;
|
|
4090
4378
|
},
|
|
4091
4379
|
sortMultiple: function sortMultiple(value) {
|
|
4092
|
-
var
|
|
4380
|
+
var _this4 = this;
|
|
4093
4381
|
this.clearEditingMetaData();
|
|
4094
4382
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
|
|
4095
4383
|
var firstSortMeta = this.d_multiSortMeta[0];
|
|
@@ -4100,7 +4388,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4100
4388
|
}
|
|
4101
4389
|
var data = _toConsumableArray(value);
|
|
4102
4390
|
data.sort(function (data1, data2) {
|
|
4103
|
-
return
|
|
4391
|
+
return _this4.multisortField(data1, data2, 0);
|
|
4104
4392
|
});
|
|
4105
4393
|
return data;
|
|
4106
4394
|
},
|
|
@@ -4156,7 +4444,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4156
4444
|
return Object.fromEntries(entries);
|
|
4157
4445
|
},
|
|
4158
4446
|
filter: function filter(data) {
|
|
4159
|
-
var
|
|
4447
|
+
var _this5 = this;
|
|
4160
4448
|
if (!data) {
|
|
4161
4449
|
return;
|
|
4162
4450
|
}
|
|
@@ -4165,7 +4453,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4165
4453
|
var globalFilterFieldsArray;
|
|
4166
4454
|
if (activeFilters['global']) {
|
|
4167
4455
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4168
|
-
return
|
|
4456
|
+
return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
|
|
4169
4457
|
});
|
|
4170
4458
|
}
|
|
4171
4459
|
var filteredValue = [];
|
|
@@ -4227,7 +4515,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4227
4515
|
var filterEvent = this.createLazyLoadEvent();
|
|
4228
4516
|
filterEvent.filteredValue = filteredValue;
|
|
4229
4517
|
this.$emit('filter', filterEvent);
|
|
4230
|
-
this.$
|
|
4518
|
+
this.$nextTick(function () {
|
|
4519
|
+
_this5.$emit('value-change', _this5.processedData);
|
|
4520
|
+
});
|
|
4231
4521
|
return filteredValue;
|
|
4232
4522
|
},
|
|
4233
4523
|
executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
|
|
@@ -4383,6 +4673,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4383
4673
|
this.onEndKey(event, row, rowIndex, slotProps);
|
|
4384
4674
|
break;
|
|
4385
4675
|
case 'Enter':
|
|
4676
|
+
case 'NumpadEnter':
|
|
4386
4677
|
this.onEnterKey(event, rowData, rowIndex);
|
|
4387
4678
|
break;
|
|
4388
4679
|
case 'Space':
|
|
@@ -4633,40 +4924,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4633
4924
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
4634
4925
|
}
|
|
4635
4926
|
},
|
|
4636
|
-
|
|
4637
|
-
if (
|
|
4638
|
-
this.
|
|
4639
|
-
var _iterator4 = _createForOfIteratorHelper(
|
|
4927
|
+
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4928
|
+
if (editingRows && editingRows.length) {
|
|
4929
|
+
this.d_editingRowKeys = {};
|
|
4930
|
+
var _iterator4 = _createForOfIteratorHelper(editingRows),
|
|
4640
4931
|
_step4;
|
|
4641
4932
|
try {
|
|
4642
4933
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4643
4934
|
var data = _step4.value;
|
|
4644
|
-
this.
|
|
4935
|
+
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4645
4936
|
}
|
|
4646
4937
|
} catch (err) {
|
|
4647
4938
|
_iterator4.e(err);
|
|
4648
4939
|
} finally {
|
|
4649
4940
|
_iterator4.f();
|
|
4650
4941
|
}
|
|
4651
|
-
} else {
|
|
4652
|
-
this.d_expandedRowKeys = null;
|
|
4653
|
-
}
|
|
4654
|
-
},
|
|
4655
|
-
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4656
|
-
if (editingRows && editingRows.length) {
|
|
4657
|
-
this.d_editingRowKeys = {};
|
|
4658
|
-
var _iterator5 = _createForOfIteratorHelper(editingRows),
|
|
4659
|
-
_step5;
|
|
4660
|
-
try {
|
|
4661
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4662
|
-
var data = _step5.value;
|
|
4663
|
-
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4664
|
-
}
|
|
4665
|
-
} catch (err) {
|
|
4666
|
-
_iterator5.e(err);
|
|
4667
|
-
} finally {
|
|
4668
|
-
_iterator5.f();
|
|
4669
|
-
}
|
|
4670
4942
|
} else {
|
|
4671
4943
|
this.d_editingRowKeys = null;
|
|
4672
4944
|
}
|
|
@@ -4704,7 +4976,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4704
4976
|
this.$emit('update:selection', _selection);
|
|
4705
4977
|
},
|
|
4706
4978
|
exportCSV: function exportCSV(options, data) {
|
|
4707
|
-
var
|
|
4979
|
+
var _this6 = this;
|
|
4708
4980
|
var csv = "\uFEFF";
|
|
4709
4981
|
if (!data) {
|
|
4710
4982
|
data = this.processedData;
|
|
@@ -4726,16 +4998,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4726
4998
|
data.forEach(function (record) {
|
|
4727
4999
|
csv += '\n';
|
|
4728
5000
|
var rowInitiated = false;
|
|
4729
|
-
for (var _i = 0; _i <
|
|
4730
|
-
var _column =
|
|
4731
|
-
if (
|
|
4732
|
-
if (rowInitiated) csv +=
|
|
4733
|
-
var cellData = utils.ObjectUtils.resolveFieldData(record,
|
|
5001
|
+
for (var _i = 0; _i < _this6.columns.length; _i++) {
|
|
5002
|
+
var _column = _this6.columns[_i];
|
|
5003
|
+
if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
|
|
5004
|
+
if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
|
|
5005
|
+
var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
|
|
4734
5006
|
if (cellData != null) {
|
|
4735
|
-
if (
|
|
4736
|
-
cellData =
|
|
5007
|
+
if (_this6.exportFunction) {
|
|
5008
|
+
cellData = _this6.exportFunction({
|
|
4737
5009
|
data: cellData,
|
|
4738
|
-
field:
|
|
5010
|
+
field: _this6.columnProp(_column, 'field')
|
|
4739
5011
|
});
|
|
4740
5012
|
} else cellData = String(cellData).replace(/"/g, '""');
|
|
4741
5013
|
} else cellData = '';
|
|
@@ -4838,19 +5110,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4838
5110
|
this.styleElement.innerHTML = innerHTML;
|
|
4839
5111
|
},
|
|
4840
5112
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
4841
|
-
var
|
|
5113
|
+
var _this7 = this;
|
|
4842
5114
|
if (!this.documentColumnResizeListener) {
|
|
4843
5115
|
this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
|
|
4844
|
-
if (
|
|
4845
|
-
|
|
5116
|
+
if (_this7.columnResizing) {
|
|
5117
|
+
_this7.onColumnResize(event);
|
|
4846
5118
|
}
|
|
4847
5119
|
});
|
|
4848
5120
|
}
|
|
4849
5121
|
if (!this.documentColumnResizeEndListener) {
|
|
4850
5122
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
4851
|
-
if (
|
|
4852
|
-
|
|
4853
|
-
|
|
5123
|
+
if (_this7.columnResizing) {
|
|
5124
|
+
_this7.columnResizing = false;
|
|
5125
|
+
_this7.onColumnResizeEnd();
|
|
4854
5126
|
}
|
|
4855
5127
|
});
|
|
4856
5128
|
}
|
|
@@ -4872,23 +5144,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4872
5144
|
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
|
|
4873
5145
|
}
|
|
4874
5146
|
},
|
|
4875
|
-
onColumnHeaderDragStart: function onColumnHeaderDragStart(
|
|
5147
|
+
onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
|
|
5148
|
+
var event = e.originalEvent,
|
|
5149
|
+
column = e.column;
|
|
4876
5150
|
if (this.columnResizing) {
|
|
4877
5151
|
event.preventDefault();
|
|
4878
5152
|
return;
|
|
4879
5153
|
}
|
|
4880
5154
|
this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
4881
5155
|
this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
4882
|
-
this.draggedColumn =
|
|
5156
|
+
this.draggedColumn = column;
|
|
5157
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
4883
5158
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
4884
5159
|
},
|
|
4885
|
-
onColumnHeaderDragOver: function onColumnHeaderDragOver(
|
|
5160
|
+
onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
|
|
5161
|
+
var event = e.originalEvent,
|
|
5162
|
+
column = e.column;
|
|
4886
5163
|
var dropHeader = this.findParentHeader(event.target);
|
|
4887
|
-
if (this.reorderableColumns && this.
|
|
5164
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
4888
5165
|
event.preventDefault();
|
|
4889
5166
|
var containerOffset = utils.DomHandler.getOffset(this.$el);
|
|
4890
5167
|
var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
|
|
4891
|
-
if (this.
|
|
5168
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
4892
5169
|
var targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4893
5170
|
var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4894
5171
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
@@ -4907,34 +5184,67 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4907
5184
|
}
|
|
4908
5185
|
}
|
|
4909
5186
|
},
|
|
4910
|
-
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(
|
|
4911
|
-
|
|
5187
|
+
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
|
|
5188
|
+
var event = e.originalEvent;
|
|
5189
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
4912
5190
|
event.preventDefault();
|
|
4913
5191
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4914
5192
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4915
5193
|
}
|
|
4916
5194
|
},
|
|
4917
|
-
onColumnHeaderDrop: function onColumnHeaderDrop(
|
|
5195
|
+
onColumnHeaderDrop: function onColumnHeaderDrop(e) {
|
|
5196
|
+
var _this8 = this;
|
|
5197
|
+
var event = e.originalEvent,
|
|
5198
|
+
column = e.column;
|
|
4918
5199
|
event.preventDefault();
|
|
4919
|
-
if (this.
|
|
4920
|
-
var dragIndex = utils.DomHandler.index(this.
|
|
5200
|
+
if (this.draggedColumnElement) {
|
|
5201
|
+
var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
|
|
4921
5202
|
var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
|
|
4922
5203
|
var allowDrop = dragIndex !== dropIndex;
|
|
4923
5204
|
if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
|
|
4924
5205
|
allowDrop = false;
|
|
4925
5206
|
}
|
|
4926
5207
|
if (allowDrop) {
|
|
4927
|
-
|
|
5208
|
+
var isSameColumn = function isSameColumn(col1, col2) {
|
|
5209
|
+
return _this8.columnProp(col1, 'columnKey') || _this8.columnProp(col2, 'columnKey') ? _this8.columnProp(col1, 'columnKey') === _this8.columnProp(col2, 'columnKey') : _this8.columnProp(col1, 'field') === _this8.columnProp(col2, 'field');
|
|
5210
|
+
};
|
|
5211
|
+
var dragColIndex = this.columns.findIndex(function (child) {
|
|
5212
|
+
return isSameColumn(child, _this8.draggedColumn);
|
|
5213
|
+
});
|
|
5214
|
+
var dropColIndex = this.columns.findIndex(function (child) {
|
|
5215
|
+
return isSameColumn(child, column);
|
|
5216
|
+
});
|
|
5217
|
+
var widths = [];
|
|
5218
|
+
var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
5219
|
+
headers.forEach(function (header) {
|
|
5220
|
+
return widths.push(utils.DomHandler.getOuterWidth(header));
|
|
5221
|
+
});
|
|
5222
|
+
var movedItem = widths.find(function (_, index) {
|
|
5223
|
+
return index === dragColIndex;
|
|
5224
|
+
});
|
|
5225
|
+
var remainingItems = widths.filter(function (_, index) {
|
|
5226
|
+
return index !== dragColIndex;
|
|
5227
|
+
});
|
|
5228
|
+
var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
|
|
5229
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
5230
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
5231
|
+
dropColIndex++;
|
|
5232
|
+
}
|
|
5233
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
5234
|
+
dropColIndex--;
|
|
5235
|
+
}
|
|
5236
|
+
utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
4928
5237
|
this.updateReorderableColumns();
|
|
4929
5238
|
this.$emit('column-reorder', {
|
|
4930
5239
|
originalEvent: event,
|
|
4931
|
-
dragIndex:
|
|
4932
|
-
dropIndex:
|
|
5240
|
+
dragIndex: dragColIndex,
|
|
5241
|
+
dropIndex: dropColIndex
|
|
4933
5242
|
});
|
|
4934
5243
|
}
|
|
4935
5244
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4936
5245
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4937
|
-
this.
|
|
5246
|
+
this.draggedColumnElement.draggable = false;
|
|
5247
|
+
this.draggedColumnElement = null;
|
|
4938
5248
|
this.draggedColumn = null;
|
|
4939
5249
|
this.dropPosition = null;
|
|
4940
5250
|
}
|
|
@@ -5044,28 +5354,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5044
5354
|
event.preventDefault();
|
|
5045
5355
|
},
|
|
5046
5356
|
toggleRow: function toggleRow(event) {
|
|
5357
|
+
var _this9 = this;
|
|
5358
|
+
var expanded = event.expanded,
|
|
5359
|
+
rest = _objectWithoutProperties(event, _excluded);
|
|
5047
5360
|
var rowData = event.data;
|
|
5048
|
-
var
|
|
5049
|
-
var expandedRowIndex;
|
|
5050
|
-
var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5361
|
+
var expandedRows;
|
|
5051
5362
|
if (this.dataKey) {
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
expanded = expandedRowIndex > -1;
|
|
5056
|
-
}
|
|
5057
|
-
if (expanded) {
|
|
5058
|
-
if (expandedRowIndex == null) {
|
|
5059
|
-
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
5060
|
-
}
|
|
5061
|
-
_expandedRows.splice(expandedRowIndex, 1);
|
|
5062
|
-
this.$emit('update:expandedRows', _expandedRows);
|
|
5063
|
-
this.$emit('row-collapse', event);
|
|
5363
|
+
var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
5364
|
+
expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
|
|
5365
|
+
expanded ? expandedRows[value] = true : delete expandedRows[value];
|
|
5064
5366
|
} else {
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5367
|
+
expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5368
|
+
expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
|
|
5369
|
+
return !_this9.equals(rowData, d);
|
|
5370
|
+
});
|
|
5068
5371
|
}
|
|
5372
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
5373
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
5069
5374
|
},
|
|
5070
5375
|
toggleRowGroup: function toggleRowGroup(e) {
|
|
5071
5376
|
var event = e.originalEvent;
|
|
@@ -5135,7 +5440,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5135
5440
|
}
|
|
5136
5441
|
if (this.expandedRows) {
|
|
5137
5442
|
state.expandedRows = this.expandedRows;
|
|
5138
|
-
state.expandedRowKeys = this.d_expandedRowKeys;
|
|
5139
5443
|
}
|
|
5140
5444
|
if (this.expandedRowGroups) {
|
|
5141
5445
|
state.expandedRowGroups = this.expandedRowGroups;
|
|
@@ -5183,7 +5487,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5183
5487
|
this.d_columnOrder = restoredState.columnOrder;
|
|
5184
5488
|
}
|
|
5185
5489
|
if (restoredState.expandedRows) {
|
|
5186
|
-
this.d_expandedRowKeys = restoredState.expandedRowKeys;
|
|
5187
5490
|
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
5188
5491
|
}
|
|
5189
5492
|
if (restoredState.expandedRowGroups) {
|
|
@@ -5207,23 +5510,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5207
5510
|
state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
5208
5511
|
}
|
|
5209
5512
|
},
|
|
5513
|
+
addColumnWidthStyles: function addColumnWidthStyles(widths) {
|
|
5514
|
+
this.createStyleElement();
|
|
5515
|
+
var innerHTML = '';
|
|
5516
|
+
var selector = "[data-pc-name=\"datatable\"][".concat(this.attributeSelector, "] > [data-pc-section=\"wrapper\"] ").concat(this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]', " > table[data-pc-section=\"table\"]");
|
|
5517
|
+
widths.forEach(function (width, index) {
|
|
5518
|
+
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5519
|
+
innerHTML += "\n ".concat(selector, " > thead[data-pc-section=\"thead\"] > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tbody[data-pc-section=\"tbody\"] > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tfoot[data-pc-section=\"tfoot\"] > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
|
|
5520
|
+
});
|
|
5521
|
+
this.styleElement.innerHTML = innerHTML;
|
|
5522
|
+
},
|
|
5210
5523
|
restoreColumnWidths: function restoreColumnWidths() {
|
|
5211
5524
|
if (this.columnWidthsState) {
|
|
5212
5525
|
var widths = this.columnWidthsState.split(',');
|
|
5213
5526
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
5214
5527
|
this.$refs.table.style.width = this.tableWidthState;
|
|
5215
5528
|
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
5216
|
-
this.$el.style.width = this.tableWidthState;
|
|
5217
5529
|
}
|
|
5218
5530
|
if (utils.ObjectUtils.isNotEmpty(widths)) {
|
|
5219
|
-
this.
|
|
5220
|
-
var innerHTML = '';
|
|
5221
|
-
var selector = "[data-pc-name=\"datatable\"][".concat(this.attributeSelector, "] > [data-pc-section=\"wrapper\"] ").concat(this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]', " > table[data-pc-section=\"table\"]");
|
|
5222
|
-
widths.forEach(function (width, index) {
|
|
5223
|
-
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5224
|
-
innerHTML += "\n ".concat(selector, " > thead[data-pc-section=\"thead\"] > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tbody[data-pc-section=\"tbody\"] > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tfoot[data-pc-section=\"tfoot\"] > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
|
|
5225
|
-
});
|
|
5226
|
-
this.styleElement.innerHTML = innerHTML;
|
|
5531
|
+
this.addColumnWidthStyles(widths);
|
|
5227
5532
|
}
|
|
5228
5533
|
}
|
|
5229
5534
|
},
|
|
@@ -5294,9 +5599,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5294
5599
|
hasGlobalFilter: function hasGlobalFilter() {
|
|
5295
5600
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
5296
5601
|
},
|
|
5297
|
-
getChildren: function getChildren() {
|
|
5298
|
-
return this.$slots["default"] ? this.$slots["default"]() : null;
|
|
5299
|
-
},
|
|
5300
5602
|
onFilterChange: function onFilterChange(filters) {
|
|
5301
5603
|
this.d_filters = filters;
|
|
5302
5604
|
},
|
|
@@ -5326,10 +5628,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5326
5628
|
return cloned;
|
|
5327
5629
|
},
|
|
5328
5630
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5329
|
-
var
|
|
5631
|
+
var _this10 = this;
|
|
5330
5632
|
var columnOrder = [];
|
|
5331
5633
|
this.columns.forEach(function (col) {
|
|
5332
|
-
return columnOrder.push(
|
|
5634
|
+
return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
|
|
5333
5635
|
});
|
|
5334
5636
|
this.d_columnOrder = columnOrder;
|
|
5335
5637
|
},
|
|
@@ -5350,7 +5652,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5350
5652
|
var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
5351
5653
|
var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
|
|
5352
5654
|
var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
5353
|
-
var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none
|
|
5655
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
|
|
5354
5656
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
5355
5657
|
}
|
|
5356
5658
|
},
|
|
@@ -5366,22 +5668,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5366
5668
|
this.styleElement = null;
|
|
5367
5669
|
}
|
|
5368
5670
|
},
|
|
5369
|
-
recursiveGetChildren: function recursiveGetChildren(children, results) {
|
|
5370
|
-
var _this7 = this;
|
|
5371
|
-
if (!results) {
|
|
5372
|
-
results = [];
|
|
5373
|
-
}
|
|
5374
|
-
if (children && children.length) {
|
|
5375
|
-
children.forEach(function (child) {
|
|
5376
|
-
if (child.children instanceof Array) {
|
|
5377
|
-
results.concat(_this7.recursiveGetChildren(child.children, results));
|
|
5378
|
-
} else if (child.type.name == 'Column') {
|
|
5379
|
-
results.push(child);
|
|
5380
|
-
}
|
|
5381
|
-
});
|
|
5382
|
-
}
|
|
5383
|
-
return results;
|
|
5384
|
-
},
|
|
5385
5671
|
dataToRender: function dataToRender(data) {
|
|
5386
5672
|
var _data = data || this.processedData;
|
|
5387
5673
|
if (_data && this.paginator) {
|
|
@@ -5399,27 +5685,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5399
5685
|
},
|
|
5400
5686
|
computed: {
|
|
5401
5687
|
columns: function columns() {
|
|
5402
|
-
var
|
|
5403
|
-
if (!children) {
|
|
5404
|
-
return;
|
|
5405
|
-
}
|
|
5406
|
-
var cols = this.recursiveGetChildren(children, []);
|
|
5688
|
+
var cols = this.d_columns.get(this);
|
|
5407
5689
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5408
5690
|
var orderedColumns = [];
|
|
5409
|
-
var
|
|
5410
|
-
|
|
5691
|
+
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5692
|
+
_step5;
|
|
5411
5693
|
try {
|
|
5412
|
-
for (
|
|
5413
|
-
var columnKey =
|
|
5694
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
5695
|
+
var columnKey = _step5.value;
|
|
5414
5696
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5415
5697
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5416
5698
|
orderedColumns.push(column);
|
|
5417
5699
|
}
|
|
5418
5700
|
}
|
|
5419
5701
|
} catch (err) {
|
|
5420
|
-
|
|
5702
|
+
_iterator5.e(err);
|
|
5421
5703
|
} finally {
|
|
5422
|
-
|
|
5704
|
+
_iterator5.f();
|
|
5423
5705
|
}
|
|
5424
5706
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5425
5707
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5427,52 +5709,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5427
5709
|
}
|
|
5428
5710
|
return cols;
|
|
5429
5711
|
},
|
|
5712
|
+
columnGroups: function columnGroups() {
|
|
5713
|
+
return this.d_columnGroups.get(this);
|
|
5714
|
+
},
|
|
5430
5715
|
headerColumnGroup: function headerColumnGroup() {
|
|
5431
|
-
var
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
5437
|
-
var child = _step7.value;
|
|
5438
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
5439
|
-
return child;
|
|
5440
|
-
}
|
|
5441
|
-
}
|
|
5442
|
-
} catch (err) {
|
|
5443
|
-
_iterator7.e(err);
|
|
5444
|
-
} finally {
|
|
5445
|
-
_iterator7.f();
|
|
5446
|
-
}
|
|
5447
|
-
}
|
|
5448
|
-
return null;
|
|
5716
|
+
var _this$columnGroups,
|
|
5717
|
+
_this11 = this;
|
|
5718
|
+
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5719
|
+
return _this11.columnProp(group, 'type') === 'header';
|
|
5720
|
+
});
|
|
5449
5721
|
},
|
|
5450
5722
|
footerColumnGroup: function footerColumnGroup() {
|
|
5451
|
-
var
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
5457
|
-
var child = _step8.value;
|
|
5458
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
5459
|
-
return child;
|
|
5460
|
-
}
|
|
5461
|
-
}
|
|
5462
|
-
} catch (err) {
|
|
5463
|
-
_iterator8.e(err);
|
|
5464
|
-
} finally {
|
|
5465
|
-
_iterator8.f();
|
|
5466
|
-
}
|
|
5467
|
-
}
|
|
5468
|
-
return null;
|
|
5723
|
+
var _this$columnGroups2,
|
|
5724
|
+
_this12 = this;
|
|
5725
|
+
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5726
|
+
return _this12.columnProp(group, 'type') === 'footer';
|
|
5727
|
+
});
|
|
5469
5728
|
},
|
|
5470
5729
|
hasFilters: function hasFilters() {
|
|
5471
5730
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
5472
5731
|
},
|
|
5473
5732
|
processedData: function processedData() {
|
|
5733
|
+
var _this$virtualScroller;
|
|
5474
5734
|
var data = this.value || [];
|
|
5475
|
-
if (!this.lazy) {
|
|
5735
|
+
if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
|
|
5476
5736
|
if (data && data.length) {
|
|
5477
5737
|
if (this.hasFilters) {
|
|
5478
5738
|
data = this.filter(data);
|
|
@@ -5506,14 +5766,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5506
5766
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
5507
5767
|
},
|
|
5508
5768
|
allRowsSelected: function allRowsSelected() {
|
|
5509
|
-
var
|
|
5769
|
+
var _this13 = this;
|
|
5510
5770
|
if (this.selectAll !== null) {
|
|
5511
5771
|
return this.selectAll;
|
|
5512
5772
|
} else {
|
|
5513
5773
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
5514
5774
|
return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
5515
|
-
return
|
|
5516
|
-
return
|
|
5775
|
+
return _this13.selection.some(function (s) {
|
|
5776
|
+
return _this13.equals(s, v);
|
|
5517
5777
|
});
|
|
5518
5778
|
});
|
|
5519
5779
|
}
|
|
@@ -5544,8 +5804,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5544
5804
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5545
5805
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5546
5806
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5547
|
-
function _toPropertyKey(
|
|
5548
|
-
function _toPrimitive(
|
|
5807
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5808
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5549
5809
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5550
5810
|
var _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
|
|
5551
5811
|
var _component_DTPaginator = vue.resolveComponent("DTPaginator");
|
|
@@ -5753,7 +6013,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5753
6013
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5754
6014
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5755
6015
|
expandedRows: _ctx.expandedRows,
|
|
5756
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5757
6016
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5758
6017
|
editingRows: _ctx.editingRows,
|
|
5759
6018
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5819,7 +6078,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5819
6078
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5820
6079
|
unstyled: _ctx.unstyled,
|
|
5821
6080
|
pt: _ctx.pt
|
|
5822
|
-
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6081
|
+
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createVNode(_component_DTTableBody, {
|
|
5823
6082
|
ref: "bodyRef",
|
|
5824
6083
|
value: $options.dataToRender(slotProps.rows),
|
|
5825
6084
|
"class": vue.normalizeClass(slotProps.styleClass),
|
|
@@ -5843,7 +6102,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5843
6102
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5844
6103
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5845
6104
|
expandedRows: _ctx.expandedRows,
|
|
5846
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5847
6105
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5848
6106
|
editingRows: _ctx.editingRows,
|
|
5849
6107
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5912,7 +6170,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5912
6170
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5913
6171
|
unstyled: _ctx.unstyled,
|
|
5914
6172
|
pt: _ctx.pt
|
|
5915
|
-
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6173
|
+
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
5916
6174
|
key: 1,
|
|
5917
6175
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
5918
6176
|
style: {
|