primevue 3.16.2 → 3.17.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/README.md +2 -1
- package/accordion/Accordion.d.ts +23 -5
- package/accordion/Accordion.vue +194 -77
- package/accordion/accordion.cjs.js +202 -96
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +200 -98
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +203 -98
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +33 -5
- package/accordiontab/AccordionTab.vue +8 -1
- package/accordiontab/accordiontab.cjs.js +7 -0
- package/accordiontab/accordiontab.cjs.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +7 -0
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +7 -0
- package/accordiontab/accordiontab.min.js +1 -1
- package/api/Api.d.ts +1 -1
- package/api/api.cjs.js +299 -313
- package/api/api.esm.js +299 -313
- package/api/api.js +299 -313
- package/autocomplete/AutoComplete.d.ts +22 -17
- package/autocomplete/AutoComplete.vue +239 -126
- package/autocomplete/autocomplete.cjs.js +145 -108
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +146 -109
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +145 -108
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +4 -4
- package/avatar/Avatar.vue +15 -11
- package/avatar/avatar.cjs.js +11 -7
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +11 -7
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +11 -7
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +6 -9
- package/avatargroup/AvatarGroup.vue +1 -1
- package/badge/Badge.d.ts +4 -5
- package/badge/Badge.vue +16 -13
- package/badge/badge.cjs.js +14 -11
- package/badge/badge.esm.js +14 -11
- package/badge/badge.js +14 -11
- package/badgedirective/badgedirective.cjs.js +8 -10
- package/badgedirective/badgedirective.esm.js +8 -10
- package/badgedirective/badgedirective.js +8 -10
- package/blockui/BlockUI.d.ts +6 -6
- package/blockui/BlockUI.vue +13 -15
- package/blockui/blockui.cjs.js +11 -13
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +11 -13
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +11 -13
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/Breadcrumb.d.ts +5 -6
- package/breadcrumb/Breadcrumb.vue +2 -2
- package/breadcrumb/BreadcrumbItem.vue +18 -15
- package/breadcrumb/breadcrumb.cjs.js +15 -12
- package/breadcrumb/breadcrumb.esm.js +15 -12
- package/breadcrumb/breadcrumb.js +15 -12
- package/button/Button.d.ts +10 -7
- package/button/Button.vue +22 -14
- package/button/button.cjs.js +19 -11
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +19 -11
- package/button/button.esm.min.js +1 -1
- package/button/button.js +19 -11
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +14 -14
- package/calendar/Calendar.vue +793 -583
- package/calendar/calendar.cjs.js +581 -526
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +581 -526
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +581 -526
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +5 -7
- package/card/Card.vue +5 -5
- package/carousel/Carousel.d.ts +29 -19
- package/carousel/Carousel.vue +537 -528
- package/carousel/carousel.cjs.js +496 -493
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +496 -493
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +645 -642
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +19 -14
- package/cascadeselect/CascadeSelect.vue +186 -100
- package/cascadeselect/CascadeSelectSub.vue +44 -14
- package/cascadeselect/cascadeselect.cjs.js +156 -95
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +157 -96
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +156 -95
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/Chart.d.ts +6 -7
- package/chart/Chart.vue +12 -12
- package/chart/chart.cjs.js +11 -11
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +11 -11
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +11 -11
- package/chart/chart.min.js +1 -1
- package/checkbox/Checkbox.d.ts +12 -12
- package/checkbox/Checkbox.vue +48 -20
- package/checkbox/checkbox.cjs.js +28 -17
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +28 -17
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +28 -17
- package/checkbox/checkbox.min.js +1 -1
- package/chip/Chip.d.ts +5 -5
- package/chip/Chip.vue +13 -11
- package/chip/chip.cjs.js +7 -4
- package/chip/chip.esm.js +7 -4
- package/chip/chip.js +7 -4
- package/chips/Chips.d.ts +9 -9
- package/chips/Chips.vue +89 -33
- package/chips/chips.cjs.js +48 -26
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +48 -26
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +48 -26
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +11 -12
- package/colorpicker/ColorPicker.vue +146 -110
- package/colorpicker/colorpicker.cjs.js +113 -74
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +113 -74
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +113 -74
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +5 -6
- package/column/Column.vue +1 -1
- package/columngroup/ColumnGroup.d.ts +5 -7
- package/columngroup/ColumnGroup.vue +1 -1
- package/config/PrimeVue.d.ts +4 -2
- package/config/config.cjs.js +14 -29
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +14 -29
- package/config/config.esm.min.js +1 -1
- package/config/config.js +14 -29
- package/config/config.min.js +1 -1
- package/confirmationoptions/ConfirmationOptions.d.ts +4 -0
- package/confirmationservice/confirmationservice.cjs.js +1 -0
- package/confirmationservice/confirmationservice.esm.js +1 -0
- package/confirmationservice/confirmationservice.js +1 -0
- package/confirmdialog/ConfirmDialog.d.ts +11 -5
- package/confirmdialog/ConfirmDialog.vue +25 -15
- package/confirmdialog/confirmdialog.cjs.js +34 -16
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +34 -16
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -17
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/ConfirmPopup.d.ts +5 -8
- package/confirmpopup/ConfirmPopup.vue +44 -32
- package/confirmpopup/confirmpopup.cjs.js +24 -14
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +24 -14
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +24 -14
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +4 -5
- package/contextmenu/ContextMenu.vue +23 -19
- package/contextmenu/ContextMenuSub.vue +54 -42
- package/contextmenu/contextmenu.cjs.js +52 -44
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +52 -44
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +52 -44
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +1918 -1744
- package/core/core.min.js +14 -14
- package/datatable/BodyCell.vue +93 -75
- package/datatable/ColumnFilter.vue +137 -86
- package/datatable/DataTable.d.ts +24 -24
- package/datatable/DataTable.vue +470 -296
- package/datatable/FooterCell.vue +20 -13
- package/datatable/HeaderCell.vue +108 -51
- package/datatable/HeaderCheckbox.vue +12 -5
- package/datatable/RowCheckbox.vue +14 -6
- package/datatable/RowRadioButton.vue +4 -4
- package/datatable/TableBody.vue +135 -83
- package/datatable/TableFooter.vue +17 -20
- package/datatable/TableHeader.vue +132 -52
- package/datatable/TableLoadingBody.vue +3 -3
- package/datatable/datatable.cjs.js +696 -559
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +696 -559
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +696 -559
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +8 -8
- package/dataview/DataView.vue +80 -66
- package/dataview/dataview.cjs.js +31 -35
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +31 -35
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +31 -35
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +5 -6
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +28 -34
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -25
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -25
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +46 -52
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +6 -7
- package/deferredcontent/DeferredContent.vue +6 -9
- package/deferredcontent/deferredcontent.cjs.js +5 -8
- package/deferredcontent/deferredcontent.esm.js +5 -8
- package/deferredcontent/deferredcontent.js +5 -8
- package/dialog/Dialog.d.ts +10 -10
- package/dialog/Dialog.vue +64 -60
- package/dialog/dialog.cjs.js +50 -46
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +50 -46
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +50 -46
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +4 -5
- package/divider/Divider.vue +15 -12
- package/divider/divider.cjs.js +17 -12
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +17 -12
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +17 -12
- package/divider/divider.min.js +1 -1
- package/dock/Dock.d.ts +5 -6
- package/dock/Dock.vue +3 -3
- package/dock/DockSub.vue +46 -25
- package/dock/dock.cjs.js +30 -23
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +30 -23
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +30 -23
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +31 -17
- package/dropdown/Dropdown.vue +255 -125
- package/dropdown/dropdown.cjs.js +177 -109
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +178 -110
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +177 -109
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +4 -4
- package/dynamicdialog/DynamicDialog.vue +10 -10
- package/dynamicdialog/dynamicdialog.cjs.js +11 -9
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +11 -9
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +11 -9
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/Editor.d.ts +20 -4
- package/editor/Editor.vue +506 -466
- package/editor/editor.cjs.js +99 -45
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +82 -42
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +83 -47
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +9 -5
- package/fieldset/Fieldset.vue +28 -20
- package/fieldset/fieldset.cjs.js +31 -19
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +32 -20
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +31 -19
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/FileUpload.d.ts +11 -11
- package/fileupload/FileUpload.vue +75 -69
- package/fileupload/fileupload.cjs.js +56 -50
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +56 -50
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +56 -50
- package/fileupload/fileupload.min.js +1 -1
- package/fullcalendar/FullCalendar.d.ts +5 -7
- package/fullcalendar/FullCalendar.vue +6 -6
- package/fullcalendar/fullcalendar.cjs.js +3 -2
- package/fullcalendar/fullcalendar.esm.js +3 -2
- package/fullcalendar/fullcalendar.js +3 -2
- package/galleria/Galleria.d.ts +4 -4
- package/galleria/Galleria.vue +39 -34
- package/galleria/GalleriaContent.vue +58 -31
- package/galleria/GalleriaItem.vue +44 -36
- package/galleria/GalleriaItemSlot.vue +2 -1
- package/galleria/GalleriaThumbnails.vue +107 -91
- package/galleria/galleria.cjs.js +180 -152
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +180 -152
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +180 -152
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +4 -5
- package/image/Image.vue +19 -15
- package/image/image.cjs.js +11 -7
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +11 -7
- package/image/image.esm.min.js +1 -1
- package/image/image.js +11 -7
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +4 -5
- package/inlinemessage/InlineMessage.vue +12 -9
- package/inlinemessage/inlinemessage.cjs.js +11 -8
- package/inlinemessage/inlinemessage.esm.js +11 -8
- package/inlinemessage/inlinemessage.js +11 -8
- package/inplace/Inplace.d.ts +6 -6
- package/inplace/Inplace.vue +11 -11
- package/inplace/inplace.cjs.js +9 -9
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +9 -9
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +9 -9
- package/inplace/inplace.min.js +1 -1
- package/inputmask/InputMask.d.ts +11 -12
- package/inputmask/InputMask.vue +119 -92
- package/inputmask/inputmask.cjs.js +116 -89
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +116 -89
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +116 -89
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +17 -17
- package/inputnumber/InputNumber.vue +237 -177
- package/inputnumber/inputnumber.cjs.js +208 -171
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +208 -171
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +208 -171
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +10 -10
- package/inputswitch/InputSwitch.vue +39 -11
- package/inputswitch/inputswitch.cjs.js +23 -9
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +23 -9
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +23 -9
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +5 -6
- package/inputtext/InputText.vue +3 -3
- package/inputtext/inputtext.cjs.js +2 -2
- package/inputtext/inputtext.esm.js +2 -2
- package/inputtext/inputtext.js +2 -2
- package/knob/Knob.d.ts +10 -11
- package/knob/Knob.vue +47 -29
- package/knob/knob.cjs.js +27 -25
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +27 -25
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +27 -25
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +17 -13
- package/listbox/Listbox.vue +144 -97
- package/listbox/listbox.cjs.js +96 -86
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +97 -87
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +96 -86
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +5 -6
- package/megamenu/MegaMenu.vue +108 -94
- package/megamenu/megamenu.cjs.js +77 -72
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +77 -72
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +77 -72
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +5 -8
- package/menu/Menu.vue +29 -23
- package/menu/Menuitem.vue +21 -18
- package/menu/menu.cjs.js +38 -29
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +38 -29
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +38 -29
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +5 -6
- package/menubar/Menubar.vue +14 -15
- package/menubar/MenubarSub.vue +79 -62
- package/menubar/menubar.cjs.js +56 -58
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +56 -58
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +56 -58
- package/menubar/menubar.min.js +1 -1
- package/menuitem/MenuItem.d.ts +2 -2
- package/message/Message.d.ts +5 -5
- package/message/Message.vue +19 -14
- package/message/message.cjs.js +15 -10
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +15 -10
- package/message/message.esm.min.js +1 -1
- package/message/message.js +15 -10
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +21 -16
- package/multiselect/MultiSelect.vue +240 -150
- package/multiselect/multiselect.cjs.js +184 -133
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +185 -134
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +184 -133
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +5 -5
- package/orderlist/OrderList.vue +65 -60
- package/orderlist/orderlist.cjs.js +51 -53
- package/orderlist/orderlist.esm.js +51 -53
- package/orderlist/orderlist.js +51 -53
- package/organizationchart/OrganizationChart.d.ts +4 -4
- package/organizationchart/OrganizationChart.vue +13 -17
- package/organizationchart/OrganizationChartNode.vue +20 -12
- package/organizationchart/organizationchart.cjs.js +14 -16
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +14 -16
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +14 -16
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/OverlayPanel.d.ts +5 -5
- package/overlaypanel/OverlayPanel.vue +60 -50
- package/overlaypanel/overlaypanel.cjs.js +40 -32
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +40 -32
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +40 -32
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/CurrentPageReport.vue +47 -47
- package/paginator/FirstPageLink.vue +11 -8
- package/paginator/JumpToPageDropdown.vue +7 -6
- package/paginator/JumpToPageInput.vue +3 -3
- package/paginator/LastPageLink.vue +11 -8
- package/paginator/NextPageLink.vue +11 -8
- package/paginator/PageLinks.vue +3 -4
- package/paginator/Paginator.d.ts +5 -5
- package/paginator/Paginator.vue +39 -39
- package/paginator/PrevPageLink.vue +11 -8
- package/paginator/RowsPerPageDropdown.vue +7 -6
- package/paginator/paginator.cjs.js +110 -91
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +110 -91
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +633 -614
- package/paginator/paginator.min.js +1 -1
- package/panel/Panel.d.ts +9 -5
- package/panel/Panel.vue +29 -11
- package/panel/panel.cjs.js +24 -14
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +24 -14
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +24 -14
- package/panel/panel.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +5 -5
- package/panelmenu/PanelMenu.vue +46 -38
- package/panelmenu/PanelMenuSub.vue +40 -29
- package/panelmenu/panelmenu.cjs.js +56 -52
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +56 -52
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +56 -52
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +12 -7
- package/password/Password.vue +156 -79
- package/password/password.cjs.js +135 -74
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +135 -74
- package/password/password.esm.min.js +1 -1
- package/password/password.js +135 -74
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +9 -9
- package/picklist/PickList.vue +99 -78
- package/picklist/picklist.cjs.js +71 -66
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +71 -66
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +71 -66
- package/picklist/picklist.min.js +1 -1
- package/portal/Portal.d.ts +3 -3
- package/portal/Portal.vue +2 -2
- package/portal/portal.cjs.js +1 -1
- package/portal/portal.esm.js +1 -1
- package/portal/portal.js +1 -1
- package/progressbar/ProgressBar.d.ts +4 -5
- package/progressbar/ProgressBar.vue +63 -51
- package/progressbar/progressbar.cjs.js +2 -2
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +2 -2
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +2 -2
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/ProgressSpinner.d.ts +5 -7
- package/progressspinner/ProgressSpinner.vue +1 -1
- package/radiobutton/RadioButton.d.ts +9 -9
- package/radiobutton/RadioButton.vue +41 -13
- package/radiobutton/radiobutton.cjs.js +24 -10
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +24 -10
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +24 -10
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +54 -5
- package/rating/Rating.vue +88 -62
- package/rating/rating.cjs.js +105 -84
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +106 -85
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +106 -86
- package/rating/rating.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +23 -12
- package/resources/themes/arya-green/theme.css +23 -12
- package/resources/themes/arya-orange/theme.css +23 -12
- package/resources/themes/arya-purple/theme.css +23 -12
- package/resources/themes/bootstrap4-dark-blue/theme.css +24 -13
- package/resources/themes/bootstrap4-dark-purple/theme.css +24 -13
- package/resources/themes/bootstrap4-light-blue/theme.css +24 -13
- package/resources/themes/bootstrap4-light-purple/theme.css +24 -13
- package/resources/themes/fluent-light/theme.css +23 -12
- package/resources/themes/lara-dark-blue/theme.css +23 -12
- package/resources/themes/lara-dark-indigo/theme.css +23 -12
- package/resources/themes/lara-dark-purple/theme.css +23 -12
- package/resources/themes/lara-dark-teal/theme.css +23 -12
- package/resources/themes/lara-light-blue/theme.css +23 -12
- package/resources/themes/lara-light-indigo/theme.css +23 -12
- package/resources/themes/lara-light-purple/theme.css +23 -12
- package/resources/themes/lara-light-teal/theme.css +23 -12
- package/resources/themes/luna-amber/theme.css +24 -13
- package/resources/themes/luna-blue/theme.css +24 -13
- package/resources/themes/luna-green/theme.css +24 -13
- package/resources/themes/luna-pink/theme.css +24 -13
- package/resources/themes/md-dark-deeppurple/theme.css +46 -20
- package/resources/themes/md-dark-indigo/theme.css +46 -20
- package/resources/themes/md-light-deeppurple/theme.css +46 -20
- package/resources/themes/md-light-indigo/theme.css +46 -20
- package/resources/themes/mdc-dark-deeppurple/theme.css +46 -20
- package/resources/themes/mdc-dark-indigo/theme.css +46 -20
- package/resources/themes/mdc-light-deeppurple/theme.css +46 -20
- package/resources/themes/mdc-light-indigo/theme.css +46 -20
- package/resources/themes/nova/theme.css +24 -13
- package/resources/themes/nova-accent/theme.css +23 -12
- package/resources/themes/nova-alt/theme.css +24 -13
- package/resources/themes/nova-vue/theme.css +24 -13
- package/resources/themes/rhea/theme.css +23 -12
- package/resources/themes/saga-blue/theme.css +23 -12
- package/resources/themes/saga-green/theme.css +23 -12
- package/resources/themes/saga-orange/theme.css +23 -12
- package/resources/themes/saga-purple/theme.css +23 -12
- package/resources/themes/tailwind-light/theme.css +23 -12
- package/resources/themes/vela-blue/theme.css +23 -12
- package/resources/themes/vela-green/theme.css +23 -12
- package/resources/themes/vela-orange/theme.css +23 -12
- package/resources/themes/vela-purple/theme.css +23 -12
- package/ripple/ripple.cjs.js +7 -1
- package/ripple/ripple.esm.js +7 -1
- package/ripple/ripple.js +7 -1
- package/row/Row.d.ts +6 -9
- package/row/Row.vue +1 -1
- package/scrollpanel/ScrollPanel.d.ts +9 -5
- package/scrollpanel/ScrollPanel.vue +194 -56
- package/scrollpanel/scrollpanel.cjs.js +180 -56
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +181 -57
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +180 -56
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/ScrollTop.d.ts +5 -7
- package/scrolltop/ScrollTop.vue +18 -23
- package/scrolltop/scrolltop.cjs.js +14 -19
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +14 -19
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +14 -19
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +11 -11
- package/selectbutton/SelectButton.vue +50 -32
- package/selectbutton/selectbutton.cjs.js +30 -25
- package/selectbutton/selectbutton.esm.js +30 -25
- package/selectbutton/selectbutton.js +30 -25
- package/sidebar/Sidebar.d.ts +6 -6
- package/sidebar/Sidebar.vue +24 -14
- package/sidebar/sidebar.cjs.js +20 -10
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +20 -10
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +20 -10
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +5 -7
- package/skeleton/Skeleton.vue +12 -11
- package/skeleton/skeleton.cjs.js +10 -9
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +10 -9
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +10 -9
- package/skeleton/skeleton.min.js +1 -1
- package/slider/Slider.d.ts +7 -8
- package/slider/Slider.vue +162 -141
- package/slider/slider.cjs.js +100 -127
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +100 -127
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +100 -127
- package/slider/slider.min.js +1 -1
- package/speeddial/SpeedDial.d.ts +8 -8
- package/speeddial/SpeedDial.vue +54 -39
- package/speeddial/speeddial.cjs.js +44 -36
- package/speeddial/speeddial.esm.js +44 -36
- package/speeddial/speeddial.js +44 -36
- package/splitbutton/SplitButton.d.ts +6 -6
- package/splitbutton/SplitButton.vue +9 -11
- package/splitbutton/splitbutton.cjs.js +7 -7
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +7 -7
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +7 -7
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +10 -5
- package/splitter/Splitter.vue +158 -53
- package/splitter/splitter.cjs.js +156 -52
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +157 -53
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +156 -52
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/SplitterPanel.d.ts +4 -5
- package/splitterpanel/SplitterPanel.vue +3 -3
- package/splitterpanel/splitterpanel.cjs.js +2 -2
- package/splitterpanel/splitterpanel.esm.js +2 -2
- package/splitterpanel/splitterpanel.js +2 -2
- package/steps/Steps.d.ts +4 -5
- package/steps/Steps.vue +31 -23
- package/steps/steps.cjs.js +24 -16
- package/steps/steps.esm.js +24 -16
- package/steps/steps.js +24 -16
- package/styleclass/styleclass.cjs.js +19 -21
- package/styleclass/styleclass.esm.js +19 -21
- package/styleclass/styleclass.js +19 -21
- package/tabmenu/TabMenu.d.ts +4 -4
- package/tabmenu/TabMenu.vue +45 -34
- package/tabmenu/tabmenu.cjs.js +36 -25
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +36 -25
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +36 -25
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/TabPanel.d.ts +33 -6
- package/tabpanel/TabPanel.vue +8 -1
- package/tabpanel/tabpanel.cjs.js +7 -0
- package/tabpanel/tabpanel.cjs.min.js +1 -1
- package/tabpanel/tabpanel.esm.js +7 -0
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +7 -0
- package/tabpanel/tabpanel.min.js +1 -1
- package/tabview/TabView.d.ts +22 -6
- package/tabview/TabView.vue +280 -96
- package/tabview/tabview.cjs.js +294 -131
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +296 -133
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +294 -131
- package/tabview/tabview.min.js +1 -1
- package/tag/Tag.d.ts +4 -5
- package/tag/Tag.vue +13 -10
- package/tag/tag.cjs.js +10 -7
- package/tag/tag.esm.js +10 -7
- package/tag/tag.js +10 -7
- package/terminal/Terminal.d.ts +5 -7
- package/terminal/Terminal.vue +10 -10
- package/terminal/terminal.cjs.js +3 -3
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +3 -3
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +3 -3
- package/terminal/terminal.min.js +1 -1
- package/textarea/Textarea.d.ts +5 -6
- package/textarea/Textarea.vue +7 -7
- package/textarea/textarea.cjs.js +6 -6
- package/textarea/textarea.esm.js +6 -6
- package/textarea/textarea.js +6 -6
- package/tieredmenu/TieredMenu.d.ts +4 -5
- package/tieredmenu/TieredMenu.vue +23 -15
- package/tieredmenu/TieredMenuSub.vue +62 -51
- package/tieredmenu/tieredmenu.cjs.js +60 -50
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +60 -50
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +60 -50
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/Timeline.d.ts +4 -5
- package/timeline/Timeline.vue +6 -10
- package/timeline/timeline.cjs.js +3 -7
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +3 -7
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +3 -7
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.d.ts +10 -13
- package/toast/Toast.vue +36 -29
- package/toast/ToastMessage.vue +25 -18
- package/toast/toast.cjs.js +37 -23
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +37 -23
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +37 -23
- package/toast/toast.min.js +1 -1
- package/toastservice/toastservice.cjs.js +1 -0
- package/toastservice/toastservice.esm.js +1 -0
- package/toastservice/toastservice.js +1 -0
- package/togglebutton/ToggleButton.d.ts +10 -10
- package/togglebutton/ToggleButton.vue +42 -18
- package/togglebutton/togglebutton.cjs.js +25 -13
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +25 -13
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +25 -13
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/Toolbar.d.ts +8 -5
- package/toolbar/Toolbar.vue +9 -3
- package/toolbar/toolbar.cjs.js +14 -7
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +14 -7
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +14 -7
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/tooltip.cjs.js +36 -24
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +37 -25
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +36 -24
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +7 -7
- package/tree/Tree.vue +66 -56
- package/tree/TreeNode.vue +70 -66
- package/tree/tree.cjs.js +99 -102
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +99 -102
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +99 -102
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +9 -9
- package/treeselect/TreeSelect.vue +130 -72
- package/treeselect/treeselect.cjs.js +89 -59
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +89 -59
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +89 -59
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +29 -19
- package/treetable/FooterCell.vue +19 -11
- package/treetable/HeaderCell.vue +44 -36
- package/treetable/TreeTable.d.ts +8 -8
- package/treetable/TreeTable.vue +229 -178
- package/treetable/TreeTableRow.vue +74 -58
- package/treetable/treetable.cjs.js +287 -253
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +287 -253
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +287 -253
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +9 -9
- package/tristatecheckbox/TriStateCheckbox.vue +39 -18
- package/tristatecheckbox/tristatecheckbox.cjs.js +24 -15
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +24 -15
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +24 -15
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +16 -10
- package/useconfirm/UseConfirm.d.ts +1 -1
- package/useconfirm/useconfirm.cjs.js +2 -1
- package/useconfirm/useconfirm.esm.js +2 -1
- package/useconfirm/useconfirm.js +2 -1
- package/usedialog/UseDialog.d.ts +1 -1
- package/usedialog/usedialog.cjs.js +2 -1
- package/usedialog/usedialog.esm.js +2 -1
- package/usedialog/usedialog.js +2 -1
- package/usetoast/usetoast.cjs.js +2 -1
- package/usetoast/usetoast.esm.js +2 -1
- package/usetoast/usetoast.js +2 -1
- package/utils/Utils.d.ts +7 -5
- package/utils/utils.cjs.js +183 -156
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +183 -156
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +183 -156
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +160 -0
- package/vetur-tags.json +58 -8
- package/virtualscroller/VirtualScroller.d.ts +9 -9
- package/virtualscroller/VirtualScroller.vue +108 -96
- package/virtualscroller/virtualscroller.cjs.js +87 -89
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +87 -89
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +87 -89
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +488 -2
|
@@ -56,13 +56,13 @@ const _hoisted_1$a = ["aria-checked", "tabindex"];
|
|
|
56
56
|
|
|
57
57
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
58
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
59
|
-
class: vue.normalizeClass(['p-checkbox p-component', {'p-checkbox-focused': $data.focused, 'p-disabled': _ctx.$attrs.disabled}]),
|
|
59
|
+
class: vue.normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': _ctx.$attrs.disabled }]),
|
|
60
60
|
onClick: _cache[2] || (_cache[2] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
61
61
|
onKeydown: _cache[3] || (_cache[3] = vue.withKeys(vue.withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
|
|
62
62
|
}, [
|
|
63
63
|
vue.createElementVNode("div", {
|
|
64
64
|
ref: "box",
|
|
65
|
-
class: vue.normalizeClass(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
65
|
+
class: vue.normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
66
66
|
role: "checkbox",
|
|
67
67
|
"aria-checked": $props.checked,
|
|
68
68
|
tabindex: _ctx.$attrs.disabled ? null : '0',
|
|
@@ -70,7 +70,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
70
|
onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event)))
|
|
71
71
|
}, [
|
|
72
72
|
vue.createElementVNode("span", {
|
|
73
|
-
class: vue.normalizeClass(['p-checkbox-icon', {'pi pi-check': $props.checked}])
|
|
73
|
+
class: vue.normalizeClass(['p-checkbox-icon', { 'pi pi-check': $props.checked }])
|
|
74
74
|
}, null, 2)
|
|
75
75
|
], 42, _hoisted_1$a)
|
|
76
76
|
], 34))
|
|
@@ -80,7 +80,7 @@ script$a.render = render$a;
|
|
|
80
80
|
|
|
81
81
|
var script$9 = {
|
|
82
82
|
name: 'ColumnFilter',
|
|
83
|
-
emits: ['filter-change','filter-apply','operator-change','matchmode-change','constraint-add','constraint-remove','filter-clear','apply-click'],
|
|
83
|
+
emits: ['filter-change', 'filter-apply', 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
|
|
84
84
|
props: {
|
|
85
85
|
field: {
|
|
86
86
|
type: String,
|
|
@@ -157,7 +157,7 @@ var script$9 = {
|
|
|
157
157
|
overlayVisible: false,
|
|
158
158
|
defaultMatchMode: null,
|
|
159
159
|
defaultOperator: null
|
|
160
|
-
}
|
|
160
|
+
};
|
|
161
161
|
},
|
|
162
162
|
overlay: null,
|
|
163
163
|
selfClick: false,
|
|
@@ -176,24 +176,24 @@ var script$9 = {
|
|
|
176
176
|
mounted() {
|
|
177
177
|
if (this.filters && this.filters[this.field]) {
|
|
178
178
|
let fieldFilters = this.filters[this.field];
|
|
179
|
+
|
|
179
180
|
if (fieldFilters.operator) {
|
|
180
181
|
this.defaultMatchMode = fieldFilters.constraints[0].matchMode;
|
|
181
182
|
this.defaultOperator = fieldFilters.operator;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
183
|
+
} else {
|
|
184
184
|
this.defaultMatchMode = this.filters[this.field].matchMode;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
methods: {
|
|
189
189
|
clearFilter() {
|
|
190
|
-
let _filters = {...this.filters};
|
|
190
|
+
let _filters = { ...this.filters };
|
|
191
|
+
|
|
191
192
|
if (_filters[this.field].operator) {
|
|
192
193
|
_filters[this.field].constraints.splice(1);
|
|
193
194
|
_filters[this.field].operator = this.defaultOperator;
|
|
194
|
-
_filters[this.field].constraints[0] = {value: null, matchMode: this.defaultMatchMode};
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
195
|
+
_filters[this.field].constraints[0] = { value: null, matchMode: this.defaultMatchMode };
|
|
196
|
+
} else {
|
|
197
197
|
_filters[this.field].value = null;
|
|
198
198
|
_filters[this.field].matchMode = this.defaultMatchMode;
|
|
199
199
|
}
|
|
@@ -204,18 +204,17 @@ var script$9 = {
|
|
|
204
204
|
this.hide();
|
|
205
205
|
},
|
|
206
206
|
applyFilter() {
|
|
207
|
-
this.$emit('apply-click', {field: this.field, constraints: this.filters[this.field]});
|
|
207
|
+
this.$emit('apply-click', { field: this.field, constraints: this.filters[this.field] });
|
|
208
208
|
this.$emit('filter-apply');
|
|
209
209
|
this.hide();
|
|
210
210
|
},
|
|
211
211
|
hasFilter() {
|
|
212
212
|
if (this.filtersStore) {
|
|
213
213
|
let fieldFilter = this.filtersStore[this.field];
|
|
214
|
+
|
|
214
215
|
if (fieldFilter) {
|
|
215
|
-
if (fieldFilter.operator)
|
|
216
|
-
|
|
217
|
-
else
|
|
218
|
-
return !this.isFilterBlank(fieldFilter.value);
|
|
216
|
+
if (fieldFilter.operator) return !this.isFilterBlank(fieldFilter.constraints[0].value);
|
|
217
|
+
else return !this.isFilterBlank(fieldFilter.value);
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
|
|
@@ -226,48 +225,51 @@ var script$9 = {
|
|
|
226
225
|
},
|
|
227
226
|
isFilterBlank(filter) {
|
|
228
227
|
if (filter !== null && filter !== undefined) {
|
|
229
|
-
if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0))
|
|
230
|
-
|
|
231
|
-
else
|
|
232
|
-
return false;
|
|
228
|
+
if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0)) return true;
|
|
229
|
+
else return false;
|
|
233
230
|
}
|
|
231
|
+
|
|
234
232
|
return true;
|
|
235
233
|
},
|
|
236
234
|
toggleMenu() {
|
|
237
235
|
this.overlayVisible = !this.overlayVisible;
|
|
238
236
|
},
|
|
239
237
|
onToggleButtonKeyDown(event) {
|
|
240
|
-
switch(event.key) {
|
|
238
|
+
switch (event.key) {
|
|
241
239
|
case 'Escape':
|
|
242
240
|
case 'Tab':
|
|
243
241
|
this.overlayVisible = false;
|
|
244
|
-
|
|
242
|
+
break;
|
|
245
243
|
|
|
246
244
|
case 'ArrowDown':
|
|
247
245
|
if (this.overlayVisible) {
|
|
248
246
|
let focusable = utils.DomHandler.getFocusableElements(this.overlay);
|
|
247
|
+
|
|
249
248
|
if (focusable) {
|
|
250
249
|
focusable[0].focus();
|
|
251
250
|
}
|
|
251
|
+
|
|
252
252
|
event.preventDefault();
|
|
253
|
-
}
|
|
254
|
-
else if (event.altKey) {
|
|
253
|
+
} else if (event.altKey) {
|
|
255
254
|
this.overlayVisible = true;
|
|
256
255
|
event.preventDefault();
|
|
257
256
|
}
|
|
258
|
-
|
|
257
|
+
|
|
258
|
+
break;
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
261
|
onEscape() {
|
|
262
262
|
this.overlayVisible = false;
|
|
263
|
+
|
|
263
264
|
if (this.$refs.icon) {
|
|
264
265
|
this.$refs.icon.focus();
|
|
265
266
|
}
|
|
266
267
|
},
|
|
267
268
|
onRowMatchModeChange(matchMode) {
|
|
268
|
-
let _filters = {...this.filters};
|
|
269
|
+
let _filters = { ...this.filters };
|
|
270
|
+
|
|
269
271
|
_filters[this.field].matchMode = matchMode;
|
|
270
|
-
this.$emit('matchmode-change', {field: this.field, matchMode: matchMode});
|
|
272
|
+
this.$emit('matchmode-change', { field: this.field, matchMode: matchMode });
|
|
271
273
|
this.$emit('filter-change', _filters);
|
|
272
274
|
this.$emit('filter-apply');
|
|
273
275
|
this.hide();
|
|
@@ -275,9 +277,10 @@ var script$9 = {
|
|
|
275
277
|
onRowMatchModeKeyDown(event) {
|
|
276
278
|
let item = event.target;
|
|
277
279
|
|
|
278
|
-
switch(event.key) {
|
|
280
|
+
switch (event.key) {
|
|
279
281
|
case 'ArrowDown':
|
|
280
282
|
var nextItem = this.findNextItem(item);
|
|
283
|
+
|
|
281
284
|
if (nextItem) {
|
|
282
285
|
item.removeAttribute('tabindex');
|
|
283
286
|
nextItem.tabIndex = '0';
|
|
@@ -285,10 +288,11 @@ var script$9 = {
|
|
|
285
288
|
}
|
|
286
289
|
|
|
287
290
|
event.preventDefault();
|
|
288
|
-
|
|
291
|
+
break;
|
|
289
292
|
|
|
290
293
|
case 'ArrowUp':
|
|
291
294
|
var prevItem = this.findPrevItem(item);
|
|
295
|
+
|
|
292
296
|
if (prevItem) {
|
|
293
297
|
item.removeAttribute('tabindex');
|
|
294
298
|
prevItem.tabIndex = '0';
|
|
@@ -296,36 +300,40 @@ var script$9 = {
|
|
|
296
300
|
}
|
|
297
301
|
|
|
298
302
|
event.preventDefault();
|
|
299
|
-
|
|
303
|
+
break;
|
|
300
304
|
}
|
|
301
305
|
},
|
|
302
306
|
isRowMatchModeSelected(matchMode) {
|
|
303
|
-
return
|
|
307
|
+
return this.filters[this.field].matchMode === matchMode;
|
|
304
308
|
},
|
|
305
309
|
onOperatorChange(value) {
|
|
306
|
-
let _filters = {...this.filters};
|
|
310
|
+
let _filters = { ...this.filters };
|
|
311
|
+
|
|
307
312
|
_filters[this.field].operator = value;
|
|
308
313
|
this.$emit('filter-change', _filters);
|
|
309
314
|
|
|
310
|
-
this.$emit('operator-change', {field: this.field, operator: value});
|
|
315
|
+
this.$emit('operator-change', { field: this.field, operator: value });
|
|
316
|
+
|
|
311
317
|
if (!this.showApplyButton) {
|
|
312
318
|
this.$emit('filter-apply');
|
|
313
319
|
}
|
|
314
320
|
},
|
|
315
321
|
onMenuMatchModeChange(value, index) {
|
|
316
|
-
let _filters = {...this.filters};
|
|
322
|
+
let _filters = { ...this.filters };
|
|
323
|
+
|
|
317
324
|
_filters[this.field].constraints[index].matchMode = value;
|
|
318
|
-
this.$emit('matchmode-change', {field: this.field, matchMode: value, index: index});
|
|
325
|
+
this.$emit('matchmode-change', { field: this.field, matchMode: value, index: index });
|
|
319
326
|
|
|
320
327
|
if (!this.showApplyButton) {
|
|
321
328
|
this.$emit('filter-apply');
|
|
322
329
|
}
|
|
323
330
|
},
|
|
324
331
|
addConstraint() {
|
|
325
|
-
let _filters = {...this.filters};
|
|
326
|
-
let newConstraint = {value: null, matchMode: this.defaultMatchMode};
|
|
332
|
+
let _filters = { ...this.filters };
|
|
333
|
+
let newConstraint = { value: null, matchMode: this.defaultMatchMode };
|
|
334
|
+
|
|
327
335
|
_filters[this.field].constraints.push(newConstraint);
|
|
328
|
-
this.$emit('constraint-add', {field: this.field, constraing: newConstraint});
|
|
336
|
+
this.$emit('constraint-add', { field: this.field, constraing: newConstraint });
|
|
329
337
|
this.$emit('filter-change', _filters);
|
|
330
338
|
|
|
331
339
|
if (!this.showApplyButton) {
|
|
@@ -333,9 +341,10 @@ var script$9 = {
|
|
|
333
341
|
}
|
|
334
342
|
},
|
|
335
343
|
removeConstraint(index) {
|
|
336
|
-
let _filters = {...this.filters};
|
|
344
|
+
let _filters = { ...this.filters };
|
|
337
345
|
let removedConstraint = _filters[this.field].constraints.splice(index, 1);
|
|
338
|
-
|
|
346
|
+
|
|
347
|
+
this.$emit('constraint-remove', { field: this.field, constraing: removedConstraint });
|
|
339
348
|
this.$emit('filter-change', _filters);
|
|
340
349
|
|
|
341
350
|
if (!this.showApplyButton) {
|
|
@@ -348,18 +357,14 @@ var script$9 = {
|
|
|
348
357
|
findNextItem(item) {
|
|
349
358
|
let nextItem = item.nextElementSibling;
|
|
350
359
|
|
|
351
|
-
if (nextItem)
|
|
352
|
-
|
|
353
|
-
else
|
|
354
|
-
return item.parentElement.firstElementChild;
|
|
360
|
+
if (nextItem) return utils.DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
|
|
361
|
+
else return item.parentElement.firstElementChild;
|
|
355
362
|
},
|
|
356
363
|
findPrevItem(item) {
|
|
357
364
|
let prevItem = item.previousElementSibling;
|
|
358
365
|
|
|
359
|
-
if (prevItem)
|
|
360
|
-
|
|
361
|
-
else
|
|
362
|
-
return item.parentElement.lastElementChild;
|
|
366
|
+
if (prevItem) utils.DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
|
|
367
|
+
else return item.parentElement.lastElementChild;
|
|
363
368
|
},
|
|
364
369
|
hide() {
|
|
365
370
|
this.overlayVisible = false;
|
|
@@ -379,6 +384,7 @@ var script$9 = {
|
|
|
379
384
|
if (this.filterMenuStyle) {
|
|
380
385
|
utils.DomHandler.applyStyle(this.overlay, this.filterMenuStyle);
|
|
381
386
|
}
|
|
387
|
+
|
|
382
388
|
utils.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
383
389
|
utils.DomHandler.absolutePosition(this.overlay, this.$refs.icon);
|
|
384
390
|
this.bindOutsideClickListener();
|
|
@@ -390,6 +396,7 @@ var script$9 = {
|
|
|
390
396
|
this.selfClick = true;
|
|
391
397
|
}
|
|
392
398
|
};
|
|
399
|
+
|
|
393
400
|
OverlayEventBus__default["default"].on('overlay-click', this.overlayEventListener);
|
|
394
401
|
},
|
|
395
402
|
onOverlayLeave() {
|
|
@@ -421,8 +428,10 @@ var script$9 = {
|
|
|
421
428
|
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
|
|
422
429
|
this.overlayVisible = false;
|
|
423
430
|
}
|
|
431
|
+
|
|
424
432
|
this.selfClick = false;
|
|
425
433
|
};
|
|
434
|
+
|
|
426
435
|
document.addEventListener('click', this.outsideClickListener);
|
|
427
436
|
}
|
|
428
437
|
},
|
|
@@ -456,6 +465,7 @@ var script$9 = {
|
|
|
456
465
|
this.hide();
|
|
457
466
|
}
|
|
458
467
|
};
|
|
468
|
+
|
|
459
469
|
window.addEventListener('resize', this.resizeListener);
|
|
460
470
|
}
|
|
461
471
|
},
|
|
@@ -468,35 +478,43 @@ var script$9 = {
|
|
|
468
478
|
},
|
|
469
479
|
computed: {
|
|
470
480
|
containerClass() {
|
|
471
|
-
return [
|
|
472
|
-
'p-column-filter-
|
|
473
|
-
|
|
474
|
-
|
|
481
|
+
return [
|
|
482
|
+
'p-column-filter p-fluid',
|
|
483
|
+
{
|
|
484
|
+
'p-column-filter-row': this.display === 'row',
|
|
485
|
+
'p-column-filter-menu': this.display === 'menu'
|
|
486
|
+
}
|
|
487
|
+
];
|
|
475
488
|
},
|
|
476
489
|
overlayClass() {
|
|
477
|
-
return [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
490
|
+
return [
|
|
491
|
+
this.filterMenuClass,
|
|
492
|
+
{
|
|
493
|
+
'p-column-filter-overlay p-component p-fluid': true,
|
|
494
|
+
'p-column-filter-overlay-menu': this.display === 'menu',
|
|
495
|
+
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
496
|
+
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
497
|
+
}
|
|
498
|
+
];
|
|
483
499
|
},
|
|
484
500
|
showMenuButton() {
|
|
485
|
-
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean': true);
|
|
501
|
+
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);
|
|
486
502
|
},
|
|
487
503
|
matchModes() {
|
|
488
|
-
return
|
|
489
|
-
this
|
|
490
|
-
|
|
491
|
-
|
|
504
|
+
return (
|
|
505
|
+
this.matchModeOptions ||
|
|
506
|
+
this.$primevue.config.filterMatchModeOptions[this.type].map((key) => {
|
|
507
|
+
return { label: this.$primevue.config.locale[key], value: key };
|
|
508
|
+
})
|
|
509
|
+
);
|
|
492
510
|
},
|
|
493
511
|
isShowMatchModes() {
|
|
494
512
|
return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
|
|
495
513
|
},
|
|
496
514
|
operatorOptions() {
|
|
497
515
|
return [
|
|
498
|
-
{label: this.$primevue.config.locale.matchAll, value: api.FilterOperator.AND},
|
|
499
|
-
{label: this.$primevue.config.locale.matchAny, value: api.FilterOperator.OR}
|
|
516
|
+
{ label: this.$primevue.config.locale.matchAll, value: api.FilterOperator.AND },
|
|
517
|
+
{ label: this.$primevue.config.locale.matchAny, value: api.FilterOperator.OR }
|
|
500
518
|
];
|
|
501
519
|
},
|
|
502
520
|
noFilterLabel() {
|
|
@@ -521,7 +539,7 @@ var script$9 = {
|
|
|
521
539
|
return this.$primevue.config.locale.addRule;
|
|
522
540
|
},
|
|
523
541
|
isShowAddConstraint() {
|
|
524
|
-
return this.showAddButton && this.filters[this.field].operator &&
|
|
542
|
+
return this.showAddButton && this.filters[this.field].operator && this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints;
|
|
525
543
|
},
|
|
526
544
|
clearButtonLabel() {
|
|
527
545
|
return this.$primevue.config.locale.clear;
|
|
@@ -531,9 +549,9 @@ var script$9 = {
|
|
|
531
549
|
}
|
|
532
550
|
},
|
|
533
551
|
components: {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
552
|
+
CFDropdown: Dropdown__default["default"],
|
|
553
|
+
CFButton: Button__default["default"],
|
|
554
|
+
Portal: Portal__default["default"]
|
|
537
555
|
}
|
|
538
556
|
};
|
|
539
557
|
|
|
@@ -589,7 +607,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
589
607
|
key: 1,
|
|
590
608
|
ref: "icon",
|
|
591
609
|
type: "button",
|
|
592
|
-
class: vue.normalizeClass(["p-column-filter-menu-button p-link", {'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter()}]),
|
|
610
|
+
class: vue.normalizeClass(["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }]),
|
|
593
611
|
"aria-haspopup": "true",
|
|
594
612
|
"aria-expanded": $data.overlayVisible,
|
|
595
613
|
onClick: _cache[0] || (_cache[0] = $event => ($options.toggleMenu())),
|
|
@@ -599,7 +617,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
599
617
|
($props.showClearButton && $props.display === 'row')
|
|
600
618
|
? (vue.openBlock(), vue.createElementBlock("button", {
|
|
601
619
|
key: 2,
|
|
602
|
-
class: vue.normalizeClass([{'p-hidden-space': !$options.hasRowFilter()}, "p-column-filter-clear-button p-link"]),
|
|
620
|
+
class: vue.normalizeClass([{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"]),
|
|
603
621
|
type: "button",
|
|
604
622
|
onClick: _cache[2] || (_cache[2] = $event => ($options.clearFilter()))
|
|
605
623
|
}, _hoisted_6$3, 2))
|
|
@@ -631,8 +649,8 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
631
649
|
? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_7$1, [
|
|
632
650
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.matchModes, (matchMode, i) => {
|
|
633
651
|
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
634
|
-
class: vue.normalizeClass(["p-column-filter-row-item", {'p-highlight': $options.isRowMatchModeSelected(matchMode.value)}]),
|
|
635
652
|
key: matchMode.label,
|
|
653
|
+
class: vue.normalizeClass(["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }]),
|
|
636
654
|
onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
|
|
637
655
|
onKeydown: [
|
|
638
656
|
_cache[3] || (_cache[3] = $event => ($options.onRowMatchModeKeyDown($event))),
|
|
@@ -770,9 +788,24 @@ script$9.render = render$9;
|
|
|
770
788
|
|
|
771
789
|
var script$8 = {
|
|
772
790
|
name: 'HeaderCell',
|
|
773
|
-
emits: [
|
|
774
|
-
|
|
775
|
-
|
|
791
|
+
emits: [
|
|
792
|
+
'column-click',
|
|
793
|
+
'column-mousedown',
|
|
794
|
+
'column-dragstart',
|
|
795
|
+
'column-dragover',
|
|
796
|
+
'column-dragleave',
|
|
797
|
+
'column-drop',
|
|
798
|
+
'column-resizestart',
|
|
799
|
+
'checkbox-change',
|
|
800
|
+
'filter-change',
|
|
801
|
+
'filter-apply',
|
|
802
|
+
'operator-change',
|
|
803
|
+
'matchmode-change',
|
|
804
|
+
'constraint-add',
|
|
805
|
+
'constraint-remove',
|
|
806
|
+
'filter-clear',
|
|
807
|
+
'apply-click'
|
|
808
|
+
],
|
|
776
809
|
props: {
|
|
777
810
|
column: {
|
|
778
811
|
type: Object,
|
|
@@ -783,7 +816,7 @@ var script$8 = {
|
|
|
783
816
|
default: false
|
|
784
817
|
},
|
|
785
818
|
groupRowsBy: {
|
|
786
|
-
type: [Array,String],
|
|
819
|
+
type: [Array, String],
|
|
787
820
|
default: null
|
|
788
821
|
},
|
|
789
822
|
sortMode: {
|
|
@@ -838,7 +871,7 @@ var script$8 = {
|
|
|
838
871
|
data() {
|
|
839
872
|
return {
|
|
840
873
|
styleObject: {}
|
|
841
|
-
}
|
|
874
|
+
};
|
|
842
875
|
},
|
|
843
876
|
mounted() {
|
|
844
877
|
if (this.columnProp('frozen')) {
|
|
@@ -855,15 +888,15 @@ var script$8 = {
|
|
|
855
888
|
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
856
889
|
},
|
|
857
890
|
onClick(event) {
|
|
858
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
891
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
859
892
|
},
|
|
860
893
|
onKeyDown(event) {
|
|
861
894
|
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && utils.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
862
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
895
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
863
896
|
}
|
|
864
897
|
},
|
|
865
898
|
onMouseDown(event) {
|
|
866
|
-
this.$emit('column-mousedown', {originalEvent: event, column: this.column});
|
|
899
|
+
this.$emit('column-mousedown', { originalEvent: event, column: this.column });
|
|
867
900
|
},
|
|
868
901
|
onDragStart(event) {
|
|
869
902
|
this.$emit('column-dragstart', event);
|
|
@@ -881,42 +914,48 @@ var script$8 = {
|
|
|
881
914
|
this.$emit('column-resizestart', event);
|
|
882
915
|
},
|
|
883
916
|
getMultiSortMetaIndex() {
|
|
884
|
-
return this.multiSortMeta.findIndex(meta =>
|
|
917
|
+
return this.multiSortMeta.findIndex((meta) => meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField'));
|
|
885
918
|
},
|
|
886
919
|
getBadgeValue() {
|
|
887
920
|
let index = this.getMultiSortMetaIndex();
|
|
888
921
|
|
|
889
|
-
return
|
|
922
|
+
return this.groupRowsBy && this.groupRowsBy === this.groupRowSortField && index > -1 ? index : index + 1;
|
|
890
923
|
},
|
|
891
924
|
isMultiSorted() {
|
|
892
|
-
return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
|
|
925
|
+
return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1;
|
|
893
926
|
},
|
|
894
927
|
isColumnSorted() {
|
|
895
|
-
return this.sortMode === 'single' ?
|
|
928
|
+
return this.sortMode === 'single' ? this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField')) : this.isMultiSorted();
|
|
896
929
|
},
|
|
897
930
|
updateStickyPosition() {
|
|
898
931
|
if (this.columnProp('frozen')) {
|
|
899
932
|
let align = this.columnProp('alignFrozen');
|
|
933
|
+
|
|
900
934
|
if (align === 'right') {
|
|
901
935
|
let right = 0;
|
|
902
936
|
let next = this.$el.nextElementSibling;
|
|
937
|
+
|
|
903
938
|
if (next) {
|
|
904
939
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
905
940
|
}
|
|
941
|
+
|
|
906
942
|
this.styleObject.right = right + 'px';
|
|
907
|
-
}
|
|
908
|
-
else {
|
|
943
|
+
} else {
|
|
909
944
|
let left = 0;
|
|
910
945
|
let prev = this.$el.previousElementSibling;
|
|
946
|
+
|
|
911
947
|
if (prev) {
|
|
912
948
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
913
949
|
}
|
|
950
|
+
|
|
914
951
|
this.styleObject.left = left + 'px';
|
|
915
952
|
}
|
|
916
953
|
|
|
917
954
|
let filterRow = this.$el.parentElement.nextElementSibling;
|
|
955
|
+
|
|
918
956
|
if (filterRow) {
|
|
919
957
|
let index = utils.DomHandler.index(this.$el);
|
|
958
|
+
|
|
920
959
|
filterRow.children[index].style.left = this.styleObject.left;
|
|
921
960
|
filterRow.children[index].style.right = this.styleObject.right;
|
|
922
961
|
}
|
|
@@ -928,20 +967,24 @@ var script$8 = {
|
|
|
928
967
|
},
|
|
929
968
|
computed: {
|
|
930
969
|
containerClass() {
|
|
931
|
-
return [
|
|
970
|
+
return [
|
|
971
|
+
this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'),
|
|
972
|
+
this.columnProp('class'),
|
|
973
|
+
{
|
|
932
974
|
'p-sortable-column': this.columnProp('sortable'),
|
|
933
975
|
'p-resizable-column': this.resizableColumns,
|
|
934
976
|
'p-highlight': this.isColumnSorted(),
|
|
935
977
|
'p-filter-column': this.filterColumn,
|
|
936
978
|
'p-frozen-column': this.columnProp('frozen'),
|
|
937
979
|
'p-reorderable-column': this.reorderableColumns
|
|
938
|
-
|
|
980
|
+
}
|
|
981
|
+
];
|
|
939
982
|
},
|
|
940
983
|
containerStyle() {
|
|
941
|
-
let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle'): this.columnProp('headerStyle');
|
|
984
|
+
let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle') : this.columnProp('headerStyle');
|
|
942
985
|
let columnStyle = this.columnProp('style');
|
|
943
986
|
|
|
944
|
-
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
|
|
987
|
+
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject] : [columnStyle, headerStyle];
|
|
945
988
|
},
|
|
946
989
|
sortableColumnIcon() {
|
|
947
990
|
let sorted = false;
|
|
@@ -949,10 +992,10 @@ var script$8 = {
|
|
|
949
992
|
|
|
950
993
|
if (this.sortMode === 'single') {
|
|
951
994
|
sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
|
|
952
|
-
sortOrder = sorted ? this.sortOrder: 0;
|
|
953
|
-
}
|
|
954
|
-
else if (this.sortMode === 'multiple') {
|
|
995
|
+
sortOrder = sorted ? this.sortOrder : 0;
|
|
996
|
+
} else if (this.sortMode === 'multiple') {
|
|
955
997
|
let metaIndex = this.getMultiSortMetaIndex();
|
|
998
|
+
|
|
956
999
|
if (metaIndex > -1) {
|
|
957
1000
|
sorted = true;
|
|
958
1001
|
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
@@ -960,7 +1003,8 @@ var script$8 = {
|
|
|
960
1003
|
}
|
|
961
1004
|
|
|
962
1005
|
return [
|
|
963
|
-
'p-sortable-column-icon pi pi-fw',
|
|
1006
|
+
'p-sortable-column-icon pi pi-fw',
|
|
1007
|
+
{
|
|
964
1008
|
'pi-sort-alt': !sorted,
|
|
965
1009
|
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
|
966
1010
|
'pi-sort-amount-down': sorted && sortOrder < 0
|
|
@@ -970,21 +1014,18 @@ var script$8 = {
|
|
|
970
1014
|
ariaSort() {
|
|
971
1015
|
if (this.columnProp('sortable')) {
|
|
972
1016
|
const sortIcon = this.sortableColumnIcon;
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
return 'none';
|
|
979
|
-
}
|
|
980
|
-
else {
|
|
1017
|
+
|
|
1018
|
+
if (sortIcon[1]['pi-sort-amount-down']) return 'descending';
|
|
1019
|
+
else if (sortIcon[1]['pi-sort-amount-up-alt']) return 'ascending';
|
|
1020
|
+
else return 'none';
|
|
1021
|
+
} else {
|
|
981
1022
|
return null;
|
|
982
1023
|
}
|
|
983
1024
|
}
|
|
984
1025
|
},
|
|
985
1026
|
components: {
|
|
986
|
-
|
|
987
|
-
|
|
1027
|
+
DTHeaderCheckbox: script$a,
|
|
1028
|
+
DTColumnFilter: script$9
|
|
988
1029
|
}
|
|
989
1030
|
};
|
|
990
1031
|
|
|
@@ -1045,7 +1086,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1045
1086
|
($options.isMultiSorted())
|
|
1046
1087
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$3, vue.toDisplayString($options.getBadgeValue()), 1))
|
|
1047
1088
|
: vue.createCommentVNode("", true),
|
|
1048
|
-
($options.columnProp('selectionMode') ==='multiple' && $props.filterDisplay !== 'row')
|
|
1089
|
+
($options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row')
|
|
1049
1090
|
? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
|
|
1050
1091
|
key: 4,
|
|
1051
1092
|
checked: $props.allRowsSelected,
|
|
@@ -1056,7 +1097,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1056
1097
|
($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
|
|
1057
1098
|
? (vue.openBlock(), vue.createBlock(_component_DTColumnFilter, {
|
|
1058
1099
|
key: 5,
|
|
1059
|
-
field: $options.columnProp('filterField')
|
|
1100
|
+
field: $options.columnProp('filterField') || $options.columnProp('field'),
|
|
1060
1101
|
type: $options.columnProp('dataType'),
|
|
1061
1102
|
display: "menu",
|
|
1062
1103
|
showMenu: $options.columnProp('showFilterMenu'),
|
|
@@ -1078,11 +1119,11 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1078
1119
|
showAddButton: $options.columnProp('showAddButton'),
|
|
1079
1120
|
matchModeOptions: $options.columnProp('filterMatchModeOptions'),
|
|
1080
1121
|
maxConstraints: $options.columnProp('maxConstraints'),
|
|
1081
|
-
onOperatorChange: _cache[3] || (_cache[3] = $event => (_ctx.$emit('operator-change'
|
|
1122
|
+
onOperatorChange: _cache[3] || (_cache[3] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1082
1123
|
onMatchmodeChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1083
1124
|
onConstraintAdd: _cache[5] || (_cache[5] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1084
1125
|
onConstraintRemove: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1085
|
-
onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click'
|
|
1126
|
+
onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1086
1127
|
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
|
|
1087
1128
|
: vue.createCommentVNode("", true)
|
|
1088
1129
|
])
|
|
@@ -1093,11 +1134,26 @@ script$8.render = render$8;
|
|
|
1093
1134
|
|
|
1094
1135
|
var script$7 = {
|
|
1095
1136
|
name: 'TableHeader',
|
|
1096
|
-
emits: [
|
|
1097
|
-
|
|
1098
|
-
|
|
1137
|
+
emits: [
|
|
1138
|
+
'column-click',
|
|
1139
|
+
'column-mousedown',
|
|
1140
|
+
'column-dragstart',
|
|
1141
|
+
'column-dragover',
|
|
1142
|
+
'column-dragleave',
|
|
1143
|
+
'column-drop',
|
|
1144
|
+
'column-resizestart',
|
|
1145
|
+
'checkbox-change',
|
|
1146
|
+
'filter-change',
|
|
1147
|
+
'filter-apply',
|
|
1148
|
+
'operator-change',
|
|
1149
|
+
'matchmode-change',
|
|
1150
|
+
'constraint-add',
|
|
1151
|
+
'constraint-remove',
|
|
1152
|
+
'filter-clear',
|
|
1153
|
+
'apply-click'
|
|
1154
|
+
],
|
|
1099
1155
|
props: {
|
|
1100
|
-
|
|
1156
|
+
columnGroup: {
|
|
1101
1157
|
type: null,
|
|
1102
1158
|
default: null
|
|
1103
1159
|
},
|
|
@@ -1110,7 +1166,7 @@ var script$7 = {
|
|
|
1110
1166
|
default: null
|
|
1111
1167
|
},
|
|
1112
1168
|
groupRowsBy: {
|
|
1113
|
-
type: [Array,String],
|
|
1169
|
+
type: [Array, String],
|
|
1114
1170
|
default: null
|
|
1115
1171
|
},
|
|
1116
1172
|
resizableColumns: {
|
|
@@ -1167,9 +1223,14 @@ var script$7 = {
|
|
|
1167
1223
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1168
1224
|
},
|
|
1169
1225
|
getFilterColumnHeaderClass(column) {
|
|
1170
|
-
return [
|
|
1171
|
-
'p-
|
|
1172
|
-
|
|
1226
|
+
return [
|
|
1227
|
+
'p-filter-column',
|
|
1228
|
+
this.columnProp(column, 'filterHeaderClass'),
|
|
1229
|
+
this.columnProp(column, 'class'),
|
|
1230
|
+
{
|
|
1231
|
+
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
1232
|
+
}
|
|
1233
|
+
];
|
|
1173
1234
|
},
|
|
1174
1235
|
getFilterColumnHeaderStyle(column) {
|
|
1175
1236
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
@@ -1178,12 +1239,12 @@ var script$7 = {
|
|
|
1178
1239
|
let rows = [];
|
|
1179
1240
|
|
|
1180
1241
|
let columnGroup = this.columnGroup;
|
|
1242
|
+
|
|
1181
1243
|
if (columnGroup.children && columnGroup.children.default) {
|
|
1182
1244
|
for (let child of columnGroup.children.default()) {
|
|
1183
1245
|
if (child.type.name === 'Row') {
|
|
1184
1246
|
rows.push(child);
|
|
1185
|
-
}
|
|
1186
|
-
else if (child.children && child.children instanceof Array) {
|
|
1247
|
+
} else if (child.children && child.children instanceof Array) {
|
|
1187
1248
|
rows = child.children;
|
|
1188
1249
|
}
|
|
1189
1250
|
}
|
|
@@ -1191,15 +1252,13 @@ var script$7 = {
|
|
|
1191
1252
|
return rows;
|
|
1192
1253
|
}
|
|
1193
1254
|
},
|
|
1194
|
-
getHeaderColumns(row){
|
|
1255
|
+
getHeaderColumns(row) {
|
|
1195
1256
|
let cols = [];
|
|
1196
1257
|
|
|
1197
1258
|
if (row.children && row.children.default) {
|
|
1198
|
-
row.children.default().forEach(child => {
|
|
1199
|
-
if (child.children && child.children instanceof Array)
|
|
1200
|
-
|
|
1201
|
-
else if (child.type.name === 'Column')
|
|
1202
|
-
cols.push(child);
|
|
1259
|
+
row.children.default().forEach((child) => {
|
|
1260
|
+
if (child.children && child.children instanceof Array) cols = [...cols, ...child.children];
|
|
1261
|
+
else if (child.type.name === 'Column') cols.push(child);
|
|
1203
1262
|
});
|
|
1204
1263
|
|
|
1205
1264
|
return cols;
|
|
@@ -1207,9 +1266,9 @@ var script$7 = {
|
|
|
1207
1266
|
}
|
|
1208
1267
|
},
|
|
1209
1268
|
components: {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1269
|
+
DTHeaderCell: script$8,
|
|
1270
|
+
DTHeaderCheckbox: script$a,
|
|
1271
|
+
DTColumnFilter: script$9
|
|
1213
1272
|
}
|
|
1214
1273
|
};
|
|
1215
1274
|
|
|
@@ -1234,9 +1293,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1234
1293
|
vue.createElementVNode("tr", _hoisted_2$5, [
|
|
1235
1294
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
1236
1295
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1237
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1296
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1238
1297
|
}, [
|
|
1239
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1298
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
|
|
1240
1299
|
? (vue.openBlock(), vue.createBlock(_component_DTHeaderCell, {
|
|
1241
1300
|
key: 0,
|
|
1242
1301
|
column: col,
|
|
@@ -1263,11 +1322,11 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1263
1322
|
filtersStore: $props.filtersStore,
|
|
1264
1323
|
onFilterChange: _cache[8] || (_cache[8] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1265
1324
|
onFilterApply: _cache[9] || (_cache[9] = $event => (_ctx.$emit('filter-apply'))),
|
|
1266
|
-
onOperatorChange: _cache[10] || (_cache[10] = $event => (_ctx.$emit('operator-change'
|
|
1325
|
+
onOperatorChange: _cache[10] || (_cache[10] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1267
1326
|
onMatchmodeChange: _cache[11] || (_cache[11] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1268
1327
|
onConstraintAdd: _cache[12] || (_cache[12] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1269
1328
|
onConstraintRemove: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1270
|
-
onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click'
|
|
1329
|
+
onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1271
1330
|
}, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
|
|
1272
1331
|
: vue.createCommentVNode("", true)
|
|
1273
1332
|
], 64))
|
|
@@ -1277,15 +1336,15 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1277
1336
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$4, [
|
|
1278
1337
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
1279
1338
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1280
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1339
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1281
1340
|
}, [
|
|
1282
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1341
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
|
|
1283
1342
|
? (vue.openBlock(), vue.createElementBlock("th", {
|
|
1284
1343
|
key: 0,
|
|
1285
1344
|
style: vue.normalizeStyle($options.getFilterColumnHeaderStyle(col)),
|
|
1286
1345
|
class: vue.normalizeClass($options.getFilterColumnHeaderClass(col))
|
|
1287
1346
|
}, [
|
|
1288
|
-
($options.columnProp(col, 'selectionMode') ==='multiple')
|
|
1347
|
+
($options.columnProp(col, 'selectionMode') === 'multiple')
|
|
1289
1348
|
? (vue.openBlock(), vue.createBlock(_component_DTHeaderCheckbox, {
|
|
1290
1349
|
key: 0,
|
|
1291
1350
|
checked: $props.allRowsSelected,
|
|
@@ -1296,10 +1355,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1296
1355
|
(col.children && col.children.filter)
|
|
1297
1356
|
? (vue.openBlock(), vue.createBlock(_component_DTColumnFilter, {
|
|
1298
1357
|
key: 1,
|
|
1299
|
-
field: $options.columnProp(col,'filterField')
|
|
1300
|
-
type: $options.columnProp(col,'dataType'),
|
|
1358
|
+
field: $options.columnProp(col, 'filterField') || $options.columnProp(col, 'field'),
|
|
1359
|
+
type: $options.columnProp(col, 'dataType'),
|
|
1301
1360
|
display: "row",
|
|
1302
|
-
showMenu: $options.columnProp(col,'showFilterMenu'),
|
|
1361
|
+
showMenu: $options.columnProp(col, 'showFilterMenu'),
|
|
1303
1362
|
filterElement: col.children && col.children.filter,
|
|
1304
1363
|
filterHeaderTemplate: col.children && col.children.filterheader,
|
|
1305
1364
|
filterFooterTemplate: col.children && col.children.filterfooter,
|
|
@@ -1309,20 +1368,20 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1309
1368
|
filtersStore: $props.filtersStore,
|
|
1310
1369
|
onFilterChange: _cache[16] || (_cache[16] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1311
1370
|
onFilterApply: _cache[17] || (_cache[17] = $event => (_ctx.$emit('filter-apply'))),
|
|
1312
|
-
filterMenuStyle: $options.columnProp(col,'filterMenuStyle'),
|
|
1313
|
-
filterMenuClass: $options.columnProp(col,'filterMenuClass'),
|
|
1314
|
-
showOperator: $options.columnProp(col,'showFilterOperator'),
|
|
1315
|
-
showClearButton: $options.columnProp(col,'showClearButton'),
|
|
1316
|
-
showApplyButton: $options.columnProp(col,'showApplyButton'),
|
|
1317
|
-
showMatchModes: $options.columnProp(col,'showFilterMatchModes'),
|
|
1318
|
-
showAddButton: $options.columnProp(col,'showAddButton'),
|
|
1319
|
-
matchModeOptions: $options.columnProp(col,'filterMatchModeOptions'),
|
|
1320
|
-
maxConstraints: $options.columnProp(col,'maxConstraints'),
|
|
1321
|
-
onOperatorChange: _cache[18] || (_cache[18] = $event => (_ctx.$emit('operator-change'
|
|
1371
|
+
filterMenuStyle: $options.columnProp(col, 'filterMenuStyle'),
|
|
1372
|
+
filterMenuClass: $options.columnProp(col, 'filterMenuClass'),
|
|
1373
|
+
showOperator: $options.columnProp(col, 'showFilterOperator'),
|
|
1374
|
+
showClearButton: $options.columnProp(col, 'showClearButton'),
|
|
1375
|
+
showApplyButton: $options.columnProp(col, 'showApplyButton'),
|
|
1376
|
+
showMatchModes: $options.columnProp(col, 'showFilterMatchModes'),
|
|
1377
|
+
showAddButton: $options.columnProp(col, 'showAddButton'),
|
|
1378
|
+
matchModeOptions: $options.columnProp(col, 'filterMatchModeOptions'),
|
|
1379
|
+
maxConstraints: $options.columnProp(col, 'maxConstraints'),
|
|
1380
|
+
onOperatorChange: _cache[18] || (_cache[18] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1322
1381
|
onMatchmodeChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1323
1382
|
onConstraintAdd: _cache[20] || (_cache[20] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1324
1383
|
onConstraintRemove: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1325
|
-
onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click'
|
|
1384
|
+
onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1326
1385
|
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
|
|
1327
1386
|
: vue.createCommentVNode("", true)
|
|
1328
1387
|
], 6))
|
|
@@ -1339,9 +1398,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1339
1398
|
}, [
|
|
1340
1399
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getHeaderColumns(row), (col, j) => {
|
|
1341
1400
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1342
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1401
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
|
|
1343
1402
|
}, [
|
|
1344
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1403
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')) && typeof col.children !== 'string')
|
|
1345
1404
|
? (vue.openBlock(), vue.createBlock(_component_DTHeaderCell, {
|
|
1346
1405
|
key: 0,
|
|
1347
1406
|
column: col,
|
|
@@ -1361,11 +1420,11 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1361
1420
|
filtersStore: $props.filtersStore,
|
|
1362
1421
|
onFilterChange: _cache[26] || (_cache[26] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1363
1422
|
onFilterApply: _cache[27] || (_cache[27] = $event => (_ctx.$emit('filter-apply'))),
|
|
1364
|
-
onOperatorChange: _cache[28] || (_cache[28] = $event => (_ctx.$emit('operator-change'
|
|
1423
|
+
onOperatorChange: _cache[28] || (_cache[28] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1365
1424
|
onMatchmodeChange: _cache[29] || (_cache[29] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1366
1425
|
onConstraintAdd: _cache[30] || (_cache[30] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1367
1426
|
onConstraintRemove: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1368
|
-
onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click'
|
|
1427
|
+
onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1369
1428
|
}, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
|
|
1370
1429
|
: vue.createCommentVNode("", true)
|
|
1371
1430
|
], 64))
|
|
@@ -1382,7 +1441,7 @@ var script$6 = {
|
|
|
1382
1441
|
inheritAttrs: false,
|
|
1383
1442
|
emits: ['change'],
|
|
1384
1443
|
props: {
|
|
1385
|
-
|
|
1444
|
+
value: null,
|
|
1386
1445
|
checked: null
|
|
1387
1446
|
},
|
|
1388
1447
|
data() {
|
|
@@ -1418,7 +1477,7 @@ const _hoisted_3$3 = [
|
|
|
1418
1477
|
|
|
1419
1478
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1420
1479
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
1421
|
-
class: vue.normalizeClass(['p-radiobutton p-component', {'p-radiobutton-focused': $data.focused}]),
|
|
1480
|
+
class: vue.normalizeClass(['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }]),
|
|
1422
1481
|
onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
1423
1482
|
tabindex: "0",
|
|
1424
1483
|
onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
|
|
@@ -1427,7 +1486,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1427
1486
|
}, [
|
|
1428
1487
|
vue.createElementVNode("div", {
|
|
1429
1488
|
ref: "box",
|
|
1430
|
-
class: vue.normalizeClass(['p-radiobutton-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
1489
|
+
class: vue.normalizeClass(['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
1431
1490
|
role: "radio",
|
|
1432
1491
|
"aria-checked": $props.checked
|
|
1433
1492
|
}, _hoisted_3$3, 10, _hoisted_1$6)
|
|
@@ -1441,7 +1500,7 @@ var script$5 = {
|
|
|
1441
1500
|
inheritAttrs: false,
|
|
1442
1501
|
emits: ['change'],
|
|
1443
1502
|
props: {
|
|
1444
|
-
|
|
1503
|
+
value: null,
|
|
1445
1504
|
checked: null
|
|
1446
1505
|
},
|
|
1447
1506
|
data() {
|
|
@@ -1472,12 +1531,12 @@ const _hoisted_1$5 = ["aria-checked", "tabindex"];
|
|
|
1472
1531
|
|
|
1473
1532
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1474
1533
|
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
1475
|
-
class: vue.normalizeClass(['p-checkbox p-component', {'p-checkbox-focused': $data.focused}]),
|
|
1534
|
+
class: vue.normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }]),
|
|
1476
1535
|
onClick: _cache[3] || (_cache[3] = vue.withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["stop","prevent"]))
|
|
1477
1536
|
}, [
|
|
1478
1537
|
vue.createElementVNode("div", {
|
|
1479
1538
|
ref: "box",
|
|
1480
|
-
class: vue.normalizeClass(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
1539
|
+
class: vue.normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
1481
1540
|
role: "checkbox",
|
|
1482
1541
|
"aria-checked": $props.checked,
|
|
1483
1542
|
tabindex: _ctx.$attrs.disabled ? null : '0',
|
|
@@ -1486,7 +1545,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1486
1545
|
onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event)))
|
|
1487
1546
|
}, [
|
|
1488
1547
|
vue.createElementVNode("span", {
|
|
1489
|
-
class: vue.normalizeClass(['p-checkbox-icon', {'pi pi-check': $props.checked}])
|
|
1548
|
+
class: vue.normalizeClass(['p-checkbox-icon', { 'pi pi-check': $props.checked }])
|
|
1490
1549
|
}, null, 2)
|
|
1491
1550
|
], 42, _hoisted_1$5)
|
|
1492
1551
|
], 2))
|
|
@@ -1496,8 +1555,7 @@ script$5.render = render$5;
|
|
|
1496
1555
|
|
|
1497
1556
|
var script$4 = {
|
|
1498
1557
|
name: 'BodyCell',
|
|
1499
|
-
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1500
|
-
'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1558
|
+
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1501
1559
|
props: {
|
|
1502
1560
|
rowData: {
|
|
1503
1561
|
type: Object,
|
|
@@ -1555,14 +1613,14 @@ var script$4 = {
|
|
|
1555
1613
|
return {
|
|
1556
1614
|
d_editing: this.editing,
|
|
1557
1615
|
styleObject: {}
|
|
1558
|
-
}
|
|
1616
|
+
};
|
|
1559
1617
|
},
|
|
1560
1618
|
watch: {
|
|
1561
1619
|
editing(newValue) {
|
|
1562
1620
|
this.d_editing = newValue;
|
|
1563
1621
|
},
|
|
1564
|
-
'$data.d_editing': function(newValue) {
|
|
1565
|
-
this.$emit('editing-meta-change', {data: this.rowData, field:
|
|
1622
|
+
'$data.d_editing': function (newValue) {
|
|
1623
|
+
this.$emit('editing-meta-change', { data: this.rowData, field: this.field || `field_${this.index}`, index: this.rowIndex, editing: newValue });
|
|
1566
1624
|
}
|
|
1567
1625
|
},
|
|
1568
1626
|
mounted() {
|
|
@@ -1577,6 +1635,7 @@ var script$4 = {
|
|
|
1577
1635
|
|
|
1578
1636
|
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
|
|
1579
1637
|
const focusableEl = utils.DomHandler.getFirstFocusableElement(this.$el);
|
|
1638
|
+
|
|
1580
1639
|
focusableEl && focusableEl.focus();
|
|
1581
1640
|
}
|
|
1582
1641
|
},
|
|
@@ -1600,7 +1659,7 @@ var script$4 = {
|
|
|
1600
1659
|
});
|
|
1601
1660
|
},
|
|
1602
1661
|
toggleRowWithRadio(event, index) {
|
|
1603
|
-
this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data});
|
|
1662
|
+
this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data });
|
|
1604
1663
|
},
|
|
1605
1664
|
toggleRowWithCheckbox(event, index) {
|
|
1606
1665
|
this.$emit('checkbox-change', { originalEvent: event.originalEvent, index: index, data: event.data });
|
|
@@ -1614,6 +1673,7 @@ var script$4 = {
|
|
|
1614
1673
|
if (!this.selfClick) {
|
|
1615
1674
|
this.completeEdit(event, 'outside');
|
|
1616
1675
|
}
|
|
1676
|
+
|
|
1617
1677
|
this.selfClick = false;
|
|
1618
1678
|
};
|
|
1619
1679
|
|
|
@@ -1640,13 +1700,14 @@ var script$4 = {
|
|
|
1640
1700
|
if (!this.d_editing) {
|
|
1641
1701
|
this.d_editing = true;
|
|
1642
1702
|
this.bindDocumentEditListener();
|
|
1643
|
-
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1703
|
+
this.$emit('cell-edit-init', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1644
1704
|
|
|
1645
1705
|
this.overlayEventListener = (e) => {
|
|
1646
1706
|
if (this.$el && this.$el.contains(e.target)) {
|
|
1647
1707
|
this.selfClick = true;
|
|
1648
1708
|
}
|
|
1649
1709
|
};
|
|
1710
|
+
|
|
1650
1711
|
OverlayEventBus__default["default"].on('overlay-click', this.overlayEventListener);
|
|
1651
1712
|
}
|
|
1652
1713
|
}
|
|
@@ -1662,7 +1723,7 @@ var script$4 = {
|
|
|
1662
1723
|
index: this.rowIndex,
|
|
1663
1724
|
type: type,
|
|
1664
1725
|
defaultPrevented: false,
|
|
1665
|
-
preventDefault: function() {
|
|
1726
|
+
preventDefault: function () {
|
|
1666
1727
|
this.defaultPrevented = true;
|
|
1667
1728
|
}
|
|
1668
1729
|
};
|
|
@@ -1678,21 +1739,19 @@ var script$4 = {
|
|
|
1678
1739
|
switch (event.which) {
|
|
1679
1740
|
case 13:
|
|
1680
1741
|
this.completeEdit(event, 'enter');
|
|
1681
|
-
|
|
1742
|
+
break;
|
|
1682
1743
|
|
|
1683
1744
|
case 27:
|
|
1684
1745
|
this.switchCellToViewMode();
|
|
1685
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1686
|
-
|
|
1746
|
+
this.$emit('cell-edit-cancel', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1747
|
+
break;
|
|
1687
1748
|
|
|
1688
1749
|
case 9:
|
|
1689
1750
|
this.completeEdit(event, 'tab');
|
|
1690
1751
|
|
|
1691
|
-
if (event.shiftKey)
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
this.moveToNextCell(event);
|
|
1695
|
-
break;
|
|
1752
|
+
if (event.shiftKey) this.moveToPreviousCell(event);
|
|
1753
|
+
else this.moveToNextCell(event);
|
|
1754
|
+
break;
|
|
1696
1755
|
}
|
|
1697
1756
|
}
|
|
1698
1757
|
},
|
|
@@ -1717,13 +1776,13 @@ var script$4 = {
|
|
|
1717
1776
|
findCell(element) {
|
|
1718
1777
|
if (element) {
|
|
1719
1778
|
let cell = element;
|
|
1779
|
+
|
|
1720
1780
|
while (cell && !utils.DomHandler.hasClass(cell, 'p-cell-editing')) {
|
|
1721
1781
|
cell = cell.parentElement;
|
|
1722
1782
|
}
|
|
1723
1783
|
|
|
1724
1784
|
return cell;
|
|
1725
|
-
}
|
|
1726
|
-
else {
|
|
1785
|
+
} else {
|
|
1727
1786
|
return null;
|
|
1728
1787
|
}
|
|
1729
1788
|
},
|
|
@@ -1732,18 +1791,16 @@ var script$4 = {
|
|
|
1732
1791
|
|
|
1733
1792
|
if (!prevCell) {
|
|
1734
1793
|
let previousRow = cell.parentElement.previousElementSibling;
|
|
1794
|
+
|
|
1735
1795
|
if (previousRow) {
|
|
1736
1796
|
prevCell = previousRow.lastElementChild;
|
|
1737
1797
|
}
|
|
1738
1798
|
}
|
|
1739
1799
|
|
|
1740
1800
|
if (prevCell) {
|
|
1741
|
-
if (utils.DomHandler.hasClass(prevCell, 'p-editable-column'))
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
return this.findPreviousEditableColumn(prevCell);
|
|
1745
|
-
}
|
|
1746
|
-
else {
|
|
1801
|
+
if (utils.DomHandler.hasClass(prevCell, 'p-editable-column')) return prevCell;
|
|
1802
|
+
else return this.findPreviousEditableColumn(prevCell);
|
|
1803
|
+
} else {
|
|
1747
1804
|
return null;
|
|
1748
1805
|
}
|
|
1749
1806
|
},
|
|
@@ -1752,68 +1809,70 @@ var script$4 = {
|
|
|
1752
1809
|
|
|
1753
1810
|
if (!nextCell) {
|
|
1754
1811
|
let nextRow = cell.parentElement.nextElementSibling;
|
|
1812
|
+
|
|
1755
1813
|
if (nextRow) {
|
|
1756
1814
|
nextCell = nextRow.firstElementChild;
|
|
1757
1815
|
}
|
|
1758
1816
|
}
|
|
1759
1817
|
|
|
1760
1818
|
if (nextCell) {
|
|
1761
|
-
if (utils.DomHandler.hasClass(nextCell, 'p-editable-column'))
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
return this.findNextEditableColumn(nextCell);
|
|
1765
|
-
}
|
|
1766
|
-
else {
|
|
1819
|
+
if (utils.DomHandler.hasClass(nextCell, 'p-editable-column')) return nextCell;
|
|
1820
|
+
else return this.findNextEditableColumn(nextCell);
|
|
1821
|
+
} else {
|
|
1767
1822
|
return null;
|
|
1768
1823
|
}
|
|
1769
1824
|
},
|
|
1770
1825
|
isEditingCellValid() {
|
|
1771
|
-
return
|
|
1826
|
+
return utils.DomHandler.find(this.$el, '.p-invalid').length === 0;
|
|
1772
1827
|
},
|
|
1773
1828
|
onRowEditInit(event) {
|
|
1774
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1829
|
+
this.$emit('row-edit-init', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1775
1830
|
},
|
|
1776
1831
|
onRowEditSave(event) {
|
|
1777
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1832
|
+
this.$emit('row-edit-save', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1778
1833
|
},
|
|
1779
1834
|
onRowEditCancel(event) {
|
|
1780
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1835
|
+
this.$emit('row-edit-cancel', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1781
1836
|
},
|
|
1782
1837
|
editorInitCallback(event) {
|
|
1783
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1838
|
+
this.$emit('row-edit-init', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1784
1839
|
},
|
|
1785
1840
|
editorSaveCallback(event) {
|
|
1786
1841
|
if (this.editMode === 'row') {
|
|
1787
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1842
|
+
this.$emit('row-edit-save', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1788
1843
|
} else {
|
|
1789
1844
|
this.completeEdit(event, 'enter');
|
|
1790
1845
|
}
|
|
1791
1846
|
},
|
|
1792
1847
|
editorCancelCallback(event) {
|
|
1793
1848
|
if (this.editMode === 'row') {
|
|
1794
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1849
|
+
this.$emit('row-edit-cancel', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1795
1850
|
} else {
|
|
1796
1851
|
this.switchCellToViewMode();
|
|
1797
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1852
|
+
this.$emit('cell-edit-cancel', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1798
1853
|
}
|
|
1799
1854
|
},
|
|
1800
1855
|
updateStickyPosition() {
|
|
1801
1856
|
if (this.columnProp('frozen')) {
|
|
1802
1857
|
let align = this.columnProp('alignFrozen');
|
|
1858
|
+
|
|
1803
1859
|
if (align === 'right') {
|
|
1804
1860
|
let right = 0;
|
|
1805
1861
|
let next = this.$el.nextElementSibling;
|
|
1862
|
+
|
|
1806
1863
|
if (next) {
|
|
1807
1864
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
1808
1865
|
}
|
|
1866
|
+
|
|
1809
1867
|
this.styleObject.right = right + 'px';
|
|
1810
|
-
}
|
|
1811
|
-
else {
|
|
1868
|
+
} else {
|
|
1812
1869
|
let left = 0;
|
|
1813
1870
|
let prev = this.$el.previousElementSibling;
|
|
1871
|
+
|
|
1814
1872
|
if (prev) {
|
|
1815
1873
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
1816
1874
|
}
|
|
1875
|
+
|
|
1817
1876
|
this.styleObject.left = left + 'px';
|
|
1818
1877
|
}
|
|
1819
1878
|
}
|
|
@@ -1830,41 +1889,49 @@ var script$4 = {
|
|
|
1830
1889
|
return this.columnProp('field');
|
|
1831
1890
|
},
|
|
1832
1891
|
containerClass() {
|
|
1833
|
-
return [
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1892
|
+
return [
|
|
1893
|
+
this.columnProp('bodyClass'),
|
|
1894
|
+
this.columnProp('class'),
|
|
1895
|
+
{
|
|
1896
|
+
'p-selection-column': this.columnProp('selectionMode') != null,
|
|
1897
|
+
'p-editable-column': this.isEditable(),
|
|
1898
|
+
'p-cell-editing': this.d_editing,
|
|
1899
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
1900
|
+
}
|
|
1901
|
+
];
|
|
1839
1902
|
},
|
|
1840
1903
|
containerStyle() {
|
|
1841
1904
|
let bodyStyle = this.columnProp('bodyStyle');
|
|
1842
1905
|
let columnStyle = this.columnProp('style');
|
|
1843
1906
|
|
|
1844
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
1907
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
1845
1908
|
},
|
|
1846
1909
|
loading() {
|
|
1847
1910
|
return this.getVirtualScrollerProp('loading');
|
|
1848
1911
|
},
|
|
1849
1912
|
loadingOptions() {
|
|
1850
1913
|
const getLoaderOptions = this.getVirtualScrollerProp('getLoaderOptions');
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1914
|
+
|
|
1915
|
+
return (
|
|
1916
|
+
getLoaderOptions &&
|
|
1917
|
+
getLoaderOptions(this.rowIndex, {
|
|
1918
|
+
cellIndex: this.index,
|
|
1919
|
+
cellFirst: this.index === 0,
|
|
1920
|
+
cellLast: this.index === this.getVirtualScrollerProp('columns').length - 1,
|
|
1921
|
+
cellEven: this.index % 2 === 0,
|
|
1922
|
+
cellOdd: this.index % 2 !== 0,
|
|
1923
|
+
column: this.column,
|
|
1924
|
+
field: this.field
|
|
1925
|
+
})
|
|
1926
|
+
);
|
|
1860
1927
|
}
|
|
1861
1928
|
},
|
|
1862
1929
|
components: {
|
|
1863
|
-
|
|
1864
|
-
|
|
1930
|
+
DTRadioButton: script$6,
|
|
1931
|
+
DTCheckbox: script$5
|
|
1865
1932
|
},
|
|
1866
1933
|
directives: {
|
|
1867
|
-
|
|
1934
|
+
ripple: Ripple__default["default"]
|
|
1868
1935
|
}
|
|
1869
1936
|
};
|
|
1870
1937
|
|
|
@@ -1955,7 +2022,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1955
2022
|
checked: $props.selected,
|
|
1956
2023
|
onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
|
|
1957
2024
|
}, null, 8, ["value", "checked"]))
|
|
1958
|
-
: ($options.columnProp('selectionMode') ==='multiple')
|
|
2025
|
+
: ($options.columnProp('selectionMode') === 'multiple')
|
|
1959
2026
|
? (vue.openBlock(), vue.createBlock(_component_DTCheckbox, {
|
|
1960
2027
|
key: 1,
|
|
1961
2028
|
value: $props.rowData,
|
|
@@ -1967,7 +2034,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1967
2034
|
: ($options.columnProp('rowReorder'))
|
|
1968
2035
|
? (vue.openBlock(), vue.createElementBlock("i", {
|
|
1969
2036
|
key: 5,
|
|
1970
|
-
class: vue.normalizeClass(['p-datatable-reorderablerow-handle',
|
|
2037
|
+
class: vue.normalizeClass(['p-datatable-reorderablerow-handle', $options.columnProp('rowReorderIcon') || 'pi pi-bars'])
|
|
1971
2038
|
}, null, 2))
|
|
1972
2039
|
: ($options.columnProp('expander'))
|
|
1973
2040
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", {
|
|
@@ -2025,10 +2092,30 @@ script$4.render = render$4;
|
|
|
2025
2092
|
|
|
2026
2093
|
var script$3 = {
|
|
2027
2094
|
name: 'TableBody',
|
|
2028
|
-
emits: [
|
|
2029
|
-
'
|
|
2030
|
-
'
|
|
2031
|
-
'row-
|
|
2095
|
+
emits: [
|
|
2096
|
+
'rowgroup-toggle',
|
|
2097
|
+
'row-click',
|
|
2098
|
+
'row-dblclick',
|
|
2099
|
+
'row-rightclick',
|
|
2100
|
+
'row-touchend',
|
|
2101
|
+
'row-keydown',
|
|
2102
|
+
'row-mousedown',
|
|
2103
|
+
'row-dragstart',
|
|
2104
|
+
'row-dragover',
|
|
2105
|
+
'row-dragleave',
|
|
2106
|
+
'row-dragend',
|
|
2107
|
+
'row-drop',
|
|
2108
|
+
'row-toggle',
|
|
2109
|
+
'radio-change',
|
|
2110
|
+
'checkbox-change',
|
|
2111
|
+
'cell-edit-init',
|
|
2112
|
+
'cell-edit-complete',
|
|
2113
|
+
'cell-edit-cancel',
|
|
2114
|
+
'row-edit-init',
|
|
2115
|
+
'row-edit-save',
|
|
2116
|
+
'row-edit-cancel',
|
|
2117
|
+
'editing-meta-change'
|
|
2118
|
+
],
|
|
2032
2119
|
props: {
|
|
2033
2120
|
value: {
|
|
2034
2121
|
type: Array,
|
|
@@ -2051,7 +2138,7 @@ var script$3 = {
|
|
|
2051
2138
|
default: null
|
|
2052
2139
|
},
|
|
2053
2140
|
groupRowsBy: {
|
|
2054
|
-
type: [Array,String],
|
|
2141
|
+
type: [Array, String],
|
|
2055
2142
|
default: null
|
|
2056
2143
|
},
|
|
2057
2144
|
expandableRowGroups: {
|
|
@@ -2083,7 +2170,7 @@ var script$3 = {
|
|
|
2083
2170
|
default: null
|
|
2084
2171
|
},
|
|
2085
2172
|
selection: {
|
|
2086
|
-
type: [Array,Object],
|
|
2173
|
+
type: [Array, Object],
|
|
2087
2174
|
default: null
|
|
2088
2175
|
},
|
|
2089
2176
|
selectionKeys: {
|
|
@@ -2151,6 +2238,11 @@ var script$3 = {
|
|
|
2151
2238
|
default: false
|
|
2152
2239
|
}
|
|
2153
2240
|
},
|
|
2241
|
+
data() {
|
|
2242
|
+
return {
|
|
2243
|
+
rowGroupHeaderStyleObject: {}
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2154
2246
|
watch: {
|
|
2155
2247
|
virtualScrollerContentProps(newValue, oldValue) {
|
|
2156
2248
|
if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical') && this.getVirtualScrollerProp('itemSize', oldValue) !== this.getVirtualScrollerProp('itemSize', newValue)) {
|
|
@@ -2180,11 +2272,6 @@ var script$3 = {
|
|
|
2180
2272
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
2181
2273
|
}
|
|
2182
2274
|
},
|
|
2183
|
-
data() {
|
|
2184
|
-
return {
|
|
2185
|
-
rowGroupHeaderStyleObject: {}
|
|
2186
|
-
}
|
|
2187
|
-
},
|
|
2188
2275
|
methods: {
|
|
2189
2276
|
columnProp(col, prop) {
|
|
2190
2277
|
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2192,25 +2279,28 @@ var script$3 = {
|
|
|
2192
2279
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
2193
2280
|
let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2194
2281
|
let prevRowData = value[i - 1];
|
|
2282
|
+
|
|
2195
2283
|
if (prevRowData) {
|
|
2196
2284
|
let previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
2285
|
+
|
|
2197
2286
|
return currentRowFieldData !== previousRowFieldData;
|
|
2198
|
-
}
|
|
2199
|
-
else {
|
|
2287
|
+
} else {
|
|
2200
2288
|
return true;
|
|
2201
2289
|
}
|
|
2202
2290
|
},
|
|
2203
2291
|
getRowKey(rowData, index) {
|
|
2204
|
-
return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
|
|
2292
|
+
return this.dataKey ? utils.ObjectUtils.resolveFieldData(rowData, this.dataKey) : index;
|
|
2205
2293
|
},
|
|
2206
2294
|
getRowIndex(index) {
|
|
2207
2295
|
const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
2296
|
+
|
|
2208
2297
|
return getItemOptions ? getItemOptions(index).index : index;
|
|
2209
2298
|
},
|
|
2210
2299
|
getRowClass(rowData) {
|
|
2211
2300
|
let rowStyleClass = [];
|
|
2301
|
+
|
|
2212
2302
|
if (this.selectionMode) {
|
|
2213
|
-
|
|
2303
|
+
rowStyleClass.push('p-selectable-row');
|
|
2214
2304
|
}
|
|
2215
2305
|
|
|
2216
2306
|
if (this.selection) {
|
|
@@ -2238,15 +2328,15 @@ var script$3 = {
|
|
|
2238
2328
|
shouldRenderRowGroupFooter(value, rowData, i) {
|
|
2239
2329
|
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
2240
2330
|
return false;
|
|
2241
|
-
}
|
|
2242
|
-
else {
|
|
2331
|
+
} else {
|
|
2243
2332
|
let currentRowFieldData = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2244
2333
|
let nextRowData = value[i + 1];
|
|
2334
|
+
|
|
2245
2335
|
if (nextRowData) {
|
|
2246
2336
|
let nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
2337
|
+
|
|
2247
2338
|
return currentRowFieldData !== nextRowFieldData;
|
|
2248
|
-
}
|
|
2249
|
-
else {
|
|
2339
|
+
} else {
|
|
2250
2340
|
return true;
|
|
2251
2341
|
}
|
|
2252
2342
|
}
|
|
@@ -2255,25 +2345,23 @@ var script$3 = {
|
|
|
2255
2345
|
if (this.rowGroupMode) {
|
|
2256
2346
|
if (this.rowGroupMode === 'subheader') {
|
|
2257
2347
|
return this.groupRowsBy !== this.columnProp(column, 'field');
|
|
2258
|
-
}
|
|
2259
|
-
else if (this.rowGroupMode === 'rowspan') {
|
|
2348
|
+
} else if (this.rowGroupMode === 'rowspan') {
|
|
2260
2349
|
if (this.isGrouped(column)) {
|
|
2261
2350
|
let prevRowData = value[i - 1];
|
|
2351
|
+
|
|
2262
2352
|
if (prevRowData) {
|
|
2263
2353
|
let currentRowFieldData = utils.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
|
|
2264
2354
|
let previousRowFieldData = utils.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
|
|
2355
|
+
|
|
2265
2356
|
return currentRowFieldData !== previousRowFieldData;
|
|
2266
|
-
}
|
|
2267
|
-
else {
|
|
2357
|
+
} else {
|
|
2268
2358
|
return true;
|
|
2269
2359
|
}
|
|
2270
|
-
}
|
|
2271
|
-
else {
|
|
2360
|
+
} else {
|
|
2272
2361
|
return true;
|
|
2273
2362
|
}
|
|
2274
2363
|
}
|
|
2275
|
-
}
|
|
2276
|
-
else {
|
|
2364
|
+
} else {
|
|
2277
2365
|
return !this.columnProp(column, 'hidden');
|
|
2278
2366
|
}
|
|
2279
2367
|
},
|
|
@@ -2286,55 +2374,49 @@ var script$3 = {
|
|
|
2286
2374
|
while (currentRowFieldData === nextRowFieldData) {
|
|
2287
2375
|
groupRowSpan++;
|
|
2288
2376
|
let nextRowData = value[++index];
|
|
2377
|
+
|
|
2289
2378
|
if (nextRowData) {
|
|
2290
2379
|
nextRowFieldData = utils.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
|
|
2291
|
-
}
|
|
2292
|
-
else {
|
|
2380
|
+
} else {
|
|
2293
2381
|
break;
|
|
2294
2382
|
}
|
|
2295
2383
|
}
|
|
2296
2384
|
|
|
2297
2385
|
return groupRowSpan === 1 ? null : groupRowSpan;
|
|
2298
|
-
}
|
|
2299
|
-
else {
|
|
2386
|
+
} else {
|
|
2300
2387
|
return null;
|
|
2301
2388
|
}
|
|
2302
2389
|
},
|
|
2303
2390
|
rowTogglerIcon(rowData) {
|
|
2304
2391
|
const icon = this.isRowExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
|
|
2392
|
+
|
|
2305
2393
|
return ['p-row-toggler-icon pi', icon];
|
|
2306
2394
|
},
|
|
2307
2395
|
rowGroupTogglerIcon(rowData) {
|
|
2308
2396
|
const icon = this.isRowGroupExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
|
|
2397
|
+
|
|
2309
2398
|
return ['p-row-toggler-icon pi', icon];
|
|
2310
2399
|
},
|
|
2311
2400
|
isGrouped(column) {
|
|
2312
2401
|
if (this.groupRowsBy && this.columnProp(column, 'field')) {
|
|
2313
|
-
if (Array.isArray(this.groupRowsBy))
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
return this.groupRowsBy === column.props.field;
|
|
2317
|
-
}
|
|
2318
|
-
else {
|
|
2402
|
+
if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;
|
|
2403
|
+
else return this.groupRowsBy === column.props.field;
|
|
2404
|
+
} else {
|
|
2319
2405
|
return false;
|
|
2320
2406
|
}
|
|
2321
2407
|
},
|
|
2322
2408
|
isRowEditing(rowData) {
|
|
2323
2409
|
if (rowData && this.editingRows) {
|
|
2324
|
-
if (this.dataKey)
|
|
2325
|
-
|
|
2326
|
-
else
|
|
2327
|
-
return this.findIndex(rowData, this.editingRows) > -1;
|
|
2410
|
+
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2411
|
+
else return this.findIndex(rowData, this.editingRows) > -1;
|
|
2328
2412
|
}
|
|
2329
2413
|
|
|
2330
2414
|
return false;
|
|
2331
2415
|
},
|
|
2332
2416
|
isRowExpanded(rowData) {
|
|
2333
2417
|
if (rowData && this.expandedRows) {
|
|
2334
|
-
if (this.dataKey)
|
|
2335
|
-
|
|
2336
|
-
else
|
|
2337
|
-
return this.findIndex(rowData, this.expandedRows) > -1;
|
|
2418
|
+
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2419
|
+
else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
2338
2420
|
}
|
|
2339
2421
|
|
|
2340
2422
|
return false;
|
|
@@ -2342,20 +2424,19 @@ var script$3 = {
|
|
|
2342
2424
|
isRowGroupExpanded(rowData) {
|
|
2343
2425
|
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
2344
2426
|
let groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2427
|
+
|
|
2345
2428
|
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
2346
2429
|
}
|
|
2430
|
+
|
|
2347
2431
|
return false;
|
|
2348
2432
|
},
|
|
2349
2433
|
isSelected(rowData) {
|
|
2350
2434
|
if (rowData && this.selection) {
|
|
2351
2435
|
if (this.dataKey) {
|
|
2352
2436
|
return this.selectionKeys ? this.selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
return this.findIndexInSelection(rowData) > -1;
|
|
2357
|
-
else
|
|
2358
|
-
return this.equals(rowData, this.selection);
|
|
2437
|
+
} else {
|
|
2438
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;
|
|
2439
|
+
else return this.equals(rowData, this.selection);
|
|
2359
2440
|
}
|
|
2360
2441
|
}
|
|
2361
2442
|
|
|
@@ -2373,6 +2454,7 @@ var script$3 = {
|
|
|
2373
2454
|
},
|
|
2374
2455
|
findIndex(rowData, collection) {
|
|
2375
2456
|
let index = -1;
|
|
2457
|
+
|
|
2376
2458
|
if (collection && collection.length) {
|
|
2377
2459
|
for (let i = 0; i < collection.length; i++) {
|
|
2378
2460
|
if (this.equals(rowData, collection[i])) {
|
|
@@ -2385,34 +2467,34 @@ var script$3 = {
|
|
|
2385
2467
|
return index;
|
|
2386
2468
|
},
|
|
2387
2469
|
equals(data1, data2) {
|
|
2388
|
-
return this.compareSelectionBy === 'equals' ?
|
|
2470
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
|
|
2389
2471
|
},
|
|
2390
2472
|
onRowGroupToggle(event, data) {
|
|
2391
|
-
this.$emit('rowgroup-toggle', {originalEvent: event, data: data});
|
|
2473
|
+
this.$emit('rowgroup-toggle', { originalEvent: event, data: data });
|
|
2392
2474
|
},
|
|
2393
2475
|
onRowClick(event, rowData, rowIndex) {
|
|
2394
|
-
this.$emit('row-click', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2476
|
+
this.$emit('row-click', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2395
2477
|
},
|
|
2396
2478
|
onRowDblClick(event, rowData, rowIndex) {
|
|
2397
|
-
this.$emit('row-dblclick', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2479
|
+
this.$emit('row-dblclick', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2398
2480
|
},
|
|
2399
2481
|
onRowRightClick(event, rowData, rowIndex) {
|
|
2400
|
-
this.$emit('row-rightclick', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2482
|
+
this.$emit('row-rightclick', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2401
2483
|
},
|
|
2402
2484
|
onRowTouchEnd(event) {
|
|
2403
2485
|
this.$emit('row-touchend', event);
|
|
2404
2486
|
},
|
|
2405
2487
|
onRowKeyDown(event, rowData, rowIndex) {
|
|
2406
|
-
this.$emit('row-keydown', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2488
|
+
this.$emit('row-keydown', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2407
2489
|
},
|
|
2408
2490
|
onRowMouseDown(event) {
|
|
2409
2491
|
this.$emit('row-mousedown', event);
|
|
2410
2492
|
},
|
|
2411
2493
|
onRowDragStart(event, rowIndex) {
|
|
2412
|
-
this.$emit('row-dragstart', {originalEvent: event, index: rowIndex});
|
|
2494
|
+
this.$emit('row-dragstart', { originalEvent: event, index: rowIndex });
|
|
2413
2495
|
},
|
|
2414
2496
|
onRowDragOver(event, rowIndex) {
|
|
2415
|
-
this.$emit('row-dragover', {originalEvent: event, index: rowIndex});
|
|
2497
|
+
this.$emit('row-dragover', { originalEvent: event, index: rowIndex });
|
|
2416
2498
|
},
|
|
2417
2499
|
onRowDragLeave(event) {
|
|
2418
2500
|
this.$emit('row-dragleave', event);
|
|
@@ -2458,19 +2540,23 @@ var script$3 = {
|
|
|
2458
2540
|
},
|
|
2459
2541
|
updateFrozenRowGroupHeaderStickyPosition() {
|
|
2460
2542
|
let tableHeaderHeight = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling);
|
|
2543
|
+
|
|
2461
2544
|
this.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
|
|
2462
2545
|
},
|
|
2463
2546
|
updateVirtualScrollerPosition() {
|
|
2464
2547
|
const tableHeaderHeight = utils.DomHandler.getOuterHeight(this.$el.previousElementSibling);
|
|
2548
|
+
|
|
2465
2549
|
this.$el.style.top = (this.$el.style.top || 0) + tableHeaderHeight + 'px';
|
|
2466
2550
|
},
|
|
2467
2551
|
getVirtualScrollerProp(option, options) {
|
|
2468
2552
|
options = options || this.virtualScrollerContentProps;
|
|
2553
|
+
|
|
2469
2554
|
return options ? options[option] : null;
|
|
2470
2555
|
},
|
|
2471
2556
|
bodyRef(el) {
|
|
2472
2557
|
// For VirtualScroller
|
|
2473
2558
|
const contentRef = this.getVirtualScrollerProp('contentRef');
|
|
2559
|
+
|
|
2474
2560
|
contentRef && contentRef(el);
|
|
2475
2561
|
}
|
|
2476
2562
|
},
|
|
@@ -2478,15 +2564,15 @@ var script$3 = {
|
|
|
2478
2564
|
columnsLength() {
|
|
2479
2565
|
let hiddenColLength = 0;
|
|
2480
2566
|
|
|
2481
|
-
this.columns.forEach(column => {
|
|
2482
|
-
if(this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
2567
|
+
this.columns.forEach((column) => {
|
|
2568
|
+
if (this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
2483
2569
|
});
|
|
2484
2570
|
|
|
2485
2571
|
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
2486
2572
|
},
|
|
2487
2573
|
rowGroupHeaderStyle() {
|
|
2488
2574
|
if (this.scrollable) {
|
|
2489
|
-
return {top: this.rowGroupHeaderStyleObject.top};
|
|
2575
|
+
return { top: this.rowGroupHeaderStyleObject.top };
|
|
2490
2576
|
}
|
|
2491
2577
|
|
|
2492
2578
|
return null;
|
|
@@ -2496,7 +2582,7 @@ var script$3 = {
|
|
|
2496
2582
|
}
|
|
2497
2583
|
},
|
|
2498
2584
|
components: {
|
|
2499
|
-
|
|
2585
|
+
DTBodyCell: script$4
|
|
2500
2586
|
}
|
|
2501
2587
|
};
|
|
2502
2588
|
|
|
@@ -2554,11 +2640,11 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2554
2640
|
], 8, _hoisted_1$3)
|
|
2555
2641
|
], 4))
|
|
2556
2642
|
: vue.createCommentVNode("", true),
|
|
2557
|
-
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
|
|
2643
|
+
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true)
|
|
2558
2644
|
? (vue.openBlock(), vue.createElementBlock("tr", {
|
|
2645
|
+
key: $options.getRowKey(rowData, $options.getRowIndex(index)),
|
|
2559
2646
|
class: vue.normalizeClass($options.getRowClass(rowData)),
|
|
2560
2647
|
style: vue.normalizeStyle($props.rowStyle),
|
|
2561
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)),
|
|
2562
2648
|
onClick: $event => ($options.onRowClick($event, rowData, $options.getRowIndex(index))),
|
|
2563
2649
|
onDblclick: $event => ($options.onRowDblClick($event, rowData, $options.getRowIndex(index))),
|
|
2564
2650
|
onContextmenu: $event => ($options.onRowRightClick($event, rowData, $options.getRowIndex(index))),
|
|
@@ -2575,7 +2661,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2575
2661
|
}, [
|
|
2576
2662
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
2577
2663
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2578
|
-
key: $options.columnProp(col,'columnKey')
|
|
2664
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2579
2665
|
}, [
|
|
2580
2666
|
($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
|
|
2581
2667
|
? (vue.openBlock(), vue.createBlock(_component_DTBodyCell, {
|
|
@@ -2585,7 +2671,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2585
2671
|
rowIndex: $options.getRowIndex(index),
|
|
2586
2672
|
index: i,
|
|
2587
2673
|
selected: $options.isSelected(rowData),
|
|
2588
|
-
rowTogglerIcon: $options.columnProp(col,'expander') ? $options.rowTogglerIcon(rowData): null,
|
|
2674
|
+
rowTogglerIcon: $options.columnProp(col, 'expander') ? $options.rowTogglerIcon(rowData) : null,
|
|
2589
2675
|
frozenRow: $props.frozenRow,
|
|
2590
2676
|
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
|
|
2591
2677
|
editMode: $props.editMode,
|
|
@@ -2611,8 +2697,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2611
2697
|
: vue.createCommentVNode("", true),
|
|
2612
2698
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
2613
2699
|
? (vue.openBlock(), vue.createElementBlock("tr", {
|
|
2614
|
-
class: "p-datatable-row-expansion",
|
|
2615
2700
|
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
2701
|
+
class: "p-datatable-row-expansion",
|
|
2616
2702
|
role: "row"
|
|
2617
2703
|
}, [
|
|
2618
2704
|
vue.createElementVNode("td", { colspan: $options.columnsLength }, [
|
|
@@ -2625,8 +2711,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2625
2711
|
: vue.createCommentVNode("", true),
|
|
2626
2712
|
($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
|
|
2627
2713
|
? (vue.openBlock(), vue.createElementBlock("tr", {
|
|
2628
|
-
class: "p-rowgroup-footer",
|
|
2629
2714
|
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
2715
|
+
class: "p-rowgroup-footer",
|
|
2630
2716
|
role: "row"
|
|
2631
2717
|
}, [
|
|
2632
2718
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['groupfooter']), {
|
|
@@ -2660,7 +2746,7 @@ var script$2 = {
|
|
|
2660
2746
|
data() {
|
|
2661
2747
|
return {
|
|
2662
2748
|
styleObject: {}
|
|
2663
|
-
}
|
|
2749
|
+
};
|
|
2664
2750
|
},
|
|
2665
2751
|
mounted() {
|
|
2666
2752
|
if (this.columnProp('frozen')) {
|
|
@@ -2679,20 +2765,24 @@ var script$2 = {
|
|
|
2679
2765
|
updateStickyPosition() {
|
|
2680
2766
|
if (this.columnProp('frozen')) {
|
|
2681
2767
|
let align = this.columnProp('alignFrozen');
|
|
2768
|
+
|
|
2682
2769
|
if (align === 'right') {
|
|
2683
2770
|
let right = 0;
|
|
2684
2771
|
let next = this.$el.nextElementSibling;
|
|
2772
|
+
|
|
2685
2773
|
if (next) {
|
|
2686
2774
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
|
|
2687
2775
|
}
|
|
2776
|
+
|
|
2688
2777
|
this.styleObject.right = right + 'px';
|
|
2689
|
-
}
|
|
2690
|
-
else {
|
|
2778
|
+
} else {
|
|
2691
2779
|
let left = 0;
|
|
2692
2780
|
let prev = this.$el.previousElementSibling;
|
|
2781
|
+
|
|
2693
2782
|
if (prev) {
|
|
2694
2783
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
|
|
2695
2784
|
}
|
|
2785
|
+
|
|
2696
2786
|
this.styleObject.left = left + 'px';
|
|
2697
2787
|
}
|
|
2698
2788
|
}
|
|
@@ -2700,15 +2790,19 @@ var script$2 = {
|
|
|
2700
2790
|
},
|
|
2701
2791
|
computed: {
|
|
2702
2792
|
containerClass() {
|
|
2703
|
-
return [
|
|
2704
|
-
|
|
2705
|
-
|
|
2793
|
+
return [
|
|
2794
|
+
this.columnProp('footerClass'),
|
|
2795
|
+
this.columnProp('class'),
|
|
2796
|
+
{
|
|
2797
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
2798
|
+
}
|
|
2799
|
+
];
|
|
2706
2800
|
},
|
|
2707
2801
|
containerStyle() {
|
|
2708
2802
|
let bodyStyle = this.columnProp('footerStyle');
|
|
2709
2803
|
let columnStyle = this.columnProp('style');
|
|
2710
2804
|
|
|
2711
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
2805
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
2712
2806
|
}
|
|
2713
2807
|
}
|
|
2714
2808
|
};
|
|
@@ -2745,7 +2839,7 @@ var script$1 = {
|
|
|
2745
2839
|
columns: {
|
|
2746
2840
|
type: null,
|
|
2747
2841
|
default: null
|
|
2748
|
-
}
|
|
2842
|
+
}
|
|
2749
2843
|
},
|
|
2750
2844
|
methods: {
|
|
2751
2845
|
columnProp(col, prop) {
|
|
@@ -2755,12 +2849,12 @@ var script$1 = {
|
|
|
2755
2849
|
let rows = [];
|
|
2756
2850
|
|
|
2757
2851
|
let columnGroup = this.columnGroup;
|
|
2852
|
+
|
|
2758
2853
|
if (columnGroup.children && columnGroup.children.default) {
|
|
2759
2854
|
for (let child of columnGroup.children.default()) {
|
|
2760
2855
|
if (child.type.name === 'Row') {
|
|
2761
2856
|
rows.push(child);
|
|
2762
|
-
}
|
|
2763
|
-
else if (child.children && child.children instanceof Array) {
|
|
2857
|
+
} else if (child.children && child.children instanceof Array) {
|
|
2764
2858
|
rows = child.children;
|
|
2765
2859
|
}
|
|
2766
2860
|
}
|
|
@@ -2768,15 +2862,13 @@ var script$1 = {
|
|
|
2768
2862
|
return rows;
|
|
2769
2863
|
}
|
|
2770
2864
|
},
|
|
2771
|
-
getFooterColumns(row){
|
|
2865
|
+
getFooterColumns(row) {
|
|
2772
2866
|
let cols = [];
|
|
2773
2867
|
|
|
2774
2868
|
if (row.children && row.children.default) {
|
|
2775
|
-
row.children.default().forEach(child => {
|
|
2776
|
-
if (child.children && child.children instanceof Array)
|
|
2777
|
-
|
|
2778
|
-
else if (child.type.name === 'Column')
|
|
2779
|
-
cols.push(child);
|
|
2869
|
+
row.children.default().forEach((child) => {
|
|
2870
|
+
if (child.children && child.children instanceof Array) cols = [...cols, ...child.children];
|
|
2871
|
+
else if (child.type.name === 'Column') cols.push(child);
|
|
2780
2872
|
});
|
|
2781
2873
|
|
|
2782
2874
|
return cols;
|
|
@@ -2789,8 +2881,7 @@ var script$1 = {
|
|
|
2789
2881
|
|
|
2790
2882
|
if (this.columnGroup) {
|
|
2791
2883
|
hasFooter = true;
|
|
2792
|
-
}
|
|
2793
|
-
else if (this.columns) {
|
|
2884
|
+
} else if (this.columns) {
|
|
2794
2885
|
for (let col of this.columns) {
|
|
2795
2886
|
if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
|
|
2796
2887
|
hasFooter = true;
|
|
@@ -2803,7 +2894,7 @@ var script$1 = {
|
|
|
2803
2894
|
}
|
|
2804
2895
|
},
|
|
2805
2896
|
components: {
|
|
2806
|
-
|
|
2897
|
+
DTFooterCell: script$2
|
|
2807
2898
|
}
|
|
2808
2899
|
};
|
|
2809
2900
|
|
|
@@ -2826,9 +2917,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2826
2917
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_2$1, [
|
|
2827
2918
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
2828
2919
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2829
|
-
key: $options.columnProp(col,'columnKey')
|
|
2920
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2830
2921
|
}, [
|
|
2831
|
-
(!$options.columnProp(col,'hidden'))
|
|
2922
|
+
(!$options.columnProp(col, 'hidden'))
|
|
2832
2923
|
? (vue.openBlock(), vue.createBlock(_component_DTFooterCell, {
|
|
2833
2924
|
key: 0,
|
|
2834
2925
|
column: col
|
|
@@ -2844,9 +2935,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2844
2935
|
}, [
|
|
2845
2936
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.getFooterColumns(row), (col, j) => {
|
|
2846
2937
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2847
|
-
key: $options.columnProp(col,'columnKey')
|
|
2938
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
|
|
2848
2939
|
}, [
|
|
2849
|
-
(!$options.columnProp(col,'hidden'))
|
|
2940
|
+
(!$options.columnProp(col, 'hidden'))
|
|
2850
2941
|
? (vue.openBlock(), vue.createBlock(_component_DTFooterCell, {
|
|
2851
2942
|
key: 0,
|
|
2852
2943
|
column: col
|
|
@@ -2864,11 +2955,46 @@ script$1.render = render$1;
|
|
|
2864
2955
|
|
|
2865
2956
|
var script = {
|
|
2866
2957
|
name: 'DataTable',
|
|
2867
|
-
emits: [
|
|
2868
|
-
'
|
|
2869
|
-
'
|
|
2870
|
-
'update:
|
|
2871
|
-
'
|
|
2958
|
+
emits: [
|
|
2959
|
+
'value-change',
|
|
2960
|
+
'update:first',
|
|
2961
|
+
'update:rows',
|
|
2962
|
+
'page',
|
|
2963
|
+
'update:sortField',
|
|
2964
|
+
'update:sortOrder',
|
|
2965
|
+
'update:multiSortMeta',
|
|
2966
|
+
'sort',
|
|
2967
|
+
'filter',
|
|
2968
|
+
'row-click',
|
|
2969
|
+
'row-dblclick',
|
|
2970
|
+
'update:selection',
|
|
2971
|
+
'row-select',
|
|
2972
|
+
'row-unselect',
|
|
2973
|
+
'update:contextMenuSelection',
|
|
2974
|
+
'row-contextmenu',
|
|
2975
|
+
'row-unselect-all',
|
|
2976
|
+
'row-select-all',
|
|
2977
|
+
'select-all-change',
|
|
2978
|
+
'column-resize-end',
|
|
2979
|
+
'column-reorder',
|
|
2980
|
+
'row-reorder',
|
|
2981
|
+
'update:expandedRows',
|
|
2982
|
+
'row-collapse',
|
|
2983
|
+
'row-expand',
|
|
2984
|
+
'update:expandedRowGroups',
|
|
2985
|
+
'rowgroup-collapse',
|
|
2986
|
+
'rowgroup-expand',
|
|
2987
|
+
'update:filters',
|
|
2988
|
+
'state-restore',
|
|
2989
|
+
'state-save',
|
|
2990
|
+
'cell-edit-init',
|
|
2991
|
+
'cell-edit-complete',
|
|
2992
|
+
'cell-edit-cancel',
|
|
2993
|
+
'update:editingRows',
|
|
2994
|
+
'row-edit-init',
|
|
2995
|
+
'row-edit-save',
|
|
2996
|
+
'row-edit-cancel'
|
|
2997
|
+
],
|
|
2872
2998
|
props: {
|
|
2873
2999
|
value: {
|
|
2874
3000
|
type: Array,
|
|
@@ -2971,7 +3097,7 @@ var script = {
|
|
|
2971
3097
|
default: undefined
|
|
2972
3098
|
},
|
|
2973
3099
|
selection: {
|
|
2974
|
-
type: [Array,Object],
|
|
3100
|
+
type: [Array, Object],
|
|
2975
3101
|
default: null
|
|
2976
3102
|
},
|
|
2977
3103
|
selectionMode: {
|
|
@@ -3047,7 +3173,7 @@ var script = {
|
|
|
3047
3173
|
default: null
|
|
3048
3174
|
},
|
|
3049
3175
|
groupRowsBy: {
|
|
3050
|
-
type: [Array,String],
|
|
3176
|
+
type: [Array, String],
|
|
3051
3177
|
default: null
|
|
3052
3178
|
},
|
|
3053
3179
|
expandableRowGroups: {
|
|
@@ -3088,7 +3214,7 @@ var script = {
|
|
|
3088
3214
|
},
|
|
3089
3215
|
scrollDirection: {
|
|
3090
3216
|
type: String,
|
|
3091
|
-
default:
|
|
3217
|
+
default: 'vertical'
|
|
3092
3218
|
},
|
|
3093
3219
|
virtualScrollerOptions: {
|
|
3094
3220
|
type: Object,
|
|
@@ -3196,7 +3322,7 @@ var script = {
|
|
|
3196
3322
|
},
|
|
3197
3323
|
filters: {
|
|
3198
3324
|
deep: true,
|
|
3199
|
-
handler: function(newValue) {
|
|
3325
|
+
handler: function (newValue) {
|
|
3200
3326
|
this.d_filters = this.cloneFilters(newValue);
|
|
3201
3327
|
}
|
|
3202
3328
|
}
|
|
@@ -3246,6 +3372,7 @@ var script = {
|
|
|
3246
3372
|
this.d_rows = event.rows;
|
|
3247
3373
|
|
|
3248
3374
|
let pageEvent = this.createLazyLoadEvent(event);
|
|
3375
|
+
|
|
3249
3376
|
pageEvent.pageCount = event.pageCount;
|
|
3250
3377
|
pageEvent.page = event.page;
|
|
3251
3378
|
|
|
@@ -3262,21 +3389,24 @@ var script = {
|
|
|
3262
3389
|
const targetNode = event.target;
|
|
3263
3390
|
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
3264
3391
|
|
|
3265
|
-
if (
|
|
3266
|
-
|
|
3392
|
+
if (
|
|
3393
|
+
utils.DomHandler.hasClass(targetNode, 'p-sortable-column') ||
|
|
3394
|
+
utils.DomHandler.hasClass(targetNode, 'p-column-title') ||
|
|
3395
|
+
utils.DomHandler.hasClass(targetNode, 'p-column-header-content') ||
|
|
3396
|
+
utils.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') ||
|
|
3397
|
+
utils.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')
|
|
3398
|
+
) {
|
|
3267
3399
|
utils.DomHandler.clearSelection();
|
|
3268
3400
|
|
|
3269
3401
|
if (this.sortMode === 'single') {
|
|
3270
3402
|
if (this.d_sortField === columnField) {
|
|
3271
|
-
if (this.removableSort &&
|
|
3403
|
+
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
3272
3404
|
this.d_sortOrder = null;
|
|
3273
3405
|
this.d_sortField = null;
|
|
3274
|
-
}
|
|
3275
|
-
else {
|
|
3406
|
+
} else {
|
|
3276
3407
|
this.d_sortOrder = this.d_sortOrder * -1;
|
|
3277
3408
|
}
|
|
3278
|
-
}
|
|
3279
|
-
else {
|
|
3409
|
+
} else {
|
|
3280
3410
|
this.d_sortOrder = this.defaultSortOrder;
|
|
3281
3411
|
this.d_sortField = columnField;
|
|
3282
3412
|
}
|
|
@@ -3284,11 +3414,11 @@ var script = {
|
|
|
3284
3414
|
this.$emit('update:sortField', this.d_sortField);
|
|
3285
3415
|
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
3286
3416
|
this.resetPage();
|
|
3287
|
-
}
|
|
3288
|
-
else if (this.sortMode === 'multiple') {
|
|
3417
|
+
} else if (this.sortMode === 'multiple') {
|
|
3289
3418
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
3419
|
+
|
|
3290
3420
|
if (!metaKey) {
|
|
3291
|
-
this.d_multiSortMeta =
|
|
3421
|
+
this.d_multiSortMeta = this.d_multiSortMeta.filter((meta) => meta.field === columnField);
|
|
3292
3422
|
}
|
|
3293
3423
|
|
|
3294
3424
|
this.addMultiSortField(columnField);
|
|
@@ -3305,8 +3435,8 @@ var script = {
|
|
|
3305
3435
|
|
|
3306
3436
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
3307
3437
|
this.d_multiSortMeta = [
|
|
3308
|
-
{field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
|
|
3309
|
-
{field: this.d_sortField, order: this.d_sortOrder}
|
|
3438
|
+
{ field: this.sortField, order: this.sortOrder || this.defaultSortOrder },
|
|
3439
|
+
{ field: this.d_sortField, order: this.d_sortOrder }
|
|
3310
3440
|
];
|
|
3311
3441
|
|
|
3312
3442
|
return this.sortMultiple(value);
|
|
@@ -3320,18 +3450,13 @@ var script = {
|
|
|
3320
3450
|
|
|
3321
3451
|
let result = null;
|
|
3322
3452
|
|
|
3323
|
-
if (value1 == null && value2 != null)
|
|
3324
|
-
|
|
3325
|
-
else if (value1
|
|
3326
|
-
|
|
3327
|
-
else
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
3331
|
-
else
|
|
3332
|
-
result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
|
|
3333
|
-
|
|
3334
|
-
return (this.d_sortOrder * result);
|
|
3453
|
+
if (value1 == null && value2 != null) result = -1;
|
|
3454
|
+
else if (value1 != null && value2 == null) result = 1;
|
|
3455
|
+
else if (value1 == null && value2 == null) result = 0;
|
|
3456
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
3457
|
+
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
3458
|
+
|
|
3459
|
+
return this.d_sortOrder * result;
|
|
3335
3460
|
});
|
|
3336
3461
|
|
|
3337
3462
|
return data;
|
|
@@ -3341,6 +3466,7 @@ var script = {
|
|
|
3341
3466
|
|
|
3342
3467
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
3343
3468
|
const firstSortMeta = this.d_multiSortMeta[0];
|
|
3469
|
+
|
|
3344
3470
|
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
3345
3471
|
|
|
3346
3472
|
if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
|
|
@@ -3362,31 +3488,27 @@ var script = {
|
|
|
3362
3488
|
let result = null;
|
|
3363
3489
|
|
|
3364
3490
|
if (typeof value1 === 'string' || value1 instanceof String) {
|
|
3365
|
-
if (value1.localeCompare &&
|
|
3366
|
-
return
|
|
3491
|
+
if (value1.localeCompare && value1 !== value2) {
|
|
3492
|
+
return this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true });
|
|
3367
3493
|
}
|
|
3368
|
-
}
|
|
3369
|
-
|
|
3370
|
-
result = (value1 < value2) ? -1 : 1;
|
|
3494
|
+
} else {
|
|
3495
|
+
result = value1 < value2 ? -1 : 1;
|
|
3371
3496
|
}
|
|
3372
3497
|
|
|
3373
|
-
if (value1 === value2)
|
|
3374
|
-
return
|
|
3498
|
+
if (value1 === value2) {
|
|
3499
|
+
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, index + 1) : 0;
|
|
3375
3500
|
}
|
|
3376
3501
|
|
|
3377
|
-
return
|
|
3502
|
+
return this.d_multiSortMeta[index].order * result;
|
|
3378
3503
|
},
|
|
3379
3504
|
addMultiSortField(field) {
|
|
3380
|
-
let index =
|
|
3505
|
+
let index = this.d_multiSortMeta.findIndex((meta) => meta.field === field);
|
|
3381
3506
|
|
|
3382
3507
|
if (index >= 0) {
|
|
3383
|
-
if (this.removableSort &&
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
}
|
|
3388
|
-
else {
|
|
3389
|
-
this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
|
|
3508
|
+
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);
|
|
3509
|
+
else this.d_multiSortMeta[index] = { field: field, order: this.d_multiSortMeta[index].order * -1 };
|
|
3510
|
+
} else {
|
|
3511
|
+
this.d_multiSortMeta.push({ field: field, order: this.defaultSortOrder });
|
|
3390
3512
|
}
|
|
3391
3513
|
|
|
3392
3514
|
this.d_multiSortMeta = [...this.d_multiSortMeta];
|
|
@@ -3399,8 +3521,9 @@ var script = {
|
|
|
3399
3521
|
this.clearEditingMetaData();
|
|
3400
3522
|
|
|
3401
3523
|
let globalFilterFieldsArray;
|
|
3524
|
+
|
|
3402
3525
|
if (this.filters['global']) {
|
|
3403
|
-
globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
3526
|
+
globalFilterFieldsArray = this.globalFilterFields || this.columns.map((col) => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
3404
3527
|
}
|
|
3405
3528
|
|
|
3406
3529
|
let filteredValue = [];
|
|
@@ -3424,8 +3547,7 @@ var script = {
|
|
|
3424
3547
|
break;
|
|
3425
3548
|
}
|
|
3426
3549
|
}
|
|
3427
|
-
}
|
|
3428
|
-
else {
|
|
3550
|
+
} else {
|
|
3429
3551
|
localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
|
|
3430
3552
|
}
|
|
3431
3553
|
|
|
@@ -3436,8 +3558,9 @@ var script = {
|
|
|
3436
3558
|
}
|
|
3437
3559
|
|
|
3438
3560
|
if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
3439
|
-
for(let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
3561
|
+
for (let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
3440
3562
|
let globalFilterField = globalFilterFieldsArray[j];
|
|
3563
|
+
|
|
3441
3564
|
globalMatch = api.FilterService.filters[this.filters['global'].matchMode || api.FilterMatchMode.CONTAINS](utils.ObjectUtils.resolveFieldData(data[i], globalFilterField), this.filters['global'].value, this.filterLocale);
|
|
3442
3565
|
|
|
3443
3566
|
if (globalMatch) {
|
|
@@ -3447,10 +3570,10 @@ var script = {
|
|
|
3447
3570
|
}
|
|
3448
3571
|
|
|
3449
3572
|
let matches;
|
|
3573
|
+
|
|
3450
3574
|
if (this.filters['global']) {
|
|
3451
|
-
matches = localFiltered ?
|
|
3452
|
-
}
|
|
3453
|
-
else {
|
|
3575
|
+
matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;
|
|
3576
|
+
} else {
|
|
3454
3577
|
matches = localFiltered && localMatch;
|
|
3455
3578
|
}
|
|
3456
3579
|
|
|
@@ -3464,6 +3587,7 @@ var script = {
|
|
|
3464
3587
|
}
|
|
3465
3588
|
|
|
3466
3589
|
let filterEvent = this.createLazyLoadEvent();
|
|
3590
|
+
|
|
3467
3591
|
filterEvent.filteredValue = filteredValue;
|
|
3468
3592
|
this.$emit('filter', filterEvent);
|
|
3469
3593
|
this.$emit('value-change', filteredValue);
|
|
@@ -3480,6 +3604,7 @@ var script = {
|
|
|
3480
3604
|
},
|
|
3481
3605
|
onRowClick(e) {
|
|
3482
3606
|
const event = e.originalEvent;
|
|
3607
|
+
|
|
3483
3608
|
if (utils.DomHandler.isClickable(event.target)) {
|
|
3484
3609
|
return;
|
|
3485
3610
|
}
|
|
@@ -3494,10 +3619,10 @@ var script = {
|
|
|
3494
3619
|
utils.DomHandler.clearSelection();
|
|
3495
3620
|
this.rangeRowIndex = rowIndex;
|
|
3496
3621
|
this.selectRange(event);
|
|
3497
|
-
}
|
|
3498
|
-
else {
|
|
3622
|
+
} else {
|
|
3499
3623
|
const selected = this.isSelected(rowData);
|
|
3500
3624
|
const metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
3625
|
+
|
|
3501
3626
|
this.anchorRowIndex = rowIndex;
|
|
3502
3627
|
this.rangeRowIndex = rowIndex;
|
|
3503
3628
|
|
|
@@ -3505,52 +3630,49 @@ var script = {
|
|
|
3505
3630
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
3506
3631
|
|
|
3507
3632
|
if (selected && metaKey) {
|
|
3508
|
-
if(this.isSingleSelectionMode()) {
|
|
3633
|
+
if (this.isSingleSelectionMode()) {
|
|
3509
3634
|
this.$emit('update:selection', null);
|
|
3510
|
-
}
|
|
3511
|
-
else {
|
|
3635
|
+
} else {
|
|
3512
3636
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3513
|
-
const _selection = this.selection.filter((val,i) => i != selectionIndex);
|
|
3637
|
+
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3638
|
+
|
|
3514
3639
|
this.$emit('update:selection', _selection);
|
|
3515
3640
|
}
|
|
3516
3641
|
|
|
3517
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
|
-
if(this.isSingleSelectionMode()) {
|
|
3642
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3643
|
+
} else {
|
|
3644
|
+
if (this.isSingleSelectionMode()) {
|
|
3521
3645
|
this.$emit('update:selection', rowData);
|
|
3522
|
-
}
|
|
3523
|
-
|
|
3524
|
-
|
|
3646
|
+
} else if (this.isMultipleSelectionMode()) {
|
|
3647
|
+
let _selection = metaKey ? this.selection || [] : [];
|
|
3648
|
+
|
|
3525
3649
|
_selection = [..._selection, rowData];
|
|
3526
3650
|
this.$emit('update:selection', _selection);
|
|
3527
3651
|
}
|
|
3528
3652
|
|
|
3529
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3653
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3530
3654
|
}
|
|
3531
|
-
}
|
|
3532
|
-
else {
|
|
3655
|
+
} else {
|
|
3533
3656
|
if (this.selectionMode === 'single') {
|
|
3534
3657
|
if (selected) {
|
|
3535
3658
|
this.$emit('update:selection', null);
|
|
3536
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3537
|
-
}
|
|
3538
|
-
else {
|
|
3659
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3660
|
+
} else {
|
|
3539
3661
|
this.$emit('update:selection', rowData);
|
|
3540
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3662
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3541
3663
|
}
|
|
3542
|
-
}
|
|
3543
|
-
else if (this.selectionMode === 'multiple') {
|
|
3664
|
+
} else if (this.selectionMode === 'multiple') {
|
|
3544
3665
|
if (selected) {
|
|
3545
3666
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3546
3667
|
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3668
|
+
|
|
3547
3669
|
this.$emit('update:selection', _selection);
|
|
3548
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3549
|
-
}
|
|
3550
|
-
else {
|
|
3670
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3671
|
+
} else {
|
|
3551
3672
|
const _selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
3673
|
+
|
|
3552
3674
|
this.$emit('update:selection', _selection);
|
|
3553
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3675
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3554
3676
|
}
|
|
3555
3677
|
}
|
|
3556
3678
|
}
|
|
@@ -3561,6 +3683,7 @@ var script = {
|
|
|
3561
3683
|
},
|
|
3562
3684
|
onRowDblClick(e) {
|
|
3563
3685
|
const event = e.originalEvent;
|
|
3686
|
+
|
|
3564
3687
|
if (utils.DomHandler.isClickable(event.target)) {
|
|
3565
3688
|
return;
|
|
3566
3689
|
}
|
|
@@ -3589,51 +3712,49 @@ var script = {
|
|
|
3589
3712
|
//down arrow
|
|
3590
3713
|
case 40:
|
|
3591
3714
|
var nextRow = this.findNextSelectableRow(row);
|
|
3715
|
+
|
|
3592
3716
|
if (nextRow) {
|
|
3593
3717
|
nextRow.focus();
|
|
3594
3718
|
}
|
|
3595
3719
|
|
|
3596
3720
|
event.preventDefault();
|
|
3597
|
-
|
|
3721
|
+
break;
|
|
3598
3722
|
|
|
3599
3723
|
//up arrow
|
|
3600
3724
|
case 38:
|
|
3601
3725
|
var prevRow = this.findPrevSelectableRow(row);
|
|
3726
|
+
|
|
3602
3727
|
if (prevRow) {
|
|
3603
3728
|
prevRow.focus();
|
|
3604
3729
|
}
|
|
3605
3730
|
|
|
3606
3731
|
event.preventDefault();
|
|
3607
|
-
|
|
3732
|
+
break;
|
|
3608
3733
|
|
|
3609
3734
|
//enter
|
|
3610
3735
|
case 13:
|
|
3611
|
-
this.onRowClick({originalEvent: event, data: rowData, index: rowIndex});
|
|
3612
|
-
|
|
3736
|
+
this.onRowClick({ originalEvent: event, data: rowData, index: rowIndex });
|
|
3737
|
+
break;
|
|
3613
3738
|
}
|
|
3614
3739
|
}
|
|
3615
3740
|
},
|
|
3616
3741
|
findNextSelectableRow(row) {
|
|
3617
3742
|
let nextRow = row.nextElementSibling;
|
|
3743
|
+
|
|
3618
3744
|
if (nextRow) {
|
|
3619
|
-
if (utils.DomHandler.hasClass(nextRow, 'p-selectable-row'))
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
return this.findNextSelectableRow(nextRow);
|
|
3623
|
-
}
|
|
3624
|
-
else {
|
|
3745
|
+
if (utils.DomHandler.hasClass(nextRow, 'p-selectable-row')) return nextRow;
|
|
3746
|
+
else return this.findNextSelectableRow(nextRow);
|
|
3747
|
+
} else {
|
|
3625
3748
|
return null;
|
|
3626
3749
|
}
|
|
3627
3750
|
},
|
|
3628
3751
|
findPrevSelectableRow(row) {
|
|
3629
3752
|
let prevRow = row.previousElementSibling;
|
|
3753
|
+
|
|
3630
3754
|
if (prevRow) {
|
|
3631
|
-
if (utils.DomHandler.hasClass(prevRow, 'p-selectable-row'))
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
return this.findPrevSelectableRow(prevRow);
|
|
3635
|
-
}
|
|
3636
|
-
else {
|
|
3755
|
+
if (utils.DomHandler.hasClass(prevRow, 'p-selectable-row')) return prevRow;
|
|
3756
|
+
else return this.findPrevSelectableRow(prevRow);
|
|
3757
|
+
} else {
|
|
3637
3758
|
return null;
|
|
3638
3759
|
}
|
|
3639
3760
|
},
|
|
@@ -3643,8 +3764,7 @@ var script = {
|
|
|
3643
3764
|
if (this.isSelected(rowData)) {
|
|
3644
3765
|
this.$emit('update:selection', null);
|
|
3645
3766
|
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
3646
|
-
}
|
|
3647
|
-
else {
|
|
3767
|
+
} else {
|
|
3648
3768
|
this.$emit('update:selection', rowData);
|
|
3649
3769
|
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
3650
3770
|
}
|
|
@@ -3655,11 +3775,12 @@ var script = {
|
|
|
3655
3775
|
if (this.isSelected(rowData)) {
|
|
3656
3776
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3657
3777
|
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3778
|
+
|
|
3658
3779
|
this.$emit('update:selection', _selection);
|
|
3659
3780
|
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
3660
|
-
}
|
|
3661
|
-
else {
|
|
3781
|
+
} else {
|
|
3662
3782
|
let _selection = this.selection ? [...this.selection] : [];
|
|
3783
|
+
|
|
3663
3784
|
_selection = [..._selection, rowData];
|
|
3664
3785
|
this.$emit('update:selection', _selection);
|
|
3665
3786
|
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
@@ -3668,21 +3789,18 @@ var script = {
|
|
|
3668
3789
|
toggleRowsWithCheckbox(event) {
|
|
3669
3790
|
if (this.selectAll !== null) {
|
|
3670
3791
|
this.$emit('select-all-change', event);
|
|
3671
|
-
}
|
|
3672
|
-
else {
|
|
3792
|
+
} else {
|
|
3673
3793
|
const { originalEvent, checked } = event;
|
|
3674
3794
|
let _selection = [];
|
|
3675
3795
|
|
|
3676
3796
|
if (checked) {
|
|
3677
3797
|
_selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
3678
|
-
this.$emit('row-select-all', {originalEvent, data: _selection});
|
|
3679
|
-
}
|
|
3680
|
-
|
|
3681
|
-
this.$emit('row-unselect-all', {originalEvent});
|
|
3798
|
+
this.$emit('row-select-all', { originalEvent, data: _selection });
|
|
3799
|
+
} else {
|
|
3800
|
+
this.$emit('row-unselect-all', { originalEvent });
|
|
3682
3801
|
}
|
|
3683
3802
|
|
|
3684
3803
|
this.$emit('update:selection', _selection);
|
|
3685
|
-
|
|
3686
3804
|
}
|
|
3687
3805
|
},
|
|
3688
3806
|
isSingleSelectionMode() {
|
|
@@ -3695,12 +3813,9 @@ var script = {
|
|
|
3695
3813
|
if (rowData && this.selection) {
|
|
3696
3814
|
if (this.dataKey) {
|
|
3697
3815
|
return this.d_selectionKeys ? this.d_selectionKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
3698
|
-
}
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
return this.findIndexInSelection(rowData) > -1;
|
|
3702
|
-
else
|
|
3703
|
-
return this.equals(rowData, this.selection);
|
|
3816
|
+
} else {
|
|
3817
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;
|
|
3818
|
+
else return this.equals(rowData, this.selection);
|
|
3704
3819
|
}
|
|
3705
3820
|
}
|
|
3706
3821
|
|
|
@@ -3711,6 +3826,7 @@ var script = {
|
|
|
3711
3826
|
},
|
|
3712
3827
|
findIndex(rowData, collection) {
|
|
3713
3828
|
let index = -1;
|
|
3829
|
+
|
|
3714
3830
|
if (collection && collection.length) {
|
|
3715
3831
|
for (let i = 0; i < collection.length; i++) {
|
|
3716
3832
|
if (this.equals(rowData, collection[i])) {
|
|
@@ -3724,39 +3840,39 @@ var script = {
|
|
|
3724
3840
|
},
|
|
3725
3841
|
updateSelectionKeys(selection) {
|
|
3726
3842
|
this.d_selectionKeys = {};
|
|
3843
|
+
|
|
3727
3844
|
if (Array.isArray(selection)) {
|
|
3728
3845
|
for (let data of selection) {
|
|
3729
3846
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3730
3847
|
}
|
|
3731
|
-
}
|
|
3732
|
-
else {
|
|
3848
|
+
} else {
|
|
3733
3849
|
this.d_selectionKeys[String(utils.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
3734
3850
|
}
|
|
3735
3851
|
},
|
|
3736
3852
|
updateExpandedRowKeys(expandedRows) {
|
|
3737
3853
|
if (expandedRows && expandedRows.length) {
|
|
3738
3854
|
this.d_expandedRowKeys = {};
|
|
3855
|
+
|
|
3739
3856
|
for (let data of expandedRows) {
|
|
3740
3857
|
this.d_expandedRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3741
3858
|
}
|
|
3742
|
-
}
|
|
3743
|
-
else {
|
|
3859
|
+
} else {
|
|
3744
3860
|
this.d_expandedRowKeys = null;
|
|
3745
3861
|
}
|
|
3746
3862
|
},
|
|
3747
3863
|
updateEditingRowKeys(editingRows) {
|
|
3748
3864
|
if (editingRows && editingRows.length) {
|
|
3749
3865
|
this.d_editingRowKeys = {};
|
|
3866
|
+
|
|
3750
3867
|
for (let data of editingRows) {
|
|
3751
3868
|
this.d_editingRowKeys[String(utils.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3752
3869
|
}
|
|
3753
|
-
}
|
|
3754
|
-
else {
|
|
3870
|
+
} else {
|
|
3755
3871
|
this.d_editingRowKeys = null;
|
|
3756
3872
|
}
|
|
3757
3873
|
},
|
|
3758
3874
|
equals(data1, data2) {
|
|
3759
|
-
return this.compareSelectionBy === 'equals' ?
|
|
3875
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : utils.ObjectUtils.equals(data1, data2, this.dataKey);
|
|
3760
3876
|
},
|
|
3761
3877
|
selectRange(event) {
|
|
3762
3878
|
let rangeStart, rangeEnd;
|
|
@@ -3764,12 +3880,10 @@ var script = {
|
|
|
3764
3880
|
if (this.rangeRowIndex > this.anchorRowIndex) {
|
|
3765
3881
|
rangeStart = this.anchorRowIndex;
|
|
3766
3882
|
rangeEnd = this.rangeRowIndex;
|
|
3767
|
-
}
|
|
3768
|
-
else if(this.rangeRowIndex < this.anchorRowIndex) {
|
|
3883
|
+
} else if (this.rangeRowIndex < this.anchorRowIndex) {
|
|
3769
3884
|
rangeStart = this.rangeRowIndex;
|
|
3770
3885
|
rangeEnd = this.anchorRowIndex;
|
|
3771
|
-
}
|
|
3772
|
-
else {
|
|
3886
|
+
} else {
|
|
3773
3887
|
rangeStart = this.rangeRowIndex;
|
|
3774
3888
|
rangeEnd = this.rangeRowIndex;
|
|
3775
3889
|
}
|
|
@@ -3781,10 +3895,12 @@ var script = {
|
|
|
3781
3895
|
|
|
3782
3896
|
const value = this.processedData;
|
|
3783
3897
|
let _selection = [];
|
|
3784
|
-
|
|
3898
|
+
|
|
3899
|
+
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
3785
3900
|
let rangeRowData = value[i];
|
|
3901
|
+
|
|
3786
3902
|
_selection.push(rangeRowData);
|
|
3787
|
-
this.$emit('row-select', {originalEvent: event, data: rangeRowData, type: 'row'});
|
|
3903
|
+
this.$emit('row-select', { originalEvent: event, data: rangeRowData, type: 'row' });
|
|
3788
3904
|
}
|
|
3789
3905
|
|
|
3790
3906
|
this.$emit('update:selection', _selection);
|
|
@@ -3795,22 +3911,19 @@ var script = {
|
|
|
3795
3911
|
if (!data) {
|
|
3796
3912
|
data = this.processedData;
|
|
3797
3913
|
|
|
3798
|
-
if (options && options.selectionOnly)
|
|
3799
|
-
|
|
3800
|
-
else if (this.frozenValue)
|
|
3801
|
-
data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
3914
|
+
if (options && options.selectionOnly) data = this.selection || [];
|
|
3915
|
+
else if (this.frozenValue) data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
3802
3916
|
}
|
|
3803
3917
|
|
|
3804
3918
|
//headers
|
|
3805
3919
|
let headerInitiated = false;
|
|
3920
|
+
|
|
3806
3921
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3807
3922
|
let column = this.columns[i];
|
|
3808
3923
|
|
|
3809
3924
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3810
|
-
if (headerInitiated)
|
|
3811
|
-
|
|
3812
|
-
else
|
|
3813
|
-
headerInitiated = true;
|
|
3925
|
+
if (headerInitiated) csv += this.csvSeparator;
|
|
3926
|
+
else headerInitiated = true;
|
|
3814
3927
|
|
|
3815
3928
|
csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
|
|
3816
3929
|
}
|
|
@@ -3818,16 +3931,16 @@ var script = {
|
|
|
3818
3931
|
|
|
3819
3932
|
//body
|
|
3820
3933
|
if (data) {
|
|
3821
|
-
data.forEach(record => {
|
|
3934
|
+
data.forEach((record) => {
|
|
3822
3935
|
csv += '\n';
|
|
3823
3936
|
let rowInitiated = false;
|
|
3937
|
+
|
|
3824
3938
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3825
3939
|
let column = this.columns[i];
|
|
3940
|
+
|
|
3826
3941
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3827
|
-
if (rowInitiated)
|
|
3828
|
-
|
|
3829
|
-
else
|
|
3830
|
-
rowInitiated = true;
|
|
3942
|
+
if (rowInitiated) csv += this.csvSeparator;
|
|
3943
|
+
else rowInitiated = true;
|
|
3831
3944
|
|
|
3832
3945
|
let cellData = utils.ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
|
|
3833
3946
|
|
|
@@ -3837,12 +3950,8 @@ var script = {
|
|
|
3837
3950
|
data: cellData,
|
|
3838
3951
|
field: this.columnProp(column, 'field')
|
|
3839
3952
|
});
|
|
3840
|
-
}
|
|
3841
|
-
|
|
3842
|
-
cellData = String(cellData).replace(/"/g, '""');
|
|
3843
|
-
}
|
|
3844
|
-
else
|
|
3845
|
-
cellData = '';
|
|
3953
|
+
} else cellData = String(cellData).replace(/"/g, '""');
|
|
3954
|
+
} else cellData = '';
|
|
3846
3955
|
|
|
3847
3956
|
csv += '"' + cellData + '"';
|
|
3848
3957
|
}
|
|
@@ -3850,19 +3959,17 @@ var script = {
|
|
|
3850
3959
|
});
|
|
3851
3960
|
}
|
|
3852
3961
|
|
|
3853
|
-
|
|
3854
3962
|
//footers
|
|
3855
3963
|
let footerInitiated = false;
|
|
3964
|
+
|
|
3856
3965
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3857
3966
|
let column = this.columns[i];
|
|
3858
3967
|
|
|
3859
3968
|
if (i === 0) csv += '\n';
|
|
3860
3969
|
|
|
3861
3970
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3862
|
-
if (footerInitiated)
|
|
3863
|
-
|
|
3864
|
-
else
|
|
3865
|
-
footerInitiated = true;
|
|
3971
|
+
if (footerInitiated) csv += this.csvSeparator;
|
|
3972
|
+
else footerInitiated = true;
|
|
3866
3973
|
|
|
3867
3974
|
csv += '"' + (this.columnProp(column, 'exportFooter') || this.columnProp(column, 'footer') || this.columnProp(column, 'field')) + '"';
|
|
3868
3975
|
}
|
|
@@ -3876,18 +3983,20 @@ var script = {
|
|
|
3876
3983
|
},
|
|
3877
3984
|
onColumnResizeStart(event) {
|
|
3878
3985
|
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
3986
|
+
|
|
3879
3987
|
this.resizeColumnElement = event.target.parentElement;
|
|
3880
3988
|
this.columnResizing = true;
|
|
3881
|
-
this.lastResizeHelperX =
|
|
3989
|
+
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
3882
3990
|
|
|
3883
3991
|
this.bindColumnResizeEvents();
|
|
3884
3992
|
},
|
|
3885
3993
|
onColumnResize(event) {
|
|
3886
3994
|
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
3995
|
+
|
|
3887
3996
|
utils.DomHandler.addClass(this.$el, 'p-unselectable-text');
|
|
3888
3997
|
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
3889
3998
|
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
3890
|
-
this.$refs.resizeHelper.style.left =
|
|
3999
|
+
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
3891
4000
|
|
|
3892
4001
|
this.$refs.resizeHelper.style.display = 'block';
|
|
3893
4002
|
},
|
|
@@ -3895,7 +4004,7 @@ var script = {
|
|
|
3895
4004
|
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
3896
4005
|
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
3897
4006
|
let newColumnWidth = columnWidth + delta;
|
|
3898
|
-
let minWidth = this.resizeColumnElement.style.minWidth||15;
|
|
4007
|
+
let minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
3899
4008
|
|
|
3900
4009
|
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
3901
4010
|
if (this.columnResizeMode === 'fit') {
|
|
@@ -3905,9 +4014,9 @@ var script = {
|
|
|
3905
4014
|
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
3906
4015
|
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
3907
4016
|
}
|
|
3908
|
-
}
|
|
3909
|
-
else if (this.columnResizeMode === 'expand') {
|
|
4017
|
+
} else if (this.columnResizeMode === 'expand') {
|
|
3910
4018
|
const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
|
|
4019
|
+
|
|
3911
4020
|
const updateTableWidth = (el) => {
|
|
3912
4021
|
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
|
3913
4022
|
};
|
|
@@ -3945,15 +4054,18 @@ var script = {
|
|
|
3945
4054
|
let colIndex = utils.DomHandler.index(this.resizeColumnElement);
|
|
3946
4055
|
let widths = [];
|
|
3947
4056
|
let headers = utils.DomHandler.find(this.$refs.table, '.p-datatable-thead > tr > th');
|
|
3948
|
-
|
|
4057
|
+
|
|
4058
|
+
headers.forEach((header) => widths.push(utils.DomHandler.getOuterWidth(header)));
|
|
3949
4059
|
|
|
3950
4060
|
this.destroyStyleElement();
|
|
3951
4061
|
this.createStyleElement();
|
|
3952
4062
|
|
|
3953
4063
|
let innerHTML = '';
|
|
4064
|
+
|
|
3954
4065
|
widths.forEach((width, index) => {
|
|
3955
|
-
let colWidth = index === colIndex ? newColumnWidth :
|
|
4066
|
+
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
3956
4067
|
let style = this.scrollable ? `flex: 1 1 ${colWidth}px !important` : `width: ${colWidth}px !important`;
|
|
4068
|
+
|
|
3957
4069
|
innerHTML += `
|
|
3958
4070
|
.p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
3959
4071
|
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
@@ -3968,7 +4080,7 @@ var script = {
|
|
|
3968
4080
|
bindColumnResizeEvents() {
|
|
3969
4081
|
if (!this.documentColumnResizeListener) {
|
|
3970
4082
|
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
|
|
3971
|
-
if(this.columnResizing) {
|
|
4083
|
+
if (this.columnResizing) {
|
|
3972
4084
|
this.onColumnResize(event);
|
|
3973
4085
|
}
|
|
3974
4086
|
});
|
|
@@ -3976,13 +4088,12 @@ var script = {
|
|
|
3976
4088
|
|
|
3977
4089
|
if (!this.documentColumnResizeEndListener) {
|
|
3978
4090
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
|
|
3979
|
-
if(this.columnResizing) {
|
|
4091
|
+
if (this.columnResizing) {
|
|
3980
4092
|
this.columnResizing = false;
|
|
3981
4093
|
this.onColumnResizeEnd();
|
|
3982
4094
|
}
|
|
3983
4095
|
});
|
|
3984
4096
|
}
|
|
3985
|
-
|
|
3986
4097
|
},
|
|
3987
4098
|
unbindColumnResizeEvents() {
|
|
3988
4099
|
if (this.documentColumnResizeListener) {
|
|
@@ -4000,15 +4111,14 @@ var script = {
|
|
|
4000
4111
|
const column = e.column;
|
|
4001
4112
|
|
|
4002
4113
|
if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
|
|
4003
|
-
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.hasClass(event.target, 'p-column-resizer'))
|
|
4004
|
-
|
|
4005
|
-
else
|
|
4006
|
-
event.currentTarget.draggable = true;
|
|
4114
|
+
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || utils.DomHandler.hasClass(event.target, 'p-column-resizer')) event.currentTarget.draggable = false;
|
|
4115
|
+
else event.currentTarget.draggable = true;
|
|
4007
4116
|
}
|
|
4008
4117
|
},
|
|
4009
4118
|
onColumnHeaderDragStart(event) {
|
|
4010
4119
|
if (this.columnResizing) {
|
|
4011
4120
|
event.preventDefault();
|
|
4121
|
+
|
|
4012
4122
|
return;
|
|
4013
4123
|
}
|
|
4014
4124
|
|
|
@@ -4020,26 +4130,26 @@ var script = {
|
|
|
4020
4130
|
},
|
|
4021
4131
|
onColumnHeaderDragOver(event) {
|
|
4022
4132
|
let dropHeader = this.findParentHeader(event.target);
|
|
4023
|
-
|
|
4133
|
+
|
|
4134
|
+
if (this.reorderableColumns && this.draggedColumn && dropHeader) {
|
|
4024
4135
|
event.preventDefault();
|
|
4025
4136
|
let containerOffset = utils.DomHandler.getOffset(this.$el);
|
|
4026
4137
|
let dropHeaderOffset = utils.DomHandler.getOffset(dropHeader);
|
|
4027
4138
|
|
|
4028
4139
|
if (this.draggedColumn !== dropHeader) {
|
|
4029
|
-
let targetLeft =
|
|
4140
|
+
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4030
4141
|
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4031
4142
|
|
|
4032
4143
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
4033
4144
|
this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
4034
4145
|
|
|
4035
|
-
if(event.pageX > columnCenter) {
|
|
4036
|
-
this.$refs.reorderIndicatorUp.style.left =
|
|
4037
|
-
this.$refs.reorderIndicatorDown.style.left =
|
|
4146
|
+
if (event.pageX > columnCenter) {
|
|
4147
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4148
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4038
4149
|
this.dropPosition = 1;
|
|
4039
|
-
}
|
|
4040
|
-
|
|
4041
|
-
this.$refs.
|
|
4042
|
-
this.$refs.reorderIndicatorDown.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
|
|
4150
|
+
} else {
|
|
4151
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4152
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4043
4153
|
this.dropPosition = -1;
|
|
4044
4154
|
}
|
|
4045
4155
|
|
|
@@ -4049,7 +4159,7 @@ var script = {
|
|
|
4049
4159
|
}
|
|
4050
4160
|
},
|
|
4051
4161
|
onColumnHeaderDragLeave(event) {
|
|
4052
|
-
if(this.reorderableColumns && this.draggedColumn) {
|
|
4162
|
+
if (this.reorderableColumns && this.draggedColumn) {
|
|
4053
4163
|
event.preventDefault();
|
|
4054
4164
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4055
4165
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
@@ -4057,10 +4167,12 @@ var script = {
|
|
|
4057
4167
|
},
|
|
4058
4168
|
onColumnHeaderDrop(event) {
|
|
4059
4169
|
event.preventDefault();
|
|
4170
|
+
|
|
4060
4171
|
if (this.draggedColumn) {
|
|
4061
4172
|
let dragIndex = utils.DomHandler.index(this.draggedColumn);
|
|
4062
4173
|
let dropIndex = utils.DomHandler.index(this.findParentHeader(event.target));
|
|
4063
|
-
let allowDrop =
|
|
4174
|
+
let allowDrop = dragIndex !== dropIndex;
|
|
4175
|
+
|
|
4064
4176
|
if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === -1 && this.dropPosition === 1))) {
|
|
4065
4177
|
allowDrop = false;
|
|
4066
4178
|
}
|
|
@@ -4084,15 +4196,16 @@ var script = {
|
|
|
4084
4196
|
}
|
|
4085
4197
|
},
|
|
4086
4198
|
findParentHeader(element) {
|
|
4087
|
-
if(element.nodeName === 'TH') {
|
|
4199
|
+
if (element.nodeName === 'TH') {
|
|
4088
4200
|
return element;
|
|
4089
|
-
}
|
|
4090
|
-
else {
|
|
4201
|
+
} else {
|
|
4091
4202
|
let parent = element.parentElement;
|
|
4092
|
-
|
|
4203
|
+
|
|
4204
|
+
while (parent.nodeName !== 'TH') {
|
|
4093
4205
|
parent = parent.parentElement;
|
|
4094
4206
|
if (!parent) break;
|
|
4095
4207
|
}
|
|
4208
|
+
|
|
4096
4209
|
return parent;
|
|
4097
4210
|
}
|
|
4098
4211
|
},
|
|
@@ -4100,6 +4213,7 @@ var script = {
|
|
|
4100
4213
|
if (columns && columns.length) {
|
|
4101
4214
|
for (let i = 0; i < columns.length; i++) {
|
|
4102
4215
|
let column = columns[i];
|
|
4216
|
+
|
|
4103
4217
|
if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
|
|
4104
4218
|
return column;
|
|
4105
4219
|
}
|
|
@@ -4109,17 +4223,16 @@ var script = {
|
|
|
4109
4223
|
return null;
|
|
4110
4224
|
},
|
|
4111
4225
|
onRowMouseDown(event) {
|
|
4112
|
-
if (utils.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle'))
|
|
4113
|
-
|
|
4114
|
-
else
|
|
4115
|
-
event.currentTarget.draggable = false;
|
|
4226
|
+
if (utils.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) event.currentTarget.draggable = true;
|
|
4227
|
+
else event.currentTarget.draggable = false;
|
|
4116
4228
|
},
|
|
4117
4229
|
onRowDragStart(e) {
|
|
4118
4230
|
const event = e.originalEvent;
|
|
4119
4231
|
const index = e.index;
|
|
4232
|
+
|
|
4120
4233
|
this.rowDragging = true;
|
|
4121
4234
|
this.draggedRowIndex = index;
|
|
4122
|
-
event.dataTransfer.setData('text', 'b');
|
|
4235
|
+
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
4123
4236
|
},
|
|
4124
4237
|
onRowDragOver(e) {
|
|
4125
4238
|
const event = e.originalEvent;
|
|
@@ -4136,16 +4249,11 @@ var script = {
|
|
|
4136
4249
|
utils.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
4137
4250
|
|
|
4138
4251
|
this.droppedRowIndex = index;
|
|
4139
|
-
if (prevRowElement)
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
else {
|
|
4145
|
-
if (prevRowElement)
|
|
4146
|
-
utils.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4147
|
-
else
|
|
4148
|
-
utils.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4252
|
+
if (prevRowElement) utils.DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4253
|
+
else utils.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4254
|
+
} else {
|
|
4255
|
+
if (prevRowElement) utils.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4256
|
+
else utils.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4149
4257
|
|
|
4150
4258
|
this.droppedRowIndex = index + 1;
|
|
4151
4259
|
utils.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
@@ -4157,6 +4265,7 @@ var script = {
|
|
|
4157
4265
|
onRowDragLeave(event) {
|
|
4158
4266
|
let rowElement = event.currentTarget;
|
|
4159
4267
|
let prevRowElement = rowElement.previousElementSibling;
|
|
4268
|
+
|
|
4160
4269
|
if (prevRowElement) {
|
|
4161
4270
|
utils.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4162
4271
|
}
|
|
@@ -4172,8 +4281,9 @@ var script = {
|
|
|
4172
4281
|
},
|
|
4173
4282
|
onRowDrop(event) {
|
|
4174
4283
|
if (this.droppedRowIndex != null) {
|
|
4175
|
-
let dropIndex =
|
|
4284
|
+
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
|
4176
4285
|
let processedData = [...this.processedData];
|
|
4286
|
+
|
|
4177
4287
|
utils.ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
|
|
4178
4288
|
|
|
4179
4289
|
this.$emit('row-reorder', {
|
|
@@ -4197,8 +4307,7 @@ var script = {
|
|
|
4197
4307
|
|
|
4198
4308
|
if (this.dataKey) {
|
|
4199
4309
|
expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[utils.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
4200
|
-
}
|
|
4201
|
-
else {
|
|
4310
|
+
} else {
|
|
4202
4311
|
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
4203
4312
|
expanded = expandedRowIndex > -1;
|
|
4204
4313
|
}
|
|
@@ -4207,11 +4316,11 @@ var script = {
|
|
|
4207
4316
|
if (expandedRowIndex == null) {
|
|
4208
4317
|
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
4209
4318
|
}
|
|
4319
|
+
|
|
4210
4320
|
_expandedRows.splice(expandedRowIndex, 1);
|
|
4211
4321
|
this.$emit('update:expandedRows', _expandedRows);
|
|
4212
4322
|
this.$emit('row-collapse', event);
|
|
4213
|
-
}
|
|
4214
|
-
else {
|
|
4323
|
+
} else {
|
|
4215
4324
|
_expandedRows.push(rowData);
|
|
4216
4325
|
this.$emit('update:expandedRows', _expandedRows);
|
|
4217
4326
|
this.$emit('row-expand', event);
|
|
@@ -4224,28 +4333,29 @@ var script = {
|
|
|
4224
4333
|
let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
|
|
4225
4334
|
|
|
4226
4335
|
if (this.isRowGroupExpanded(data)) {
|
|
4227
|
-
_expandedRowGroups = _expandedRowGroups.filter(group => group !== groupFieldValue);
|
|
4336
|
+
_expandedRowGroups = _expandedRowGroups.filter((group) => group !== groupFieldValue);
|
|
4228
4337
|
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
4229
|
-
this.$emit('rowgroup-collapse', {originalEvent: event, data: groupFieldValue});
|
|
4230
|
-
}
|
|
4231
|
-
else {
|
|
4338
|
+
this.$emit('rowgroup-collapse', { originalEvent: event, data: groupFieldValue });
|
|
4339
|
+
} else {
|
|
4232
4340
|
_expandedRowGroups.push(groupFieldValue);
|
|
4233
4341
|
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
4234
|
-
this.$emit('rowgroup-expand', {originalEvent: event, data: groupFieldValue});
|
|
4342
|
+
this.$emit('rowgroup-expand', { originalEvent: event, data: groupFieldValue });
|
|
4235
4343
|
}
|
|
4236
4344
|
},
|
|
4237
4345
|
isRowGroupExpanded(rowData) {
|
|
4238
4346
|
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
4239
4347
|
let groupFieldValue = utils.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
4348
|
+
|
|
4240
4349
|
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
4241
4350
|
}
|
|
4351
|
+
|
|
4242
4352
|
return false;
|
|
4243
4353
|
},
|
|
4244
4354
|
isStateful() {
|
|
4245
4355
|
return this.stateKey != null;
|
|
4246
4356
|
},
|
|
4247
4357
|
getStorage() {
|
|
4248
|
-
switch(this.stateStorage) {
|
|
4358
|
+
switch (this.stateStorage) {
|
|
4249
4359
|
case 'local':
|
|
4250
4360
|
return window.localStorage;
|
|
4251
4361
|
|
|
@@ -4310,8 +4420,9 @@ var script = {
|
|
|
4310
4420
|
const storage = this.getStorage();
|
|
4311
4421
|
const stateString = storage.getItem(this.stateKey);
|
|
4312
4422
|
const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
4313
|
-
|
|
4314
|
-
|
|
4423
|
+
|
|
4424
|
+
const reviver = function (key, value) {
|
|
4425
|
+
if (typeof value === 'string' && dateFormat.test(value)) {
|
|
4315
4426
|
return new Date(value);
|
|
4316
4427
|
}
|
|
4317
4428
|
|
|
@@ -4368,7 +4479,8 @@ var script = {
|
|
|
4368
4479
|
saveColumnWidths(state) {
|
|
4369
4480
|
let widths = [];
|
|
4370
4481
|
let headers = utils.DomHandler.find(this.$el, '.p-datatable-thead > tr > th');
|
|
4371
|
-
|
|
4482
|
+
|
|
4483
|
+
headers.forEach((header) => widths.push(utils.DomHandler.getOuterWidth(header)));
|
|
4372
4484
|
state.columnWidths = widths.join(',');
|
|
4373
4485
|
|
|
4374
4486
|
if (this.columnResizeMode === 'expand') {
|
|
@@ -4389,8 +4501,10 @@ var script = {
|
|
|
4389
4501
|
this.createStyleElement();
|
|
4390
4502
|
|
|
4391
4503
|
let innerHTML = '';
|
|
4504
|
+
|
|
4392
4505
|
widths.forEach((width, index) => {
|
|
4393
4506
|
let style = this.scrollable ? `flex: 1 1 ${width}px !important` : `width: ${width}px !important`;
|
|
4507
|
+
|
|
4394
4508
|
innerHTML += `
|
|
4395
4509
|
.p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
4396
4510
|
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
@@ -4415,18 +4529,21 @@ var script = {
|
|
|
4415
4529
|
},
|
|
4416
4530
|
onRowEditInit(event) {
|
|
4417
4531
|
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
4532
|
+
|
|
4418
4533
|
_editingRows.push(event.data);
|
|
4419
4534
|
this.$emit('update:editingRows', _editingRows);
|
|
4420
4535
|
this.$emit('row-edit-init', event);
|
|
4421
4536
|
},
|
|
4422
4537
|
onRowEditSave(event) {
|
|
4423
4538
|
let _editingRows = [...this.editingRows];
|
|
4539
|
+
|
|
4424
4540
|
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
4425
4541
|
this.$emit('update:editingRows', _editingRows);
|
|
4426
4542
|
this.$emit('row-edit-save', event);
|
|
4427
4543
|
},
|
|
4428
4544
|
onRowEditCancel(event) {
|
|
4429
4545
|
let _editingRows = [...this.editingRows];
|
|
4546
|
+
|
|
4430
4547
|
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
4431
4548
|
this.$emit('update:editingRows', _editingRows);
|
|
4432
4549
|
this.$emit('row-edit-cancel', event);
|
|
@@ -4439,10 +4556,10 @@ var script = {
|
|
|
4439
4556
|
if (editing) {
|
|
4440
4557
|
!meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
|
|
4441
4558
|
meta['fields'].push(field);
|
|
4442
|
-
}
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
!fields.length ?
|
|
4559
|
+
} else if (meta) {
|
|
4560
|
+
const fields = meta['fields'].filter((f) => f !== field);
|
|
4561
|
+
|
|
4562
|
+
!fields.length ? delete editingMeta[index] : (meta['fields'] = fields);
|
|
4446
4563
|
}
|
|
4447
4564
|
|
|
4448
4565
|
this.d_editingMeta = editingMeta;
|
|
@@ -4483,9 +4600,17 @@ var script = {
|
|
|
4483
4600
|
},
|
|
4484
4601
|
cloneFilters() {
|
|
4485
4602
|
let cloned = {};
|
|
4603
|
+
|
|
4486
4604
|
if (this.filters) {
|
|
4487
|
-
Object.entries(this.filters).forEach(([prop,value]) => {
|
|
4488
|
-
cloned[prop] = value.operator
|
|
4605
|
+
Object.entries(this.filters).forEach(([prop, value]) => {
|
|
4606
|
+
cloned[prop] = value.operator
|
|
4607
|
+
? {
|
|
4608
|
+
operator: value.operator,
|
|
4609
|
+
constraints: value.constraints.map((constraint) => {
|
|
4610
|
+
return { ...constraint };
|
|
4611
|
+
})
|
|
4612
|
+
}
|
|
4613
|
+
: { ...value };
|
|
4489
4614
|
});
|
|
4490
4615
|
}
|
|
4491
4616
|
|
|
@@ -4493,7 +4618,8 @@ var script = {
|
|
|
4493
4618
|
},
|
|
4494
4619
|
updateReorderableColumns() {
|
|
4495
4620
|
let columnOrder = [];
|
|
4496
|
-
|
|
4621
|
+
|
|
4622
|
+
this.columns.forEach((col) => columnOrder.push(this.columnProp(col, 'columnKey') || this.columnProp(col, 'field')));
|
|
4497
4623
|
this.d_columnOrder = columnOrder;
|
|
4498
4624
|
},
|
|
4499
4625
|
createStyleElement() {
|
|
@@ -4502,10 +4628,10 @@ var script = {
|
|
|
4502
4628
|
document.head.appendChild(this.styleElement);
|
|
4503
4629
|
},
|
|
4504
4630
|
createResponsiveStyle() {
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4631
|
+
if (!this.responsiveStyleElement) {
|
|
4632
|
+
this.responsiveStyleElement = document.createElement('style');
|
|
4633
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
4634
|
+
document.head.appendChild(this.responsiveStyleElement);
|
|
4509
4635
|
|
|
4510
4636
|
let innerHTML = `
|
|
4511
4637
|
@media screen and (max-width: ${this.breakpoint}) {
|
|
@@ -4538,8 +4664,8 @@ var script = {
|
|
|
4538
4664
|
`;
|
|
4539
4665
|
|
|
4540
4666
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
4541
|
-
|
|
4542
|
-
|
|
4667
|
+
}
|
|
4668
|
+
},
|
|
4543
4669
|
destroyResponsiveStyle() {
|
|
4544
4670
|
if (this.responsiveStyleElement) {
|
|
4545
4671
|
document.head.removeChild(this.responsiveStyleElement);
|
|
@@ -4556,6 +4682,7 @@ var script = {
|
|
|
4556
4682
|
if (!results) {
|
|
4557
4683
|
results = [];
|
|
4558
4684
|
}
|
|
4685
|
+
|
|
4559
4686
|
if (children && children.length) {
|
|
4560
4687
|
children.forEach((child) => {
|
|
4561
4688
|
if (child.children instanceof Array) {
|
|
@@ -4565,6 +4692,7 @@ var script = {
|
|
|
4565
4692
|
}
|
|
4566
4693
|
});
|
|
4567
4694
|
}
|
|
4695
|
+
|
|
4568
4696
|
return results;
|
|
4569
4697
|
},
|
|
4570
4698
|
dataToRender(data) {
|
|
@@ -4572,6 +4700,7 @@ var script = {
|
|
|
4572
4700
|
|
|
4573
4701
|
if (_data && this.paginator) {
|
|
4574
4702
|
const first = this.lazy ? 0 : this.d_first;
|
|
4703
|
+
|
|
4575
4704
|
return _data.slice(first, first + this.d_rows);
|
|
4576
4705
|
}
|
|
4577
4706
|
|
|
@@ -4584,8 +4713,9 @@ var script = {
|
|
|
4584
4713
|
computed: {
|
|
4585
4714
|
containerClass() {
|
|
4586
4715
|
return [
|
|
4587
|
-
'p-datatable p-component',
|
|
4588
|
-
|
|
4716
|
+
'p-datatable p-component',
|
|
4717
|
+
{
|
|
4718
|
+
'p-datatable-hoverable-rows': this.rowHover || this.selectionMode,
|
|
4589
4719
|
'p-datatable-auto-layout': this.autoLayout,
|
|
4590
4720
|
'p-datatable-resizable': this.resizableColumns,
|
|
4591
4721
|
'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
|
|
@@ -4593,7 +4723,7 @@ var script = {
|
|
|
4593
4723
|
'p-datatable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
|
|
4594
4724
|
'p-datatable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
|
|
4595
4725
|
'p-datatable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
|
|
4596
|
-
'p-datatable-flex-scrollable':
|
|
4726
|
+
'p-datatable-flex-scrollable': this.scrollable && this.scrollHeight === 'flex',
|
|
4597
4727
|
'p-datatable-responsive-stack': this.responsiveLayout === 'stack',
|
|
4598
4728
|
'p-datatable-responsive-scroll': this.responsiveLayout === 'scroll',
|
|
4599
4729
|
'p-datatable-striped': this.stripedRows,
|
|
@@ -4614,8 +4744,10 @@ var script = {
|
|
|
4614
4744
|
|
|
4615
4745
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
4616
4746
|
let orderedColumns = [];
|
|
4747
|
+
|
|
4617
4748
|
for (let columnKey of this.d_columnOrder) {
|
|
4618
4749
|
let column = this.findColumnByKey(cols, columnKey);
|
|
4750
|
+
|
|
4619
4751
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
4620
4752
|
orderedColumns.push(column);
|
|
4621
4753
|
}
|
|
@@ -4628,6 +4760,7 @@ var script = {
|
|
|
4628
4760
|
},
|
|
4629
4761
|
headerColumnGroup() {
|
|
4630
4762
|
const children = this.getChildren();
|
|
4763
|
+
|
|
4631
4764
|
if (children) {
|
|
4632
4765
|
for (let child of children) {
|
|
4633
4766
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
@@ -4640,6 +4773,7 @@ var script = {
|
|
|
4640
4773
|
},
|
|
4641
4774
|
footerColumnGroup() {
|
|
4642
4775
|
const children = this.getChildren();
|
|
4776
|
+
|
|
4643
4777
|
if (children) {
|
|
4644
4778
|
for (let child of children) {
|
|
4645
4779
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
@@ -4663,10 +4797,8 @@ var script = {
|
|
|
4663
4797
|
}
|
|
4664
4798
|
|
|
4665
4799
|
if (this.sorted) {
|
|
4666
|
-
if(this.sortMode === 'single')
|
|
4667
|
-
|
|
4668
|
-
else if(this.sortMode === 'multiple')
|
|
4669
|
-
data = this.sortMultiple(data);
|
|
4800
|
+
if (this.sortMode === 'single') data = this.sortSingle(data);
|
|
4801
|
+
else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
|
|
4670
4802
|
}
|
|
4671
4803
|
}
|
|
4672
4804
|
}
|
|
@@ -4676,15 +4808,16 @@ var script = {
|
|
|
4676
4808
|
totalRecordsLength() {
|
|
4677
4809
|
if (this.lazy) {
|
|
4678
4810
|
return this.totalRecords;
|
|
4679
|
-
}
|
|
4680
|
-
else {
|
|
4811
|
+
} else {
|
|
4681
4812
|
const data = this.processedData;
|
|
4813
|
+
|
|
4682
4814
|
return data ? data.length : 0;
|
|
4683
4815
|
}
|
|
4684
4816
|
},
|
|
4685
4817
|
empty() {
|
|
4686
4818
|
const data = this.processedData;
|
|
4687
|
-
|
|
4819
|
+
|
|
4820
|
+
return !data || data.length === 0;
|
|
4688
4821
|
},
|
|
4689
4822
|
paginatorTop() {
|
|
4690
4823
|
return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
|
|
@@ -4701,28 +4834,28 @@ var script = {
|
|
|
4701
4834
|
allRowsSelected() {
|
|
4702
4835
|
if (this.selectAll !== null) {
|
|
4703
4836
|
return this.selectAll;
|
|
4704
|
-
}
|
|
4705
|
-
else {
|
|
4837
|
+
} else {
|
|
4706
4838
|
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
4707
|
-
|
|
4839
|
+
|
|
4840
|
+
return utils.ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every((v) => this.selection.some((s) => this.equals(s, v)));
|
|
4708
4841
|
}
|
|
4709
4842
|
},
|
|
4710
4843
|
attributeSelector() {
|
|
4711
4844
|
return utils.UniqueComponentId();
|
|
4712
4845
|
},
|
|
4713
4846
|
groupRowSortField() {
|
|
4714
|
-
return this.sortMode === 'single' ? this.sortField :
|
|
4847
|
+
return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null;
|
|
4715
4848
|
},
|
|
4716
4849
|
virtualScrollerDisabled() {
|
|
4717
4850
|
return utils.ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
|
4718
4851
|
}
|
|
4719
4852
|
},
|
|
4720
4853
|
components: {
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4854
|
+
DTPaginator: Paginator__default["default"],
|
|
4855
|
+
DTTableHeader: script$7,
|
|
4856
|
+
DTTableBody: script$3,
|
|
4857
|
+
DTTableFooter: script$1,
|
|
4858
|
+
DTVirtualScroller: VirtualScroller__default["default"]
|
|
4726
4859
|
}
|
|
4727
4860
|
};
|
|
4728
4861
|
|
|
@@ -4802,7 +4935,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4802
4935
|
name: "start",
|
|
4803
4936
|
fn: vue.withCtx(() => [
|
|
4804
4937
|
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
4805
|
-
])
|
|
4938
|
+
]),
|
|
4939
|
+
key: "0"
|
|
4806
4940
|
}
|
|
4807
4941
|
: undefined,
|
|
4808
4942
|
(_ctx.$slots.paginatorend)
|
|
@@ -4810,7 +4944,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4810
4944
|
name: "end",
|
|
4811
4945
|
fn: vue.withCtx(() => [
|
|
4812
4946
|
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
4813
|
-
])
|
|
4947
|
+
]),
|
|
4948
|
+
key: "1"
|
|
4814
4949
|
}
|
|
4815
4950
|
: undefined
|
|
4816
4951
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
@@ -5002,7 +5137,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5002
5137
|
name: "start",
|
|
5003
5138
|
fn: vue.withCtx(() => [
|
|
5004
5139
|
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
5005
|
-
])
|
|
5140
|
+
]),
|
|
5141
|
+
key: "0"
|
|
5006
5142
|
}
|
|
5007
5143
|
: undefined,
|
|
5008
5144
|
(_ctx.$slots.paginatorend)
|
|
@@ -5010,7 +5146,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5010
5146
|
name: "end",
|
|
5011
5147
|
fn: vue.withCtx(() => [
|
|
5012
5148
|
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
5013
|
-
])
|
|
5149
|
+
]),
|
|
5150
|
+
key: "1"
|
|
5014
5151
|
}
|
|
5015
5152
|
: undefined
|
|
5016
5153
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
@@ -5057,7 +5194,7 @@ function styleInject(css, ref) {
|
|
|
5057
5194
|
}
|
|
5058
5195
|
}
|
|
5059
5196
|
|
|
5060
|
-
var css_248z = "\n.p-datatable {\n position: relative;\n}\n.p-datatable table {\n border-collapse: collapse;\n min-width: 100%;\n table-layout: fixed;\n}\n.p-datatable .p-sortable-column {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-datatable .p-sortable-column .p-column-title,\n.p-datatable .p-sortable-column .p-sortable-column-icon,\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper > table,\n.p-datatable-auto-layout > .p-datatable-wrapper > table {\n table-layout: auto;\n}\n.p-datatable-hoverable-rows .p-selectable-row {\n cursor: pointer;\n}\n\n/* Scrollable */\n.p-datatable-scrollable .p-datatable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-datatable-scrollable .p-datatable-thead,\n.p-datatable-scrollable .p-datatable-tbody,\n.p-datatable-scrollable .p-datatable-tfoot {\n display: block;\n}\n.p-datatable-scrollable .p-datatable-thead > tr,\n.p-datatable-scrollable .p-datatable-tbody > tr,\n.p-datatable-scrollable .p-datatable-tfoot > tr {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n width: 100%;\n}\n.p-datatable-scrollable .p-datatable-thead > tr > th,\n.p-datatable-scrollable .p-datatable-tbody > tr > td,\n.p-datatable-scrollable .p-datatable-tfoot > tr > td {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable-scrollable .p-datatable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-frozen-tbody {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-datatable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-datatable-scrollable-both .p-datatable-thead > tr > th,\n.p-datatable-scrollable-both .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-both .p-datatable-tfoot > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-thead > tr > th
|
|
5197
|
+
var css_248z = "\n.p-datatable {\n position: relative;\n}\n.p-datatable table {\n border-collapse: collapse;\n min-width: 100%;\n table-layout: fixed;\n}\n.p-datatable .p-sortable-column {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-datatable .p-sortable-column .p-column-title,\n.p-datatable .p-sortable-column .p-sortable-column-icon,\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper > table,\n.p-datatable-auto-layout > .p-datatable-wrapper > table {\n table-layout: auto;\n}\n.p-datatable-hoverable-rows .p-selectable-row {\n cursor: pointer;\n}\n\n/* Scrollable */\n.p-datatable-scrollable .p-datatable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-datatable-scrollable .p-datatable-thead,\n.p-datatable-scrollable .p-datatable-tbody,\n.p-datatable-scrollable .p-datatable-tfoot {\n display: block;\n}\n.p-datatable-scrollable .p-datatable-thead > tr,\n.p-datatable-scrollable .p-datatable-tbody > tr,\n.p-datatable-scrollable .p-datatable-tfoot > tr {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n width: 100%;\n}\n.p-datatable-scrollable .p-datatable-thead > tr > th,\n.p-datatable-scrollable .p-datatable-tbody > tr > td,\n.p-datatable-scrollable .p-datatable-tfoot > tr > td {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable-scrollable .p-datatable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-frozen-tbody {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-datatable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-datatable-scrollable-both .p-datatable-thead > tr > th,\n.p-datatable-scrollable-both .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-both .p-datatable-tfoot > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-thead > tr > th .p-datatable-scrollable-horizontal .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-tfoot > tr > td {\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n}\n.p-datatable-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n}\n.p-datatable-flex-scrollable .p-datatable-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n}\n.p-datatable-scrollable .p-rowgroup-header {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot {\n display: table;\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr {\n display: table-row;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr > th,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr > td {\n display: table-cell;\n}\n.p-datatable-scrollable .p-virtualscroller > .p-datatable-table {\n display: inline-block; /* For Safari */\n}\n\n/* Resizable */\n.p-datatable-resizable > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-resizable .p-datatable-thead > tr > th,\n.p-datatable-resizable .p-datatable-tfoot > tr > td,\n.p-datatable-resizable .p-datatable-tbody > tr > td {\n overflow: hidden;\n white-space: nowrap;\n}\n.p-datatable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-datatable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: 0.5rem;\n height: 100%;\n padding: 0px;\n cursor: col-resize;\n border: 1px solid transparent;\n}\n.p-datatable .p-column-header-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-datatable .p-row-editor-init,\n.p-datatable .p-row-editor-save,\n.p-datatable .p-row-editor-cancel {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Expand */\n.p-datatable .p-row-toggler {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Reorder */\n.p-datatable-reorder-indicator-up,\n.p-datatable-reorder-indicator-down {\n position: absolute;\n display: none;\n}\n.p-reorderable-column,\n.p-datatable-reorderablerow-handle {\n cursor: move;\n}\n\n/* Loader */\n.p-datatable .p-datatable-loading-overlay {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 2;\n}\n\n/* Filter */\n.p-column-filter-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n}\n.p-column-filter-menu {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin-left: auto;\n}\n.p-column-filter-row .p-column-filter-element {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-column-filter-menu-button,\n.p-column-filter-clear-button {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n.p-column-filter-overlay {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-column-filter-row-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-column-filter-row-item {\n cursor: pointer;\n}\n.p-column-filter-add-button,\n.p-column-filter-remove-button {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-column-filter-add-button .p-button-label,\n.p-column-filter-remove-button .p-button-label {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n}\n.p-column-filter-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-column-filter-buttonbar .p-button:not(.p-button-icon-only) {\n width: auto;\n}\n\n/* Responsive */\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n display: none;\n}\n\n/* VirtualScroller */\n.p-datatable .p-virtualscroller-loading {\n -webkit-transform: none !important;\n transform: none !important;\n min-height: 0;\n position: sticky;\n top: 0;\n left: 0;\n}\n";
|
|
5061
5198
|
styleInject(css_248z);
|
|
5062
5199
|
|
|
5063
5200
|
script.render = render;
|