primevue 3.44.0 → 3.46.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.vue +1 -0
- package/accordion/accordion.cjs.js +1 -0
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +1 -0
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +1 -0
- package/accordion/accordion.min.js +1 -1
- package/autocomplete/BaseAutoComplete.vue +1 -1
- package/autocomplete/autocomplete.cjs.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/basecomponent/BaseComponent.vue +1 -1
- package/basecomponent/basecomponent.cjs.js +2 -2
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +2 -2
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +2 -2
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.js +1 -1
- package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.js +1 -1
- package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
- package/basecomponent/style/basecomponentstyle.js +1 -1
- package/basecomponent/style/basecomponentstyle.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/calendar/BaseCalendar.vue +1 -1
- package/calendar/Calendar.vue +5 -2
- package/calendar/calendar.cjs.js +6 -3
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +6 -3
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +6 -3
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +4 -0
- package/card/Card.vue +7 -5
- package/card/card.cjs.js +6 -3
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +6 -3
- package/card/card.esm.min.js +1 -1
- package/card/card.js +6 -3
- package/card/card.min.js +1 -1
- package/card/style/cardstyle.cjs.js +1 -0
- package/card/style/cardstyle.cjs.min.js +1 -1
- package/card/style/cardstyle.esm.js +1 -0
- package/card/style/cardstyle.esm.min.js +1 -1
- package/card/style/cardstyle.js +1 -0
- package/card/style/cardstyle.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +1 -1
- package/cascadeselect/CascadeSelect.d.ts +41 -0
- package/cascadeselect/CascadeSelect.vue +1 -0
- package/cascadeselect/CascadeSelectSub.vue +18 -5
- package/cascadeselect/cascadeselect.cjs.js +20 -6
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +20 -6
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +20 -6
- 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/chips/Chips.vue +1 -0
- package/chips/chips.cjs.js +1 -0
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -0
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -0
- package/chips/chips.min.js +1 -1
- package/colorpicker/BaseColorPicker.vue +1 -1
- package/colorpicker/ColorPicker.d.ts +1 -1
- package/colorpicker/colorpicker.cjs.js +1 -1
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +1 -1
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +1 -1
- package/colorpicker/colorpicker.min.js +1 -1
- 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.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/confirmdialog/ConfirmDialog.d.ts +1 -1
- package/confirmdialog/ConfirmDialog.vue +1 -1
- package/confirmdialog/confirmdialog.cjs.js +1 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +1 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.cjs.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.cjs.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.esm.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.esm.min.js +1 -1
- package/confirmdialog/style/confirmdialogstyle.js +3 -6
- package/confirmdialog/style/confirmdialogstyle.min.js +1 -1
- package/confirmpopup/ConfirmPopup.vue +3 -3
- package/confirmpopup/confirmpopup.cjs.js +3 -3
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +3 -3
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +3 -3
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.cjs.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.esm.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
- package/confirmpopup/style/confirmpopupstyle.js +5 -8
- package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +1 -1
- package/contextmenu/ContextMenu.vue +1 -0
- package/contextmenu/ContextMenuSub.vue +6 -1
- package/contextmenu/contextmenu.cjs.js +12 -5
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +12 -5
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +12 -5
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +357 -209
- package/core/core.min.js +53 -53
- package/datatable/BaseDataTable.vue +2 -2
- package/datatable/BodyRow.vue +582 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/DataTable.vue +111 -132
- package/datatable/HeaderCell.vue +10 -7
- package/datatable/TableBody.vue +74 -414
- package/datatable/TableFooter.vue +19 -26
- package/datatable/TableHeader.vue +19 -26
- package/datatable/datatable.cjs.js +895 -634
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +896 -635
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +895 -634
- 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/dialog/BaseDialog.vue +1 -1
- package/dialog/dialog.cjs.js +1 -1
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +1 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +1 -1
- 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/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/BaseDropdown.vue +1 -1
- package/dropdown/Dropdown.vue +26 -0
- package/dropdown/dropdown.cjs.js +50 -26
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +50 -26
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +50 -26
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/fieldset.cjs.js +1 -1
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +1 -1
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/galleria/GalleriaItem.vue +1 -0
- package/galleria/GalleriaThumbnails.vue +1 -1
- package/galleria/galleria.cjs.js +2 -1
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +2 -1
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +2 -1
- package/galleria/galleria.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +2 -2
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +2 -2
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +2 -2
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +1 -1
- package/icons/arrowup/index.cjs.js +2 -2
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +2 -2
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +2 -2
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +1 -1
- package/icons/ban/index.cjs.js +2 -2
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +2 -2
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +2 -2
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +1 -1
- package/icons/exclamationtriangle/index.cjs.js +2 -2
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +2 -2
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +2 -2
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +1 -1
- package/icons/eyeslash/index.cjs.js +2 -2
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +2 -2
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +2 -2
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +1 -1
- package/icons/filter/index.cjs.js +2 -2
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +2 -2
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +2 -2
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +1 -1
- package/icons/filterslash/index.cjs.js +2 -2
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +2 -2
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +2 -2
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +1 -1
- package/icons/infocircle/index.cjs.js +2 -2
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +2 -2
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +2 -2
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +1 -1
- package/icons/pencil/index.cjs.js +2 -2
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +2 -2
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +2 -2
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +1 -1
- package/icons/plus/index.cjs.js +2 -2
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +2 -2
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +2 -2
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +1 -1
- package/icons/refresh/index.cjs.js +2 -2
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +2 -2
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +2 -2
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +1 -1
- package/icons/search/index.cjs.js +2 -2
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +2 -2
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +2 -2
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +1 -1
- package/icons/searchminus/index.cjs.js +2 -2
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +2 -2
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +2 -2
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +1 -1
- package/icons/searchplus/index.cjs.js +2 -2
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +2 -2
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +2 -2
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +1 -1
- package/icons/sortalt/index.cjs.js +2 -2
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +2 -2
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +2 -2
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +1 -1
- package/icons/sortamountdown/index.cjs.js +12 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +13 -10
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +12 -9
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +2 -22
- package/icons/sortamountupalt/index.cjs.js +12 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +13 -10
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +12 -9
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +2 -22
- package/icons/spinner/index.cjs.js +2 -2
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +2 -2
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +2 -2
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +1 -1
- package/icons/star/index.cjs.js +2 -2
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +2 -2
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +2 -2
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +1 -1
- package/icons/starfill/index.cjs.js +2 -2
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +2 -2
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +2 -2
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +1 -1
- package/icons/thlarge/index.cjs.js +2 -2
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +2 -2
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +2 -2
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +1 -1
- package/icons/timescircle/index.cjs.js +2 -2
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +2 -2
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +2 -2
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +1 -1
- package/icons/trash/index.cjs.js +2 -2
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +2 -2
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +2 -2
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +1 -1
- package/icons/undo/index.cjs.js +2 -2
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +2 -2
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +2 -2
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +1 -1
- package/icons/upload/index.cjs.js +2 -2
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +2 -2
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +2 -2
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +1 -1
- package/icons/windowmaximize/index.cjs.js +2 -2
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +2 -2
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +2 -2
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +1 -1
- package/icons/windowminimize/index.cjs.js +2 -2
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +2 -2
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +2 -2
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +1 -1
- package/image/Image.vue +2 -6
- package/image/image.cjs.js +2 -5
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +2 -5
- package/image/image.esm.min.js +1 -1
- package/image/image.js +2 -5
- 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/inputnumber/BaseInputNumber.vue +7 -0
- package/inputnumber/InputNumber.d.ts +7 -0
- package/inputnumber/InputNumber.vue +8 -3
- package/inputnumber/inputnumber.cjs.js +16 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +16 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +16 -3
- package/inputnumber/inputnumber.min.js +1 -1
- 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 +1 -1
- package/listbox/Listbox.vue +2 -0
- package/listbox/listbox.cjs.js +3 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +3 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +3 -1
- package/listbox/listbox.min.js +1 -1
- 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/BaseMenu.vue +1 -1
- package/menu/Menu.vue +1 -0
- package/menu/menu.cjs.js +2 -1
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +2 -1
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +2 -1
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +4 -2
- package/menubar/MenubarSub.vue +5 -1
- package/menubar/menubar.cjs.js +12 -5
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +12 -5
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +12 -5
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +0 -6
- 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/BaseMultiSelect.vue +1 -1
- package/multiselect/MultiSelect.vue +2 -0
- package/multiselect/multiselect.cjs.js +3 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +3 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +3 -1
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +1 -1
- package/orderlist/OrderList.d.ts +1 -1
- package/orderlist/OrderList.vue +1 -0
- package/orderlist/orderlist.cjs.js +2 -1
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +2 -1
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +2 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/organizationchart.cjs.js +1 -1
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +1 -1
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +1 -1
- package/overlaypanel/overlaypanel.cjs.js +1 -1
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +1 -1
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- 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/panel/Panel.vue +1 -1
- package/panel/panel.cjs.js +1 -1
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +1 -1
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.vue +1 -0
- package/panelmenu/PanelMenuList.vue +1 -0
- package/panelmenu/panelmenu.cjs.js +2 -0
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +2 -0
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +2 -0
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/BasePassword.vue +1 -1
- package/password/password.cjs.js +1 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +1 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +1 -1
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +1 -1
- package/picklist/PickList.d.ts +1 -1
- package/picklist/PickList.vue +2 -1
- package/picklist/picklist.cjs.js +3 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +3 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +3 -2
- 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/portal/Portal.vue +1 -1
- package/portal/portal.cjs.js +1 -1
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +1 -1
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +1 -1
- package/portal/portal.min.js +1 -1
- 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.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/sidebar/Sidebar.vue +16 -1
- package/sidebar/sidebar.cjs.js +17 -5
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +17 -5
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +17 -5
- package/sidebar/sidebar.min.js +1 -1
- 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.vue +1 -0
- package/speeddial/speeddial.cjs.js +1 -0
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -0
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -0
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/BaseSplitButton.vue +1 -1
- package/splitbutton/splitbutton.cjs.js +1 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +1 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +1 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/steps/Steps.vue +3 -1
- package/steps/steps.cjs.js +4 -2
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +4 -2
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +4 -2
- package/steps/steps.min.js +1 -1
- 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/tabview/TabView.vue +1 -0
- package/tabview/tabview.cjs.js +1 -0
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +1 -0
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +1 -0
- package/tabview/tabview.min.js +1 -1
- 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/tieredmenu/BaseTieredMenu.vue +1 -1
- package/tieredmenu/TieredMenu.d.ts +4 -0
- package/tieredmenu/TieredMenu.vue +1 -0
- package/tieredmenu/TieredMenuSub.vue +5 -1
- package/tieredmenu/tieredmenu.cjs.js +11 -4
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +11 -4
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +11 -4
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
- package/tooltip/style/tooltipstyle.esm.js +1 -1
- package/tooltip/style/tooltipstyle.esm.min.js +1 -1
- package/tooltip/style/tooltipstyle.js +1 -1
- package/tooltip/style/tooltipstyle.min.js +1 -1
- 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 +3 -2
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +3 -2
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +3 -2
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +2 -2
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treeselect/TreeSelect.vue +1 -4
- package/treeselect/treeselect.cjs.js +3 -6
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +3 -6
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +3 -6
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +5 -1
- package/treetable/HeaderCell.vue +1 -1
- package/treetable/TreeTable.d.ts +6 -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 +70 -43
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +71 -44
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +70 -43
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.vue +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/Utils.d.ts +9 -0
- package/utils/utils.cjs.js +142 -41
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +142 -42
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +142 -41
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/virtualscroller/VirtualScroller.vue +19 -15
- 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 +19 -15
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +19 -15
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +19 -15
- 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,
|
|
@@ -389,7 +389,7 @@ var script$a = {
|
|
|
389
389
|
};
|
|
390
390
|
|
|
391
391
|
var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
|
|
392
|
-
function render$
|
|
392
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
393
393
|
var _component_CheckIcon = resolveComponent("CheckIcon");
|
|
394
394
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
395
395
|
"class": _ctx.cx('checkboxWrapper'),
|
|
@@ -429,9 +429,9 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
429
429
|
}, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 16)], 16);
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
script$
|
|
432
|
+
script$b.render = render$b;
|
|
433
433
|
|
|
434
|
-
var script$
|
|
434
|
+
var script$a = {
|
|
435
435
|
name: 'RowRadioButton',
|
|
436
436
|
hostName: 'DataTable',
|
|
437
437
|
"extends": BaseComponent,
|
|
@@ -496,7 +496,7 @@ var script$9 = {
|
|
|
496
496
|
};
|
|
497
497
|
|
|
498
498
|
var _hoisted_1$6 = ["checked", "disabled", "name"];
|
|
499
|
-
function render$
|
|
499
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
500
500
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
501
501
|
"class": _ctx.cx('radiobuttonWrapper'),
|
|
502
502
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
@@ -530,9 +530,9 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
530
530
|
}, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
script$
|
|
533
|
+
script$a.render = render$a;
|
|
534
534
|
|
|
535
|
-
var script$
|
|
535
|
+
var script$9 = {
|
|
536
536
|
name: 'BodyCell',
|
|
537
537
|
hostName: 'DataTable',
|
|
538
538
|
"extends": BaseComponent,
|
|
@@ -984,8 +984,8 @@ var script$8 = {
|
|
|
984
984
|
}
|
|
985
985
|
},
|
|
986
986
|
components: {
|
|
987
|
-
DTRadioButton: script$
|
|
988
|
-
DTCheckbox: script$
|
|
987
|
+
DTRadioButton: script$a,
|
|
988
|
+
DTCheckbox: script$b,
|
|
989
989
|
ChevronDownIcon: ChevronDownIcon,
|
|
990
990
|
ChevronRightIcon: ChevronRightIcon,
|
|
991
991
|
BarsIcon: BarsIcon,
|
|
@@ -998,18 +998,18 @@ var script$8 = {
|
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
1000
|
|
|
1001
|
-
function _typeof$
|
|
1002
|
-
function ownKeys$
|
|
1003
|
-
function _objectSpread$
|
|
1004
|
-
function _defineProperty$
|
|
1005
|
-
function _toPropertyKey$
|
|
1006
|
-
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); }
|
|
1007
1007
|
var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1008
1008
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1009
1009
|
var _hoisted_3$2 = ["aria-label"];
|
|
1010
1010
|
var _hoisted_4$1 = ["aria-label"];
|
|
1011
1011
|
var _hoisted_5$1 = ["aria-label"];
|
|
1012
|
-
function render$
|
|
1012
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1013
1013
|
var _component_DTRadioButton = resolveComponent("DTRadioButton");
|
|
1014
1014
|
var _component_DTCheckbox = resolveComponent("DTCheckbox");
|
|
1015
1015
|
var _component_BarsIcon = resolveComponent("BarsIcon");
|
|
@@ -1021,7 +1021,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1021
1021
|
style: $options.containerStyle,
|
|
1022
1022
|
"class": $options.containerClass,
|
|
1023
1023
|
role: "cell"
|
|
1024
|
-
}, _objectSpread$
|
|
1024
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.column.children.loading), {
|
|
1025
1025
|
data: $props.rowData,
|
|
1026
1026
|
column: $props.column,
|
|
1027
1027
|
field: $options.field,
|
|
@@ -1041,7 +1041,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1041
1041
|
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1042
1042
|
}),
|
|
1043
1043
|
role: "cell"
|
|
1044
|
-
}, _objectSpread$
|
|
1044
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
|
|
1045
1045
|
"data-p-selection-column": $options.columnProp('selectionMode') != null,
|
|
1046
1046
|
"data-p-editable-column": $options.isEditable(),
|
|
1047
1047
|
"data-p-cell-editing": $data.d_editing,
|
|
@@ -1184,14 +1184,28 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1184
1184
|
}, [createTextVNode(toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
script$
|
|
1187
|
+
script$9.render = render$9;
|
|
1188
1188
|
|
|
1189
|
-
|
|
1190
|
-
|
|
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',
|
|
1191
1197
|
hostName: 'DataTable',
|
|
1192
1198
|
"extends": BaseComponent,
|
|
1193
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'],
|
|
1194
1200
|
props: {
|
|
1201
|
+
rowData: {
|
|
1202
|
+
type: Object,
|
|
1203
|
+
"default": null
|
|
1204
|
+
},
|
|
1205
|
+
index: {
|
|
1206
|
+
type: Number,
|
|
1207
|
+
"default": 0
|
|
1208
|
+
},
|
|
1195
1209
|
value: {
|
|
1196
1210
|
type: Array,
|
|
1197
1211
|
"default": null
|
|
@@ -1241,11 +1255,7 @@ var script$7 = {
|
|
|
1241
1255
|
"default": null
|
|
1242
1256
|
},
|
|
1243
1257
|
expandedRows: {
|
|
1244
|
-
type: Array,
|
|
1245
|
-
"default": null
|
|
1246
|
-
},
|
|
1247
|
-
expandedRowKeys: {
|
|
1248
|
-
type: null,
|
|
1258
|
+
type: [Array, Object],
|
|
1249
1259
|
"default": null
|
|
1250
1260
|
},
|
|
1251
1261
|
selection: {
|
|
@@ -1276,6 +1286,10 @@ var script$7 = {
|
|
|
1276
1286
|
type: null,
|
|
1277
1287
|
"default": null
|
|
1278
1288
|
},
|
|
1289
|
+
rowGroupHeaderStyle: {
|
|
1290
|
+
type: null,
|
|
1291
|
+
"default": null
|
|
1292
|
+
},
|
|
1279
1293
|
editMode: {
|
|
1280
1294
|
type: String,
|
|
1281
1295
|
"default": null
|
|
@@ -1315,35 +1329,34 @@ var script$7 = {
|
|
|
1315
1329
|
isVirtualScrollerDisabled: {
|
|
1316
1330
|
type: Boolean,
|
|
1317
1331
|
"default": false
|
|
1332
|
+
},
|
|
1333
|
+
expandedRowId: {
|
|
1334
|
+
type: String,
|
|
1335
|
+
"default": null
|
|
1336
|
+
},
|
|
1337
|
+
nameAttributeSelector: {
|
|
1338
|
+
type: String,
|
|
1339
|
+
"default": null
|
|
1318
1340
|
}
|
|
1319
1341
|
},
|
|
1320
1342
|
data: function data() {
|
|
1321
1343
|
return {
|
|
1322
|
-
|
|
1323
|
-
tabindexArray: [],
|
|
1324
|
-
isARowSelected: false
|
|
1344
|
+
d_rowExpanded: false
|
|
1325
1345
|
};
|
|
1326
1346
|
},
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
this
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
}
|
|
1334
|
-
},
|
|
1335
|
-
updated: function updated() {
|
|
1336
|
-
if (this.frozenRow) {
|
|
1337
|
-
this.updateFrozenRowStickyPosition();
|
|
1338
|
-
}
|
|
1339
|
-
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1340
|
-
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
|
+
});
|
|
1341
1353
|
}
|
|
1342
1354
|
},
|
|
1343
1355
|
methods: {
|
|
1344
1356
|
columnProp: function columnProp(col, prop) {
|
|
1345
1357
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
1346
1358
|
},
|
|
1359
|
+
//@todo - update this method
|
|
1347
1360
|
getColumnPT: function getColumnPT(key) {
|
|
1348
1361
|
var columnMetaData = {
|
|
1349
1362
|
parent: {
|
|
@@ -1354,80 +1367,33 @@ var script$7 = {
|
|
|
1354
1367
|
};
|
|
1355
1368
|
return mergeProps(this.ptm("column.".concat(key), {
|
|
1356
1369
|
column: columnMetaData
|
|
1357
|
-
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.
|
|
1358
|
-
},
|
|
1359
|
-
getColumnProp: function getColumnProp(column) {
|
|
1360
|
-
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));
|
|
1361
1371
|
},
|
|
1362
|
-
|
|
1363
|
-
|
|
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 ? void 0 : _this$$parentInstance.$parentInstance;
|
|
1364
1376
|
return this.ptm(key, {
|
|
1365
1377
|
context: {
|
|
1366
|
-
index:
|
|
1367
|
-
selectable: (
|
|
1368
|
-
selected: this.isSelected
|
|
1369
|
-
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
|
|
1370
1382
|
}
|
|
1371
1383
|
});
|
|
1372
1384
|
},
|
|
1373
|
-
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1378
|
-
return currentRowFieldData !== previousRowFieldData;
|
|
1379
|
-
} else {
|
|
1380
|
-
return true;
|
|
1381
|
-
}
|
|
1382
|
-
},
|
|
1383
|
-
getRowKey: function getRowKey(rowData, index) {
|
|
1384
|
-
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
|
|
1385
|
-
},
|
|
1386
|
-
getRowIndex: function getRowIndex(index) {
|
|
1387
|
-
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1388
|
-
return getItemOptions ? getItemOptions(index).index : index;
|
|
1389
|
-
},
|
|
1390
|
-
getRowStyle: function getRowStyle(rowData) {
|
|
1391
|
-
if (this.rowStyle) {
|
|
1392
|
-
return this.rowStyle(rowData);
|
|
1393
|
-
}
|
|
1394
|
-
},
|
|
1395
|
-
getRowClass: function getRowClass(rowData) {
|
|
1396
|
-
var rowStyleClass = [];
|
|
1397
|
-
if (this.rowClass) {
|
|
1398
|
-
var rowClassValue = this.rowClass(rowData);
|
|
1399
|
-
if (rowClassValue) {
|
|
1400
|
-
rowStyleClass.push(rowClassValue);
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
return [this.cx('row', {
|
|
1404
|
-
rowData: rowData
|
|
1405
|
-
}), rowStyleClass];
|
|
1406
|
-
},
|
|
1407
|
-
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
|
|
1408
|
-
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
1409
|
-
return false;
|
|
1410
|
-
} else {
|
|
1411
|
-
var currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1412
|
-
var nextRowData = value[i + 1];
|
|
1413
|
-
if (nextRowData) {
|
|
1414
|
-
var nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1415
|
-
return currentRowFieldData !== nextRowFieldData;
|
|
1416
|
-
} else {
|
|
1417
|
-
return true;
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
},
|
|
1421
|
-
shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
|
|
1422
|
-
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');
|
|
1423
1389
|
if (this.rowGroupMode === 'subheader') {
|
|
1424
|
-
return this.groupRowsBy !==
|
|
1390
|
+
return this.groupRowsBy !== field;
|
|
1425
1391
|
} else if (this.rowGroupMode === 'rowspan') {
|
|
1426
1392
|
if (this.isGrouped(column)) {
|
|
1427
|
-
var prevRowData = value[
|
|
1393
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1428
1394
|
if (prevRowData) {
|
|
1429
|
-
var currentRowFieldData = ObjectUtils.resolveFieldData(value[
|
|
1430
|
-
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData,
|
|
1395
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
|
|
1396
|
+
var previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, field);
|
|
1431
1397
|
return currentRowFieldData !== previousRowFieldData;
|
|
1432
1398
|
} else {
|
|
1433
1399
|
return true;
|
|
@@ -1437,19 +1403,21 @@ var script$7 = {
|
|
|
1437
1403
|
}
|
|
1438
1404
|
}
|
|
1439
1405
|
} else {
|
|
1440
|
-
return !
|
|
1406
|
+
return !isHidden;
|
|
1441
1407
|
}
|
|
1442
1408
|
},
|
|
1443
|
-
calculateRowGroupSize: function calculateRowGroupSize(
|
|
1409
|
+
calculateRowGroupSize: function calculateRowGroupSize(column) {
|
|
1444
1410
|
if (this.isGrouped(column)) {
|
|
1445
|
-
var
|
|
1411
|
+
var index = this.rowIndex;
|
|
1412
|
+
var field = this.columnProp(column, 'field');
|
|
1413
|
+
var currentRowFieldData = ObjectUtils.resolveFieldData(this.value[index], field);
|
|
1446
1414
|
var nextRowFieldData = currentRowFieldData;
|
|
1447
1415
|
var groupRowSpan = 0;
|
|
1448
1416
|
while (currentRowFieldData === nextRowFieldData) {
|
|
1449
1417
|
groupRowSpan++;
|
|
1450
|
-
var nextRowData = value[++index];
|
|
1418
|
+
var nextRowData = this.value[++index];
|
|
1451
1419
|
if (nextRowData) {
|
|
1452
|
-
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData,
|
|
1420
|
+
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, field);
|
|
1453
1421
|
} else {
|
|
1454
1422
|
break;
|
|
1455
1423
|
}
|
|
@@ -1460,55 +1428,21 @@ var script$7 = {
|
|
|
1460
1428
|
}
|
|
1461
1429
|
},
|
|
1462
1430
|
isGrouped: function isGrouped(column) {
|
|
1463
|
-
|
|
1464
|
-
|
|
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;
|
|
1465
1434
|
} else {
|
|
1466
1435
|
return false;
|
|
1467
1436
|
}
|
|
1468
1437
|
},
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
|
|
1472
|
-
}
|
|
1473
|
-
return false;
|
|
1438
|
+
findIndexInSelection: function findIndexInSelection(data) {
|
|
1439
|
+
return this.findIndex(data, this.selection);
|
|
1474
1440
|
},
|
|
1475
|
-
|
|
1476
|
-
if (rowData && this.expandedRows) {
|
|
1477
|
-
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
1478
|
-
}
|
|
1479
|
-
return false;
|
|
1480
|
-
},
|
|
1481
|
-
isRowGroupExpanded: function isRowGroupExpanded(rowData) {
|
|
1482
|
-
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1483
|
-
var groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1484
|
-
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1485
|
-
}
|
|
1486
|
-
return false;
|
|
1487
|
-
},
|
|
1488
|
-
isSelected: function isSelected(rowData) {
|
|
1489
|
-
if (rowData && this.selection) {
|
|
1490
|
-
if (this.dataKey) {
|
|
1491
|
-
return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
1492
|
-
} else {
|
|
1493
|
-
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
return false;
|
|
1497
|
-
},
|
|
1498
|
-
isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
|
|
1499
|
-
if (rowData && this.contextMenuSelection) {
|
|
1500
|
-
return this.equals(rowData, this.contextMenuSelection, this.dataKey);
|
|
1501
|
-
}
|
|
1502
|
-
return false;
|
|
1503
|
-
},
|
|
1504
|
-
findIndexInSelection: function findIndexInSelection(rowData) {
|
|
1505
|
-
return this.findIndex(rowData, this.selection);
|
|
1506
|
-
},
|
|
1507
|
-
findIndex: function findIndex(rowData, collection) {
|
|
1441
|
+
findIndex: function findIndex(data, collection) {
|
|
1508
1442
|
var index = -1;
|
|
1509
1443
|
if (collection && collection.length) {
|
|
1510
1444
|
for (var i = 0; i < collection.length; i++) {
|
|
1511
|
-
if (this.equals(
|
|
1445
|
+
if (this.equals(data, collection[i])) {
|
|
1512
1446
|
index = i;
|
|
1513
1447
|
break;
|
|
1514
1448
|
}
|
|
@@ -1519,56 +1453,56 @@ var script$7 = {
|
|
|
1519
1453
|
equals: function equals(data1, data2) {
|
|
1520
1454
|
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
1521
1455
|
},
|
|
1522
|
-
onRowGroupToggle: function onRowGroupToggle(event
|
|
1456
|
+
onRowGroupToggle: function onRowGroupToggle(event) {
|
|
1523
1457
|
this.$emit('rowgroup-toggle', {
|
|
1524
1458
|
originalEvent: event,
|
|
1525
|
-
data:
|
|
1459
|
+
data: this.rowData
|
|
1526
1460
|
});
|
|
1527
1461
|
},
|
|
1528
|
-
onRowClick: function onRowClick(event
|
|
1462
|
+
onRowClick: function onRowClick(event) {
|
|
1529
1463
|
this.$emit('row-click', {
|
|
1530
1464
|
originalEvent: event,
|
|
1531
|
-
data: rowData,
|
|
1532
|
-
index: rowIndex
|
|
1465
|
+
data: this.rowData,
|
|
1466
|
+
index: this.rowIndex
|
|
1533
1467
|
});
|
|
1534
1468
|
},
|
|
1535
|
-
onRowDblClick: function onRowDblClick(event
|
|
1469
|
+
onRowDblClick: function onRowDblClick(event) {
|
|
1536
1470
|
this.$emit('row-dblclick', {
|
|
1537
1471
|
originalEvent: event,
|
|
1538
|
-
data: rowData,
|
|
1539
|
-
index: rowIndex
|
|
1472
|
+
data: this.rowData,
|
|
1473
|
+
index: this.rowIndex
|
|
1540
1474
|
});
|
|
1541
1475
|
},
|
|
1542
|
-
onRowRightClick: function onRowRightClick(event
|
|
1476
|
+
onRowRightClick: function onRowRightClick(event) {
|
|
1543
1477
|
this.$emit('row-rightclick', {
|
|
1544
1478
|
originalEvent: event,
|
|
1545
|
-
data: rowData,
|
|
1546
|
-
index: rowIndex
|
|
1479
|
+
data: this.rowData,
|
|
1480
|
+
index: this.rowIndex
|
|
1547
1481
|
});
|
|
1548
1482
|
},
|
|
1549
1483
|
onRowTouchEnd: function onRowTouchEnd(event) {
|
|
1550
1484
|
this.$emit('row-touchend', event);
|
|
1551
1485
|
},
|
|
1552
|
-
onRowKeyDown: function onRowKeyDown(event
|
|
1486
|
+
onRowKeyDown: function onRowKeyDown(event) {
|
|
1553
1487
|
this.$emit('row-keydown', {
|
|
1554
1488
|
originalEvent: event,
|
|
1555
|
-
data: rowData,
|
|
1556
|
-
index: rowIndex
|
|
1489
|
+
data: this.rowData,
|
|
1490
|
+
index: this.rowIndex
|
|
1557
1491
|
});
|
|
1558
1492
|
},
|
|
1559
1493
|
onRowMouseDown: function onRowMouseDown(event) {
|
|
1560
1494
|
this.$emit('row-mousedown', event);
|
|
1561
1495
|
},
|
|
1562
|
-
onRowDragStart: function onRowDragStart(event
|
|
1496
|
+
onRowDragStart: function onRowDragStart(event) {
|
|
1563
1497
|
this.$emit('row-dragstart', {
|
|
1564
1498
|
originalEvent: event,
|
|
1565
|
-
index: rowIndex
|
|
1499
|
+
index: this.rowIndex
|
|
1566
1500
|
});
|
|
1567
1501
|
},
|
|
1568
|
-
onRowDragOver: function onRowDragOver(event
|
|
1502
|
+
onRowDragOver: function onRowDragOver(event) {
|
|
1569
1503
|
this.$emit('row-dragover', {
|
|
1570
1504
|
originalEvent: event,
|
|
1571
|
-
index: rowIndex
|
|
1505
|
+
index: this.rowIndex
|
|
1572
1506
|
});
|
|
1573
1507
|
},
|
|
1574
1508
|
onRowDragLeave: function onRowDragLeave(event) {
|
|
@@ -1581,7 +1515,10 @@ var script$7 = {
|
|
|
1581
1515
|
this.$emit('row-drop', event);
|
|
1582
1516
|
},
|
|
1583
1517
|
onRowToggle: function onRowToggle(event) {
|
|
1584
|
-
this
|
|
1518
|
+
this.d_rowExpanded = !this.d_rowExpanded;
|
|
1519
|
+
this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
|
|
1520
|
+
expanded: this.d_rowExpanded
|
|
1521
|
+
}));
|
|
1585
1522
|
},
|
|
1586
1523
|
onRadioChange: function onRadioChange(event) {
|
|
1587
1524
|
this.$emit('radio-change', event);
|
|
@@ -1610,6 +1547,423 @@ var script$7 = {
|
|
|
1610
1547
|
onEditingMetaChange: function onEditingMetaChange(event) {
|
|
1611
1548
|
this.$emit('editing-meta-change', event);
|
|
1612
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
|
+
if (this.columns) {
|
|
1639
|
+
var hiddenColLength = 0;
|
|
1640
|
+
this.columns.forEach(function (column) {
|
|
1641
|
+
if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1642
|
+
if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1643
|
+
});
|
|
1644
|
+
return this.columns.length - hiddenColLength;
|
|
1645
|
+
}
|
|
1646
|
+
return 0;
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
components: {
|
|
1650
|
+
DTBodyCell: script$9,
|
|
1651
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
1652
|
+
ChevronRightIcon: ChevronRightIcon
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
|
|
1657
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1658
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1659
|
+
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1660
|
+
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1661
|
+
function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1662
|
+
var _hoisted_1$4 = ["colspan"];
|
|
1663
|
+
var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1664
|
+
var _hoisted_3$1 = ["id"];
|
|
1665
|
+
var _hoisted_4 = ["colspan"];
|
|
1666
|
+
var _hoisted_5 = ["colspan"];
|
|
1667
|
+
var _hoisted_6 = ["colspan"];
|
|
1668
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1669
|
+
var _component_ChevronDownIcon = resolveComponent("ChevronDownIcon");
|
|
1670
|
+
var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
|
|
1671
|
+
var _component_DTBodyCell = resolveComponent("DTBodyCell");
|
|
1672
|
+
return !$props.empty ? (openBlock(), createElementBlock(Fragment, {
|
|
1673
|
+
key: 0
|
|
1674
|
+
}, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1675
|
+
key: 0,
|
|
1676
|
+
"class": _ctx.cx('rowGroupHeader'),
|
|
1677
|
+
style: $props.rowGroupHeaderStyle,
|
|
1678
|
+
role: "row"
|
|
1679
|
+
}, _ctx.ptm('rowGroupHeader')), [createElementVNode("td", mergeProps({
|
|
1680
|
+
colspan: $options.columnsLength - 1
|
|
1681
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (openBlock(), createElementBlock("button", mergeProps({
|
|
1682
|
+
key: 0,
|
|
1683
|
+
"class": _ctx.cx('rowGroupToggler'),
|
|
1684
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1685
|
+
return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
|
|
1686
|
+
}),
|
|
1687
|
+
type: "button"
|
|
1688
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1689
|
+
key: 0,
|
|
1690
|
+
expanded: $options.isRowGroupExpanded
|
|
1691
|
+
}, null, 8, ["expanded"])) : (openBlock(), createElementBlock(Fragment, {
|
|
1692
|
+
key: 1
|
|
1693
|
+
}, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1694
|
+
key: 0,
|
|
1695
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1696
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (openBlock(), createBlock(_component_ChevronDownIcon, mergeProps({
|
|
1697
|
+
key: 1,
|
|
1698
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1699
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1700
|
+
key: 2,
|
|
1701
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1702
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (openBlock(), createBlock(_component_ChevronRightIcon, mergeProps({
|
|
1703
|
+
key: 3,
|
|
1704
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1705
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : createCommentVNode("", true)], 64))], 16)) : createCommentVNode("", true), (openBlock(), createBlock(resolveDynamicComponent($props.templates['groupheader']), {
|
|
1706
|
+
data: $props.rowData,
|
|
1707
|
+
index: $options.rowIndex
|
|
1708
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1709
|
+
key: 1,
|
|
1710
|
+
"class": $options.rowClasses,
|
|
1711
|
+
style: $options.rowStyles,
|
|
1712
|
+
tabindex: $options.rowTabindex,
|
|
1713
|
+
role: "row",
|
|
1714
|
+
"aria-selected": $props.selectionMode ? $options.isSelected : null,
|
|
1715
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1716
|
+
return $options.onRowClick && $options.onRowClick.apply($options, arguments);
|
|
1717
|
+
}),
|
|
1718
|
+
onDblclick: _cache[2] || (_cache[2] = function () {
|
|
1719
|
+
return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
|
|
1720
|
+
}),
|
|
1721
|
+
onContextmenu: _cache[3] || (_cache[3] = function () {
|
|
1722
|
+
return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
|
|
1723
|
+
}),
|
|
1724
|
+
onTouchend: _cache[4] || (_cache[4] = function () {
|
|
1725
|
+
return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
|
|
1726
|
+
}),
|
|
1727
|
+
onKeydown: _cache[5] || (_cache[5] = withModifiers(function () {
|
|
1728
|
+
return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
|
|
1729
|
+
}, ["self"])),
|
|
1730
|
+
onMousedown: _cache[6] || (_cache[6] = function () {
|
|
1731
|
+
return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
|
|
1732
|
+
}),
|
|
1733
|
+
onDragstart: _cache[7] || (_cache[7] = function () {
|
|
1734
|
+
return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
|
|
1735
|
+
}),
|
|
1736
|
+
onDragover: _cache[8] || (_cache[8] = function () {
|
|
1737
|
+
return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
|
|
1738
|
+
}),
|
|
1739
|
+
onDragleave: _cache[9] || (_cache[9] = function () {
|
|
1740
|
+
return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
|
|
1741
|
+
}),
|
|
1742
|
+
onDragend: _cache[10] || (_cache[10] = function () {
|
|
1743
|
+
return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
|
|
1744
|
+
}),
|
|
1745
|
+
onDrop: _cache[11] || (_cache[11] = function () {
|
|
1746
|
+
return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
|
|
1747
|
+
})
|
|
1748
|
+
}, $options.getBodyRowPTOptions('bodyRow'), {
|
|
1749
|
+
"data-p-index": $options.rowIndex,
|
|
1750
|
+
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1751
|
+
"data-p-highlight": $props.selection && $options.isSelected,
|
|
1752
|
+
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
|
|
1753
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, function (col, i) {
|
|
1754
|
+
return openBlock(), createElementBlock(Fragment, null, [$options.shouldRenderBodyCell(col) ? (openBlock(), createBlock(_component_DTBodyCell, {
|
|
1755
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1756
|
+
rowData: $props.rowData,
|
|
1757
|
+
column: col,
|
|
1758
|
+
rowIndex: $options.rowIndex,
|
|
1759
|
+
index: i,
|
|
1760
|
+
selected: $options.isSelected,
|
|
1761
|
+
frozenRow: $props.frozenRow,
|
|
1762
|
+
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
|
|
1763
|
+
editMode: $props.editMode,
|
|
1764
|
+
editing: $props.editMode === 'row' && $options.isRowEditing,
|
|
1765
|
+
editingMeta: $props.editingMeta,
|
|
1766
|
+
responsiveLayout: $props.responsiveLayout,
|
|
1767
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
1768
|
+
ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1769
|
+
name: $props.nameAttributeSelector,
|
|
1770
|
+
isRowExpanded: $data.d_rowExpanded,
|
|
1771
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
1772
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
1773
|
+
onRadioChange: $options.onRadioChange,
|
|
1774
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1775
|
+
onRowToggle: $options.onRowToggle,
|
|
1776
|
+
onCellEditInit: $options.onCellEditInit,
|
|
1777
|
+
onCellEditComplete: $options.onCellEditComplete,
|
|
1778
|
+
onCellEditCancel: $options.onCellEditCancel,
|
|
1779
|
+
onRowEditInit: $options.onRowEditInit,
|
|
1780
|
+
onRowEditSave: $options.onRowEditSave,
|
|
1781
|
+
onRowEditCancel: $options.onRowEditCancel,
|
|
1782
|
+
onEditingMetaChange: $options.onEditingMetaChange,
|
|
1783
|
+
unstyled: _ctx.unstyled,
|
|
1784
|
+
pt: _ctx.pt
|
|
1785
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : createCommentVNode("", true)], 64);
|
|
1786
|
+
}), 256))], 16, _hoisted_2$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1787
|
+
key: 2,
|
|
1788
|
+
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1789
|
+
"class": _ctx.cx('rowExpansion'),
|
|
1790
|
+
role: "row"
|
|
1791
|
+
}, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
|
|
1792
|
+
colspan: $options.columnsLength
|
|
1793
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
|
|
1794
|
+
data: $props.rowData,
|
|
1795
|
+
index: $options.rowIndex
|
|
1796
|
+
}, 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({
|
|
1797
|
+
key: 3,
|
|
1798
|
+
"class": _ctx.cx('rowGroupFooter'),
|
|
1799
|
+
role: "row"
|
|
1800
|
+
}, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
|
|
1801
|
+
colspan: $options.columnsLength - 1
|
|
1802
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1803
|
+
data: $props.rowData,
|
|
1804
|
+
index: $options.rowIndex
|
|
1805
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : createCommentVNode("", true)], 64)) : (openBlock(), createElementBlock("tr", mergeProps({
|
|
1806
|
+
key: 1,
|
|
1807
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1808
|
+
role: "row"
|
|
1809
|
+
}, _ctx.ptm('emptyMessage')), [createElementVNode("td", mergeProps({
|
|
1810
|
+
colspan: $options.columnsLength
|
|
1811
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
|
|
1812
|
+
key: 0
|
|
1813
|
+
})) : createCommentVNode("", true)], 16, _hoisted_6)], 16));
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
script$8.render = render$8;
|
|
1817
|
+
|
|
1818
|
+
var script$7 = {
|
|
1819
|
+
name: 'TableBody',
|
|
1820
|
+
hostName: 'DataTable',
|
|
1821
|
+
"extends": BaseComponent,
|
|
1822
|
+
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1823
|
+
props: {
|
|
1824
|
+
value: {
|
|
1825
|
+
type: Array,
|
|
1826
|
+
"default": null
|
|
1827
|
+
},
|
|
1828
|
+
columns: {
|
|
1829
|
+
type: null,
|
|
1830
|
+
"default": null
|
|
1831
|
+
},
|
|
1832
|
+
frozenRow: {
|
|
1833
|
+
type: Boolean,
|
|
1834
|
+
"default": false
|
|
1835
|
+
},
|
|
1836
|
+
empty: {
|
|
1837
|
+
type: Boolean,
|
|
1838
|
+
"default": false
|
|
1839
|
+
},
|
|
1840
|
+
rowGroupMode: {
|
|
1841
|
+
type: String,
|
|
1842
|
+
"default": null
|
|
1843
|
+
},
|
|
1844
|
+
groupRowsBy: {
|
|
1845
|
+
type: [Array, String, Function],
|
|
1846
|
+
"default": null
|
|
1847
|
+
},
|
|
1848
|
+
expandableRowGroups: {
|
|
1849
|
+
type: Boolean,
|
|
1850
|
+
"default": false
|
|
1851
|
+
},
|
|
1852
|
+
expandedRowGroups: {
|
|
1853
|
+
type: Array,
|
|
1854
|
+
"default": null
|
|
1855
|
+
},
|
|
1856
|
+
first: {
|
|
1857
|
+
type: Number,
|
|
1858
|
+
"default": 0
|
|
1859
|
+
},
|
|
1860
|
+
dataKey: {
|
|
1861
|
+
type: [String, Function],
|
|
1862
|
+
"default": null
|
|
1863
|
+
},
|
|
1864
|
+
expandedRowIcon: {
|
|
1865
|
+
type: String,
|
|
1866
|
+
"default": null
|
|
1867
|
+
},
|
|
1868
|
+
collapsedRowIcon: {
|
|
1869
|
+
type: String,
|
|
1870
|
+
"default": null
|
|
1871
|
+
},
|
|
1872
|
+
expandedRows: {
|
|
1873
|
+
type: [Array, Object],
|
|
1874
|
+
"default": null
|
|
1875
|
+
},
|
|
1876
|
+
selection: {
|
|
1877
|
+
type: [Array, Object],
|
|
1878
|
+
"default": null
|
|
1879
|
+
},
|
|
1880
|
+
selectionKeys: {
|
|
1881
|
+
type: null,
|
|
1882
|
+
"default": null
|
|
1883
|
+
},
|
|
1884
|
+
selectionMode: {
|
|
1885
|
+
type: String,
|
|
1886
|
+
"default": null
|
|
1887
|
+
},
|
|
1888
|
+
contextMenu: {
|
|
1889
|
+
type: Boolean,
|
|
1890
|
+
"default": false
|
|
1891
|
+
},
|
|
1892
|
+
contextMenuSelection: {
|
|
1893
|
+
type: Object,
|
|
1894
|
+
"default": null
|
|
1895
|
+
},
|
|
1896
|
+
rowClass: {
|
|
1897
|
+
type: null,
|
|
1898
|
+
"default": null
|
|
1899
|
+
},
|
|
1900
|
+
rowStyle: {
|
|
1901
|
+
type: null,
|
|
1902
|
+
"default": null
|
|
1903
|
+
},
|
|
1904
|
+
editMode: {
|
|
1905
|
+
type: String,
|
|
1906
|
+
"default": null
|
|
1907
|
+
},
|
|
1908
|
+
compareSelectionBy: {
|
|
1909
|
+
type: String,
|
|
1910
|
+
"default": 'deepEquals'
|
|
1911
|
+
},
|
|
1912
|
+
editingRows: {
|
|
1913
|
+
type: Array,
|
|
1914
|
+
"default": null
|
|
1915
|
+
},
|
|
1916
|
+
editingRowKeys: {
|
|
1917
|
+
type: null,
|
|
1918
|
+
"default": null
|
|
1919
|
+
},
|
|
1920
|
+
editingMeta: {
|
|
1921
|
+
type: Object,
|
|
1922
|
+
"default": null
|
|
1923
|
+
},
|
|
1924
|
+
templates: {
|
|
1925
|
+
type: null,
|
|
1926
|
+
"default": null
|
|
1927
|
+
},
|
|
1928
|
+
scrollable: {
|
|
1929
|
+
type: Boolean,
|
|
1930
|
+
"default": false
|
|
1931
|
+
},
|
|
1932
|
+
responsiveLayout: {
|
|
1933
|
+
type: String,
|
|
1934
|
+
"default": 'stack'
|
|
1935
|
+
},
|
|
1936
|
+
virtualScrollerContentProps: {
|
|
1937
|
+
type: Object,
|
|
1938
|
+
"default": null
|
|
1939
|
+
},
|
|
1940
|
+
isVirtualScrollerDisabled: {
|
|
1941
|
+
type: Boolean,
|
|
1942
|
+
"default": false
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
data: function data() {
|
|
1946
|
+
return {
|
|
1947
|
+
rowGroupHeaderStyleObject: {}
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
mounted: function mounted() {
|
|
1951
|
+
if (this.frozenRow) {
|
|
1952
|
+
this.updateFrozenRowStickyPosition();
|
|
1953
|
+
}
|
|
1954
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1955
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
updated: function updated() {
|
|
1959
|
+
if (this.frozenRow) {
|
|
1960
|
+
this.updateFrozenRowStickyPosition();
|
|
1961
|
+
}
|
|
1962
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1963
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1964
|
+
}
|
|
1965
|
+
},
|
|
1966
|
+
methods: {
|
|
1613
1967
|
updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
|
|
1614
1968
|
this.$el.style.top = DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
1615
1969
|
},
|
|
@@ -1625,24 +1979,9 @@ var script$7 = {
|
|
|
1625
1979
|
// For VirtualScroller
|
|
1626
1980
|
var contentRef = this.getVirtualScrollerProp('contentRef');
|
|
1627
1981
|
contentRef && contentRef(el);
|
|
1628
|
-
},
|
|
1629
|
-
setRowTabindex: function setRowTabindex(index) {
|
|
1630
|
-
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1631
|
-
return index === 0 ? 0 : -1;
|
|
1632
|
-
}
|
|
1633
|
-
return -1;
|
|
1634
1982
|
}
|
|
1635
1983
|
},
|
|
1636
1984
|
computed: {
|
|
1637
|
-
columnsLength: function columnsLength() {
|
|
1638
|
-
var _this = this;
|
|
1639
|
-
var hiddenColLength = 0;
|
|
1640
|
-
this.columns.forEach(function (column) {
|
|
1641
|
-
if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1642
|
-
if (_this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1643
|
-
});
|
|
1644
|
-
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1645
|
-
},
|
|
1646
1985
|
rowGroupHeaderStyle: function rowGroupHeaderStyle() {
|
|
1647
1986
|
if (this.scrollable) {
|
|
1648
1987
|
return {
|
|
@@ -1651,48 +1990,31 @@ var script$7 = {
|
|
|
1651
1990
|
}
|
|
1652
1991
|
return null;
|
|
1653
1992
|
},
|
|
1654
|
-
bodyStyle: function bodyStyle() {
|
|
1655
|
-
return this.getVirtualScrollerProp('contentStyle');
|
|
1656
|
-
},
|
|
1657
|
-
expandedRowId: function expandedRowId() {
|
|
1658
|
-
return UniqueComponentId();
|
|
1659
|
-
},
|
|
1660
|
-
nameAttributeSelector: function nameAttributeSelector() {
|
|
1661
|
-
return UniqueComponentId();
|
|
1662
|
-
},
|
|
1993
|
+
bodyStyle: function bodyStyle() {
|
|
1994
|
+
return this.getVirtualScrollerProp('contentStyle');
|
|
1995
|
+
},
|
|
1663
1996
|
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1664
|
-
var _this$$
|
|
1997
|
+
var _this$$parentInstance;
|
|
1665
1998
|
return {
|
|
1666
1999
|
context: {
|
|
1667
|
-
scrollable: (_this$$
|
|
2000
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
1668
2001
|
}
|
|
1669
2002
|
};
|
|
2003
|
+
},
|
|
2004
|
+
expandedRowId: function expandedRowId() {
|
|
2005
|
+
return UniqueComponentId();
|
|
2006
|
+
},
|
|
2007
|
+
nameAttributeSelector: function nameAttributeSelector() {
|
|
2008
|
+
return UniqueComponentId();
|
|
1670
2009
|
}
|
|
1671
2010
|
},
|
|
1672
2011
|
components: {
|
|
1673
|
-
|
|
1674
|
-
ChevronDownIcon: ChevronDownIcon,
|
|
1675
|
-
ChevronRightIcon: ChevronRightIcon
|
|
2012
|
+
DTBodyRow: script$8
|
|
1676
2013
|
}
|
|
1677
2014
|
};
|
|
1678
2015
|
|
|
1679
|
-
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); }
|
|
1680
|
-
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; }
|
|
1681
|
-
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; }
|
|
1682
|
-
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; }
|
|
1683
|
-
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1684
|
-
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); }
|
|
1685
|
-
var _hoisted_1$4 = ["colspan"];
|
|
1686
|
-
var _hoisted_2$1 = ["onClick"];
|
|
1687
|
-
var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1688
|
-
var _hoisted_4 = ["id"];
|
|
1689
|
-
var _hoisted_5 = ["colspan"];
|
|
1690
|
-
var _hoisted_6 = ["colspan"];
|
|
1691
|
-
var _hoisted_7 = ["colspan"];
|
|
1692
2016
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1693
|
-
var
|
|
1694
|
-
var _component_ChevronRightIcon = resolveComponent("ChevronRightIcon");
|
|
1695
|
-
var _component_DTBodyCell = resolveComponent("DTBodyCell");
|
|
2017
|
+
var _component_DTBodyRow = resolveComponent("DTBodyRow");
|
|
1696
2018
|
return openBlock(), createElementBlock("tbody", mergeProps({
|
|
1697
2019
|
ref: $options.bodyRef,
|
|
1698
2020
|
"class": _ctx.cx('tbody'),
|
|
@@ -1700,165 +2022,119 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1700
2022
|
style: $options.bodyStyle
|
|
1701
2023
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (openBlock(true), createElementBlock(Fragment, {
|
|
1702
2024
|
key: 0
|
|
1703
|
-
}, renderList($props.value, function (rowData,
|
|
1704
|
-
return openBlock(),
|
|
1705
|
-
key:
|
|
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
|
-
|
|
1743
|
-
role: "row",
|
|
1744
|
-
"aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
|
|
1745
|
-
onClick: function onClick($event) {
|
|
1746
|
-
return $options.onRowClick($event, rowData, $options.getRowIndex(index));
|
|
1747
|
-
},
|
|
1748
|
-
onDblclick: function onDblclick($event) {
|
|
1749
|
-
return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
|
|
1750
|
-
},
|
|
1751
|
-
onContextmenu: function onContextmenu($event) {
|
|
1752
|
-
return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
|
|
1753
|
-
},
|
|
1754
|
-
onTouchend: _cache[9] || (_cache[9] = function ($event) {
|
|
1755
|
-
return $options.onRowTouchEnd($event);
|
|
2025
|
+
}, renderList($props.value, function (rowData, rowIndex) {
|
|
2026
|
+
return openBlock(), createBlock(_component_DTBodyRow, {
|
|
2027
|
+
key: rowIndex,
|
|
2028
|
+
rowData: rowData,
|
|
2029
|
+
index: rowIndex,
|
|
2030
|
+
value: $props.value,
|
|
2031
|
+
columns: $props.columns,
|
|
2032
|
+
frozenRow: $props.frozenRow,
|
|
2033
|
+
empty: $props.empty,
|
|
2034
|
+
first: $props.first,
|
|
2035
|
+
dataKey: $props.dataKey,
|
|
2036
|
+
selection: $props.selection,
|
|
2037
|
+
selectionKeys: $props.selectionKeys,
|
|
2038
|
+
selectionMode: $props.selectionMode,
|
|
2039
|
+
contextMenu: $props.contextMenu,
|
|
2040
|
+
contextMenuSelection: $props.contextMenuSelection,
|
|
2041
|
+
rowGroupMode: $props.rowGroupMode,
|
|
2042
|
+
groupRowsBy: $props.groupRowsBy,
|
|
2043
|
+
expandableRowGroups: $props.expandableRowGroups,
|
|
2044
|
+
rowClass: $props.rowClass,
|
|
2045
|
+
rowStyle: $props.rowStyle,
|
|
2046
|
+
editMode: $props.editMode,
|
|
2047
|
+
compareSelectionBy: $props.compareSelectionBy,
|
|
2048
|
+
scrollable: $props.scrollable,
|
|
2049
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
2050
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
2051
|
+
expandedRows: $props.expandedRows,
|
|
2052
|
+
expandedRowGroups: $props.expandedRowGroups,
|
|
2053
|
+
editingRows: $props.editingRows,
|
|
2054
|
+
editingRowKeys: $props.editingRowKeys,
|
|
2055
|
+
templates: $props.templates,
|
|
2056
|
+
responsiveLayout: $props.responsiveLayout,
|
|
2057
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
2058
|
+
isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
|
|
2059
|
+
editingMeta: $props.editingMeta,
|
|
2060
|
+
rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
|
|
2061
|
+
expandedRowId: $options.expandedRowId,
|
|
2062
|
+
nameAttributeSelector: $options.nameAttributeSelector,
|
|
2063
|
+
onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
2064
|
+
return _ctx.$emit('rowgroup-toggle', $event);
|
|
1756
2065
|
}),
|
|
1757
|
-
|
|
1758
|
-
return
|
|
1759
|
-
}, ["self"]),
|
|
1760
|
-
onMousedown: _cache[10] || (_cache[10] = function ($event) {
|
|
1761
|
-
return $options.onRowMouseDown($event);
|
|
2066
|
+
onRowClick: _cache[1] || (_cache[1] = function ($event) {
|
|
2067
|
+
return _ctx.$emit('row-click', $event);
|
|
1762
2068
|
}),
|
|
1763
|
-
|
|
1764
|
-
return
|
|
1765
|
-
},
|
|
1766
|
-
onDragover: function onDragover($event) {
|
|
1767
|
-
return $options.onRowDragOver($event, $options.getRowIndex(index));
|
|
1768
|
-
},
|
|
1769
|
-
onDragleave: _cache[11] || (_cache[11] = function ($event) {
|
|
1770
|
-
return $options.onRowDragLeave($event);
|
|
2069
|
+
onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
|
|
2070
|
+
return _ctx.$emit('row-dblclick', $event);
|
|
1771
2071
|
}),
|
|
1772
|
-
|
|
1773
|
-
return
|
|
2072
|
+
onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
|
|
2073
|
+
return _ctx.$emit('row-rightclick', $event);
|
|
1774
2074
|
}),
|
|
1775
|
-
|
|
1776
|
-
return
|
|
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
|
-
|
|
1833
|
-
}), 256))], 16, _hoisted_3$1)) : createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (openBlock(), createElementBlock("tr", mergeProps({
|
|
1834
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
1835
|
-
id: $options.expandedRowId + '_' + index + '_expansion',
|
|
1836
|
-
"class": _ctx.cx('rowExpansion'),
|
|
1837
|
-
role: "row"
|
|
1838
|
-
}, _ctx.ptm('rowExpansion')), [createElementVNode("td", mergeProps({
|
|
1839
|
-
colspan: $options.columnsLength
|
|
1840
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['expansion']), {
|
|
1841
|
-
data: rowData,
|
|
1842
|
-
index: $options.getRowIndex(index)
|
|
1843
|
-
}, 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({
|
|
1844
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
1845
|
-
"class": _ctx.cx('rowGroupFooter'),
|
|
1846
|
-
role: "row"
|
|
1847
|
-
}, _ctx.ptm('rowGroupFooter')), [createElementVNode("td", mergeProps({
|
|
1848
|
-
colspan: $options.columnsLength - 1
|
|
1849
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1850
|
-
data: rowData,
|
|
1851
|
-
index: $options.getRowIndex(index)
|
|
1852
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : createCommentVNode("", true)], 64);
|
|
1853
|
-
}), 256)) : (openBlock(), createElementBlock("tr", mergeProps({
|
|
2075
|
+
onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
|
|
2076
|
+
return _ctx.$emit('row-touchend', $event);
|
|
2077
|
+
}),
|
|
2078
|
+
onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
|
|
2079
|
+
return _ctx.$emit('row-keydown', $event);
|
|
2080
|
+
}),
|
|
2081
|
+
onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
|
|
2082
|
+
return _ctx.$emit('row-mousedown', $event);
|
|
2083
|
+
}),
|
|
2084
|
+
onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
|
|
2085
|
+
return _ctx.$emit('row-dragstart', $event);
|
|
2086
|
+
}),
|
|
2087
|
+
onRowDragover: _cache[8] || (_cache[8] = function ($event) {
|
|
2088
|
+
return _ctx.$emit('row-dragover', $event);
|
|
2089
|
+
}),
|
|
2090
|
+
onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
|
|
2091
|
+
return _ctx.$emit('row-dragleave', $event);
|
|
2092
|
+
}),
|
|
2093
|
+
onRowDragend: _cache[10] || (_cache[10] = function ($event) {
|
|
2094
|
+
return _ctx.$emit('row-dragend', $event);
|
|
2095
|
+
}),
|
|
2096
|
+
onRowDrop: _cache[11] || (_cache[11] = function ($event) {
|
|
2097
|
+
return _ctx.$emit('row-drop', $event);
|
|
2098
|
+
}),
|
|
2099
|
+
onRowToggle: _cache[12] || (_cache[12] = function ($event) {
|
|
2100
|
+
return _ctx.$emit('row-toggle', $event);
|
|
2101
|
+
}),
|
|
2102
|
+
onRadioChange: _cache[13] || (_cache[13] = function ($event) {
|
|
2103
|
+
return _ctx.$emit('radio-change', $event);
|
|
2104
|
+
}),
|
|
2105
|
+
onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
|
|
2106
|
+
return _ctx.$emit('checkbox-change', $event);
|
|
2107
|
+
}),
|
|
2108
|
+
onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
|
|
2109
|
+
return _ctx.$emit('cell-edit-init', $event);
|
|
2110
|
+
}),
|
|
2111
|
+
onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
|
|
2112
|
+
return _ctx.$emit('cell-edit-complete', $event);
|
|
2113
|
+
}),
|
|
2114
|
+
onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
|
|
2115
|
+
return _ctx.$emit('cell-edit-cancel', $event);
|
|
2116
|
+
}),
|
|
2117
|
+
onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
|
|
2118
|
+
return _ctx.$emit('row-edit-init', $event);
|
|
2119
|
+
}),
|
|
2120
|
+
onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
|
|
2121
|
+
return _ctx.$emit('row-edit-save', $event);
|
|
2122
|
+
}),
|
|
2123
|
+
onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
|
|
2124
|
+
return _ctx.$emit('row-edit-cancel', $event);
|
|
2125
|
+
}),
|
|
2126
|
+
onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
|
|
2127
|
+
return _ctx.$emit('editing-meta-change', $event);
|
|
2128
|
+
}),
|
|
2129
|
+
unstyled: _ctx.unstyled,
|
|
2130
|
+
pt: _ctx.pt
|
|
2131
|
+
}, null, 8, ["rowData", "index", "value", "columns", "frozenRow", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "editingMeta", "rowGroupHeaderStyle", "expandedRowId", "nameAttributeSelector", "unstyled", "pt"]);
|
|
2132
|
+
}), 128)) : (openBlock(), createBlock(_component_DTBodyRow, {
|
|
1854
2133
|
key: 1,
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.empty), {
|
|
1860
|
-
key: 0
|
|
1861
|
-
})) : createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
|
|
2134
|
+
empty: $props.empty,
|
|
2135
|
+
columns: $props.columns,
|
|
2136
|
+
templates: $props.templates
|
|
2137
|
+
}, null, 8, ["empty", "columns", "templates"]))], 16);
|
|
1862
2138
|
}
|
|
1863
2139
|
|
|
1864
2140
|
script$7.render = render$7;
|
|
@@ -1975,13 +2251,9 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1975
2251
|
|
|
1976
2252
|
script$6.render = render$6;
|
|
1977
2253
|
|
|
1978
|
-
function
|
|
1979
|
-
function
|
|
1980
|
-
function
|
|
1981
|
-
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
1982
|
-
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; } } }; }
|
|
1983
|
-
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); }
|
|
1984
|
-
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
2254
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2255
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
2256
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1985
2257
|
var script$5 = {
|
|
1986
2258
|
name: 'TableFooter',
|
|
1987
2259
|
hostName: 'DataTable',
|
|
@@ -1996,6 +2268,26 @@ var script$5 = {
|
|
|
1996
2268
|
"default": null
|
|
1997
2269
|
}
|
|
1998
2270
|
},
|
|
2271
|
+
provide: function provide() {
|
|
2272
|
+
return {
|
|
2273
|
+
$rows: this.d_footerRows,
|
|
2274
|
+
$columns: this.d_footerColumns
|
|
2275
|
+
};
|
|
2276
|
+
},
|
|
2277
|
+
data: function data() {
|
|
2278
|
+
return {
|
|
2279
|
+
d_footerRows: new HelperSet({
|
|
2280
|
+
type: 'Row'
|
|
2281
|
+
}),
|
|
2282
|
+
d_footerColumns: new HelperSet({
|
|
2283
|
+
type: 'Column'
|
|
2284
|
+
})
|
|
2285
|
+
};
|
|
2286
|
+
},
|
|
2287
|
+
beforeUnmount: function beforeUnmount() {
|
|
2288
|
+
this.d_footerRows.clear();
|
|
2289
|
+
this.d_footerColumns.clear();
|
|
2290
|
+
},
|
|
1999
2291
|
methods: {
|
|
2000
2292
|
columnProp: function columnProp(col, prop) {
|
|
2001
2293
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2040,36 +2332,12 @@ var script$5 = {
|
|
|
2040
2332
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
2041
2333
|
},
|
|
2042
2334
|
getFooterRows: function getFooterRows() {
|
|
2043
|
-
var
|
|
2044
|
-
|
|
2045
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
2046
|
-
var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
|
|
2047
|
-
_step;
|
|
2048
|
-
try {
|
|
2049
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2050
|
-
var child = _step.value;
|
|
2051
|
-
if (child.type.name === 'Row') {
|
|
2052
|
-
rows.push(child);
|
|
2053
|
-
} else if (child.children && child.children instanceof Array) {
|
|
2054
|
-
rows = child.children;
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
} catch (err) {
|
|
2058
|
-
_iterator.e(err);
|
|
2059
|
-
} finally {
|
|
2060
|
-
_iterator.f();
|
|
2061
|
-
}
|
|
2062
|
-
return rows;
|
|
2063
|
-
}
|
|
2335
|
+
var _this$d_footerRows;
|
|
2336
|
+
return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
|
|
2064
2337
|
},
|
|
2065
2338
|
getFooterColumns: function getFooterColumns(row) {
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2068
|
-
row.children["default"]().forEach(function (child) {
|
|
2069
|
-
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);
|
|
2070
|
-
});
|
|
2071
|
-
return cols;
|
|
2072
|
-
}
|
|
2339
|
+
var _this$d_footerColumns;
|
|
2340
|
+
return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
|
|
2073
2341
|
}
|
|
2074
2342
|
},
|
|
2075
2343
|
computed: {
|
|
@@ -2078,20 +2346,20 @@ var script$5 = {
|
|
|
2078
2346
|
if (this.columnGroup) {
|
|
2079
2347
|
hasFooter = true;
|
|
2080
2348
|
} else if (this.columns) {
|
|
2081
|
-
var
|
|
2082
|
-
|
|
2349
|
+
var _iterator = _createForOfIteratorHelper$1(this.columns),
|
|
2350
|
+
_step;
|
|
2083
2351
|
try {
|
|
2084
|
-
for (
|
|
2085
|
-
var col =
|
|
2352
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2353
|
+
var col = _step.value;
|
|
2086
2354
|
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
2087
2355
|
hasFooter = true;
|
|
2088
2356
|
break;
|
|
2089
2357
|
}
|
|
2090
2358
|
}
|
|
2091
2359
|
} catch (err) {
|
|
2092
|
-
|
|
2360
|
+
_iterator.e(err);
|
|
2093
2361
|
} finally {
|
|
2094
|
-
|
|
2362
|
+
_iterator.f();
|
|
2095
2363
|
}
|
|
2096
2364
|
}
|
|
2097
2365
|
return hasFooter;
|
|
@@ -2381,6 +2649,7 @@ var script$4 = {
|
|
|
2381
2649
|
onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
|
|
2382
2650
|
switch (event.code) {
|
|
2383
2651
|
case 'Enter':
|
|
2652
|
+
case 'NumpadEnter':
|
|
2384
2653
|
case 'Space':
|
|
2385
2654
|
this.toggleMenu(event);
|
|
2386
2655
|
break;
|
|
@@ -3162,6 +3431,7 @@ var script$2 = {
|
|
|
3162
3431
|
},
|
|
3163
3432
|
context: {
|
|
3164
3433
|
index: this.index,
|
|
3434
|
+
sortable: this.column.props.sortable === '' || this.column.props.sortable,
|
|
3165
3435
|
sorted: this.isColumnSorted(),
|
|
3166
3436
|
resizable: this.resizableColumns,
|
|
3167
3437
|
size: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.size,
|
|
@@ -3182,7 +3452,7 @@ var script$2 = {
|
|
|
3182
3452
|
});
|
|
3183
3453
|
},
|
|
3184
3454
|
onKeyDown: function onKeyDown(event) {
|
|
3185
|
-
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3455
|
+
if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3186
3456
|
this.$emit('column-click', {
|
|
3187
3457
|
originalEvent: event,
|
|
3188
3458
|
column: this.column
|
|
@@ -3197,16 +3467,28 @@ var script$2 = {
|
|
|
3197
3467
|
});
|
|
3198
3468
|
},
|
|
3199
3469
|
onDragStart: function onDragStart(event) {
|
|
3200
|
-
this.$emit('column-dragstart',
|
|
3470
|
+
this.$emit('column-dragstart', {
|
|
3471
|
+
originalEvent: event,
|
|
3472
|
+
column: this.column
|
|
3473
|
+
});
|
|
3201
3474
|
},
|
|
3202
3475
|
onDragOver: function onDragOver(event) {
|
|
3203
|
-
this.$emit('column-dragover',
|
|
3476
|
+
this.$emit('column-dragover', {
|
|
3477
|
+
originalEvent: event,
|
|
3478
|
+
column: this.column
|
|
3479
|
+
});
|
|
3204
3480
|
},
|
|
3205
3481
|
onDragLeave: function onDragLeave(event) {
|
|
3206
|
-
this.$emit('column-dragleave',
|
|
3482
|
+
this.$emit('column-dragleave', {
|
|
3483
|
+
originalEvent: event,
|
|
3484
|
+
column: this.column
|
|
3485
|
+
});
|
|
3207
3486
|
},
|
|
3208
3487
|
onDrop: function onDrop(event) {
|
|
3209
|
-
this.$emit('column-drop',
|
|
3488
|
+
this.$emit('column-drop', {
|
|
3489
|
+
originalEvent: event,
|
|
3490
|
+
column: this.column
|
|
3491
|
+
});
|
|
3210
3492
|
},
|
|
3211
3493
|
onResizeStart: function onResizeStart(event) {
|
|
3212
3494
|
this.$emit('column-resizestart', event);
|
|
@@ -3248,8 +3530,10 @@ var script$2 = {
|
|
|
3248
3530
|
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
3249
3531
|
if (filterRow) {
|
|
3250
3532
|
var index = DomHandler.index(this.$el);
|
|
3251
|
-
filterRow.children[index]
|
|
3252
|
-
|
|
3533
|
+
if (filterRow.children[index]) {
|
|
3534
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
3535
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
3536
|
+
}
|
|
3253
3537
|
}
|
|
3254
3538
|
}
|
|
3255
3539
|
},
|
|
@@ -3446,13 +3730,6 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3446
3730
|
|
|
3447
3731
|
script$2.render = render$2;
|
|
3448
3732
|
|
|
3449
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
3450
|
-
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."); }
|
|
3451
|
-
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3452
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
3453
|
-
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; } } }; }
|
|
3454
|
-
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); }
|
|
3455
|
-
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; }
|
|
3456
3733
|
var script$1 = {
|
|
3457
3734
|
name: 'TableHeader',
|
|
3458
3735
|
hostName: 'DataTable',
|
|
@@ -3528,6 +3805,26 @@ var script$1 = {
|
|
|
3528
3805
|
"default": null
|
|
3529
3806
|
}
|
|
3530
3807
|
},
|
|
3808
|
+
provide: function provide() {
|
|
3809
|
+
return {
|
|
3810
|
+
$rows: this.d_headerRows,
|
|
3811
|
+
$columns: this.d_headerColumns
|
|
3812
|
+
};
|
|
3813
|
+
},
|
|
3814
|
+
data: function data() {
|
|
3815
|
+
return {
|
|
3816
|
+
d_headerRows: new HelperSet({
|
|
3817
|
+
type: 'Row'
|
|
3818
|
+
}),
|
|
3819
|
+
d_headerColumns: new HelperSet({
|
|
3820
|
+
type: 'Column'
|
|
3821
|
+
})
|
|
3822
|
+
};
|
|
3823
|
+
},
|
|
3824
|
+
beforeUnmount: function beforeUnmount() {
|
|
3825
|
+
this.d_headerRows.clear();
|
|
3826
|
+
this.d_headerColumns.clear();
|
|
3827
|
+
},
|
|
3531
3828
|
methods: {
|
|
3532
3829
|
columnProp: function columnProp(col, prop) {
|
|
3533
3830
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -3600,36 +3897,12 @@ var script$1 = {
|
|
|
3600
3897
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
3601
3898
|
},
|
|
3602
3899
|
getHeaderRows: function getHeaderRows() {
|
|
3603
|
-
var
|
|
3604
|
-
|
|
3605
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
3606
|
-
var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
|
|
3607
|
-
_step;
|
|
3608
|
-
try {
|
|
3609
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3610
|
-
var child = _step.value;
|
|
3611
|
-
if (child.type.name === 'Row') {
|
|
3612
|
-
rows.push(child);
|
|
3613
|
-
} else if (child.children && child.children instanceof Array) {
|
|
3614
|
-
rows = child.children;
|
|
3615
|
-
}
|
|
3616
|
-
}
|
|
3617
|
-
} catch (err) {
|
|
3618
|
-
_iterator.e(err);
|
|
3619
|
-
} finally {
|
|
3620
|
-
_iterator.f();
|
|
3621
|
-
}
|
|
3622
|
-
return rows;
|
|
3623
|
-
}
|
|
3900
|
+
var _this$d_headerRows;
|
|
3901
|
+
return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
|
|
3624
3902
|
},
|
|
3625
3903
|
getHeaderColumns: function getHeaderColumns(row) {
|
|
3626
|
-
var
|
|
3627
|
-
|
|
3628
|
-
row.children["default"]().forEach(function (child) {
|
|
3629
|
-
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);
|
|
3630
|
-
});
|
|
3631
|
-
return cols;
|
|
3632
|
-
}
|
|
3904
|
+
var _this$d_headerColumns;
|
|
3905
|
+
return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
|
|
3633
3906
|
}
|
|
3634
3907
|
},
|
|
3635
3908
|
computed: {
|
|
@@ -3870,6 +4143,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3870
4143
|
script$1.render = render$1;
|
|
3871
4144
|
|
|
3872
4145
|
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); }
|
|
4146
|
+
var _excluded = ["expanded"];
|
|
4147
|
+
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; }
|
|
4148
|
+
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; }
|
|
3873
4149
|
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; }
|
|
3874
4150
|
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; }
|
|
3875
4151
|
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; }
|
|
@@ -3888,8 +4164,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
3888
4164
|
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; }
|
|
3889
4165
|
var script = {
|
|
3890
4166
|
name: 'DataTable',
|
|
3891
|
-
"extends": script$
|
|
4167
|
+
"extends": script$c,
|
|
3892
4168
|
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'],
|
|
4169
|
+
provide: function provide() {
|
|
4170
|
+
return {
|
|
4171
|
+
$columns: this.d_columns,
|
|
4172
|
+
$columnGroups: this.d_columnGroups
|
|
4173
|
+
};
|
|
4174
|
+
},
|
|
3893
4175
|
data: function data() {
|
|
3894
4176
|
return {
|
|
3895
4177
|
d_first: this.first,
|
|
@@ -3900,11 +4182,16 @@ var script = {
|
|
|
3900
4182
|
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
3901
4183
|
d_groupRowsSortMeta: null,
|
|
3902
4184
|
d_selectionKeys: null,
|
|
3903
|
-
d_expandedRowKeys: null,
|
|
3904
4185
|
d_columnOrder: null,
|
|
3905
4186
|
d_editingRowKeys: null,
|
|
3906
4187
|
d_editingMeta: {},
|
|
3907
|
-
d_filters: this.cloneFilters(this.filters)
|
|
4188
|
+
d_filters: this.cloneFilters(this.filters),
|
|
4189
|
+
d_columns: new HelperSet({
|
|
4190
|
+
type: 'Column'
|
|
4191
|
+
}),
|
|
4192
|
+
d_columnGroups: new HelperSet({
|
|
4193
|
+
type: 'ColumnGroup'
|
|
4194
|
+
})
|
|
3908
4195
|
};
|
|
3909
4196
|
},
|
|
3910
4197
|
rowTouched: false,
|
|
@@ -3918,6 +4205,7 @@ var script = {
|
|
|
3918
4205
|
colReorderIconWidth: null,
|
|
3919
4206
|
colReorderIconHeight: null,
|
|
3920
4207
|
draggedColumn: null,
|
|
4208
|
+
draggedColumnElement: null,
|
|
3921
4209
|
draggedRowIndex: null,
|
|
3922
4210
|
droppedRowIndex: null,
|
|
3923
4211
|
rowDragging: null,
|
|
@@ -3951,11 +4239,6 @@ var script = {
|
|
|
3951
4239
|
}
|
|
3952
4240
|
}
|
|
3953
4241
|
},
|
|
3954
|
-
expandedRows: function expandedRows(newValue) {
|
|
3955
|
-
if (this.dataKey) {
|
|
3956
|
-
this.updateExpandedRowKeys(newValue);
|
|
3957
|
-
}
|
|
3958
|
-
},
|
|
3959
4242
|
editingRows: {
|
|
3960
4243
|
immediate: true,
|
|
3961
4244
|
handler: function handler(newValue) {
|
|
@@ -3988,6 +4271,8 @@ var script = {
|
|
|
3988
4271
|
this.unbindColumnResizeEvents();
|
|
3989
4272
|
this.destroyStyleElement();
|
|
3990
4273
|
this.destroyResponsiveStyle();
|
|
4274
|
+
this.d_columns.clear();
|
|
4275
|
+
this.d_columnGroups.clear();
|
|
3991
4276
|
},
|
|
3992
4277
|
updated: function updated() {
|
|
3993
4278
|
if (this.isStateful()) {
|
|
@@ -4002,6 +4287,7 @@ var script = {
|
|
|
4002
4287
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
4003
4288
|
},
|
|
4004
4289
|
onPage: function onPage(event) {
|
|
4290
|
+
var _this = this;
|
|
4005
4291
|
this.clearEditingMetaData();
|
|
4006
4292
|
this.d_first = event.first;
|
|
4007
4293
|
this.d_rows = event.rows;
|
|
@@ -4011,15 +4297,18 @@ var script = {
|
|
|
4011
4297
|
this.$emit('update:first', this.d_first);
|
|
4012
4298
|
this.$emit('update:rows', this.d_rows);
|
|
4013
4299
|
this.$emit('page', pageEvent);
|
|
4014
|
-
this.$
|
|
4300
|
+
this.$nextTick(function () {
|
|
4301
|
+
_this.$emit('value-change', _this.processedData);
|
|
4302
|
+
});
|
|
4015
4303
|
},
|
|
4016
4304
|
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
4305
|
+
var _this2 = this;
|
|
4017
4306
|
var event = e.originalEvent;
|
|
4018
4307
|
var column = e.column;
|
|
4019
4308
|
if (this.columnProp(column, 'sortable')) {
|
|
4020
4309
|
var targetNode = event.target;
|
|
4021
4310
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
4022
|
-
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"]')) {
|
|
4311
|
+
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)) {
|
|
4023
4312
|
DomHandler.clearSelection();
|
|
4024
4313
|
if (this.sortMode === 'single') {
|
|
4025
4314
|
if (this.d_sortField === columnField) {
|
|
@@ -4047,12 +4336,14 @@ var script = {
|
|
|
4047
4336
|
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
4048
4337
|
}
|
|
4049
4338
|
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
4050
|
-
this.$
|
|
4339
|
+
this.$nextTick(function () {
|
|
4340
|
+
_this2.$emit('value-change', _this2.processedData);
|
|
4341
|
+
});
|
|
4051
4342
|
}
|
|
4052
4343
|
}
|
|
4053
4344
|
},
|
|
4054
4345
|
sortSingle: function sortSingle(value) {
|
|
4055
|
-
var
|
|
4346
|
+
var _this3 = this;
|
|
4056
4347
|
this.clearEditingMetaData();
|
|
4057
4348
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
4058
4349
|
this.d_multiSortMeta = [{
|
|
@@ -4082,12 +4373,12 @@ var script = {
|
|
|
4082
4373
|
data.sort(function (data1, data2) {
|
|
4083
4374
|
var value1 = resolvedFieldData.get(data1);
|
|
4084
4375
|
var value2 = resolvedFieldData.get(data2);
|
|
4085
|
-
return ObjectUtils.sort(value1, value2,
|
|
4376
|
+
return ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
|
|
4086
4377
|
});
|
|
4087
4378
|
return data;
|
|
4088
4379
|
},
|
|
4089
4380
|
sortMultiple: function sortMultiple(value) {
|
|
4090
|
-
var
|
|
4381
|
+
var _this4 = this;
|
|
4091
4382
|
this.clearEditingMetaData();
|
|
4092
4383
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
|
|
4093
4384
|
var firstSortMeta = this.d_multiSortMeta[0];
|
|
@@ -4098,7 +4389,7 @@ var script = {
|
|
|
4098
4389
|
}
|
|
4099
4390
|
var data = _toConsumableArray(value);
|
|
4100
4391
|
data.sort(function (data1, data2) {
|
|
4101
|
-
return
|
|
4392
|
+
return _this4.multisortField(data1, data2, 0);
|
|
4102
4393
|
});
|
|
4103
4394
|
return data;
|
|
4104
4395
|
},
|
|
@@ -4154,7 +4445,7 @@ var script = {
|
|
|
4154
4445
|
return Object.fromEntries(entries);
|
|
4155
4446
|
},
|
|
4156
4447
|
filter: function filter(data) {
|
|
4157
|
-
var
|
|
4448
|
+
var _this5 = this;
|
|
4158
4449
|
if (!data) {
|
|
4159
4450
|
return;
|
|
4160
4451
|
}
|
|
@@ -4163,7 +4454,7 @@ var script = {
|
|
|
4163
4454
|
var globalFilterFieldsArray;
|
|
4164
4455
|
if (activeFilters['global']) {
|
|
4165
4456
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4166
|
-
return
|
|
4457
|
+
return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
|
|
4167
4458
|
});
|
|
4168
4459
|
}
|
|
4169
4460
|
var filteredValue = [];
|
|
@@ -4225,7 +4516,9 @@ var script = {
|
|
|
4225
4516
|
var filterEvent = this.createLazyLoadEvent();
|
|
4226
4517
|
filterEvent.filteredValue = filteredValue;
|
|
4227
4518
|
this.$emit('filter', filterEvent);
|
|
4228
|
-
this.$
|
|
4519
|
+
this.$nextTick(function () {
|
|
4520
|
+
_this5.$emit('value-change', _this5.processedData);
|
|
4521
|
+
});
|
|
4229
4522
|
return filteredValue;
|
|
4230
4523
|
},
|
|
4231
4524
|
executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
|
|
@@ -4381,6 +4674,7 @@ var script = {
|
|
|
4381
4674
|
this.onEndKey(event, row, rowIndex, slotProps);
|
|
4382
4675
|
break;
|
|
4383
4676
|
case 'Enter':
|
|
4677
|
+
case 'NumpadEnter':
|
|
4384
4678
|
this.onEnterKey(event, rowData, rowIndex);
|
|
4385
4679
|
break;
|
|
4386
4680
|
case 'Space':
|
|
@@ -4631,40 +4925,21 @@ var script = {
|
|
|
4631
4925
|
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
4632
4926
|
}
|
|
4633
4927
|
},
|
|
4634
|
-
|
|
4635
|
-
if (
|
|
4636
|
-
this.
|
|
4637
|
-
var _iterator4 = _createForOfIteratorHelper(
|
|
4928
|
+
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4929
|
+
if (editingRows && editingRows.length) {
|
|
4930
|
+
this.d_editingRowKeys = {};
|
|
4931
|
+
var _iterator4 = _createForOfIteratorHelper(editingRows),
|
|
4638
4932
|
_step4;
|
|
4639
4933
|
try {
|
|
4640
4934
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4641
4935
|
var data = _step4.value;
|
|
4642
|
-
this.
|
|
4936
|
+
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4643
4937
|
}
|
|
4644
4938
|
} catch (err) {
|
|
4645
4939
|
_iterator4.e(err);
|
|
4646
4940
|
} finally {
|
|
4647
4941
|
_iterator4.f();
|
|
4648
4942
|
}
|
|
4649
|
-
} else {
|
|
4650
|
-
this.d_expandedRowKeys = null;
|
|
4651
|
-
}
|
|
4652
|
-
},
|
|
4653
|
-
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4654
|
-
if (editingRows && editingRows.length) {
|
|
4655
|
-
this.d_editingRowKeys = {};
|
|
4656
|
-
var _iterator5 = _createForOfIteratorHelper(editingRows),
|
|
4657
|
-
_step5;
|
|
4658
|
-
try {
|
|
4659
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4660
|
-
var data = _step5.value;
|
|
4661
|
-
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4662
|
-
}
|
|
4663
|
-
} catch (err) {
|
|
4664
|
-
_iterator5.e(err);
|
|
4665
|
-
} finally {
|
|
4666
|
-
_iterator5.f();
|
|
4667
|
-
}
|
|
4668
4943
|
} else {
|
|
4669
4944
|
this.d_editingRowKeys = null;
|
|
4670
4945
|
}
|
|
@@ -4702,7 +4977,7 @@ var script = {
|
|
|
4702
4977
|
this.$emit('update:selection', _selection);
|
|
4703
4978
|
},
|
|
4704
4979
|
exportCSV: function exportCSV(options, data) {
|
|
4705
|
-
var
|
|
4980
|
+
var _this6 = this;
|
|
4706
4981
|
var csv = "\uFEFF";
|
|
4707
4982
|
if (!data) {
|
|
4708
4983
|
data = this.processedData;
|
|
@@ -4724,16 +4999,16 @@ var script = {
|
|
|
4724
4999
|
data.forEach(function (record) {
|
|
4725
5000
|
csv += '\n';
|
|
4726
5001
|
var rowInitiated = false;
|
|
4727
|
-
for (var _i = 0; _i <
|
|
4728
|
-
var _column =
|
|
4729
|
-
if (
|
|
4730
|
-
if (rowInitiated) csv +=
|
|
4731
|
-
var cellData = ObjectUtils.resolveFieldData(record,
|
|
5002
|
+
for (var _i = 0; _i < _this6.columns.length; _i++) {
|
|
5003
|
+
var _column = _this6.columns[_i];
|
|
5004
|
+
if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
|
|
5005
|
+
if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
|
|
5006
|
+
var cellData = ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
|
|
4732
5007
|
if (cellData != null) {
|
|
4733
|
-
if (
|
|
4734
|
-
cellData =
|
|
5008
|
+
if (_this6.exportFunction) {
|
|
5009
|
+
cellData = _this6.exportFunction({
|
|
4735
5010
|
data: cellData,
|
|
4736
|
-
field:
|
|
5011
|
+
field: _this6.columnProp(_column, 'field')
|
|
4737
5012
|
});
|
|
4738
5013
|
} else cellData = String(cellData).replace(/"/g, '""');
|
|
4739
5014
|
} else cellData = '';
|
|
@@ -4836,19 +5111,19 @@ var script = {
|
|
|
4836
5111
|
this.styleElement.innerHTML = innerHTML;
|
|
4837
5112
|
},
|
|
4838
5113
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
4839
|
-
var
|
|
5114
|
+
var _this7 = this;
|
|
4840
5115
|
if (!this.documentColumnResizeListener) {
|
|
4841
5116
|
this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
|
|
4842
|
-
if (
|
|
4843
|
-
|
|
5117
|
+
if (_this7.columnResizing) {
|
|
5118
|
+
_this7.onColumnResize(event);
|
|
4844
5119
|
}
|
|
4845
5120
|
});
|
|
4846
5121
|
}
|
|
4847
5122
|
if (!this.documentColumnResizeEndListener) {
|
|
4848
5123
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
4849
|
-
if (
|
|
4850
|
-
|
|
4851
|
-
|
|
5124
|
+
if (_this7.columnResizing) {
|
|
5125
|
+
_this7.columnResizing = false;
|
|
5126
|
+
_this7.onColumnResizeEnd();
|
|
4852
5127
|
}
|
|
4853
5128
|
});
|
|
4854
5129
|
}
|
|
@@ -4870,23 +5145,28 @@ var script = {
|
|
|
4870
5145
|
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;
|
|
4871
5146
|
}
|
|
4872
5147
|
},
|
|
4873
|
-
onColumnHeaderDragStart: function onColumnHeaderDragStart(
|
|
5148
|
+
onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
|
|
5149
|
+
var event = e.originalEvent,
|
|
5150
|
+
column = e.column;
|
|
4874
5151
|
if (this.columnResizing) {
|
|
4875
5152
|
event.preventDefault();
|
|
4876
5153
|
return;
|
|
4877
5154
|
}
|
|
4878
5155
|
this.colReorderIconWidth = DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
4879
5156
|
this.colReorderIconHeight = DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
4880
|
-
this.draggedColumn =
|
|
5157
|
+
this.draggedColumn = column;
|
|
5158
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
4881
5159
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
4882
5160
|
},
|
|
4883
|
-
onColumnHeaderDragOver: function onColumnHeaderDragOver(
|
|
5161
|
+
onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
|
|
5162
|
+
var event = e.originalEvent,
|
|
5163
|
+
column = e.column;
|
|
4884
5164
|
var dropHeader = this.findParentHeader(event.target);
|
|
4885
|
-
if (this.reorderableColumns && this.
|
|
5165
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
4886
5166
|
event.preventDefault();
|
|
4887
5167
|
var containerOffset = DomHandler.getOffset(this.$el);
|
|
4888
5168
|
var dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
4889
|
-
if (this.
|
|
5169
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
4890
5170
|
var targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4891
5171
|
var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4892
5172
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
@@ -4905,34 +5185,67 @@ var script = {
|
|
|
4905
5185
|
}
|
|
4906
5186
|
}
|
|
4907
5187
|
},
|
|
4908
|
-
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(
|
|
4909
|
-
|
|
5188
|
+
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
|
|
5189
|
+
var event = e.originalEvent;
|
|
5190
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
4910
5191
|
event.preventDefault();
|
|
4911
5192
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4912
5193
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4913
5194
|
}
|
|
4914
5195
|
},
|
|
4915
|
-
onColumnHeaderDrop: function onColumnHeaderDrop(
|
|
5196
|
+
onColumnHeaderDrop: function onColumnHeaderDrop(e) {
|
|
5197
|
+
var _this8 = this;
|
|
5198
|
+
var event = e.originalEvent,
|
|
5199
|
+
column = e.column;
|
|
4916
5200
|
event.preventDefault();
|
|
4917
|
-
if (this.
|
|
4918
|
-
var dragIndex = DomHandler.index(this.
|
|
5201
|
+
if (this.draggedColumnElement) {
|
|
5202
|
+
var dragIndex = DomHandler.index(this.draggedColumnElement);
|
|
4919
5203
|
var dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
|
4920
5204
|
var allowDrop = dragIndex !== dropIndex;
|
|
4921
5205
|
if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
|
|
4922
5206
|
allowDrop = false;
|
|
4923
5207
|
}
|
|
4924
5208
|
if (allowDrop) {
|
|
4925
|
-
|
|
5209
|
+
var isSameColumn = function isSameColumn(col1, col2) {
|
|
5210
|
+
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');
|
|
5211
|
+
};
|
|
5212
|
+
var dragColIndex = this.columns.findIndex(function (child) {
|
|
5213
|
+
return isSameColumn(child, _this8.draggedColumn);
|
|
5214
|
+
});
|
|
5215
|
+
var dropColIndex = this.columns.findIndex(function (child) {
|
|
5216
|
+
return isSameColumn(child, column);
|
|
5217
|
+
});
|
|
5218
|
+
var widths = [];
|
|
5219
|
+
var headers = DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
5220
|
+
headers.forEach(function (header) {
|
|
5221
|
+
return widths.push(DomHandler.getOuterWidth(header));
|
|
5222
|
+
});
|
|
5223
|
+
var movedItem = widths.find(function (_, index) {
|
|
5224
|
+
return index === dragColIndex;
|
|
5225
|
+
});
|
|
5226
|
+
var remainingItems = widths.filter(function (_, index) {
|
|
5227
|
+
return index !== dragColIndex;
|
|
5228
|
+
});
|
|
5229
|
+
var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
|
|
5230
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
5231
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
5232
|
+
dropColIndex++;
|
|
5233
|
+
}
|
|
5234
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
5235
|
+
dropColIndex--;
|
|
5236
|
+
}
|
|
5237
|
+
ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
4926
5238
|
this.updateReorderableColumns();
|
|
4927
5239
|
this.$emit('column-reorder', {
|
|
4928
5240
|
originalEvent: event,
|
|
4929
|
-
dragIndex:
|
|
4930
|
-
dropIndex:
|
|
5241
|
+
dragIndex: dragColIndex,
|
|
5242
|
+
dropIndex: dropColIndex
|
|
4931
5243
|
});
|
|
4932
5244
|
}
|
|
4933
5245
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4934
5246
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4935
|
-
this.
|
|
5247
|
+
this.draggedColumnElement.draggable = false;
|
|
5248
|
+
this.draggedColumnElement = null;
|
|
4936
5249
|
this.draggedColumn = null;
|
|
4937
5250
|
this.dropPosition = null;
|
|
4938
5251
|
}
|
|
@@ -5042,28 +5355,23 @@ var script = {
|
|
|
5042
5355
|
event.preventDefault();
|
|
5043
5356
|
},
|
|
5044
5357
|
toggleRow: function toggleRow(event) {
|
|
5358
|
+
var _this9 = this;
|
|
5359
|
+
var expanded = event.expanded,
|
|
5360
|
+
rest = _objectWithoutProperties(event, _excluded);
|
|
5045
5361
|
var rowData = event.data;
|
|
5046
|
-
var
|
|
5047
|
-
var expandedRowIndex;
|
|
5048
|
-
var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5362
|
+
var expandedRows;
|
|
5049
5363
|
if (this.dataKey) {
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
expanded = expandedRowIndex > -1;
|
|
5054
|
-
}
|
|
5055
|
-
if (expanded) {
|
|
5056
|
-
if (expandedRowIndex == null) {
|
|
5057
|
-
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
5058
|
-
}
|
|
5059
|
-
_expandedRows.splice(expandedRowIndex, 1);
|
|
5060
|
-
this.$emit('update:expandedRows', _expandedRows);
|
|
5061
|
-
this.$emit('row-collapse', event);
|
|
5364
|
+
var value = ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
5365
|
+
expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
|
|
5366
|
+
expanded ? expandedRows[value] = true : delete expandedRows[value];
|
|
5062
5367
|
} else {
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5368
|
+
expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5369
|
+
expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
|
|
5370
|
+
return !_this9.equals(rowData, d);
|
|
5371
|
+
});
|
|
5066
5372
|
}
|
|
5373
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
5374
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
5067
5375
|
},
|
|
5068
5376
|
toggleRowGroup: function toggleRowGroup(e) {
|
|
5069
5377
|
var event = e.originalEvent;
|
|
@@ -5133,7 +5441,6 @@ var script = {
|
|
|
5133
5441
|
}
|
|
5134
5442
|
if (this.expandedRows) {
|
|
5135
5443
|
state.expandedRows = this.expandedRows;
|
|
5136
|
-
state.expandedRowKeys = this.d_expandedRowKeys;
|
|
5137
5444
|
}
|
|
5138
5445
|
if (this.expandedRowGroups) {
|
|
5139
5446
|
state.expandedRowGroups = this.expandedRowGroups;
|
|
@@ -5181,7 +5488,6 @@ var script = {
|
|
|
5181
5488
|
this.d_columnOrder = restoredState.columnOrder;
|
|
5182
5489
|
}
|
|
5183
5490
|
if (restoredState.expandedRows) {
|
|
5184
|
-
this.d_expandedRowKeys = restoredState.expandedRowKeys;
|
|
5185
5491
|
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
5186
5492
|
}
|
|
5187
5493
|
if (restoredState.expandedRowGroups) {
|
|
@@ -5205,23 +5511,25 @@ var script = {
|
|
|
5205
5511
|
state.tableWidth = DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
5206
5512
|
}
|
|
5207
5513
|
},
|
|
5514
|
+
addColumnWidthStyles: function addColumnWidthStyles(widths) {
|
|
5515
|
+
this.createStyleElement();
|
|
5516
|
+
var innerHTML = '';
|
|
5517
|
+
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\"]");
|
|
5518
|
+
widths.forEach(function (width, index) {
|
|
5519
|
+
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5520
|
+
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 ");
|
|
5521
|
+
});
|
|
5522
|
+
this.styleElement.innerHTML = innerHTML;
|
|
5523
|
+
},
|
|
5208
5524
|
restoreColumnWidths: function restoreColumnWidths() {
|
|
5209
5525
|
if (this.columnWidthsState) {
|
|
5210
5526
|
var widths = this.columnWidthsState.split(',');
|
|
5211
5527
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
5212
5528
|
this.$refs.table.style.width = this.tableWidthState;
|
|
5213
5529
|
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
5214
|
-
this.$el.style.width = this.tableWidthState;
|
|
5215
5530
|
}
|
|
5216
5531
|
if (ObjectUtils.isNotEmpty(widths)) {
|
|
5217
|
-
this.
|
|
5218
|
-
var innerHTML = '';
|
|
5219
|
-
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\"]");
|
|
5220
|
-
widths.forEach(function (width, index) {
|
|
5221
|
-
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5222
|
-
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 ");
|
|
5223
|
-
});
|
|
5224
|
-
this.styleElement.innerHTML = innerHTML;
|
|
5532
|
+
this.addColumnWidthStyles(widths);
|
|
5225
5533
|
}
|
|
5226
5534
|
}
|
|
5227
5535
|
},
|
|
@@ -5292,9 +5600,6 @@ var script = {
|
|
|
5292
5600
|
hasGlobalFilter: function hasGlobalFilter() {
|
|
5293
5601
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
5294
5602
|
},
|
|
5295
|
-
getChildren: function getChildren() {
|
|
5296
|
-
return this.$slots["default"] ? this.$slots["default"]() : null;
|
|
5297
|
-
},
|
|
5298
5603
|
onFilterChange: function onFilterChange(filters) {
|
|
5299
5604
|
this.d_filters = filters;
|
|
5300
5605
|
},
|
|
@@ -5324,10 +5629,10 @@ var script = {
|
|
|
5324
5629
|
return cloned;
|
|
5325
5630
|
},
|
|
5326
5631
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5327
|
-
var
|
|
5632
|
+
var _this10 = this;
|
|
5328
5633
|
var columnOrder = [];
|
|
5329
5634
|
this.columns.forEach(function (col) {
|
|
5330
|
-
return columnOrder.push(
|
|
5635
|
+
return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
|
|
5331
5636
|
});
|
|
5332
5637
|
this.d_columnOrder = columnOrder;
|
|
5333
5638
|
},
|
|
@@ -5348,7 +5653,7 @@ var script = {
|
|
|
5348
5653
|
var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
5349
5654
|
var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
|
|
5350
5655
|
var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
5351
|
-
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
|
|
5656
|
+
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");
|
|
5352
5657
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
5353
5658
|
}
|
|
5354
5659
|
},
|
|
@@ -5364,22 +5669,6 @@ var script = {
|
|
|
5364
5669
|
this.styleElement = null;
|
|
5365
5670
|
}
|
|
5366
5671
|
},
|
|
5367
|
-
recursiveGetChildren: function recursiveGetChildren(children, results) {
|
|
5368
|
-
var _this7 = this;
|
|
5369
|
-
if (!results) {
|
|
5370
|
-
results = [];
|
|
5371
|
-
}
|
|
5372
|
-
if (children && children.length) {
|
|
5373
|
-
children.forEach(function (child) {
|
|
5374
|
-
if (child.children instanceof Array) {
|
|
5375
|
-
results.concat(_this7.recursiveGetChildren(child.children, results));
|
|
5376
|
-
} else if (child.type.name == 'Column') {
|
|
5377
|
-
results.push(child);
|
|
5378
|
-
}
|
|
5379
|
-
});
|
|
5380
|
-
}
|
|
5381
|
-
return results;
|
|
5382
|
-
},
|
|
5383
5672
|
dataToRender: function dataToRender(data) {
|
|
5384
5673
|
var _data = data || this.processedData;
|
|
5385
5674
|
if (_data && this.paginator) {
|
|
@@ -5397,27 +5686,23 @@ var script = {
|
|
|
5397
5686
|
},
|
|
5398
5687
|
computed: {
|
|
5399
5688
|
columns: function columns() {
|
|
5400
|
-
var
|
|
5401
|
-
if (!children) {
|
|
5402
|
-
return;
|
|
5403
|
-
}
|
|
5404
|
-
var cols = this.recursiveGetChildren(children, []);
|
|
5689
|
+
var cols = this.d_columns.get(this);
|
|
5405
5690
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5406
5691
|
var orderedColumns = [];
|
|
5407
|
-
var
|
|
5408
|
-
|
|
5692
|
+
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5693
|
+
_step5;
|
|
5409
5694
|
try {
|
|
5410
|
-
for (
|
|
5411
|
-
var columnKey =
|
|
5695
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
5696
|
+
var columnKey = _step5.value;
|
|
5412
5697
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5413
5698
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5414
5699
|
orderedColumns.push(column);
|
|
5415
5700
|
}
|
|
5416
5701
|
}
|
|
5417
5702
|
} catch (err) {
|
|
5418
|
-
|
|
5703
|
+
_iterator5.e(err);
|
|
5419
5704
|
} finally {
|
|
5420
|
-
|
|
5705
|
+
_iterator5.f();
|
|
5421
5706
|
}
|
|
5422
5707
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5423
5708
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5425,52 +5710,30 @@ var script = {
|
|
|
5425
5710
|
}
|
|
5426
5711
|
return cols;
|
|
5427
5712
|
},
|
|
5713
|
+
columnGroups: function columnGroups() {
|
|
5714
|
+
return this.d_columnGroups.get(this);
|
|
5715
|
+
},
|
|
5428
5716
|
headerColumnGroup: function headerColumnGroup() {
|
|
5429
|
-
var
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
5435
|
-
var child = _step7.value;
|
|
5436
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
5437
|
-
return child;
|
|
5438
|
-
}
|
|
5439
|
-
}
|
|
5440
|
-
} catch (err) {
|
|
5441
|
-
_iterator7.e(err);
|
|
5442
|
-
} finally {
|
|
5443
|
-
_iterator7.f();
|
|
5444
|
-
}
|
|
5445
|
-
}
|
|
5446
|
-
return null;
|
|
5717
|
+
var _this$columnGroups,
|
|
5718
|
+
_this11 = this;
|
|
5719
|
+
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5720
|
+
return _this11.columnProp(group, 'type') === 'header';
|
|
5721
|
+
});
|
|
5447
5722
|
},
|
|
5448
5723
|
footerColumnGroup: function footerColumnGroup() {
|
|
5449
|
-
var
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
5455
|
-
var child = _step8.value;
|
|
5456
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
5457
|
-
return child;
|
|
5458
|
-
}
|
|
5459
|
-
}
|
|
5460
|
-
} catch (err) {
|
|
5461
|
-
_iterator8.e(err);
|
|
5462
|
-
} finally {
|
|
5463
|
-
_iterator8.f();
|
|
5464
|
-
}
|
|
5465
|
-
}
|
|
5466
|
-
return null;
|
|
5724
|
+
var _this$columnGroups2,
|
|
5725
|
+
_this12 = this;
|
|
5726
|
+
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5727
|
+
return _this12.columnProp(group, 'type') === 'footer';
|
|
5728
|
+
});
|
|
5467
5729
|
},
|
|
5468
5730
|
hasFilters: function hasFilters() {
|
|
5469
5731
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
5470
5732
|
},
|
|
5471
5733
|
processedData: function processedData() {
|
|
5734
|
+
var _this$virtualScroller;
|
|
5472
5735
|
var data = this.value || [];
|
|
5473
|
-
if (!this.lazy) {
|
|
5736
|
+
if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
|
|
5474
5737
|
if (data && data.length) {
|
|
5475
5738
|
if (this.hasFilters) {
|
|
5476
5739
|
data = this.filter(data);
|
|
@@ -5504,14 +5767,14 @@ var script = {
|
|
|
5504
5767
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
5505
5768
|
},
|
|
5506
5769
|
allRowsSelected: function allRowsSelected() {
|
|
5507
|
-
var
|
|
5770
|
+
var _this13 = this;
|
|
5508
5771
|
if (this.selectAll !== null) {
|
|
5509
5772
|
return this.selectAll;
|
|
5510
5773
|
} else {
|
|
5511
5774
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
5512
5775
|
return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
5513
|
-
return
|
|
5514
|
-
return
|
|
5776
|
+
return _this13.selection.some(function (s) {
|
|
5777
|
+
return _this13.equals(s, v);
|
|
5515
5778
|
});
|
|
5516
5779
|
});
|
|
5517
5780
|
}
|
|
@@ -5751,7 +6014,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5751
6014
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5752
6015
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5753
6016
|
expandedRows: _ctx.expandedRows,
|
|
5754
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5755
6017
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5756
6018
|
editingRows: _ctx.editingRows,
|
|
5757
6019
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5817,7 +6079,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5817
6079
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5818
6080
|
unstyled: _ctx.unstyled,
|
|
5819
6081
|
pt: _ctx.pt
|
|
5820
|
-
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6082
|
+
}, 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, {
|
|
5821
6083
|
ref: "bodyRef",
|
|
5822
6084
|
value: $options.dataToRender(slotProps.rows),
|
|
5823
6085
|
"class": normalizeClass(slotProps.styleClass),
|
|
@@ -5841,7 +6103,6 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5841
6103
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5842
6104
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5843
6105
|
expandedRows: _ctx.expandedRows,
|
|
5844
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5845
6106
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5846
6107
|
editingRows: _ctx.editingRows,
|
|
5847
6108
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5910,7 +6171,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5910
6171
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5911
6172
|
unstyled: _ctx.unstyled,
|
|
5912
6173
|
pt: _ctx.pt
|
|
5913
|
-
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6174
|
+
}, 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({
|
|
5914
6175
|
key: 1,
|
|
5915
6176
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
5916
6177
|
style: {
|