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
package/datatable/datatable.js
CHANGED
|
@@ -31,7 +31,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
31
31
|
var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
|
|
32
32
|
var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
|
|
33
33
|
|
|
34
|
-
var script$
|
|
34
|
+
var script$c = {
|
|
35
35
|
name: 'BaseDataTable',
|
|
36
36
|
"extends": BaseComponent__default["default"],
|
|
37
37
|
props: {
|
|
@@ -153,7 +153,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
153
153
|
},
|
|
154
154
|
metaKeySelection: {
|
|
155
155
|
type: Boolean,
|
|
156
|
-
"default":
|
|
156
|
+
"default": false
|
|
157
157
|
},
|
|
158
158
|
contextMenu: {
|
|
159
159
|
type: Boolean,
|
|
@@ -196,7 +196,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
196
196
|
"default": false
|
|
197
197
|
},
|
|
198
198
|
expandedRows: {
|
|
199
|
-
type: Array,
|
|
199
|
+
type: [Array, Object],
|
|
200
200
|
"default": null
|
|
201
201
|
},
|
|
202
202
|
expandedRowIcon: {
|
|
@@ -308,7 +308,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
310
|
|
|
311
|
-
var script$
|
|
311
|
+
var script$b = {
|
|
312
312
|
name: 'RowCheckbox',
|
|
313
313
|
hostName: 'DataTable',
|
|
314
314
|
"extends": BaseComponent__default["default"],
|
|
@@ -392,7 +392,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
392
392
|
};
|
|
393
393
|
|
|
394
394
|
var _hoisted_1$7 = ["checked", "disabled", "tabindex", "aria-label"];
|
|
395
|
-
function render$
|
|
395
|
+
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
396
396
|
var _component_CheckIcon = vue.resolveComponent("CheckIcon");
|
|
397
397
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
398
398
|
"class": _ctx.cx('checkboxWrapper'),
|
|
@@ -432,9 +432,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
432
432
|
}, $options.getColumnPT('checkboxIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 16)], 16);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
script$
|
|
435
|
+
script$b.render = render$b;
|
|
436
436
|
|
|
437
|
-
var script$
|
|
437
|
+
var script$a = {
|
|
438
438
|
name: 'RowRadioButton',
|
|
439
439
|
hostName: 'DataTable',
|
|
440
440
|
"extends": BaseComponent__default["default"],
|
|
@@ -499,7 +499,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
499
499
|
};
|
|
500
500
|
|
|
501
501
|
var _hoisted_1$6 = ["checked", "disabled", "name"];
|
|
502
|
-
function render$
|
|
502
|
+
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
503
503
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
504
504
|
"class": _ctx.cx('radiobuttonWrapper'),
|
|
505
505
|
onClick: _cache[3] || (_cache[3] = function () {
|
|
@@ -533,9 +533,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
533
533
|
}, $options.getColumnPT('radiobuttonIcon')), null, 16)], 16)], 16);
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
script$
|
|
536
|
+
script$a.render = render$a;
|
|
537
537
|
|
|
538
|
-
var script$
|
|
538
|
+
var script$9 = {
|
|
539
539
|
name: 'BodyCell',
|
|
540
540
|
hostName: 'DataTable',
|
|
541
541
|
"extends": BaseComponent__default["default"],
|
|
@@ -987,8 +987,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
components: {
|
|
990
|
-
DTRadioButton: script$
|
|
991
|
-
DTCheckbox: script$
|
|
990
|
+
DTRadioButton: script$a,
|
|
991
|
+
DTCheckbox: script$b,
|
|
992
992
|
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
993
993
|
ChevronRightIcon: ChevronRightIcon__default["default"],
|
|
994
994
|
BarsIcon: BarsIcon__default["default"],
|
|
@@ -1001,18 +1001,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
|
|
1004
|
-
function _typeof$
|
|
1005
|
-
function ownKeys$
|
|
1006
|
-
function _objectSpread$
|
|
1007
|
-
function _defineProperty$
|
|
1008
|
-
function _toPropertyKey$
|
|
1009
|
-
function _toPrimitive$
|
|
1004
|
+
function _typeof$a(o) { "@babel/helpers - typeof"; return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$a(o); }
|
|
1005
|
+
function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1006
|
+
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty$a(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1007
|
+
function _defineProperty$a(obj, key, value) { key = _toPropertyKey$a(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1008
|
+
function _toPropertyKey$a(t) { var i = _toPrimitive$a(t, "string"); return "symbol" == _typeof$a(i) ? i : String(i); }
|
|
1009
|
+
function _toPrimitive$a(t, r) { if ("object" != _typeof$a(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$a(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1010
1010
|
var _hoisted_1$5 = ["colspan", "rowspan", "data-p-selection-column", "data-p-editable-column", "data-p-cell-editing", "data-p-frozen-column"];
|
|
1011
1011
|
var _hoisted_2$2 = ["aria-expanded", "aria-controls", "aria-label"];
|
|
1012
1012
|
var _hoisted_3$2 = ["aria-label"];
|
|
1013
1013
|
var _hoisted_4$1 = ["aria-label"];
|
|
1014
1014
|
var _hoisted_5$1 = ["aria-label"];
|
|
1015
|
-
function render$
|
|
1015
|
+
function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1016
1016
|
var _component_DTRadioButton = vue.resolveComponent("DTRadioButton");
|
|
1017
1017
|
var _component_DTCheckbox = vue.resolveComponent("DTCheckbox");
|
|
1018
1018
|
var _component_BarsIcon = vue.resolveComponent("BarsIcon");
|
|
@@ -1024,7 +1024,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1024
1024
|
style: $options.containerStyle,
|
|
1025
1025
|
"class": $options.containerClass,
|
|
1026
1026
|
role: "cell"
|
|
1027
|
-
}, _objectSpread$
|
|
1027
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.loading), {
|
|
1028
1028
|
data: $props.rowData,
|
|
1029
1029
|
column: $props.column,
|
|
1030
1030
|
field: $options.field,
|
|
@@ -1044,7 +1044,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1044
1044
|
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1045
1045
|
}),
|
|
1046
1046
|
role: "cell"
|
|
1047
|
-
}, _objectSpread$
|
|
1047
|
+
}, _objectSpread$a(_objectSpread$a({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell')), {
|
|
1048
1048
|
"data-p-selection-column": $options.columnProp('selectionMode') != null,
|
|
1049
1049
|
"data-p-editable-column": $options.isEditable(),
|
|
1050
1050
|
"data-p-cell-editing": $data.d_editing,
|
|
@@ -1187,14 +1187,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1187
1187
|
}, [vue.createTextVNode(vue.toDisplayString($options.resolveFieldData()), 1)], 64))], 16, _hoisted_1$5));
|
|
1188
1188
|
}
|
|
1189
1189
|
|
|
1190
|
-
script$
|
|
1190
|
+
script$9.render = render$9;
|
|
1191
1191
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1192
|
+
function _typeof$9(o) { "@babel/helpers - typeof"; return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$9(o); }
|
|
1193
|
+
function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1194
|
+
function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty$9(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1195
|
+
function _defineProperty$9(obj, key, value) { key = _toPropertyKey$9(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1196
|
+
function _toPropertyKey$9(t) { var i = _toPrimitive$9(t, "string"); return "symbol" == _typeof$9(i) ? i : String(i); }
|
|
1197
|
+
function _toPrimitive$9(t, r) { if ("object" != _typeof$9(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$9(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1198
|
+
var script$8 = {
|
|
1199
|
+
name: 'BodyRow',
|
|
1194
1200
|
hostName: 'DataTable',
|
|
1195
1201
|
"extends": BaseComponent__default["default"],
|
|
1196
1202
|
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1197
1203
|
props: {
|
|
1204
|
+
rowData: {
|
|
1205
|
+
type: Object,
|
|
1206
|
+
"default": null
|
|
1207
|
+
},
|
|
1208
|
+
index: {
|
|
1209
|
+
type: Number,
|
|
1210
|
+
"default": 0
|
|
1211
|
+
},
|
|
1198
1212
|
value: {
|
|
1199
1213
|
type: Array,
|
|
1200
1214
|
"default": null
|
|
@@ -1244,11 +1258,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1244
1258
|
"default": null
|
|
1245
1259
|
},
|
|
1246
1260
|
expandedRows: {
|
|
1247
|
-
type: Array,
|
|
1248
|
-
"default": null
|
|
1249
|
-
},
|
|
1250
|
-
expandedRowKeys: {
|
|
1251
|
-
type: null,
|
|
1261
|
+
type: [Array, Object],
|
|
1252
1262
|
"default": null
|
|
1253
1263
|
},
|
|
1254
1264
|
selection: {
|
|
@@ -1279,6 +1289,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1279
1289
|
type: null,
|
|
1280
1290
|
"default": null
|
|
1281
1291
|
},
|
|
1292
|
+
rowGroupHeaderStyle: {
|
|
1293
|
+
type: null,
|
|
1294
|
+
"default": null
|
|
1295
|
+
},
|
|
1282
1296
|
editMode: {
|
|
1283
1297
|
type: String,
|
|
1284
1298
|
"default": null
|
|
@@ -1318,35 +1332,34 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1318
1332
|
isVirtualScrollerDisabled: {
|
|
1319
1333
|
type: Boolean,
|
|
1320
1334
|
"default": false
|
|
1335
|
+
},
|
|
1336
|
+
expandedRowId: {
|
|
1337
|
+
type: String,
|
|
1338
|
+
"default": null
|
|
1339
|
+
},
|
|
1340
|
+
nameAttributeSelector: {
|
|
1341
|
+
type: String,
|
|
1342
|
+
"default": null
|
|
1321
1343
|
}
|
|
1322
1344
|
},
|
|
1323
1345
|
data: function data() {
|
|
1324
1346
|
return {
|
|
1325
|
-
|
|
1326
|
-
tabindexArray: [],
|
|
1327
|
-
isARowSelected: false
|
|
1347
|
+
d_rowExpanded: false
|
|
1328
1348
|
};
|
|
1329
1349
|
},
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
this
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
},
|
|
1338
|
-
updated: function updated() {
|
|
1339
|
-
if (this.frozenRow) {
|
|
1340
|
-
this.updateFrozenRowStickyPosition();
|
|
1341
|
-
}
|
|
1342
|
-
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1343
|
-
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1350
|
+
watch: {
|
|
1351
|
+
expandedRows: function expandedRows(newValue) {
|
|
1352
|
+
var _this = this;
|
|
1353
|
+
this.d_rowExpanded = this.dataKey ? (newValue === null || newValue === void 0 ? void 0 : newValue[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)]) !== undefined : newValue === null || newValue === void 0 ? void 0 : newValue.some(function (d) {
|
|
1354
|
+
return _this.equals(_this.rowData, d);
|
|
1355
|
+
});
|
|
1344
1356
|
}
|
|
1345
1357
|
},
|
|
1346
1358
|
methods: {
|
|
1347
1359
|
columnProp: function columnProp(col, prop) {
|
|
1348
1360
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1349
1361
|
},
|
|
1362
|
+
//@todo - update this method
|
|
1350
1363
|
getColumnPT: function getColumnPT(key) {
|
|
1351
1364
|
var columnMetaData = {
|
|
1352
1365
|
parent: {
|
|
@@ -1357,80 +1370,33 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1357
1370
|
};
|
|
1358
1371
|
return vue.mergeProps(this.ptm("column.".concat(key), {
|
|
1359
1372
|
column: columnMetaData
|
|
1360
|
-
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.
|
|
1361
|
-
},
|
|
1362
|
-
getColumnProp: function getColumnProp(column) {
|
|
1363
|
-
return column.props && column.props.pt ? column.props.pt : undefined; //@todo
|
|
1373
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
|
|
1364
1374
|
},
|
|
1365
|
-
|
|
1366
|
-
|
|
1375
|
+
//@todo - update this method
|
|
1376
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key) {
|
|
1377
|
+
var _this$$parentInstance;
|
|
1378
|
+
var datatable = (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.$parentInstance;
|
|
1367
1379
|
return this.ptm(key, {
|
|
1368
1380
|
context: {
|
|
1369
|
-
index:
|
|
1370
|
-
selectable: (
|
|
1371
|
-
selected: this.isSelected
|
|
1372
|
-
stripedRows: (
|
|
1381
|
+
index: this.rowIndex,
|
|
1382
|
+
selectable: (datatable === null || datatable === void 0 ? void 0 : datatable.rowHover) || (datatable === null || datatable === void 0 ? void 0 : datatable.selectionMode),
|
|
1383
|
+
selected: this.isSelected,
|
|
1384
|
+
stripedRows: (datatable === null || datatable === void 0 ? void 0 : datatable.stripedRows) || false
|
|
1373
1385
|
}
|
|
1374
1386
|
});
|
|
1375
1387
|
},
|
|
1376
|
-
|
|
1377
|
-
var
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1381
|
-
return currentRowFieldData !== previousRowFieldData;
|
|
1382
|
-
} else {
|
|
1383
|
-
return true;
|
|
1384
|
-
}
|
|
1385
|
-
},
|
|
1386
|
-
getRowKey: function getRowKey(rowData, index) {
|
|
1387
|
-
return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : this.getRowIndex(index);
|
|
1388
|
-
},
|
|
1389
|
-
getRowIndex: function getRowIndex(index) {
|
|
1390
|
-
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1391
|
-
return getItemOptions ? getItemOptions(index).index : index;
|
|
1392
|
-
},
|
|
1393
|
-
getRowStyle: function getRowStyle(rowData) {
|
|
1394
|
-
if (this.rowStyle) {
|
|
1395
|
-
return this.rowStyle(rowData);
|
|
1396
|
-
}
|
|
1397
|
-
},
|
|
1398
|
-
getRowClass: function getRowClass(rowData) {
|
|
1399
|
-
var rowStyleClass = [];
|
|
1400
|
-
if (this.rowClass) {
|
|
1401
|
-
var rowClassValue = this.rowClass(rowData);
|
|
1402
|
-
if (rowClassValue) {
|
|
1403
|
-
rowStyleClass.push(rowClassValue);
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
return [this.cx('row', {
|
|
1407
|
-
rowData: rowData
|
|
1408
|
-
}), rowStyleClass];
|
|
1409
|
-
},
|
|
1410
|
-
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter(value, rowData, i) {
|
|
1411
|
-
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
1412
|
-
return false;
|
|
1413
|
-
} else {
|
|
1414
|
-
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1415
|
-
var nextRowData = value[i + 1];
|
|
1416
|
-
if (nextRowData) {
|
|
1417
|
-
var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1418
|
-
return currentRowFieldData !== nextRowFieldData;
|
|
1419
|
-
} else {
|
|
1420
|
-
return true;
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
},
|
|
1424
|
-
shouldRenderBodyCell: function shouldRenderBodyCell(value, column, i) {
|
|
1425
|
-
if (this.rowGroupMode) {
|
|
1388
|
+
shouldRenderBodyCell: function shouldRenderBodyCell(column) {
|
|
1389
|
+
var isHidden = this.columnProp(column, 'hidden');
|
|
1390
|
+
if (this.rowGroupMode && !isHidden) {
|
|
1391
|
+
var field = this.columnProp(column, 'field');
|
|
1426
1392
|
if (this.rowGroupMode === 'subheader') {
|
|
1427
|
-
return this.groupRowsBy !==
|
|
1393
|
+
return this.groupRowsBy !== field;
|
|
1428
1394
|
} else if (this.rowGroupMode === 'rowspan') {
|
|
1429
1395
|
if (this.isGrouped(column)) {
|
|
1430
|
-
var prevRowData = value[
|
|
1396
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1431
1397
|
if (prevRowData) {
|
|
1432
|
-
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[
|
|
1433
|
-
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData,
|
|
1398
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[this.rowIndex], field);
|
|
1399
|
+
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, field);
|
|
1434
1400
|
return currentRowFieldData !== previousRowFieldData;
|
|
1435
1401
|
} else {
|
|
1436
1402
|
return true;
|
|
@@ -1440,19 +1406,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1440
1406
|
}
|
|
1441
1407
|
}
|
|
1442
1408
|
} else {
|
|
1443
|
-
return !
|
|
1409
|
+
return !isHidden;
|
|
1444
1410
|
}
|
|
1445
1411
|
},
|
|
1446
|
-
calculateRowGroupSize: function calculateRowGroupSize(
|
|
1412
|
+
calculateRowGroupSize: function calculateRowGroupSize(column) {
|
|
1447
1413
|
if (this.isGrouped(column)) {
|
|
1448
|
-
var
|
|
1414
|
+
var index = this.rowIndex;
|
|
1415
|
+
var field = this.columnProp(column, 'field');
|
|
1416
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.value[index], field);
|
|
1449
1417
|
var nextRowFieldData = currentRowFieldData;
|
|
1450
1418
|
var groupRowSpan = 0;
|
|
1451
1419
|
while (currentRowFieldData === nextRowFieldData) {
|
|
1452
1420
|
groupRowSpan++;
|
|
1453
|
-
var nextRowData = value[++index];
|
|
1421
|
+
var nextRowData = this.value[++index];
|
|
1454
1422
|
if (nextRowData) {
|
|
1455
|
-
nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData,
|
|
1423
|
+
nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, field);
|
|
1456
1424
|
} else {
|
|
1457
1425
|
break;
|
|
1458
1426
|
}
|
|
@@ -1463,55 +1431,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1463
1431
|
}
|
|
1464
1432
|
},
|
|
1465
1433
|
isGrouped: function isGrouped(column) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1434
|
+
var field = this.columnProp(column, 'field');
|
|
1435
|
+
if (this.groupRowsBy && field) {
|
|
1436
|
+
if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(field) > -1;else return this.groupRowsBy === field;
|
|
1468
1437
|
} else {
|
|
1469
1438
|
return false;
|
|
1470
1439
|
}
|
|
1471
1440
|
},
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.editingRows) > -1;
|
|
1475
|
-
}
|
|
1476
|
-
return false;
|
|
1441
|
+
findIndexInSelection: function findIndexInSelection(data) {
|
|
1442
|
+
return this.findIndex(data, this.selection);
|
|
1477
1443
|
},
|
|
1478
|
-
|
|
1479
|
-
if (rowData && this.expandedRows) {
|
|
1480
|
-
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
1481
|
-
}
|
|
1482
|
-
return false;
|
|
1483
|
-
},
|
|
1484
|
-
isRowGroupExpanded: function isRowGroupExpanded(rowData) {
|
|
1485
|
-
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1486
|
-
var groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
1487
|
-
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1488
|
-
}
|
|
1489
|
-
return false;
|
|
1490
|
-
},
|
|
1491
|
-
isSelected: function isSelected(rowData) {
|
|
1492
|
-
if (rowData && this.selection) {
|
|
1493
|
-
if (this.dataKey) {
|
|
1494
|
-
return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
1495
|
-
} else {
|
|
1496
|
-
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;else return this.equals(rowData, this.selection);
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
return false;
|
|
1500
|
-
},
|
|
1501
|
-
isSelectedWithContextMenu: function isSelectedWithContextMenu(rowData) {
|
|
1502
|
-
if (rowData && this.contextMenuSelection) {
|
|
1503
|
-
return this.equals(rowData, this.contextMenuSelection, this.dataKey);
|
|
1504
|
-
}
|
|
1505
|
-
return false;
|
|
1506
|
-
},
|
|
1507
|
-
findIndexInSelection: function findIndexInSelection(rowData) {
|
|
1508
|
-
return this.findIndex(rowData, this.selection);
|
|
1509
|
-
},
|
|
1510
|
-
findIndex: function findIndex(rowData, collection) {
|
|
1444
|
+
findIndex: function findIndex(data, collection) {
|
|
1511
1445
|
var index = -1;
|
|
1512
1446
|
if (collection && collection.length) {
|
|
1513
1447
|
for (var i = 0; i < collection.length; i++) {
|
|
1514
|
-
if (this.equals(
|
|
1448
|
+
if (this.equals(data, collection[i])) {
|
|
1515
1449
|
index = i;
|
|
1516
1450
|
break;
|
|
1517
1451
|
}
|
|
@@ -1522,56 +1456,56 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1522
1456
|
equals: function equals(data1, data2) {
|
|
1523
1457
|
return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
|
|
1524
1458
|
},
|
|
1525
|
-
onRowGroupToggle: function onRowGroupToggle(event
|
|
1459
|
+
onRowGroupToggle: function onRowGroupToggle(event) {
|
|
1526
1460
|
this.$emit('rowgroup-toggle', {
|
|
1527
1461
|
originalEvent: event,
|
|
1528
|
-
data:
|
|
1462
|
+
data: this.rowData
|
|
1529
1463
|
});
|
|
1530
1464
|
},
|
|
1531
|
-
onRowClick: function onRowClick(event
|
|
1465
|
+
onRowClick: function onRowClick(event) {
|
|
1532
1466
|
this.$emit('row-click', {
|
|
1533
1467
|
originalEvent: event,
|
|
1534
|
-
data: rowData,
|
|
1535
|
-
index: rowIndex
|
|
1468
|
+
data: this.rowData,
|
|
1469
|
+
index: this.rowIndex
|
|
1536
1470
|
});
|
|
1537
1471
|
},
|
|
1538
|
-
onRowDblClick: function onRowDblClick(event
|
|
1472
|
+
onRowDblClick: function onRowDblClick(event) {
|
|
1539
1473
|
this.$emit('row-dblclick', {
|
|
1540
1474
|
originalEvent: event,
|
|
1541
|
-
data: rowData,
|
|
1542
|
-
index: rowIndex
|
|
1475
|
+
data: this.rowData,
|
|
1476
|
+
index: this.rowIndex
|
|
1543
1477
|
});
|
|
1544
1478
|
},
|
|
1545
|
-
onRowRightClick: function onRowRightClick(event
|
|
1479
|
+
onRowRightClick: function onRowRightClick(event) {
|
|
1546
1480
|
this.$emit('row-rightclick', {
|
|
1547
1481
|
originalEvent: event,
|
|
1548
|
-
data: rowData,
|
|
1549
|
-
index: rowIndex
|
|
1482
|
+
data: this.rowData,
|
|
1483
|
+
index: this.rowIndex
|
|
1550
1484
|
});
|
|
1551
1485
|
},
|
|
1552
1486
|
onRowTouchEnd: function onRowTouchEnd(event) {
|
|
1553
1487
|
this.$emit('row-touchend', event);
|
|
1554
1488
|
},
|
|
1555
|
-
onRowKeyDown: function onRowKeyDown(event
|
|
1489
|
+
onRowKeyDown: function onRowKeyDown(event) {
|
|
1556
1490
|
this.$emit('row-keydown', {
|
|
1557
1491
|
originalEvent: event,
|
|
1558
|
-
data: rowData,
|
|
1559
|
-
index: rowIndex
|
|
1492
|
+
data: this.rowData,
|
|
1493
|
+
index: this.rowIndex
|
|
1560
1494
|
});
|
|
1561
1495
|
},
|
|
1562
1496
|
onRowMouseDown: function onRowMouseDown(event) {
|
|
1563
1497
|
this.$emit('row-mousedown', event);
|
|
1564
1498
|
},
|
|
1565
|
-
onRowDragStart: function onRowDragStart(event
|
|
1499
|
+
onRowDragStart: function onRowDragStart(event) {
|
|
1566
1500
|
this.$emit('row-dragstart', {
|
|
1567
1501
|
originalEvent: event,
|
|
1568
|
-
index: rowIndex
|
|
1502
|
+
index: this.rowIndex
|
|
1569
1503
|
});
|
|
1570
1504
|
},
|
|
1571
|
-
onRowDragOver: function onRowDragOver(event
|
|
1505
|
+
onRowDragOver: function onRowDragOver(event) {
|
|
1572
1506
|
this.$emit('row-dragover', {
|
|
1573
1507
|
originalEvent: event,
|
|
1574
|
-
index: rowIndex
|
|
1508
|
+
index: this.rowIndex
|
|
1575
1509
|
});
|
|
1576
1510
|
},
|
|
1577
1511
|
onRowDragLeave: function onRowDragLeave(event) {
|
|
@@ -1584,7 +1518,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1584
1518
|
this.$emit('row-drop', event);
|
|
1585
1519
|
},
|
|
1586
1520
|
onRowToggle: function onRowToggle(event) {
|
|
1587
|
-
this
|
|
1521
|
+
this.d_rowExpanded = !this.d_rowExpanded;
|
|
1522
|
+
this.$emit('row-toggle', _objectSpread$9(_objectSpread$9({}, event), {}, {
|
|
1523
|
+
expanded: this.d_rowExpanded
|
|
1524
|
+
}));
|
|
1588
1525
|
},
|
|
1589
1526
|
onRadioChange: function onRadioChange(event) {
|
|
1590
1527
|
this.$emit('radio-change', event);
|
|
@@ -1613,6 +1550,423 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1613
1550
|
onEditingMetaChange: function onEditingMetaChange(event) {
|
|
1614
1551
|
this.$emit('editing-meta-change', event);
|
|
1615
1552
|
},
|
|
1553
|
+
getVirtualScrollerProp: function getVirtualScrollerProp(option, options) {
|
|
1554
|
+
options = options || this.virtualScrollerContentProps;
|
|
1555
|
+
return options ? options[option] : null;
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
computed: {
|
|
1559
|
+
rowIndex: function rowIndex() {
|
|
1560
|
+
var getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
1561
|
+
return getItemOptions ? getItemOptions(this.index).index : this.index;
|
|
1562
|
+
},
|
|
1563
|
+
rowStyles: function rowStyles() {
|
|
1564
|
+
var _this$rowStyle;
|
|
1565
|
+
return (_this$rowStyle = this.rowStyle) === null || _this$rowStyle === void 0 ? void 0 : _this$rowStyle.call(this, this.rowData);
|
|
1566
|
+
},
|
|
1567
|
+
rowClasses: function rowClasses() {
|
|
1568
|
+
var rowStyleClass = [];
|
|
1569
|
+
if (this.rowClass) {
|
|
1570
|
+
var rowClassValue = this.rowClass(this.rowData);
|
|
1571
|
+
if (rowClassValue) {
|
|
1572
|
+
rowStyleClass.push(rowClassValue);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
return [this.cx('row', {
|
|
1576
|
+
rowData: this.rowData,
|
|
1577
|
+
index: this.rowIndex
|
|
1578
|
+
}), rowStyleClass];
|
|
1579
|
+
},
|
|
1580
|
+
rowTabindex: function rowTabindex() {
|
|
1581
|
+
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1582
|
+
return this.rowIndex === 0 ? 0 : -1;
|
|
1583
|
+
}
|
|
1584
|
+
return -1;
|
|
1585
|
+
},
|
|
1586
|
+
isRowEditing: function isRowEditing() {
|
|
1587
|
+
if (this.rowData && this.editingRows) {
|
|
1588
|
+
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;else return this.findIndex(this.rowData, this.editingRows) > -1;
|
|
1589
|
+
}
|
|
1590
|
+
return false;
|
|
1591
|
+
},
|
|
1592
|
+
isRowGroupExpanded: function isRowGroupExpanded() {
|
|
1593
|
+
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
1594
|
+
var groupFieldValue = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1595
|
+
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
1596
|
+
}
|
|
1597
|
+
return false;
|
|
1598
|
+
},
|
|
1599
|
+
isSelected: function isSelected() {
|
|
1600
|
+
if (this.rowData && this.selection) {
|
|
1601
|
+
if (this.dataKey) {
|
|
1602
|
+
return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(this.rowData, this.dataKey)] !== undefined : false;
|
|
1603
|
+
} else {
|
|
1604
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(this.rowData) > -1;else return this.equals(this.rowData, this.selection);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
return false;
|
|
1608
|
+
},
|
|
1609
|
+
isSelectedWithContextMenu: function isSelectedWithContextMenu() {
|
|
1610
|
+
if (this.rowData && this.contextMenuSelection) {
|
|
1611
|
+
return this.equals(this.rowData, this.contextMenuSelection, this.dataKey);
|
|
1612
|
+
}
|
|
1613
|
+
return false;
|
|
1614
|
+
},
|
|
1615
|
+
shouldRenderRowGroupHeader: function shouldRenderRowGroupHeader() {
|
|
1616
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1617
|
+
var prevRowData = this.value[this.rowIndex - 1];
|
|
1618
|
+
if (prevRowData) {
|
|
1619
|
+
var previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
1620
|
+
return currentRowFieldData !== previousRowFieldData;
|
|
1621
|
+
} else {
|
|
1622
|
+
return true;
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
shouldRenderRowGroupFooter: function shouldRenderRowGroupFooter() {
|
|
1626
|
+
if (this.expandableRowGroups && !this.isRowGroupExpanded) {
|
|
1627
|
+
return false;
|
|
1628
|
+
} else {
|
|
1629
|
+
var currentRowFieldData = utils.ObjectUtils.resolveFieldData(this.rowData, this.groupRowsBy);
|
|
1630
|
+
var nextRowData = this.value[this.rowIndex + 1];
|
|
1631
|
+
if (nextRowData) {
|
|
1632
|
+
var nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
1633
|
+
return currentRowFieldData !== nextRowFieldData;
|
|
1634
|
+
} else {
|
|
1635
|
+
return true;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
columnsLength: function columnsLength() {
|
|
1640
|
+
var _this2 = this;
|
|
1641
|
+
if (this.columns) {
|
|
1642
|
+
var hiddenColLength = 0;
|
|
1643
|
+
this.columns.forEach(function (column) {
|
|
1644
|
+
if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1645
|
+
if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1646
|
+
});
|
|
1647
|
+
return this.columns.length - hiddenColLength;
|
|
1648
|
+
}
|
|
1649
|
+
return 0;
|
|
1650
|
+
}
|
|
1651
|
+
},
|
|
1652
|
+
components: {
|
|
1653
|
+
DTBodyCell: script$9,
|
|
1654
|
+
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1655
|
+
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
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); }
|
|
1660
|
+
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; }
|
|
1661
|
+
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; }
|
|
1662
|
+
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; }
|
|
1663
|
+
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1664
|
+
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); }
|
|
1665
|
+
var _hoisted_1$4 = ["colspan"];
|
|
1666
|
+
var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1667
|
+
var _hoisted_3$1 = ["id"];
|
|
1668
|
+
var _hoisted_4 = ["colspan"];
|
|
1669
|
+
var _hoisted_5 = ["colspan"];
|
|
1670
|
+
var _hoisted_6 = ["colspan"];
|
|
1671
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1672
|
+
var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
|
|
1673
|
+
var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
1674
|
+
var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
|
|
1675
|
+
return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1676
|
+
key: 0
|
|
1677
|
+
}, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1678
|
+
key: 0,
|
|
1679
|
+
"class": _ctx.cx('rowGroupHeader'),
|
|
1680
|
+
style: $props.rowGroupHeaderStyle,
|
|
1681
|
+
role: "row"
|
|
1682
|
+
}, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1683
|
+
colspan: $options.columnsLength - 1
|
|
1684
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1685
|
+
key: 0,
|
|
1686
|
+
"class": _ctx.cx('rowGroupToggler'),
|
|
1687
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1688
|
+
return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
|
|
1689
|
+
}),
|
|
1690
|
+
type: "button"
|
|
1691
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1692
|
+
key: 0,
|
|
1693
|
+
expanded: $options.isRowGroupExpanded
|
|
1694
|
+
}, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1695
|
+
key: 1
|
|
1696
|
+
}, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1697
|
+
key: 0,
|
|
1698
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1699
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
|
|
1700
|
+
key: 1,
|
|
1701
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1702
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1703
|
+
key: 2,
|
|
1704
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1705
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
|
|
1706
|
+
key: 3,
|
|
1707
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1708
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
|
|
1709
|
+
data: $props.rowData,
|
|
1710
|
+
index: $options.rowIndex
|
|
1711
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1712
|
+
key: 1,
|
|
1713
|
+
"class": $options.rowClasses,
|
|
1714
|
+
style: $options.rowStyles,
|
|
1715
|
+
tabindex: $options.rowTabindex,
|
|
1716
|
+
role: "row",
|
|
1717
|
+
"aria-selected": $props.selectionMode ? $options.isSelected : null,
|
|
1718
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1719
|
+
return $options.onRowClick && $options.onRowClick.apply($options, arguments);
|
|
1720
|
+
}),
|
|
1721
|
+
onDblclick: _cache[2] || (_cache[2] = function () {
|
|
1722
|
+
return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
|
|
1723
|
+
}),
|
|
1724
|
+
onContextmenu: _cache[3] || (_cache[3] = function () {
|
|
1725
|
+
return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
|
|
1726
|
+
}),
|
|
1727
|
+
onTouchend: _cache[4] || (_cache[4] = function () {
|
|
1728
|
+
return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
|
|
1729
|
+
}),
|
|
1730
|
+
onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
|
|
1731
|
+
return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
|
|
1732
|
+
}, ["self"])),
|
|
1733
|
+
onMousedown: _cache[6] || (_cache[6] = function () {
|
|
1734
|
+
return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
|
|
1735
|
+
}),
|
|
1736
|
+
onDragstart: _cache[7] || (_cache[7] = function () {
|
|
1737
|
+
return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
|
|
1738
|
+
}),
|
|
1739
|
+
onDragover: _cache[8] || (_cache[8] = function () {
|
|
1740
|
+
return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
|
|
1741
|
+
}),
|
|
1742
|
+
onDragleave: _cache[9] || (_cache[9] = function () {
|
|
1743
|
+
return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
|
|
1744
|
+
}),
|
|
1745
|
+
onDragend: _cache[10] || (_cache[10] = function () {
|
|
1746
|
+
return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
|
|
1747
|
+
}),
|
|
1748
|
+
onDrop: _cache[11] || (_cache[11] = function () {
|
|
1749
|
+
return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
|
|
1750
|
+
})
|
|
1751
|
+
}, $options.getBodyRowPTOptions('bodyRow'), {
|
|
1752
|
+
"data-p-index": $options.rowIndex,
|
|
1753
|
+
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1754
|
+
"data-p-highlight": $props.selection && $options.isSelected,
|
|
1755
|
+
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
|
|
1756
|
+
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
|
|
1757
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
|
|
1758
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1759
|
+
rowData: $props.rowData,
|
|
1760
|
+
column: col,
|
|
1761
|
+
rowIndex: $options.rowIndex,
|
|
1762
|
+
index: i,
|
|
1763
|
+
selected: $options.isSelected,
|
|
1764
|
+
frozenRow: $props.frozenRow,
|
|
1765
|
+
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
|
|
1766
|
+
editMode: $props.editMode,
|
|
1767
|
+
editing: $props.editMode === 'row' && $options.isRowEditing,
|
|
1768
|
+
editingMeta: $props.editingMeta,
|
|
1769
|
+
responsiveLayout: $props.responsiveLayout,
|
|
1770
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
1771
|
+
ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1772
|
+
name: $props.nameAttributeSelector,
|
|
1773
|
+
isRowExpanded: $data.d_rowExpanded,
|
|
1774
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
1775
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
1776
|
+
onRadioChange: $options.onRadioChange,
|
|
1777
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1778
|
+
onRowToggle: $options.onRowToggle,
|
|
1779
|
+
onCellEditInit: $options.onCellEditInit,
|
|
1780
|
+
onCellEditComplete: $options.onCellEditComplete,
|
|
1781
|
+
onCellEditCancel: $options.onCellEditCancel,
|
|
1782
|
+
onRowEditInit: $options.onRowEditInit,
|
|
1783
|
+
onRowEditSave: $options.onRowEditSave,
|
|
1784
|
+
onRowEditCancel: $options.onRowEditCancel,
|
|
1785
|
+
onEditingMetaChange: $options.onEditingMetaChange,
|
|
1786
|
+
unstyled: _ctx.unstyled,
|
|
1787
|
+
pt: _ctx.pt
|
|
1788
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
1789
|
+
}), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1790
|
+
key: 2,
|
|
1791
|
+
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1792
|
+
"class": _ctx.cx('rowExpansion'),
|
|
1793
|
+
role: "row"
|
|
1794
|
+
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1795
|
+
colspan: $options.columnsLength
|
|
1796
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
1797
|
+
data: $props.rowData,
|
|
1798
|
+
index: $options.rowIndex
|
|
1799
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1800
|
+
key: 3,
|
|
1801
|
+
"class": _ctx.cx('rowGroupFooter'),
|
|
1802
|
+
role: "row"
|
|
1803
|
+
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1804
|
+
colspan: $options.columnsLength - 1
|
|
1805
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1806
|
+
data: $props.rowData,
|
|
1807
|
+
index: $options.rowIndex
|
|
1808
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1809
|
+
key: 1,
|
|
1810
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1811
|
+
role: "row"
|
|
1812
|
+
}, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1813
|
+
colspan: $options.columnsLength
|
|
1814
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
1815
|
+
key: 0
|
|
1816
|
+
})) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
script$8.render = render$8;
|
|
1820
|
+
|
|
1821
|
+
var script$7 = {
|
|
1822
|
+
name: 'TableBody',
|
|
1823
|
+
hostName: 'DataTable',
|
|
1824
|
+
"extends": BaseComponent__default["default"],
|
|
1825
|
+
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'],
|
|
1826
|
+
props: {
|
|
1827
|
+
value: {
|
|
1828
|
+
type: Array,
|
|
1829
|
+
"default": null
|
|
1830
|
+
},
|
|
1831
|
+
columns: {
|
|
1832
|
+
type: null,
|
|
1833
|
+
"default": null
|
|
1834
|
+
},
|
|
1835
|
+
frozenRow: {
|
|
1836
|
+
type: Boolean,
|
|
1837
|
+
"default": false
|
|
1838
|
+
},
|
|
1839
|
+
empty: {
|
|
1840
|
+
type: Boolean,
|
|
1841
|
+
"default": false
|
|
1842
|
+
},
|
|
1843
|
+
rowGroupMode: {
|
|
1844
|
+
type: String,
|
|
1845
|
+
"default": null
|
|
1846
|
+
},
|
|
1847
|
+
groupRowsBy: {
|
|
1848
|
+
type: [Array, String, Function],
|
|
1849
|
+
"default": null
|
|
1850
|
+
},
|
|
1851
|
+
expandableRowGroups: {
|
|
1852
|
+
type: Boolean,
|
|
1853
|
+
"default": false
|
|
1854
|
+
},
|
|
1855
|
+
expandedRowGroups: {
|
|
1856
|
+
type: Array,
|
|
1857
|
+
"default": null
|
|
1858
|
+
},
|
|
1859
|
+
first: {
|
|
1860
|
+
type: Number,
|
|
1861
|
+
"default": 0
|
|
1862
|
+
},
|
|
1863
|
+
dataKey: {
|
|
1864
|
+
type: [String, Function],
|
|
1865
|
+
"default": null
|
|
1866
|
+
},
|
|
1867
|
+
expandedRowIcon: {
|
|
1868
|
+
type: String,
|
|
1869
|
+
"default": null
|
|
1870
|
+
},
|
|
1871
|
+
collapsedRowIcon: {
|
|
1872
|
+
type: String,
|
|
1873
|
+
"default": null
|
|
1874
|
+
},
|
|
1875
|
+
expandedRows: {
|
|
1876
|
+
type: [Array, Object],
|
|
1877
|
+
"default": null
|
|
1878
|
+
},
|
|
1879
|
+
selection: {
|
|
1880
|
+
type: [Array, Object],
|
|
1881
|
+
"default": null
|
|
1882
|
+
},
|
|
1883
|
+
selectionKeys: {
|
|
1884
|
+
type: null,
|
|
1885
|
+
"default": null
|
|
1886
|
+
},
|
|
1887
|
+
selectionMode: {
|
|
1888
|
+
type: String,
|
|
1889
|
+
"default": null
|
|
1890
|
+
},
|
|
1891
|
+
contextMenu: {
|
|
1892
|
+
type: Boolean,
|
|
1893
|
+
"default": false
|
|
1894
|
+
},
|
|
1895
|
+
contextMenuSelection: {
|
|
1896
|
+
type: Object,
|
|
1897
|
+
"default": null
|
|
1898
|
+
},
|
|
1899
|
+
rowClass: {
|
|
1900
|
+
type: null,
|
|
1901
|
+
"default": null
|
|
1902
|
+
},
|
|
1903
|
+
rowStyle: {
|
|
1904
|
+
type: null,
|
|
1905
|
+
"default": null
|
|
1906
|
+
},
|
|
1907
|
+
editMode: {
|
|
1908
|
+
type: String,
|
|
1909
|
+
"default": null
|
|
1910
|
+
},
|
|
1911
|
+
compareSelectionBy: {
|
|
1912
|
+
type: String,
|
|
1913
|
+
"default": 'deepEquals'
|
|
1914
|
+
},
|
|
1915
|
+
editingRows: {
|
|
1916
|
+
type: Array,
|
|
1917
|
+
"default": null
|
|
1918
|
+
},
|
|
1919
|
+
editingRowKeys: {
|
|
1920
|
+
type: null,
|
|
1921
|
+
"default": null
|
|
1922
|
+
},
|
|
1923
|
+
editingMeta: {
|
|
1924
|
+
type: Object,
|
|
1925
|
+
"default": null
|
|
1926
|
+
},
|
|
1927
|
+
templates: {
|
|
1928
|
+
type: null,
|
|
1929
|
+
"default": null
|
|
1930
|
+
},
|
|
1931
|
+
scrollable: {
|
|
1932
|
+
type: Boolean,
|
|
1933
|
+
"default": false
|
|
1934
|
+
},
|
|
1935
|
+
responsiveLayout: {
|
|
1936
|
+
type: String,
|
|
1937
|
+
"default": 'stack'
|
|
1938
|
+
},
|
|
1939
|
+
virtualScrollerContentProps: {
|
|
1940
|
+
type: Object,
|
|
1941
|
+
"default": null
|
|
1942
|
+
},
|
|
1943
|
+
isVirtualScrollerDisabled: {
|
|
1944
|
+
type: Boolean,
|
|
1945
|
+
"default": false
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
data: function data() {
|
|
1949
|
+
return {
|
|
1950
|
+
rowGroupHeaderStyleObject: {}
|
|
1951
|
+
};
|
|
1952
|
+
},
|
|
1953
|
+
mounted: function mounted() {
|
|
1954
|
+
if (this.frozenRow) {
|
|
1955
|
+
this.updateFrozenRowStickyPosition();
|
|
1956
|
+
}
|
|
1957
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1958
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1959
|
+
}
|
|
1960
|
+
},
|
|
1961
|
+
updated: function updated() {
|
|
1962
|
+
if (this.frozenRow) {
|
|
1963
|
+
this.updateFrozenRowStickyPosition();
|
|
1964
|
+
}
|
|
1965
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1966
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
methods: {
|
|
1616
1970
|
updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
|
|
1617
1971
|
this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
1618
1972
|
},
|
|
@@ -1628,24 +1982,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1628
1982
|
// For VirtualScroller
|
|
1629
1983
|
var contentRef = this.getVirtualScrollerProp('contentRef');
|
|
1630
1984
|
contentRef && contentRef(el);
|
|
1631
|
-
},
|
|
1632
|
-
setRowTabindex: function setRowTabindex(index) {
|
|
1633
|
-
if (this.selection === null && (this.selectionMode === 'single' || this.selectionMode === 'multiple')) {
|
|
1634
|
-
return index === 0 ? 0 : -1;
|
|
1635
|
-
}
|
|
1636
|
-
return -1;
|
|
1637
1985
|
}
|
|
1638
1986
|
},
|
|
1639
1987
|
computed: {
|
|
1640
|
-
columnsLength: function columnsLength() {
|
|
1641
|
-
var _this = this;
|
|
1642
|
-
var hiddenColLength = 0;
|
|
1643
|
-
this.columns.forEach(function (column) {
|
|
1644
|
-
if (_this.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1645
|
-
if (_this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1646
|
-
});
|
|
1647
|
-
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1648
|
-
},
|
|
1649
1988
|
rowGroupHeaderStyle: function rowGroupHeaderStyle() {
|
|
1650
1989
|
if (this.scrollable) {
|
|
1651
1990
|
return {
|
|
@@ -1654,48 +1993,31 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1654
1993
|
}
|
|
1655
1994
|
return null;
|
|
1656
1995
|
},
|
|
1657
|
-
bodyStyle: function bodyStyle() {
|
|
1658
|
-
return this.getVirtualScrollerProp('contentStyle');
|
|
1659
|
-
},
|
|
1660
|
-
expandedRowId: function expandedRowId() {
|
|
1661
|
-
return utils.UniqueComponentId();
|
|
1662
|
-
},
|
|
1663
|
-
nameAttributeSelector: function nameAttributeSelector() {
|
|
1664
|
-
return utils.UniqueComponentId();
|
|
1665
|
-
},
|
|
1996
|
+
bodyStyle: function bodyStyle() {
|
|
1997
|
+
return this.getVirtualScrollerProp('contentStyle');
|
|
1998
|
+
},
|
|
1666
1999
|
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1667
|
-
var _this$$
|
|
2000
|
+
var _this$$parentInstance;
|
|
1668
2001
|
return {
|
|
1669
2002
|
context: {
|
|
1670
|
-
scrollable: (_this$$
|
|
2003
|
+
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
|
|
1671
2004
|
}
|
|
1672
2005
|
};
|
|
2006
|
+
},
|
|
2007
|
+
expandedRowId: function expandedRowId() {
|
|
2008
|
+
return utils.UniqueComponentId();
|
|
2009
|
+
},
|
|
2010
|
+
nameAttributeSelector: function nameAttributeSelector() {
|
|
2011
|
+
return utils.UniqueComponentId();
|
|
1673
2012
|
}
|
|
1674
2013
|
},
|
|
1675
2014
|
components: {
|
|
1676
|
-
|
|
1677
|
-
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1678
|
-
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
2015
|
+
DTBodyRow: script$8
|
|
1679
2016
|
}
|
|
1680
2017
|
};
|
|
1681
2018
|
|
|
1682
|
-
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); }
|
|
1683
|
-
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; }
|
|
1684
|
-
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; }
|
|
1685
|
-
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; }
|
|
1686
|
-
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1687
|
-
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); }
|
|
1688
|
-
var _hoisted_1$4 = ["colspan"];
|
|
1689
|
-
var _hoisted_2$1 = ["onClick"];
|
|
1690
|
-
var _hoisted_3$1 = ["tabindex", "aria-selected", "onClick", "onDblclick", "onContextmenu", "onKeydown", "onDragstart", "onDragover", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1691
|
-
var _hoisted_4 = ["id"];
|
|
1692
|
-
var _hoisted_5 = ["colspan"];
|
|
1693
|
-
var _hoisted_6 = ["colspan"];
|
|
1694
|
-
var _hoisted_7 = ["colspan"];
|
|
1695
2019
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1696
|
-
var
|
|
1697
|
-
var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
1698
|
-
var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
|
|
2020
|
+
var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
|
|
1699
2021
|
return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
1700
2022
|
ref: $options.bodyRef,
|
|
1701
2023
|
"class": _ctx.cx('tbody'),
|
|
@@ -1703,165 +2025,119 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1703
2025
|
style: $options.bodyStyle
|
|
1704
2026
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1705
2027
|
key: 0
|
|
1706
|
-
}, vue.renderList($props.value, function (rowData,
|
|
1707
|
-
return vue.openBlock(), vue.
|
|
1708
|
-
key:
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
role: "row",
|
|
1747
|
-
"aria-selected": $props.selectionMode ? $options.isSelected(rowData) : null,
|
|
1748
|
-
onClick: function onClick($event) {
|
|
1749
|
-
return $options.onRowClick($event, rowData, $options.getRowIndex(index));
|
|
1750
|
-
},
|
|
1751
|
-
onDblclick: function onDblclick($event) {
|
|
1752
|
-
return $options.onRowDblClick($event, rowData, $options.getRowIndex(index));
|
|
1753
|
-
},
|
|
1754
|
-
onContextmenu: function onContextmenu($event) {
|
|
1755
|
-
return $options.onRowRightClick($event, rowData, $options.getRowIndex(index));
|
|
1756
|
-
},
|
|
1757
|
-
onTouchend: _cache[9] || (_cache[9] = function ($event) {
|
|
1758
|
-
return $options.onRowTouchEnd($event);
|
|
2028
|
+
}, vue.renderList($props.value, function (rowData, rowIndex) {
|
|
2029
|
+
return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
2030
|
+
key: rowIndex,
|
|
2031
|
+
rowData: rowData,
|
|
2032
|
+
index: rowIndex,
|
|
2033
|
+
value: $props.value,
|
|
2034
|
+
columns: $props.columns,
|
|
2035
|
+
frozenRow: $props.frozenRow,
|
|
2036
|
+
empty: $props.empty,
|
|
2037
|
+
first: $props.first,
|
|
2038
|
+
dataKey: $props.dataKey,
|
|
2039
|
+
selection: $props.selection,
|
|
2040
|
+
selectionKeys: $props.selectionKeys,
|
|
2041
|
+
selectionMode: $props.selectionMode,
|
|
2042
|
+
contextMenu: $props.contextMenu,
|
|
2043
|
+
contextMenuSelection: $props.contextMenuSelection,
|
|
2044
|
+
rowGroupMode: $props.rowGroupMode,
|
|
2045
|
+
groupRowsBy: $props.groupRowsBy,
|
|
2046
|
+
expandableRowGroups: $props.expandableRowGroups,
|
|
2047
|
+
rowClass: $props.rowClass,
|
|
2048
|
+
rowStyle: $props.rowStyle,
|
|
2049
|
+
editMode: $props.editMode,
|
|
2050
|
+
compareSelectionBy: $props.compareSelectionBy,
|
|
2051
|
+
scrollable: $props.scrollable,
|
|
2052
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
2053
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
2054
|
+
expandedRows: $props.expandedRows,
|
|
2055
|
+
expandedRowGroups: $props.expandedRowGroups,
|
|
2056
|
+
editingRows: $props.editingRows,
|
|
2057
|
+
editingRowKeys: $props.editingRowKeys,
|
|
2058
|
+
templates: $props.templates,
|
|
2059
|
+
responsiveLayout: $props.responsiveLayout,
|
|
2060
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
2061
|
+
isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
|
|
2062
|
+
editingMeta: $props.editingMeta,
|
|
2063
|
+
rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
|
|
2064
|
+
expandedRowId: $options.expandedRowId,
|
|
2065
|
+
nameAttributeSelector: $options.nameAttributeSelector,
|
|
2066
|
+
onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
2067
|
+
return _ctx.$emit('rowgroup-toggle', $event);
|
|
1759
2068
|
}),
|
|
1760
|
-
|
|
1761
|
-
return
|
|
1762
|
-
}, ["self"]),
|
|
1763
|
-
onMousedown: _cache[10] || (_cache[10] = function ($event) {
|
|
1764
|
-
return $options.onRowMouseDown($event);
|
|
2069
|
+
onRowClick: _cache[1] || (_cache[1] = function ($event) {
|
|
2070
|
+
return _ctx.$emit('row-click', $event);
|
|
1765
2071
|
}),
|
|
1766
|
-
|
|
1767
|
-
return
|
|
1768
|
-
},
|
|
1769
|
-
onDragover: function onDragover($event) {
|
|
1770
|
-
return $options.onRowDragOver($event, $options.getRowIndex(index));
|
|
1771
|
-
},
|
|
1772
|
-
onDragleave: _cache[11] || (_cache[11] = function ($event) {
|
|
1773
|
-
return $options.onRowDragLeave($event);
|
|
2072
|
+
onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
|
|
2073
|
+
return _ctx.$emit('row-dblclick', $event);
|
|
1774
2074
|
}),
|
|
1775
|
-
|
|
1776
|
-
return
|
|
2075
|
+
onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
|
|
2076
|
+
return _ctx.$emit('row-rightclick', $event);
|
|
1777
2077
|
}),
|
|
1778
|
-
|
|
1779
|
-
return
|
|
1780
|
-
})
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
}), 256))], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1837
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
1838
|
-
id: $options.expandedRowId + '_' + index + '_expansion',
|
|
1839
|
-
"class": _ctx.cx('rowExpansion'),
|
|
1840
|
-
role: "row"
|
|
1841
|
-
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1842
|
-
colspan: $options.columnsLength
|
|
1843
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
1844
|
-
data: rowData,
|
|
1845
|
-
index: $options.getRowIndex(index)
|
|
1846
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16, _hoisted_4)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1847
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
1848
|
-
"class": _ctx.cx('rowGroupFooter'),
|
|
1849
|
-
role: "row"
|
|
1850
|
-
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1851
|
-
colspan: $options.columnsLength - 1
|
|
1852
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1853
|
-
data: rowData,
|
|
1854
|
-
index: $options.getRowIndex(index)
|
|
1855
|
-
}, null, 8, ["data", "index"]))], 16, _hoisted_6)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
1856
|
-
}), 256)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2078
|
+
onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
|
|
2079
|
+
return _ctx.$emit('row-touchend', $event);
|
|
2080
|
+
}),
|
|
2081
|
+
onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
|
|
2082
|
+
return _ctx.$emit('row-keydown', $event);
|
|
2083
|
+
}),
|
|
2084
|
+
onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
|
|
2085
|
+
return _ctx.$emit('row-mousedown', $event);
|
|
2086
|
+
}),
|
|
2087
|
+
onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
|
|
2088
|
+
return _ctx.$emit('row-dragstart', $event);
|
|
2089
|
+
}),
|
|
2090
|
+
onRowDragover: _cache[8] || (_cache[8] = function ($event) {
|
|
2091
|
+
return _ctx.$emit('row-dragover', $event);
|
|
2092
|
+
}),
|
|
2093
|
+
onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
|
|
2094
|
+
return _ctx.$emit('row-dragleave', $event);
|
|
2095
|
+
}),
|
|
2096
|
+
onRowDragend: _cache[10] || (_cache[10] = function ($event) {
|
|
2097
|
+
return _ctx.$emit('row-dragend', $event);
|
|
2098
|
+
}),
|
|
2099
|
+
onRowDrop: _cache[11] || (_cache[11] = function ($event) {
|
|
2100
|
+
return _ctx.$emit('row-drop', $event);
|
|
2101
|
+
}),
|
|
2102
|
+
onRowToggle: _cache[12] || (_cache[12] = function ($event) {
|
|
2103
|
+
return _ctx.$emit('row-toggle', $event);
|
|
2104
|
+
}),
|
|
2105
|
+
onRadioChange: _cache[13] || (_cache[13] = function ($event) {
|
|
2106
|
+
return _ctx.$emit('radio-change', $event);
|
|
2107
|
+
}),
|
|
2108
|
+
onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
|
|
2109
|
+
return _ctx.$emit('checkbox-change', $event);
|
|
2110
|
+
}),
|
|
2111
|
+
onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
|
|
2112
|
+
return _ctx.$emit('cell-edit-init', $event);
|
|
2113
|
+
}),
|
|
2114
|
+
onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
|
|
2115
|
+
return _ctx.$emit('cell-edit-complete', $event);
|
|
2116
|
+
}),
|
|
2117
|
+
onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
|
|
2118
|
+
return _ctx.$emit('cell-edit-cancel', $event);
|
|
2119
|
+
}),
|
|
2120
|
+
onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
|
|
2121
|
+
return _ctx.$emit('row-edit-init', $event);
|
|
2122
|
+
}),
|
|
2123
|
+
onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
|
|
2124
|
+
return _ctx.$emit('row-edit-save', $event);
|
|
2125
|
+
}),
|
|
2126
|
+
onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
|
|
2127
|
+
return _ctx.$emit('row-edit-cancel', $event);
|
|
2128
|
+
}),
|
|
2129
|
+
onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
|
|
2130
|
+
return _ctx.$emit('editing-meta-change', $event);
|
|
2131
|
+
}),
|
|
2132
|
+
unstyled: _ctx.unstyled,
|
|
2133
|
+
pt: _ctx.pt
|
|
2134
|
+
}, 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"]);
|
|
2135
|
+
}), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
1857
2136
|
key: 1,
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
1863
|
-
key: 0
|
|
1864
|
-
})) : vue.createCommentVNode("", true)], 16, _hoisted_7)], 16))], 16);
|
|
2137
|
+
empty: $props.empty,
|
|
2138
|
+
columns: $props.columns,
|
|
2139
|
+
templates: $props.templates
|
|
2140
|
+
}, null, 8, ["empty", "columns", "templates"]))], 16);
|
|
1865
2141
|
}
|
|
1866
2142
|
|
|
1867
2143
|
script$7.render = render$7;
|
|
@@ -1978,13 +2254,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1978
2254
|
|
|
1979
2255
|
script$6.render = render$6;
|
|
1980
2256
|
|
|
1981
|
-
function
|
|
1982
|
-
function
|
|
1983
|
-
function
|
|
1984
|
-
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
1985
|
-
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; } } }; }
|
|
1986
|
-
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); }
|
|
1987
|
-
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; }
|
|
2257
|
+
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; } } }; }
|
|
2258
|
+
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); }
|
|
2259
|
+
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; }
|
|
1988
2260
|
var script$5 = {
|
|
1989
2261
|
name: 'TableFooter',
|
|
1990
2262
|
hostName: 'DataTable',
|
|
@@ -1999,6 +2271,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1999
2271
|
"default": null
|
|
2000
2272
|
}
|
|
2001
2273
|
},
|
|
2274
|
+
provide: function provide() {
|
|
2275
|
+
return {
|
|
2276
|
+
$rows: this.d_footerRows,
|
|
2277
|
+
$columns: this.d_footerColumns
|
|
2278
|
+
};
|
|
2279
|
+
},
|
|
2280
|
+
data: function data() {
|
|
2281
|
+
return {
|
|
2282
|
+
d_footerRows: new utils.HelperSet({
|
|
2283
|
+
type: 'Row'
|
|
2284
|
+
}),
|
|
2285
|
+
d_footerColumns: new utils.HelperSet({
|
|
2286
|
+
type: 'Column'
|
|
2287
|
+
})
|
|
2288
|
+
};
|
|
2289
|
+
},
|
|
2290
|
+
beforeUnmount: function beforeUnmount() {
|
|
2291
|
+
this.d_footerRows.clear();
|
|
2292
|
+
this.d_footerColumns.clear();
|
|
2293
|
+
},
|
|
2002
2294
|
methods: {
|
|
2003
2295
|
columnProp: function columnProp(col, prop) {
|
|
2004
2296
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2043,36 +2335,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2043
2335
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
2044
2336
|
},
|
|
2045
2337
|
getFooterRows: function getFooterRows() {
|
|
2046
|
-
var
|
|
2047
|
-
|
|
2048
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
2049
|
-
var _iterator = _createForOfIteratorHelper$2(columnGroup.children["default"]()),
|
|
2050
|
-
_step;
|
|
2051
|
-
try {
|
|
2052
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2053
|
-
var child = _step.value;
|
|
2054
|
-
if (child.type.name === 'Row') {
|
|
2055
|
-
rows.push(child);
|
|
2056
|
-
} else if (child.children && child.children instanceof Array) {
|
|
2057
|
-
rows = child.children;
|
|
2058
|
-
}
|
|
2059
|
-
}
|
|
2060
|
-
} catch (err) {
|
|
2061
|
-
_iterator.e(err);
|
|
2062
|
-
} finally {
|
|
2063
|
-
_iterator.f();
|
|
2064
|
-
}
|
|
2065
|
-
return rows;
|
|
2066
|
-
}
|
|
2338
|
+
var _this$d_footerRows;
|
|
2339
|
+
return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
|
|
2067
2340
|
},
|
|
2068
2341
|
getFooterColumns: function getFooterColumns(row) {
|
|
2069
|
-
var
|
|
2070
|
-
|
|
2071
|
-
row.children["default"]().forEach(function (child) {
|
|
2072
|
-
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);
|
|
2073
|
-
});
|
|
2074
|
-
return cols;
|
|
2075
|
-
}
|
|
2342
|
+
var _this$d_footerColumns;
|
|
2343
|
+
return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
|
|
2076
2344
|
}
|
|
2077
2345
|
},
|
|
2078
2346
|
computed: {
|
|
@@ -2081,20 +2349,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2081
2349
|
if (this.columnGroup) {
|
|
2082
2350
|
hasFooter = true;
|
|
2083
2351
|
} else if (this.columns) {
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2352
|
+
var _iterator = _createForOfIteratorHelper$1(this.columns),
|
|
2353
|
+
_step;
|
|
2086
2354
|
try {
|
|
2087
|
-
for (
|
|
2088
|
-
var col =
|
|
2355
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2356
|
+
var col = _step.value;
|
|
2089
2357
|
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
2090
2358
|
hasFooter = true;
|
|
2091
2359
|
break;
|
|
2092
2360
|
}
|
|
2093
2361
|
}
|
|
2094
2362
|
} catch (err) {
|
|
2095
|
-
|
|
2363
|
+
_iterator.e(err);
|
|
2096
2364
|
} finally {
|
|
2097
|
-
|
|
2365
|
+
_iterator.f();
|
|
2098
2366
|
}
|
|
2099
2367
|
}
|
|
2100
2368
|
return hasFooter;
|
|
@@ -2384,6 +2652,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2384
2652
|
onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
|
|
2385
2653
|
switch (event.code) {
|
|
2386
2654
|
case 'Enter':
|
|
2655
|
+
case 'NumpadEnter':
|
|
2387
2656
|
case 'Space':
|
|
2388
2657
|
this.toggleMenu(event);
|
|
2389
2658
|
break;
|
|
@@ -3165,6 +3434,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3165
3434
|
},
|
|
3166
3435
|
context: {
|
|
3167
3436
|
index: this.index,
|
|
3437
|
+
sortable: this.column.props.sortable === '' || this.column.props.sortable,
|
|
3168
3438
|
sorted: this.isColumnSorted(),
|
|
3169
3439
|
resizable: this.resizableColumns,
|
|
3170
3440
|
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,
|
|
@@ -3185,7 +3455,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3185
3455
|
});
|
|
3186
3456
|
},
|
|
3187
3457
|
onKeyDown: function onKeyDown(event) {
|
|
3188
|
-
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3458
|
+
if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3189
3459
|
this.$emit('column-click', {
|
|
3190
3460
|
originalEvent: event,
|
|
3191
3461
|
column: this.column
|
|
@@ -3200,16 +3470,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3200
3470
|
});
|
|
3201
3471
|
},
|
|
3202
3472
|
onDragStart: function onDragStart(event) {
|
|
3203
|
-
this.$emit('column-dragstart',
|
|
3473
|
+
this.$emit('column-dragstart', {
|
|
3474
|
+
originalEvent: event,
|
|
3475
|
+
column: this.column
|
|
3476
|
+
});
|
|
3204
3477
|
},
|
|
3205
3478
|
onDragOver: function onDragOver(event) {
|
|
3206
|
-
this.$emit('column-dragover',
|
|
3479
|
+
this.$emit('column-dragover', {
|
|
3480
|
+
originalEvent: event,
|
|
3481
|
+
column: this.column
|
|
3482
|
+
});
|
|
3207
3483
|
},
|
|
3208
3484
|
onDragLeave: function onDragLeave(event) {
|
|
3209
|
-
this.$emit('column-dragleave',
|
|
3485
|
+
this.$emit('column-dragleave', {
|
|
3486
|
+
originalEvent: event,
|
|
3487
|
+
column: this.column
|
|
3488
|
+
});
|
|
3210
3489
|
},
|
|
3211
3490
|
onDrop: function onDrop(event) {
|
|
3212
|
-
this.$emit('column-drop',
|
|
3491
|
+
this.$emit('column-drop', {
|
|
3492
|
+
originalEvent: event,
|
|
3493
|
+
column: this.column
|
|
3494
|
+
});
|
|
3213
3495
|
},
|
|
3214
3496
|
onResizeStart: function onResizeStart(event) {
|
|
3215
3497
|
this.$emit('column-resizestart', event);
|
|
@@ -3251,8 +3533,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3251
3533
|
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
3252
3534
|
if (filterRow) {
|
|
3253
3535
|
var index = utils.DomHandler.index(this.$el);
|
|
3254
|
-
filterRow.children[index]
|
|
3255
|
-
|
|
3536
|
+
if (filterRow.children[index]) {
|
|
3537
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
3538
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
3539
|
+
}
|
|
3256
3540
|
}
|
|
3257
3541
|
}
|
|
3258
3542
|
},
|
|
@@ -3449,13 +3733,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3449
3733
|
|
|
3450
3734
|
script$2.render = render$2;
|
|
3451
3735
|
|
|
3452
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
3453
|
-
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."); }
|
|
3454
|
-
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
3455
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
3456
|
-
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; } } }; }
|
|
3457
|
-
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); }
|
|
3458
|
-
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; }
|
|
3459
3736
|
var script$1 = {
|
|
3460
3737
|
name: 'TableHeader',
|
|
3461
3738
|
hostName: 'DataTable',
|
|
@@ -3531,6 +3808,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3531
3808
|
"default": null
|
|
3532
3809
|
}
|
|
3533
3810
|
},
|
|
3811
|
+
provide: function provide() {
|
|
3812
|
+
return {
|
|
3813
|
+
$rows: this.d_headerRows,
|
|
3814
|
+
$columns: this.d_headerColumns
|
|
3815
|
+
};
|
|
3816
|
+
},
|
|
3817
|
+
data: function data() {
|
|
3818
|
+
return {
|
|
3819
|
+
d_headerRows: new utils.HelperSet({
|
|
3820
|
+
type: 'Row'
|
|
3821
|
+
}),
|
|
3822
|
+
d_headerColumns: new utils.HelperSet({
|
|
3823
|
+
type: 'Column'
|
|
3824
|
+
})
|
|
3825
|
+
};
|
|
3826
|
+
},
|
|
3827
|
+
beforeUnmount: function beforeUnmount() {
|
|
3828
|
+
this.d_headerRows.clear();
|
|
3829
|
+
this.d_headerColumns.clear();
|
|
3830
|
+
},
|
|
3534
3831
|
methods: {
|
|
3535
3832
|
columnProp: function columnProp(col, prop) {
|
|
3536
3833
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -3603,36 +3900,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3603
3900
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
3604
3901
|
},
|
|
3605
3902
|
getHeaderRows: function getHeaderRows() {
|
|
3606
|
-
var
|
|
3607
|
-
|
|
3608
|
-
if (columnGroup.children && columnGroup.children["default"]) {
|
|
3609
|
-
var _iterator = _createForOfIteratorHelper$1(columnGroup.children["default"]()),
|
|
3610
|
-
_step;
|
|
3611
|
-
try {
|
|
3612
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
3613
|
-
var child = _step.value;
|
|
3614
|
-
if (child.type.name === 'Row') {
|
|
3615
|
-
rows.push(child);
|
|
3616
|
-
} else if (child.children && child.children instanceof Array) {
|
|
3617
|
-
rows = child.children;
|
|
3618
|
-
}
|
|
3619
|
-
}
|
|
3620
|
-
} catch (err) {
|
|
3621
|
-
_iterator.e(err);
|
|
3622
|
-
} finally {
|
|
3623
|
-
_iterator.f();
|
|
3624
|
-
}
|
|
3625
|
-
return rows;
|
|
3626
|
-
}
|
|
3903
|
+
var _this$d_headerRows;
|
|
3904
|
+
return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
|
|
3627
3905
|
},
|
|
3628
3906
|
getHeaderColumns: function getHeaderColumns(row) {
|
|
3629
|
-
var
|
|
3630
|
-
|
|
3631
|
-
row.children["default"]().forEach(function (child) {
|
|
3632
|
-
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);
|
|
3633
|
-
});
|
|
3634
|
-
return cols;
|
|
3635
|
-
}
|
|
3907
|
+
var _this$d_headerColumns;
|
|
3908
|
+
return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
|
|
3636
3909
|
}
|
|
3637
3910
|
},
|
|
3638
3911
|
computed: {
|
|
@@ -3873,6 +4146,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3873
4146
|
script$1.render = render$1;
|
|
3874
4147
|
|
|
3875
4148
|
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); }
|
|
4149
|
+
var _excluded = ["expanded"];
|
|
4150
|
+
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; }
|
|
4151
|
+
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; }
|
|
3876
4152
|
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; }
|
|
3877
4153
|
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; }
|
|
3878
4154
|
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; }
|
|
@@ -3891,8 +4167,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3891
4167
|
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; }
|
|
3892
4168
|
var script = {
|
|
3893
4169
|
name: 'DataTable',
|
|
3894
|
-
"extends": script$
|
|
4170
|
+
"extends": script$c,
|
|
3895
4171
|
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'],
|
|
4172
|
+
provide: function provide() {
|
|
4173
|
+
return {
|
|
4174
|
+
$columns: this.d_columns,
|
|
4175
|
+
$columnGroups: this.d_columnGroups
|
|
4176
|
+
};
|
|
4177
|
+
},
|
|
3896
4178
|
data: function data() {
|
|
3897
4179
|
return {
|
|
3898
4180
|
d_first: this.first,
|
|
@@ -3903,11 +4185,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3903
4185
|
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
3904
4186
|
d_groupRowsSortMeta: null,
|
|
3905
4187
|
d_selectionKeys: null,
|
|
3906
|
-
d_expandedRowKeys: null,
|
|
3907
4188
|
d_columnOrder: null,
|
|
3908
4189
|
d_editingRowKeys: null,
|
|
3909
4190
|
d_editingMeta: {},
|
|
3910
|
-
d_filters: this.cloneFilters(this.filters)
|
|
4191
|
+
d_filters: this.cloneFilters(this.filters),
|
|
4192
|
+
d_columns: new utils.HelperSet({
|
|
4193
|
+
type: 'Column'
|
|
4194
|
+
}),
|
|
4195
|
+
d_columnGroups: new utils.HelperSet({
|
|
4196
|
+
type: 'ColumnGroup'
|
|
4197
|
+
})
|
|
3911
4198
|
};
|
|
3912
4199
|
},
|
|
3913
4200
|
rowTouched: false,
|
|
@@ -3921,6 +4208,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3921
4208
|
colReorderIconWidth: null,
|
|
3922
4209
|
colReorderIconHeight: null,
|
|
3923
4210
|
draggedColumn: null,
|
|
4211
|
+
draggedColumnElement: null,
|
|
3924
4212
|
draggedRowIndex: null,
|
|
3925
4213
|
droppedRowIndex: null,
|
|
3926
4214
|
rowDragging: null,
|
|
@@ -3954,11 +4242,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3954
4242
|
}
|
|
3955
4243
|
}
|
|
3956
4244
|
},
|
|
3957
|
-
expandedRows: function expandedRows(newValue) {
|
|
3958
|
-
if (this.dataKey) {
|
|
3959
|
-
this.updateExpandedRowKeys(newValue);
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
4245
|
editingRows: {
|
|
3963
4246
|
immediate: true,
|
|
3964
4247
|
handler: function handler(newValue) {
|
|
@@ -3991,6 +4274,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3991
4274
|
this.unbindColumnResizeEvents();
|
|
3992
4275
|
this.destroyStyleElement();
|
|
3993
4276
|
this.destroyResponsiveStyle();
|
|
4277
|
+
this.d_columns.clear();
|
|
4278
|
+
this.d_columnGroups.clear();
|
|
3994
4279
|
},
|
|
3995
4280
|
updated: function updated() {
|
|
3996
4281
|
if (this.isStateful()) {
|
|
@@ -4005,6 +4290,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4005
4290
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
4006
4291
|
},
|
|
4007
4292
|
onPage: function onPage(event) {
|
|
4293
|
+
var _this = this;
|
|
4008
4294
|
this.clearEditingMetaData();
|
|
4009
4295
|
this.d_first = event.first;
|
|
4010
4296
|
this.d_rows = event.rows;
|
|
@@ -4014,15 +4300,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4014
4300
|
this.$emit('update:first', this.d_first);
|
|
4015
4301
|
this.$emit('update:rows', this.d_rows);
|
|
4016
4302
|
this.$emit('page', pageEvent);
|
|
4017
|
-
this.$
|
|
4303
|
+
this.$nextTick(function () {
|
|
4304
|
+
_this.$emit('value-change', _this.processedData);
|
|
4305
|
+
});
|
|
4018
4306
|
},
|
|
4019
4307
|
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
4308
|
+
var _this2 = this;
|
|
4020
4309
|
var event = e.originalEvent;
|
|
4021
4310
|
var column = e.column;
|
|
4022
4311
|
if (this.columnProp(column, 'sortable')) {
|
|
4023
4312
|
var targetNode = event.target;
|
|
4024
4313
|
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
4025
|
-
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]')) {
|
|
4314
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !utils.DomHandler.isClickable(event.target)) {
|
|
4026
4315
|
utils.DomHandler.clearSelection();
|
|
4027
4316
|
if (this.sortMode === 'single') {
|
|
4028
4317
|
if (this.d_sortField === columnField) {
|
|
@@ -4050,12 +4339,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4050
4339
|
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
4051
4340
|
}
|
|
4052
4341
|
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
4053
|
-
this.$
|
|
4342
|
+
this.$nextTick(function () {
|
|
4343
|
+
_this2.$emit('value-change', _this2.processedData);
|
|
4344
|
+
});
|
|
4054
4345
|
}
|
|
4055
4346
|
}
|
|
4056
4347
|
},
|
|
4057
4348
|
sortSingle: function sortSingle(value) {
|
|
4058
|
-
var
|
|
4349
|
+
var _this3 = this;
|
|
4059
4350
|
this.clearEditingMetaData();
|
|
4060
4351
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
4061
4352
|
this.d_multiSortMeta = [{
|
|
@@ -4085,12 +4376,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4085
4376
|
data.sort(function (data1, data2) {
|
|
4086
4377
|
var value1 = resolvedFieldData.get(data1);
|
|
4087
4378
|
var value2 = resolvedFieldData.get(data2);
|
|
4088
|
-
return utils.ObjectUtils.sort(value1, value2,
|
|
4379
|
+
return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
|
|
4089
4380
|
});
|
|
4090
4381
|
return data;
|
|
4091
4382
|
},
|
|
4092
4383
|
sortMultiple: function sortMultiple(value) {
|
|
4093
|
-
var
|
|
4384
|
+
var _this4 = this;
|
|
4094
4385
|
this.clearEditingMetaData();
|
|
4095
4386
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
|
|
4096
4387
|
var firstSortMeta = this.d_multiSortMeta[0];
|
|
@@ -4101,7 +4392,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4101
4392
|
}
|
|
4102
4393
|
var data = _toConsumableArray(value);
|
|
4103
4394
|
data.sort(function (data1, data2) {
|
|
4104
|
-
return
|
|
4395
|
+
return _this4.multisortField(data1, data2, 0);
|
|
4105
4396
|
});
|
|
4106
4397
|
return data;
|
|
4107
4398
|
},
|
|
@@ -4157,7 +4448,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4157
4448
|
return Object.fromEntries(entries);
|
|
4158
4449
|
},
|
|
4159
4450
|
filter: function filter(data) {
|
|
4160
|
-
var
|
|
4451
|
+
var _this5 = this;
|
|
4161
4452
|
if (!data) {
|
|
4162
4453
|
return;
|
|
4163
4454
|
}
|
|
@@ -4166,7 +4457,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4166
4457
|
var globalFilterFieldsArray;
|
|
4167
4458
|
if (activeFilters['global']) {
|
|
4168
4459
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4169
|
-
return
|
|
4460
|
+
return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
|
|
4170
4461
|
});
|
|
4171
4462
|
}
|
|
4172
4463
|
var filteredValue = [];
|
|
@@ -4228,7 +4519,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4228
4519
|
var filterEvent = this.createLazyLoadEvent();
|
|
4229
4520
|
filterEvent.filteredValue = filteredValue;
|
|
4230
4521
|
this.$emit('filter', filterEvent);
|
|
4231
|
-
this.$
|
|
4522
|
+
this.$nextTick(function () {
|
|
4523
|
+
_this5.$emit('value-change', _this5.processedData);
|
|
4524
|
+
});
|
|
4232
4525
|
return filteredValue;
|
|
4233
4526
|
},
|
|
4234
4527
|
executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
|
|
@@ -4384,6 +4677,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4384
4677
|
this.onEndKey(event, row, rowIndex, slotProps);
|
|
4385
4678
|
break;
|
|
4386
4679
|
case 'Enter':
|
|
4680
|
+
case 'NumpadEnter':
|
|
4387
4681
|
this.onEnterKey(event, rowData, rowIndex);
|
|
4388
4682
|
break;
|
|
4389
4683
|
case 'Space':
|
|
@@ -4634,40 +4928,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4634
4928
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
4635
4929
|
}
|
|
4636
4930
|
},
|
|
4637
|
-
|
|
4638
|
-
if (
|
|
4639
|
-
this.
|
|
4640
|
-
var _iterator4 = _createForOfIteratorHelper(
|
|
4931
|
+
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4932
|
+
if (editingRows && editingRows.length) {
|
|
4933
|
+
this.d_editingRowKeys = {};
|
|
4934
|
+
var _iterator4 = _createForOfIteratorHelper(editingRows),
|
|
4641
4935
|
_step4;
|
|
4642
4936
|
try {
|
|
4643
4937
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4644
4938
|
var data = _step4.value;
|
|
4645
|
-
this.
|
|
4939
|
+
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4646
4940
|
}
|
|
4647
4941
|
} catch (err) {
|
|
4648
4942
|
_iterator4.e(err);
|
|
4649
4943
|
} finally {
|
|
4650
4944
|
_iterator4.f();
|
|
4651
4945
|
}
|
|
4652
|
-
} else {
|
|
4653
|
-
this.d_expandedRowKeys = null;
|
|
4654
|
-
}
|
|
4655
|
-
},
|
|
4656
|
-
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4657
|
-
if (editingRows && editingRows.length) {
|
|
4658
|
-
this.d_editingRowKeys = {};
|
|
4659
|
-
var _iterator5 = _createForOfIteratorHelper(editingRows),
|
|
4660
|
-
_step5;
|
|
4661
|
-
try {
|
|
4662
|
-
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
4663
|
-
var data = _step5.value;
|
|
4664
|
-
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4665
|
-
}
|
|
4666
|
-
} catch (err) {
|
|
4667
|
-
_iterator5.e(err);
|
|
4668
|
-
} finally {
|
|
4669
|
-
_iterator5.f();
|
|
4670
|
-
}
|
|
4671
4946
|
} else {
|
|
4672
4947
|
this.d_editingRowKeys = null;
|
|
4673
4948
|
}
|
|
@@ -4705,7 +4980,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4705
4980
|
this.$emit('update:selection', _selection);
|
|
4706
4981
|
},
|
|
4707
4982
|
exportCSV: function exportCSV(options, data) {
|
|
4708
|
-
var
|
|
4983
|
+
var _this6 = this;
|
|
4709
4984
|
var csv = "\uFEFF";
|
|
4710
4985
|
if (!data) {
|
|
4711
4986
|
data = this.processedData;
|
|
@@ -4727,16 +5002,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4727
5002
|
data.forEach(function (record) {
|
|
4728
5003
|
csv += '\n';
|
|
4729
5004
|
var rowInitiated = false;
|
|
4730
|
-
for (var _i = 0; _i <
|
|
4731
|
-
var _column =
|
|
4732
|
-
if (
|
|
4733
|
-
if (rowInitiated) csv +=
|
|
4734
|
-
var cellData = utils.ObjectUtils.resolveFieldData(record,
|
|
5005
|
+
for (var _i = 0; _i < _this6.columns.length; _i++) {
|
|
5006
|
+
var _column = _this6.columns[_i];
|
|
5007
|
+
if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
|
|
5008
|
+
if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
|
|
5009
|
+
var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
|
|
4735
5010
|
if (cellData != null) {
|
|
4736
|
-
if (
|
|
4737
|
-
cellData =
|
|
5011
|
+
if (_this6.exportFunction) {
|
|
5012
|
+
cellData = _this6.exportFunction({
|
|
4738
5013
|
data: cellData,
|
|
4739
|
-
field:
|
|
5014
|
+
field: _this6.columnProp(_column, 'field')
|
|
4740
5015
|
});
|
|
4741
5016
|
} else cellData = String(cellData).replace(/"/g, '""');
|
|
4742
5017
|
} else cellData = '';
|
|
@@ -4839,19 +5114,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4839
5114
|
this.styleElement.innerHTML = innerHTML;
|
|
4840
5115
|
},
|
|
4841
5116
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
4842
|
-
var
|
|
5117
|
+
var _this7 = this;
|
|
4843
5118
|
if (!this.documentColumnResizeListener) {
|
|
4844
5119
|
this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
|
|
4845
|
-
if (
|
|
4846
|
-
|
|
5120
|
+
if (_this7.columnResizing) {
|
|
5121
|
+
_this7.onColumnResize(event);
|
|
4847
5122
|
}
|
|
4848
5123
|
});
|
|
4849
5124
|
}
|
|
4850
5125
|
if (!this.documentColumnResizeEndListener) {
|
|
4851
5126
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
4852
|
-
if (
|
|
4853
|
-
|
|
4854
|
-
|
|
5127
|
+
if (_this7.columnResizing) {
|
|
5128
|
+
_this7.columnResizing = false;
|
|
5129
|
+
_this7.onColumnResizeEnd();
|
|
4855
5130
|
}
|
|
4856
5131
|
});
|
|
4857
5132
|
}
|
|
@@ -4873,23 +5148,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4873
5148
|
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
|
|
4874
5149
|
}
|
|
4875
5150
|
},
|
|
4876
|
-
onColumnHeaderDragStart: function onColumnHeaderDragStart(
|
|
5151
|
+
onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
|
|
5152
|
+
var event = e.originalEvent,
|
|
5153
|
+
column = e.column;
|
|
4877
5154
|
if (this.columnResizing) {
|
|
4878
5155
|
event.preventDefault();
|
|
4879
5156
|
return;
|
|
4880
5157
|
}
|
|
4881
5158
|
this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
4882
5159
|
this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
4883
|
-
this.draggedColumn =
|
|
5160
|
+
this.draggedColumn = column;
|
|
5161
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
4884
5162
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
4885
5163
|
},
|
|
4886
|
-
onColumnHeaderDragOver: function onColumnHeaderDragOver(
|
|
5164
|
+
onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
|
|
5165
|
+
var event = e.originalEvent,
|
|
5166
|
+
column = e.column;
|
|
4887
5167
|
var dropHeader = this.findParentHeader(event.target);
|
|
4888
|
-
if (this.reorderableColumns && this.
|
|
5168
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
4889
5169
|
event.preventDefault();
|
|
4890
5170
|
var containerOffset = utils.DomHandler.getOffset(this.$el);
|
|
4891
5171
|
var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
|
|
4892
|
-
if (this.
|
|
5172
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
4893
5173
|
var targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4894
5174
|
var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4895
5175
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
@@ -4908,34 +5188,67 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4908
5188
|
}
|
|
4909
5189
|
}
|
|
4910
5190
|
},
|
|
4911
|
-
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(
|
|
4912
|
-
|
|
5191
|
+
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
|
|
5192
|
+
var event = e.originalEvent;
|
|
5193
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
4913
5194
|
event.preventDefault();
|
|
4914
5195
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4915
5196
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4916
5197
|
}
|
|
4917
5198
|
},
|
|
4918
|
-
onColumnHeaderDrop: function onColumnHeaderDrop(
|
|
5199
|
+
onColumnHeaderDrop: function onColumnHeaderDrop(e) {
|
|
5200
|
+
var _this8 = this;
|
|
5201
|
+
var event = e.originalEvent,
|
|
5202
|
+
column = e.column;
|
|
4919
5203
|
event.preventDefault();
|
|
4920
|
-
if (this.
|
|
4921
|
-
var dragIndex = utils.DomHandler.index(this.
|
|
5204
|
+
if (this.draggedColumnElement) {
|
|
5205
|
+
var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
|
|
4922
5206
|
var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
|
|
4923
5207
|
var allowDrop = dragIndex !== dropIndex;
|
|
4924
5208
|
if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
|
|
4925
5209
|
allowDrop = false;
|
|
4926
5210
|
}
|
|
4927
5211
|
if (allowDrop) {
|
|
4928
|
-
|
|
5212
|
+
var isSameColumn = function isSameColumn(col1, col2) {
|
|
5213
|
+
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');
|
|
5214
|
+
};
|
|
5215
|
+
var dragColIndex = this.columns.findIndex(function (child) {
|
|
5216
|
+
return isSameColumn(child, _this8.draggedColumn);
|
|
5217
|
+
});
|
|
5218
|
+
var dropColIndex = this.columns.findIndex(function (child) {
|
|
5219
|
+
return isSameColumn(child, column);
|
|
5220
|
+
});
|
|
5221
|
+
var widths = [];
|
|
5222
|
+
var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
5223
|
+
headers.forEach(function (header) {
|
|
5224
|
+
return widths.push(utils.DomHandler.getOuterWidth(header));
|
|
5225
|
+
});
|
|
5226
|
+
var movedItem = widths.find(function (_, index) {
|
|
5227
|
+
return index === dragColIndex;
|
|
5228
|
+
});
|
|
5229
|
+
var remainingItems = widths.filter(function (_, index) {
|
|
5230
|
+
return index !== dragColIndex;
|
|
5231
|
+
});
|
|
5232
|
+
var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
|
|
5233
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
5234
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
5235
|
+
dropColIndex++;
|
|
5236
|
+
}
|
|
5237
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
5238
|
+
dropColIndex--;
|
|
5239
|
+
}
|
|
5240
|
+
utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
4929
5241
|
this.updateReorderableColumns();
|
|
4930
5242
|
this.$emit('column-reorder', {
|
|
4931
5243
|
originalEvent: event,
|
|
4932
|
-
dragIndex:
|
|
4933
|
-
dropIndex:
|
|
5244
|
+
dragIndex: dragColIndex,
|
|
5245
|
+
dropIndex: dropColIndex
|
|
4934
5246
|
});
|
|
4935
5247
|
}
|
|
4936
5248
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4937
5249
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4938
|
-
this.
|
|
5250
|
+
this.draggedColumnElement.draggable = false;
|
|
5251
|
+
this.draggedColumnElement = null;
|
|
4939
5252
|
this.draggedColumn = null;
|
|
4940
5253
|
this.dropPosition = null;
|
|
4941
5254
|
}
|
|
@@ -5045,28 +5358,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5045
5358
|
event.preventDefault();
|
|
5046
5359
|
},
|
|
5047
5360
|
toggleRow: function toggleRow(event) {
|
|
5361
|
+
var _this9 = this;
|
|
5362
|
+
var expanded = event.expanded,
|
|
5363
|
+
rest = _objectWithoutProperties(event, _excluded);
|
|
5048
5364
|
var rowData = event.data;
|
|
5049
|
-
var
|
|
5050
|
-
var expandedRowIndex;
|
|
5051
|
-
var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5365
|
+
var expandedRows;
|
|
5052
5366
|
if (this.dataKey) {
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
expanded = expandedRowIndex > -1;
|
|
5057
|
-
}
|
|
5058
|
-
if (expanded) {
|
|
5059
|
-
if (expandedRowIndex == null) {
|
|
5060
|
-
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
5061
|
-
}
|
|
5062
|
-
_expandedRows.splice(expandedRowIndex, 1);
|
|
5063
|
-
this.$emit('update:expandedRows', _expandedRows);
|
|
5064
|
-
this.$emit('row-collapse', event);
|
|
5367
|
+
var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
5368
|
+
expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
|
|
5369
|
+
expanded ? expandedRows[value] = true : delete expandedRows[value];
|
|
5065
5370
|
} else {
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5371
|
+
expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5372
|
+
expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
|
|
5373
|
+
return !_this9.equals(rowData, d);
|
|
5374
|
+
});
|
|
5069
5375
|
}
|
|
5376
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
5377
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
5070
5378
|
},
|
|
5071
5379
|
toggleRowGroup: function toggleRowGroup(e) {
|
|
5072
5380
|
var event = e.originalEvent;
|
|
@@ -5136,7 +5444,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5136
5444
|
}
|
|
5137
5445
|
if (this.expandedRows) {
|
|
5138
5446
|
state.expandedRows = this.expandedRows;
|
|
5139
|
-
state.expandedRowKeys = this.d_expandedRowKeys;
|
|
5140
5447
|
}
|
|
5141
5448
|
if (this.expandedRowGroups) {
|
|
5142
5449
|
state.expandedRowGroups = this.expandedRowGroups;
|
|
@@ -5184,7 +5491,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5184
5491
|
this.d_columnOrder = restoredState.columnOrder;
|
|
5185
5492
|
}
|
|
5186
5493
|
if (restoredState.expandedRows) {
|
|
5187
|
-
this.d_expandedRowKeys = restoredState.expandedRowKeys;
|
|
5188
5494
|
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
5189
5495
|
}
|
|
5190
5496
|
if (restoredState.expandedRowGroups) {
|
|
@@ -5208,23 +5514,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5208
5514
|
state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
5209
5515
|
}
|
|
5210
5516
|
},
|
|
5517
|
+
addColumnWidthStyles: function addColumnWidthStyles(widths) {
|
|
5518
|
+
this.createStyleElement();
|
|
5519
|
+
var innerHTML = '';
|
|
5520
|
+
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\"]");
|
|
5521
|
+
widths.forEach(function (width, index) {
|
|
5522
|
+
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5523
|
+
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 ");
|
|
5524
|
+
});
|
|
5525
|
+
this.styleElement.innerHTML = innerHTML;
|
|
5526
|
+
},
|
|
5211
5527
|
restoreColumnWidths: function restoreColumnWidths() {
|
|
5212
5528
|
if (this.columnWidthsState) {
|
|
5213
5529
|
var widths = this.columnWidthsState.split(',');
|
|
5214
5530
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
5215
5531
|
this.$refs.table.style.width = this.tableWidthState;
|
|
5216
5532
|
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
5217
|
-
this.$el.style.width = this.tableWidthState;
|
|
5218
5533
|
}
|
|
5219
5534
|
if (utils.ObjectUtils.isNotEmpty(widths)) {
|
|
5220
|
-
this.
|
|
5221
|
-
var innerHTML = '';
|
|
5222
|
-
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\"]");
|
|
5223
|
-
widths.forEach(function (width, index) {
|
|
5224
|
-
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5225
|
-
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 ");
|
|
5226
|
-
});
|
|
5227
|
-
this.styleElement.innerHTML = innerHTML;
|
|
5535
|
+
this.addColumnWidthStyles(widths);
|
|
5228
5536
|
}
|
|
5229
5537
|
}
|
|
5230
5538
|
},
|
|
@@ -5295,9 +5603,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5295
5603
|
hasGlobalFilter: function hasGlobalFilter() {
|
|
5296
5604
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
5297
5605
|
},
|
|
5298
|
-
getChildren: function getChildren() {
|
|
5299
|
-
return this.$slots["default"] ? this.$slots["default"]() : null;
|
|
5300
|
-
},
|
|
5301
5606
|
onFilterChange: function onFilterChange(filters) {
|
|
5302
5607
|
this.d_filters = filters;
|
|
5303
5608
|
},
|
|
@@ -5327,10 +5632,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5327
5632
|
return cloned;
|
|
5328
5633
|
},
|
|
5329
5634
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5330
|
-
var
|
|
5635
|
+
var _this10 = this;
|
|
5331
5636
|
var columnOrder = [];
|
|
5332
5637
|
this.columns.forEach(function (col) {
|
|
5333
|
-
return columnOrder.push(
|
|
5638
|
+
return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
|
|
5334
5639
|
});
|
|
5335
5640
|
this.d_columnOrder = columnOrder;
|
|
5336
5641
|
},
|
|
@@ -5351,7 +5656,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5351
5656
|
var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
5352
5657
|
var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
|
|
5353
5658
|
var gridLinesSelector = ".p-datatable[".concat(this.attributeSelector, "].p-datatable-gridlines > ").concat(tableSelector);
|
|
5354
|
-
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
|
|
5659
|
+
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");
|
|
5355
5660
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
5356
5661
|
}
|
|
5357
5662
|
},
|
|
@@ -5367,22 +5672,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5367
5672
|
this.styleElement = null;
|
|
5368
5673
|
}
|
|
5369
5674
|
},
|
|
5370
|
-
recursiveGetChildren: function recursiveGetChildren(children, results) {
|
|
5371
|
-
var _this7 = this;
|
|
5372
|
-
if (!results) {
|
|
5373
|
-
results = [];
|
|
5374
|
-
}
|
|
5375
|
-
if (children && children.length) {
|
|
5376
|
-
children.forEach(function (child) {
|
|
5377
|
-
if (child.children instanceof Array) {
|
|
5378
|
-
results.concat(_this7.recursiveGetChildren(child.children, results));
|
|
5379
|
-
} else if (child.type.name == 'Column') {
|
|
5380
|
-
results.push(child);
|
|
5381
|
-
}
|
|
5382
|
-
});
|
|
5383
|
-
}
|
|
5384
|
-
return results;
|
|
5385
|
-
},
|
|
5386
5675
|
dataToRender: function dataToRender(data) {
|
|
5387
5676
|
var _data = data || this.processedData;
|
|
5388
5677
|
if (_data && this.paginator) {
|
|
@@ -5400,27 +5689,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5400
5689
|
},
|
|
5401
5690
|
computed: {
|
|
5402
5691
|
columns: function columns() {
|
|
5403
|
-
var
|
|
5404
|
-
if (!children) {
|
|
5405
|
-
return;
|
|
5406
|
-
}
|
|
5407
|
-
var cols = this.recursiveGetChildren(children, []);
|
|
5692
|
+
var cols = this.d_columns.get(this);
|
|
5408
5693
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5409
5694
|
var orderedColumns = [];
|
|
5410
|
-
var
|
|
5411
|
-
|
|
5695
|
+
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5696
|
+
_step5;
|
|
5412
5697
|
try {
|
|
5413
|
-
for (
|
|
5414
|
-
var columnKey =
|
|
5698
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
5699
|
+
var columnKey = _step5.value;
|
|
5415
5700
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5416
5701
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5417
5702
|
orderedColumns.push(column);
|
|
5418
5703
|
}
|
|
5419
5704
|
}
|
|
5420
5705
|
} catch (err) {
|
|
5421
|
-
|
|
5706
|
+
_iterator5.e(err);
|
|
5422
5707
|
} finally {
|
|
5423
|
-
|
|
5708
|
+
_iterator5.f();
|
|
5424
5709
|
}
|
|
5425
5710
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5426
5711
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5428,52 +5713,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5428
5713
|
}
|
|
5429
5714
|
return cols;
|
|
5430
5715
|
},
|
|
5716
|
+
columnGroups: function columnGroups() {
|
|
5717
|
+
return this.d_columnGroups.get(this);
|
|
5718
|
+
},
|
|
5431
5719
|
headerColumnGroup: function headerColumnGroup() {
|
|
5432
|
-
var
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
5438
|
-
var child = _step7.value;
|
|
5439
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
5440
|
-
return child;
|
|
5441
|
-
}
|
|
5442
|
-
}
|
|
5443
|
-
} catch (err) {
|
|
5444
|
-
_iterator7.e(err);
|
|
5445
|
-
} finally {
|
|
5446
|
-
_iterator7.f();
|
|
5447
|
-
}
|
|
5448
|
-
}
|
|
5449
|
-
return null;
|
|
5720
|
+
var _this$columnGroups,
|
|
5721
|
+
_this11 = this;
|
|
5722
|
+
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5723
|
+
return _this11.columnProp(group, 'type') === 'header';
|
|
5724
|
+
});
|
|
5450
5725
|
},
|
|
5451
5726
|
footerColumnGroup: function footerColumnGroup() {
|
|
5452
|
-
var
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
5458
|
-
var child = _step8.value;
|
|
5459
|
-
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
5460
|
-
return child;
|
|
5461
|
-
}
|
|
5462
|
-
}
|
|
5463
|
-
} catch (err) {
|
|
5464
|
-
_iterator8.e(err);
|
|
5465
|
-
} finally {
|
|
5466
|
-
_iterator8.f();
|
|
5467
|
-
}
|
|
5468
|
-
}
|
|
5469
|
-
return null;
|
|
5727
|
+
var _this$columnGroups2,
|
|
5728
|
+
_this12 = this;
|
|
5729
|
+
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5730
|
+
return _this12.columnProp(group, 'type') === 'footer';
|
|
5731
|
+
});
|
|
5470
5732
|
},
|
|
5471
5733
|
hasFilters: function hasFilters() {
|
|
5472
5734
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
5473
5735
|
},
|
|
5474
5736
|
processedData: function processedData() {
|
|
5737
|
+
var _this$virtualScroller;
|
|
5475
5738
|
var data = this.value || [];
|
|
5476
|
-
if (!this.lazy) {
|
|
5739
|
+
if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
|
|
5477
5740
|
if (data && data.length) {
|
|
5478
5741
|
if (this.hasFilters) {
|
|
5479
5742
|
data = this.filter(data);
|
|
@@ -5507,14 +5770,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5507
5770
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
5508
5771
|
},
|
|
5509
5772
|
allRowsSelected: function allRowsSelected() {
|
|
5510
|
-
var
|
|
5773
|
+
var _this13 = this;
|
|
5511
5774
|
if (this.selectAll !== null) {
|
|
5512
5775
|
return this.selectAll;
|
|
5513
5776
|
} else {
|
|
5514
5777
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
5515
5778
|
return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
5516
|
-
return
|
|
5517
|
-
return
|
|
5779
|
+
return _this13.selection.some(function (s) {
|
|
5780
|
+
return _this13.equals(s, v);
|
|
5518
5781
|
});
|
|
5519
5782
|
});
|
|
5520
5783
|
}
|
|
@@ -5754,7 +6017,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5754
6017
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5755
6018
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5756
6019
|
expandedRows: _ctx.expandedRows,
|
|
5757
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5758
6020
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5759
6021
|
editingRows: _ctx.editingRows,
|
|
5760
6022
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5820,7 +6082,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5820
6082
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5821
6083
|
unstyled: _ctx.unstyled,
|
|
5822
6084
|
pt: _ctx.pt
|
|
5823
|
-
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6085
|
+
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createVNode(_component_DTTableBody, {
|
|
5824
6086
|
ref: "bodyRef",
|
|
5825
6087
|
value: $options.dataToRender(slotProps.rows),
|
|
5826
6088
|
"class": vue.normalizeClass(slotProps.styleClass),
|
|
@@ -5844,7 +6106,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5844
6106
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5845
6107
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5846
6108
|
expandedRows: _ctx.expandedRows,
|
|
5847
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5848
6109
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5849
6110
|
editingRows: _ctx.editingRows,
|
|
5850
6111
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5913,7 +6174,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5913
6174
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5914
6175
|
unstyled: _ctx.unstyled,
|
|
5915
6176
|
pt: _ctx.pt
|
|
5916
|
-
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "
|
|
6177
|
+
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
5917
6178
|
key: 1,
|
|
5918
6179
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
5919
6180
|
style: {
|