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
|
@@ -44,13 +44,13 @@ const _hoisted_1$a = ["aria-checked", "tabindex"];
|
|
|
44
44
|
|
|
45
45
|
function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46
46
|
return (openBlock(), createElementBlock("div", {
|
|
47
|
-
class: normalizeClass(['p-checkbox p-component', {'p-checkbox-focused': $data.focused, 'p-disabled': _ctx.$attrs.disabled}]),
|
|
47
|
+
class: normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused, 'p-disabled': _ctx.$attrs.disabled }]),
|
|
48
48
|
onClick: _cache[2] || (_cache[2] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
49
49
|
onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
|
|
50
50
|
}, [
|
|
51
51
|
createElementVNode("div", {
|
|
52
52
|
ref: "box",
|
|
53
|
-
class: normalizeClass(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
53
|
+
class: normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
54
54
|
role: "checkbox",
|
|
55
55
|
"aria-checked": $props.checked,
|
|
56
56
|
tabindex: _ctx.$attrs.disabled ? null : '0',
|
|
@@ -58,7 +58,7 @@ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
onBlur: _cache[1] || (_cache[1] = $event => ($options.onBlur($event)))
|
|
59
59
|
}, [
|
|
60
60
|
createElementVNode("span", {
|
|
61
|
-
class: normalizeClass(['p-checkbox-icon', {'pi pi-check': $props.checked}])
|
|
61
|
+
class: normalizeClass(['p-checkbox-icon', { 'pi pi-check': $props.checked }])
|
|
62
62
|
}, null, 2)
|
|
63
63
|
], 42, _hoisted_1$a)
|
|
64
64
|
], 34))
|
|
@@ -68,7 +68,7 @@ script$a.render = render$a;
|
|
|
68
68
|
|
|
69
69
|
var script$9 = {
|
|
70
70
|
name: 'ColumnFilter',
|
|
71
|
-
emits: ['filter-change','filter-apply','operator-change','matchmode-change','constraint-add','constraint-remove','filter-clear','apply-click'],
|
|
71
|
+
emits: ['filter-change', 'filter-apply', 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
|
|
72
72
|
props: {
|
|
73
73
|
field: {
|
|
74
74
|
type: String,
|
|
@@ -145,7 +145,7 @@ var script$9 = {
|
|
|
145
145
|
overlayVisible: false,
|
|
146
146
|
defaultMatchMode: null,
|
|
147
147
|
defaultOperator: null
|
|
148
|
-
}
|
|
148
|
+
};
|
|
149
149
|
},
|
|
150
150
|
overlay: null,
|
|
151
151
|
selfClick: false,
|
|
@@ -164,24 +164,24 @@ var script$9 = {
|
|
|
164
164
|
mounted() {
|
|
165
165
|
if (this.filters && this.filters[this.field]) {
|
|
166
166
|
let fieldFilters = this.filters[this.field];
|
|
167
|
+
|
|
167
168
|
if (fieldFilters.operator) {
|
|
168
169
|
this.defaultMatchMode = fieldFilters.constraints[0].matchMode;
|
|
169
170
|
this.defaultOperator = fieldFilters.operator;
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
171
|
+
} else {
|
|
172
172
|
this.defaultMatchMode = this.filters[this.field].matchMode;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
methods: {
|
|
177
177
|
clearFilter() {
|
|
178
|
-
let _filters = {...this.filters};
|
|
178
|
+
let _filters = { ...this.filters };
|
|
179
|
+
|
|
179
180
|
if (_filters[this.field].operator) {
|
|
180
181
|
_filters[this.field].constraints.splice(1);
|
|
181
182
|
_filters[this.field].operator = this.defaultOperator;
|
|
182
|
-
_filters[this.field].constraints[0] = {value: null, matchMode: this.defaultMatchMode};
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
183
|
+
_filters[this.field].constraints[0] = { value: null, matchMode: this.defaultMatchMode };
|
|
184
|
+
} else {
|
|
185
185
|
_filters[this.field].value = null;
|
|
186
186
|
_filters[this.field].matchMode = this.defaultMatchMode;
|
|
187
187
|
}
|
|
@@ -192,18 +192,17 @@ var script$9 = {
|
|
|
192
192
|
this.hide();
|
|
193
193
|
},
|
|
194
194
|
applyFilter() {
|
|
195
|
-
this.$emit('apply-click', {field: this.field, constraints: this.filters[this.field]});
|
|
195
|
+
this.$emit('apply-click', { field: this.field, constraints: this.filters[this.field] });
|
|
196
196
|
this.$emit('filter-apply');
|
|
197
197
|
this.hide();
|
|
198
198
|
},
|
|
199
199
|
hasFilter() {
|
|
200
200
|
if (this.filtersStore) {
|
|
201
201
|
let fieldFilter = this.filtersStore[this.field];
|
|
202
|
+
|
|
202
203
|
if (fieldFilter) {
|
|
203
|
-
if (fieldFilter.operator)
|
|
204
|
-
|
|
205
|
-
else
|
|
206
|
-
return !this.isFilterBlank(fieldFilter.value);
|
|
204
|
+
if (fieldFilter.operator) return !this.isFilterBlank(fieldFilter.constraints[0].value);
|
|
205
|
+
else return !this.isFilterBlank(fieldFilter.value);
|
|
207
206
|
}
|
|
208
207
|
}
|
|
209
208
|
|
|
@@ -214,48 +213,51 @@ var script$9 = {
|
|
|
214
213
|
},
|
|
215
214
|
isFilterBlank(filter) {
|
|
216
215
|
if (filter !== null && filter !== undefined) {
|
|
217
|
-
if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0))
|
|
218
|
-
|
|
219
|
-
else
|
|
220
|
-
return false;
|
|
216
|
+
if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0)) return true;
|
|
217
|
+
else return false;
|
|
221
218
|
}
|
|
219
|
+
|
|
222
220
|
return true;
|
|
223
221
|
},
|
|
224
222
|
toggleMenu() {
|
|
225
223
|
this.overlayVisible = !this.overlayVisible;
|
|
226
224
|
},
|
|
227
225
|
onToggleButtonKeyDown(event) {
|
|
228
|
-
switch(event.key) {
|
|
226
|
+
switch (event.key) {
|
|
229
227
|
case 'Escape':
|
|
230
228
|
case 'Tab':
|
|
231
229
|
this.overlayVisible = false;
|
|
232
|
-
|
|
230
|
+
break;
|
|
233
231
|
|
|
234
232
|
case 'ArrowDown':
|
|
235
233
|
if (this.overlayVisible) {
|
|
236
234
|
let focusable = DomHandler.getFocusableElements(this.overlay);
|
|
235
|
+
|
|
237
236
|
if (focusable) {
|
|
238
237
|
focusable[0].focus();
|
|
239
238
|
}
|
|
239
|
+
|
|
240
240
|
event.preventDefault();
|
|
241
|
-
}
|
|
242
|
-
else if (event.altKey) {
|
|
241
|
+
} else if (event.altKey) {
|
|
243
242
|
this.overlayVisible = true;
|
|
244
243
|
event.preventDefault();
|
|
245
244
|
}
|
|
246
|
-
|
|
245
|
+
|
|
246
|
+
break;
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
onEscape() {
|
|
250
250
|
this.overlayVisible = false;
|
|
251
|
+
|
|
251
252
|
if (this.$refs.icon) {
|
|
252
253
|
this.$refs.icon.focus();
|
|
253
254
|
}
|
|
254
255
|
},
|
|
255
256
|
onRowMatchModeChange(matchMode) {
|
|
256
|
-
let _filters = {...this.filters};
|
|
257
|
+
let _filters = { ...this.filters };
|
|
258
|
+
|
|
257
259
|
_filters[this.field].matchMode = matchMode;
|
|
258
|
-
this.$emit('matchmode-change', {field: this.field, matchMode: matchMode});
|
|
260
|
+
this.$emit('matchmode-change', { field: this.field, matchMode: matchMode });
|
|
259
261
|
this.$emit('filter-change', _filters);
|
|
260
262
|
this.$emit('filter-apply');
|
|
261
263
|
this.hide();
|
|
@@ -263,9 +265,10 @@ var script$9 = {
|
|
|
263
265
|
onRowMatchModeKeyDown(event) {
|
|
264
266
|
let item = event.target;
|
|
265
267
|
|
|
266
|
-
switch(event.key) {
|
|
268
|
+
switch (event.key) {
|
|
267
269
|
case 'ArrowDown':
|
|
268
270
|
var nextItem = this.findNextItem(item);
|
|
271
|
+
|
|
269
272
|
if (nextItem) {
|
|
270
273
|
item.removeAttribute('tabindex');
|
|
271
274
|
nextItem.tabIndex = '0';
|
|
@@ -273,10 +276,11 @@ var script$9 = {
|
|
|
273
276
|
}
|
|
274
277
|
|
|
275
278
|
event.preventDefault();
|
|
276
|
-
|
|
279
|
+
break;
|
|
277
280
|
|
|
278
281
|
case 'ArrowUp':
|
|
279
282
|
var prevItem = this.findPrevItem(item);
|
|
283
|
+
|
|
280
284
|
if (prevItem) {
|
|
281
285
|
item.removeAttribute('tabindex');
|
|
282
286
|
prevItem.tabIndex = '0';
|
|
@@ -284,36 +288,40 @@ var script$9 = {
|
|
|
284
288
|
}
|
|
285
289
|
|
|
286
290
|
event.preventDefault();
|
|
287
|
-
|
|
291
|
+
break;
|
|
288
292
|
}
|
|
289
293
|
},
|
|
290
294
|
isRowMatchModeSelected(matchMode) {
|
|
291
|
-
return
|
|
295
|
+
return this.filters[this.field].matchMode === matchMode;
|
|
292
296
|
},
|
|
293
297
|
onOperatorChange(value) {
|
|
294
|
-
let _filters = {...this.filters};
|
|
298
|
+
let _filters = { ...this.filters };
|
|
299
|
+
|
|
295
300
|
_filters[this.field].operator = value;
|
|
296
301
|
this.$emit('filter-change', _filters);
|
|
297
302
|
|
|
298
|
-
this.$emit('operator-change', {field: this.field, operator: value});
|
|
303
|
+
this.$emit('operator-change', { field: this.field, operator: value });
|
|
304
|
+
|
|
299
305
|
if (!this.showApplyButton) {
|
|
300
306
|
this.$emit('filter-apply');
|
|
301
307
|
}
|
|
302
308
|
},
|
|
303
309
|
onMenuMatchModeChange(value, index) {
|
|
304
|
-
let _filters = {...this.filters};
|
|
310
|
+
let _filters = { ...this.filters };
|
|
311
|
+
|
|
305
312
|
_filters[this.field].constraints[index].matchMode = value;
|
|
306
|
-
this.$emit('matchmode-change', {field: this.field, matchMode: value, index: index});
|
|
313
|
+
this.$emit('matchmode-change', { field: this.field, matchMode: value, index: index });
|
|
307
314
|
|
|
308
315
|
if (!this.showApplyButton) {
|
|
309
316
|
this.$emit('filter-apply');
|
|
310
317
|
}
|
|
311
318
|
},
|
|
312
319
|
addConstraint() {
|
|
313
|
-
let _filters = {...this.filters};
|
|
314
|
-
let newConstraint = {value: null, matchMode: this.defaultMatchMode};
|
|
320
|
+
let _filters = { ...this.filters };
|
|
321
|
+
let newConstraint = { value: null, matchMode: this.defaultMatchMode };
|
|
322
|
+
|
|
315
323
|
_filters[this.field].constraints.push(newConstraint);
|
|
316
|
-
this.$emit('constraint-add', {field: this.field, constraing: newConstraint});
|
|
324
|
+
this.$emit('constraint-add', { field: this.field, constraing: newConstraint });
|
|
317
325
|
this.$emit('filter-change', _filters);
|
|
318
326
|
|
|
319
327
|
if (!this.showApplyButton) {
|
|
@@ -321,9 +329,10 @@ var script$9 = {
|
|
|
321
329
|
}
|
|
322
330
|
},
|
|
323
331
|
removeConstraint(index) {
|
|
324
|
-
let _filters = {...this.filters};
|
|
332
|
+
let _filters = { ...this.filters };
|
|
325
333
|
let removedConstraint = _filters[this.field].constraints.splice(index, 1);
|
|
326
|
-
|
|
334
|
+
|
|
335
|
+
this.$emit('constraint-remove', { field: this.field, constraing: removedConstraint });
|
|
327
336
|
this.$emit('filter-change', _filters);
|
|
328
337
|
|
|
329
338
|
if (!this.showApplyButton) {
|
|
@@ -336,18 +345,14 @@ var script$9 = {
|
|
|
336
345
|
findNextItem(item) {
|
|
337
346
|
let nextItem = item.nextElementSibling;
|
|
338
347
|
|
|
339
|
-
if (nextItem)
|
|
340
|
-
|
|
341
|
-
else
|
|
342
|
-
return item.parentElement.firstElementChild;
|
|
348
|
+
if (nextItem) return DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
|
|
349
|
+
else return item.parentElement.firstElementChild;
|
|
343
350
|
},
|
|
344
351
|
findPrevItem(item) {
|
|
345
352
|
let prevItem = item.previousElementSibling;
|
|
346
353
|
|
|
347
|
-
if (prevItem)
|
|
348
|
-
|
|
349
|
-
else
|
|
350
|
-
return item.parentElement.lastElementChild;
|
|
354
|
+
if (prevItem) DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
|
|
355
|
+
else return item.parentElement.lastElementChild;
|
|
351
356
|
},
|
|
352
357
|
hide() {
|
|
353
358
|
this.overlayVisible = false;
|
|
@@ -367,6 +372,7 @@ var script$9 = {
|
|
|
367
372
|
if (this.filterMenuStyle) {
|
|
368
373
|
DomHandler.applyStyle(this.overlay, this.filterMenuStyle);
|
|
369
374
|
}
|
|
375
|
+
|
|
370
376
|
ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
|
|
371
377
|
DomHandler.absolutePosition(this.overlay, this.$refs.icon);
|
|
372
378
|
this.bindOutsideClickListener();
|
|
@@ -378,6 +384,7 @@ var script$9 = {
|
|
|
378
384
|
this.selfClick = true;
|
|
379
385
|
}
|
|
380
386
|
};
|
|
387
|
+
|
|
381
388
|
OverlayEventBus.on('overlay-click', this.overlayEventListener);
|
|
382
389
|
},
|
|
383
390
|
onOverlayLeave() {
|
|
@@ -409,8 +416,10 @@ var script$9 = {
|
|
|
409
416
|
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
|
|
410
417
|
this.overlayVisible = false;
|
|
411
418
|
}
|
|
419
|
+
|
|
412
420
|
this.selfClick = false;
|
|
413
421
|
};
|
|
422
|
+
|
|
414
423
|
document.addEventListener('click', this.outsideClickListener);
|
|
415
424
|
}
|
|
416
425
|
},
|
|
@@ -444,6 +453,7 @@ var script$9 = {
|
|
|
444
453
|
this.hide();
|
|
445
454
|
}
|
|
446
455
|
};
|
|
456
|
+
|
|
447
457
|
window.addEventListener('resize', this.resizeListener);
|
|
448
458
|
}
|
|
449
459
|
},
|
|
@@ -456,35 +466,43 @@ var script$9 = {
|
|
|
456
466
|
},
|
|
457
467
|
computed: {
|
|
458
468
|
containerClass() {
|
|
459
|
-
return [
|
|
460
|
-
'p-column-filter-
|
|
461
|
-
|
|
462
|
-
|
|
469
|
+
return [
|
|
470
|
+
'p-column-filter p-fluid',
|
|
471
|
+
{
|
|
472
|
+
'p-column-filter-row': this.display === 'row',
|
|
473
|
+
'p-column-filter-menu': this.display === 'menu'
|
|
474
|
+
}
|
|
475
|
+
];
|
|
463
476
|
},
|
|
464
477
|
overlayClass() {
|
|
465
|
-
return [
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
478
|
+
return [
|
|
479
|
+
this.filterMenuClass,
|
|
480
|
+
{
|
|
481
|
+
'p-column-filter-overlay p-component p-fluid': true,
|
|
482
|
+
'p-column-filter-overlay-menu': this.display === 'menu',
|
|
483
|
+
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
|
|
484
|
+
'p-ripple-disabled': this.$primevue.config.ripple === false
|
|
485
|
+
}
|
|
486
|
+
];
|
|
471
487
|
},
|
|
472
488
|
showMenuButton() {
|
|
473
|
-
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean': true);
|
|
489
|
+
return this.showMenu && (this.display === 'row' ? this.type !== 'boolean' : true);
|
|
474
490
|
},
|
|
475
491
|
matchModes() {
|
|
476
|
-
return
|
|
477
|
-
this
|
|
478
|
-
|
|
479
|
-
|
|
492
|
+
return (
|
|
493
|
+
this.matchModeOptions ||
|
|
494
|
+
this.$primevue.config.filterMatchModeOptions[this.type].map((key) => {
|
|
495
|
+
return { label: this.$primevue.config.locale[key], value: key };
|
|
496
|
+
})
|
|
497
|
+
);
|
|
480
498
|
},
|
|
481
499
|
isShowMatchModes() {
|
|
482
500
|
return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
|
|
483
501
|
},
|
|
484
502
|
operatorOptions() {
|
|
485
503
|
return [
|
|
486
|
-
{label: this.$primevue.config.locale.matchAll, value: FilterOperator.AND},
|
|
487
|
-
{label: this.$primevue.config.locale.matchAny, value: FilterOperator.OR}
|
|
504
|
+
{ label: this.$primevue.config.locale.matchAll, value: FilterOperator.AND },
|
|
505
|
+
{ label: this.$primevue.config.locale.matchAny, value: FilterOperator.OR }
|
|
488
506
|
];
|
|
489
507
|
},
|
|
490
508
|
noFilterLabel() {
|
|
@@ -509,7 +527,7 @@ var script$9 = {
|
|
|
509
527
|
return this.$primevue.config.locale.addRule;
|
|
510
528
|
},
|
|
511
529
|
isShowAddConstraint() {
|
|
512
|
-
return this.showAddButton && this.filters[this.field].operator &&
|
|
530
|
+
return this.showAddButton && this.filters[this.field].operator && this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints;
|
|
513
531
|
},
|
|
514
532
|
clearButtonLabel() {
|
|
515
533
|
return this.$primevue.config.locale.clear;
|
|
@@ -519,9 +537,9 @@ var script$9 = {
|
|
|
519
537
|
}
|
|
520
538
|
},
|
|
521
539
|
components: {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
540
|
+
CFDropdown: Dropdown,
|
|
541
|
+
CFButton: Button,
|
|
542
|
+
Portal: Portal
|
|
525
543
|
}
|
|
526
544
|
};
|
|
527
545
|
|
|
@@ -577,7 +595,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
577
595
|
key: 1,
|
|
578
596
|
ref: "icon",
|
|
579
597
|
type: "button",
|
|
580
|
-
class: normalizeClass(["p-column-filter-menu-button p-link", {'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter()}]),
|
|
598
|
+
class: normalizeClass(["p-column-filter-menu-button p-link", { 'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter() }]),
|
|
581
599
|
"aria-haspopup": "true",
|
|
582
600
|
"aria-expanded": $data.overlayVisible,
|
|
583
601
|
onClick: _cache[0] || (_cache[0] = $event => ($options.toggleMenu())),
|
|
@@ -587,7 +605,7 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
587
605
|
($props.showClearButton && $props.display === 'row')
|
|
588
606
|
? (openBlock(), createElementBlock("button", {
|
|
589
607
|
key: 2,
|
|
590
|
-
class: normalizeClass([{'p-hidden-space': !$options.hasRowFilter()}, "p-column-filter-clear-button p-link"]),
|
|
608
|
+
class: normalizeClass([{ 'p-hidden-space': !$options.hasRowFilter() }, "p-column-filter-clear-button p-link"]),
|
|
591
609
|
type: "button",
|
|
592
610
|
onClick: _cache[2] || (_cache[2] = $event => ($options.clearFilter()))
|
|
593
611
|
}, _hoisted_6$3, 2))
|
|
@@ -619,8 +637,8 @@ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
619
637
|
? (openBlock(), createElementBlock("ul", _hoisted_7$1, [
|
|
620
638
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.matchModes, (matchMode, i) => {
|
|
621
639
|
return (openBlock(), createElementBlock("li", {
|
|
622
|
-
class: normalizeClass(["p-column-filter-row-item", {'p-highlight': $options.isRowMatchModeSelected(matchMode.value)}]),
|
|
623
640
|
key: matchMode.label,
|
|
641
|
+
class: normalizeClass(["p-column-filter-row-item", { 'p-highlight': $options.isRowMatchModeSelected(matchMode.value) }]),
|
|
624
642
|
onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
|
|
625
643
|
onKeydown: [
|
|
626
644
|
_cache[3] || (_cache[3] = $event => ($options.onRowMatchModeKeyDown($event))),
|
|
@@ -758,9 +776,24 @@ script$9.render = render$9;
|
|
|
758
776
|
|
|
759
777
|
var script$8 = {
|
|
760
778
|
name: 'HeaderCell',
|
|
761
|
-
emits: [
|
|
762
|
-
|
|
763
|
-
|
|
779
|
+
emits: [
|
|
780
|
+
'column-click',
|
|
781
|
+
'column-mousedown',
|
|
782
|
+
'column-dragstart',
|
|
783
|
+
'column-dragover',
|
|
784
|
+
'column-dragleave',
|
|
785
|
+
'column-drop',
|
|
786
|
+
'column-resizestart',
|
|
787
|
+
'checkbox-change',
|
|
788
|
+
'filter-change',
|
|
789
|
+
'filter-apply',
|
|
790
|
+
'operator-change',
|
|
791
|
+
'matchmode-change',
|
|
792
|
+
'constraint-add',
|
|
793
|
+
'constraint-remove',
|
|
794
|
+
'filter-clear',
|
|
795
|
+
'apply-click'
|
|
796
|
+
],
|
|
764
797
|
props: {
|
|
765
798
|
column: {
|
|
766
799
|
type: Object,
|
|
@@ -771,7 +804,7 @@ var script$8 = {
|
|
|
771
804
|
default: false
|
|
772
805
|
},
|
|
773
806
|
groupRowsBy: {
|
|
774
|
-
type: [Array,String],
|
|
807
|
+
type: [Array, String],
|
|
775
808
|
default: null
|
|
776
809
|
},
|
|
777
810
|
sortMode: {
|
|
@@ -826,7 +859,7 @@ var script$8 = {
|
|
|
826
859
|
data() {
|
|
827
860
|
return {
|
|
828
861
|
styleObject: {}
|
|
829
|
-
}
|
|
862
|
+
};
|
|
830
863
|
},
|
|
831
864
|
mounted() {
|
|
832
865
|
if (this.columnProp('frozen')) {
|
|
@@ -843,15 +876,15 @@ var script$8 = {
|
|
|
843
876
|
return ObjectUtils.getVNodeProp(this.column, prop);
|
|
844
877
|
},
|
|
845
878
|
onClick(event) {
|
|
846
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
879
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
847
880
|
},
|
|
848
881
|
onKeyDown(event) {
|
|
849
882
|
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
850
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
883
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
851
884
|
}
|
|
852
885
|
},
|
|
853
886
|
onMouseDown(event) {
|
|
854
|
-
this.$emit('column-mousedown', {originalEvent: event, column: this.column});
|
|
887
|
+
this.$emit('column-mousedown', { originalEvent: event, column: this.column });
|
|
855
888
|
},
|
|
856
889
|
onDragStart(event) {
|
|
857
890
|
this.$emit('column-dragstart', event);
|
|
@@ -869,42 +902,48 @@ var script$8 = {
|
|
|
869
902
|
this.$emit('column-resizestart', event);
|
|
870
903
|
},
|
|
871
904
|
getMultiSortMetaIndex() {
|
|
872
|
-
return this.multiSortMeta.findIndex(meta =>
|
|
905
|
+
return this.multiSortMeta.findIndex((meta) => meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField'));
|
|
873
906
|
},
|
|
874
907
|
getBadgeValue() {
|
|
875
908
|
let index = this.getMultiSortMetaIndex();
|
|
876
909
|
|
|
877
|
-
return
|
|
910
|
+
return this.groupRowsBy && this.groupRowsBy === this.groupRowSortField && index > -1 ? index : index + 1;
|
|
878
911
|
},
|
|
879
912
|
isMultiSorted() {
|
|
880
|
-
return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
|
|
913
|
+
return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1;
|
|
881
914
|
},
|
|
882
915
|
isColumnSorted() {
|
|
883
|
-
return this.sortMode === 'single' ?
|
|
916
|
+
return this.sortMode === 'single' ? this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField')) : this.isMultiSorted();
|
|
884
917
|
},
|
|
885
918
|
updateStickyPosition() {
|
|
886
919
|
if (this.columnProp('frozen')) {
|
|
887
920
|
let align = this.columnProp('alignFrozen');
|
|
921
|
+
|
|
888
922
|
if (align === 'right') {
|
|
889
923
|
let right = 0;
|
|
890
924
|
let next = this.$el.nextElementSibling;
|
|
925
|
+
|
|
891
926
|
if (next) {
|
|
892
927
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
893
928
|
}
|
|
929
|
+
|
|
894
930
|
this.styleObject.right = right + 'px';
|
|
895
|
-
}
|
|
896
|
-
else {
|
|
931
|
+
} else {
|
|
897
932
|
let left = 0;
|
|
898
933
|
let prev = this.$el.previousElementSibling;
|
|
934
|
+
|
|
899
935
|
if (prev) {
|
|
900
936
|
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
901
937
|
}
|
|
938
|
+
|
|
902
939
|
this.styleObject.left = left + 'px';
|
|
903
940
|
}
|
|
904
941
|
|
|
905
942
|
let filterRow = this.$el.parentElement.nextElementSibling;
|
|
943
|
+
|
|
906
944
|
if (filterRow) {
|
|
907
945
|
let index = DomHandler.index(this.$el);
|
|
946
|
+
|
|
908
947
|
filterRow.children[index].style.left = this.styleObject.left;
|
|
909
948
|
filterRow.children[index].style.right = this.styleObject.right;
|
|
910
949
|
}
|
|
@@ -916,20 +955,24 @@ var script$8 = {
|
|
|
916
955
|
},
|
|
917
956
|
computed: {
|
|
918
957
|
containerClass() {
|
|
919
|
-
return [
|
|
958
|
+
return [
|
|
959
|
+
this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'),
|
|
960
|
+
this.columnProp('class'),
|
|
961
|
+
{
|
|
920
962
|
'p-sortable-column': this.columnProp('sortable'),
|
|
921
963
|
'p-resizable-column': this.resizableColumns,
|
|
922
964
|
'p-highlight': this.isColumnSorted(),
|
|
923
965
|
'p-filter-column': this.filterColumn,
|
|
924
966
|
'p-frozen-column': this.columnProp('frozen'),
|
|
925
967
|
'p-reorderable-column': this.reorderableColumns
|
|
926
|
-
|
|
968
|
+
}
|
|
969
|
+
];
|
|
927
970
|
},
|
|
928
971
|
containerStyle() {
|
|
929
|
-
let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle'): this.columnProp('headerStyle');
|
|
972
|
+
let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle') : this.columnProp('headerStyle');
|
|
930
973
|
let columnStyle = this.columnProp('style');
|
|
931
974
|
|
|
932
|
-
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
|
|
975
|
+
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject] : [columnStyle, headerStyle];
|
|
933
976
|
},
|
|
934
977
|
sortableColumnIcon() {
|
|
935
978
|
let sorted = false;
|
|
@@ -937,10 +980,10 @@ var script$8 = {
|
|
|
937
980
|
|
|
938
981
|
if (this.sortMode === 'single') {
|
|
939
982
|
sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
|
|
940
|
-
sortOrder = sorted ? this.sortOrder: 0;
|
|
941
|
-
}
|
|
942
|
-
else if (this.sortMode === 'multiple') {
|
|
983
|
+
sortOrder = sorted ? this.sortOrder : 0;
|
|
984
|
+
} else if (this.sortMode === 'multiple') {
|
|
943
985
|
let metaIndex = this.getMultiSortMetaIndex();
|
|
986
|
+
|
|
944
987
|
if (metaIndex > -1) {
|
|
945
988
|
sorted = true;
|
|
946
989
|
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
@@ -948,7 +991,8 @@ var script$8 = {
|
|
|
948
991
|
}
|
|
949
992
|
|
|
950
993
|
return [
|
|
951
|
-
'p-sortable-column-icon pi pi-fw',
|
|
994
|
+
'p-sortable-column-icon pi pi-fw',
|
|
995
|
+
{
|
|
952
996
|
'pi-sort-alt': !sorted,
|
|
953
997
|
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
|
954
998
|
'pi-sort-amount-down': sorted && sortOrder < 0
|
|
@@ -958,21 +1002,18 @@ var script$8 = {
|
|
|
958
1002
|
ariaSort() {
|
|
959
1003
|
if (this.columnProp('sortable')) {
|
|
960
1004
|
const sortIcon = this.sortableColumnIcon;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
return 'none';
|
|
967
|
-
}
|
|
968
|
-
else {
|
|
1005
|
+
|
|
1006
|
+
if (sortIcon[1]['pi-sort-amount-down']) return 'descending';
|
|
1007
|
+
else if (sortIcon[1]['pi-sort-amount-up-alt']) return 'ascending';
|
|
1008
|
+
else return 'none';
|
|
1009
|
+
} else {
|
|
969
1010
|
return null;
|
|
970
1011
|
}
|
|
971
1012
|
}
|
|
972
1013
|
},
|
|
973
1014
|
components: {
|
|
974
|
-
|
|
975
|
-
|
|
1015
|
+
DTHeaderCheckbox: script$a,
|
|
1016
|
+
DTColumnFilter: script$9
|
|
976
1017
|
}
|
|
977
1018
|
};
|
|
978
1019
|
|
|
@@ -1033,7 +1074,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1033
1074
|
($options.isMultiSorted())
|
|
1034
1075
|
? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString($options.getBadgeValue()), 1))
|
|
1035
1076
|
: createCommentVNode("", true),
|
|
1036
|
-
($options.columnProp('selectionMode') ==='multiple' && $props.filterDisplay !== 'row')
|
|
1077
|
+
($options.columnProp('selectionMode') === 'multiple' && $props.filterDisplay !== 'row')
|
|
1037
1078
|
? (openBlock(), createBlock(_component_DTHeaderCheckbox, {
|
|
1038
1079
|
key: 4,
|
|
1039
1080
|
checked: $props.allRowsSelected,
|
|
@@ -1044,7 +1085,7 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1044
1085
|
($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
|
|
1045
1086
|
? (openBlock(), createBlock(_component_DTColumnFilter, {
|
|
1046
1087
|
key: 5,
|
|
1047
|
-
field: $options.columnProp('filterField')
|
|
1088
|
+
field: $options.columnProp('filterField') || $options.columnProp('field'),
|
|
1048
1089
|
type: $options.columnProp('dataType'),
|
|
1049
1090
|
display: "menu",
|
|
1050
1091
|
showMenu: $options.columnProp('showFilterMenu'),
|
|
@@ -1066,11 +1107,11 @@ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1066
1107
|
showAddButton: $options.columnProp('showAddButton'),
|
|
1067
1108
|
matchModeOptions: $options.columnProp('filterMatchModeOptions'),
|
|
1068
1109
|
maxConstraints: $options.columnProp('maxConstraints'),
|
|
1069
|
-
onOperatorChange: _cache[3] || (_cache[3] = $event => (_ctx.$emit('operator-change'
|
|
1110
|
+
onOperatorChange: _cache[3] || (_cache[3] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1070
1111
|
onMatchmodeChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1071
1112
|
onConstraintAdd: _cache[5] || (_cache[5] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1072
1113
|
onConstraintRemove: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1073
|
-
onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click'
|
|
1114
|
+
onApplyClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1074
1115
|
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
|
|
1075
1116
|
: createCommentVNode("", true)
|
|
1076
1117
|
])
|
|
@@ -1081,11 +1122,26 @@ script$8.render = render$8;
|
|
|
1081
1122
|
|
|
1082
1123
|
var script$7 = {
|
|
1083
1124
|
name: 'TableHeader',
|
|
1084
|
-
emits: [
|
|
1085
|
-
|
|
1086
|
-
|
|
1125
|
+
emits: [
|
|
1126
|
+
'column-click',
|
|
1127
|
+
'column-mousedown',
|
|
1128
|
+
'column-dragstart',
|
|
1129
|
+
'column-dragover',
|
|
1130
|
+
'column-dragleave',
|
|
1131
|
+
'column-drop',
|
|
1132
|
+
'column-resizestart',
|
|
1133
|
+
'checkbox-change',
|
|
1134
|
+
'filter-change',
|
|
1135
|
+
'filter-apply',
|
|
1136
|
+
'operator-change',
|
|
1137
|
+
'matchmode-change',
|
|
1138
|
+
'constraint-add',
|
|
1139
|
+
'constraint-remove',
|
|
1140
|
+
'filter-clear',
|
|
1141
|
+
'apply-click'
|
|
1142
|
+
],
|
|
1087
1143
|
props: {
|
|
1088
|
-
|
|
1144
|
+
columnGroup: {
|
|
1089
1145
|
type: null,
|
|
1090
1146
|
default: null
|
|
1091
1147
|
},
|
|
@@ -1098,7 +1154,7 @@ var script$7 = {
|
|
|
1098
1154
|
default: null
|
|
1099
1155
|
},
|
|
1100
1156
|
groupRowsBy: {
|
|
1101
|
-
type: [Array,String],
|
|
1157
|
+
type: [Array, String],
|
|
1102
1158
|
default: null
|
|
1103
1159
|
},
|
|
1104
1160
|
resizableColumns: {
|
|
@@ -1155,9 +1211,14 @@ var script$7 = {
|
|
|
1155
1211
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
1156
1212
|
},
|
|
1157
1213
|
getFilterColumnHeaderClass(column) {
|
|
1158
|
-
return [
|
|
1159
|
-
'p-
|
|
1160
|
-
|
|
1214
|
+
return [
|
|
1215
|
+
'p-filter-column',
|
|
1216
|
+
this.columnProp(column, 'filterHeaderClass'),
|
|
1217
|
+
this.columnProp(column, 'class'),
|
|
1218
|
+
{
|
|
1219
|
+
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
1220
|
+
}
|
|
1221
|
+
];
|
|
1161
1222
|
},
|
|
1162
1223
|
getFilterColumnHeaderStyle(column) {
|
|
1163
1224
|
return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
|
|
@@ -1166,12 +1227,12 @@ var script$7 = {
|
|
|
1166
1227
|
let rows = [];
|
|
1167
1228
|
|
|
1168
1229
|
let columnGroup = this.columnGroup;
|
|
1230
|
+
|
|
1169
1231
|
if (columnGroup.children && columnGroup.children.default) {
|
|
1170
1232
|
for (let child of columnGroup.children.default()) {
|
|
1171
1233
|
if (child.type.name === 'Row') {
|
|
1172
1234
|
rows.push(child);
|
|
1173
|
-
}
|
|
1174
|
-
else if (child.children && child.children instanceof Array) {
|
|
1235
|
+
} else if (child.children && child.children instanceof Array) {
|
|
1175
1236
|
rows = child.children;
|
|
1176
1237
|
}
|
|
1177
1238
|
}
|
|
@@ -1179,15 +1240,13 @@ var script$7 = {
|
|
|
1179
1240
|
return rows;
|
|
1180
1241
|
}
|
|
1181
1242
|
},
|
|
1182
|
-
getHeaderColumns(row){
|
|
1243
|
+
getHeaderColumns(row) {
|
|
1183
1244
|
let cols = [];
|
|
1184
1245
|
|
|
1185
1246
|
if (row.children && row.children.default) {
|
|
1186
|
-
row.children.default().forEach(child => {
|
|
1187
|
-
if (child.children && child.children instanceof Array)
|
|
1188
|
-
|
|
1189
|
-
else if (child.type.name === 'Column')
|
|
1190
|
-
cols.push(child);
|
|
1247
|
+
row.children.default().forEach((child) => {
|
|
1248
|
+
if (child.children && child.children instanceof Array) cols = [...cols, ...child.children];
|
|
1249
|
+
else if (child.type.name === 'Column') cols.push(child);
|
|
1191
1250
|
});
|
|
1192
1251
|
|
|
1193
1252
|
return cols;
|
|
@@ -1195,9 +1254,9 @@ var script$7 = {
|
|
|
1195
1254
|
}
|
|
1196
1255
|
},
|
|
1197
1256
|
components: {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1257
|
+
DTHeaderCell: script$8,
|
|
1258
|
+
DTHeaderCheckbox: script$a,
|
|
1259
|
+
DTColumnFilter: script$9
|
|
1201
1260
|
}
|
|
1202
1261
|
};
|
|
1203
1262
|
|
|
@@ -1222,9 +1281,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1222
1281
|
createElementVNode("tr", _hoisted_2$5, [
|
|
1223
1282
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
1224
1283
|
return (openBlock(), createElementBlock(Fragment, {
|
|
1225
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1284
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1226
1285
|
}, [
|
|
1227
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1286
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
|
|
1228
1287
|
? (openBlock(), createBlock(_component_DTHeaderCell, {
|
|
1229
1288
|
key: 0,
|
|
1230
1289
|
column: col,
|
|
@@ -1251,11 +1310,11 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1251
1310
|
filtersStore: $props.filtersStore,
|
|
1252
1311
|
onFilterChange: _cache[8] || (_cache[8] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1253
1312
|
onFilterApply: _cache[9] || (_cache[9] = $event => (_ctx.$emit('filter-apply'))),
|
|
1254
|
-
onOperatorChange: _cache[10] || (_cache[10] = $event => (_ctx.$emit('operator-change'
|
|
1313
|
+
onOperatorChange: _cache[10] || (_cache[10] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1255
1314
|
onMatchmodeChange: _cache[11] || (_cache[11] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1256
1315
|
onConstraintAdd: _cache[12] || (_cache[12] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1257
1316
|
onConstraintRemove: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1258
|
-
onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click'
|
|
1317
|
+
onApplyClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1259
1318
|
}, null, 8, ["column", "groupRowsBy", "groupRowSortField", "reorderableColumns", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
|
|
1260
1319
|
: createCommentVNode("", true)
|
|
1261
1320
|
], 64))
|
|
@@ -1265,15 +1324,15 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1265
1324
|
? (openBlock(), createElementBlock("tr", _hoisted_3$4, [
|
|
1266
1325
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
1267
1326
|
return (openBlock(), createElementBlock(Fragment, {
|
|
1268
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1327
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1269
1328
|
}, [
|
|
1270
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1329
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')))
|
|
1271
1330
|
? (openBlock(), createElementBlock("th", {
|
|
1272
1331
|
key: 0,
|
|
1273
1332
|
style: normalizeStyle($options.getFilterColumnHeaderStyle(col)),
|
|
1274
1333
|
class: normalizeClass($options.getFilterColumnHeaderClass(col))
|
|
1275
1334
|
}, [
|
|
1276
|
-
($options.columnProp(col, 'selectionMode') ==='multiple')
|
|
1335
|
+
($options.columnProp(col, 'selectionMode') === 'multiple')
|
|
1277
1336
|
? (openBlock(), createBlock(_component_DTHeaderCheckbox, {
|
|
1278
1337
|
key: 0,
|
|
1279
1338
|
checked: $props.allRowsSelected,
|
|
@@ -1284,10 +1343,10 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1284
1343
|
(col.children && col.children.filter)
|
|
1285
1344
|
? (openBlock(), createBlock(_component_DTColumnFilter, {
|
|
1286
1345
|
key: 1,
|
|
1287
|
-
field: $options.columnProp(col,'filterField')
|
|
1288
|
-
type: $options.columnProp(col,'dataType'),
|
|
1346
|
+
field: $options.columnProp(col, 'filterField') || $options.columnProp(col, 'field'),
|
|
1347
|
+
type: $options.columnProp(col, 'dataType'),
|
|
1289
1348
|
display: "row",
|
|
1290
|
-
showMenu: $options.columnProp(col,'showFilterMenu'),
|
|
1349
|
+
showMenu: $options.columnProp(col, 'showFilterMenu'),
|
|
1291
1350
|
filterElement: col.children && col.children.filter,
|
|
1292
1351
|
filterHeaderTemplate: col.children && col.children.filterheader,
|
|
1293
1352
|
filterFooterTemplate: col.children && col.children.filterfooter,
|
|
@@ -1297,20 +1356,20 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1297
1356
|
filtersStore: $props.filtersStore,
|
|
1298
1357
|
onFilterChange: _cache[16] || (_cache[16] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1299
1358
|
onFilterApply: _cache[17] || (_cache[17] = $event => (_ctx.$emit('filter-apply'))),
|
|
1300
|
-
filterMenuStyle: $options.columnProp(col,'filterMenuStyle'),
|
|
1301
|
-
filterMenuClass: $options.columnProp(col,'filterMenuClass'),
|
|
1302
|
-
showOperator: $options.columnProp(col,'showFilterOperator'),
|
|
1303
|
-
showClearButton: $options.columnProp(col,'showClearButton'),
|
|
1304
|
-
showApplyButton: $options.columnProp(col,'showApplyButton'),
|
|
1305
|
-
showMatchModes: $options.columnProp(col,'showFilterMatchModes'),
|
|
1306
|
-
showAddButton: $options.columnProp(col,'showAddButton'),
|
|
1307
|
-
matchModeOptions: $options.columnProp(col,'filterMatchModeOptions'),
|
|
1308
|
-
maxConstraints: $options.columnProp(col,'maxConstraints'),
|
|
1309
|
-
onOperatorChange: _cache[18] || (_cache[18] = $event => (_ctx.$emit('operator-change'
|
|
1359
|
+
filterMenuStyle: $options.columnProp(col, 'filterMenuStyle'),
|
|
1360
|
+
filterMenuClass: $options.columnProp(col, 'filterMenuClass'),
|
|
1361
|
+
showOperator: $options.columnProp(col, 'showFilterOperator'),
|
|
1362
|
+
showClearButton: $options.columnProp(col, 'showClearButton'),
|
|
1363
|
+
showApplyButton: $options.columnProp(col, 'showApplyButton'),
|
|
1364
|
+
showMatchModes: $options.columnProp(col, 'showFilterMatchModes'),
|
|
1365
|
+
showAddButton: $options.columnProp(col, 'showAddButton'),
|
|
1366
|
+
matchModeOptions: $options.columnProp(col, 'filterMatchModeOptions'),
|
|
1367
|
+
maxConstraints: $options.columnProp(col, 'maxConstraints'),
|
|
1368
|
+
onOperatorChange: _cache[18] || (_cache[18] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1310
1369
|
onMatchmodeChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1311
1370
|
onConstraintAdd: _cache[20] || (_cache[20] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1312
1371
|
onConstraintRemove: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1313
|
-
onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click'
|
|
1372
|
+
onApplyClick: _cache[22] || (_cache[22] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1314
1373
|
}, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
|
|
1315
1374
|
: createCommentVNode("", true)
|
|
1316
1375
|
], 6))
|
|
@@ -1327,9 +1386,9 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1327
1386
|
}, [
|
|
1328
1387
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getHeaderColumns(row), (col, j) => {
|
|
1329
1388
|
return (openBlock(), createElementBlock(Fragment, {
|
|
1330
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1389
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
|
|
1331
1390
|
}, [
|
|
1332
|
-
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' ||
|
|
1391
|
+
(!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || $props.groupRowsBy !== $options.columnProp(col, 'field')) && typeof col.children !== 'string')
|
|
1333
1392
|
? (openBlock(), createBlock(_component_DTHeaderCell, {
|
|
1334
1393
|
key: 0,
|
|
1335
1394
|
column: col,
|
|
@@ -1349,11 +1408,11 @@ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1349
1408
|
filtersStore: $props.filtersStore,
|
|
1350
1409
|
onFilterChange: _cache[26] || (_cache[26] = $event => (_ctx.$emit('filter-change', $event))),
|
|
1351
1410
|
onFilterApply: _cache[27] || (_cache[27] = $event => (_ctx.$emit('filter-apply'))),
|
|
1352
|
-
onOperatorChange: _cache[28] || (_cache[28] = $event => (_ctx.$emit('operator-change'
|
|
1411
|
+
onOperatorChange: _cache[28] || (_cache[28] = $event => (_ctx.$emit('operator-change', $event))),
|
|
1353
1412
|
onMatchmodeChange: _cache[29] || (_cache[29] = $event => (_ctx.$emit('matchmode-change', $event))),
|
|
1354
1413
|
onConstraintAdd: _cache[30] || (_cache[30] = $event => (_ctx.$emit('constraint-add', $event))),
|
|
1355
1414
|
onConstraintRemove: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-remove', $event))),
|
|
1356
|
-
onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click'
|
|
1415
|
+
onApplyClick: _cache[32] || (_cache[32] = $event => (_ctx.$emit('apply-click', $event)))
|
|
1357
1416
|
}, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
|
|
1358
1417
|
: createCommentVNode("", true)
|
|
1359
1418
|
], 64))
|
|
@@ -1370,7 +1429,7 @@ var script$6 = {
|
|
|
1370
1429
|
inheritAttrs: false,
|
|
1371
1430
|
emits: ['change'],
|
|
1372
1431
|
props: {
|
|
1373
|
-
|
|
1432
|
+
value: null,
|
|
1374
1433
|
checked: null
|
|
1375
1434
|
},
|
|
1376
1435
|
data() {
|
|
@@ -1406,7 +1465,7 @@ const _hoisted_3$3 = [
|
|
|
1406
1465
|
|
|
1407
1466
|
function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1408
1467
|
return (openBlock(), createElementBlock("div", {
|
|
1409
|
-
class: normalizeClass(['p-radiobutton p-component', {'p-radiobutton-focused': $data.focused}]),
|
|
1468
|
+
class: normalizeClass(['p-radiobutton p-component', { 'p-radiobutton-focused': $data.focused }]),
|
|
1410
1469
|
onClick: _cache[0] || (_cache[0] = (...args) => ($options.onClick && $options.onClick(...args))),
|
|
1411
1470
|
tabindex: "0",
|
|
1412
1471
|
onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
|
|
@@ -1415,7 +1474,7 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1415
1474
|
}, [
|
|
1416
1475
|
createElementVNode("div", {
|
|
1417
1476
|
ref: "box",
|
|
1418
|
-
class: normalizeClass(['p-radiobutton-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
1477
|
+
class: normalizeClass(['p-radiobutton-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
1419
1478
|
role: "radio",
|
|
1420
1479
|
"aria-checked": $props.checked
|
|
1421
1480
|
}, _hoisted_3$3, 10, _hoisted_1$6)
|
|
@@ -1429,7 +1488,7 @@ var script$5 = {
|
|
|
1429
1488
|
inheritAttrs: false,
|
|
1430
1489
|
emits: ['change'],
|
|
1431
1490
|
props: {
|
|
1432
|
-
|
|
1491
|
+
value: null,
|
|
1433
1492
|
checked: null
|
|
1434
1493
|
},
|
|
1435
1494
|
data() {
|
|
@@ -1460,12 +1519,12 @@ const _hoisted_1$5 = ["aria-checked", "tabindex"];
|
|
|
1460
1519
|
|
|
1461
1520
|
function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1462
1521
|
return (openBlock(), createElementBlock("div", {
|
|
1463
|
-
class: normalizeClass(['p-checkbox p-component', {'p-checkbox-focused': $data.focused}]),
|
|
1522
|
+
class: normalizeClass(['p-checkbox p-component', { 'p-checkbox-focused': $data.focused }]),
|
|
1464
1523
|
onClick: _cache[3] || (_cache[3] = withModifiers((...args) => ($options.onClick && $options.onClick(...args)), ["stop","prevent"]))
|
|
1465
1524
|
}, [
|
|
1466
1525
|
createElementVNode("div", {
|
|
1467
1526
|
ref: "box",
|
|
1468
|
-
class: normalizeClass(['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}]),
|
|
1527
|
+
class: normalizeClass(['p-checkbox-box p-component', { 'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused }]),
|
|
1469
1528
|
role: "checkbox",
|
|
1470
1529
|
"aria-checked": $props.checked,
|
|
1471
1530
|
tabindex: _ctx.$attrs.disabled ? null : '0',
|
|
@@ -1474,7 +1533,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1474
1533
|
onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event)))
|
|
1475
1534
|
}, [
|
|
1476
1535
|
createElementVNode("span", {
|
|
1477
|
-
class: normalizeClass(['p-checkbox-icon', {'pi pi-check': $props.checked}])
|
|
1536
|
+
class: normalizeClass(['p-checkbox-icon', { 'pi pi-check': $props.checked }])
|
|
1478
1537
|
}, null, 2)
|
|
1479
1538
|
], 42, _hoisted_1$5)
|
|
1480
1539
|
], 2))
|
|
@@ -1484,8 +1543,7 @@ script$5.render = render$5;
|
|
|
1484
1543
|
|
|
1485
1544
|
var script$4 = {
|
|
1486
1545
|
name: 'BodyCell',
|
|
1487
|
-
emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
|
|
1488
|
-
'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
|
|
1546
|
+
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'],
|
|
1489
1547
|
props: {
|
|
1490
1548
|
rowData: {
|
|
1491
1549
|
type: Object,
|
|
@@ -1543,14 +1601,14 @@ var script$4 = {
|
|
|
1543
1601
|
return {
|
|
1544
1602
|
d_editing: this.editing,
|
|
1545
1603
|
styleObject: {}
|
|
1546
|
-
}
|
|
1604
|
+
};
|
|
1547
1605
|
},
|
|
1548
1606
|
watch: {
|
|
1549
1607
|
editing(newValue) {
|
|
1550
1608
|
this.d_editing = newValue;
|
|
1551
1609
|
},
|
|
1552
|
-
'$data.d_editing': function(newValue) {
|
|
1553
|
-
this.$emit('editing-meta-change', {data: this.rowData, field:
|
|
1610
|
+
'$data.d_editing': function (newValue) {
|
|
1611
|
+
this.$emit('editing-meta-change', { data: this.rowData, field: this.field || `field_${this.index}`, index: this.rowIndex, editing: newValue });
|
|
1554
1612
|
}
|
|
1555
1613
|
},
|
|
1556
1614
|
mounted() {
|
|
@@ -1565,6 +1623,7 @@ var script$4 = {
|
|
|
1565
1623
|
|
|
1566
1624
|
if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
|
|
1567
1625
|
const focusableEl = DomHandler.getFirstFocusableElement(this.$el);
|
|
1626
|
+
|
|
1568
1627
|
focusableEl && focusableEl.focus();
|
|
1569
1628
|
}
|
|
1570
1629
|
},
|
|
@@ -1588,7 +1647,7 @@ var script$4 = {
|
|
|
1588
1647
|
});
|
|
1589
1648
|
},
|
|
1590
1649
|
toggleRowWithRadio(event, index) {
|
|
1591
|
-
this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data});
|
|
1650
|
+
this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data });
|
|
1592
1651
|
},
|
|
1593
1652
|
toggleRowWithCheckbox(event, index) {
|
|
1594
1653
|
this.$emit('checkbox-change', { originalEvent: event.originalEvent, index: index, data: event.data });
|
|
@@ -1602,6 +1661,7 @@ var script$4 = {
|
|
|
1602
1661
|
if (!this.selfClick) {
|
|
1603
1662
|
this.completeEdit(event, 'outside');
|
|
1604
1663
|
}
|
|
1664
|
+
|
|
1605
1665
|
this.selfClick = false;
|
|
1606
1666
|
};
|
|
1607
1667
|
|
|
@@ -1628,13 +1688,14 @@ var script$4 = {
|
|
|
1628
1688
|
if (!this.d_editing) {
|
|
1629
1689
|
this.d_editing = true;
|
|
1630
1690
|
this.bindDocumentEditListener();
|
|
1631
|
-
this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1691
|
+
this.$emit('cell-edit-init', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1632
1692
|
|
|
1633
1693
|
this.overlayEventListener = (e) => {
|
|
1634
1694
|
if (this.$el && this.$el.contains(e.target)) {
|
|
1635
1695
|
this.selfClick = true;
|
|
1636
1696
|
}
|
|
1637
1697
|
};
|
|
1698
|
+
|
|
1638
1699
|
OverlayEventBus.on('overlay-click', this.overlayEventListener);
|
|
1639
1700
|
}
|
|
1640
1701
|
}
|
|
@@ -1650,7 +1711,7 @@ var script$4 = {
|
|
|
1650
1711
|
index: this.rowIndex,
|
|
1651
1712
|
type: type,
|
|
1652
1713
|
defaultPrevented: false,
|
|
1653
|
-
preventDefault: function() {
|
|
1714
|
+
preventDefault: function () {
|
|
1654
1715
|
this.defaultPrevented = true;
|
|
1655
1716
|
}
|
|
1656
1717
|
};
|
|
@@ -1666,21 +1727,19 @@ var script$4 = {
|
|
|
1666
1727
|
switch (event.which) {
|
|
1667
1728
|
case 13:
|
|
1668
1729
|
this.completeEdit(event, 'enter');
|
|
1669
|
-
|
|
1730
|
+
break;
|
|
1670
1731
|
|
|
1671
1732
|
case 27:
|
|
1672
1733
|
this.switchCellToViewMode();
|
|
1673
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1674
|
-
|
|
1734
|
+
this.$emit('cell-edit-cancel', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1735
|
+
break;
|
|
1675
1736
|
|
|
1676
1737
|
case 9:
|
|
1677
1738
|
this.completeEdit(event, 'tab');
|
|
1678
1739
|
|
|
1679
|
-
if (event.shiftKey)
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
this.moveToNextCell(event);
|
|
1683
|
-
break;
|
|
1740
|
+
if (event.shiftKey) this.moveToPreviousCell(event);
|
|
1741
|
+
else this.moveToNextCell(event);
|
|
1742
|
+
break;
|
|
1684
1743
|
}
|
|
1685
1744
|
}
|
|
1686
1745
|
},
|
|
@@ -1705,13 +1764,13 @@ var script$4 = {
|
|
|
1705
1764
|
findCell(element) {
|
|
1706
1765
|
if (element) {
|
|
1707
1766
|
let cell = element;
|
|
1767
|
+
|
|
1708
1768
|
while (cell && !DomHandler.hasClass(cell, 'p-cell-editing')) {
|
|
1709
1769
|
cell = cell.parentElement;
|
|
1710
1770
|
}
|
|
1711
1771
|
|
|
1712
1772
|
return cell;
|
|
1713
|
-
}
|
|
1714
|
-
else {
|
|
1773
|
+
} else {
|
|
1715
1774
|
return null;
|
|
1716
1775
|
}
|
|
1717
1776
|
},
|
|
@@ -1720,18 +1779,16 @@ var script$4 = {
|
|
|
1720
1779
|
|
|
1721
1780
|
if (!prevCell) {
|
|
1722
1781
|
let previousRow = cell.parentElement.previousElementSibling;
|
|
1782
|
+
|
|
1723
1783
|
if (previousRow) {
|
|
1724
1784
|
prevCell = previousRow.lastElementChild;
|
|
1725
1785
|
}
|
|
1726
1786
|
}
|
|
1727
1787
|
|
|
1728
1788
|
if (prevCell) {
|
|
1729
|
-
if (DomHandler.hasClass(prevCell, 'p-editable-column'))
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
return this.findPreviousEditableColumn(prevCell);
|
|
1733
|
-
}
|
|
1734
|
-
else {
|
|
1789
|
+
if (DomHandler.hasClass(prevCell, 'p-editable-column')) return prevCell;
|
|
1790
|
+
else return this.findPreviousEditableColumn(prevCell);
|
|
1791
|
+
} else {
|
|
1735
1792
|
return null;
|
|
1736
1793
|
}
|
|
1737
1794
|
},
|
|
@@ -1740,68 +1797,70 @@ var script$4 = {
|
|
|
1740
1797
|
|
|
1741
1798
|
if (!nextCell) {
|
|
1742
1799
|
let nextRow = cell.parentElement.nextElementSibling;
|
|
1800
|
+
|
|
1743
1801
|
if (nextRow) {
|
|
1744
1802
|
nextCell = nextRow.firstElementChild;
|
|
1745
1803
|
}
|
|
1746
1804
|
}
|
|
1747
1805
|
|
|
1748
1806
|
if (nextCell) {
|
|
1749
|
-
if (DomHandler.hasClass(nextCell, 'p-editable-column'))
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
return this.findNextEditableColumn(nextCell);
|
|
1753
|
-
}
|
|
1754
|
-
else {
|
|
1807
|
+
if (DomHandler.hasClass(nextCell, 'p-editable-column')) return nextCell;
|
|
1808
|
+
else return this.findNextEditableColumn(nextCell);
|
|
1809
|
+
} else {
|
|
1755
1810
|
return null;
|
|
1756
1811
|
}
|
|
1757
1812
|
},
|
|
1758
1813
|
isEditingCellValid() {
|
|
1759
|
-
return
|
|
1814
|
+
return DomHandler.find(this.$el, '.p-invalid').length === 0;
|
|
1760
1815
|
},
|
|
1761
1816
|
onRowEditInit(event) {
|
|
1762
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1817
|
+
this.$emit('row-edit-init', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1763
1818
|
},
|
|
1764
1819
|
onRowEditSave(event) {
|
|
1765
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1820
|
+
this.$emit('row-edit-save', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1766
1821
|
},
|
|
1767
1822
|
onRowEditCancel(event) {
|
|
1768
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1823
|
+
this.$emit('row-edit-cancel', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1769
1824
|
},
|
|
1770
1825
|
editorInitCallback(event) {
|
|
1771
|
-
this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1826
|
+
this.$emit('row-edit-init', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1772
1827
|
},
|
|
1773
1828
|
editorSaveCallback(event) {
|
|
1774
1829
|
if (this.editMode === 'row') {
|
|
1775
|
-
this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1830
|
+
this.$emit('row-edit-save', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1776
1831
|
} else {
|
|
1777
1832
|
this.completeEdit(event, 'enter');
|
|
1778
1833
|
}
|
|
1779
1834
|
},
|
|
1780
1835
|
editorCancelCallback(event) {
|
|
1781
1836
|
if (this.editMode === 'row') {
|
|
1782
|
-
this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
|
|
1837
|
+
this.$emit('row-edit-cancel', { originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex });
|
|
1783
1838
|
} else {
|
|
1784
1839
|
this.switchCellToViewMode();
|
|
1785
|
-
this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
|
|
1840
|
+
this.$emit('cell-edit-cancel', { originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex });
|
|
1786
1841
|
}
|
|
1787
1842
|
},
|
|
1788
1843
|
updateStickyPosition() {
|
|
1789
1844
|
if (this.columnProp('frozen')) {
|
|
1790
1845
|
let align = this.columnProp('alignFrozen');
|
|
1846
|
+
|
|
1791
1847
|
if (align === 'right') {
|
|
1792
1848
|
let right = 0;
|
|
1793
1849
|
let next = this.$el.nextElementSibling;
|
|
1850
|
+
|
|
1794
1851
|
if (next) {
|
|
1795
1852
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
1796
1853
|
}
|
|
1854
|
+
|
|
1797
1855
|
this.styleObject.right = right + 'px';
|
|
1798
|
-
}
|
|
1799
|
-
else {
|
|
1856
|
+
} else {
|
|
1800
1857
|
let left = 0;
|
|
1801
1858
|
let prev = this.$el.previousElementSibling;
|
|
1859
|
+
|
|
1802
1860
|
if (prev) {
|
|
1803
1861
|
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
1804
1862
|
}
|
|
1863
|
+
|
|
1805
1864
|
this.styleObject.left = left + 'px';
|
|
1806
1865
|
}
|
|
1807
1866
|
}
|
|
@@ -1818,41 +1877,49 @@ var script$4 = {
|
|
|
1818
1877
|
return this.columnProp('field');
|
|
1819
1878
|
},
|
|
1820
1879
|
containerClass() {
|
|
1821
|
-
return [
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1880
|
+
return [
|
|
1881
|
+
this.columnProp('bodyClass'),
|
|
1882
|
+
this.columnProp('class'),
|
|
1883
|
+
{
|
|
1884
|
+
'p-selection-column': this.columnProp('selectionMode') != null,
|
|
1885
|
+
'p-editable-column': this.isEditable(),
|
|
1886
|
+
'p-cell-editing': this.d_editing,
|
|
1887
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
1888
|
+
}
|
|
1889
|
+
];
|
|
1827
1890
|
},
|
|
1828
1891
|
containerStyle() {
|
|
1829
1892
|
let bodyStyle = this.columnProp('bodyStyle');
|
|
1830
1893
|
let columnStyle = this.columnProp('style');
|
|
1831
1894
|
|
|
1832
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
1895
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
1833
1896
|
},
|
|
1834
1897
|
loading() {
|
|
1835
1898
|
return this.getVirtualScrollerProp('loading');
|
|
1836
1899
|
},
|
|
1837
1900
|
loadingOptions() {
|
|
1838
1901
|
const getLoaderOptions = this.getVirtualScrollerProp('getLoaderOptions');
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1902
|
+
|
|
1903
|
+
return (
|
|
1904
|
+
getLoaderOptions &&
|
|
1905
|
+
getLoaderOptions(this.rowIndex, {
|
|
1906
|
+
cellIndex: this.index,
|
|
1907
|
+
cellFirst: this.index === 0,
|
|
1908
|
+
cellLast: this.index === this.getVirtualScrollerProp('columns').length - 1,
|
|
1909
|
+
cellEven: this.index % 2 === 0,
|
|
1910
|
+
cellOdd: this.index % 2 !== 0,
|
|
1911
|
+
column: this.column,
|
|
1912
|
+
field: this.field
|
|
1913
|
+
})
|
|
1914
|
+
);
|
|
1848
1915
|
}
|
|
1849
1916
|
},
|
|
1850
1917
|
components: {
|
|
1851
|
-
|
|
1852
|
-
|
|
1918
|
+
DTRadioButton: script$6,
|
|
1919
|
+
DTCheckbox: script$5
|
|
1853
1920
|
},
|
|
1854
1921
|
directives: {
|
|
1855
|
-
|
|
1922
|
+
ripple: Ripple
|
|
1856
1923
|
}
|
|
1857
1924
|
};
|
|
1858
1925
|
|
|
@@ -1943,7 +2010,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1943
2010
|
checked: $props.selected,
|
|
1944
2011
|
onChange: _cache[0] || (_cache[0] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
|
|
1945
2012
|
}, null, 8, ["value", "checked"]))
|
|
1946
|
-
: ($options.columnProp('selectionMode') ==='multiple')
|
|
2013
|
+
: ($options.columnProp('selectionMode') === 'multiple')
|
|
1947
2014
|
? (openBlock(), createBlock(_component_DTCheckbox, {
|
|
1948
2015
|
key: 1,
|
|
1949
2016
|
value: $props.rowData,
|
|
@@ -1955,7 +2022,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1955
2022
|
: ($options.columnProp('rowReorder'))
|
|
1956
2023
|
? (openBlock(), createElementBlock("i", {
|
|
1957
2024
|
key: 5,
|
|
1958
|
-
class: normalizeClass(['p-datatable-reorderablerow-handle',
|
|
2025
|
+
class: normalizeClass(['p-datatable-reorderablerow-handle', $options.columnProp('rowReorderIcon') || 'pi pi-bars'])
|
|
1959
2026
|
}, null, 2))
|
|
1960
2027
|
: ($options.columnProp('expander'))
|
|
1961
2028
|
? withDirectives((openBlock(), createElementBlock("button", {
|
|
@@ -2013,10 +2080,30 @@ script$4.render = render$4;
|
|
|
2013
2080
|
|
|
2014
2081
|
var script$3 = {
|
|
2015
2082
|
name: 'TableBody',
|
|
2016
|
-
emits: [
|
|
2017
|
-
'
|
|
2018
|
-
'
|
|
2019
|
-
'row-
|
|
2083
|
+
emits: [
|
|
2084
|
+
'rowgroup-toggle',
|
|
2085
|
+
'row-click',
|
|
2086
|
+
'row-dblclick',
|
|
2087
|
+
'row-rightclick',
|
|
2088
|
+
'row-touchend',
|
|
2089
|
+
'row-keydown',
|
|
2090
|
+
'row-mousedown',
|
|
2091
|
+
'row-dragstart',
|
|
2092
|
+
'row-dragover',
|
|
2093
|
+
'row-dragleave',
|
|
2094
|
+
'row-dragend',
|
|
2095
|
+
'row-drop',
|
|
2096
|
+
'row-toggle',
|
|
2097
|
+
'radio-change',
|
|
2098
|
+
'checkbox-change',
|
|
2099
|
+
'cell-edit-init',
|
|
2100
|
+
'cell-edit-complete',
|
|
2101
|
+
'cell-edit-cancel',
|
|
2102
|
+
'row-edit-init',
|
|
2103
|
+
'row-edit-save',
|
|
2104
|
+
'row-edit-cancel',
|
|
2105
|
+
'editing-meta-change'
|
|
2106
|
+
],
|
|
2020
2107
|
props: {
|
|
2021
2108
|
value: {
|
|
2022
2109
|
type: Array,
|
|
@@ -2039,7 +2126,7 @@ var script$3 = {
|
|
|
2039
2126
|
default: null
|
|
2040
2127
|
},
|
|
2041
2128
|
groupRowsBy: {
|
|
2042
|
-
type: [Array,String],
|
|
2129
|
+
type: [Array, String],
|
|
2043
2130
|
default: null
|
|
2044
2131
|
},
|
|
2045
2132
|
expandableRowGroups: {
|
|
@@ -2071,7 +2158,7 @@ var script$3 = {
|
|
|
2071
2158
|
default: null
|
|
2072
2159
|
},
|
|
2073
2160
|
selection: {
|
|
2074
|
-
type: [Array,Object],
|
|
2161
|
+
type: [Array, Object],
|
|
2075
2162
|
default: null
|
|
2076
2163
|
},
|
|
2077
2164
|
selectionKeys: {
|
|
@@ -2139,6 +2226,11 @@ var script$3 = {
|
|
|
2139
2226
|
default: false
|
|
2140
2227
|
}
|
|
2141
2228
|
},
|
|
2229
|
+
data() {
|
|
2230
|
+
return {
|
|
2231
|
+
rowGroupHeaderStyleObject: {}
|
|
2232
|
+
};
|
|
2233
|
+
},
|
|
2142
2234
|
watch: {
|
|
2143
2235
|
virtualScrollerContentProps(newValue, oldValue) {
|
|
2144
2236
|
if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical') && this.getVirtualScrollerProp('itemSize', oldValue) !== this.getVirtualScrollerProp('itemSize', newValue)) {
|
|
@@ -2168,11 +2260,6 @@ var script$3 = {
|
|
|
2168
2260
|
this.updateFrozenRowGroupHeaderStickyPosition();
|
|
2169
2261
|
}
|
|
2170
2262
|
},
|
|
2171
|
-
data() {
|
|
2172
|
-
return {
|
|
2173
|
-
rowGroupHeaderStyleObject: {}
|
|
2174
|
-
}
|
|
2175
|
-
},
|
|
2176
2263
|
methods: {
|
|
2177
2264
|
columnProp(col, prop) {
|
|
2178
2265
|
return ObjectUtils.getVNodeProp(col, prop);
|
|
@@ -2180,25 +2267,28 @@ var script$3 = {
|
|
|
2180
2267
|
shouldRenderRowGroupHeader(value, rowData, i) {
|
|
2181
2268
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2182
2269
|
let prevRowData = value[i - 1];
|
|
2270
|
+
|
|
2183
2271
|
if (prevRowData) {
|
|
2184
2272
|
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
|
|
2273
|
+
|
|
2185
2274
|
return currentRowFieldData !== previousRowFieldData;
|
|
2186
|
-
}
|
|
2187
|
-
else {
|
|
2275
|
+
} else {
|
|
2188
2276
|
return true;
|
|
2189
2277
|
}
|
|
2190
2278
|
},
|
|
2191
2279
|
getRowKey(rowData, index) {
|
|
2192
|
-
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
|
|
2280
|
+
return this.dataKey ? ObjectUtils.resolveFieldData(rowData, this.dataKey) : index;
|
|
2193
2281
|
},
|
|
2194
2282
|
getRowIndex(index) {
|
|
2195
2283
|
const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
|
|
2284
|
+
|
|
2196
2285
|
return getItemOptions ? getItemOptions(index).index : index;
|
|
2197
2286
|
},
|
|
2198
2287
|
getRowClass(rowData) {
|
|
2199
2288
|
let rowStyleClass = [];
|
|
2289
|
+
|
|
2200
2290
|
if (this.selectionMode) {
|
|
2201
|
-
|
|
2291
|
+
rowStyleClass.push('p-selectable-row');
|
|
2202
2292
|
}
|
|
2203
2293
|
|
|
2204
2294
|
if (this.selection) {
|
|
@@ -2226,15 +2316,15 @@ var script$3 = {
|
|
|
2226
2316
|
shouldRenderRowGroupFooter(value, rowData, i) {
|
|
2227
2317
|
if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
|
|
2228
2318
|
return false;
|
|
2229
|
-
}
|
|
2230
|
-
else {
|
|
2319
|
+
} else {
|
|
2231
2320
|
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2232
2321
|
let nextRowData = value[i + 1];
|
|
2322
|
+
|
|
2233
2323
|
if (nextRowData) {
|
|
2234
2324
|
let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
|
|
2325
|
+
|
|
2235
2326
|
return currentRowFieldData !== nextRowFieldData;
|
|
2236
|
-
}
|
|
2237
|
-
else {
|
|
2327
|
+
} else {
|
|
2238
2328
|
return true;
|
|
2239
2329
|
}
|
|
2240
2330
|
}
|
|
@@ -2243,25 +2333,23 @@ var script$3 = {
|
|
|
2243
2333
|
if (this.rowGroupMode) {
|
|
2244
2334
|
if (this.rowGroupMode === 'subheader') {
|
|
2245
2335
|
return this.groupRowsBy !== this.columnProp(column, 'field');
|
|
2246
|
-
}
|
|
2247
|
-
else if (this.rowGroupMode === 'rowspan') {
|
|
2336
|
+
} else if (this.rowGroupMode === 'rowspan') {
|
|
2248
2337
|
if (this.isGrouped(column)) {
|
|
2249
2338
|
let prevRowData = value[i - 1];
|
|
2339
|
+
|
|
2250
2340
|
if (prevRowData) {
|
|
2251
2341
|
let currentRowFieldData = ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
|
|
2252
2342
|
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
|
|
2343
|
+
|
|
2253
2344
|
return currentRowFieldData !== previousRowFieldData;
|
|
2254
|
-
}
|
|
2255
|
-
else {
|
|
2345
|
+
} else {
|
|
2256
2346
|
return true;
|
|
2257
2347
|
}
|
|
2258
|
-
}
|
|
2259
|
-
else {
|
|
2348
|
+
} else {
|
|
2260
2349
|
return true;
|
|
2261
2350
|
}
|
|
2262
2351
|
}
|
|
2263
|
-
}
|
|
2264
|
-
else {
|
|
2352
|
+
} else {
|
|
2265
2353
|
return !this.columnProp(column, 'hidden');
|
|
2266
2354
|
}
|
|
2267
2355
|
},
|
|
@@ -2274,55 +2362,49 @@ var script$3 = {
|
|
|
2274
2362
|
while (currentRowFieldData === nextRowFieldData) {
|
|
2275
2363
|
groupRowSpan++;
|
|
2276
2364
|
let nextRowData = value[++index];
|
|
2365
|
+
|
|
2277
2366
|
if (nextRowData) {
|
|
2278
2367
|
nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
|
|
2279
|
-
}
|
|
2280
|
-
else {
|
|
2368
|
+
} else {
|
|
2281
2369
|
break;
|
|
2282
2370
|
}
|
|
2283
2371
|
}
|
|
2284
2372
|
|
|
2285
2373
|
return groupRowSpan === 1 ? null : groupRowSpan;
|
|
2286
|
-
}
|
|
2287
|
-
else {
|
|
2374
|
+
} else {
|
|
2288
2375
|
return null;
|
|
2289
2376
|
}
|
|
2290
2377
|
},
|
|
2291
2378
|
rowTogglerIcon(rowData) {
|
|
2292
2379
|
const icon = this.isRowExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
|
|
2380
|
+
|
|
2293
2381
|
return ['p-row-toggler-icon pi', icon];
|
|
2294
2382
|
},
|
|
2295
2383
|
rowGroupTogglerIcon(rowData) {
|
|
2296
2384
|
const icon = this.isRowGroupExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
|
|
2385
|
+
|
|
2297
2386
|
return ['p-row-toggler-icon pi', icon];
|
|
2298
2387
|
},
|
|
2299
2388
|
isGrouped(column) {
|
|
2300
2389
|
if (this.groupRowsBy && this.columnProp(column, 'field')) {
|
|
2301
|
-
if (Array.isArray(this.groupRowsBy))
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
return this.groupRowsBy === column.props.field;
|
|
2305
|
-
}
|
|
2306
|
-
else {
|
|
2390
|
+
if (Array.isArray(this.groupRowsBy)) return this.groupRowsBy.indexOf(column.props.field) > -1;
|
|
2391
|
+
else return this.groupRowsBy === column.props.field;
|
|
2392
|
+
} else {
|
|
2307
2393
|
return false;
|
|
2308
2394
|
}
|
|
2309
2395
|
},
|
|
2310
2396
|
isRowEditing(rowData) {
|
|
2311
2397
|
if (rowData && this.editingRows) {
|
|
2312
|
-
if (this.dataKey)
|
|
2313
|
-
|
|
2314
|
-
else
|
|
2315
|
-
return this.findIndex(rowData, this.editingRows) > -1;
|
|
2398
|
+
if (this.dataKey) return this.editingRowKeys ? this.editingRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2399
|
+
else return this.findIndex(rowData, this.editingRows) > -1;
|
|
2316
2400
|
}
|
|
2317
2401
|
|
|
2318
2402
|
return false;
|
|
2319
2403
|
},
|
|
2320
2404
|
isRowExpanded(rowData) {
|
|
2321
2405
|
if (rowData && this.expandedRows) {
|
|
2322
|
-
if (this.dataKey)
|
|
2323
|
-
|
|
2324
|
-
else
|
|
2325
|
-
return this.findIndex(rowData, this.expandedRows) > -1;
|
|
2406
|
+
if (this.dataKey) return this.expandedRowKeys ? this.expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2407
|
+
else return this.findIndex(rowData, this.expandedRows) > -1;
|
|
2326
2408
|
}
|
|
2327
2409
|
|
|
2328
2410
|
return false;
|
|
@@ -2330,20 +2412,19 @@ var script$3 = {
|
|
|
2330
2412
|
isRowGroupExpanded(rowData) {
|
|
2331
2413
|
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
2332
2414
|
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
2415
|
+
|
|
2333
2416
|
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
2334
2417
|
}
|
|
2418
|
+
|
|
2335
2419
|
return false;
|
|
2336
2420
|
},
|
|
2337
2421
|
isSelected(rowData) {
|
|
2338
2422
|
if (rowData && this.selection) {
|
|
2339
2423
|
if (this.dataKey) {
|
|
2340
2424
|
return this.selectionKeys ? this.selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
return this.findIndexInSelection(rowData) > -1;
|
|
2345
|
-
else
|
|
2346
|
-
return this.equals(rowData, this.selection);
|
|
2425
|
+
} else {
|
|
2426
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;
|
|
2427
|
+
else return this.equals(rowData, this.selection);
|
|
2347
2428
|
}
|
|
2348
2429
|
}
|
|
2349
2430
|
|
|
@@ -2361,6 +2442,7 @@ var script$3 = {
|
|
|
2361
2442
|
},
|
|
2362
2443
|
findIndex(rowData, collection) {
|
|
2363
2444
|
let index = -1;
|
|
2445
|
+
|
|
2364
2446
|
if (collection && collection.length) {
|
|
2365
2447
|
for (let i = 0; i < collection.length; i++) {
|
|
2366
2448
|
if (this.equals(rowData, collection[i])) {
|
|
@@ -2373,34 +2455,34 @@ var script$3 = {
|
|
|
2373
2455
|
return index;
|
|
2374
2456
|
},
|
|
2375
2457
|
equals(data1, data2) {
|
|
2376
|
-
return this.compareSelectionBy === 'equals' ?
|
|
2458
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
2377
2459
|
},
|
|
2378
2460
|
onRowGroupToggle(event, data) {
|
|
2379
|
-
this.$emit('rowgroup-toggle', {originalEvent: event, data: data});
|
|
2461
|
+
this.$emit('rowgroup-toggle', { originalEvent: event, data: data });
|
|
2380
2462
|
},
|
|
2381
2463
|
onRowClick(event, rowData, rowIndex) {
|
|
2382
|
-
this.$emit('row-click', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2464
|
+
this.$emit('row-click', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2383
2465
|
},
|
|
2384
2466
|
onRowDblClick(event, rowData, rowIndex) {
|
|
2385
|
-
this.$emit('row-dblclick', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2467
|
+
this.$emit('row-dblclick', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2386
2468
|
},
|
|
2387
2469
|
onRowRightClick(event, rowData, rowIndex) {
|
|
2388
|
-
this.$emit('row-rightclick', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2470
|
+
this.$emit('row-rightclick', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2389
2471
|
},
|
|
2390
2472
|
onRowTouchEnd(event) {
|
|
2391
2473
|
this.$emit('row-touchend', event);
|
|
2392
2474
|
},
|
|
2393
2475
|
onRowKeyDown(event, rowData, rowIndex) {
|
|
2394
|
-
this.$emit('row-keydown', {originalEvent: event, data: rowData, index: rowIndex});
|
|
2476
|
+
this.$emit('row-keydown', { originalEvent: event, data: rowData, index: rowIndex });
|
|
2395
2477
|
},
|
|
2396
2478
|
onRowMouseDown(event) {
|
|
2397
2479
|
this.$emit('row-mousedown', event);
|
|
2398
2480
|
},
|
|
2399
2481
|
onRowDragStart(event, rowIndex) {
|
|
2400
|
-
this.$emit('row-dragstart', {originalEvent: event, index: rowIndex});
|
|
2482
|
+
this.$emit('row-dragstart', { originalEvent: event, index: rowIndex });
|
|
2401
2483
|
},
|
|
2402
2484
|
onRowDragOver(event, rowIndex) {
|
|
2403
|
-
this.$emit('row-dragover', {originalEvent: event, index: rowIndex});
|
|
2485
|
+
this.$emit('row-dragover', { originalEvent: event, index: rowIndex });
|
|
2404
2486
|
},
|
|
2405
2487
|
onRowDragLeave(event) {
|
|
2406
2488
|
this.$emit('row-dragleave', event);
|
|
@@ -2446,19 +2528,23 @@ var script$3 = {
|
|
|
2446
2528
|
},
|
|
2447
2529
|
updateFrozenRowGroupHeaderStickyPosition() {
|
|
2448
2530
|
let tableHeaderHeight = DomHandler.getOuterHeight(this.$el.previousElementSibling);
|
|
2531
|
+
|
|
2449
2532
|
this.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
|
|
2450
2533
|
},
|
|
2451
2534
|
updateVirtualScrollerPosition() {
|
|
2452
2535
|
const tableHeaderHeight = DomHandler.getOuterHeight(this.$el.previousElementSibling);
|
|
2536
|
+
|
|
2453
2537
|
this.$el.style.top = (this.$el.style.top || 0) + tableHeaderHeight + 'px';
|
|
2454
2538
|
},
|
|
2455
2539
|
getVirtualScrollerProp(option, options) {
|
|
2456
2540
|
options = options || this.virtualScrollerContentProps;
|
|
2541
|
+
|
|
2457
2542
|
return options ? options[option] : null;
|
|
2458
2543
|
},
|
|
2459
2544
|
bodyRef(el) {
|
|
2460
2545
|
// For VirtualScroller
|
|
2461
2546
|
const contentRef = this.getVirtualScrollerProp('contentRef');
|
|
2547
|
+
|
|
2462
2548
|
contentRef && contentRef(el);
|
|
2463
2549
|
}
|
|
2464
2550
|
},
|
|
@@ -2466,15 +2552,15 @@ var script$3 = {
|
|
|
2466
2552
|
columnsLength() {
|
|
2467
2553
|
let hiddenColLength = 0;
|
|
2468
2554
|
|
|
2469
|
-
this.columns.forEach(column => {
|
|
2470
|
-
if(this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
2555
|
+
this.columns.forEach((column) => {
|
|
2556
|
+
if (this.columnProp(column, 'hidden')) hiddenColLength++;
|
|
2471
2557
|
});
|
|
2472
2558
|
|
|
2473
2559
|
return this.columns ? this.columns.length - hiddenColLength : 0;
|
|
2474
2560
|
},
|
|
2475
2561
|
rowGroupHeaderStyle() {
|
|
2476
2562
|
if (this.scrollable) {
|
|
2477
|
-
return {top: this.rowGroupHeaderStyleObject.top};
|
|
2563
|
+
return { top: this.rowGroupHeaderStyleObject.top };
|
|
2478
2564
|
}
|
|
2479
2565
|
|
|
2480
2566
|
return null;
|
|
@@ -2484,7 +2570,7 @@ var script$3 = {
|
|
|
2484
2570
|
}
|
|
2485
2571
|
},
|
|
2486
2572
|
components: {
|
|
2487
|
-
|
|
2573
|
+
DTBodyCell: script$4
|
|
2488
2574
|
}
|
|
2489
2575
|
};
|
|
2490
2576
|
|
|
@@ -2542,11 +2628,11 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2542
2628
|
], 8, _hoisted_1$3)
|
|
2543
2629
|
], 4))
|
|
2544
2630
|
: createCommentVNode("", true),
|
|
2545
|
-
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
|
|
2631
|
+
($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData) : true)
|
|
2546
2632
|
? (openBlock(), createElementBlock("tr", {
|
|
2633
|
+
key: $options.getRowKey(rowData, $options.getRowIndex(index)),
|
|
2547
2634
|
class: normalizeClass($options.getRowClass(rowData)),
|
|
2548
2635
|
style: normalizeStyle($props.rowStyle),
|
|
2549
|
-
key: $options.getRowKey(rowData, $options.getRowIndex(index)),
|
|
2550
2636
|
onClick: $event => ($options.onRowClick($event, rowData, $options.getRowIndex(index))),
|
|
2551
2637
|
onDblclick: $event => ($options.onRowDblClick($event, rowData, $options.getRowIndex(index))),
|
|
2552
2638
|
onContextmenu: $event => ($options.onRowRightClick($event, rowData, $options.getRowIndex(index))),
|
|
@@ -2563,7 +2649,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2563
2649
|
}, [
|
|
2564
2650
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
2565
2651
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2566
|
-
key: $options.columnProp(col,'columnKey')
|
|
2652
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2567
2653
|
}, [
|
|
2568
2654
|
($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
|
|
2569
2655
|
? (openBlock(), createBlock(_component_DTBodyCell, {
|
|
@@ -2573,7 +2659,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2573
2659
|
rowIndex: $options.getRowIndex(index),
|
|
2574
2660
|
index: i,
|
|
2575
2661
|
selected: $options.isSelected(rowData),
|
|
2576
|
-
rowTogglerIcon: $options.columnProp(col,'expander') ? $options.rowTogglerIcon(rowData): null,
|
|
2662
|
+
rowTogglerIcon: $options.columnProp(col, 'expander') ? $options.rowTogglerIcon(rowData) : null,
|
|
2577
2663
|
frozenRow: $props.frozenRow,
|
|
2578
2664
|
rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
|
|
2579
2665
|
editMode: $props.editMode,
|
|
@@ -2599,8 +2685,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2599
2685
|
: createCommentVNode("", true),
|
|
2600
2686
|
($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
|
|
2601
2687
|
? (openBlock(), createElementBlock("tr", {
|
|
2602
|
-
class: "p-datatable-row-expansion",
|
|
2603
2688
|
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
|
|
2689
|
+
class: "p-datatable-row-expansion",
|
|
2604
2690
|
role: "row"
|
|
2605
2691
|
}, [
|
|
2606
2692
|
createElementVNode("td", { colspan: $options.columnsLength }, [
|
|
@@ -2613,8 +2699,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2613
2699
|
: createCommentVNode("", true),
|
|
2614
2700
|
($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
|
|
2615
2701
|
? (openBlock(), createElementBlock("tr", {
|
|
2616
|
-
class: "p-rowgroup-footer",
|
|
2617
2702
|
key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
|
|
2703
|
+
class: "p-rowgroup-footer",
|
|
2618
2704
|
role: "row"
|
|
2619
2705
|
}, [
|
|
2620
2706
|
(openBlock(), createBlock(resolveDynamicComponent($props.templates['groupfooter']), {
|
|
@@ -2648,7 +2734,7 @@ var script$2 = {
|
|
|
2648
2734
|
data() {
|
|
2649
2735
|
return {
|
|
2650
2736
|
styleObject: {}
|
|
2651
|
-
}
|
|
2737
|
+
};
|
|
2652
2738
|
},
|
|
2653
2739
|
mounted() {
|
|
2654
2740
|
if (this.columnProp('frozen')) {
|
|
@@ -2667,20 +2753,24 @@ var script$2 = {
|
|
|
2667
2753
|
updateStickyPosition() {
|
|
2668
2754
|
if (this.columnProp('frozen')) {
|
|
2669
2755
|
let align = this.columnProp('alignFrozen');
|
|
2756
|
+
|
|
2670
2757
|
if (align === 'right') {
|
|
2671
2758
|
let right = 0;
|
|
2672
2759
|
let next = this.$el.nextElementSibling;
|
|
2760
|
+
|
|
2673
2761
|
if (next) {
|
|
2674
2762
|
right = DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
|
|
2675
2763
|
}
|
|
2764
|
+
|
|
2676
2765
|
this.styleObject.right = right + 'px';
|
|
2677
|
-
}
|
|
2678
|
-
else {
|
|
2766
|
+
} else {
|
|
2679
2767
|
let left = 0;
|
|
2680
2768
|
let prev = this.$el.previousElementSibling;
|
|
2769
|
+
|
|
2681
2770
|
if (prev) {
|
|
2682
2771
|
left = DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
|
|
2683
2772
|
}
|
|
2773
|
+
|
|
2684
2774
|
this.styleObject.left = left + 'px';
|
|
2685
2775
|
}
|
|
2686
2776
|
}
|
|
@@ -2688,15 +2778,19 @@ var script$2 = {
|
|
|
2688
2778
|
},
|
|
2689
2779
|
computed: {
|
|
2690
2780
|
containerClass() {
|
|
2691
|
-
return [
|
|
2692
|
-
|
|
2693
|
-
|
|
2781
|
+
return [
|
|
2782
|
+
this.columnProp('footerClass'),
|
|
2783
|
+
this.columnProp('class'),
|
|
2784
|
+
{
|
|
2785
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
2786
|
+
}
|
|
2787
|
+
];
|
|
2694
2788
|
},
|
|
2695
2789
|
containerStyle() {
|
|
2696
2790
|
let bodyStyle = this.columnProp('footerStyle');
|
|
2697
2791
|
let columnStyle = this.columnProp('style');
|
|
2698
2792
|
|
|
2699
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
2793
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
2700
2794
|
}
|
|
2701
2795
|
}
|
|
2702
2796
|
};
|
|
@@ -2733,7 +2827,7 @@ var script$1 = {
|
|
|
2733
2827
|
columns: {
|
|
2734
2828
|
type: null,
|
|
2735
2829
|
default: null
|
|
2736
|
-
}
|
|
2830
|
+
}
|
|
2737
2831
|
},
|
|
2738
2832
|
methods: {
|
|
2739
2833
|
columnProp(col, prop) {
|
|
@@ -2743,12 +2837,12 @@ var script$1 = {
|
|
|
2743
2837
|
let rows = [];
|
|
2744
2838
|
|
|
2745
2839
|
let columnGroup = this.columnGroup;
|
|
2840
|
+
|
|
2746
2841
|
if (columnGroup.children && columnGroup.children.default) {
|
|
2747
2842
|
for (let child of columnGroup.children.default()) {
|
|
2748
2843
|
if (child.type.name === 'Row') {
|
|
2749
2844
|
rows.push(child);
|
|
2750
|
-
}
|
|
2751
|
-
else if (child.children && child.children instanceof Array) {
|
|
2845
|
+
} else if (child.children && child.children instanceof Array) {
|
|
2752
2846
|
rows = child.children;
|
|
2753
2847
|
}
|
|
2754
2848
|
}
|
|
@@ -2756,15 +2850,13 @@ var script$1 = {
|
|
|
2756
2850
|
return rows;
|
|
2757
2851
|
}
|
|
2758
2852
|
},
|
|
2759
|
-
getFooterColumns(row){
|
|
2853
|
+
getFooterColumns(row) {
|
|
2760
2854
|
let cols = [];
|
|
2761
2855
|
|
|
2762
2856
|
if (row.children && row.children.default) {
|
|
2763
|
-
row.children.default().forEach(child => {
|
|
2764
|
-
if (child.children && child.children instanceof Array)
|
|
2765
|
-
|
|
2766
|
-
else if (child.type.name === 'Column')
|
|
2767
|
-
cols.push(child);
|
|
2857
|
+
row.children.default().forEach((child) => {
|
|
2858
|
+
if (child.children && child.children instanceof Array) cols = [...cols, ...child.children];
|
|
2859
|
+
else if (child.type.name === 'Column') cols.push(child);
|
|
2768
2860
|
});
|
|
2769
2861
|
|
|
2770
2862
|
return cols;
|
|
@@ -2777,8 +2869,7 @@ var script$1 = {
|
|
|
2777
2869
|
|
|
2778
2870
|
if (this.columnGroup) {
|
|
2779
2871
|
hasFooter = true;
|
|
2780
|
-
}
|
|
2781
|
-
else if (this.columns) {
|
|
2872
|
+
} else if (this.columns) {
|
|
2782
2873
|
for (let col of this.columns) {
|
|
2783
2874
|
if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
|
|
2784
2875
|
hasFooter = true;
|
|
@@ -2791,7 +2882,7 @@ var script$1 = {
|
|
|
2791
2882
|
}
|
|
2792
2883
|
},
|
|
2793
2884
|
components: {
|
|
2794
|
-
|
|
2885
|
+
DTFooterCell: script$2
|
|
2795
2886
|
}
|
|
2796
2887
|
};
|
|
2797
2888
|
|
|
@@ -2814,9 +2905,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2814
2905
|
? (openBlock(), createElementBlock("tr", _hoisted_2$1, [
|
|
2815
2906
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.columns, (col, i) => {
|
|
2816
2907
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2817
|
-
key: $options.columnProp(col,'columnKey')
|
|
2908
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2818
2909
|
}, [
|
|
2819
|
-
(!$options.columnProp(col,'hidden'))
|
|
2910
|
+
(!$options.columnProp(col, 'hidden'))
|
|
2820
2911
|
? (openBlock(), createBlock(_component_DTFooterCell, {
|
|
2821
2912
|
key: 0,
|
|
2822
2913
|
column: col
|
|
@@ -2832,9 +2923,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2832
2923
|
}, [
|
|
2833
2924
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getFooterColumns(row), (col, j) => {
|
|
2834
2925
|
return (openBlock(), createElementBlock(Fragment, {
|
|
2835
|
-
key: $options.columnProp(col,'columnKey')
|
|
2926
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || j
|
|
2836
2927
|
}, [
|
|
2837
|
-
(!$options.columnProp(col,'hidden'))
|
|
2928
|
+
(!$options.columnProp(col, 'hidden'))
|
|
2838
2929
|
? (openBlock(), createBlock(_component_DTFooterCell, {
|
|
2839
2930
|
key: 0,
|
|
2840
2931
|
column: col
|
|
@@ -2852,11 +2943,46 @@ script$1.render = render$1;
|
|
|
2852
2943
|
|
|
2853
2944
|
var script = {
|
|
2854
2945
|
name: 'DataTable',
|
|
2855
|
-
emits: [
|
|
2856
|
-
'
|
|
2857
|
-
'
|
|
2858
|
-
'update:
|
|
2859
|
-
'
|
|
2946
|
+
emits: [
|
|
2947
|
+
'value-change',
|
|
2948
|
+
'update:first',
|
|
2949
|
+
'update:rows',
|
|
2950
|
+
'page',
|
|
2951
|
+
'update:sortField',
|
|
2952
|
+
'update:sortOrder',
|
|
2953
|
+
'update:multiSortMeta',
|
|
2954
|
+
'sort',
|
|
2955
|
+
'filter',
|
|
2956
|
+
'row-click',
|
|
2957
|
+
'row-dblclick',
|
|
2958
|
+
'update:selection',
|
|
2959
|
+
'row-select',
|
|
2960
|
+
'row-unselect',
|
|
2961
|
+
'update:contextMenuSelection',
|
|
2962
|
+
'row-contextmenu',
|
|
2963
|
+
'row-unselect-all',
|
|
2964
|
+
'row-select-all',
|
|
2965
|
+
'select-all-change',
|
|
2966
|
+
'column-resize-end',
|
|
2967
|
+
'column-reorder',
|
|
2968
|
+
'row-reorder',
|
|
2969
|
+
'update:expandedRows',
|
|
2970
|
+
'row-collapse',
|
|
2971
|
+
'row-expand',
|
|
2972
|
+
'update:expandedRowGroups',
|
|
2973
|
+
'rowgroup-collapse',
|
|
2974
|
+
'rowgroup-expand',
|
|
2975
|
+
'update:filters',
|
|
2976
|
+
'state-restore',
|
|
2977
|
+
'state-save',
|
|
2978
|
+
'cell-edit-init',
|
|
2979
|
+
'cell-edit-complete',
|
|
2980
|
+
'cell-edit-cancel',
|
|
2981
|
+
'update:editingRows',
|
|
2982
|
+
'row-edit-init',
|
|
2983
|
+
'row-edit-save',
|
|
2984
|
+
'row-edit-cancel'
|
|
2985
|
+
],
|
|
2860
2986
|
props: {
|
|
2861
2987
|
value: {
|
|
2862
2988
|
type: Array,
|
|
@@ -2959,7 +3085,7 @@ var script = {
|
|
|
2959
3085
|
default: undefined
|
|
2960
3086
|
},
|
|
2961
3087
|
selection: {
|
|
2962
|
-
type: [Array,Object],
|
|
3088
|
+
type: [Array, Object],
|
|
2963
3089
|
default: null
|
|
2964
3090
|
},
|
|
2965
3091
|
selectionMode: {
|
|
@@ -3035,7 +3161,7 @@ var script = {
|
|
|
3035
3161
|
default: null
|
|
3036
3162
|
},
|
|
3037
3163
|
groupRowsBy: {
|
|
3038
|
-
type: [Array,String],
|
|
3164
|
+
type: [Array, String],
|
|
3039
3165
|
default: null
|
|
3040
3166
|
},
|
|
3041
3167
|
expandableRowGroups: {
|
|
@@ -3076,7 +3202,7 @@ var script = {
|
|
|
3076
3202
|
},
|
|
3077
3203
|
scrollDirection: {
|
|
3078
3204
|
type: String,
|
|
3079
|
-
default:
|
|
3205
|
+
default: 'vertical'
|
|
3080
3206
|
},
|
|
3081
3207
|
virtualScrollerOptions: {
|
|
3082
3208
|
type: Object,
|
|
@@ -3184,7 +3310,7 @@ var script = {
|
|
|
3184
3310
|
},
|
|
3185
3311
|
filters: {
|
|
3186
3312
|
deep: true,
|
|
3187
|
-
handler: function(newValue) {
|
|
3313
|
+
handler: function (newValue) {
|
|
3188
3314
|
this.d_filters = this.cloneFilters(newValue);
|
|
3189
3315
|
}
|
|
3190
3316
|
}
|
|
@@ -3234,6 +3360,7 @@ var script = {
|
|
|
3234
3360
|
this.d_rows = event.rows;
|
|
3235
3361
|
|
|
3236
3362
|
let pageEvent = this.createLazyLoadEvent(event);
|
|
3363
|
+
|
|
3237
3364
|
pageEvent.pageCount = event.pageCount;
|
|
3238
3365
|
pageEvent.page = event.page;
|
|
3239
3366
|
|
|
@@ -3250,21 +3377,24 @@ var script = {
|
|
|
3250
3377
|
const targetNode = event.target;
|
|
3251
3378
|
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
3252
3379
|
|
|
3253
|
-
if (
|
|
3254
|
-
|
|
3380
|
+
if (
|
|
3381
|
+
DomHandler.hasClass(targetNode, 'p-sortable-column') ||
|
|
3382
|
+
DomHandler.hasClass(targetNode, 'p-column-title') ||
|
|
3383
|
+
DomHandler.hasClass(targetNode, 'p-column-header-content') ||
|
|
3384
|
+
DomHandler.hasClass(targetNode, 'p-sortable-column-icon') ||
|
|
3385
|
+
DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')
|
|
3386
|
+
) {
|
|
3255
3387
|
DomHandler.clearSelection();
|
|
3256
3388
|
|
|
3257
3389
|
if (this.sortMode === 'single') {
|
|
3258
3390
|
if (this.d_sortField === columnField) {
|
|
3259
|
-
if (this.removableSort &&
|
|
3391
|
+
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
3260
3392
|
this.d_sortOrder = null;
|
|
3261
3393
|
this.d_sortField = null;
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3394
|
+
} else {
|
|
3264
3395
|
this.d_sortOrder = this.d_sortOrder * -1;
|
|
3265
3396
|
}
|
|
3266
|
-
}
|
|
3267
|
-
else {
|
|
3397
|
+
} else {
|
|
3268
3398
|
this.d_sortOrder = this.defaultSortOrder;
|
|
3269
3399
|
this.d_sortField = columnField;
|
|
3270
3400
|
}
|
|
@@ -3272,11 +3402,11 @@ var script = {
|
|
|
3272
3402
|
this.$emit('update:sortField', this.d_sortField);
|
|
3273
3403
|
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
3274
3404
|
this.resetPage();
|
|
3275
|
-
}
|
|
3276
|
-
else if (this.sortMode === 'multiple') {
|
|
3405
|
+
} else if (this.sortMode === 'multiple') {
|
|
3277
3406
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
3407
|
+
|
|
3278
3408
|
if (!metaKey) {
|
|
3279
|
-
this.d_multiSortMeta =
|
|
3409
|
+
this.d_multiSortMeta = this.d_multiSortMeta.filter((meta) => meta.field === columnField);
|
|
3280
3410
|
}
|
|
3281
3411
|
|
|
3282
3412
|
this.addMultiSortField(columnField);
|
|
@@ -3293,8 +3423,8 @@ var script = {
|
|
|
3293
3423
|
|
|
3294
3424
|
if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
|
|
3295
3425
|
this.d_multiSortMeta = [
|
|
3296
|
-
{field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
|
|
3297
|
-
{field: this.d_sortField, order: this.d_sortOrder}
|
|
3426
|
+
{ field: this.sortField, order: this.sortOrder || this.defaultSortOrder },
|
|
3427
|
+
{ field: this.d_sortField, order: this.d_sortOrder }
|
|
3298
3428
|
];
|
|
3299
3429
|
|
|
3300
3430
|
return this.sortMultiple(value);
|
|
@@ -3308,18 +3438,13 @@ var script = {
|
|
|
3308
3438
|
|
|
3309
3439
|
let result = null;
|
|
3310
3440
|
|
|
3311
|
-
if (value1 == null && value2 != null)
|
|
3312
|
-
|
|
3313
|
-
else if (value1
|
|
3314
|
-
|
|
3315
|
-
else
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
3319
|
-
else
|
|
3320
|
-
result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
|
|
3321
|
-
|
|
3322
|
-
return (this.d_sortOrder * result);
|
|
3441
|
+
if (value1 == null && value2 != null) result = -1;
|
|
3442
|
+
else if (value1 != null && value2 == null) result = 1;
|
|
3443
|
+
else if (value1 == null && value2 == null) result = 0;
|
|
3444
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
3445
|
+
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
3446
|
+
|
|
3447
|
+
return this.d_sortOrder * result;
|
|
3323
3448
|
});
|
|
3324
3449
|
|
|
3325
3450
|
return data;
|
|
@@ -3329,6 +3454,7 @@ var script = {
|
|
|
3329
3454
|
|
|
3330
3455
|
if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
|
|
3331
3456
|
const firstSortMeta = this.d_multiSortMeta[0];
|
|
3457
|
+
|
|
3332
3458
|
!this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
|
|
3333
3459
|
|
|
3334
3460
|
if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
|
|
@@ -3350,31 +3476,27 @@ var script = {
|
|
|
3350
3476
|
let result = null;
|
|
3351
3477
|
|
|
3352
3478
|
if (typeof value1 === 'string' || value1 instanceof String) {
|
|
3353
|
-
if (value1.localeCompare &&
|
|
3354
|
-
return
|
|
3479
|
+
if (value1.localeCompare && value1 !== value2) {
|
|
3480
|
+
return this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true });
|
|
3355
3481
|
}
|
|
3356
|
-
}
|
|
3357
|
-
|
|
3358
|
-
result = (value1 < value2) ? -1 : 1;
|
|
3482
|
+
} else {
|
|
3483
|
+
result = value1 < value2 ? -1 : 1;
|
|
3359
3484
|
}
|
|
3360
3485
|
|
|
3361
|
-
if (value1 === value2)
|
|
3362
|
-
return
|
|
3486
|
+
if (value1 === value2) {
|
|
3487
|
+
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(data1, data2, index + 1) : 0;
|
|
3363
3488
|
}
|
|
3364
3489
|
|
|
3365
|
-
return
|
|
3490
|
+
return this.d_multiSortMeta[index].order * result;
|
|
3366
3491
|
},
|
|
3367
3492
|
addMultiSortField(field) {
|
|
3368
|
-
let index =
|
|
3493
|
+
let index = this.d_multiSortMeta.findIndex((meta) => meta.field === field);
|
|
3369
3494
|
|
|
3370
3495
|
if (index >= 0) {
|
|
3371
|
-
if (this.removableSort &&
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
}
|
|
3376
|
-
else {
|
|
3377
|
-
this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
|
|
3496
|
+
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);
|
|
3497
|
+
else this.d_multiSortMeta[index] = { field: field, order: this.d_multiSortMeta[index].order * -1 };
|
|
3498
|
+
} else {
|
|
3499
|
+
this.d_multiSortMeta.push({ field: field, order: this.defaultSortOrder });
|
|
3378
3500
|
}
|
|
3379
3501
|
|
|
3380
3502
|
this.d_multiSortMeta = [...this.d_multiSortMeta];
|
|
@@ -3387,8 +3509,9 @@ var script = {
|
|
|
3387
3509
|
this.clearEditingMetaData();
|
|
3388
3510
|
|
|
3389
3511
|
let globalFilterFieldsArray;
|
|
3512
|
+
|
|
3390
3513
|
if (this.filters['global']) {
|
|
3391
|
-
globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
3514
|
+
globalFilterFieldsArray = this.globalFilterFields || this.columns.map((col) => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
|
|
3392
3515
|
}
|
|
3393
3516
|
|
|
3394
3517
|
let filteredValue = [];
|
|
@@ -3412,8 +3535,7 @@ var script = {
|
|
|
3412
3535
|
break;
|
|
3413
3536
|
}
|
|
3414
3537
|
}
|
|
3415
|
-
}
|
|
3416
|
-
else {
|
|
3538
|
+
} else {
|
|
3417
3539
|
localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
|
|
3418
3540
|
}
|
|
3419
3541
|
|
|
@@ -3424,8 +3546,9 @@ var script = {
|
|
|
3424
3546
|
}
|
|
3425
3547
|
|
|
3426
3548
|
if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
|
|
3427
|
-
for(let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
3549
|
+
for (let j = 0; j < globalFilterFieldsArray.length; j++) {
|
|
3428
3550
|
let globalFilterField = globalFilterFieldsArray[j];
|
|
3551
|
+
|
|
3429
3552
|
globalMatch = FilterService.filters[this.filters['global'].matchMode || FilterMatchMode.CONTAINS](ObjectUtils.resolveFieldData(data[i], globalFilterField), this.filters['global'].value, this.filterLocale);
|
|
3430
3553
|
|
|
3431
3554
|
if (globalMatch) {
|
|
@@ -3435,10 +3558,10 @@ var script = {
|
|
|
3435
3558
|
}
|
|
3436
3559
|
|
|
3437
3560
|
let matches;
|
|
3561
|
+
|
|
3438
3562
|
if (this.filters['global']) {
|
|
3439
|
-
matches = localFiltered ?
|
|
3440
|
-
}
|
|
3441
|
-
else {
|
|
3563
|
+
matches = localFiltered ? localFiltered && localMatch && globalMatch : globalMatch;
|
|
3564
|
+
} else {
|
|
3442
3565
|
matches = localFiltered && localMatch;
|
|
3443
3566
|
}
|
|
3444
3567
|
|
|
@@ -3452,6 +3575,7 @@ var script = {
|
|
|
3452
3575
|
}
|
|
3453
3576
|
|
|
3454
3577
|
let filterEvent = this.createLazyLoadEvent();
|
|
3578
|
+
|
|
3455
3579
|
filterEvent.filteredValue = filteredValue;
|
|
3456
3580
|
this.$emit('filter', filterEvent);
|
|
3457
3581
|
this.$emit('value-change', filteredValue);
|
|
@@ -3468,6 +3592,7 @@ var script = {
|
|
|
3468
3592
|
},
|
|
3469
3593
|
onRowClick(e) {
|
|
3470
3594
|
const event = e.originalEvent;
|
|
3595
|
+
|
|
3471
3596
|
if (DomHandler.isClickable(event.target)) {
|
|
3472
3597
|
return;
|
|
3473
3598
|
}
|
|
@@ -3482,10 +3607,10 @@ var script = {
|
|
|
3482
3607
|
DomHandler.clearSelection();
|
|
3483
3608
|
this.rangeRowIndex = rowIndex;
|
|
3484
3609
|
this.selectRange(event);
|
|
3485
|
-
}
|
|
3486
|
-
else {
|
|
3610
|
+
} else {
|
|
3487
3611
|
const selected = this.isSelected(rowData);
|
|
3488
3612
|
const metaSelection = this.rowTouched ? false : this.metaKeySelection;
|
|
3613
|
+
|
|
3489
3614
|
this.anchorRowIndex = rowIndex;
|
|
3490
3615
|
this.rangeRowIndex = rowIndex;
|
|
3491
3616
|
|
|
@@ -3493,52 +3618,49 @@ var script = {
|
|
|
3493
3618
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
3494
3619
|
|
|
3495
3620
|
if (selected && metaKey) {
|
|
3496
|
-
if(this.isSingleSelectionMode()) {
|
|
3621
|
+
if (this.isSingleSelectionMode()) {
|
|
3497
3622
|
this.$emit('update:selection', null);
|
|
3498
|
-
}
|
|
3499
|
-
else {
|
|
3623
|
+
} else {
|
|
3500
3624
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3501
|
-
const _selection = this.selection.filter((val,i) => i != selectionIndex);
|
|
3625
|
+
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3626
|
+
|
|
3502
3627
|
this.$emit('update:selection', _selection);
|
|
3503
3628
|
}
|
|
3504
3629
|
|
|
3505
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
if(this.isSingleSelectionMode()) {
|
|
3630
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3631
|
+
} else {
|
|
3632
|
+
if (this.isSingleSelectionMode()) {
|
|
3509
3633
|
this.$emit('update:selection', rowData);
|
|
3510
|
-
}
|
|
3511
|
-
|
|
3512
|
-
|
|
3634
|
+
} else if (this.isMultipleSelectionMode()) {
|
|
3635
|
+
let _selection = metaKey ? this.selection || [] : [];
|
|
3636
|
+
|
|
3513
3637
|
_selection = [..._selection, rowData];
|
|
3514
3638
|
this.$emit('update:selection', _selection);
|
|
3515
3639
|
}
|
|
3516
3640
|
|
|
3517
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3641
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3518
3642
|
}
|
|
3519
|
-
}
|
|
3520
|
-
else {
|
|
3643
|
+
} else {
|
|
3521
3644
|
if (this.selectionMode === 'single') {
|
|
3522
3645
|
if (selected) {
|
|
3523
3646
|
this.$emit('update:selection', null);
|
|
3524
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3525
|
-
}
|
|
3526
|
-
else {
|
|
3647
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3648
|
+
} else {
|
|
3527
3649
|
this.$emit('update:selection', rowData);
|
|
3528
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3650
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3529
3651
|
}
|
|
3530
|
-
}
|
|
3531
|
-
else if (this.selectionMode === 'multiple') {
|
|
3652
|
+
} else if (this.selectionMode === 'multiple') {
|
|
3532
3653
|
if (selected) {
|
|
3533
3654
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3534
3655
|
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3656
|
+
|
|
3535
3657
|
this.$emit('update:selection', _selection);
|
|
3536
|
-
this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3537
|
-
}
|
|
3538
|
-
else {
|
|
3658
|
+
this.$emit('row-unselect', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3659
|
+
} else {
|
|
3539
3660
|
const _selection = this.selection ? [...this.selection, rowData] : [rowData];
|
|
3661
|
+
|
|
3540
3662
|
this.$emit('update:selection', _selection);
|
|
3541
|
-
this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
|
|
3663
|
+
this.$emit('row-select', { originalEvent: event, data: rowData, index: rowIndex, type: 'row' });
|
|
3542
3664
|
}
|
|
3543
3665
|
}
|
|
3544
3666
|
}
|
|
@@ -3549,6 +3671,7 @@ var script = {
|
|
|
3549
3671
|
},
|
|
3550
3672
|
onRowDblClick(e) {
|
|
3551
3673
|
const event = e.originalEvent;
|
|
3674
|
+
|
|
3552
3675
|
if (DomHandler.isClickable(event.target)) {
|
|
3553
3676
|
return;
|
|
3554
3677
|
}
|
|
@@ -3577,51 +3700,49 @@ var script = {
|
|
|
3577
3700
|
//down arrow
|
|
3578
3701
|
case 40:
|
|
3579
3702
|
var nextRow = this.findNextSelectableRow(row);
|
|
3703
|
+
|
|
3580
3704
|
if (nextRow) {
|
|
3581
3705
|
nextRow.focus();
|
|
3582
3706
|
}
|
|
3583
3707
|
|
|
3584
3708
|
event.preventDefault();
|
|
3585
|
-
|
|
3709
|
+
break;
|
|
3586
3710
|
|
|
3587
3711
|
//up arrow
|
|
3588
3712
|
case 38:
|
|
3589
3713
|
var prevRow = this.findPrevSelectableRow(row);
|
|
3714
|
+
|
|
3590
3715
|
if (prevRow) {
|
|
3591
3716
|
prevRow.focus();
|
|
3592
3717
|
}
|
|
3593
3718
|
|
|
3594
3719
|
event.preventDefault();
|
|
3595
|
-
|
|
3720
|
+
break;
|
|
3596
3721
|
|
|
3597
3722
|
//enter
|
|
3598
3723
|
case 13:
|
|
3599
|
-
this.onRowClick({originalEvent: event, data: rowData, index: rowIndex});
|
|
3600
|
-
|
|
3724
|
+
this.onRowClick({ originalEvent: event, data: rowData, index: rowIndex });
|
|
3725
|
+
break;
|
|
3601
3726
|
}
|
|
3602
3727
|
}
|
|
3603
3728
|
},
|
|
3604
3729
|
findNextSelectableRow(row) {
|
|
3605
3730
|
let nextRow = row.nextElementSibling;
|
|
3731
|
+
|
|
3606
3732
|
if (nextRow) {
|
|
3607
|
-
if (DomHandler.hasClass(nextRow, 'p-selectable-row'))
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
return this.findNextSelectableRow(nextRow);
|
|
3611
|
-
}
|
|
3612
|
-
else {
|
|
3733
|
+
if (DomHandler.hasClass(nextRow, 'p-selectable-row')) return nextRow;
|
|
3734
|
+
else return this.findNextSelectableRow(nextRow);
|
|
3735
|
+
} else {
|
|
3613
3736
|
return null;
|
|
3614
3737
|
}
|
|
3615
3738
|
},
|
|
3616
3739
|
findPrevSelectableRow(row) {
|
|
3617
3740
|
let prevRow = row.previousElementSibling;
|
|
3741
|
+
|
|
3618
3742
|
if (prevRow) {
|
|
3619
|
-
if (DomHandler.hasClass(prevRow, 'p-selectable-row'))
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
return this.findPrevSelectableRow(prevRow);
|
|
3623
|
-
}
|
|
3624
|
-
else {
|
|
3743
|
+
if (DomHandler.hasClass(prevRow, 'p-selectable-row')) return prevRow;
|
|
3744
|
+
else return this.findPrevSelectableRow(prevRow);
|
|
3745
|
+
} else {
|
|
3625
3746
|
return null;
|
|
3626
3747
|
}
|
|
3627
3748
|
},
|
|
@@ -3631,8 +3752,7 @@ var script = {
|
|
|
3631
3752
|
if (this.isSelected(rowData)) {
|
|
3632
3753
|
this.$emit('update:selection', null);
|
|
3633
3754
|
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
3634
|
-
}
|
|
3635
|
-
else {
|
|
3755
|
+
} else {
|
|
3636
3756
|
this.$emit('update:selection', rowData);
|
|
3637
3757
|
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
|
|
3638
3758
|
}
|
|
@@ -3643,11 +3763,12 @@ var script = {
|
|
|
3643
3763
|
if (this.isSelected(rowData)) {
|
|
3644
3764
|
const selectionIndex = this.findIndexInSelection(rowData);
|
|
3645
3765
|
const _selection = this.selection.filter((val, i) => i != selectionIndex);
|
|
3766
|
+
|
|
3646
3767
|
this.$emit('update:selection', _selection);
|
|
3647
3768
|
this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
3648
|
-
}
|
|
3649
|
-
else {
|
|
3769
|
+
} else {
|
|
3650
3770
|
let _selection = this.selection ? [...this.selection] : [];
|
|
3771
|
+
|
|
3651
3772
|
_selection = [..._selection, rowData];
|
|
3652
3773
|
this.$emit('update:selection', _selection);
|
|
3653
3774
|
this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
|
|
@@ -3656,21 +3777,18 @@ var script = {
|
|
|
3656
3777
|
toggleRowsWithCheckbox(event) {
|
|
3657
3778
|
if (this.selectAll !== null) {
|
|
3658
3779
|
this.$emit('select-all-change', event);
|
|
3659
|
-
}
|
|
3660
|
-
else {
|
|
3780
|
+
} else {
|
|
3661
3781
|
const { originalEvent, checked } = event;
|
|
3662
3782
|
let _selection = [];
|
|
3663
3783
|
|
|
3664
3784
|
if (checked) {
|
|
3665
3785
|
_selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
3666
|
-
this.$emit('row-select-all', {originalEvent, data: _selection});
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
this.$emit('row-unselect-all', {originalEvent});
|
|
3786
|
+
this.$emit('row-select-all', { originalEvent, data: _selection });
|
|
3787
|
+
} else {
|
|
3788
|
+
this.$emit('row-unselect-all', { originalEvent });
|
|
3670
3789
|
}
|
|
3671
3790
|
|
|
3672
3791
|
this.$emit('update:selection', _selection);
|
|
3673
|
-
|
|
3674
3792
|
}
|
|
3675
3793
|
},
|
|
3676
3794
|
isSingleSelectionMode() {
|
|
@@ -3683,12 +3801,9 @@ var script = {
|
|
|
3683
3801
|
if (rowData && this.selection) {
|
|
3684
3802
|
if (this.dataKey) {
|
|
3685
3803
|
return this.d_selectionKeys ? this.d_selectionKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
3686
|
-
}
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
return this.findIndexInSelection(rowData) > -1;
|
|
3690
|
-
else
|
|
3691
|
-
return this.equals(rowData, this.selection);
|
|
3804
|
+
} else {
|
|
3805
|
+
if (this.selection instanceof Array) return this.findIndexInSelection(rowData) > -1;
|
|
3806
|
+
else return this.equals(rowData, this.selection);
|
|
3692
3807
|
}
|
|
3693
3808
|
}
|
|
3694
3809
|
|
|
@@ -3699,6 +3814,7 @@ var script = {
|
|
|
3699
3814
|
},
|
|
3700
3815
|
findIndex(rowData, collection) {
|
|
3701
3816
|
let index = -1;
|
|
3817
|
+
|
|
3702
3818
|
if (collection && collection.length) {
|
|
3703
3819
|
for (let i = 0; i < collection.length; i++) {
|
|
3704
3820
|
if (this.equals(rowData, collection[i])) {
|
|
@@ -3712,39 +3828,39 @@ var script = {
|
|
|
3712
3828
|
},
|
|
3713
3829
|
updateSelectionKeys(selection) {
|
|
3714
3830
|
this.d_selectionKeys = {};
|
|
3831
|
+
|
|
3715
3832
|
if (Array.isArray(selection)) {
|
|
3716
3833
|
for (let data of selection) {
|
|
3717
3834
|
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3718
3835
|
}
|
|
3719
|
-
}
|
|
3720
|
-
else {
|
|
3836
|
+
} else {
|
|
3721
3837
|
this.d_selectionKeys[String(ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
|
|
3722
3838
|
}
|
|
3723
3839
|
},
|
|
3724
3840
|
updateExpandedRowKeys(expandedRows) {
|
|
3725
3841
|
if (expandedRows && expandedRows.length) {
|
|
3726
3842
|
this.d_expandedRowKeys = {};
|
|
3843
|
+
|
|
3727
3844
|
for (let data of expandedRows) {
|
|
3728
3845
|
this.d_expandedRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3729
3846
|
}
|
|
3730
|
-
}
|
|
3731
|
-
else {
|
|
3847
|
+
} else {
|
|
3732
3848
|
this.d_expandedRowKeys = null;
|
|
3733
3849
|
}
|
|
3734
3850
|
},
|
|
3735
3851
|
updateEditingRowKeys(editingRows) {
|
|
3736
3852
|
if (editingRows && editingRows.length) {
|
|
3737
3853
|
this.d_editingRowKeys = {};
|
|
3854
|
+
|
|
3738
3855
|
for (let data of editingRows) {
|
|
3739
3856
|
this.d_editingRowKeys[String(ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
|
|
3740
3857
|
}
|
|
3741
|
-
}
|
|
3742
|
-
else {
|
|
3858
|
+
} else {
|
|
3743
3859
|
this.d_editingRowKeys = null;
|
|
3744
3860
|
}
|
|
3745
3861
|
},
|
|
3746
3862
|
equals(data1, data2) {
|
|
3747
|
-
return this.compareSelectionBy === 'equals' ?
|
|
3863
|
+
return this.compareSelectionBy === 'equals' ? data1 === data2 : ObjectUtils.equals(data1, data2, this.dataKey);
|
|
3748
3864
|
},
|
|
3749
3865
|
selectRange(event) {
|
|
3750
3866
|
let rangeStart, rangeEnd;
|
|
@@ -3752,12 +3868,10 @@ var script = {
|
|
|
3752
3868
|
if (this.rangeRowIndex > this.anchorRowIndex) {
|
|
3753
3869
|
rangeStart = this.anchorRowIndex;
|
|
3754
3870
|
rangeEnd = this.rangeRowIndex;
|
|
3755
|
-
}
|
|
3756
|
-
else if(this.rangeRowIndex < this.anchorRowIndex) {
|
|
3871
|
+
} else if (this.rangeRowIndex < this.anchorRowIndex) {
|
|
3757
3872
|
rangeStart = this.rangeRowIndex;
|
|
3758
3873
|
rangeEnd = this.anchorRowIndex;
|
|
3759
|
-
}
|
|
3760
|
-
else {
|
|
3874
|
+
} else {
|
|
3761
3875
|
rangeStart = this.rangeRowIndex;
|
|
3762
3876
|
rangeEnd = this.rangeRowIndex;
|
|
3763
3877
|
}
|
|
@@ -3769,10 +3883,12 @@ var script = {
|
|
|
3769
3883
|
|
|
3770
3884
|
const value = this.processedData;
|
|
3771
3885
|
let _selection = [];
|
|
3772
|
-
|
|
3886
|
+
|
|
3887
|
+
for (let i = rangeStart; i <= rangeEnd; i++) {
|
|
3773
3888
|
let rangeRowData = value[i];
|
|
3889
|
+
|
|
3774
3890
|
_selection.push(rangeRowData);
|
|
3775
|
-
this.$emit('row-select', {originalEvent: event, data: rangeRowData, type: 'row'});
|
|
3891
|
+
this.$emit('row-select', { originalEvent: event, data: rangeRowData, type: 'row' });
|
|
3776
3892
|
}
|
|
3777
3893
|
|
|
3778
3894
|
this.$emit('update:selection', _selection);
|
|
@@ -3783,22 +3899,19 @@ var script = {
|
|
|
3783
3899
|
if (!data) {
|
|
3784
3900
|
data = this.processedData;
|
|
3785
3901
|
|
|
3786
|
-
if (options && options.selectionOnly)
|
|
3787
|
-
|
|
3788
|
-
else if (this.frozenValue)
|
|
3789
|
-
data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
3902
|
+
if (options && options.selectionOnly) data = this.selection || [];
|
|
3903
|
+
else if (this.frozenValue) data = data ? [...this.frozenValue, ...data] : this.frozenValue;
|
|
3790
3904
|
}
|
|
3791
3905
|
|
|
3792
3906
|
//headers
|
|
3793
3907
|
let headerInitiated = false;
|
|
3908
|
+
|
|
3794
3909
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3795
3910
|
let column = this.columns[i];
|
|
3796
3911
|
|
|
3797
3912
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3798
|
-
if (headerInitiated)
|
|
3799
|
-
|
|
3800
|
-
else
|
|
3801
|
-
headerInitiated = true;
|
|
3913
|
+
if (headerInitiated) csv += this.csvSeparator;
|
|
3914
|
+
else headerInitiated = true;
|
|
3802
3915
|
|
|
3803
3916
|
csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
|
|
3804
3917
|
}
|
|
@@ -3806,16 +3919,16 @@ var script = {
|
|
|
3806
3919
|
|
|
3807
3920
|
//body
|
|
3808
3921
|
if (data) {
|
|
3809
|
-
data.forEach(record => {
|
|
3922
|
+
data.forEach((record) => {
|
|
3810
3923
|
csv += '\n';
|
|
3811
3924
|
let rowInitiated = false;
|
|
3925
|
+
|
|
3812
3926
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3813
3927
|
let column = this.columns[i];
|
|
3928
|
+
|
|
3814
3929
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3815
|
-
if (rowInitiated)
|
|
3816
|
-
|
|
3817
|
-
else
|
|
3818
|
-
rowInitiated = true;
|
|
3930
|
+
if (rowInitiated) csv += this.csvSeparator;
|
|
3931
|
+
else rowInitiated = true;
|
|
3819
3932
|
|
|
3820
3933
|
let cellData = ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
|
|
3821
3934
|
|
|
@@ -3825,12 +3938,8 @@ var script = {
|
|
|
3825
3938
|
data: cellData,
|
|
3826
3939
|
field: this.columnProp(column, 'field')
|
|
3827
3940
|
});
|
|
3828
|
-
}
|
|
3829
|
-
|
|
3830
|
-
cellData = String(cellData).replace(/"/g, '""');
|
|
3831
|
-
}
|
|
3832
|
-
else
|
|
3833
|
-
cellData = '';
|
|
3941
|
+
} else cellData = String(cellData).replace(/"/g, '""');
|
|
3942
|
+
} else cellData = '';
|
|
3834
3943
|
|
|
3835
3944
|
csv += '"' + cellData + '"';
|
|
3836
3945
|
}
|
|
@@ -3838,19 +3947,17 @@ var script = {
|
|
|
3838
3947
|
});
|
|
3839
3948
|
}
|
|
3840
3949
|
|
|
3841
|
-
|
|
3842
3950
|
//footers
|
|
3843
3951
|
let footerInitiated = false;
|
|
3952
|
+
|
|
3844
3953
|
for (let i = 0; i < this.columns.length; i++) {
|
|
3845
3954
|
let column = this.columns[i];
|
|
3846
3955
|
|
|
3847
3956
|
if (i === 0) csv += '\n';
|
|
3848
3957
|
|
|
3849
3958
|
if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
|
|
3850
|
-
if (footerInitiated)
|
|
3851
|
-
|
|
3852
|
-
else
|
|
3853
|
-
footerInitiated = true;
|
|
3959
|
+
if (footerInitiated) csv += this.csvSeparator;
|
|
3960
|
+
else footerInitiated = true;
|
|
3854
3961
|
|
|
3855
3962
|
csv += '"' + (this.columnProp(column, 'exportFooter') || this.columnProp(column, 'footer') || this.columnProp(column, 'field')) + '"';
|
|
3856
3963
|
}
|
|
@@ -3864,18 +3971,20 @@ var script = {
|
|
|
3864
3971
|
},
|
|
3865
3972
|
onColumnResizeStart(event) {
|
|
3866
3973
|
let containerLeft = DomHandler.getOffset(this.$el).left;
|
|
3974
|
+
|
|
3867
3975
|
this.resizeColumnElement = event.target.parentElement;
|
|
3868
3976
|
this.columnResizing = true;
|
|
3869
|
-
this.lastResizeHelperX =
|
|
3977
|
+
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
3870
3978
|
|
|
3871
3979
|
this.bindColumnResizeEvents();
|
|
3872
3980
|
},
|
|
3873
3981
|
onColumnResize(event) {
|
|
3874
3982
|
let containerLeft = DomHandler.getOffset(this.$el).left;
|
|
3983
|
+
|
|
3875
3984
|
DomHandler.addClass(this.$el, 'p-unselectable-text');
|
|
3876
3985
|
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
3877
3986
|
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
3878
|
-
this.$refs.resizeHelper.style.left =
|
|
3987
|
+
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
3879
3988
|
|
|
3880
3989
|
this.$refs.resizeHelper.style.display = 'block';
|
|
3881
3990
|
},
|
|
@@ -3883,7 +3992,7 @@ var script = {
|
|
|
3883
3992
|
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
3884
3993
|
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
3885
3994
|
let newColumnWidth = columnWidth + delta;
|
|
3886
|
-
let minWidth = this.resizeColumnElement.style.minWidth||15;
|
|
3995
|
+
let minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
3887
3996
|
|
|
3888
3997
|
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
3889
3998
|
if (this.columnResizeMode === 'fit') {
|
|
@@ -3893,9 +4002,9 @@ var script = {
|
|
|
3893
4002
|
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
3894
4003
|
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
3895
4004
|
}
|
|
3896
|
-
}
|
|
3897
|
-
else if (this.columnResizeMode === 'expand') {
|
|
4005
|
+
} else if (this.columnResizeMode === 'expand') {
|
|
3898
4006
|
const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
|
|
4007
|
+
|
|
3899
4008
|
const updateTableWidth = (el) => {
|
|
3900
4009
|
!!el && (el.style.width = el.style.minWidth = tableWidth);
|
|
3901
4010
|
};
|
|
@@ -3933,15 +4042,18 @@ var script = {
|
|
|
3933
4042
|
let colIndex = DomHandler.index(this.resizeColumnElement);
|
|
3934
4043
|
let widths = [];
|
|
3935
4044
|
let headers = DomHandler.find(this.$refs.table, '.p-datatable-thead > tr > th');
|
|
3936
|
-
|
|
4045
|
+
|
|
4046
|
+
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
3937
4047
|
|
|
3938
4048
|
this.destroyStyleElement();
|
|
3939
4049
|
this.createStyleElement();
|
|
3940
4050
|
|
|
3941
4051
|
let innerHTML = '';
|
|
4052
|
+
|
|
3942
4053
|
widths.forEach((width, index) => {
|
|
3943
|
-
let colWidth = index === colIndex ? newColumnWidth :
|
|
4054
|
+
let colWidth = index === colIndex ? newColumnWidth : nextColumnWidth && index === colIndex + 1 ? nextColumnWidth : width;
|
|
3944
4055
|
let style = this.scrollable ? `flex: 1 1 ${colWidth}px !important` : `width: ${colWidth}px !important`;
|
|
4056
|
+
|
|
3945
4057
|
innerHTML += `
|
|
3946
4058
|
.p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
3947
4059
|
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
@@ -3956,7 +4068,7 @@ var script = {
|
|
|
3956
4068
|
bindColumnResizeEvents() {
|
|
3957
4069
|
if (!this.documentColumnResizeListener) {
|
|
3958
4070
|
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
|
|
3959
|
-
if(this.columnResizing) {
|
|
4071
|
+
if (this.columnResizing) {
|
|
3960
4072
|
this.onColumnResize(event);
|
|
3961
4073
|
}
|
|
3962
4074
|
});
|
|
@@ -3964,13 +4076,12 @@ var script = {
|
|
|
3964
4076
|
|
|
3965
4077
|
if (!this.documentColumnResizeEndListener) {
|
|
3966
4078
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
|
|
3967
|
-
if(this.columnResizing) {
|
|
4079
|
+
if (this.columnResizing) {
|
|
3968
4080
|
this.columnResizing = false;
|
|
3969
4081
|
this.onColumnResizeEnd();
|
|
3970
4082
|
}
|
|
3971
4083
|
});
|
|
3972
4084
|
}
|
|
3973
|
-
|
|
3974
4085
|
},
|
|
3975
4086
|
unbindColumnResizeEvents() {
|
|
3976
4087
|
if (this.documentColumnResizeListener) {
|
|
@@ -3988,15 +4099,14 @@ var script = {
|
|
|
3988
4099
|
const column = e.column;
|
|
3989
4100
|
|
|
3990
4101
|
if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
|
|
3991
|
-
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer'))
|
|
3992
|
-
|
|
3993
|
-
else
|
|
3994
|
-
event.currentTarget.draggable = true;
|
|
4102
|
+
if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || DomHandler.hasClass(event.target, 'p-column-resizer')) event.currentTarget.draggable = false;
|
|
4103
|
+
else event.currentTarget.draggable = true;
|
|
3995
4104
|
}
|
|
3996
4105
|
},
|
|
3997
4106
|
onColumnHeaderDragStart(event) {
|
|
3998
4107
|
if (this.columnResizing) {
|
|
3999
4108
|
event.preventDefault();
|
|
4109
|
+
|
|
4000
4110
|
return;
|
|
4001
4111
|
}
|
|
4002
4112
|
|
|
@@ -4008,26 +4118,26 @@ var script = {
|
|
|
4008
4118
|
},
|
|
4009
4119
|
onColumnHeaderDragOver(event) {
|
|
4010
4120
|
let dropHeader = this.findParentHeader(event.target);
|
|
4011
|
-
|
|
4121
|
+
|
|
4122
|
+
if (this.reorderableColumns && this.draggedColumn && dropHeader) {
|
|
4012
4123
|
event.preventDefault();
|
|
4013
4124
|
let containerOffset = DomHandler.getOffset(this.$el);
|
|
4014
4125
|
let dropHeaderOffset = DomHandler.getOffset(dropHeader);
|
|
4015
4126
|
|
|
4016
4127
|
if (this.draggedColumn !== dropHeader) {
|
|
4017
|
-
let targetLeft =
|
|
4128
|
+
let targetLeft = dropHeaderOffset.left - containerOffset.left;
|
|
4018
4129
|
let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
|
|
4019
4130
|
|
|
4020
4131
|
this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
|
|
4021
4132
|
this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
|
|
4022
4133
|
|
|
4023
|
-
if(event.pageX > columnCenter) {
|
|
4024
|
-
this.$refs.reorderIndicatorUp.style.left =
|
|
4025
|
-
this.$refs.reorderIndicatorDown.style.left =
|
|
4134
|
+
if (event.pageX > columnCenter) {
|
|
4135
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4136
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4026
4137
|
this.dropPosition = 1;
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
this.$refs.
|
|
4030
|
-
this.$refs.reorderIndicatorDown.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
|
|
4138
|
+
} else {
|
|
4139
|
+
this.$refs.reorderIndicatorUp.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4140
|
+
this.$refs.reorderIndicatorDown.style.left = targetLeft - Math.ceil(this.colReorderIconWidth / 2) + 'px';
|
|
4031
4141
|
this.dropPosition = -1;
|
|
4032
4142
|
}
|
|
4033
4143
|
|
|
@@ -4037,7 +4147,7 @@ var script = {
|
|
|
4037
4147
|
}
|
|
4038
4148
|
},
|
|
4039
4149
|
onColumnHeaderDragLeave(event) {
|
|
4040
|
-
if(this.reorderableColumns && this.draggedColumn) {
|
|
4150
|
+
if (this.reorderableColumns && this.draggedColumn) {
|
|
4041
4151
|
event.preventDefault();
|
|
4042
4152
|
this.$refs.reorderIndicatorUp.style.display = 'none';
|
|
4043
4153
|
this.$refs.reorderIndicatorDown.style.display = 'none';
|
|
@@ -4045,10 +4155,12 @@ var script = {
|
|
|
4045
4155
|
},
|
|
4046
4156
|
onColumnHeaderDrop(event) {
|
|
4047
4157
|
event.preventDefault();
|
|
4158
|
+
|
|
4048
4159
|
if (this.draggedColumn) {
|
|
4049
4160
|
let dragIndex = DomHandler.index(this.draggedColumn);
|
|
4050
4161
|
let dropIndex = DomHandler.index(this.findParentHeader(event.target));
|
|
4051
|
-
let allowDrop =
|
|
4162
|
+
let allowDrop = dragIndex !== dropIndex;
|
|
4163
|
+
|
|
4052
4164
|
if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dropIndex - dragIndex === -1 && this.dropPosition === 1))) {
|
|
4053
4165
|
allowDrop = false;
|
|
4054
4166
|
}
|
|
@@ -4072,15 +4184,16 @@ var script = {
|
|
|
4072
4184
|
}
|
|
4073
4185
|
},
|
|
4074
4186
|
findParentHeader(element) {
|
|
4075
|
-
if(element.nodeName === 'TH') {
|
|
4187
|
+
if (element.nodeName === 'TH') {
|
|
4076
4188
|
return element;
|
|
4077
|
-
}
|
|
4078
|
-
else {
|
|
4189
|
+
} else {
|
|
4079
4190
|
let parent = element.parentElement;
|
|
4080
|
-
|
|
4191
|
+
|
|
4192
|
+
while (parent.nodeName !== 'TH') {
|
|
4081
4193
|
parent = parent.parentElement;
|
|
4082
4194
|
if (!parent) break;
|
|
4083
4195
|
}
|
|
4196
|
+
|
|
4084
4197
|
return parent;
|
|
4085
4198
|
}
|
|
4086
4199
|
},
|
|
@@ -4088,6 +4201,7 @@ var script = {
|
|
|
4088
4201
|
if (columns && columns.length) {
|
|
4089
4202
|
for (let i = 0; i < columns.length; i++) {
|
|
4090
4203
|
let column = columns[i];
|
|
4204
|
+
|
|
4091
4205
|
if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
|
|
4092
4206
|
return column;
|
|
4093
4207
|
}
|
|
@@ -4097,17 +4211,16 @@ var script = {
|
|
|
4097
4211
|
return null;
|
|
4098
4212
|
},
|
|
4099
4213
|
onRowMouseDown(event) {
|
|
4100
|
-
if (DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle'))
|
|
4101
|
-
|
|
4102
|
-
else
|
|
4103
|
-
event.currentTarget.draggable = false;
|
|
4214
|
+
if (DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle')) event.currentTarget.draggable = true;
|
|
4215
|
+
else event.currentTarget.draggable = false;
|
|
4104
4216
|
},
|
|
4105
4217
|
onRowDragStart(e) {
|
|
4106
4218
|
const event = e.originalEvent;
|
|
4107
4219
|
const index = e.index;
|
|
4220
|
+
|
|
4108
4221
|
this.rowDragging = true;
|
|
4109
4222
|
this.draggedRowIndex = index;
|
|
4110
|
-
event.dataTransfer.setData('text', 'b');
|
|
4223
|
+
event.dataTransfer.setData('text', 'b'); // For firefox
|
|
4111
4224
|
},
|
|
4112
4225
|
onRowDragOver(e) {
|
|
4113
4226
|
const event = e.originalEvent;
|
|
@@ -4124,16 +4237,11 @@ var script = {
|
|
|
4124
4237
|
DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
4125
4238
|
|
|
4126
4239
|
this.droppedRowIndex = index;
|
|
4127
|
-
if (prevRowElement)
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
else {
|
|
4133
|
-
if (prevRowElement)
|
|
4134
|
-
DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4135
|
-
else
|
|
4136
|
-
DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4240
|
+
if (prevRowElement) DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4241
|
+
else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4242
|
+
} else {
|
|
4243
|
+
if (prevRowElement) DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4244
|
+
else DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
|
|
4137
4245
|
|
|
4138
4246
|
this.droppedRowIndex = index + 1;
|
|
4139
4247
|
DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
|
|
@@ -4145,6 +4253,7 @@ var script = {
|
|
|
4145
4253
|
onRowDragLeave(event) {
|
|
4146
4254
|
let rowElement = event.currentTarget;
|
|
4147
4255
|
let prevRowElement = rowElement.previousElementSibling;
|
|
4256
|
+
|
|
4148
4257
|
if (prevRowElement) {
|
|
4149
4258
|
DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
|
|
4150
4259
|
}
|
|
@@ -4160,8 +4269,9 @@ var script = {
|
|
|
4160
4269
|
},
|
|
4161
4270
|
onRowDrop(event) {
|
|
4162
4271
|
if (this.droppedRowIndex != null) {
|
|
4163
|
-
let dropIndex =
|
|
4272
|
+
let dropIndex = this.draggedRowIndex > this.droppedRowIndex ? this.droppedRowIndex : this.droppedRowIndex === 0 ? 0 : this.droppedRowIndex - 1;
|
|
4164
4273
|
let processedData = [...this.processedData];
|
|
4274
|
+
|
|
4165
4275
|
ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
|
|
4166
4276
|
|
|
4167
4277
|
this.$emit('row-reorder', {
|
|
@@ -4185,8 +4295,7 @@ var script = {
|
|
|
4185
4295
|
|
|
4186
4296
|
if (this.dataKey) {
|
|
4187
4297
|
expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
|
|
4188
|
-
}
|
|
4189
|
-
else {
|
|
4298
|
+
} else {
|
|
4190
4299
|
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
4191
4300
|
expanded = expandedRowIndex > -1;
|
|
4192
4301
|
}
|
|
@@ -4195,11 +4304,11 @@ var script = {
|
|
|
4195
4304
|
if (expandedRowIndex == null) {
|
|
4196
4305
|
expandedRowIndex = this.findIndex(rowData, this.expandedRows);
|
|
4197
4306
|
}
|
|
4307
|
+
|
|
4198
4308
|
_expandedRows.splice(expandedRowIndex, 1);
|
|
4199
4309
|
this.$emit('update:expandedRows', _expandedRows);
|
|
4200
4310
|
this.$emit('row-collapse', event);
|
|
4201
|
-
}
|
|
4202
|
-
else {
|
|
4311
|
+
} else {
|
|
4203
4312
|
_expandedRows.push(rowData);
|
|
4204
4313
|
this.$emit('update:expandedRows', _expandedRows);
|
|
4205
4314
|
this.$emit('row-expand', event);
|
|
@@ -4212,28 +4321,29 @@ var script = {
|
|
|
4212
4321
|
let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
|
|
4213
4322
|
|
|
4214
4323
|
if (this.isRowGroupExpanded(data)) {
|
|
4215
|
-
_expandedRowGroups = _expandedRowGroups.filter(group => group !== groupFieldValue);
|
|
4324
|
+
_expandedRowGroups = _expandedRowGroups.filter((group) => group !== groupFieldValue);
|
|
4216
4325
|
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
4217
|
-
this.$emit('rowgroup-collapse', {originalEvent: event, data: groupFieldValue});
|
|
4218
|
-
}
|
|
4219
|
-
else {
|
|
4326
|
+
this.$emit('rowgroup-collapse', { originalEvent: event, data: groupFieldValue });
|
|
4327
|
+
} else {
|
|
4220
4328
|
_expandedRowGroups.push(groupFieldValue);
|
|
4221
4329
|
this.$emit('update:expandedRowGroups', _expandedRowGroups);
|
|
4222
|
-
this.$emit('rowgroup-expand', {originalEvent: event, data: groupFieldValue});
|
|
4330
|
+
this.$emit('rowgroup-expand', { originalEvent: event, data: groupFieldValue });
|
|
4223
4331
|
}
|
|
4224
4332
|
},
|
|
4225
4333
|
isRowGroupExpanded(rowData) {
|
|
4226
4334
|
if (this.expandableRowGroups && this.expandedRowGroups) {
|
|
4227
4335
|
let groupFieldValue = ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
|
|
4336
|
+
|
|
4228
4337
|
return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
|
|
4229
4338
|
}
|
|
4339
|
+
|
|
4230
4340
|
return false;
|
|
4231
4341
|
},
|
|
4232
4342
|
isStateful() {
|
|
4233
4343
|
return this.stateKey != null;
|
|
4234
4344
|
},
|
|
4235
4345
|
getStorage() {
|
|
4236
|
-
switch(this.stateStorage) {
|
|
4346
|
+
switch (this.stateStorage) {
|
|
4237
4347
|
case 'local':
|
|
4238
4348
|
return window.localStorage;
|
|
4239
4349
|
|
|
@@ -4298,8 +4408,9 @@ var script = {
|
|
|
4298
4408
|
const storage = this.getStorage();
|
|
4299
4409
|
const stateString = storage.getItem(this.stateKey);
|
|
4300
4410
|
const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
|
|
4301
|
-
|
|
4302
|
-
|
|
4411
|
+
|
|
4412
|
+
const reviver = function (key, value) {
|
|
4413
|
+
if (typeof value === 'string' && dateFormat.test(value)) {
|
|
4303
4414
|
return new Date(value);
|
|
4304
4415
|
}
|
|
4305
4416
|
|
|
@@ -4356,7 +4467,8 @@ var script = {
|
|
|
4356
4467
|
saveColumnWidths(state) {
|
|
4357
4468
|
let widths = [];
|
|
4358
4469
|
let headers = DomHandler.find(this.$el, '.p-datatable-thead > tr > th');
|
|
4359
|
-
|
|
4470
|
+
|
|
4471
|
+
headers.forEach((header) => widths.push(DomHandler.getOuterWidth(header)));
|
|
4360
4472
|
state.columnWidths = widths.join(',');
|
|
4361
4473
|
|
|
4362
4474
|
if (this.columnResizeMode === 'expand') {
|
|
@@ -4377,8 +4489,10 @@ var script = {
|
|
|
4377
4489
|
this.createStyleElement();
|
|
4378
4490
|
|
|
4379
4491
|
let innerHTML = '';
|
|
4492
|
+
|
|
4380
4493
|
widths.forEach((width, index) => {
|
|
4381
4494
|
let style = this.scrollable ? `flex: 1 1 ${width}px !important` : `width: ${width}px !important`;
|
|
4495
|
+
|
|
4382
4496
|
innerHTML += `
|
|
4383
4497
|
.p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
|
|
4384
4498
|
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
|
|
@@ -4403,18 +4517,21 @@ var script = {
|
|
|
4403
4517
|
},
|
|
4404
4518
|
onRowEditInit(event) {
|
|
4405
4519
|
let _editingRows = this.editingRows ? [...this.editingRows] : [];
|
|
4520
|
+
|
|
4406
4521
|
_editingRows.push(event.data);
|
|
4407
4522
|
this.$emit('update:editingRows', _editingRows);
|
|
4408
4523
|
this.$emit('row-edit-init', event);
|
|
4409
4524
|
},
|
|
4410
4525
|
onRowEditSave(event) {
|
|
4411
4526
|
let _editingRows = [...this.editingRows];
|
|
4527
|
+
|
|
4412
4528
|
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
4413
4529
|
this.$emit('update:editingRows', _editingRows);
|
|
4414
4530
|
this.$emit('row-edit-save', event);
|
|
4415
4531
|
},
|
|
4416
4532
|
onRowEditCancel(event) {
|
|
4417
4533
|
let _editingRows = [...this.editingRows];
|
|
4534
|
+
|
|
4418
4535
|
_editingRows.splice(this.findIndex(event.data, _editingRows), 1);
|
|
4419
4536
|
this.$emit('update:editingRows', _editingRows);
|
|
4420
4537
|
this.$emit('row-edit-cancel', event);
|
|
@@ -4427,10 +4544,10 @@ var script = {
|
|
|
4427
4544
|
if (editing) {
|
|
4428
4545
|
!meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
|
|
4429
4546
|
meta['fields'].push(field);
|
|
4430
|
-
}
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
!fields.length ?
|
|
4547
|
+
} else if (meta) {
|
|
4548
|
+
const fields = meta['fields'].filter((f) => f !== field);
|
|
4549
|
+
|
|
4550
|
+
!fields.length ? delete editingMeta[index] : (meta['fields'] = fields);
|
|
4434
4551
|
}
|
|
4435
4552
|
|
|
4436
4553
|
this.d_editingMeta = editingMeta;
|
|
@@ -4471,9 +4588,17 @@ var script = {
|
|
|
4471
4588
|
},
|
|
4472
4589
|
cloneFilters() {
|
|
4473
4590
|
let cloned = {};
|
|
4591
|
+
|
|
4474
4592
|
if (this.filters) {
|
|
4475
|
-
Object.entries(this.filters).forEach(([prop,value]) => {
|
|
4476
|
-
cloned[prop] = value.operator
|
|
4593
|
+
Object.entries(this.filters).forEach(([prop, value]) => {
|
|
4594
|
+
cloned[prop] = value.operator
|
|
4595
|
+
? {
|
|
4596
|
+
operator: value.operator,
|
|
4597
|
+
constraints: value.constraints.map((constraint) => {
|
|
4598
|
+
return { ...constraint };
|
|
4599
|
+
})
|
|
4600
|
+
}
|
|
4601
|
+
: { ...value };
|
|
4477
4602
|
});
|
|
4478
4603
|
}
|
|
4479
4604
|
|
|
@@ -4481,7 +4606,8 @@ var script = {
|
|
|
4481
4606
|
},
|
|
4482
4607
|
updateReorderableColumns() {
|
|
4483
4608
|
let columnOrder = [];
|
|
4484
|
-
|
|
4609
|
+
|
|
4610
|
+
this.columns.forEach((col) => columnOrder.push(this.columnProp(col, 'columnKey') || this.columnProp(col, 'field')));
|
|
4485
4611
|
this.d_columnOrder = columnOrder;
|
|
4486
4612
|
},
|
|
4487
4613
|
createStyleElement() {
|
|
@@ -4490,10 +4616,10 @@ var script = {
|
|
|
4490
4616
|
document.head.appendChild(this.styleElement);
|
|
4491
4617
|
},
|
|
4492
4618
|
createResponsiveStyle() {
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4619
|
+
if (!this.responsiveStyleElement) {
|
|
4620
|
+
this.responsiveStyleElement = document.createElement('style');
|
|
4621
|
+
this.responsiveStyleElement.type = 'text/css';
|
|
4622
|
+
document.head.appendChild(this.responsiveStyleElement);
|
|
4497
4623
|
|
|
4498
4624
|
let innerHTML = `
|
|
4499
4625
|
@media screen and (max-width: ${this.breakpoint}) {
|
|
@@ -4526,8 +4652,8 @@ var script = {
|
|
|
4526
4652
|
`;
|
|
4527
4653
|
|
|
4528
4654
|
this.responsiveStyleElement.innerHTML = innerHTML;
|
|
4529
|
-
|
|
4530
|
-
|
|
4655
|
+
}
|
|
4656
|
+
},
|
|
4531
4657
|
destroyResponsiveStyle() {
|
|
4532
4658
|
if (this.responsiveStyleElement) {
|
|
4533
4659
|
document.head.removeChild(this.responsiveStyleElement);
|
|
@@ -4544,6 +4670,7 @@ var script = {
|
|
|
4544
4670
|
if (!results) {
|
|
4545
4671
|
results = [];
|
|
4546
4672
|
}
|
|
4673
|
+
|
|
4547
4674
|
if (children && children.length) {
|
|
4548
4675
|
children.forEach((child) => {
|
|
4549
4676
|
if (child.children instanceof Array) {
|
|
@@ -4553,6 +4680,7 @@ var script = {
|
|
|
4553
4680
|
}
|
|
4554
4681
|
});
|
|
4555
4682
|
}
|
|
4683
|
+
|
|
4556
4684
|
return results;
|
|
4557
4685
|
},
|
|
4558
4686
|
dataToRender(data) {
|
|
@@ -4560,6 +4688,7 @@ var script = {
|
|
|
4560
4688
|
|
|
4561
4689
|
if (_data && this.paginator) {
|
|
4562
4690
|
const first = this.lazy ? 0 : this.d_first;
|
|
4691
|
+
|
|
4563
4692
|
return _data.slice(first, first + this.d_rows);
|
|
4564
4693
|
}
|
|
4565
4694
|
|
|
@@ -4572,8 +4701,9 @@ var script = {
|
|
|
4572
4701
|
computed: {
|
|
4573
4702
|
containerClass() {
|
|
4574
4703
|
return [
|
|
4575
|
-
'p-datatable p-component',
|
|
4576
|
-
|
|
4704
|
+
'p-datatable p-component',
|
|
4705
|
+
{
|
|
4706
|
+
'p-datatable-hoverable-rows': this.rowHover || this.selectionMode,
|
|
4577
4707
|
'p-datatable-auto-layout': this.autoLayout,
|
|
4578
4708
|
'p-datatable-resizable': this.resizableColumns,
|
|
4579
4709
|
'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
|
|
@@ -4581,7 +4711,7 @@ var script = {
|
|
|
4581
4711
|
'p-datatable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
|
|
4582
4712
|
'p-datatable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
|
|
4583
4713
|
'p-datatable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
|
|
4584
|
-
'p-datatable-flex-scrollable':
|
|
4714
|
+
'p-datatable-flex-scrollable': this.scrollable && this.scrollHeight === 'flex',
|
|
4585
4715
|
'p-datatable-responsive-stack': this.responsiveLayout === 'stack',
|
|
4586
4716
|
'p-datatable-responsive-scroll': this.responsiveLayout === 'scroll',
|
|
4587
4717
|
'p-datatable-striped': this.stripedRows,
|
|
@@ -4602,8 +4732,10 @@ var script = {
|
|
|
4602
4732
|
|
|
4603
4733
|
if (this.reorderableColumns && this.d_columnOrder) {
|
|
4604
4734
|
let orderedColumns = [];
|
|
4735
|
+
|
|
4605
4736
|
for (let columnKey of this.d_columnOrder) {
|
|
4606
4737
|
let column = this.findColumnByKey(cols, columnKey);
|
|
4738
|
+
|
|
4607
4739
|
if (column && !this.columnProp(column, 'hidden')) {
|
|
4608
4740
|
orderedColumns.push(column);
|
|
4609
4741
|
}
|
|
@@ -4616,6 +4748,7 @@ var script = {
|
|
|
4616
4748
|
},
|
|
4617
4749
|
headerColumnGroup() {
|
|
4618
4750
|
const children = this.getChildren();
|
|
4751
|
+
|
|
4619
4752
|
if (children) {
|
|
4620
4753
|
for (let child of children) {
|
|
4621
4754
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
|
|
@@ -4628,6 +4761,7 @@ var script = {
|
|
|
4628
4761
|
},
|
|
4629
4762
|
footerColumnGroup() {
|
|
4630
4763
|
const children = this.getChildren();
|
|
4764
|
+
|
|
4631
4765
|
if (children) {
|
|
4632
4766
|
for (let child of children) {
|
|
4633
4767
|
if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
|
|
@@ -4651,10 +4785,8 @@ var script = {
|
|
|
4651
4785
|
}
|
|
4652
4786
|
|
|
4653
4787
|
if (this.sorted) {
|
|
4654
|
-
if(this.sortMode === 'single')
|
|
4655
|
-
|
|
4656
|
-
else if(this.sortMode === 'multiple')
|
|
4657
|
-
data = this.sortMultiple(data);
|
|
4788
|
+
if (this.sortMode === 'single') data = this.sortSingle(data);
|
|
4789
|
+
else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
|
|
4658
4790
|
}
|
|
4659
4791
|
}
|
|
4660
4792
|
}
|
|
@@ -4664,15 +4796,16 @@ var script = {
|
|
|
4664
4796
|
totalRecordsLength() {
|
|
4665
4797
|
if (this.lazy) {
|
|
4666
4798
|
return this.totalRecords;
|
|
4667
|
-
}
|
|
4668
|
-
else {
|
|
4799
|
+
} else {
|
|
4669
4800
|
const data = this.processedData;
|
|
4801
|
+
|
|
4670
4802
|
return data ? data.length : 0;
|
|
4671
4803
|
}
|
|
4672
4804
|
},
|
|
4673
4805
|
empty() {
|
|
4674
4806
|
const data = this.processedData;
|
|
4675
|
-
|
|
4807
|
+
|
|
4808
|
+
return !data || data.length === 0;
|
|
4676
4809
|
},
|
|
4677
4810
|
paginatorTop() {
|
|
4678
4811
|
return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
|
|
@@ -4689,28 +4822,28 @@ var script = {
|
|
|
4689
4822
|
allRowsSelected() {
|
|
4690
4823
|
if (this.selectAll !== null) {
|
|
4691
4824
|
return this.selectAll;
|
|
4692
|
-
}
|
|
4693
|
-
else {
|
|
4825
|
+
} else {
|
|
4694
4826
|
const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
|
|
4695
|
-
|
|
4827
|
+
|
|
4828
|
+
return ObjectUtils.isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every((v) => this.selection.some((s) => this.equals(s, v)));
|
|
4696
4829
|
}
|
|
4697
4830
|
},
|
|
4698
4831
|
attributeSelector() {
|
|
4699
4832
|
return UniqueComponentId();
|
|
4700
4833
|
},
|
|
4701
4834
|
groupRowSortField() {
|
|
4702
|
-
return this.sortMode === 'single' ? this.sortField :
|
|
4835
|
+
return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null;
|
|
4703
4836
|
},
|
|
4704
4837
|
virtualScrollerDisabled() {
|
|
4705
4838
|
return ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
|
|
4706
4839
|
}
|
|
4707
4840
|
},
|
|
4708
4841
|
components: {
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4842
|
+
DTPaginator: Paginator,
|
|
4843
|
+
DTTableHeader: script$7,
|
|
4844
|
+
DTTableBody: script$3,
|
|
4845
|
+
DTTableFooter: script$1,
|
|
4846
|
+
DTVirtualScroller: VirtualScroller
|
|
4714
4847
|
}
|
|
4715
4848
|
};
|
|
4716
4849
|
|
|
@@ -4790,7 +4923,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4790
4923
|
name: "start",
|
|
4791
4924
|
fn: withCtx(() => [
|
|
4792
4925
|
renderSlot(_ctx.$slots, "paginatorstart")
|
|
4793
|
-
])
|
|
4926
|
+
]),
|
|
4927
|
+
key: "0"
|
|
4794
4928
|
}
|
|
4795
4929
|
: undefined,
|
|
4796
4930
|
(_ctx.$slots.paginatorend)
|
|
@@ -4798,7 +4932,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4798
4932
|
name: "end",
|
|
4799
4933
|
fn: withCtx(() => [
|
|
4800
4934
|
renderSlot(_ctx.$slots, "paginatorend")
|
|
4801
|
-
])
|
|
4935
|
+
]),
|
|
4936
|
+
key: "1"
|
|
4802
4937
|
}
|
|
4803
4938
|
: undefined
|
|
4804
4939
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
@@ -4990,7 +5125,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4990
5125
|
name: "start",
|
|
4991
5126
|
fn: withCtx(() => [
|
|
4992
5127
|
renderSlot(_ctx.$slots, "paginatorstart")
|
|
4993
|
-
])
|
|
5128
|
+
]),
|
|
5129
|
+
key: "0"
|
|
4994
5130
|
}
|
|
4995
5131
|
: undefined,
|
|
4996
5132
|
(_ctx.$slots.paginatorend)
|
|
@@ -4998,7 +5134,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4998
5134
|
name: "end",
|
|
4999
5135
|
fn: withCtx(() => [
|
|
5000
5136
|
renderSlot(_ctx.$slots, "paginatorend")
|
|
5001
|
-
])
|
|
5137
|
+
]),
|
|
5138
|
+
key: "1"
|
|
5002
5139
|
}
|
|
5003
5140
|
: undefined
|
|
5004
5141
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
@@ -5045,7 +5182,7 @@ function styleInject(css, ref) {
|
|
|
5045
5182
|
}
|
|
5046
5183
|
}
|
|
5047
5184
|
|
|
5048
|
-
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
|
|
5185
|
+
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";
|
|
5049
5186
|
styleInject(css_248z);
|
|
5050
5187
|
|
|
5051
5188
|
script.render = render;
|