primevue 3.44.0 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/Accordion.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/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/Calendar.vue +5 -2
- package/calendar/calendar.cjs.js +5 -2
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +5 -2
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +5 -2
- package/calendar/calendar.min.js +1 -1
- package/cascadeselect/CascadeSelect.vue +1 -0
- package/cascadeselect/cascadeselect.cjs.js +1 -0
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1 -0
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -0
- 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/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/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/confirmpopup.cjs.js +2 -2
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +2 -2
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +2 -2
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.vue +1 -0
- package/contextmenu/contextmenu.cjs.js +1 -0
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -0
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -0
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +276 -132
- package/core/core.min.js +22 -22
- package/datatable/BaseDataTable.vue +2 -2
- package/datatable/BodyRow.vue +578 -0
- package/datatable/ColumnFilter.vue +1 -0
- package/datatable/DataTable.d.ts +1 -1
- package/datatable/DataTable.vue +111 -132
- package/datatable/HeaderCell.vue +9 -7
- package/datatable/TableBody.vue +74 -414
- package/datatable/TableFooter.vue +19 -26
- package/datatable/TableHeader.vue +19 -26
- package/datatable/datatable.cjs.js +891 -634
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +892 -635
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +891 -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/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/Dropdown.vue +26 -0
- package/dropdown/dropdown.cjs.js +49 -25
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +49 -25
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +49 -25
- 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/sortamountdown/index.cjs.js +10 -7
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +11 -8
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +10 -7
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +1 -21
- package/icons/sortamountupalt/index.cjs.js +10 -7
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +11 -8
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +10 -7
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +1 -21
- package/image/Image.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 +4 -3
- package/inputnumber/inputnumber.cjs.js +13 -3
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +13 -3
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +13 -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/Menu.vue +1 -0
- package/menu/menu.cjs.js +1 -0
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +1 -0
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +1 -0
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.vue +2 -1
- package/menubar/menubar.cjs.js +2 -1
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +2 -1
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +2 -1
- 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/MultiSelect.vue +2 -0
- package/multiselect/multiselect.cjs.js +2 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +2 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -0
- 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/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/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/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/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/steps/Steps.vue +1 -0
- package/steps/steps.cjs.js +1 -0
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +1 -0
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +1 -0
- package/steps/steps.min.js +1 -1
- package/tabmenu/TabMenu.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/TieredMenu.vue +1 -0
- package/tieredmenu/tieredmenu.cjs.js +1 -0
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +1 -0
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +1 -0
- package/tieredmenu/tieredmenu.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 +1 -1
- package/treeselect/TreeSelect.d.ts +1 -1
- package/treeselect/TreeSelect.vue +1 -0
- package/treeselect/treeselect.cjs.js +2 -1
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +2 -1
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +2 -1
- 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.
|
|
1373
|
+
}), this.ptm("column.".concat(key), columnMetaData), this.ptmo(this.columnProp({}, 'pt'), key, columnMetaData));
|
|
1361
1374
|
},
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
var _this$$parentInstance, _this$$parentInstance2, _this$$parentInstance3;
|
|
1375
|
+
//@todo - update this method
|
|
1376
|
+
getBodyRowPTOptions: function getBodyRowPTOptions(key) {
|
|
1377
|
+
var _this$$parentInstance;
|
|
1378
|
+
var datatable = (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.$parentInstance;
|
|
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;
|
|
1477
|
-
},
|
|
1478
|
-
isRowExpanded: function isRowExpanded(rowData) {
|
|
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;
|
|
1441
|
+
findIndexInSelection: function findIndexInSelection(data) {
|
|
1442
|
+
return this.findIndex(data, this.selection);
|
|
1490
1443
|
},
|
|
1491
|
-
|
|
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,420 @@ 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
|
+
var hiddenColLength = 0;
|
|
1642
|
+
this.columns.forEach(function (column) {
|
|
1643
|
+
if (_this2.columnProp(column, 'selectionMode') === 'single') hiddenColLength--;
|
|
1644
|
+
if (_this2.columnProp(column, 'hidden')) hiddenColLength++;
|
|
1645
|
+
});
|
|
1646
|
+
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1649
|
+
components: {
|
|
1650
|
+
DTBodyCell: script$9,
|
|
1651
|
+
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1652
|
+
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
function _typeof$8(o) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$8(o); }
|
|
1657
|
+
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1658
|
+
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty$8(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1659
|
+
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1660
|
+
function _toPropertyKey$8(t) { var i = _toPrimitive$8(t, "string"); return "symbol" == _typeof$8(i) ? i : String(i); }
|
|
1661
|
+
function _toPrimitive$8(t, r) { if ("object" != _typeof$8(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$8(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1662
|
+
var _hoisted_1$4 = ["colspan"];
|
|
1663
|
+
var _hoisted_2$1 = ["tabindex", "aria-selected", "data-p-index", "data-p-selectable-row", "data-p-highlight", "data-p-highlight-contextmenu"];
|
|
1664
|
+
var _hoisted_3$1 = ["id"];
|
|
1665
|
+
var _hoisted_4 = ["colspan"];
|
|
1666
|
+
var _hoisted_5 = ["colspan"];
|
|
1667
|
+
var _hoisted_6 = ["colspan"];
|
|
1668
|
+
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1669
|
+
var _component_ChevronDownIcon = vue.resolveComponent("ChevronDownIcon");
|
|
1670
|
+
var _component_ChevronRightIcon = vue.resolveComponent("ChevronRightIcon");
|
|
1671
|
+
var _component_DTBodyCell = vue.resolveComponent("DTBodyCell");
|
|
1672
|
+
return !$props.empty ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1673
|
+
key: 0
|
|
1674
|
+
}, [$props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1675
|
+
key: 0,
|
|
1676
|
+
"class": _ctx.cx('rowGroupHeader'),
|
|
1677
|
+
style: $props.rowGroupHeaderStyle,
|
|
1678
|
+
role: "row"
|
|
1679
|
+
}, _ctx.ptm('rowGroupHeader')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1680
|
+
colspan: $options.columnsLength - 1
|
|
1681
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupHeaderCell'))), [$props.expandableRowGroups ? (vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
1682
|
+
key: 0,
|
|
1683
|
+
"class": _ctx.cx('rowGroupToggler'),
|
|
1684
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
1685
|
+
return $options.onRowGroupToggle && $options.onRowGroupToggle.apply($options, arguments);
|
|
1686
|
+
}),
|
|
1687
|
+
type: "button"
|
|
1688
|
+
}, _ctx.ptm('rowGroupToggler')), [$props.templates['rowgrouptogglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['rowgrouptogglericon']), {
|
|
1689
|
+
key: 0,
|
|
1690
|
+
expanded: $options.isRowGroupExpanded
|
|
1691
|
+
}, null, 8, ["expanded"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1692
|
+
key: 1
|
|
1693
|
+
}, [$options.isRowGroupExpanded && $props.expandedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1694
|
+
key: 0,
|
|
1695
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.expandedRowIcon]
|
|
1696
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : $options.isRowGroupExpanded && !$props.expandedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronDownIcon, vue.mergeProps({
|
|
1697
|
+
key: 1,
|
|
1698
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1699
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : !$options.isRowGroupExpanded && $props.collapsedRowIcon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1700
|
+
key: 2,
|
|
1701
|
+
"class": [_ctx.cx('rowGroupTogglerIcon'), $props.collapsedRowIcon]
|
|
1702
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16)) : !$options.isRowGroupExpanded && !$props.collapsedRowIcon ? (vue.openBlock(), vue.createBlock(_component_ChevronRightIcon, vue.mergeProps({
|
|
1703
|
+
key: 3,
|
|
1704
|
+
"class": _ctx.cx('rowGroupTogglerIcon')
|
|
1705
|
+
}, _ctx.ptm('rowGroupTogglerIcon')), null, 16, ["class"])) : vue.createCommentVNode("", true)], 64))], 16)) : vue.createCommentVNode("", true), (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupheader']), {
|
|
1706
|
+
data: $props.rowData,
|
|
1707
|
+
index: $options.rowIndex
|
|
1708
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_1$4)], 16)) : vue.createCommentVNode("", true), ($props.expandableRowGroups ? $options.isRowGroupExpanded : true) ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1709
|
+
key: 1,
|
|
1710
|
+
"class": $options.rowClasses,
|
|
1711
|
+
style: $options.rowStyles,
|
|
1712
|
+
tabindex: $options.rowTabindex,
|
|
1713
|
+
role: "row",
|
|
1714
|
+
"aria-selected": $props.selectionMode ? $options.isSelected : null,
|
|
1715
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1716
|
+
return $options.onRowClick && $options.onRowClick.apply($options, arguments);
|
|
1717
|
+
}),
|
|
1718
|
+
onDblclick: _cache[2] || (_cache[2] = function () {
|
|
1719
|
+
return $options.onRowDblClick && $options.onRowDblClick.apply($options, arguments);
|
|
1720
|
+
}),
|
|
1721
|
+
onContextmenu: _cache[3] || (_cache[3] = function () {
|
|
1722
|
+
return $options.onRowRightClick && $options.onRowRightClick.apply($options, arguments);
|
|
1723
|
+
}),
|
|
1724
|
+
onTouchend: _cache[4] || (_cache[4] = function () {
|
|
1725
|
+
return $options.onRowTouchEnd && $options.onRowTouchEnd.apply($options, arguments);
|
|
1726
|
+
}),
|
|
1727
|
+
onKeydown: _cache[5] || (_cache[5] = vue.withModifiers(function () {
|
|
1728
|
+
return $options.onRowKeyDown && $options.onRowKeyDown.apply($options, arguments);
|
|
1729
|
+
}, ["self"])),
|
|
1730
|
+
onMousedown: _cache[6] || (_cache[6] = function () {
|
|
1731
|
+
return $options.onRowMouseDown && $options.onRowMouseDown.apply($options, arguments);
|
|
1732
|
+
}),
|
|
1733
|
+
onDragstart: _cache[7] || (_cache[7] = function () {
|
|
1734
|
+
return $options.onRowDragStart && $options.onRowDragStart.apply($options, arguments);
|
|
1735
|
+
}),
|
|
1736
|
+
onDragover: _cache[8] || (_cache[8] = function () {
|
|
1737
|
+
return $options.onRowDragOver && $options.onRowDragOver.apply($options, arguments);
|
|
1738
|
+
}),
|
|
1739
|
+
onDragleave: _cache[9] || (_cache[9] = function () {
|
|
1740
|
+
return $options.onRowDragLeave && $options.onRowDragLeave.apply($options, arguments);
|
|
1741
|
+
}),
|
|
1742
|
+
onDragend: _cache[10] || (_cache[10] = function () {
|
|
1743
|
+
return $options.onRowDragEnd && $options.onRowDragEnd.apply($options, arguments);
|
|
1744
|
+
}),
|
|
1745
|
+
onDrop: _cache[11] || (_cache[11] = function () {
|
|
1746
|
+
return $options.onRowDrop && $options.onRowDrop.apply($options, arguments);
|
|
1747
|
+
})
|
|
1748
|
+
}, $options.getBodyRowPTOptions('bodyRow'), {
|
|
1749
|
+
"data-p-index": $options.rowIndex,
|
|
1750
|
+
"data-p-selectable-row": $props.selectionMode ? true : false,
|
|
1751
|
+
"data-p-highlight": $props.selection && $options.isSelected,
|
|
1752
|
+
"data-p-highlight-contextmenu": $props.contextMenuSelection && $options.isSelectedWithContextMenu
|
|
1753
|
+
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
|
|
1754
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [$options.shouldRenderBodyCell(col) ? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
|
|
1755
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i,
|
|
1756
|
+
rowData: $props.rowData,
|
|
1757
|
+
column: col,
|
|
1758
|
+
rowIndex: $options.rowIndex,
|
|
1759
|
+
index: i,
|
|
1760
|
+
selected: $options.isSelected,
|
|
1761
|
+
frozenRow: $props.frozenRow,
|
|
1762
|
+
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize(col) : null,
|
|
1763
|
+
editMode: $props.editMode,
|
|
1764
|
+
editing: $props.editMode === 'row' && $options.isRowEditing,
|
|
1765
|
+
editingMeta: $props.editingMeta,
|
|
1766
|
+
responsiveLayout: $props.responsiveLayout,
|
|
1767
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
1768
|
+
ariaControls: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1769
|
+
name: $props.nameAttributeSelector,
|
|
1770
|
+
isRowExpanded: $data.d_rowExpanded,
|
|
1771
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
1772
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
1773
|
+
onRadioChange: $options.onRadioChange,
|
|
1774
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1775
|
+
onRowToggle: $options.onRowToggle,
|
|
1776
|
+
onCellEditInit: $options.onCellEditInit,
|
|
1777
|
+
onCellEditComplete: $options.onCellEditComplete,
|
|
1778
|
+
onCellEditCancel: $options.onCellEditCancel,
|
|
1779
|
+
onRowEditInit: $options.onRowEditInit,
|
|
1780
|
+
onRowEditSave: $options.onRowEditSave,
|
|
1781
|
+
onRowEditCancel: $options.onRowEditCancel,
|
|
1782
|
+
onEditingMetaChange: $options.onEditingMetaChange,
|
|
1783
|
+
unstyled: _ctx.unstyled,
|
|
1784
|
+
pt: _ctx.pt
|
|
1785
|
+
}, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "frozenRow", "rowspan", "editMode", "editing", "editingMeta", "responsiveLayout", "virtualScrollerContentProps", "ariaControls", "name", "isRowExpanded", "expandedRowIcon", "collapsedRowIcon", "onRadioChange", "onCheckboxChange", "onRowToggle", "onCellEditInit", "onCellEditComplete", "onCellEditCancel", "onRowEditInit", "onRowEditSave", "onRowEditCancel", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
1786
|
+
}), 256))], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $props.templates['expansion'] && $props.expandedRows && $data.d_rowExpanded ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1787
|
+
key: 2,
|
|
1788
|
+
id: $props.expandedRowId + '_' + $options.rowIndex + '_expansion',
|
|
1789
|
+
"class": _ctx.cx('rowExpansion'),
|
|
1790
|
+
role: "row"
|
|
1791
|
+
}, _ctx.ptm('rowExpansion')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1792
|
+
colspan: $options.columnsLength
|
|
1793
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowExpansionCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['expansion']), {
|
|
1794
|
+
data: $props.rowData,
|
|
1795
|
+
index: $options.rowIndex
|
|
1796
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_4)], 16, _hoisted_3$1)) : vue.createCommentVNode("", true), $props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter ? (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1797
|
+
key: 3,
|
|
1798
|
+
"class": _ctx.cx('rowGroupFooter'),
|
|
1799
|
+
role: "row"
|
|
1800
|
+
}, _ctx.ptm('rowGroupFooter')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1801
|
+
colspan: $options.columnsLength - 1
|
|
1802
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('rowGroupFooterCell'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
1803
|
+
data: $props.rowData,
|
|
1804
|
+
index: $options.rowIndex
|
|
1805
|
+
}, null, 8, ["data", "index"]))], 16, _hoisted_5)], 16)) : vue.createCommentVNode("", true)], 64)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
1806
|
+
key: 1,
|
|
1807
|
+
"class": _ctx.cx('emptyMessage'),
|
|
1808
|
+
role: "row"
|
|
1809
|
+
}, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
|
|
1810
|
+
colspan: $options.columnsLength
|
|
1811
|
+
}, _objectSpread$8(_objectSpread$8({}, $options.getColumnPT('bodycell')), _ctx.ptm('emptyMessageCell'))), [$props.templates.empty ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.empty), {
|
|
1812
|
+
key: 0
|
|
1813
|
+
})) : vue.createCommentVNode("", true)], 16, _hoisted_6)], 16));
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
script$8.render = render$8;
|
|
1817
|
+
|
|
1818
|
+
var script$7 = {
|
|
1819
|
+
name: 'TableBody',
|
|
1820
|
+
hostName: 'DataTable',
|
|
1821
|
+
"extends": BaseComponent__default["default"],
|
|
1822
|
+
emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown', 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle', 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
|
|
1823
|
+
props: {
|
|
1824
|
+
value: {
|
|
1825
|
+
type: Array,
|
|
1826
|
+
"default": null
|
|
1827
|
+
},
|
|
1828
|
+
columns: {
|
|
1829
|
+
type: null,
|
|
1830
|
+
"default": null
|
|
1831
|
+
},
|
|
1832
|
+
frozenRow: {
|
|
1833
|
+
type: Boolean,
|
|
1834
|
+
"default": false
|
|
1835
|
+
},
|
|
1836
|
+
empty: {
|
|
1837
|
+
type: Boolean,
|
|
1838
|
+
"default": false
|
|
1839
|
+
},
|
|
1840
|
+
rowGroupMode: {
|
|
1841
|
+
type: String,
|
|
1842
|
+
"default": null
|
|
1843
|
+
},
|
|
1844
|
+
groupRowsBy: {
|
|
1845
|
+
type: [Array, String, Function],
|
|
1846
|
+
"default": null
|
|
1847
|
+
},
|
|
1848
|
+
expandableRowGroups: {
|
|
1849
|
+
type: Boolean,
|
|
1850
|
+
"default": false
|
|
1851
|
+
},
|
|
1852
|
+
expandedRowGroups: {
|
|
1853
|
+
type: Array,
|
|
1854
|
+
"default": null
|
|
1855
|
+
},
|
|
1856
|
+
first: {
|
|
1857
|
+
type: Number,
|
|
1858
|
+
"default": 0
|
|
1859
|
+
},
|
|
1860
|
+
dataKey: {
|
|
1861
|
+
type: [String, Function],
|
|
1862
|
+
"default": null
|
|
1863
|
+
},
|
|
1864
|
+
expandedRowIcon: {
|
|
1865
|
+
type: String,
|
|
1866
|
+
"default": null
|
|
1867
|
+
},
|
|
1868
|
+
collapsedRowIcon: {
|
|
1869
|
+
type: String,
|
|
1870
|
+
"default": null
|
|
1871
|
+
},
|
|
1872
|
+
expandedRows: {
|
|
1873
|
+
type: [Array, Object],
|
|
1874
|
+
"default": null
|
|
1875
|
+
},
|
|
1876
|
+
selection: {
|
|
1877
|
+
type: [Array, Object],
|
|
1878
|
+
"default": null
|
|
1879
|
+
},
|
|
1880
|
+
selectionKeys: {
|
|
1881
|
+
type: null,
|
|
1882
|
+
"default": null
|
|
1883
|
+
},
|
|
1884
|
+
selectionMode: {
|
|
1885
|
+
type: String,
|
|
1886
|
+
"default": null
|
|
1887
|
+
},
|
|
1888
|
+
contextMenu: {
|
|
1889
|
+
type: Boolean,
|
|
1890
|
+
"default": false
|
|
1891
|
+
},
|
|
1892
|
+
contextMenuSelection: {
|
|
1893
|
+
type: Object,
|
|
1894
|
+
"default": null
|
|
1895
|
+
},
|
|
1896
|
+
rowClass: {
|
|
1897
|
+
type: null,
|
|
1898
|
+
"default": null
|
|
1899
|
+
},
|
|
1900
|
+
rowStyle: {
|
|
1901
|
+
type: null,
|
|
1902
|
+
"default": null
|
|
1903
|
+
},
|
|
1904
|
+
editMode: {
|
|
1905
|
+
type: String,
|
|
1906
|
+
"default": null
|
|
1907
|
+
},
|
|
1908
|
+
compareSelectionBy: {
|
|
1909
|
+
type: String,
|
|
1910
|
+
"default": 'deepEquals'
|
|
1911
|
+
},
|
|
1912
|
+
editingRows: {
|
|
1913
|
+
type: Array,
|
|
1914
|
+
"default": null
|
|
1915
|
+
},
|
|
1916
|
+
editingRowKeys: {
|
|
1917
|
+
type: null,
|
|
1918
|
+
"default": null
|
|
1919
|
+
},
|
|
1920
|
+
editingMeta: {
|
|
1921
|
+
type: Object,
|
|
1922
|
+
"default": null
|
|
1923
|
+
},
|
|
1924
|
+
templates: {
|
|
1925
|
+
type: null,
|
|
1926
|
+
"default": null
|
|
1927
|
+
},
|
|
1928
|
+
scrollable: {
|
|
1929
|
+
type: Boolean,
|
|
1930
|
+
"default": false
|
|
1931
|
+
},
|
|
1932
|
+
responsiveLayout: {
|
|
1933
|
+
type: String,
|
|
1934
|
+
"default": 'stack'
|
|
1935
|
+
},
|
|
1936
|
+
virtualScrollerContentProps: {
|
|
1937
|
+
type: Object,
|
|
1938
|
+
"default": null
|
|
1939
|
+
},
|
|
1940
|
+
isVirtualScrollerDisabled: {
|
|
1941
|
+
type: Boolean,
|
|
1942
|
+
"default": false
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
data: function data() {
|
|
1946
|
+
return {
|
|
1947
|
+
rowGroupHeaderStyleObject: {}
|
|
1948
|
+
};
|
|
1949
|
+
},
|
|
1950
|
+
mounted: function mounted() {
|
|
1951
|
+
if (this.frozenRow) {
|
|
1952
|
+
this.updateFrozenRowStickyPosition();
|
|
1953
|
+
}
|
|
1954
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1955
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1956
|
+
}
|
|
1957
|
+
},
|
|
1958
|
+
updated: function updated() {
|
|
1959
|
+
if (this.frozenRow) {
|
|
1960
|
+
this.updateFrozenRowStickyPosition();
|
|
1961
|
+
}
|
|
1962
|
+
if (this.scrollable && this.rowGroupMode === 'subheader') {
|
|
1963
|
+
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
1964
|
+
}
|
|
1965
|
+
},
|
|
1966
|
+
methods: {
|
|
1616
1967
|
updateFrozenRowStickyPosition: function updateFrozenRowStickyPosition() {
|
|
1617
1968
|
this.$el.style.top = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
|
|
1618
1969
|
},
|
|
@@ -1628,24 +1979,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1628
1979
|
// For VirtualScroller
|
|
1629
1980
|
var contentRef = this.getVirtualScrollerProp('contentRef');
|
|
1630
1981
|
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
1982
|
}
|
|
1638
1983
|
},
|
|
1639
1984
|
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
1985
|
rowGroupHeaderStyle: function rowGroupHeaderStyle() {
|
|
1650
1986
|
if (this.scrollable) {
|
|
1651
1987
|
return {
|
|
@@ -1654,48 +1990,31 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1654
1990
|
}
|
|
1655
1991
|
return null;
|
|
1656
1992
|
},
|
|
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
|
-
},
|
|
1993
|
+
bodyStyle: function bodyStyle() {
|
|
1994
|
+
return this.getVirtualScrollerProp('contentStyle');
|
|
1995
|
+
},
|
|
1666
1996
|
ptmTBodyOptions: function ptmTBodyOptions() {
|
|
1667
|
-
var _this$$
|
|
1997
|
+
var _this$$parentInstance;
|
|
1668
1998
|
return {
|
|
1669
1999
|
context: {
|
|
1670
|
-
scrollable: (_this$$
|
|
2000
|
+
scrollable: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 || (_this$$parentInstance = _this$$parentInstance.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.scrollable
|
|
1671
2001
|
}
|
|
1672
2002
|
};
|
|
2003
|
+
},
|
|
2004
|
+
expandedRowId: function expandedRowId() {
|
|
2005
|
+
return utils.UniqueComponentId();
|
|
2006
|
+
},
|
|
2007
|
+
nameAttributeSelector: function nameAttributeSelector() {
|
|
2008
|
+
return utils.UniqueComponentId();
|
|
1673
2009
|
}
|
|
1674
2010
|
},
|
|
1675
2011
|
components: {
|
|
1676
|
-
|
|
1677
|
-
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
1678
|
-
ChevronRightIcon: ChevronRightIcon__default["default"]
|
|
2012
|
+
DTBodyRow: script$8
|
|
1679
2013
|
}
|
|
1680
2014
|
};
|
|
1681
2015
|
|
|
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
2016
|
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");
|
|
2017
|
+
var _component_DTBodyRow = vue.resolveComponent("DTBodyRow");
|
|
1699
2018
|
return vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
1700
2019
|
ref: $options.bodyRef,
|
|
1701
2020
|
"class": _ctx.cx('tbody'),
|
|
@@ -1703,165 +2022,119 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1703
2022
|
style: $options.bodyStyle
|
|
1704
2023
|
}, _ctx.ptm('tbody', $options.ptmTBodyOptions)), [!$props.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1705
2024
|
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);
|
|
2025
|
+
}, vue.renderList($props.value, function (rowData, rowIndex) {
|
|
2026
|
+
return vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
2027
|
+
key: rowIndex,
|
|
2028
|
+
rowData: rowData,
|
|
2029
|
+
index: rowIndex,
|
|
2030
|
+
value: $props.value,
|
|
2031
|
+
columns: $props.columns,
|
|
2032
|
+
frozenRow: $props.frozenRow,
|
|
2033
|
+
empty: $props.empty,
|
|
2034
|
+
first: $props.first,
|
|
2035
|
+
dataKey: $props.dataKey,
|
|
2036
|
+
selection: $props.selection,
|
|
2037
|
+
selectionKeys: $props.selectionKeys,
|
|
2038
|
+
selectionMode: $props.selectionMode,
|
|
2039
|
+
contextMenu: $props.contextMenu,
|
|
2040
|
+
contextMenuSelection: $props.contextMenuSelection,
|
|
2041
|
+
rowGroupMode: $props.rowGroupMode,
|
|
2042
|
+
groupRowsBy: $props.groupRowsBy,
|
|
2043
|
+
expandableRowGroups: $props.expandableRowGroups,
|
|
2044
|
+
rowClass: $props.rowClass,
|
|
2045
|
+
rowStyle: $props.rowStyle,
|
|
2046
|
+
editMode: $props.editMode,
|
|
2047
|
+
compareSelectionBy: $props.compareSelectionBy,
|
|
2048
|
+
scrollable: $props.scrollable,
|
|
2049
|
+
expandedRowIcon: $props.expandedRowIcon,
|
|
2050
|
+
collapsedRowIcon: $props.collapsedRowIcon,
|
|
2051
|
+
expandedRows: $props.expandedRows,
|
|
2052
|
+
expandedRowGroups: $props.expandedRowGroups,
|
|
2053
|
+
editingRows: $props.editingRows,
|
|
2054
|
+
editingRowKeys: $props.editingRowKeys,
|
|
2055
|
+
templates: $props.templates,
|
|
2056
|
+
responsiveLayout: $props.responsiveLayout,
|
|
2057
|
+
virtualScrollerContentProps: $props.virtualScrollerContentProps,
|
|
2058
|
+
isVirtualScrollerDisabled: $props.isVirtualScrollerDisabled,
|
|
2059
|
+
editingMeta: $props.editingMeta,
|
|
2060
|
+
rowGroupHeaderStyle: $options.rowGroupHeaderStyle,
|
|
2061
|
+
expandedRowId: $options.expandedRowId,
|
|
2062
|
+
nameAttributeSelector: $options.nameAttributeSelector,
|
|
2063
|
+
onRowgroupToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
2064
|
+
return _ctx.$emit('rowgroup-toggle', $event);
|
|
1759
2065
|
}),
|
|
1760
|
-
|
|
1761
|
-
return
|
|
1762
|
-
}, ["self"]),
|
|
1763
|
-
onMousedown: _cache[10] || (_cache[10] = function ($event) {
|
|
1764
|
-
return $options.onRowMouseDown($event);
|
|
2066
|
+
onRowClick: _cache[1] || (_cache[1] = function ($event) {
|
|
2067
|
+
return _ctx.$emit('row-click', $event);
|
|
1765
2068
|
}),
|
|
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);
|
|
2069
|
+
onRowDblclick: _cache[2] || (_cache[2] = function ($event) {
|
|
2070
|
+
return _ctx.$emit('row-dblclick', $event);
|
|
1774
2071
|
}),
|
|
1775
|
-
|
|
1776
|
-
return
|
|
2072
|
+
onRowRightclick: _cache[3] || (_cache[3] = function ($event) {
|
|
2073
|
+
return _ctx.$emit('row-rightclick', $event);
|
|
1777
2074
|
}),
|
|
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({
|
|
2075
|
+
onRowTouchend: _cache[4] || (_cache[4] = function ($event) {
|
|
2076
|
+
return _ctx.$emit('row-touchend', $event);
|
|
2077
|
+
}),
|
|
2078
|
+
onRowKeydown: _cache[5] || (_cache[5] = function ($event) {
|
|
2079
|
+
return _ctx.$emit('row-keydown', $event);
|
|
2080
|
+
}),
|
|
2081
|
+
onRowMousedown: _cache[6] || (_cache[6] = function ($event) {
|
|
2082
|
+
return _ctx.$emit('row-mousedown', $event);
|
|
2083
|
+
}),
|
|
2084
|
+
onRowDragstart: _cache[7] || (_cache[7] = function ($event) {
|
|
2085
|
+
return _ctx.$emit('row-dragstart', $event);
|
|
2086
|
+
}),
|
|
2087
|
+
onRowDragover: _cache[8] || (_cache[8] = function ($event) {
|
|
2088
|
+
return _ctx.$emit('row-dragover', $event);
|
|
2089
|
+
}),
|
|
2090
|
+
onRowDragleave: _cache[9] || (_cache[9] = function ($event) {
|
|
2091
|
+
return _ctx.$emit('row-dragleave', $event);
|
|
2092
|
+
}),
|
|
2093
|
+
onRowDragend: _cache[10] || (_cache[10] = function ($event) {
|
|
2094
|
+
return _ctx.$emit('row-dragend', $event);
|
|
2095
|
+
}),
|
|
2096
|
+
onRowDrop: _cache[11] || (_cache[11] = function ($event) {
|
|
2097
|
+
return _ctx.$emit('row-drop', $event);
|
|
2098
|
+
}),
|
|
2099
|
+
onRowToggle: _cache[12] || (_cache[12] = function ($event) {
|
|
2100
|
+
return _ctx.$emit('row-toggle', $event);
|
|
2101
|
+
}),
|
|
2102
|
+
onRadioChange: _cache[13] || (_cache[13] = function ($event) {
|
|
2103
|
+
return _ctx.$emit('radio-change', $event);
|
|
2104
|
+
}),
|
|
2105
|
+
onCheckboxChange: _cache[14] || (_cache[14] = function ($event) {
|
|
2106
|
+
return _ctx.$emit('checkbox-change', $event);
|
|
2107
|
+
}),
|
|
2108
|
+
onCellEditInit: _cache[15] || (_cache[15] = function ($event) {
|
|
2109
|
+
return _ctx.$emit('cell-edit-init', $event);
|
|
2110
|
+
}),
|
|
2111
|
+
onCellEditComplete: _cache[16] || (_cache[16] = function ($event) {
|
|
2112
|
+
return _ctx.$emit('cell-edit-complete', $event);
|
|
2113
|
+
}),
|
|
2114
|
+
onCellEditCancel: _cache[17] || (_cache[17] = function ($event) {
|
|
2115
|
+
return _ctx.$emit('cell-edit-cancel', $event);
|
|
2116
|
+
}),
|
|
2117
|
+
onRowEditInit: _cache[18] || (_cache[18] = function ($event) {
|
|
2118
|
+
return _ctx.$emit('row-edit-init', $event);
|
|
2119
|
+
}),
|
|
2120
|
+
onRowEditSave: _cache[19] || (_cache[19] = function ($event) {
|
|
2121
|
+
return _ctx.$emit('row-edit-save', $event);
|
|
2122
|
+
}),
|
|
2123
|
+
onRowEditCancel: _cache[20] || (_cache[20] = function ($event) {
|
|
2124
|
+
return _ctx.$emit('row-edit-cancel', $event);
|
|
2125
|
+
}),
|
|
2126
|
+
onEditingMetaChange: _cache[21] || (_cache[21] = function ($event) {
|
|
2127
|
+
return _ctx.$emit('editing-meta-change', $event);
|
|
2128
|
+
}),
|
|
2129
|
+
unstyled: _ctx.unstyled,
|
|
2130
|
+
pt: _ctx.pt
|
|
2131
|
+
}, null, 8, ["rowData", "index", "value", "columns", "frozenRow", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "editingMeta", "rowGroupHeaderStyle", "expandedRowId", "nameAttributeSelector", "unstyled", "pt"]);
|
|
2132
|
+
}), 128)) : (vue.openBlock(), vue.createBlock(_component_DTBodyRow, {
|
|
1857
2133
|
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);
|
|
2134
|
+
empty: $props.empty,
|
|
2135
|
+
columns: $props.columns,
|
|
2136
|
+
templates: $props.templates
|
|
2137
|
+
}, null, 8, ["empty", "columns", "templates"]))], 16);
|
|
1865
2138
|
}
|
|
1866
2139
|
|
|
1867
2140
|
script$7.render = render$7;
|
|
@@ -1978,13 +2251,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1978
2251
|
|
|
1979
2252
|
script$6.render = render$6;
|
|
1980
2253
|
|
|
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; }
|
|
2254
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2255
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
2256
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1988
2257
|
var script$5 = {
|
|
1989
2258
|
name: 'TableFooter',
|
|
1990
2259
|
hostName: 'DataTable',
|
|
@@ -1999,6 +2268,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
1999
2268
|
"default": null
|
|
2000
2269
|
}
|
|
2001
2270
|
},
|
|
2271
|
+
provide: function provide() {
|
|
2272
|
+
return {
|
|
2273
|
+
$rows: this.d_footerRows,
|
|
2274
|
+
$columns: this.d_footerColumns
|
|
2275
|
+
};
|
|
2276
|
+
},
|
|
2277
|
+
data: function data() {
|
|
2278
|
+
return {
|
|
2279
|
+
d_footerRows: new utils.HelperSet({
|
|
2280
|
+
type: 'Row'
|
|
2281
|
+
}),
|
|
2282
|
+
d_footerColumns: new utils.HelperSet({
|
|
2283
|
+
type: 'Column'
|
|
2284
|
+
})
|
|
2285
|
+
};
|
|
2286
|
+
},
|
|
2287
|
+
beforeUnmount: function beforeUnmount() {
|
|
2288
|
+
this.d_footerRows.clear();
|
|
2289
|
+
this.d_footerColumns.clear();
|
|
2290
|
+
},
|
|
2002
2291
|
methods: {
|
|
2003
2292
|
columnProp: function columnProp(col, prop) {
|
|
2004
2293
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2043,36 +2332,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2043
2332
|
return row.props && row.props.pt ? row.props.pt : undefined; //@todo
|
|
2044
2333
|
},
|
|
2045
2334
|
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
|
-
}
|
|
2335
|
+
var _this$d_footerRows;
|
|
2336
|
+
return (_this$d_footerRows = this.d_footerRows) === null || _this$d_footerRows === void 0 ? void 0 : _this$d_footerRows.get(this.columnGroup, this.columnGroup.children);
|
|
2067
2337
|
},
|
|
2068
2338
|
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
|
-
}
|
|
2339
|
+
var _this$d_footerColumns;
|
|
2340
|
+
return (_this$d_footerColumns = this.d_footerColumns) === null || _this$d_footerColumns === void 0 ? void 0 : _this$d_footerColumns.get(row, row.children);
|
|
2076
2341
|
}
|
|
2077
2342
|
},
|
|
2078
2343
|
computed: {
|
|
@@ -2081,20 +2346,20 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2081
2346
|
if (this.columnGroup) {
|
|
2082
2347
|
hasFooter = true;
|
|
2083
2348
|
} else if (this.columns) {
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2349
|
+
var _iterator = _createForOfIteratorHelper$1(this.columns),
|
|
2350
|
+
_step;
|
|
2086
2351
|
try {
|
|
2087
|
-
for (
|
|
2088
|
-
var col =
|
|
2352
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2353
|
+
var col = _step.value;
|
|
2089
2354
|
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
2090
2355
|
hasFooter = true;
|
|
2091
2356
|
break;
|
|
2092
2357
|
}
|
|
2093
2358
|
}
|
|
2094
2359
|
} catch (err) {
|
|
2095
|
-
|
|
2360
|
+
_iterator.e(err);
|
|
2096
2361
|
} finally {
|
|
2097
|
-
|
|
2362
|
+
_iterator.f();
|
|
2098
2363
|
}
|
|
2099
2364
|
}
|
|
2100
2365
|
return hasFooter;
|
|
@@ -2384,6 +2649,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
2384
2649
|
onToggleButtonKeyDown: function onToggleButtonKeyDown(event) {
|
|
2385
2650
|
switch (event.code) {
|
|
2386
2651
|
case 'Enter':
|
|
2652
|
+
case 'NumpadEnter':
|
|
2387
2653
|
case 'Space':
|
|
2388
2654
|
this.toggleMenu(event);
|
|
2389
2655
|
break;
|
|
@@ -3185,7 +3451,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3185
3451
|
});
|
|
3186
3452
|
},
|
|
3187
3453
|
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')) {
|
|
3454
|
+
if ((event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
3189
3455
|
this.$emit('column-click', {
|
|
3190
3456
|
originalEvent: event,
|
|
3191
3457
|
column: this.column
|
|
@@ -3200,16 +3466,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3200
3466
|
});
|
|
3201
3467
|
},
|
|
3202
3468
|
onDragStart: function onDragStart(event) {
|
|
3203
|
-
this.$emit('column-dragstart',
|
|
3469
|
+
this.$emit('column-dragstart', {
|
|
3470
|
+
originalEvent: event,
|
|
3471
|
+
column: this.column
|
|
3472
|
+
});
|
|
3204
3473
|
},
|
|
3205
3474
|
onDragOver: function onDragOver(event) {
|
|
3206
|
-
this.$emit('column-dragover',
|
|
3475
|
+
this.$emit('column-dragover', {
|
|
3476
|
+
originalEvent: event,
|
|
3477
|
+
column: this.column
|
|
3478
|
+
});
|
|
3207
3479
|
},
|
|
3208
3480
|
onDragLeave: function onDragLeave(event) {
|
|
3209
|
-
this.$emit('column-dragleave',
|
|
3481
|
+
this.$emit('column-dragleave', {
|
|
3482
|
+
originalEvent: event,
|
|
3483
|
+
column: this.column
|
|
3484
|
+
});
|
|
3210
3485
|
},
|
|
3211
3486
|
onDrop: function onDrop(event) {
|
|
3212
|
-
this.$emit('column-drop',
|
|
3487
|
+
this.$emit('column-drop', {
|
|
3488
|
+
originalEvent: event,
|
|
3489
|
+
column: this.column
|
|
3490
|
+
});
|
|
3213
3491
|
},
|
|
3214
3492
|
onResizeStart: function onResizeStart(event) {
|
|
3215
3493
|
this.$emit('column-resizestart', event);
|
|
@@ -3251,8 +3529,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3251
3529
|
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
3252
3530
|
if (filterRow) {
|
|
3253
3531
|
var index = utils.DomHandler.index(this.$el);
|
|
3254
|
-
filterRow.children[index]
|
|
3255
|
-
|
|
3532
|
+
if (filterRow.children[index]) {
|
|
3533
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
3534
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
3535
|
+
}
|
|
3256
3536
|
}
|
|
3257
3537
|
}
|
|
3258
3538
|
},
|
|
@@ -3449,13 +3729,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3449
3729
|
|
|
3450
3730
|
script$2.render = render$2;
|
|
3451
3731
|
|
|
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
3732
|
var script$1 = {
|
|
3460
3733
|
name: 'TableHeader',
|
|
3461
3734
|
hostName: 'DataTable',
|
|
@@ -3531,6 +3804,26 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3531
3804
|
"default": null
|
|
3532
3805
|
}
|
|
3533
3806
|
},
|
|
3807
|
+
provide: function provide() {
|
|
3808
|
+
return {
|
|
3809
|
+
$rows: this.d_headerRows,
|
|
3810
|
+
$columns: this.d_headerColumns
|
|
3811
|
+
};
|
|
3812
|
+
},
|
|
3813
|
+
data: function data() {
|
|
3814
|
+
return {
|
|
3815
|
+
d_headerRows: new utils.HelperSet({
|
|
3816
|
+
type: 'Row'
|
|
3817
|
+
}),
|
|
3818
|
+
d_headerColumns: new utils.HelperSet({
|
|
3819
|
+
type: 'Column'
|
|
3820
|
+
})
|
|
3821
|
+
};
|
|
3822
|
+
},
|
|
3823
|
+
beforeUnmount: function beforeUnmount() {
|
|
3824
|
+
this.d_headerRows.clear();
|
|
3825
|
+
this.d_headerColumns.clear();
|
|
3826
|
+
},
|
|
3534
3827
|
methods: {
|
|
3535
3828
|
columnProp: function columnProp(col, prop) {
|
|
3536
3829
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -3603,36 +3896,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3603
3896
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
3604
3897
|
},
|
|
3605
3898
|
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
|
-
}
|
|
3899
|
+
var _this$d_headerRows;
|
|
3900
|
+
return (_this$d_headerRows = this.d_headerRows) === null || _this$d_headerRows === void 0 ? void 0 : _this$d_headerRows.get(this.columnGroup, this.columnGroup.children);
|
|
3627
3901
|
},
|
|
3628
3902
|
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
|
-
}
|
|
3903
|
+
var _this$d_headerColumns;
|
|
3904
|
+
return (_this$d_headerColumns = this.d_headerColumns) === null || _this$d_headerColumns === void 0 ? void 0 : _this$d_headerColumns.get(row, row.children);
|
|
3636
3905
|
}
|
|
3637
3906
|
},
|
|
3638
3907
|
computed: {
|
|
@@ -3873,6 +4142,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3873
4142
|
script$1.render = render$1;
|
|
3874
4143
|
|
|
3875
4144
|
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
4145
|
+
var _excluded = ["expanded"];
|
|
4146
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4147
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
3876
4148
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3877
4149
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3878
4150
|
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -3891,8 +4163,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3891
4163
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
3892
4164
|
var script = {
|
|
3893
4165
|
name: 'DataTable',
|
|
3894
|
-
"extends": script$
|
|
4166
|
+
"extends": script$c,
|
|
3895
4167
|
emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick', 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change', 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand', 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
|
|
4168
|
+
provide: function provide() {
|
|
4169
|
+
return {
|
|
4170
|
+
$columns: this.d_columns,
|
|
4171
|
+
$columnGroups: this.d_columnGroups
|
|
4172
|
+
};
|
|
4173
|
+
},
|
|
3896
4174
|
data: function data() {
|
|
3897
4175
|
return {
|
|
3898
4176
|
d_first: this.first,
|
|
@@ -3903,11 +4181,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3903
4181
|
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
3904
4182
|
d_groupRowsSortMeta: null,
|
|
3905
4183
|
d_selectionKeys: null,
|
|
3906
|
-
d_expandedRowKeys: null,
|
|
3907
4184
|
d_columnOrder: null,
|
|
3908
4185
|
d_editingRowKeys: null,
|
|
3909
4186
|
d_editingMeta: {},
|
|
3910
|
-
d_filters: this.cloneFilters(this.filters)
|
|
4187
|
+
d_filters: this.cloneFilters(this.filters),
|
|
4188
|
+
d_columns: new utils.HelperSet({
|
|
4189
|
+
type: 'Column'
|
|
4190
|
+
}),
|
|
4191
|
+
d_columnGroups: new utils.HelperSet({
|
|
4192
|
+
type: 'ColumnGroup'
|
|
4193
|
+
})
|
|
3911
4194
|
};
|
|
3912
4195
|
},
|
|
3913
4196
|
rowTouched: false,
|
|
@@ -3921,6 +4204,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3921
4204
|
colReorderIconWidth: null,
|
|
3922
4205
|
colReorderIconHeight: null,
|
|
3923
4206
|
draggedColumn: null,
|
|
4207
|
+
draggedColumnElement: null,
|
|
3924
4208
|
draggedRowIndex: null,
|
|
3925
4209
|
droppedRowIndex: null,
|
|
3926
4210
|
rowDragging: null,
|
|
@@ -3954,11 +4238,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3954
4238
|
}
|
|
3955
4239
|
}
|
|
3956
4240
|
},
|
|
3957
|
-
expandedRows: function expandedRows(newValue) {
|
|
3958
|
-
if (this.dataKey) {
|
|
3959
|
-
this.updateExpandedRowKeys(newValue);
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
4241
|
editingRows: {
|
|
3963
4242
|
immediate: true,
|
|
3964
4243
|
handler: function handler(newValue) {
|
|
@@ -3991,6 +4270,8 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
3991
4270
|
this.unbindColumnResizeEvents();
|
|
3992
4271
|
this.destroyStyleElement();
|
|
3993
4272
|
this.destroyResponsiveStyle();
|
|
4273
|
+
this.d_columns.clear();
|
|
4274
|
+
this.d_columnGroups.clear();
|
|
3994
4275
|
},
|
|
3995
4276
|
updated: function updated() {
|
|
3996
4277
|
if (this.isStateful()) {
|
|
@@ -4005,6 +4286,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4005
4286
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
4006
4287
|
},
|
|
4007
4288
|
onPage: function onPage(event) {
|
|
4289
|
+
var _this = this;
|
|
4008
4290
|
this.clearEditingMetaData();
|
|
4009
4291
|
this.d_first = event.first;
|
|
4010
4292
|
this.d_rows = event.rows;
|
|
@@ -4014,15 +4296,18 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4014
4296
|
this.$emit('update:first', this.d_first);
|
|
4015
4297
|
this.$emit('update:rows', this.d_rows);
|
|
4016
4298
|
this.$emit('page', pageEvent);
|
|
4017
|
-
this.$
|
|
4299
|
+
this.$nextTick(function () {
|
|
4300
|
+
_this.$emit('value-change', _this.processedData);
|
|
4301
|
+
});
|
|
4018
4302
|
},
|
|
4019
4303
|
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
4304
|
+
var _this2 = this;
|
|
4020
4305
|
var event = e.originalEvent;
|
|
4021
4306
|
var column = e.column;
|
|
4022
4307
|
if (this.columnProp(column, 'sortable')) {
|
|
4023
4308
|
var targetNode = event.target;
|
|
4024
4309
|
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"]')) {
|
|
4310
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headertitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headercontent' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sorticon' || utils.DomHandler.getAttribute(targetNode.parentElement.parentElement, 'data-pc-section') === 'sorticon' || targetNode.closest('[data-p-sortable-column="true"]') && !targetNode.closest('[data-pc-section="filtermenubutton"]') && !utils.DomHandler.isClickable(event.target)) {
|
|
4026
4311
|
utils.DomHandler.clearSelection();
|
|
4027
4312
|
if (this.sortMode === 'single') {
|
|
4028
4313
|
if (this.d_sortField === columnField) {
|
|
@@ -4050,12 +4335,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4050
4335
|
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
4051
4336
|
}
|
|
4052
4337
|
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
4053
|
-
this.$
|
|
4338
|
+
this.$nextTick(function () {
|
|
4339
|
+
_this2.$emit('value-change', _this2.processedData);
|
|
4340
|
+
});
|
|
4054
4341
|
}
|
|
4055
4342
|
}
|
|
4056
4343
|
},
|
|
4057
4344
|
sortSingle: function sortSingle(value) {
|
|
4058
|
-
var
|
|
4345
|
+
var _this3 = this;
|
|
4059
4346
|
this.clearEditingMetaData();
|
|
4060
4347
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
4061
4348
|
this.d_multiSortMeta = [{
|
|
@@ -4085,12 +4372,12 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4085
4372
|
data.sort(function (data1, data2) {
|
|
4086
4373
|
var value1 = resolvedFieldData.get(data1);
|
|
4087
4374
|
var value2 = resolvedFieldData.get(data2);
|
|
4088
|
-
return utils.ObjectUtils.sort(value1, value2,
|
|
4375
|
+
return utils.ObjectUtils.sort(value1, value2, _this3.d_sortOrder, comparer, _this3.d_nullSortOrder);
|
|
4089
4376
|
});
|
|
4090
4377
|
return data;
|
|
4091
4378
|
},
|
|
4092
4379
|
sortMultiple: function sortMultiple(value) {
|
|
4093
|
-
var
|
|
4380
|
+
var _this4 = this;
|
|
4094
4381
|
this.clearEditingMetaData();
|
|
4095
4382
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field)) {
|
|
4096
4383
|
var firstSortMeta = this.d_multiSortMeta[0];
|
|
@@ -4101,7 +4388,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4101
4388
|
}
|
|
4102
4389
|
var data = _toConsumableArray(value);
|
|
4103
4390
|
data.sort(function (data1, data2) {
|
|
4104
|
-
return
|
|
4391
|
+
return _this4.multisortField(data1, data2, 0);
|
|
4105
4392
|
});
|
|
4106
4393
|
return data;
|
|
4107
4394
|
},
|
|
@@ -4157,7 +4444,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4157
4444
|
return Object.fromEntries(entries);
|
|
4158
4445
|
},
|
|
4159
4446
|
filter: function filter(data) {
|
|
4160
|
-
var
|
|
4447
|
+
var _this5 = this;
|
|
4161
4448
|
if (!data) {
|
|
4162
4449
|
return;
|
|
4163
4450
|
}
|
|
@@ -4166,7 +4453,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4166
4453
|
var globalFilterFieldsArray;
|
|
4167
4454
|
if (activeFilters['global']) {
|
|
4168
4455
|
globalFilterFieldsArray = this.globalFilterFields || this.columns.map(function (col) {
|
|
4169
|
-
return
|
|
4456
|
+
return _this5.columnProp(col, 'filterField') || _this5.columnProp(col, 'field');
|
|
4170
4457
|
});
|
|
4171
4458
|
}
|
|
4172
4459
|
var filteredValue = [];
|
|
@@ -4228,7 +4515,9 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4228
4515
|
var filterEvent = this.createLazyLoadEvent();
|
|
4229
4516
|
filterEvent.filteredValue = filteredValue;
|
|
4230
4517
|
this.$emit('filter', filterEvent);
|
|
4231
|
-
this.$
|
|
4518
|
+
this.$nextTick(function () {
|
|
4519
|
+
_this5.$emit('value-change', _this5.processedData);
|
|
4520
|
+
});
|
|
4232
4521
|
return filteredValue;
|
|
4233
4522
|
},
|
|
4234
4523
|
executeLocalFilter: function executeLocalFilter(field, rowData, filterMeta) {
|
|
@@ -4384,6 +4673,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4384
4673
|
this.onEndKey(event, row, rowIndex, slotProps);
|
|
4385
4674
|
break;
|
|
4386
4675
|
case 'Enter':
|
|
4676
|
+
case 'NumpadEnter':
|
|
4387
4677
|
this.onEnterKey(event, rowData, rowIndex);
|
|
4388
4678
|
break;
|
|
4389
4679
|
case 'Space':
|
|
@@ -4634,40 +4924,21 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4634
4924
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
4635
4925
|
}
|
|
4636
4926
|
},
|
|
4637
|
-
|
|
4638
|
-
if (
|
|
4639
|
-
this.
|
|
4640
|
-
var _iterator4 = _createForOfIteratorHelper(
|
|
4927
|
+
updateEditingRowKeys: function updateEditingRowKeys(editingRows) {
|
|
4928
|
+
if (editingRows && editingRows.length) {
|
|
4929
|
+
this.d_editingRowKeys = {};
|
|
4930
|
+
var _iterator4 = _createForOfIteratorHelper(editingRows),
|
|
4641
4931
|
_step4;
|
|
4642
4932
|
try {
|
|
4643
4933
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
4644
4934
|
var data = _step4.value;
|
|
4645
|
-
this.
|
|
4935
|
+
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
4646
4936
|
}
|
|
4647
4937
|
} catch (err) {
|
|
4648
4938
|
_iterator4.e(err);
|
|
4649
4939
|
} finally {
|
|
4650
4940
|
_iterator4.f();
|
|
4651
4941
|
}
|
|
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
4942
|
} else {
|
|
4672
4943
|
this.d_editingRowKeys = null;
|
|
4673
4944
|
}
|
|
@@ -4705,7 +4976,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4705
4976
|
this.$emit('update:selection', _selection);
|
|
4706
4977
|
},
|
|
4707
4978
|
exportCSV: function exportCSV(options, data) {
|
|
4708
|
-
var
|
|
4979
|
+
var _this6 = this;
|
|
4709
4980
|
var csv = "\uFEFF";
|
|
4710
4981
|
if (!data) {
|
|
4711
4982
|
data = this.processedData;
|
|
@@ -4727,16 +4998,16 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4727
4998
|
data.forEach(function (record) {
|
|
4728
4999
|
csv += '\n';
|
|
4729
5000
|
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,
|
|
5001
|
+
for (var _i = 0; _i < _this6.columns.length; _i++) {
|
|
5002
|
+
var _column = _this6.columns[_i];
|
|
5003
|
+
if (_this6.columnProp(_column, 'exportable') !== false && _this6.columnProp(_column, 'field')) {
|
|
5004
|
+
if (rowInitiated) csv += _this6.csvSeparator;else rowInitiated = true;
|
|
5005
|
+
var cellData = utils.ObjectUtils.resolveFieldData(record, _this6.columnProp(_column, 'field'));
|
|
4735
5006
|
if (cellData != null) {
|
|
4736
|
-
if (
|
|
4737
|
-
cellData =
|
|
5007
|
+
if (_this6.exportFunction) {
|
|
5008
|
+
cellData = _this6.exportFunction({
|
|
4738
5009
|
data: cellData,
|
|
4739
|
-
field:
|
|
5010
|
+
field: _this6.columnProp(_column, 'field')
|
|
4740
5011
|
});
|
|
4741
5012
|
} else cellData = String(cellData).replace(/"/g, '""');
|
|
4742
5013
|
} else cellData = '';
|
|
@@ -4839,19 +5110,19 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4839
5110
|
this.styleElement.innerHTML = innerHTML;
|
|
4840
5111
|
},
|
|
4841
5112
|
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
4842
|
-
var
|
|
5113
|
+
var _this7 = this;
|
|
4843
5114
|
if (!this.documentColumnResizeListener) {
|
|
4844
5115
|
this.documentColumnResizeListener = document.addEventListener('mousemove', function () {
|
|
4845
|
-
if (
|
|
4846
|
-
|
|
5116
|
+
if (_this7.columnResizing) {
|
|
5117
|
+
_this7.onColumnResize(event);
|
|
4847
5118
|
}
|
|
4848
5119
|
});
|
|
4849
5120
|
}
|
|
4850
5121
|
if (!this.documentColumnResizeEndListener) {
|
|
4851
5122
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
4852
|
-
if (
|
|
4853
|
-
|
|
4854
|
-
|
|
5123
|
+
if (_this7.columnResizing) {
|
|
5124
|
+
_this7.columnResizing = false;
|
|
5125
|
+
_this7.onColumnResizeEnd();
|
|
4855
5126
|
}
|
|
4856
5127
|
});
|
|
4857
5128
|
}
|
|
@@ -4873,23 +5144,28 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4873
5144
|
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.getAttribute(event.target, '[data-pc-section="columnresizer"]')) event.currentTarget.draggable = false;else event.currentTarget.draggable = true;
|
|
4874
5145
|
}
|
|
4875
5146
|
},
|
|
4876
|
-
onColumnHeaderDragStart: function onColumnHeaderDragStart(
|
|
5147
|
+
onColumnHeaderDragStart: function onColumnHeaderDragStart(e) {
|
|
5148
|
+
var event = e.originalEvent,
|
|
5149
|
+
column = e.column;
|
|
4877
5150
|
if (this.columnResizing) {
|
|
4878
5151
|
event.preventDefault();
|
|
4879
5152
|
return;
|
|
4880
5153
|
}
|
|
4881
5154
|
this.colReorderIconWidth = utils.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
|
|
4882
5155
|
this.colReorderIconHeight = utils.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
|
|
4883
|
-
this.draggedColumn =
|
|
5156
|
+
this.draggedColumn = column;
|
|
5157
|
+
this.draggedColumnElement = this.findParentHeader(event.target);
|
|
4884
5158
|
event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
|
|
4885
5159
|
},
|
|
4886
|
-
onColumnHeaderDragOver: function onColumnHeaderDragOver(
|
|
5160
|
+
onColumnHeaderDragOver: function onColumnHeaderDragOver(e) {
|
|
5161
|
+
var event = e.originalEvent,
|
|
5162
|
+
column = e.column;
|
|
4887
5163
|
var dropHeader = this.findParentHeader(event.target);
|
|
4888
|
-
if (this.reorderableColumns && this.
|
|
5164
|
+
if (this.reorderableColumns && this.draggedColumnElement && dropHeader && !this.columnProp(column, 'frozen')) {
|
|
4889
5165
|
event.preventDefault();
|
|
4890
5166
|
var containerOffset = utils.DomHandler.getOffset(this.$el);
|
|
4891
5167
|
var dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
|
|
4892
|
-
if (this.
|
|
5168
|
+
if (this.draggedColumnElement !== dropHeader) {
|
|
4893
5169
|
var targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4894
5170
|
var columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4895
5171
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
@@ -4908,34 +5184,67 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
4908
5184
|
}
|
|
4909
5185
|
}
|
|
4910
5186
|
},
|
|
4911
|
-
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(
|
|
4912
|
-
|
|
5187
|
+
onColumnHeaderDragLeave: function onColumnHeaderDragLeave(e) {
|
|
5188
|
+
var event = e.originalEvent;
|
|
5189
|
+
if (this.reorderableColumns && this.draggedColumnElement) {
|
|
4913
5190
|
event.preventDefault();
|
|
4914
5191
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4915
5192
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4916
5193
|
}
|
|
4917
5194
|
},
|
|
4918
|
-
onColumnHeaderDrop: function onColumnHeaderDrop(
|
|
5195
|
+
onColumnHeaderDrop: function onColumnHeaderDrop(e) {
|
|
5196
|
+
var _this8 = this;
|
|
5197
|
+
var event = e.originalEvent,
|
|
5198
|
+
column = e.column;
|
|
4919
5199
|
event.preventDefault();
|
|
4920
|
-
if (this.
|
|
4921
|
-
var dragIndex = utils.DomHandler.index(this.
|
|
5200
|
+
if (this.draggedColumnElement) {
|
|
5201
|
+
var dragIndex = utils.DomHandler.index(this.draggedColumnElement);
|
|
4922
5202
|
var dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
|
|
4923
5203
|
var allowDrop = dragIndex !== dropIndex;
|
|
4924
5204
|
if (allowDrop && (dropIndex - dragIndex === 1 && this.dropPosition === -1 || dropIndex - dragIndex === -1 && this.dropPosition === 1)) {
|
|
4925
5205
|
allowDrop = false;
|
|
4926
5206
|
}
|
|
4927
5207
|
if (allowDrop) {
|
|
4928
|
-
|
|
5208
|
+
var isSameColumn = function isSameColumn(col1, col2) {
|
|
5209
|
+
return _this8.columnProp(col1, 'columnKey') || _this8.columnProp(col2, 'columnKey') ? _this8.columnProp(col1, 'columnKey') === _this8.columnProp(col2, 'columnKey') : _this8.columnProp(col1, 'field') === _this8.columnProp(col2, 'field');
|
|
5210
|
+
};
|
|
5211
|
+
var dragColIndex = this.columns.findIndex(function (child) {
|
|
5212
|
+
return isSameColumn(child, _this8.draggedColumn);
|
|
5213
|
+
});
|
|
5214
|
+
var dropColIndex = this.columns.findIndex(function (child) {
|
|
5215
|
+
return isSameColumn(child, column);
|
|
5216
|
+
});
|
|
5217
|
+
var widths = [];
|
|
5218
|
+
var headers = utils.DomHandler.find(this.$el, 'thead[data-pc-section="thead"] > tr > th');
|
|
5219
|
+
headers.forEach(function (header) {
|
|
5220
|
+
return widths.push(utils.DomHandler.getOuterWidth(header));
|
|
5221
|
+
});
|
|
5222
|
+
var movedItem = widths.find(function (_, index) {
|
|
5223
|
+
return index === dragColIndex;
|
|
5224
|
+
});
|
|
5225
|
+
var remainingItems = widths.filter(function (_, index) {
|
|
5226
|
+
return index !== dragColIndex;
|
|
5227
|
+
});
|
|
5228
|
+
var reorderedWidths = [].concat(_toConsumableArray(remainingItems.slice(0, dropColIndex)), [movedItem], _toConsumableArray(remainingItems.slice(dropColIndex)));
|
|
5229
|
+
this.addColumnWidthStyles(reorderedWidths);
|
|
5230
|
+
if (dropColIndex < dragColIndex && this.dropPosition === 1) {
|
|
5231
|
+
dropColIndex++;
|
|
5232
|
+
}
|
|
5233
|
+
if (dropColIndex > dragColIndex && this.dropPosition === -1) {
|
|
5234
|
+
dropColIndex--;
|
|
5235
|
+
}
|
|
5236
|
+
utils.ObjectUtils.reorderArray(this.columns, dragColIndex, dropColIndex);
|
|
4929
5237
|
this.updateReorderableColumns();
|
|
4930
5238
|
this.$emit('column-reorder', {
|
|
4931
5239
|
originalEvent: event,
|
|
4932
|
-
dragIndex:
|
|
4933
|
-
dropIndex:
|
|
5240
|
+
dragIndex: dragColIndex,
|
|
5241
|
+
dropIndex: dropColIndex
|
|
4934
5242
|
});
|
|
4935
5243
|
}
|
|
4936
5244
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4937
5245
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
4938
|
-
this.
|
|
5246
|
+
this.draggedColumnElement.draggable = false;
|
|
5247
|
+
this.draggedColumnElement = null;
|
|
4939
5248
|
this.draggedColumn = null;
|
|
4940
5249
|
this.dropPosition = null;
|
|
4941
5250
|
}
|
|
@@ -5045,28 +5354,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5045
5354
|
event.preventDefault();
|
|
5046
5355
|
},
|
|
5047
5356
|
toggleRow: function toggleRow(event) {
|
|
5357
|
+
var _this9 = this;
|
|
5358
|
+
var expanded = event.expanded,
|
|
5359
|
+
rest = _objectWithoutProperties(event, _excluded);
|
|
5048
5360
|
var rowData = event.data;
|
|
5049
|
-
var
|
|
5050
|
-
var expandedRowIndex;
|
|
5051
|
-
var _expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5361
|
+
var expandedRows;
|
|
5052
5362
|
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);
|
|
5363
|
+
var value = utils.ObjectUtils.resolveFieldData(rowData, this.dataKey);
|
|
5364
|
+
expandedRows = this.expandedRows ? _objectSpread$1({}, this.expandedRows) : {};
|
|
5365
|
+
expanded ? expandedRows[value] = true : delete expandedRows[value];
|
|
5065
5366
|
} else {
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5367
|
+
expandedRows = this.expandedRows ? _toConsumableArray(this.expandedRows) : [];
|
|
5368
|
+
expanded ? expandedRows.push(rowData) : expandedRows = expandedRows.filter(function (d) {
|
|
5369
|
+
return !_this9.equals(rowData, d);
|
|
5370
|
+
});
|
|
5069
5371
|
}
|
|
5372
|
+
this.$emit('update:expandedRows', expandedRows);
|
|
5373
|
+
expanded ? this.$emit('row-expand', rest) : this.$emit('row-collapse', rest);
|
|
5070
5374
|
},
|
|
5071
5375
|
toggleRowGroup: function toggleRowGroup(e) {
|
|
5072
5376
|
var event = e.originalEvent;
|
|
@@ -5136,7 +5440,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5136
5440
|
}
|
|
5137
5441
|
if (this.expandedRows) {
|
|
5138
5442
|
state.expandedRows = this.expandedRows;
|
|
5139
|
-
state.expandedRowKeys = this.d_expandedRowKeys;
|
|
5140
5443
|
}
|
|
5141
5444
|
if (this.expandedRowGroups) {
|
|
5142
5445
|
state.expandedRowGroups = this.expandedRowGroups;
|
|
@@ -5184,7 +5487,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5184
5487
|
this.d_columnOrder = restoredState.columnOrder;
|
|
5185
5488
|
}
|
|
5186
5489
|
if (restoredState.expandedRows) {
|
|
5187
|
-
this.d_expandedRowKeys = restoredState.expandedRowKeys;
|
|
5188
5490
|
this.$emit('update:expandedRows', restoredState.expandedRows);
|
|
5189
5491
|
}
|
|
5190
5492
|
if (restoredState.expandedRowGroups) {
|
|
@@ -5208,23 +5510,25 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5208
5510
|
state.tableWidth = utils.DomHandler.getOuterWidth(this.$refs.table) + 'px';
|
|
5209
5511
|
}
|
|
5210
5512
|
},
|
|
5513
|
+
addColumnWidthStyles: function addColumnWidthStyles(widths) {
|
|
5514
|
+
this.createStyleElement();
|
|
5515
|
+
var innerHTML = '';
|
|
5516
|
+
var selector = "[data-pc-name=\"datatable\"][".concat(this.attributeSelector, "] > [data-pc-section=\"wrapper\"] ").concat(this.virtualScrollerDisabled ? '' : '> [data-pc-name="virtualscroller"]', " > table[data-pc-section=\"table\"]");
|
|
5517
|
+
widths.forEach(function (width, index) {
|
|
5518
|
+
var style = "width: ".concat(width, "px !important; max-width: ").concat(width, "px !important");
|
|
5519
|
+
innerHTML += "\n ".concat(selector, " > thead[data-pc-section=\"thead\"] > tr > th:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tbody[data-pc-section=\"tbody\"] > tr > td:nth-child(").concat(index + 1, "),\n ").concat(selector, " > tfoot[data-pc-section=\"tfoot\"] > tr > td:nth-child(").concat(index + 1, ") {\n ").concat(style, "\n }\n ");
|
|
5520
|
+
});
|
|
5521
|
+
this.styleElement.innerHTML = innerHTML;
|
|
5522
|
+
},
|
|
5211
5523
|
restoreColumnWidths: function restoreColumnWidths() {
|
|
5212
5524
|
if (this.columnWidthsState) {
|
|
5213
5525
|
var widths = this.columnWidthsState.split(',');
|
|
5214
5526
|
if (this.columnResizeMode === 'expand' && this.tableWidthState) {
|
|
5215
5527
|
this.$refs.table.style.width = this.tableWidthState;
|
|
5216
5528
|
this.$refs.table.style.minWidth = this.tableWidthState;
|
|
5217
|
-
this.$el.style.width = this.tableWidthState;
|
|
5218
5529
|
}
|
|
5219
5530
|
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;
|
|
5531
|
+
this.addColumnWidthStyles(widths);
|
|
5228
5532
|
}
|
|
5229
5533
|
}
|
|
5230
5534
|
},
|
|
@@ -5295,9 +5599,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5295
5599
|
hasGlobalFilter: function hasGlobalFilter() {
|
|
5296
5600
|
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
5297
5601
|
},
|
|
5298
|
-
getChildren: function getChildren() {
|
|
5299
|
-
return this.$slots["default"] ? this.$slots["default"]() : null;
|
|
5300
|
-
},
|
|
5301
5602
|
onFilterChange: function onFilterChange(filters) {
|
|
5302
5603
|
this.d_filters = filters;
|
|
5303
5604
|
},
|
|
@@ -5327,10 +5628,10 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5327
5628
|
return cloned;
|
|
5328
5629
|
},
|
|
5329
5630
|
updateReorderableColumns: function updateReorderableColumns() {
|
|
5330
|
-
var
|
|
5631
|
+
var _this10 = this;
|
|
5331
5632
|
var columnOrder = [];
|
|
5332
5633
|
this.columns.forEach(function (col) {
|
|
5333
|
-
return columnOrder.push(
|
|
5634
|
+
return columnOrder.push(_this10.columnProp(col, 'columnKey') || _this10.columnProp(col, 'field'));
|
|
5334
5635
|
});
|
|
5335
5636
|
this.d_columnOrder = columnOrder;
|
|
5336
5637
|
},
|
|
@@ -5351,7 +5652,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5351
5652
|
var tableSelector = ".p-datatable-wrapper ".concat(this.virtualScrollerDisabled ? '' : '> .p-virtualscroller', " > .p-datatable-table");
|
|
5352
5653
|
var selector = ".p-datatable[".concat(this.attributeSelector, "] > ").concat(tableSelector);
|
|
5353
5654
|
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
|
|
5655
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n ").concat(selector, " > .p-datatable-thead > tr > th,\n ").concat(selector, " > .p-datatable-tfoot > tr > td {\n display: none;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n ").concat(gridLinesSelector, " > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n ").concat(selector, " > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n");
|
|
5355
5656
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
5356
5657
|
}
|
|
5357
5658
|
},
|
|
@@ -5367,22 +5668,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5367
5668
|
this.styleElement = null;
|
|
5368
5669
|
}
|
|
5369
5670
|
},
|
|
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
5671
|
dataToRender: function dataToRender(data) {
|
|
5387
5672
|
var _data = data || this.processedData;
|
|
5388
5673
|
if (_data && this.paginator) {
|
|
@@ -5400,27 +5685,23 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5400
5685
|
},
|
|
5401
5686
|
computed: {
|
|
5402
5687
|
columns: function columns() {
|
|
5403
|
-
var
|
|
5404
|
-
if (!children) {
|
|
5405
|
-
return;
|
|
5406
|
-
}
|
|
5407
|
-
var cols = this.recursiveGetChildren(children, []);
|
|
5688
|
+
var cols = this.d_columns.get(this);
|
|
5408
5689
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
5409
5690
|
var orderedColumns = [];
|
|
5410
|
-
var
|
|
5411
|
-
|
|
5691
|
+
var _iterator5 = _createForOfIteratorHelper(this.d_columnOrder),
|
|
5692
|
+
_step5;
|
|
5412
5693
|
try {
|
|
5413
|
-
for (
|
|
5414
|
-
var columnKey =
|
|
5694
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
5695
|
+
var columnKey = _step5.value;
|
|
5415
5696
|
var column = this.findColumnByKey(cols, columnKey);
|
|
5416
5697
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
5417
5698
|
orderedColumns.push(column);
|
|
5418
5699
|
}
|
|
5419
5700
|
}
|
|
5420
5701
|
} catch (err) {
|
|
5421
|
-
|
|
5702
|
+
_iterator5.e(err);
|
|
5422
5703
|
} finally {
|
|
5423
|
-
|
|
5704
|
+
_iterator5.f();
|
|
5424
5705
|
}
|
|
5425
5706
|
return [].concat(orderedColumns, _toConsumableArray(cols.filter(function (item) {
|
|
5426
5707
|
return orderedColumns.indexOf(item) < 0;
|
|
@@ -5428,52 +5709,30 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5428
5709
|
}
|
|
5429
5710
|
return cols;
|
|
5430
5711
|
},
|
|
5712
|
+
columnGroups: function columnGroups() {
|
|
5713
|
+
return this.d_columnGroups.get(this);
|
|
5714
|
+
},
|
|
5431
5715
|
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;
|
|
5716
|
+
var _this$columnGroups,
|
|
5717
|
+
_this11 = this;
|
|
5718
|
+
return (_this$columnGroups = this.columnGroups) === null || _this$columnGroups === void 0 ? void 0 : _this$columnGroups.find(function (group) {
|
|
5719
|
+
return _this11.columnProp(group, 'type') === 'header';
|
|
5720
|
+
});
|
|
5450
5721
|
},
|
|
5451
5722
|
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;
|
|
5723
|
+
var _this$columnGroups2,
|
|
5724
|
+
_this12 = this;
|
|
5725
|
+
return (_this$columnGroups2 = this.columnGroups) === null || _this$columnGroups2 === void 0 ? void 0 : _this$columnGroups2.find(function (group) {
|
|
5726
|
+
return _this12.columnProp(group, 'type') === 'footer';
|
|
5727
|
+
});
|
|
5470
5728
|
},
|
|
5471
5729
|
hasFilters: function hasFilters() {
|
|
5472
5730
|
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
5473
5731
|
},
|
|
5474
5732
|
processedData: function processedData() {
|
|
5733
|
+
var _this$virtualScroller;
|
|
5475
5734
|
var data = this.value || [];
|
|
5476
|
-
if (!this.lazy) {
|
|
5735
|
+
if (!this.lazy && !((_this$virtualScroller = this.virtualScrollerOptions) !== null && _this$virtualScroller !== void 0 && _this$virtualScroller.lazy)) {
|
|
5477
5736
|
if (data && data.length) {
|
|
5478
5737
|
if (this.hasFilters) {
|
|
5479
5738
|
data = this.filter(data);
|
|
@@ -5507,14 +5766,14 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5507
5766
|
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
5508
5767
|
},
|
|
5509
5768
|
allRowsSelected: function allRowsSelected() {
|
|
5510
|
-
var
|
|
5769
|
+
var _this13 = this;
|
|
5511
5770
|
if (this.selectAll !== null) {
|
|
5512
5771
|
return this.selectAll;
|
|
5513
5772
|
} else {
|
|
5514
5773
|
var val = this.frozenValue ? [].concat(_toConsumableArray(this.frozenValue), _toConsumableArray(this.processedData)) : this.processedData;
|
|
5515
5774
|
return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every(function (v) {
|
|
5516
|
-
return
|
|
5517
|
-
return
|
|
5775
|
+
return _this13.selection.some(function (s) {
|
|
5776
|
+
return _this13.equals(s, v);
|
|
5518
5777
|
});
|
|
5519
5778
|
});
|
|
5520
5779
|
}
|
|
@@ -5754,7 +6013,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5754
6013
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5755
6014
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5756
6015
|
expandedRows: _ctx.expandedRows,
|
|
5757
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5758
6016
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5759
6017
|
editingRows: _ctx.editingRows,
|
|
5760
6018
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5820,7 +6078,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5820
6078
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5821
6079
|
unstyled: _ctx.unstyled,
|
|
5822
6080
|
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", "
|
|
6081
|
+
}, null, 8, ["value", "columns", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createVNode(_component_DTTableBody, {
|
|
5824
6082
|
ref: "bodyRef",
|
|
5825
6083
|
value: $options.dataToRender(slotProps.rows),
|
|
5826
6084
|
"class": vue.normalizeClass(slotProps.styleClass),
|
|
@@ -5844,7 +6102,6 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5844
6102
|
expandedRowIcon: _ctx.expandedRowIcon,
|
|
5845
6103
|
collapsedRowIcon: _ctx.collapsedRowIcon,
|
|
5846
6104
|
expandedRows: _ctx.expandedRows,
|
|
5847
|
-
expandedRowKeys: $data.d_expandedRowKeys,
|
|
5848
6105
|
expandedRowGroups: _ctx.expandedRowGroups,
|
|
5849
6106
|
editingRows: _ctx.editingRows,
|
|
5850
6107
|
editingRowKeys: $data.d_editingRowKeys,
|
|
@@ -5913,7 +6170,7 @@ this.primevue.datatable = (function (api, ArrowDownIcon, ArrowUpIcon, SpinnerIco
|
|
|
5913
6170
|
onEditingMetaChange: $options.onEditingMetaChange,
|
|
5914
6171
|
unstyled: _ctx.unstyled,
|
|
5915
6172
|
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", "
|
|
6173
|
+
}, null, 8, ["value", "class", "columns", "empty", "first", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "responsiveLayout", "virtualScrollerContentProps", "isVirtualScrollerDisabled", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "unstyled", "pt"]), $options.hasSpacerStyle(slotProps.spacerStyle) ? (vue.openBlock(), vue.createElementBlock("tbody", vue.mergeProps({
|
|
5917
6174
|
key: 1,
|
|
5918
6175
|
"class": _ctx.cx('virtualScrollerSpacer'),
|
|
5919
6176
|
style: {
|