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
|
@@ -3,7 +3,7 @@ import ArrowDownIcon from 'primevue/icons/arrowdown';
|
|
|
3
3
|
import ArrowUpIcon from 'primevue/icons/arrowup';
|
|
4
4
|
import SpinnerIcon from 'primevue/icons/spinner';
|
|
5
5
|
import Paginator from 'primevue/paginator';
|
|
6
|
-
import { DomHandler, ObjectUtils, UniqueComponentId, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primevue/utils';
|
|
6
|
+
import { DomHandler, ObjectUtils, UniqueComponentId, HelperSet, ZIndexUtils, ConnectedOverlayScrollHandler } from 'primevue/utils';
|
|
7
7
|
import VirtualScroller from 'primevue/virtualscroller';
|
|
8
8
|
import BaseComponent from 'primevue/basecomponent';
|
|
9
9
|
import DataTableStyle from 'primevue/datatable/style';
|
|
@@ -28,7 +28,7 @@ import SortAltIcon from 'primevue/icons/sortalt';
|
|
|
28
28
|
import SortAmountDownIcon from 'primevue/icons/sortamountdown';
|
|
29
29
|
import SortAmountUpAltIcon from 'primevue/icons/sortamountupalt';
|
|
30
30
|
|
|
31
|
-
var script$
|
|
31
|
+
var script$c = {
|
|
32
32
|
name: 'BaseDataTable',
|
|
33
33
|
"extends": BaseComponent,
|
|
34
34
|
props: {
|
|
@@ -150,7 +150,7 @@ var script$b = {
|
|
|
150
150
|
},
|
|
151
151
|
metaKeySelection: {
|
|
152
152
|
type: Boolean,
|
|
153
|
-
"default":
|
|
153
|
+
"default": false
|
|
154
154
|
},
|
|
155
155
|
contextMenu: {
|
|
156
156
|
type: Boolean,
|
|
@@ -193,7 +193,7 @@ var script$b = {
|
|
|
193
193
|
"default": false
|
|
194
194
|
},
|
|
195
195
|
expandedRows: {
|
|
196
|
-
type: Array,
|
|
196
|
+
type: [Array, Object],
|
|
197
197
|
"default": null
|
|
198
198
|
},
|
|
199
199
|
expandedRowIcon: {
|
|
@@ -305,7 +305,7 @@ var script$b = {
|
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
|
|
308
|
-
var script$
|
|
308
|
+
var script$b = {
|
|
309
309
|
name: 'RowCheckbox',
|
|
310
310
|
hostName: 'DataTable',
|
|
311
311
|
"extends": BaseComponent,
|
|
@@ -360,6 +360,7 @@ var script$a = {
|
|
|
360
360
|
DomHandler.focus(this.$refs.input);
|
|
361
361
|
}
|
|
362
362
|
event.preventDefault();
|
|
363
|
+
event.stopPropagation();
|
|
363
364
|
},
|
|
364
365
|
onFocus: function onFocus() {
|
|
365
366
|
this.focused = true;
|
|
@@ -388,7 +389,7 @@ var script$a = {
|
|
|
388
389
|
};
|
|
389
390
|
|
|
390
391
|
var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
|
|
391
|
-
function render$
|
|
392
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
392
393
|
var _component_CheckIcon = resolveComponent("CheckIcon");
|
|
393
394
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
394
395
|
"class": _ctx.cx('checkboxWrapper'),
|
|
@@ -428,9 +429,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
428
429
|
}, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 16)], 16);
|
|
429
430
|
}
|
|
430
431
|
|
|
431
|
-
script$
|
|
432
|
+
script$b.render = render$b;
|
|
432
433
|
|
|
433
|
-
var script$
|
|
434
|
+
var script$a = {
|
|
434
435
|
name: 'RowRadioButton',
|
|
435
436
|
hostName: 'DataTable',
|
|
436
437
|
"extends": BaseComponent,
|
|
@@ -495,7 +496,7 @@ var script$9 = {
|
|
|
495
496
|
};
|
|
496
497
|
|
|
497
498
|
var _hoisted_1$6 = ["checked", "disabled", "name"];
|
|
498
|
-
function render$
|
|
499
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
499
500
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
500
501
|
"class": _ctx.cx('radiobuttonWrapper'),
|
|
501
502
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
@@ -529,9 +530,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
529
530
|
}, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
|
|
530
531
|
}
|
|
531
532
|
|
|
532
|
-
script$
|
|
533
|
+
script$a.render = render$a;
|
|
533
534
|
|
|
534
|
-
var script$
|
|
535
|
+
var script$9 = {
|
|
535
536
|
name: 'BodyCell',
|
|
536
537
|
hostName: 'DataTable',
|
|
537
538
|
"extends": BaseComponent,
|
|
@@ -983,8 +984,8 @@ var script$8 = {
|
|
|
983
984
|
}
|
|
984
985
|
},
|
|
985
986
|
components: {
|
|
986
|
-
DTRadioButton: script$
|
|
987
|
-
DTCheckbox: script$
|
|
987
|
+
DTRadioButton: script$a,
|
|
988
|
+
DTCheckbox: script$b,
|
|
988
989
|
ChevronDownIcon: ChevronDownIcon,
|
|
989
990
|
ChevronRightIcon: ChevronRightIcon,
|
|
990
991
|
BarsIcon: BarsIcon,
|
|
@@ -997,18 +998,18 @@ var script$8 = {
|
|
|
997
998
|
}
|
|
998
999
|
};
|
|
999
1000
|
|
|
1000
|
-
function _typeof$
|
|
1001
|
-
function ownKeys$
|
|
1002
|
-
function _objectSpread$
|
|
1003
|
-
function _defineProperty$
|
|
1004
|
-
function _toPropertyKey$
|
|
1005
|
-
function _toPrimitive$
|
|
1001
|
+
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); }
|
|
1002
|
+
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; }
|
|
1003
|
+
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; }
|
|
1004
|
+
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; }
|
|
1005
|
+
function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
|
|
1006
|
+
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); }
|
|
1006
1007
|
var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1007
1008
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1008
1009
|
var _hoisted_3$2 = ["aria-label"];
|
|
1009
1010
|
var _hoisted_4$1 = ["aria-label"];
|
|
1010
1011
|
var _hoisted_5$1 = ["aria-label"];
|
|
1011
|
-
function render$
|
|
1012
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1012
1013
|
var _component_DTRadioButton = resolveComponent("DTRadioButton");
|
|
1013
1014
|
var _component_DTCheckbox = resolveComponent("DTCheckbox");
|
|
1014
1015
|
var _component_BarsIcon = resolveComponent("BarsIcon");
|
|
@@ -1020,7 +1021,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1020
1021
|
style: $options.containerStyle,
|
|
1021
1022
|
"class": $options.containerClass,
|
|
1022
1023
|
role: "cell"
|
|
1023
|
-
}, _objectSpread$
|
|
1024
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children.loading), {
|
|
1024
1025
|
data: $props.rowData,
|
|
1025
1026
|
column: $props.column,
|
|
1026
1027
|
field: $options.field,
|
|
@@ -1040,7 +1041,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1040
1041
|
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1041
1042
|
}),
|
|
1042
1043
|
role: "cell"
|
|
1043
|
-
}, _objectSpread$
|
|
1044
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
|
|
1044
1045
|
"data-p-selection-column": $options.columnProp('selectionMode') != null,
|
|
1045
1046
|
"data-p-editable-column": $options.isEditable(),
|
|
1046
1047
|
"data-p-cell-editing": $data.d_editing,
|
|
@@ -1183,14 +1184,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1183
1184
|
}, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
|
|
1184
1185
|
}
|
|
1185
1186
|
|
|
1186
|
-
script$
|
|
1187
|
+
script$9.render = render$9;
|
|
1187
1188
|
|
|
1188
|
-
|
|
1189
|
-
|
|
1189
|
+
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); }
|
|
1190
|
+
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; }
|
|
1191
|
+
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; }
|
|
1192
|
+
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; }
|
|
1193
|
+
function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
|
|
1194
|
+
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); }
|
|
1195
|
+
var script$8 = {
|
|
1196
|
+
name: 'BodyRow',
|
|
1190
1197
|
hostName: 'DataTable',
|
|
1191
1198
|
"extends": BaseComponent,
|
|
1192
1199
|
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'],
|
|
1193
1200
|
props: {
|
|
1201
|
+
rowData: {
|
|
1202
|
+
type: Object,
|
|
1203
|
+
"default": null
|
|
1204
|
+
},
|
|
1205
|
+
index: {
|
|
1206
|
+
type: Number,
|
|
1207
|
+
"default": 0
|
|
1208
|
+
},
|
|
1194
1209
|
value: {
|
|
1195
1210
|
type: Array,
|
|
1196
1211
|
"default": null
|
|
@@ -1240,11 +1255,7 @@ var script$7 = {
|
|
|
1240
1255
|
"default": null
|
|
1241
1256
|
},
|
|
1242
1257
|
expandedRows: {
|
|
1243
|
-
type: Array,
|
|
1244
|
-
"default": null
|
|
1245
|
-
},
|
|
1246
|
-
expandedRowKeys: {
|
|
1247
|
-
type: null,
|
|
1258
|
+
type: [Array, Object],
|
|
1248
1259
|
"default": null
|
|
1249
1260
|
},
|
|
1250
1261
|
selection: {
|
|
@@ -1275,6 +1286,10 @@ var script$7 = {
|
|
|
1275
1286
|
type: null,
|
|
1276
1287
|
"default": null
|
|
1277
1288
|
},
|
|
1289
|
+
rowGroupHeaderStyle: {
|
|
1290
|
+
type: null,
|
|
1291
|
+
"default": null
|
|
1292
|
+
},
|
|
1278
1293
|
editMode: {
|
|
1279
1294
|
type: String,
|
|
1280
1295
|
"default": null
|
|
@@ -1314,35 +1329,34 @@ var script$7 = {
|
|
|
1314
1329
|
isVirtualScrollerDisabled: {
|
|
1315
1330
|
type: Boolean,
|
|
1316
1331
|
"default": false
|
|
1332
|
+
},
|
|
1333
|
+
expandedRowId: {
|
|
1334
|
+
type: String,
|
|
1335
|
+
"default": null
|
|
1336
|
+
},
|
|
1337
|
+
nameAttributeSelector: {
|
|
1338
|
+
type: String,
|
|
1339
|
+
"default": null
|
|
1317
1340
|
}
|
|
1318
1341
|
},
|
|
1319
1342
|
data: function data() {
|
|
1320
1343
|
return {
|
|
1321
|
-
|
|
1322
|
-
tabindexArray: [],
|
|
1323
|
-
isARowSelected: false
|
|
1344
|
+
d_rowExpanded: false
|
|
1324
1345
|
};
|
|
1325
1346
|
},
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
this
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
}
|
|
1333
|
-
},
|
|
1334
|
-
updated: function updated() {
|
|
1335
|
-
if (this.frozenRow) {
|
|
1336
|
-
this.updateFrozenRowStickyPosition();
|
|
1337
|
-
}
|
|
1338
|
-
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1339
|
-
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1347
|
+
watch: {
|
|
1348
|
+
expandedRows: function expandedRows(newValue) {
|
|
1349
|
+
var _this = this;
|
|
1350
|
+
this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
|
|
1351
|
+
return _this.equals(_this.rowData, d);
|
|
1352
|
+
});
|
|
1340
1353
|
}
|
|
1341
1354
|
},
|
|
1342
1355
|
methods: {
|
|
1343
1356
|
columnProp: function columnProp(col, prop) {
|
|
1344
1357
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
1345
1358
|
},
|
|
1359
|
+
//@todo - update this method
|
|
1346
1360
|
getColumnPT: function getColumnPT(key) {
|
|
1347
1361
|
var columnMetaData = {
|
|
1348
1362
|
parent: {
|
|
@@ -1353,80 +1367,33 @@ var script$7 = {
|
|
|
1353
1367
|
};
|
|
1354
1368
|
return mergeProps(this.ptm("column.".concat(key), {
|
|
1355
1369
|
column: columnMetaData
|
|
1356
|
-
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.
|
|
1357
|
-
},
|
|
1358
|
-
getColumnProp: function getColumnProp(column) {
|
|
1359
|
-
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1370
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
|
|
1360
1371
|
},
|
|
1361
|
-
|
|
1362
|
-
|
|
1372
|
+
//@todo - update this method
|
|
1373
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key) {
|
|
1374
|
+
var _this$$parentInstance;
|
|
1375
|
+
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;
|
|
1363
1376
|
return this.ptm(key, {
|
|
1364
1377
|
context: {
|
|
1365
|
-
index:
|
|
1366
|
-
selectable: (
|
|
1367
|
-
selected: this.isSelected
|
|
1368
|
-
stripedRows: (
|
|
1378
|
+
index: this.rowIndex,
|
|
1379
|
+
selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
|
|
1380
|
+
selected: this.isSelected,
|
|
1381
|
+
stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
|
|
1369
1382
|
}
|
|
1370
1383
|
});
|
|
1371
1384
|
},
|
|
1372
|
-
|
|
1373
|
-
var
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1377
|
-
return currentRowFieldData !== previousRowFieldData;
|
|
1378
|
-
} else {
|
|
1379
|
-
return true;
|
|
1380
|
-
}
|
|
1381
|
-
},
|
|
1382
|
-
getRowKey: function getRowKey(rowData, index) {
|
|
1383
|
-
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
|
|
1384
|
-
},
|
|
1385
|
-
getRowIndex: function getRowIndex(index) {
|
|
1386
|
-
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1387
|
-
return getItemOptions ? getItemOptions(index).index : index;
|
|
1388
|
-
},
|
|
1389
|
-
getRowStyle: function getRowStyle(rowData) {
|
|
1390
|
-
if (this.rowStyle) {
|
|
1391
|
-
return this.rowStyle(rowData);
|
|
1392
|
-
}
|
|
1393
|
-
},
|
|
1394
|
-
getRowClass: function getRowClass(rowData) {
|
|
1395
|
-
var rowStyleClass = [];
|
|
1396
|
-
if (this.rowClass) {
|
|
1397
|
-
var rowClassValue = this.rowClass(rowData);
|
|
1398
|
-
if (rowClassValue) {
|
|
1399
|
-
rowStyleClass.push(rowClassValue);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
return [this.cx('row', {
|
|
1403
|
-
rowData: rowData
|
|
1404
|
-
}), rowStyleClass];
|
|
1405
|
-
},
|
|
1406
|
-
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
|
|
1407
|
-
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
1408
|
-
return false;
|
|
1409
|
-
} else {
|
|
1410
|
-
var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1411
|
-
var nextRowData = value[i + 1];
|
|
1412
|
-
if (nextRowData) {
|
|
1413
|
-
var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1414
|
-
return currentRowFieldData !== nextRowFieldData;
|
|
1415
|
-
} else {
|
|
1416
|
-
return true;
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
},
|
|
1420
|
-
shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
|
|
1421
|
-
if (this.rowGroupMode) {
|
|
1385
|
+
shouldRenderBodyCell: function shouldRenderBodyCell(column) {
|
|
1386
|
+
var isHidden = this.columnProp(column, 'hidden');
|
|
1387
|
+
if (this.rowGroupMode && !isHidden) {
|
|
1388
|
+
var field = this.columnProp(column, 'field');
|
|
1422
1389
|
if (this.rowGroupMode === 'subheader') {
|
|
1423
|
-
return this.groupRowsBy !==
|
|
1390
|
+
return this.groupRowsBy !== field;
|
|
1424
1391
|
} else if (this.rowGroupMode === 'rowspan') {
|
|
1425
1392
|
if (this.isGrouped(column)) {
|
|
1426
|
-
var prevRowData = value[
|
|
1393
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1427
1394
|
if (prevRowData) {
|
|
1428
|
-
var currentRowFieldData = ObjectUtils.resolveFieldData(value[
|
|
1429
|
-
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData,
|
|
1395
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
|
|
1396
|
+
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, field);
|
|
1430
1397
|
return currentRowFieldData !== previousRowFieldData;
|
|
1431
1398
|
} else {
|
|
1432
1399
|
return true;
|
|
@@ -1436,19 +1403,21 @@ var script$7 = {
|
|
|
1436
1403
|
}
|
|
1437
1404
|
}
|
|
1438
1405
|
} else {
|
|
1439
|
-
return !
|
|
1406
|
+
return !isHidden;
|
|
1440
1407
|
}
|
|
1441
1408
|
},
|
|
1442
|
-
calculateRowGroupSize: function calculateRowGroupSize(
|
|
1409
|
+
calculateRowGroupSize: function calculateRowGroupSize(column) {
|
|
1443
1410
|
if (this.isGrouped(column)) {
|
|
1444
|
-
var
|
|
1411
|
+
var index = this.rowIndex;
|
|
1412
|
+
var field = this.columnProp(column, 'field');
|
|
1413
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[index], field);
|
|
1445
1414
|
var nextRowFieldData = currentRowFieldData;
|
|
1446
1415
|
var groupRowSpan = 0;
|
|
1447
1416
|
while (currentRowFieldData === nextRowFieldData) {
|
|
1448
1417
|
groupRowSpan++;
|
|
1449
|
-
var nextRowData = value[++index];
|
|
1418
|
+
var nextRowData = this.value[++index];
|
|
1450
1419
|
if (nextRowData) {
|
|
1451
|
-
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData,
|
|
1420
|
+
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, field);
|
|
1452
1421
|
} else {
|
|
1453
1422
|
break;
|
|
1454
1423
|
}
|
|
@@ -1459,55 +1428,21 @@ var script$7 = {
|
|
|
1459
1428
|
}
|
|
1460
1429
|
},
|
|
1461
1430
|
isGrouped: function isGrouped(column) {
|
|
1462
|
-
|
|
1463
|
-
|
|
1431
|
+
var field = this.columnProp(column, 'field');
|
|
1432
|
+
if (this.groupRowsBy && field) {
|
|
1433
|
+
if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
|
|
1464
1434
|
} else {
|
|
1465
1435
|
return false;
|
|
1466
1436
|
}
|
|
1467
1437
|
},
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
|
|
1471
|
-
}
|
|
1472
|
-
return false;
|
|
1473
|
-
},
|
|
1474
|
-
isRowExpanded: function isRowExpanded(rowData) {
|
|
1475
|
-
if (rowData && this.expandedRows) {
|
|
1476
|
-
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
1477
|
-
}
|
|
1478
|
-
return false;
|
|
1479
|
-
},
|
|
1480
|
-
isRowGroupExpanded: function isRowGroupExpanded(rowData) {
|
|
1481
|
-
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1482
|
-
var groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1483
|
-
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1484
|
-
}
|
|
1485
|
-
return false;
|
|
1486
|
-
},
|
|
1487
|
-
isSelected: function isSelected(rowData) {
|
|
1488
|
-
if (rowData && this.selection) {
|
|
1489
|
-
if (this.dataKey) {
|
|
1490
|
-
return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
1491
|
-
} else {
|
|
1492
|
-
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
return false;
|
|
1438
|
+
findIndexInSelection: function findIndexInSelection(data) {
|
|
1439
|
+
return this.findIndex(data, this.selection);
|
|
1496
1440
|
},
|
|
1497
|
-
|
|
1498
|
-
if (rowData && this.contextMenuSelection) {
|
|
1499
|
-
return this.equals(rowData, this.contextMenuSelection, this.dataKey);
|
|
1500
|
-
}
|
|
1501
|
-
return false;
|
|
1502
|
-
},
|
|
1503
|
-
findIndexInSelection: function findIndexInSelection(rowData) {
|
|
1504
|
-
return this.findIndex(rowData, this.selection);
|
|
1505
|
-
},
|
|
1506
|
-
findIndex: function findIndex(rowData, collection) {
|
|
1441
|
+
findIndex: function findIndex(data, collection) {
|
|
1507
1442
|
var index = -1;
|
|
1508
1443
|
if (collection && collection.length) {
|
|
1509
1444
|
for (var i = 0; i < collection.length; i++) {
|
|
1510
|
-
if (this.equals(
|
|
1445
|
+
if (this.equals(data, collection[i])) {
|
|
1511
1446
|
index = i;
|
|
1512
1447
|
break;
|
|
1513
1448
|
}
|
|
@@ -1518,56 +1453,56 @@ var script$7 = {
|
|
|
1518
1453
|
equals: function equals(data1, data2) {
|
|
1519
1454
|
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
1520
1455
|
},
|
|
1521
|
-
onRowGroupToggle: function onRowGroupToggle(event
|
|
1456
|
+
onRowGroupToggle: function onRowGroupToggle(event) {
|
|
1522
1457
|
this.$emit('rowgroup-toggle', {
|
|
1523
1458
|
originalEvent: event,
|
|
1524
|
-
data:
|
|
1459
|
+
data: this.rowData
|
|
1525
1460
|
});
|
|
1526
1461
|
},
|
|
1527
|
-
onRowClick: function onRowClick(event
|
|
1462
|
+
onRowClick: function onRowClick(event) {
|
|
1528
1463
|
this.$emit('row-click', {
|
|
1529
1464
|
originalEvent: event,
|
|
1530
|
-
data: rowData,
|
|
1531
|
-
index: rowIndex
|
|
1465
|
+
data: this.rowData,
|
|
1466
|
+
index: this.rowIndex
|
|
1532
1467
|
});
|
|
1533
1468
|
},
|
|
1534
|
-
onRowDblClick: function onRowDblClick(event
|
|
1469
|
+
onRowDblClick: function onRowDblClick(event) {
|
|
1535
1470
|
this.$emit('row-dblclick', {
|
|
1536
1471
|
originalEvent: event,
|
|
1537
|
-
data: rowData,
|
|
1538
|
-
index: rowIndex
|
|
1472
|
+
data: this.rowData,
|
|
1473
|
+
index: this.rowIndex
|
|
1539
1474
|
});
|
|
1540
1475
|
},
|
|
1541
|
-
onRowRightClick: function onRowRightClick(event
|
|
1476
|
+
onRowRightClick: function onRowRightClick(event) {
|
|
1542
1477
|
this.$emit('row-rightclick', {
|
|
1543
1478
|
originalEvent: event,
|
|
1544
|
-
data: rowData,
|
|
1545
|
-
index: rowIndex
|
|
1479
|
+
data: this.rowData,
|
|
1480
|
+
index: this.rowIndex
|
|
1546
1481
|
});
|
|
1547
1482
|
},
|
|
1548
1483
|
onRowTouchEnd: function onRowTouchEnd(event) {
|
|
1549
1484
|
this.$emit('row-touchend', event);
|
|
1550
1485
|
},
|
|
1551
|
-
onRowKeyDown: function onRowKeyDown(event
|
|
1486
|
+
onRowKeyDown: function onRowKeyDown(event) {
|
|
1552
1487
|
this.$emit('row-keydown', {
|
|
1553
1488
|
originalEvent: event,
|
|
1554
|
-
data: rowData,
|
|
1555
|
-
index: rowIndex
|
|
1489
|
+
data: this.rowData,
|
|
1490
|
+
index: this.rowIndex
|
|
1556
1491
|
});
|
|
1557
1492
|
},
|
|
1558
1493
|
onRowMouseDown: function onRowMouseDown(event) {
|
|
1559
1494
|
this.$emit('row-mousedown', event);
|
|
1560
1495
|
},
|
|
1561
|
-
onRowDragStart: function onRowDragStart(event
|
|
1496
|
+
onRowDragStart: function onRowDragStart(event) {
|
|
1562
1497
|
this.$emit('row-dragstart', {
|
|
1563
1498
|
originalEvent: event,
|
|
1564
|
-
index: rowIndex
|
|
1499
|
+
index: this.rowIndex
|
|
1565
1500
|
});
|
|
1566
1501
|
},
|
|
1567
|
-
onRowDragOver: function onRowDragOver(event
|
|
1502
|
+
onRowDragOver: function onRowDragOver(event) {
|
|
1568
1503
|
this.$emit('row-dragover', {
|
|
1569
1504
|
originalEvent: event,
|
|
1570
|
-
index: rowIndex
|
|
1505
|
+
index: this.rowIndex
|
|
1571
1506
|
});
|
|
1572
1507
|
},
|
|
1573
1508
|
onRowDragLeave: function onRowDragLeave(event) {
|
|
@@ -1580,7 +1515,10 @@ var script$7 = {
|
|
|
1580
1515
|
this.$emit('row-drop', event);
|
|
1581
1516
|
},
|
|
1582
1517
|
onRowToggle: function onRowToggle(event) {
|
|
1583
|
-
this
|
|
1518
|
+
this.d_rowExpanded = !this.d_rowExpanded;
|
|
1519
|
+
this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
|
|
1520
|
+
expanded: this.d_rowExpanded
|
|
1521
|
+
}));
|
|
1584
1522
|
},
|
|
1585
1523
|
onRadioChange: function onRadioChange(event) {
|
|
1586
1524
|
this.$emit('radio-change', event);
|
|
@@ -1609,6 +1547,420 @@ var script$7 = {
|
|
|
1609
1547
|
onEditingMetaChange: function onEditingMetaChange(event) {
|
|
1610
1548
|
this.$emit('editing-meta-change', event);
|
|
1611
1549
|
},
|
|
1550
|
+
getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
|
|
1551
|
+
options = options || this.virtualScrollerContentProps;
|
|
1552
|
+
return options ? options[option] : null;
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
computed: {
|
|
1556
|
+
rowIndex: function rowIndex() {
|
|
1557
|
+
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1558
|
+
return getItemOptions ? getItemOptions(this.index).index : this.index;
|
|
1559
|
+
},
|
|
1560
|
+
rowStyles: function rowStyles() {
|
|
1561
|
+
var _this$rowStyle;
|
|
1562
|
+
return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
|
|
1563
|
+
},
|
|
1564
|
+
rowClasses: function rowClasses() {
|
|
1565
|
+
var rowStyleClass = [];
|
|
1566
|
+
if (this.rowClass) {
|
|
1567
|
+
var rowClassValue = this.rowClass(this.rowData);
|
|
1568
|
+
if (rowClassValue) {
|
|
1569
|
+
rowStyleClass.push(rowClassValue);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
return [this.cx('row', {
|
|
1573
|
+
rowData: this.rowData,
|
|
1574
|
+
index: this.rowIndex
|
|
1575
|
+
}), rowStyleClass];
|
|
1576
|
+
},
|
|
1577
|
+
rowTabindex: function rowTabindex() {
|
|
1578
|
+
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1579
|
+
return this.rowIndex === 0 ? 0 : -1;
|
|
1580
|
+
}
|
|
1581
|
+
return -1;
|
|
1582
|
+
},
|
|
1583
|
+
isRowEditing: function isRowEditing() {
|
|
1584
|
+
if (this.rowData && this.editingRows) {
|
|
1585
|
+
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
|
|
1586
|
+
}
|
|
1587
|
+
return false;
|
|
1588
|
+
},
|
|
1589
|
+
isRowGroupExpanded: function isRowGroupExpanded() {
|
|
1590
|
+
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1591
|
+
var groupFieldValue = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1592
|
+
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1593
|
+
}
|
|
1594
|
+
return false;
|
|
1595
|
+
},
|
|
1596
|
+
isSelected: function isSelected() {
|
|
1597
|
+
if (this.rowData && this.selection) {
|
|
1598
|
+
if (this.dataKey) {
|
|
1599
|
+
return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
|
|
1600
|
+
} else {
|
|
1601
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
return false;
|
|
1605
|
+
},
|
|
1606
|
+
isSelectedWithContextMenu: function isSelectedWithContextMenu() {
|
|
1607
|
+
if (this.rowData && this.contextMenuSelection) {
|
|
1608
|
+
return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
|
|
1609
|
+
}
|
|
1610
|
+
return false;
|
|
1611
|
+
},
|
|
1612
|
+
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
|
|
1613
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1614
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1615
|
+
if (prevRowData) {
|
|
1616
|
+
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1617
|
+
return currentRowFieldData !== previousRowFieldData;
|
|
1618
|
+
} else {
|
|
1619
|
+
return true;
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
|
|
1623
|
+
if (this.expandableRowGroups && !this.isRowGroupExpanded) {
|
|
1624
|
+
return false;
|
|
1625
|
+
} else {
|
|
1626
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1627
|
+
var nextRowData = this.value[this.rowIndex + 1];
|
|
1628
|
+
if (nextRowData) {
|
|
1629
|
+
var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1630
|
+
return currentRowFieldData !== nextRowFieldData;
|
|
1631
|
+
} else {
|
|
1632
|
+
return true;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
columnsLength: function columnsLength() {
|
|
1637
|
+
var _this2 = this;
|
|
1638
|
+
var hiddenColLength = 0;
|
|
1639
|
+
this.columns.forEach(function (column) {
|
|
1640
|
+
if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1641
|
+
if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1642
|
+
});
|
|
1643
|
+
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
components: {
|
|
1647
|
+
DTBodyCell: script$9,
|
|
1648
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
1649
|
+
ChevronRightIcon: ChevronRightIcon
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
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); }
|
|
1654
|
+
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; }
|
|
1655
|
+
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; }
|
|
1656
|
+
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; }
|
|
1657
|
+
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1658
|
+
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); }
|
|
1659
|
+
var _hoisted_1$4 = ["colspan"];
|
|
1660
|
+
var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1661
|
+
var _hoisted_3$1 = ["id"];
|
|
1662
|
+
var _hoisted_4 = ["colspan"];
|
|
1663
|
+
var _hoisted_5 = ["colspan"];
|
|
1664
|
+
var _hoisted_6 = ["colspan"];
|
|
1665
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1666
|
+
var _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
|
|
1667
|
+
var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
|
|
1668
|
+
var _component_DTBodyCell = resolveComponent("DTBodyCell");
|
|
1669
|
+
return !$props.empty ? (openBlock(), createElementBlock(Fragment, {
|
|
1670
|
+
key: 0
|
|
1671
|
+
}, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1672
|
+
key: 0,
|
|
1673
|
+
"class": _ctx.cx('rowGroupHeader'),
|
|
1674
|
+
style: $props.rowGroupHeaderStyle,
|
|
1675
|
+
role: "row"
|
|
1676
|
+
}, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
|
|
1677
|
+
colspan: $options.columnsLength - 1
|
|
1678
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
|
|
1679
|
+
key: 0,
|
|
1680
|
+
"class": _ctx.cx('rowGroupToggler'),
|
|
1681
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1682
|
+
return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
|
|
1683
|
+
}),
|
|
1684
|
+
type: "button"
|
|
1685
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1686
|
+
key: 0,
|
|
1687
|
+
expanded: $options.isRowGroupExpanded
|
|
1688
|
+
}, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
|
|
1689
|
+
key: 1
|
|
1690
|
+
}, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1691
|
+
key: 0,
|
|
1692
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1693
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
|
|
1694
|
+
key: 1,
|
|
1695
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1696
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1697
|
+
key: 2,
|
|
1698
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1699
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
|
|
1700
|
+
key: 3,
|
|
1701
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1702
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
|
|
1703
|
+
data: $props.rowData,
|
|
1704
|
+
index: $options.rowIndex
|
|
1705
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1706
|
+
key: 1,
|
|
1707
|
+
"class": $options.rowClasses,
|
|
1708
|
+
style: $options.rowStyles,
|
|
1709
|
+
tabindex: $options.rowTabindex,
|
|
1710
|
+
role: "row",
|
|
1711
|
+
"aria-selected": $props.selectionMode ? $options.isSelected : null,
|
|
1712
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1713
|
+
return $options.onRowClick && $options.onRowClick.apply($options, arguments);
|
|
1714
|
+
}),
|
|
1715
|
+
onDblclick: _cache[2] || (_cache[2] = function () {
|
|
1716
|
+
return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
|
|
1717
|
+
}),
|
|
1718
|
+
onContextmenu: _cache[3] || (_cache[3] = function () {
|
|
1719
|
+
return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
|
|
1720
|
+
}),
|
|
1721
|
+
onTouchend: _cache[4] || (_cache[4] = function () {
|
|
1722
|
+
return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
|
|
1723
|
+
}),
|
|
1724
|
+
onKeydown: _cache[5] || (_cache[5] = withModifiers(function () {
|
|
1725
|
+
return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
|
|
1726
|
+
}, ["self"])),
|
|
1727
|
+
onMousedown: _cache[6] || (_cache[6] = function () {
|
|
1728
|
+
return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
|
|
1729
|
+
}),
|
|
1730
|
+
onDragstart: _cache[7] || (_cache[7] = function () {
|
|
1731
|
+
return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
|
|
1732
|
+
}),
|
|
1733
|
+
onDragover: _cache[8] || (_cache[8] = function () {
|
|
1734
|
+
return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
|
|
1735
|
+
}),
|
|
1736
|
+
onDragleave: _cache[9] || (_cache[9] = function () {
|
|
1737
|
+
return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
|
|
1738
|
+
}),
|
|
1739
|
+
onDragend: _cache[10] || (_cache[10] = function () {
|
|
1740
|
+
return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
|
|
1741
|
+
}),
|
|
1742
|
+
onDrop: _cache[11] || (_cache[11] = function () {
|
|
1743
|
+
return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
|
|
1744
|
+
})
|
|
1745
|
+
}, $options.getBodyRowPTOptions('bodyRow'), {
|
|
1746
|
+
"data-p-index": $options.rowIndex,
|
|
1747
|
+
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1748
|
+
"data-p-highlight": $props.selection && $options.isSelected,
|
|
1749
|
+
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
|
|
1750
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, function (col, i) {
|
|
1751
|
+
return openBlock(), createElementBlock(Fragment, null, [$options.shouldRenderBodyCell(col) ? (openBlock(), createBlock(_component_DTBodyCell, {
|
|
1752
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1753
|
+
rowData: $props.rowData,
|
|
1754
|
+
column: col,
|
|
1755
|
+
rowIndex: $options.rowIndex,
|
|
1756
|
+
index: i,
|
|
1757
|
+
selected: $options.isSelected,
|
|
1758
|
+
frozenRow: $props.frozenRow,
|
|
1759
|
+
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
|
|
1760
|
+
editMode: $props.editMode,
|
|
1761
|
+
editing: $props.editMode === 'row' && $options.isRowEditing,
|
|
1762
|
+
editingMeta: $props.editingMeta,
|
|
1763
|
+
responsiveLayout: $props.responsiveLayout,
|
|
1764
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
1765
|
+
ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1766
|
+
name: $props.nameAttributeSelector,
|
|
1767
|
+
isRowExpanded: $data.d_rowExpanded,
|
|
1768
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
1769
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
1770
|
+
onRadioChange: $options.onRadioChange,
|
|
1771
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1772
|
+
onRowToggle: $options.onRowToggle,
|
|
1773
|
+
onCellEditInit: $options.onCellEditInit,
|
|
1774
|
+
onCellEditComplete: $options.onCellEditComplete,
|
|
1775
|
+
onCellEditCancel: $options.onCellEditCancel,
|
|
1776
|
+
onRowEditInit: $options.onRowEditInit,
|
|
1777
|
+
onRowEditSave: $options.onRowEditSave,
|
|
1778
|
+
onRowEditCancel: $options.onRowEditCancel,
|
|
1779
|
+
onEditingMetaChange: $options.onEditingMetaChange,
|
|
1780
|
+
unstyled: _ctx.unstyled,
|
|
1781
|
+
pt: _ctx.pt
|
|
1782
|
+
}, 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"])) : createCommentVNode("", true)], 64);
|
|
1783
|
+
}), 256))], 16, _hoisted_2$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1784
|
+
key: 2,
|
|
1785
|
+
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1786
|
+
"class": _ctx.cx('rowExpansion'),
|
|
1787
|
+
role: "row"
|
|
1788
|
+
}, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
|
|
1789
|
+
colspan: $options.columnsLength
|
|
1790
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
|
|
1791
|
+
data: $props.rowData,
|
|
1792
|
+
index: $options.rowIndex
|
|
1793
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1794
|
+
key: 3,
|
|
1795
|
+
"class": _ctx.cx('rowGroupFooter'),
|
|
1796
|
+
role: "row"
|
|
1797
|
+
}, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
|
|
1798
|
+
colspan: $options.columnsLength - 1
|
|
1799
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1800
|
+
data: $props.rowData,
|
|
1801
|
+
index: $options.rowIndex
|
|
1802
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("tr", mergeProps({
|
|
1803
|
+
key: 1,
|
|
1804
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1805
|
+
role: "row"
|
|
1806
|
+
}, _ctx.ptm('emptyMessage')), [createElementVNode("td", mergeProps({
|
|
1807
|
+
colspan: $options.columnsLength
|
|
1808
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
|
|
1809
|
+
key: 0
|
|
1810
|
+
})) : createCommentVNode("", true)], 16, _hoisted_6)], 16));
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
script$8.render = render$8;
|
|
1814
|
+
|
|
1815
|
+
var script$7 = {
|
|
1816
|
+
name: 'TableBody',
|
|
1817
|
+
hostName: 'DataTable',
|
|
1818
|
+
"extends": BaseComponent,
|
|
1819
|
+
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'],
|
|
1820
|
+
props: {
|
|
1821
|
+
value: {
|
|
1822
|
+
type: Array,
|
|
1823
|
+
"default": null
|
|
1824
|
+
},
|
|
1825
|
+
columns: {
|
|
1826
|
+
type: null,
|
|
1827
|
+
"default": null
|
|
1828
|
+
},
|
|
1829
|
+
frozenRow: {
|
|
1830
|
+
type: Boolean,
|
|
1831
|
+
"default": false
|
|
1832
|
+
},
|
|
1833
|
+
empty: {
|
|
1834
|
+
type: Boolean,
|
|
1835
|
+
"default": false
|
|
1836
|
+
},
|
|
1837
|
+
rowGroupMode: {
|
|
1838
|
+
type: String,
|
|
1839
|
+
"default": null
|
|
1840
|
+
},
|
|
1841
|
+
groupRowsBy: {
|
|
1842
|
+
type: [Array, String, Function],
|
|
1843
|
+
"default": null
|
|
1844
|
+
},
|
|
1845
|
+
expandableRowGroups: {
|
|
1846
|
+
type: Boolean,
|
|
1847
|
+
"default": false
|
|
1848
|
+
},
|
|
1849
|
+
expandedRowGroups: {
|
|
1850
|
+
type: Array,
|
|
1851
|
+
"default": null
|
|
1852
|
+
},
|
|
1853
|
+
first: {
|
|
1854
|
+
type: Number,
|
|
1855
|
+
"default": 0
|
|
1856
|
+
},
|
|
1857
|
+
dataKey: {
|
|
1858
|
+
type: [String, Function],
|
|
1859
|
+
"default": null
|
|
1860
|
+
},
|
|
1861
|
+
expandedRowIcon: {
|
|
1862
|
+
type: String,
|
|
1863
|
+
"default": null
|
|
1864
|
+
},
|
|
1865
|
+
collapsedRowIcon: {
|
|
1866
|
+
type: String,
|
|
1867
|
+
"default": null
|
|
1868
|
+
},
|
|
1869
|
+
expandedRows: {
|
|
1870
|
+
type: [Array, Object],
|
|
1871
|
+
"default": null
|
|
1872
|
+
},
|
|
1873
|
+
selection: {
|
|
1874
|
+
type: [Array, Object],
|
|
1875
|
+
"default": null
|
|
1876
|
+
},
|
|
1877
|
+
selectionKeys: {
|
|
1878
|
+
type: null,
|
|
1879
|
+
"default": null
|
|
1880
|
+
},
|
|
1881
|
+
selectionMode: {
|
|
1882
|
+
type: String,
|
|
1883
|
+
"default": null
|
|
1884
|
+
},
|
|
1885
|
+
contextMenu: {
|
|
1886
|
+
type: Boolean,
|
|
1887
|
+
"default": false
|
|
1888
|
+
},
|
|
1889
|
+
contextMenuSelection: {
|
|
1890
|
+
type: Object,
|
|
1891
|
+
"default": null
|
|
1892
|
+
},
|
|
1893
|
+
rowClass: {
|
|
1894
|
+
type: null,
|
|
1895
|
+
"default": null
|
|
1896
|
+
},
|
|
1897
|
+
rowStyle: {
|
|
1898
|
+
type: null,
|
|
1899
|
+
"default": null
|
|
1900
|
+
},
|
|
1901
|
+
editMode: {
|
|
1902
|
+
type: String,
|
|
1903
|
+
"default": null
|
|
1904
|
+
},
|
|
1905
|
+
compareSelectionBy: {
|
|
1906
|
+
type: String,
|
|
1907
|
+
"default": 'deepEquals'
|
|
1908
|
+
},
|
|
1909
|
+
editingRows: {
|
|
1910
|
+
type: Array,
|
|
1911
|
+
"default": null
|
|
1912
|
+
},
|
|
1913
|
+
editingRowKeys: {
|
|
1914
|
+
type: null,
|
|
1915
|
+
"default": null
|
|
1916
|
+
},
|
|
1917
|
+
editingMeta: {
|
|
1918
|
+
type: Object,
|
|
1919
|
+
"default": null
|
|
1920
|
+
},
|
|
1921
|
+
templates: {
|
|
1922
|
+
type: null,
|
|
1923
|
+
"default": null
|
|
1924
|
+
},
|
|
1925
|
+
scrollable: {
|
|
1926
|
+
type: Boolean,
|
|
1927
|
+
"default": false
|
|
1928
|
+
},
|
|
1929
|
+
responsiveLayout: {
|
|
1930
|
+
type: String,
|
|
1931
|
+
"default": 'stack'
|
|
1932
|
+
},
|
|
1933
|
+
virtualScrollerContentProps: {
|
|
1934
|
+
type: Object,
|
|
1935
|
+
"default": null
|
|
1936
|
+
},
|
|
1937
|
+
isVirtualScrollerDisabled: {
|
|
1938
|
+
type: Boolean,
|
|
1939
|
+
"default": false
|
|
1940
|
+
}
|
|
1941
|
+
},
|
|
1942
|
+
data: function data() {
|
|
1943
|
+
return {
|
|
1944
|
+
rowGroupHeaderStyleObject: {}
|
|
1945
|
+
};
|
|
1946
|
+
},
|
|
1947
|
+
mounted: function mounted() {
|
|
1948
|
+
if (this.frozenRow) {
|
|
1949
|
+
this.updateFrozenRowStickyPosition();
|
|
1950
|
+
}
|
|
1951
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1952
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
updated: function updated() {
|
|
1956
|
+
if (this.frozenRow) {
|
|
1957
|
+
this.updateFrozenRowStickyPosition();
|
|
1958
|
+
}
|
|
1959
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1960
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
methods: {
|
|
1612
1964
|
updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
|
|
1613
1965
|
this.$el.style.top = DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
1614
1966
|
},
|
|
@@ -1624,74 +1976,42 @@ var script$7 = {
|
|
|
1624
1976
|
// For VirtualScroller
|
|
1625
1977
|
var contentRef = this.getVirtualScrollerProp('contentRef');
|
|
1626
1978
|
contentRef && contentRef(el);
|
|
1627
|
-
},
|
|
1628
|
-
setRowTabindex: function setRowTabindex(index) {
|
|
1629
|
-
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1630
|
-
return index === 0 ? 0 : -1;
|
|
1631
|
-
}
|
|
1632
|
-
return -1;
|
|
1633
1979
|
}
|
|
1634
1980
|
},
|
|
1635
1981
|
computed: {
|
|
1636
|
-
columnsLength: function columnsLength() {
|
|
1637
|
-
var _this = this;
|
|
1638
|
-
var hiddenColLength = 0;
|
|
1639
|
-
this.columns.forEach(function (column) {
|
|
1640
|
-
if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1641
|
-
if (_this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1642
|
-
});
|
|
1643
|
-
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1644
|
-
},
|
|
1645
1982
|
rowGroupHeaderStyle: function rowGroupHeaderStyle() {
|
|
1646
1983
|
if (this.scrollable) {
|
|
1647
1984
|
return {
|
|
1648
1985
|
top: this.rowGroupHeaderStyleObject.top
|
|
1649
1986
|
};
|
|
1650
1987
|
}
|
|
1651
|
-
return null;
|
|
1652
|
-
},
|
|
1653
|
-
bodyStyle: function bodyStyle() {
|
|
1654
|
-
return this.getVirtualScrollerProp('contentStyle');
|
|
1655
|
-
},
|
|
1656
|
-
expandedRowId: function expandedRowId() {
|
|
1657
|
-
return UniqueComponentId();
|
|
1988
|
+
return null;
|
|
1658
1989
|
},
|
|
1659
|
-
|
|
1660
|
-
return
|
|
1990
|
+
bodyStyle: function bodyStyle() {
|
|
1991
|
+
return this.getVirtualScrollerProp('contentStyle');
|
|
1661
1992
|
},
|
|
1662
1993
|
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1663
|
-
var _this$$
|
|
1994
|
+
var _this$$parentInstance;
|
|
1664
1995
|
return {
|
|
1665
1996
|
context: {
|
|
1666
|
-
scrollable: (_this$$
|
|
1997
|
+
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
|
|
1667
1998
|
}
|
|
1668
1999
|
};
|
|
2000
|
+
},
|
|
2001
|
+
expandedRowId: function expandedRowId() {
|
|
2002
|
+
return UniqueComponentId();
|
|
2003
|
+
},
|
|
2004
|
+
nameAttributeSelector: function nameAttributeSelector() {
|
|
2005
|
+
return UniqueComponentId();
|
|
1669
2006
|
}
|
|
1670
2007
|
},
|
|
1671
2008
|
components: {
|
|
1672
|
-
|
|
1673
|
-
ChevronDownIcon: ChevronDownIcon,
|
|
1674
|
-
ChevronRightIcon: ChevronRightIcon
|
|
2009
|
+
DTBodyRow: script$8
|
|
1675
2010
|
}
|
|
1676
2011
|
};
|
|
1677
2012
|
|
|
1678
|
-
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); }
|
|
1679
|
-
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; }
|
|
1680
|
-
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; }
|
|
1681
|
-
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; }
|
|
1682
|
-
function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
|
|
1683
|
-
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); }
|
|
1684
|
-
var _hoisted_1$4 = ["colspan"];
|
|
1685
|
-
var _hoisted_2$1 = ["onClick"];
|
|
1686
|
-
var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1687
|
-
var _hoisted_4 = ["id"];
|
|
1688
|
-
var _hoisted_5 = ["colspan"];
|
|
1689
|
-
var _hoisted_6 = ["colspan"];
|
|
1690
|
-
var _hoisted_7 = ["colspan"];
|
|
1691
2013
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1692
|
-
var
|
|
1693
|
-
var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
|
|
1694
|
-
var _component_DTBodyCell = resolveComponent("DTBodyCell");
|
|
2014
|
+
var _component_DTBodyRow = resolveComponent("DTBodyRow");
|
|
1695
2015
|
return openBlock(), createElementBlock("tbody", mergeProps({
|
|
1696
2016
|
ref: $options.bodyRef,
|
|
1697
2017
|
"class": _ctx.cx('tbody'),
|
|
@@ -1699,165 +2019,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1699
2019
|
style: $options.bodyStyle
|
|
1700
2020
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
|
|
1701
2021
|
key: 0
|
|
1702
|
-
}, renderList($props.value, function (rowData,
|
|
1703
|
-
return openBlock(),
|
|
1704
|
-
key:
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
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
|
-
role: "row",
|
|
1743
|
-
"aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
|
|
1744
|
-
onClick: function onClick($event) {
|
|
1745
|
-
return $options.onRowClick($event, rowData, $options.getRowIndex(index));
|
|
1746
|
-
},
|
|
1747
|
-
onDblclick: function onDblclick($event) {
|
|
1748
|
-
return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
|
|
1749
|
-
},
|
|
1750
|
-
onContextmenu: function onContextmenu($event) {
|
|
1751
|
-
return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
|
|
1752
|
-
},
|
|
1753
|
-
onTouchend: _cache[9] || (_cache[9] = function ($event) {
|
|
1754
|
-
return $options.onRowTouchEnd($event);
|
|
2022
|
+
}, renderList($props.value, function (rowData, rowIndex) {
|
|
2023
|
+
return openBlock(), createBlock(_component_DTBodyRow, {
|
|
2024
|
+
key: rowIndex,
|
|
2025
|
+
rowData: rowData,
|
|
2026
|
+
index: rowIndex,
|
|
2027
|
+
value: $props.value,
|
|
2028
|
+
columns: $props.columns,
|
|
2029
|
+
frozenRow: $props.frozenRow,
|
|
2030
|
+
empty: $props.empty,
|
|
2031
|
+
first: $props.first,
|
|
2032
|
+
dataKey: $props.dataKey,
|
|
2033
|
+
selection: $props.selection,
|
|
2034
|
+
selectionKeys: $props.selectionKeys,
|
|
2035
|
+
selectionMode: $props.selectionMode,
|
|
2036
|
+
contextMenu: $props.contextMenu,
|
|
2037
|
+
contextMenuSelection: $props.contextMenuSelection,
|
|
2038
|
+
rowGroupMode: $props.rowGroupMode,
|
|
2039
|
+
groupRowsBy: $props.groupRowsBy,
|
|
2040
|
+
expandableRowGroups: $props.expandableRowGroups,
|
|
2041
|
+
rowClass: $props.rowClass,
|
|
2042
|
+
rowStyle: $props.rowStyle,
|
|
2043
|
+
editMode: $props.editMode,
|
|
2044
|
+
compareSelectionBy: $props.compareSelectionBy,
|
|
2045
|
+
scrollable: $props.scrollable,
|
|
2046
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
2047
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
2048
|
+
expandedRows: $props.expandedRows,
|
|
2049
|
+
expandedRowGroups: $props.expandedRowGroups,
|
|
2050
|
+
editingRows: $props.editingRows,
|
|
2051
|
+
editingRowKeys: $props.editingRowKeys,
|
|
2052
|
+
templates: $props.templates,
|
|
2053
|
+
responsiveLayout: $props.responsiveLayout,
|
|
2054
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
2055
|
+
isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
|
|
2056
|
+
editingMeta: $props.editingMeta,
|
|
2057
|
+
rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
|
|
2058
|
+
expandedRowId: $options.expandedRowId,
|
|
2059
|
+
nameAttributeSelector: $options.nameAttributeSelector,
|
|
2060
|
+
onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
2061
|
+
return _ctx.$emit('rowgroup-toggle', $event);
|
|
1755
2062
|
}),
|
|
1756
|
-
|
|
1757
|
-
return
|
|
1758
|
-
}, ["self"]),
|
|
1759
|
-
onMousedown: _cache[10] || (_cache[10] = function ($event) {
|
|
1760
|
-
return $options.onRowMouseDown($event);
|
|
2063
|
+
onRowClick: _cache[1] || (_cache[1] = function ($event) {
|
|
2064
|
+
return _ctx.$emit('row-click', $event);
|
|
1761
2065
|
}),
|
|
1762
|
-
|
|
1763
|
-
return
|
|
1764
|
-
},
|
|
1765
|
-
onDragover: function onDragover($event) {
|
|
1766
|
-
return $options.onRowDragOver($event, $options.getRowIndex(index));
|
|
1767
|
-
},
|
|
1768
|
-
onDragleave: _cache[11] || (_cache[11] = function ($event) {
|
|
1769
|
-
return $options.onRowDragLeave($event);
|
|
2066
|
+
onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
|
|
2067
|
+
return _ctx.$emit('row-dblclick', $event);
|
|
1770
2068
|
}),
|
|
1771
|
-
|
|
1772
|
-
return
|
|
2069
|
+
onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
|
|
2070
|
+
return _ctx.$emit('row-rightclick', $event);
|
|
1773
2071
|
}),
|
|
1774
|
-
|
|
1775
|
-
return
|
|
1776
|
-
})
|
|
1777
|
-
|
|
1778
|
-
|
|
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
|
-
}), 256))], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1833
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
1834
|
-
id: $options.expandedRowId + '_' + index + '_expansion',
|
|
1835
|
-
"class": _ctx.cx('rowExpansion'),
|
|
1836
|
-
role: "row"
|
|
1837
|
-
}, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
|
|
1838
|
-
colspan: $options.columnsLength
|
|
1839
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
|
|
1840
|
-
data: rowData,
|
|
1841
|
-
index: $options.getRowIndex(index)
|
|
1842
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1843
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
1844
|
-
"class": _ctx.cx('rowGroupFooter'),
|
|
1845
|
-
role: "row"
|
|
1846
|
-
}, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
|
|
1847
|
-
colspan: $options.columnsLength - 1
|
|
1848
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1849
|
-
data: rowData,
|
|
1850
|
-
index: $options.getRowIndex(index)
|
|
1851
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : createCommentVNode("", true)], 64);
|
|
1852
|
-
}), 256)) : (openBlock(), createElementBlock("tr", mergeProps({
|
|
2072
|
+
onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
|
|
2073
|
+
return _ctx.$emit('row-touchend', $event);
|
|
2074
|
+
}),
|
|
2075
|
+
onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
|
|
2076
|
+
return _ctx.$emit('row-keydown', $event);
|
|
2077
|
+
}),
|
|
2078
|
+
onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
|
|
2079
|
+
return _ctx.$emit('row-mousedown', $event);
|
|
2080
|
+
}),
|
|
2081
|
+
onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
|
|
2082
|
+
return _ctx.$emit('row-dragstart', $event);
|
|
2083
|
+
}),
|
|
2084
|
+
onRowDragover: _cache[8] || (_cache[8] = function ($event) {
|
|
2085
|
+
return _ctx.$emit('row-dragover', $event);
|
|
2086
|
+
}),
|
|
2087
|
+
onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
|
|
2088
|
+
return _ctx.$emit('row-dragleave', $event);
|
|
2089
|
+
}),
|
|
2090
|
+
onRowDragend: _cache[10] || (_cache[10] = function ($event) {
|
|
2091
|
+
return _ctx.$emit('row-dragend', $event);
|
|
2092
|
+
}),
|
|
2093
|
+
onRowDrop: _cache[11] || (_cache[11] = function ($event) {
|
|
2094
|
+
return _ctx.$emit('row-drop', $event);
|
|
2095
|
+
}),
|
|
2096
|
+
onRowToggle: _cache[12] || (_cache[12] = function ($event) {
|
|
2097
|
+
return _ctx.$emit('row-toggle', $event);
|
|
2098
|
+
}),
|
|
2099
|
+
onRadioChange: _cache[13] || (_cache[13] = function ($event) {
|
|
2100
|
+
return _ctx.$emit('radio-change', $event);
|
|
2101
|
+
}),
|
|
2102
|
+
onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
|
|
2103
|
+
return _ctx.$emit('checkbox-change', $event);
|
|
2104
|
+
}),
|
|
2105
|
+
onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
|
|
2106
|
+
return _ctx.$emit('cell-edit-init', $event);
|
|
2107
|
+
}),
|
|
2108
|
+
onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
|
|
2109
|
+
return _ctx.$emit('cell-edit-complete', $event);
|
|
2110
|
+
}),
|
|
2111
|
+
onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
|
|
2112
|
+
return _ctx.$emit('cell-edit-cancel', $event);
|
|
2113
|
+
}),
|
|
2114
|
+
onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
|
|
2115
|
+
return _ctx.$emit('row-edit-init', $event);
|
|
2116
|
+
}),
|
|
2117
|
+
onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
|
|
2118
|
+
return _ctx.$emit('row-edit-save', $event);
|
|
2119
|
+
}),
|
|
2120
|
+
onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
|
|
2121
|
+
return _ctx.$emit('row-edit-cancel', $event);
|
|
2122
|
+
}),
|
|
2123
|
+
onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
|
|
2124
|
+
return _ctx.$emit('editing-meta-change', $event);
|
|
2125
|
+
}),
|
|
2126
|
+
unstyled: _ctx.unstyled,
|
|
2127
|
+
pt: _ctx.pt
|
|
2128
|
+
}, 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"]);
|
|
2129
|
+
}), 128)) : (openBlock(), createBlock(_component_DTBodyRow, {
|
|
1853
2130
|
key: 1,
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
|
|
1859
|
-
key: 0
|
|
1860
|
-
})) : createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
|
|
2131
|
+
empty: $props.empty,
|
|
2132
|
+
columns: $props.columns,
|
|
2133
|
+
templates: $props.templates
|
|
2134
|
+
}, null, 8, ["empty", "columns", "templates"]))], 16);
|
|
1861
2135
|
}
|
|
1862
2136
|
|
|
1863
2137
|
script$7.render = render$7;
|
|
@@ -1954,8 +2228,8 @@ function _typeof$7(o) { "@babel/helpers - typeof"; return _typeof$7 = "function"
|
|
|
1954
2228
|
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; }
|
|
1955
2229
|
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; }
|
|
1956
2230
|
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; }
|
|
1957
|
-
function _toPropertyKey$7(
|
|
1958
|
-
function _toPrimitive$7(
|
|
2231
|
+
function _toPropertyKey$7(t) { var i = _toPrimitive$7(t, "string"); return "symbol" == _typeof$7(i) ? i : String(i); }
|
|
2232
|
+
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); }
|
|
1959
2233
|
var _hoisted_1$3 = ["colspan", "rowspan", "data-p-frozen-column"];
|
|
1960
2234
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1961
2235
|
return openBlock(), createElementBlock("td", mergeProps({
|
|
@@ -1974,13 +2248,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1974
2248
|
|
|
1975
2249
|
script$6.render = render$6;
|
|
1976
2250
|
|
|
1977
|
-
function
|
|
1978
|
-
function
|
|
1979
|
-
function
|
|
1980
|
-
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
1981
|
-
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; } } }; }
|
|
1982
|
-
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); }
|
|
1983
|
-
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; }
|
|
2251
|
+
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; } } }; }
|
|
2252
|
+
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); }
|
|
2253
|
+
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; }
|
|
1984
2254
|
var script$5 = {
|
|
1985
2255
|
name: 'TableFooter',
|
|
1986
2256
|
hostName: 'DataTable',
|
|
@@ -1995,6 +2265,26 @@ var script$5 = {
|
|
|
1995
2265
|
"default": null
|
|
1996
2266
|
}
|
|
1997
2267
|
},
|
|
2268
|
+
provide: function provide() {
|
|
2269
|
+
return {
|
|
2270
|
+
$rows: this.d_footerRows,
|
|
2271
|
+
$columns: this.d_footerColumns
|
|
2272
|
+
};
|
|
2273
|
+
},
|
|
2274
|
+
data: function data() {
|
|
2275
|
+
return {
|
|
2276
|
+
d_footerRows: new HelperSet({
|
|
2277
|
+
type: 'Row'
|
|
2278
|
+
}),
|
|
2279
|
+
d_footerColumns: new HelperSet({
|
|
2280
|
+
type: 'Column'
|
|
2281
|
+
})
|
|
2282
|
+
};
|
|
2283
|
+
},
|
|
2284
|
+
beforeUnmount: function beforeUnmount() {
|
|
2285
|
+
this.d_footerRows.clear();
|
|
2286
|
+
this.d_footerColumns.clear();
|
|
2287
|
+
},
|
|
1998
2288
|
methods: {
|
|
1999
2289
|
columnProp: function columnProp(col, prop) {
|
|
2000
2290
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2039,36 +2329,12 @@ var script$5 = {
|
|
|
2039
2329
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
2040
2330
|
},
|
|
2041
2331
|
getFooterRows: function getFooterRows() {
|
|
2042
|
-
var
|
|
2043
|
-
|
|
2044
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
2045
|
-
var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
|
|
2046
|
-
_step;
|
|
2047
|
-
try {
|
|
2048
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2049
|
-
var child = _step.value;
|
|
2050
|
-
if (child.type.name === 'Row') {
|
|
2051
|
-
rows.push(child);
|
|
2052
|
-
} else if (child.children && child.children instanceof Array) {
|
|
2053
|
-
rows = child.children;
|
|
2054
|
-
}
|
|
2055
|
-
}
|
|
2056
|
-
} catch (err) {
|
|
2057
|
-
_iterator.e(err);
|
|
2058
|
-
} finally {
|
|
2059
|
-
_iterator.f();
|
|
2060
|
-
}
|
|
2061
|
-
return rows;
|
|
2062
|
-
}
|
|
2332
|
+
var _this$d_footerRows;
|
|
2333
|
+
return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
|
|
2063
2334
|
},
|
|
2064
2335
|
getFooterColumns: function getFooterColumns(row) {
|
|
2065
|
-
var
|
|
2066
|
-
|
|
2067
|
-
row.children["default"]().forEach(function (child) {
|
|
2068
|
-
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);
|
|
2069
|
-
});
|
|
2070
|
-
return cols;
|
|
2071
|
-
}
|
|
2336
|
+
var _this$d_footerColumns;
|
|
2337
|
+
return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
|
|
2072
2338
|
}
|
|
2073
2339
|
},
|
|
2074
2340
|
computed: {
|
|
@@ -2077,20 +2343,20 @@ var script$5 = {
|
|
|
2077
2343
|
if (this.columnGroup) {
|
|
2078
2344
|
hasFooter = true;
|
|
2079
2345
|
} else if (this.columns) {
|
|
2080
|
-
var
|
|
2081
|
-
|
|
2346
|
+
var _iterator = _createForOfIteratorHelper$1(this.columns),
|
|
2347
|
+
_step;
|
|
2082
2348
|
try {
|
|
2083
|
-
for (
|
|
2084
|
-
var col =
|
|
2349
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2350
|
+
var col = _step.value;
|
|
2085
2351
|
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
2086
2352
|
hasFooter = true;
|
|
2087
2353
|
break;
|
|
2088
2354
|
}
|
|
2089
2355
|
}
|
|
2090
2356
|
} catch (err) {
|
|
2091
|
-
|
|
2357
|
+
_iterator.e(err);
|
|
2092
2358
|
} finally {
|
|
2093
|
-
|
|
2359
|
+
_iterator.f();
|
|
2094
2360
|
}
|
|
2095
2361
|
}
|
|
2096
2362
|
return hasFooter;
|
|
@@ -2113,8 +2379,8 @@ function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function"
|
|
|
2113
2379
|
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; }
|
|
2114
2380
|
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; }
|
|
2115
2381
|
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; }
|
|
2116
|
-
function _toPropertyKey$6(
|
|
2117
|
-
function _toPrimitive$6(
|
|
2382
|
+
function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : String(i); }
|
|
2383
|
+
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); }
|
|
2118
2384
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2119
2385
|
var _component_DTFooterCell = resolveComponent("DTFooterCell");
|
|
2120
2386
|
return $options.hasFooter ? (openBlock(), createElementBlock("tfoot", mergeProps({
|
|
@@ -2160,8 +2426,8 @@ function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function"
|
|
|
2160
2426
|
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; }
|
|
2161
2427
|
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; }
|
|
2162
2428
|
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; }
|
|
2163
|
-
function _toPropertyKey$5(
|
|
2164
|
-
function _toPrimitive$5(
|
|
2429
|
+
function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : String(i); }
|
|
2430
|
+
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); }
|
|
2165
2431
|
var script$4 = {
|
|
2166
2432
|
name: 'ColumnFilter',
|
|
2167
2433
|
hostName: 'DataTable',
|
|
@@ -2380,6 +2646,7 @@ var script$4 = {
|
|
|
2380
2646
|
onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
|
|
2381
2647
|
switch (event.code) {
|
|
2382
2648
|
case 'Enter':
|
|
2649
|
+
case 'NumpadEnter':
|
|
2383
2650
|
case 'Space':
|
|
2384
2651
|
this.toggleMenu(event);
|
|
2385
2652
|
break;
|
|
@@ -2701,8 +2968,8 @@ function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function"
|
|
|
2701
2968
|
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; }
|
|
2702
2969
|
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; }
|
|
2703
2970
|
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; }
|
|
2704
|
-
function _toPropertyKey$4(
|
|
2705
|
-
function _toPrimitive$4(
|
|
2971
|
+
function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : String(i); }
|
|
2972
|
+
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); }
|
|
2706
2973
|
var _hoisted_1$2 = ["aria-label", "aria-expanded", "aria-controls"];
|
|
2707
2974
|
var _hoisted_2 = ["id", "aria-modal"];
|
|
2708
2975
|
var _hoisted_3 = ["onClick", "onKeydown", "tabindex"];
|
|
@@ -3181,7 +3448,7 @@ var script$2 = {
|
|
|
3181
3448
|
});
|
|
3182
3449
|
},
|
|
3183
3450
|
onKeyDown: function onKeyDown(event) {
|
|
3184
|
-
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3451
|
+
if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3185
3452
|
this.$emit('column-click', {
|
|
3186
3453
|
originalEvent: event,
|
|
3187
3454
|
column: this.column
|
|
@@ -3196,16 +3463,28 @@ var script$2 = {
|
|
|
3196
3463
|
});
|
|
3197
3464
|
},
|
|
3198
3465
|
onDragStart: function onDragStart(event) {
|
|
3199
|
-
this.$emit('column-dragstart',
|
|
3466
|
+
this.$emit('column-dragstart', {
|
|
3467
|
+
originalEvent: event,
|
|
3468
|
+
column: this.column
|
|
3469
|
+
});
|
|
3200
3470
|
},
|
|
3201
3471
|
onDragOver: function onDragOver(event) {
|
|
3202
|
-
this.$emit('column-dragover',
|
|
3472
|
+
this.$emit('column-dragover', {
|
|
3473
|
+
originalEvent: event,
|
|
3474
|
+
column: this.column
|
|
3475
|
+
});
|
|
3203
3476
|
},
|
|
3204
3477
|
onDragLeave: function onDragLeave(event) {
|
|
3205
|
-
this.$emit('column-dragleave',
|
|
3478
|
+
this.$emit('column-dragleave', {
|
|
3479
|
+
originalEvent: event,
|
|
3480
|
+
column: this.column
|
|
3481
|
+
});
|
|
3206
3482
|
},
|
|
3207
3483
|
onDrop: function onDrop(event) {
|
|
3208
|
-
this.$emit('column-drop',
|
|
3484
|
+
this.$emit('column-drop', {
|
|
3485
|
+
originalEvent: event,
|
|
3486
|
+
column: this.column
|
|
3487
|
+
});
|
|
3209
3488
|
},
|
|
3210
3489
|
onResizeStart: function onResizeStart(event) {
|
|
3211
3490
|
this.$emit('column-resizestart', event);
|
|
@@ -3247,8 +3526,10 @@ var script$2 = {
|
|
|
3247
3526
|
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
3248
3527
|
if (filterRow) {
|
|
3249
3528
|
var index = DomHandler.index(this.$el);
|
|
3250
|
-
filterRow.children[index]
|
|
3251
|
-
|
|
3529
|
+
if (filterRow.children[index]) {
|
|
3530
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
3531
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
3532
|
+
}
|
|
3252
3533
|
}
|
|
3253
3534
|
}
|
|
3254
3535
|
},
|
|
@@ -3314,8 +3595,8 @@ function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function"
|
|
|
3314
3595
|
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; }
|
|
3315
3596
|
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; }
|
|
3316
3597
|
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; }
|
|
3317
|
-
function _toPropertyKey$3(
|
|
3318
|
-
function _toPrimitive$3(
|
|
3598
|
+
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : String(i); }
|
|
3599
|
+
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); }
|
|
3319
3600
|
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"];
|
|
3320
3601
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3321
3602
|
var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
|
|
@@ -3445,13 +3726,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3445
3726
|
|
|
3446
3727
|
script$2.render = render$2;
|
|
3447
3728
|
|
|
3448
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
3449
|
-
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."); }
|
|
3450
|
-
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3451
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
3452
|
-
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; } } }; }
|
|
3453
|
-
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); }
|
|
3454
|
-
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; }
|
|
3455
3729
|
var script$1 = {
|
|
3456
3730
|
name: 'TableHeader',
|
|
3457
3731
|
hostName: 'DataTable',
|
|
@@ -3527,6 +3801,26 @@ var script$1 = {
|
|
|
3527
3801
|
"default": null
|
|
3528
3802
|
}
|
|
3529
3803
|
},
|
|
3804
|
+
provide: function provide() {
|
|
3805
|
+
return {
|
|
3806
|
+
$rows: this.d_headerRows,
|
|
3807
|
+
$columns: this.d_headerColumns
|
|
3808
|
+
};
|
|
3809
|
+
},
|
|
3810
|
+
data: function data() {
|
|
3811
|
+
return {
|
|
3812
|
+
d_headerRows: new HelperSet({
|
|
3813
|
+
type: 'Row'
|
|
3814
|
+
}),
|
|
3815
|
+
d_headerColumns: new HelperSet({
|
|
3816
|
+
type: 'Column'
|
|
3817
|
+
})
|
|
3818
|
+
};
|
|
3819
|
+
},
|
|
3820
|
+
beforeUnmount: function beforeUnmount() {
|
|
3821
|
+
this.d_headerRows.clear();
|
|
3822
|
+
this.d_headerColumns.clear();
|
|
3823
|
+
},
|
|
3530
3824
|
methods: {
|
|
3531
3825
|
columnProp: function columnProp(col, prop) {
|
|
3532
3826
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -3599,36 +3893,12 @@ var script$1 = {
|
|
|
3599
3893
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
3600
3894
|
},
|
|
3601
3895
|
getHeaderRows: function getHeaderRows() {
|
|
3602
|
-
var
|
|
3603
|
-
|
|
3604
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
3605
|
-
var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
|
|
3606
|
-
_step;
|
|
3607
|
-
try {
|
|
3608
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3609
|
-
var child = _step.value;
|
|
3610
|
-
if (child.type.name === 'Row') {
|
|
3611
|
-
rows.push(child);
|
|
3612
|
-
} else if (child.children && child.children instanceof Array) {
|
|
3613
|
-
rows = child.children;
|
|
3614
|
-
}
|
|
3615
|
-
}
|
|
3616
|
-
} catch (err) {
|
|
3617
|
-
_iterator.e(err);
|
|
3618
|
-
} finally {
|
|
3619
|
-
_iterator.f();
|
|
3620
|
-
}
|
|
3621
|
-
return rows;
|
|
3622
|
-
}
|
|
3896
|
+
var _this$d_headerRows;
|
|
3897
|
+
return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
|
|
3623
3898
|
},
|
|
3624
3899
|
getHeaderColumns: function getHeaderColumns(row) {
|
|
3625
|
-
var
|
|
3626
|
-
|
|
3627
|
-
row.children["default"]().forEach(function (child) {
|
|
3628
|
-
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);
|
|
3629
|
-
});
|
|
3630
|
-
return cols;
|
|
3631
|
-
}
|
|
3900
|
+
var _this$d_headerColumns;
|
|
3901
|
+
return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
|
|
3632
3902
|
}
|
|
3633
3903
|
},
|
|
3634
3904
|
computed: {
|
|
@@ -3652,8 +3922,8 @@ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function"
|
|
|
3652
3922
|
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; }
|
|
3653
3923
|
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; }
|
|
3654
3924
|
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; }
|
|
3655
|
-
function _toPropertyKey$2(
|
|
3656
|
-
function _toPrimitive$2(
|
|
3925
|
+
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : String(i); }
|
|
3926
|
+
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); }
|
|
3657
3927
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3658
3928
|
var _component_DTHeaderCell = resolveComponent("DTHeaderCell");
|
|
3659
3929
|
var _component_DTHeaderCheckbox = resolveComponent("DTHeaderCheckbox");
|
|
@@ -3869,11 +4139,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3869
4139
|
script$1.render = render$1;
|
|
3870
4140
|
|
|
3871
4141
|
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); }
|
|
4142
|
+
var _excluded = ["expanded"];
|
|
4143
|
+
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; }
|
|
4144
|
+
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; }
|
|
3872
4145
|
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; }
|
|
3873
4146
|
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; }
|
|
3874
4147
|
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; }
|
|
3875
|
-
function _toPropertyKey$1(
|
|
3876
|
-
function _toPrimitive$1(
|
|
4148
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : String(i); }
|
|
4149
|
+
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); }
|
|
3877
4150
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3878
4151
|
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."); }
|
|
3879
4152
|
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; } }
|
|
@@ -3887,8 +4160,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
3887
4160
|
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; }
|
|
3888
4161
|
var script = {
|
|
3889
4162
|
name: 'DataTable',
|
|
3890
|
-
"extends": script$
|
|
4163
|
+
"extends": script$c,
|
|
3891
4164
|
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'],
|
|
4165
|
+
provide: function provide() {
|
|
4166
|
+
return {
|
|
4167
|
+
$columns: this.d_columns,
|
|
4168
|
+
$columnGroups: this.d_columnGroups
|
|
4169
|
+
};
|
|
4170
|
+
},
|
|
3892
4171
|
data: function data() {
|
|
3893
4172
|
return {
|
|
3894
4173
|
d_first: this.first,
|
|
@@ -3899,11 +4178,16 @@ var script = {
|
|
|
3899
4178
|
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
3900
4179
|
d_groupRowsSortMeta: null,
|
|
3901
4180
|
d_selectionKeys: null,
|
|
3902
|
-
d_expandedRowKeys: null,
|
|
3903
4181
|
d_columnOrder: null,
|
|
3904
4182
|
d_editingRowKeys: null,
|
|
3905
4183
|
d_editingMeta: {},
|
|
3906
|
-
d_filters: this.cloneFilters(this.filters)
|
|
4184
|
+
d_filters: this.cloneFilters(this.filters),
|
|
4185
|
+
d_columns: new HelperSet({
|
|
4186
|
+
type: 'Column'
|
|
4187
|
+
}),
|
|
4188
|
+
d_columnGroups: new HelperSet({
|
|
4189
|
+
type: 'ColumnGroup'
|
|
4190
|
+
})
|
|
3907
4191
|
};
|
|
3908
4192
|
},
|
|
3909
4193
|
rowTouched: false,
|
|
@@ -3917,6 +4201,7 @@ var script = {
|
|
|
3917
4201
|
colReorderIconWidth: null,
|
|
3918
4202
|
colReorderIconHeight: null,
|
|
3919
4203
|
draggedColumn: null,
|
|
4204
|
+
draggedColumnElement: null,
|
|
3920
4205
|
draggedRowIndex: null,
|
|
3921
4206
|
droppedRowIndex: null,
|
|
3922
4207
|
rowDragging: null,
|
|
@@ -3950,11 +4235,6 @@ var script = {
|
|
|
3950
4235
|
}
|
|
3951
4236
|
}
|
|
3952
4237
|
},
|
|
3953
|
-
expandedRows: function expandedRows(newValue) {
|
|
3954
|
-
if (this.dataKey) {
|
|
3955
|
-
this.updateExpandedRowKeys(newValue);
|
|
3956
|
-
}
|
|
3957
|
-
},
|
|
3958
4238
|
editingRows: {
|
|
3959
4239
|
immediate: true,
|
|
3960
4240
|
handler: function handler(newValue) {
|
|
@@ -3987,6 +4267,8 @@ var script = {
|
|
|
3987
4267
|
this.unbindColumnResizeEvents();
|
|
3988
4268
|
this.destroyStyleElement();
|
|
3989
4269
|
this.destroyResponsiveStyle();
|
|
4270
|
+
this.d_columns.clear();
|
|
4271
|
+
this.d_columnGroups.clear();
|
|
3990
4272
|
},
|
|
3991
4273
|
updated: function updated() {
|
|
3992
4274
|
if (this.isStateful()) {
|
|
@@ -4001,6 +4283,7 @@ var script = {
|
|
|
4001
4283
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
4002
4284
|
},
|
|
4003
4285
|
onPage: function onPage(event) {
|
|
4286
|
+
var _this = this;
|
|
4004
4287
|
this.clearEditingMetaData();
|
|
4005
4288
|
this.d_first = event.first;
|
|
4006
4289
|
this.d_rows = event.rows;
|
|
@@ -4010,15 +4293,18 @@ var script = {
|
|
|
4010
4293
|
this.$emit('update:first', this.d_first);
|
|
4011
4294
|
this.$emit('update:rows', this.d_rows);
|
|
4012
4295
|
this.$emit('page', pageEvent);
|
|
4013
|
-
this.$
|
|
4296
|
+
this.$nextTick(function () {
|
|
4297
|
+
_this.$emit('value-change', _this.processedData);
|
|
4298
|
+
});
|
|
4014
4299
|
},
|
|
4015
4300
|
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
4301
|
+
var _this2 = this;
|
|
4016
4302
|
var event = e.originalEvent;
|
|
4017
4303
|
var column = e.column;
|
|
4018
4304
|
if (this.columnProp(column, 'sortable')) {
|
|
4019
4305
|
var targetNode = event.target;
|
|
4020
4306
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
4021
|
-
if (DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
|
|
4307
|
+
if (DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !DomHandler.isClickable(event.target)) {
|
|
4022
4308
|
DomHandler.clearSelection();
|
|
4023
4309
|
if (this.sortMode === 'single') {
|
|
4024
4310
|
if (this.d_sortField === columnField) {
|
|
@@ -4046,12 +4332,14 @@ var script = {
|
|
|
4046
4332
|
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
4047
4333
|
}
|
|
4048
4334
|
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
4049
|
-
this.$
|
|
4335
|
+
this.$nextTick(function () {
|
|
4336
|
+
_this2.$emit('value-change', _this2.processedData);
|
|
4337
|
+
});
|
|
4050
4338
|
}
|
|
4051
4339
|
}
|
|
4052
4340
|
},
|
|
4053
4341
|
sortSingle: function sortSingle(value) {
|
|
4054
|
-
var
|
|
4342
|
+
var _this3 = this;
|
|
4055
4343
|
this.clearEditingMetaData();
|
|
4056
4344
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
4057
4345
|
this.d_multiSortMeta = [{
|
|
@@ -4081,12 +4369,12 @@ var script = {
|
|
|
4081
4369
|
data.sort(function (data1, data2) {
|
|
4082
4370
|
var value1 = resolvedFieldData.get(data1);
|
|
4083
4371
|
var value2 = resolvedFieldData.get(data2);
|
|
4084
|
-
return ObjectUtils.sort(value1, value2,
|
|
4372
|
+
return ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
|
|
4085
4373
|
});
|
|
4086
4374
|
return data;
|
|
4087
4375
|
},
|
|
4088
4376
|
sortMultiple: function sortMultiple(value) {
|
|
4089
|
-
var
|
|
4377
|
+
var _this4 = this;
|
|
4090
4378
|
this.clearEditingMetaData();
|
|
4091
4379
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
|
|
4092
4380
|
var firstSortMeta = this.d_multiSortMeta[0];
|
|
@@ -4097,7 +4385,7 @@ var script = {
|
|
|
4097
4385
|
}
|
|
4098
4386
|
var data = _toConsumableArray(value);
|
|
4099
4387
|
data.sort(function (data1, data2) {
|
|
4100
|
-
return
|
|
4388
|
+
return _this4.multisortField(data1, data2, 0);
|
|
4101
4389
|
});
|
|
4102
4390
|
return data;
|
|
4103
4391
|
},
|
|
@@ -4153,7 +4441,7 @@ var script = {
|
|
|
4153
4441
|
return Object.fromEntries(entries);
|
|
4154
4442
|
},
|
|
4155
4443
|
filter: function filter(data) {
|
|
4156
|
-
var
|
|
4444
|
+
var _this5 = this;
|
|
4157
4445
|
if (!data) {
|
|
4158
4446
|
return;
|
|
4159
4447
|
}
|
|
@@ -4162,7 +4450,7 @@ var script = {
|
|
|
4162
4450
|
var globalFilterFieldsArray;
|
|
4163
4451
|
if (activeFilters['global']) {
|
|
4164
4452
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4165
|
-
return
|
|
4453
|
+
return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
|
|
4166
4454
|
});
|
|
4167
4455
|
}
|
|
4168
4456
|
var filteredValue = [];
|
|
@@ -4224,7 +4512,9 @@ var script = {
|
|
|
4224
4512
|
var filterEvent = this.createLazyLoadEvent();
|
|
4225
4513
|
filterEvent.filteredValue = filteredValue;
|
|
4226
4514
|
this.$emit('filter', filterEvent);
|
|
4227
|
-
this.$
|
|
4515
|
+
this.$nextTick(function () {
|
|
4516
|
+
_this5.$emit('value-change', _this5.processedData);
|
|
4517
|
+
});
|
|
4228
4518
|
return filteredValue;
|
|
4229
4519
|
},
|
|
4230
4520
|
executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
|
|
@@ -4380,6 +4670,7 @@ var script = {
|
|
|
4380
4670
|
this.onEndKey(event, row, rowIndex, slotProps);
|
|
4381
4671
|
break;
|
|
4382
4672
|
case 'Enter':
|
|
4673
|
+
case 'NumpadEnter':
|
|
4383
4674
|
this.onEnterKey(event, rowData, rowIndex);
|
|
4384
4675
|
break;
|
|
4385
4676
|
case 'Space':
|
|
@@ -4630,40 +4921,21 @@ var script = {
|
|
|
4630
4921
|
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
4631
4922
|
}
|
|
4632
4923
|
},
|
|
4633
|
-
|
|
4634
|
-
if (
|
|
4635
|
-
this.
|
|
4636
|
-
var _iterator4 = _createForOfIteratorHelper(
|
|
4924
|
+
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4925
|
+
if (editingRows && editingRows.length) {
|
|
4926
|
+
this.d_editingRowKeys = {};
|
|
4927
|
+
var _iterator4 = _createForOfIteratorHelper(editingRows),
|
|
4637
4928
|
_step4;
|
|
4638
4929
|
try {
|
|
4639
4930
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4640
4931
|
var data = _step4.value;
|
|
4641
|
-
this.
|
|
4932
|
+
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4642
4933
|
}
|
|
4643
4934
|
} catch (err) {
|
|
4644
4935
|
_iterator4.e(err);
|
|
4645
4936
|
} finally {
|
|
4646
4937
|
_iterator4.f();
|
|
4647
4938
|
}
|
|
4648
|
-
} else {
|
|
4649
|
-
this.d_expandedRowKeys = null;
|
|
4650
|
-
}
|
|
4651
|
-
},
|
|
4652
|
-
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4653
|
-
if (editingRows && editingRows.length) {
|
|
4654
|
-
this.d_editingRowKeys = {};
|
|
4655
|
-
var _iterator5 = _createForOfIteratorHelper(editingRows),
|
|
4656
|
-
_step5;
|
|
4657
|
-
try {
|
|
4658
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4659
|
-
var data = _step5.value;
|
|
4660
|
-
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4661
|
-
}
|
|
4662
|
-
} catch (err) {
|
|
4663
|
-
_iterator5.e(err);
|
|
4664
|
-
} finally {
|
|
4665
|
-
_iterator5.f();
|
|
4666
|
-
}
|
|
4667
4939
|
} else {
|
|
4668
4940
|
this.d_editingRowKeys = null;
|
|
4669
4941
|
}
|
|
@@ -4701,7 +4973,7 @@ var script = {
|
|
|
4701
4973
|
this.$emit('update:selection', _selection);
|
|
4702
4974
|
},
|
|
4703
4975
|
exportCSV: function exportCSV(options, data) {
|
|
4704
|
-
var
|
|
4976
|
+
var _this6 = this;
|
|
4705
4977
|
var csv = "\uFEFF";
|
|
4706
4978
|
if (!data) {
|
|
4707
4979
|
data = this.processedData;
|
|
@@ -4723,16 +4995,16 @@ var script = {
|
|
|
4723
4995
|
data.forEach(function (record) {
|
|
4724
4996
|
csv += '\n';
|
|
4725
4997
|
var rowInitiated = false;
|
|
4726
|
-
for (var _i = 0; _i <
|
|
4727
|
-
var _column =
|
|
4728
|
-
if (
|
|
4729
|
-
if (rowInitiated) csv +=
|
|
4730
|
-
var cellData = ObjectUtils.resolveFieldData(record,
|
|
4998
|
+
for (var _i = 0; _i < _this6.columns.length; _i++) {
|
|
4999
|
+
var _column = _this6.columns[_i];
|
|
5000
|
+
if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
|
|
5001
|
+
if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
|
|
5002
|
+
var cellData = ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
|
|
4731
5003
|
if (cellData != null) {
|
|
4732
|
-
if (
|
|
4733
|
-
cellData =
|
|
5004
|
+
if (_this6.exportFunction) {
|
|
5005
|
+
cellData = _this6.exportFunction({
|
|
4734
5006
|
data: cellData,
|
|
4735
|
-
field:
|
|
5007
|
+
field: _this6.columnProp(_column, 'field')
|
|
4736
5008
|
});
|
|
4737
5009
|
} else cellData = String(cellData).replace(/"/g, '""');
|
|
4738
5010
|
} else cellData = '';
|
|
@@ -4835,19 +5107,19 @@ var script = {
|
|
|
4835
5107
|
this.styleElement.innerHTML = innerHTML;
|
|
4836
5108
|
},
|
|
4837
5109
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
4838
|
-
var
|
|
5110
|
+
var _this7 = this;
|
|
4839
5111
|
if (!this.documentColumnResizeListener) {
|
|
4840
5112
|
this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
|
|
4841
|
-
if (
|
|
4842
|
-
|
|
5113
|
+
if (_this7.columnResizing) {
|
|
5114
|
+
_this7.onColumnResize(event);
|
|
4843
5115
|
}
|
|
4844
5116
|
});
|
|
4845
5117
|
}
|
|
4846
5118
|
if (!this.documentColumnResizeEndListener) {
|
|
4847
5119
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
4848
|
-
if (
|
|
4849
|
-
|
|
4850
|
-
|
|
5120
|
+
if (_this7.columnResizing) {
|
|
5121
|
+
_this7.columnResizing = false;
|
|
5122
|
+
_this7.onColumnResizeEnd();
|
|
4851
5123
|
}
|
|
4852
5124
|
});
|
|
4853
5125
|
}
|
|
@@ -4869,23 +5141,28 @@ var script = {
|
|
|
4869
5141
|
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
|
|
4870
5142
|
}
|
|
4871
5143
|
},
|
|
4872
|
-
onColumnHeaderDragStart: function onColumnHeaderDragStart(
|
|
5144
|
+
onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
|
|
5145
|
+
var event = e.originalEvent,
|
|
5146
|
+
column = e.column;
|
|
4873
5147
|
if (this.columnResizing) {
|
|
4874
5148
|
event.preventDefault();
|
|
4875
5149
|
return;
|
|
4876
5150
|
}
|
|
4877
5151
|
this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
4878
5152
|
this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
4879
|
-
this.draggedColumn =
|
|
5153
|
+
this.draggedColumn = column;
|
|
5154
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
4880
5155
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
4881
5156
|
},
|
|
4882
|
-
onColumnHeaderDragOver: function onColumnHeaderDragOver(
|
|
5157
|
+
onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
|
|
5158
|
+
var event = e.originalEvent,
|
|
5159
|
+
column = e.column;
|
|
4883
5160
|
var dropHeader = this.findParentHeader(event.target);
|
|
4884
|
-
if (this.reorderableColumns && this.
|
|
5161
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
4885
5162
|
event.preventDefault();
|
|
4886
5163
|
var containerOffset = DomHandler.getOffset(this.$el);
|
|
4887
5164
|
var dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
4888
|
-
if (this.
|
|
5165
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
4889
5166
|
var targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4890
5167
|
var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4891
5168
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
@@ -4904,34 +5181,67 @@ var script = {
|
|
|
4904
5181
|
}
|
|
4905
5182
|
}
|
|
4906
5183
|
},
|
|
4907
|
-
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(
|
|
4908
|
-
|
|
5184
|
+
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
|
|
5185
|
+
var event = e.originalEvent;
|
|
5186
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
4909
5187
|
event.preventDefault();
|
|
4910
5188
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4911
5189
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4912
5190
|
}
|
|
4913
5191
|
},
|
|
4914
|
-
onColumnHeaderDrop: function onColumnHeaderDrop(
|
|
5192
|
+
onColumnHeaderDrop: function onColumnHeaderDrop(e) {
|
|
5193
|
+
var _this8 = this;
|
|
5194
|
+
var event = e.originalEvent,
|
|
5195
|
+
column = e.column;
|
|
4915
5196
|
event.preventDefault();
|
|
4916
|
-
if (this.
|
|
4917
|
-
var dragIndex = DomHandler.index(this.
|
|
5197
|
+
if (this.draggedColumnElement) {
|
|
5198
|
+
var dragIndex = DomHandler.index(this.draggedColumnElement);
|
|
4918
5199
|
var dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
|
4919
5200
|
var allowDrop = dragIndex !== dropIndex;
|
|
4920
5201
|
if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
|
|
4921
5202
|
allowDrop = false;
|
|
4922
5203
|
}
|
|
4923
5204
|
if (allowDrop) {
|
|
4924
|
-
|
|
5205
|
+
var isSameColumn = function isSameColumn(col1, col2) {
|
|
5206
|
+
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');
|
|
5207
|
+
};
|
|
5208
|
+
var dragColIndex = this.columns.findIndex(function (child) {
|
|
5209
|
+
return isSameColumn(child, _this8.draggedColumn);
|
|
5210
|
+
});
|
|
5211
|
+
var dropColIndex = this.columns.findIndex(function (child) {
|
|
5212
|
+
return isSameColumn(child, column);
|
|
5213
|
+
});
|
|
5214
|
+
var widths = [];
|
|
5215
|
+
var headers = DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
5216
|
+
headers.forEach(function (header) {
|
|
5217
|
+
return widths.push(DomHandler.getOuterWidth(header));
|
|
5218
|
+
});
|
|
5219
|
+
var movedItem = widths.find(function (_, index) {
|
|
5220
|
+
return index === dragColIndex;
|
|
5221
|
+
});
|
|
5222
|
+
var remainingItems = widths.filter(function (_, index) {
|
|
5223
|
+
return index !== dragColIndex;
|
|
5224
|
+
});
|
|
5225
|
+
var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
|
|
5226
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
5227
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
5228
|
+
dropColIndex++;
|
|
5229
|
+
}
|
|
5230
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
5231
|
+
dropColIndex--;
|
|
5232
|
+
}
|
|
5233
|
+
ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
4925
5234
|
this.updateReorderableColumns();
|
|
4926
5235
|
this.$emit('column-reorder', {
|
|
4927
5236
|
originalEvent: event,
|
|
4928
|
-
dragIndex:
|
|
4929
|
-
dropIndex:
|
|
5237
|
+
dragIndex: dragColIndex,
|
|
5238
|
+
dropIndex: dropColIndex
|
|
4930
5239
|
});
|
|
4931
5240
|
}
|
|
4932
5241
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4933
5242
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4934
|
-
this.
|
|
5243
|
+
this.draggedColumnElement.draggable = false;
|
|
5244
|
+
this.draggedColumnElement = null;
|
|
4935
5245
|
this.draggedColumn = null;
|
|
4936
5246
|
this.dropPosition = null;
|
|
4937
5247
|
}
|
|
@@ -5041,28 +5351,23 @@ var script = {
|
|
|
5041
5351
|
event.preventDefault();
|
|
5042
5352
|
},
|
|
5043
5353
|
toggleRow: function toggleRow(event) {
|
|
5354
|
+
var _this9 = this;
|
|
5355
|
+
var expanded = event.expanded,
|
|
5356
|
+
rest = _objectWithoutProperties(event, _excluded);
|
|
5044
5357
|
var rowData = event.data;
|
|
5045
|
-
var
|
|
5046
|
-
var expandedRowIndex;
|
|
5047
|
-
var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5358
|
+
var expandedRows;
|
|
5048
5359
|
if (this.dataKey) {
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
expanded = expandedRowIndex > -1;
|
|
5053
|
-
}
|
|
5054
|
-
if (expanded) {
|
|
5055
|
-
if (expandedRowIndex == null) {
|
|
5056
|
-
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
5057
|
-
}
|
|
5058
|
-
_expandedRows.splice(expandedRowIndex, 1);
|
|
5059
|
-
this.$emit('update:expandedRows', _expandedRows);
|
|
5060
|
-
this.$emit('row-collapse', event);
|
|
5360
|
+
var value = ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
5361
|
+
expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
|
|
5362
|
+
expanded ? expandedRows[value] = true : delete expandedRows[value];
|
|
5061
5363
|
} else {
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5364
|
+
expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5365
|
+
expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
|
|
5366
|
+
return !_this9.equals(rowData, d);
|
|
5367
|
+
});
|
|
5065
5368
|
}
|
|
5369
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
5370
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
5066
5371
|
},
|
|
5067
5372
|
toggleRowGroup: function toggleRowGroup(e) {
|
|
5068
5373
|
var event = e.originalEvent;
|
|
@@ -5132,7 +5437,6 @@ var script = {
|
|
|
5132
5437
|
}
|
|
5133
5438
|
if (this.expandedRows) {
|
|
5134
5439
|
state.expandedRows = this.expandedRows;
|
|
5135
|
-
state.expandedRowKeys = this.d_expandedRowKeys;
|
|
5136
5440
|
}
|
|
5137
5441
|
if (this.expandedRowGroups) {
|
|
5138
5442
|
state.expandedRowGroups = this.expandedRowGroups;
|
|
@@ -5180,7 +5484,6 @@ var script = {
|
|
|
5180
5484
|
this.d_columnOrder = restoredState.columnOrder;
|
|
5181
5485
|
}
|
|
5182
5486
|
if (restoredState.expandedRows) {
|
|
5183
|
-
this.d_expandedRowKeys = restoredState.expandedRowKeys;
|
|
5184
5487
|
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
5185
5488
|
}
|
|
5186
5489
|
if (restoredState.expandedRowGroups) {
|
|
@@ -5204,23 +5507,25 @@ var script = {
|
|
|
5204
5507
|
state.tableWidth = DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
5205
5508
|
}
|
|
5206
5509
|
},
|
|
5510
|
+
addColumnWidthStyles: function addColumnWidthStyles(widths) {
|
|
5511
|
+
this.createStyleElement();
|
|
5512
|
+
var innerHTML = '';
|
|
5513
|
+
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\"]");
|
|
5514
|
+
widths.forEach(function (width, index) {
|
|
5515
|
+
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5516
|
+
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 ");
|
|
5517
|
+
});
|
|
5518
|
+
this.styleElement.innerHTML = innerHTML;
|
|
5519
|
+
},
|
|
5207
5520
|
restoreColumnWidths: function restoreColumnWidths() {
|
|
5208
5521
|
if (this.columnWidthsState) {
|
|
5209
5522
|
var widths = this.columnWidthsState.split(',');
|
|
5210
5523
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
5211
5524
|
this.$refs.table.style.width = this.tableWidthState;
|
|
5212
5525
|
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
5213
|
-
this.$el.style.width = this.tableWidthState;
|
|
5214
5526
|
}
|
|
5215
5527
|
if (ObjectUtils.isNotEmpty(widths)) {
|
|
5216
|
-
this.
|
|
5217
|
-
var innerHTML = '';
|
|
5218
|
-
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\"]");
|
|
5219
|
-
widths.forEach(function (width, index) {
|
|
5220
|
-
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5221
|
-
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 ");
|
|
5222
|
-
});
|
|
5223
|
-
this.styleElement.innerHTML = innerHTML;
|
|
5528
|
+
this.addColumnWidthStyles(widths);
|
|
5224
5529
|
}
|
|
5225
5530
|
}
|
|
5226
5531
|
},
|
|
@@ -5291,9 +5596,6 @@ var script = {
|
|
|
5291
5596
|
hasGlobalFilter: function hasGlobalFilter() {
|
|
5292
5597
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
5293
5598
|
},
|
|
5294
|
-
getChildren: function getChildren() {
|
|
5295
|
-
return this.$slots["default"] ? this.$slots["default"]() : null;
|
|
5296
|
-
},
|
|
5297
5599
|
onFilterChange: function onFilterChange(filters) {
|
|
5298
5600
|
this.d_filters = filters;
|
|
5299
5601
|
},
|
|
@@ -5323,10 +5625,10 @@ var script = {
|
|
|
5323
5625
|
return cloned;
|
|
5324
5626
|
},
|
|
5325
5627
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5326
|
-
var
|
|
5628
|
+
var _this10 = this;
|
|
5327
5629
|
var columnOrder = [];
|
|
5328
5630
|
this.columns.forEach(function (col) {
|
|
5329
|
-
return columnOrder.push(
|
|
5631
|
+
return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
|
|
5330
5632
|
});
|
|
5331
5633
|
this.d_columnOrder = columnOrder;
|
|
5332
5634
|
},
|
|
@@ -5347,7 +5649,7 @@ var script = {
|
|
|
5347
5649
|
var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
5348
5650
|
var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
|
|
5349
5651
|
var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
5350
|
-
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
|
|
5652
|
+
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");
|
|
5351
5653
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
5352
5654
|
}
|
|
5353
5655
|
},
|
|
@@ -5363,22 +5665,6 @@ var script = {
|
|
|
5363
5665
|
this.styleElement = null;
|
|
5364
5666
|
}
|
|
5365
5667
|
},
|
|
5366
|
-
recursiveGetChildren: function recursiveGetChildren(children, results) {
|
|
5367
|
-
var _this7 = this;
|
|
5368
|
-
if (!results) {
|
|
5369
|
-
results = [];
|
|
5370
|
-
}
|
|
5371
|
-
if (children && children.length) {
|
|
5372
|
-
children.forEach(function (child) {
|
|
5373
|
-
if (child.children instanceof Array) {
|
|
5374
|
-
results.concat(_this7.recursiveGetChildren(child.children, results));
|
|
5375
|
-
} else if (child.type.name == 'Column') {
|
|
5376
|
-
results.push(child);
|
|
5377
|
-
}
|
|
5378
|
-
});
|
|
5379
|
-
}
|
|
5380
|
-
return results;
|
|
5381
|
-
},
|
|
5382
5668
|
dataToRender: function dataToRender(data) {
|
|
5383
5669
|
var _data = data || this.processedData;
|
|
5384
5670
|
if (_data && this.paginator) {
|
|
@@ -5396,27 +5682,23 @@ var script = {
|
|
|
5396
5682
|
},
|
|
5397
5683
|
computed: {
|
|
5398
5684
|
columns: function columns() {
|
|
5399
|
-
var
|
|
5400
|
-
if (!children) {
|
|
5401
|
-
return;
|
|
5402
|
-
}
|
|
5403
|
-
var cols = this.recursiveGetChildren(children, []);
|
|
5685
|
+
var cols = this.d_columns.get(this);
|
|
5404
5686
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5405
5687
|
var orderedColumns = [];
|
|
5406
|
-
var
|
|
5407
|
-
|
|
5688
|
+
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5689
|
+
_step5;
|
|
5408
5690
|
try {
|
|
5409
|
-
for (
|
|
5410
|
-
var columnKey =
|
|
5691
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
5692
|
+
var columnKey = _step5.value;
|
|
5411
5693
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5412
5694
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5413
5695
|
orderedColumns.push(column);
|
|
5414
5696
|
}
|
|
5415
5697
|
}
|
|
5416
5698
|
} catch (err) {
|
|
5417
|
-
|
|
5699
|
+
_iterator5.e(err);
|
|
5418
5700
|
} finally {
|
|
5419
|
-
|
|
5701
|
+
_iterator5.f();
|
|
5420
5702
|
}
|
|
5421
5703
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5422
5704
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5424,52 +5706,30 @@ var script = {
|
|
|
5424
5706
|
}
|
|
5425
5707
|
return cols;
|
|
5426
5708
|
},
|
|
5709
|
+
columnGroups: function columnGroups() {
|
|
5710
|
+
return this.d_columnGroups.get(this);
|
|
5711
|
+
},
|
|
5427
5712
|
headerColumnGroup: function headerColumnGroup() {
|
|
5428
|
-
var
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
5434
|
-
var child = _step7.value;
|
|
5435
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
5436
|
-
return child;
|
|
5437
|
-
}
|
|
5438
|
-
}
|
|
5439
|
-
} catch (err) {
|
|
5440
|
-
_iterator7.e(err);
|
|
5441
|
-
} finally {
|
|
5442
|
-
_iterator7.f();
|
|
5443
|
-
}
|
|
5444
|
-
}
|
|
5445
|
-
return null;
|
|
5713
|
+
var _this$columnGroups,
|
|
5714
|
+
_this11 = this;
|
|
5715
|
+
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5716
|
+
return _this11.columnProp(group, 'type') === 'header';
|
|
5717
|
+
});
|
|
5446
5718
|
},
|
|
5447
5719
|
footerColumnGroup: function footerColumnGroup() {
|
|
5448
|
-
var
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
5454
|
-
var child = _step8.value;
|
|
5455
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
5456
|
-
return child;
|
|
5457
|
-
}
|
|
5458
|
-
}
|
|
5459
|
-
} catch (err) {
|
|
5460
|
-
_iterator8.e(err);
|
|
5461
|
-
} finally {
|
|
5462
|
-
_iterator8.f();
|
|
5463
|
-
}
|
|
5464
|
-
}
|
|
5465
|
-
return null;
|
|
5720
|
+
var _this$columnGroups2,
|
|
5721
|
+
_this12 = this;
|
|
5722
|
+
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5723
|
+
return _this12.columnProp(group, 'type') === 'footer';
|
|
5724
|
+
});
|
|
5466
5725
|
},
|
|
5467
5726
|
hasFilters: function hasFilters() {
|
|
5468
5727
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
5469
5728
|
},
|
|
5470
5729
|
processedData: function processedData() {
|
|
5730
|
+
var _this$virtualScroller;
|
|
5471
5731
|
var data = this.value || [];
|
|
5472
|
-
if (!this.lazy) {
|
|
5732
|
+
if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
|
|
5473
5733
|
if (data && data.length) {
|
|
5474
5734
|
if (this.hasFilters) {
|
|
5475
5735
|
data = this.filter(data);
|
|
@@ -5503,14 +5763,14 @@ var script = {
|
|
|
5503
5763
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
5504
5764
|
},
|
|
5505
5765
|
allRowsSelected: function allRowsSelected() {
|
|
5506
|
-
var
|
|
5766
|
+
var _this13 = this;
|
|
5507
5767
|
if (this.selectAll !== null) {
|
|
5508
5768
|
return this.selectAll;
|
|
5509
5769
|
} else {
|
|
5510
5770
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
5511
5771
|
return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
5512
|
-
return
|
|
5513
|
-
return
|
|
5772
|
+
return _this13.selection.some(function (s) {
|
|
5773
|
+
return _this13.equals(s, v);
|
|
5514
5774
|
});
|
|
5515
5775
|
});
|
|
5516
5776
|
}
|
|
@@ -5541,8 +5801,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
5541
5801
|
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; }
|
|
5542
5802
|
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; }
|
|
5543
5803
|
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; }
|
|
5544
|
-
function _toPropertyKey(
|
|
5545
|
-
function _toPrimitive(
|
|
5804
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5805
|
+
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); }
|
|
5546
5806
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5547
5807
|
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
5548
5808
|
var _component_DTPaginator = resolveComponent("DTPaginator");
|
|
@@ -5750,7 +6010,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5750
6010
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5751
6011
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5752
6012
|
expandedRows: _ctx.expandedRows,
|
|
5753
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5754
6013
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5755
6014
|
editingRows: _ctx.editingRows,
|
|
5756
6015
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5816,7 +6075,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5816
6075
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5817
6076
|
unstyled: _ctx.unstyled,
|
|
5818
6077
|
pt: _ctx.pt
|
|
5819
|
-
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6078
|
+
}, 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"])) : createCommentVNode("", true), createVNode(_component_DTTableBody, {
|
|
5820
6079
|
ref: "bodyRef",
|
|
5821
6080
|
value: $options.dataToRender(slotProps.rows),
|
|
5822
6081
|
"class": normalizeClass(slotProps.styleClass),
|
|
@@ -5840,7 +6099,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5840
6099
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5841
6100
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5842
6101
|
expandedRows: _ctx.expandedRows,
|
|
5843
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5844
6102
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5845
6103
|
editingRows: _ctx.editingRows,
|
|
5846
6104
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5909,7 +6167,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5909
6167
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5910
6168
|
unstyled: _ctx.unstyled,
|
|
5911
6169
|
pt: _ctx.pt
|
|
5912
|
-
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6170
|
+
}, 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) ? (openBlock(), createElementBlock("tbody", mergeProps({
|
|
5913
6171
|
key: 1,
|
|
5914
6172
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
5915
6173
|
style: {
|