primevue 3.16.2 → 3.18.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/LICENSE.md +1 -1
- package/README.md +2 -1
- package/accordion/Accordion.d.ts +23 -5
- package/accordion/Accordion.vue +196 -79
- package/accordion/accordion.cjs.js +204 -98
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +202 -100
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +205 -100
- 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 +321 -313
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +321 -313
- package/api/api.esm.min.js +1 -1
- package/api/api.js +321 -313
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +32 -17
- package/autocomplete/AutoComplete.vue +252 -131
- package/autocomplete/autocomplete.cjs.js +163 -118
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +161 -116
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +162 -117
- 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 +14 -7
- package/breadcrumb/Breadcrumb.vue +16 -7
- package/breadcrumb/BreadcrumbItem.vue +24 -15
- package/breadcrumb/breadcrumb.cjs.js +39 -25
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +39 -25
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +39 -25
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/Button.d.ts +10 -7
- package/button/Button.vue +28 -17
- package/button/button.cjs.js +25 -14
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +25 -14
- package/button/button.esm.min.js +1 -1
- package/button/button.js +25 -14
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +14 -14
- package/calendar/Calendar.vue +856 -601
- package/calendar/calendar.cjs.js +714 -614
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +712 -612
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +713 -613
- 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 +29 -14
- package/cascadeselect/CascadeSelect.vue +197 -102
- package/cascadeselect/CascadeSelectSub.vue +50 -15
- package/cascadeselect/cascadeselect.cjs.js +185 -111
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +184 -110
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +185 -111
- 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 +8 -3
- package/config/config.cjs.js +18 -30
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +18 -30
- package/config/config.esm.min.js +1 -1
- package/config/config.js +19 -31
- 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 +43 -5
- package/contextmenu/ContextMenu.vue +449 -38
- package/contextmenu/ContextMenuSub.vue +134 -101
- package/contextmenu/contextmenu.cjs.js +639 -206
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +640 -207
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +640 -207
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +2984 -2116
- package/core/core.min.js +16 -16
- package/datatable/BodyCell.vue +93 -75
- package/datatable/ColumnFilter.vue +137 -86
- package/datatable/DataTable.d.ts +25 -26
- package/datatable/DataTable.vue +472 -298
- 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 +2674 -2537
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +2676 -2539
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +2676 -2539
- 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 +36 -6
- package/dock/Dock.vue +21 -5
- package/dock/DockSub.vue +229 -55
- package/dock/dock.cjs.js +284 -106
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +284 -106
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +285 -108
- package/dock/dock.min.js +1 -1
- package/dropdown/Dropdown.d.ts +46 -17
- package/dropdown/Dropdown.vue +271 -129
- package/dropdown/dropdown.cjs.js +213 -132
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +212 -131
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +212 -131
- 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/FileContent.vue +51 -0
- package/fileupload/FileUpload.d.ts +32 -12
- package/fileupload/FileUpload.vue +122 -102
- package/fileupload/fileupload.cjs.js +265 -160
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +265 -160
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +265 -160
- 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 +108 -92
- package/galleria/galleria.cjs.js +181 -153
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +181 -153
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +181 -153
- 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 +12 -10
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +12 -10
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +12 -10
- package/inlinemessage/inlinemessage.min.js +1 -1
- 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 +247 -180
- package/inputnumber/inputnumber.cjs.js +219 -175
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +218 -174
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +219 -176
- 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 +22 -13
- package/listbox/Listbox.vue +149 -98
- package/listbox/listbox.cjs.js +121 -106
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +122 -107
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +121 -106
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +32 -6
- package/megamenu/MegaMenu.vue +510 -238
- package/megamenu/MegaMenuSub.vue +231 -0
- package/megamenu/megamenu.cjs.js +837 -391
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +839 -393
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +837 -391
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +28 -8
- package/menu/Menu.vue +204 -34
- package/menu/Menuitem.vue +48 -38
- package/menu/menu.cjs.js +325 -137
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +325 -137
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +325 -137
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +19 -8
- package/menubar/Menubar.vue +536 -26
- package/menubar/MenubarSub.vue +123 -239
- package/menubar/menubar.cjs.js +708 -335
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +710 -337
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +708 -335
- 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 +46 -16
- package/multiselect/MultiSelect.vue +266 -156
- package/multiselect/multiselect.cjs.js +239 -167
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +238 -166
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +238 -166
- 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 +3 -3
- 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 +7 -7
- package/paginator/Paginator.vue +144 -49
- package/paginator/PrevPageLink.vue +11 -8
- package/paginator/RowsPerPageDropdown.vue +7 -6
- package/paginator/paginator.cjs.js +373 -259
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +374 -260
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +651 -538
- 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 +37 -6
- package/panelmenu/PanelMenu.vue +202 -88
- package/panelmenu/PanelMenuList.vue +335 -0
- package/panelmenu/PanelMenuSub.vue +130 -80
- package/panelmenu/panelmenu.cjs.js +1385 -283
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1382 -284
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1385 -284
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/Password.d.ts +12 -7
- package/password/Password.vue +158 -80
- package/password/password.cjs.js +140 -78
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +139 -77
- package/password/password.esm.min.js +1 -1
- package/password/password.js +140 -78
- 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/primevue.css +21 -2
- package/resources/primevue.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +340 -282
- package/resources/themes/arya-green/theme.css +340 -282
- package/resources/themes/arya-orange/theme.css +340 -282
- package/resources/themes/arya-purple/theme.css +340 -282
- package/resources/themes/bootstrap4-dark-blue/theme.css +356 -298
- package/resources/themes/bootstrap4-dark-purple/theme.css +356 -298
- package/resources/themes/bootstrap4-light-blue/theme.css +369 -311
- package/resources/themes/bootstrap4-light-purple/theme.css +369 -311
- package/resources/themes/fluent-light/theme.css +350 -292
- package/resources/themes/lara-dark-blue/theme.css +343 -285
- package/resources/themes/lara-dark-indigo/theme.css +343 -285
- package/resources/themes/lara-dark-purple/theme.css +343 -285
- package/resources/themes/lara-dark-teal/theme.css +343 -285
- package/resources/themes/lara-light-blue/theme.css +367 -309
- package/resources/themes/lara-light-indigo/theme.css +367 -309
- package/resources/themes/lara-light-purple/theme.css +367 -309
- package/resources/themes/lara-light-teal/theme.css +367 -309
- package/resources/themes/luna-amber/theme.css +372 -314
- package/resources/themes/luna-blue/theme.css +372 -314
- package/resources/themes/luna-green/theme.css +372 -314
- package/resources/themes/luna-pink/theme.css +372 -314
- package/resources/themes/md-dark-deeppurple/theme.css +413 -318
- package/resources/themes/md-dark-indigo/theme.css +413 -318
- package/resources/themes/md-light-deeppurple/theme.css +413 -318
- package/resources/themes/md-light-indigo/theme.css +413 -318
- package/resources/themes/mdc-dark-deeppurple/theme.css +413 -318
- package/resources/themes/mdc-dark-indigo/theme.css +413 -318
- package/resources/themes/mdc-light-deeppurple/theme.css +413 -318
- package/resources/themes/mdc-light-indigo/theme.css +413 -318
- package/resources/themes/nova/theme.css +336 -278
- package/resources/themes/nova-accent/theme.css +335 -277
- package/resources/themes/nova-alt/theme.css +336 -278
- package/resources/themes/nova-vue/theme.css +336 -278
- package/resources/themes/rhea/theme.css +335 -277
- package/resources/themes/saga-blue/theme.css +347 -289
- package/resources/themes/saga-green/theme.css +347 -289
- package/resources/themes/saga-orange/theme.css +347 -289
- package/resources/themes/saga-purple/theme.css +347 -289
- package/resources/themes/tailwind-light/theme.css +359 -301
- package/resources/themes/vela-blue/theme.css +347 -289
- package/resources/themes/vela-green/theme.css +347 -289
- package/resources/themes/vela-orange/theme.css +347 -289
- package/resources/themes/vela-purple/theme.css +347 -289
- package/ripple/ripple.cjs.js +19 -1
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +19 -1
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +19 -1
- package/ripple/ripple.min.js +1 -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 +66 -46
- package/speeddial/speeddial.cjs.js +77 -62
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +77 -62
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +77 -62
- package/speeddial/speeddial.min.js +1 -1
- 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 +137 -30
- package/steps/steps.cjs.js +135 -36
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +136 -37
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +135 -36
- package/steps/steps.min.js +1 -1
- package/styleclass/styleclass.cjs.js +20 -22
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +20 -22
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +20 -22
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/TabMenu.d.ts +13 -5
- package/tabmenu/TabMenu.vue +176 -36
- package/tabmenu/tabmenu.cjs.js +173 -42
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +173 -42
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +174 -43
- 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 +295 -132
- 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 +296 -133
- 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 +48 -6
- package/tieredmenu/TieredMenu.vue +500 -58
- package/tieredmenu/TieredMenuSub.vue +126 -208
- package/tieredmenu/tieredmenu.cjs.js +684 -338
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +685 -339
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +685 -339
- 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 +40 -31
- package/toast/ToastMessage.vue +29 -20
- package/toast/toast.cjs.js +56 -38
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +55 -37
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +56 -38
- 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 +82 -23
- package/togglebutton/togglebutton.cjs.js +66 -18
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +66 -18
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +66 -18
- 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 +15 -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 +10 -5
- package/utils/utils.cjs.js +209 -156
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +209 -156
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +209 -156
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +335 -3
- package/vetur-tags.json +112 -19
- 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 +1183 -73
package/treetable/treetable.js
CHANGED
|
@@ -9,7 +9,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
9
9
|
|
|
10
10
|
var script$4 = {
|
|
11
11
|
name: 'BodyCell',
|
|
12
|
-
emits: ['node-toggle','checkbox-toggle'],
|
|
12
|
+
emits: ['node-toggle', 'checkbox-toggle'],
|
|
13
13
|
props: {
|
|
14
14
|
node: {
|
|
15
15
|
type: Object,
|
|
@@ -52,7 +52,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
52
52
|
return {
|
|
53
53
|
styleObject: {},
|
|
54
54
|
checkboxFocused: false
|
|
55
|
-
}
|
|
55
|
+
};
|
|
56
56
|
},
|
|
57
57
|
mounted() {
|
|
58
58
|
if (this.columnProp('frozen')) {
|
|
@@ -74,20 +74,24 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
74
74
|
updateStickyPosition() {
|
|
75
75
|
if (this.columnProp('frozen')) {
|
|
76
76
|
let align = this.columnProp('alignFrozen');
|
|
77
|
+
|
|
77
78
|
if (align === 'right') {
|
|
78
79
|
let right = 0;
|
|
79
80
|
let next = this.$el.nextElementSibling;
|
|
81
|
+
|
|
80
82
|
if (next) {
|
|
81
83
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
82
84
|
}
|
|
85
|
+
|
|
83
86
|
this.styleObject.right = right + 'px';
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
87
|
+
} else {
|
|
86
88
|
let left = 0;
|
|
87
89
|
let prev = this.$el.previousElementSibling;
|
|
90
|
+
|
|
88
91
|
if (prev) {
|
|
89
92
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
90
93
|
}
|
|
94
|
+
|
|
91
95
|
this.styleObject.left = left + 'px';
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -107,15 +111,19 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
107
111
|
},
|
|
108
112
|
computed: {
|
|
109
113
|
containerClass() {
|
|
110
|
-
return [
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
return [
|
|
115
|
+
this.columnProp('bodyClass'),
|
|
116
|
+
this.columnProp('class'),
|
|
117
|
+
{
|
|
118
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
119
|
+
}
|
|
120
|
+
];
|
|
113
121
|
},
|
|
114
122
|
containerStyle() {
|
|
115
123
|
let bodyStyle = this.columnProp('bodyStyle');
|
|
116
124
|
let columnStyle = this.columnProp('style');
|
|
117
125
|
|
|
118
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
126
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
119
127
|
},
|
|
120
128
|
togglerStyle() {
|
|
121
129
|
return {
|
|
@@ -124,20 +132,20 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
124
132
|
};
|
|
125
133
|
},
|
|
126
134
|
togglerIcon() {
|
|
127
|
-
return ['p-treetable-toggler-icon pi', {'pi-chevron-right': !this.expanded, 'pi-chevron-down': this.expanded}];
|
|
135
|
+
return ['p-treetable-toggler-icon pi', { 'pi-chevron-right': !this.expanded, 'pi-chevron-down': this.expanded }];
|
|
128
136
|
},
|
|
129
137
|
checkboxSelectionMode() {
|
|
130
138
|
return this.selectionMode === 'checkbox';
|
|
131
139
|
},
|
|
132
140
|
checkboxClass() {
|
|
133
|
-
return ['p-checkbox-box', {'p-highlight': this.checked, 'p-focus': this.checkboxFocused, 'p-indeterminate': this.partialChecked}];
|
|
141
|
+
return ['p-checkbox-box', { 'p-highlight': this.checked, 'p-focus': this.checkboxFocused, 'p-indeterminate': this.partialChecked }];
|
|
134
142
|
},
|
|
135
143
|
checkboxIcon() {
|
|
136
|
-
return ['p-checkbox-icon', {'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked}];
|
|
144
|
+
return ['p-checkbox-icon', { 'pi pi-check': this.checked, 'pi pi-minus': this.partialChecked }];
|
|
137
145
|
}
|
|
138
146
|
},
|
|
139
147
|
directives: {
|
|
140
|
-
|
|
148
|
+
ripple: Ripple__default["default"]
|
|
141
149
|
}
|
|
142
150
|
};
|
|
143
151
|
|
|
@@ -171,7 +179,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
171
179
|
($options.checkboxSelectionMode && $options.columnProp('expander'))
|
|
172
180
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
173
181
|
key: 1,
|
|
174
|
-
class: vue.normalizeClass(['p-checkbox p-treetable-checkbox p-component', {'p-checkbox-focused': $data.checkboxFocused}]),
|
|
182
|
+
class: vue.normalizeClass(['p-checkbox p-treetable-checkbox p-component', { 'p-checkbox-focused': $data.checkboxFocused }]),
|
|
175
183
|
onClick: _cache[3] || (_cache[3] = (...args) => ($options.toggleCheckbox && $options.toggleCheckbox(...args))),
|
|
176
184
|
role: "checkbox",
|
|
177
185
|
"aria-checked": $props.checked
|
|
@@ -207,7 +215,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
207
215
|
|
|
208
216
|
var script$3 = {
|
|
209
217
|
name: 'TreeTableRow',
|
|
210
|
-
emits: ['node-click', 'node-toggle', 'checkbox-change','nodeClick', 'nodeToggle', 'checkboxChange'],
|
|
218
|
+
emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'],
|
|
211
219
|
props: {
|
|
212
220
|
node: {
|
|
213
221
|
type: null,
|
|
@@ -251,16 +259,15 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
251
259
|
this.$emit('node-toggle', this.node);
|
|
252
260
|
},
|
|
253
261
|
onClick(event) {
|
|
254
|
-
if (utils.DomHandler.isClickable(event.target) ||
|
|
255
|
-
utils.DomHandler.hasClass(event.target, 'p-treetable-toggler') || utils.DomHandler.hasClass(event.target.parentElement, 'p-treetable-toggler')) {
|
|
262
|
+
if (utils.DomHandler.isClickable(event.target) || utils.DomHandler.hasClass(event.target, 'p-treetable-toggler') || utils.DomHandler.hasClass(event.target.parentElement, 'p-treetable-toggler')) {
|
|
256
263
|
return;
|
|
257
264
|
}
|
|
258
265
|
|
|
259
266
|
this.$emit('node-click', {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
267
|
+
originalEvent: event,
|
|
268
|
+
nodeTouched: this.nodeTouched,
|
|
269
|
+
node: this.node
|
|
270
|
+
});
|
|
264
271
|
|
|
265
272
|
this.nodeTouched = false;
|
|
266
273
|
},
|
|
@@ -275,6 +282,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
275
282
|
//down arrow
|
|
276
283
|
case 40: {
|
|
277
284
|
const nextRow = rowElement.nextElementSibling;
|
|
285
|
+
|
|
278
286
|
if (nextRow) {
|
|
279
287
|
nextRow.focus();
|
|
280
288
|
}
|
|
@@ -286,6 +294,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
286
294
|
//up arrow
|
|
287
295
|
case 38: {
|
|
288
296
|
const previousRow = rowElement.previousElementSibling;
|
|
297
|
+
|
|
289
298
|
if (previousRow) {
|
|
290
299
|
previousRow.focus();
|
|
291
300
|
}
|
|
@@ -296,11 +305,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
296
305
|
|
|
297
306
|
//right-left arrows
|
|
298
307
|
case 37:
|
|
308
|
+
|
|
299
309
|
case 39: {
|
|
300
310
|
if (!this.leaf) {
|
|
301
311
|
this.$emit('node-toggle', this.node);
|
|
302
312
|
event.preventDefault();
|
|
303
313
|
}
|
|
314
|
+
|
|
304
315
|
break;
|
|
305
316
|
}
|
|
306
317
|
|
|
@@ -314,7 +325,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
314
325
|
}
|
|
315
326
|
},
|
|
316
327
|
toggleCheckbox() {
|
|
317
|
-
let _selectionKeys = this.selectionKeys ? {...this.selectionKeys} : {};
|
|
328
|
+
let _selectionKeys = this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
318
329
|
const _check = !this.checked;
|
|
319
330
|
|
|
320
331
|
this.propagateDown(this.node, _check, _selectionKeys);
|
|
@@ -326,10 +337,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
326
337
|
});
|
|
327
338
|
},
|
|
328
339
|
propagateDown(node, check, selectionKeys) {
|
|
329
|
-
if (check)
|
|
330
|
-
|
|
331
|
-
else
|
|
332
|
-
delete selectionKeys[node.key];
|
|
340
|
+
if (check) selectionKeys[node.key] = { checked: true, partialChecked: false };
|
|
341
|
+
else delete selectionKeys[node.key];
|
|
333
342
|
|
|
334
343
|
if (node.children && node.children.length) {
|
|
335
344
|
for (let child of node.children) {
|
|
@@ -339,29 +348,24 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
339
348
|
},
|
|
340
349
|
propagateUp(event) {
|
|
341
350
|
let check = event.check;
|
|
342
|
-
let _selectionKeys = {...event.selectionKeys};
|
|
351
|
+
let _selectionKeys = { ...event.selectionKeys };
|
|
343
352
|
let checkedChildCount = 0;
|
|
344
353
|
let childPartialSelected = false;
|
|
345
354
|
|
|
346
|
-
for(let child of this.node.children) {
|
|
347
|
-
if(_selectionKeys[child.key] && _selectionKeys[child.key].checked)
|
|
348
|
-
|
|
349
|
-
else if(_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked)
|
|
350
|
-
childPartialSelected = true;
|
|
355
|
+
for (let child of this.node.children) {
|
|
356
|
+
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;
|
|
357
|
+
else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
351
358
|
}
|
|
352
359
|
|
|
353
|
-
if(check && checkedChildCount === this.node.children.length) {
|
|
354
|
-
_selectionKeys[this.node.key] = {checked: true, partialChecked: false};
|
|
355
|
-
}
|
|
356
|
-
else {
|
|
360
|
+
if (check && checkedChildCount === this.node.children.length) {
|
|
361
|
+
_selectionKeys[this.node.key] = { checked: true, partialChecked: false };
|
|
362
|
+
} else {
|
|
357
363
|
if (!check) {
|
|
358
364
|
delete _selectionKeys[this.node.key];
|
|
359
365
|
}
|
|
360
366
|
|
|
361
|
-
if(childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length))
|
|
362
|
-
|
|
363
|
-
else
|
|
364
|
-
_selectionKeys[this.node.key] = {checked: false, partialChecked: false};
|
|
367
|
+
if (childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length)) _selectionKeys[this.node.key] = { checked: false, partialChecked: true };
|
|
368
|
+
else _selectionKeys[this.node.key] = { checked: false, partialChecked: false };
|
|
365
369
|
}
|
|
366
370
|
|
|
367
371
|
this.$emit('checkbox-change', {
|
|
@@ -372,29 +376,24 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
372
376
|
},
|
|
373
377
|
onCheckboxChange(event) {
|
|
374
378
|
let check = event.check;
|
|
375
|
-
let _selectionKeys = {...event.selectionKeys};
|
|
379
|
+
let _selectionKeys = { ...event.selectionKeys };
|
|
376
380
|
let checkedChildCount = 0;
|
|
377
381
|
let childPartialSelected = false;
|
|
378
382
|
|
|
379
|
-
for(let child of this.node.children) {
|
|
380
|
-
if(_selectionKeys[child.key] && _selectionKeys[child.key].checked)
|
|
381
|
-
|
|
382
|
-
else if(_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked)
|
|
383
|
-
childPartialSelected = true;
|
|
383
|
+
for (let child of this.node.children) {
|
|
384
|
+
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;
|
|
385
|
+
else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
384
386
|
}
|
|
385
387
|
|
|
386
|
-
if(check && checkedChildCount === this.node.children.length) {
|
|
387
|
-
_selectionKeys[this.node.key] = {checked: true, partialChecked: false};
|
|
388
|
-
}
|
|
389
|
-
else {
|
|
388
|
+
if (check && checkedChildCount === this.node.children.length) {
|
|
389
|
+
_selectionKeys[this.node.key] = { checked: true, partialChecked: false };
|
|
390
|
+
} else {
|
|
390
391
|
if (!check) {
|
|
391
392
|
delete _selectionKeys[this.node.key];
|
|
392
393
|
}
|
|
393
394
|
|
|
394
|
-
if(childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length))
|
|
395
|
-
|
|
396
|
-
else
|
|
397
|
-
_selectionKeys[this.node.key] = {checked: false, partialChecked: false};
|
|
395
|
+
if (childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length)) _selectionKeys[this.node.key] = { checked: false, partialChecked: true };
|
|
396
|
+
else _selectionKeys[this.node.key] = { checked: false, partialChecked: false };
|
|
398
397
|
}
|
|
399
398
|
|
|
400
399
|
this.$emit('checkbox-change', {
|
|
@@ -406,9 +405,12 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
406
405
|
},
|
|
407
406
|
computed: {
|
|
408
407
|
containerClass() {
|
|
409
|
-
return [
|
|
410
|
-
|
|
411
|
-
|
|
408
|
+
return [
|
|
409
|
+
this.node.styleClass,
|
|
410
|
+
{
|
|
411
|
+
'p-highlight': this.selected
|
|
412
|
+
}
|
|
413
|
+
];
|
|
412
414
|
},
|
|
413
415
|
hasChildren() {
|
|
414
416
|
return this.node.children && this.node.children.length > 0;
|
|
@@ -420,20 +422,20 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
420
422
|
return this.node.leaf === false ? false : !(this.node.children && this.node.children.length);
|
|
421
423
|
},
|
|
422
424
|
selected() {
|
|
423
|
-
return
|
|
425
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[this.node.key] === true : false;
|
|
424
426
|
},
|
|
425
427
|
childLevel() {
|
|
426
428
|
return this.level + 1;
|
|
427
429
|
},
|
|
428
430
|
checked() {
|
|
429
|
-
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].checked: false;
|
|
431
|
+
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].checked : false;
|
|
430
432
|
},
|
|
431
433
|
partialChecked() {
|
|
432
|
-
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].partialChecked: false;
|
|
434
|
+
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].partialChecked : false;
|
|
433
435
|
}
|
|
434
436
|
},
|
|
435
437
|
components: {
|
|
436
|
-
|
|
438
|
+
TTBodyCell: script$4
|
|
437
439
|
}
|
|
438
440
|
};
|
|
439
441
|
|
|
@@ -452,7 +454,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
452
454
|
}, [
|
|
453
455
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, (col, i) => {
|
|
454
456
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
455
|
-
key: $options.columnProp(col, 'columnKey')
|
|
457
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
456
458
|
}, [
|
|
457
459
|
(!$options.columnProp(col, 'hidden'))
|
|
458
460
|
? (vue.openBlock(), vue.createBlock(_component_TTBodyCell, {
|
|
@@ -498,7 +500,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
498
500
|
|
|
499
501
|
var script$2 = {
|
|
500
502
|
name: 'HeaderCell',
|
|
501
|
-
emits: ['column-click','column-resizestart'],
|
|
503
|
+
emits: ['column-click', 'column-resizestart'],
|
|
502
504
|
props: {
|
|
503
505
|
column: {
|
|
504
506
|
type: Object,
|
|
@@ -528,7 +530,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
528
530
|
data() {
|
|
529
531
|
return {
|
|
530
532
|
styleObject: {}
|
|
531
|
-
}
|
|
533
|
+
};
|
|
532
534
|
},
|
|
533
535
|
mounted() {
|
|
534
536
|
if (this.columnProp('frozen')) {
|
|
@@ -547,37 +549,43 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
547
549
|
updateStickyPosition() {
|
|
548
550
|
if (this.columnProp('frozen')) {
|
|
549
551
|
let align = this.columnProp('alignFrozen');
|
|
552
|
+
|
|
550
553
|
if (align === 'right') {
|
|
551
554
|
let right = 0;
|
|
552
555
|
let next = this.$el.nextElementSibling;
|
|
556
|
+
|
|
553
557
|
if (next) {
|
|
554
558
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
555
559
|
}
|
|
560
|
+
|
|
556
561
|
this.styleObject.right = right + 'px';
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
562
|
+
} else {
|
|
559
563
|
let left = 0;
|
|
560
564
|
let prev = this.$el.previousElementSibling;
|
|
565
|
+
|
|
561
566
|
if (prev) {
|
|
562
567
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
563
568
|
}
|
|
569
|
+
|
|
564
570
|
this.styleObject.left = left + 'px';
|
|
565
571
|
}
|
|
566
572
|
|
|
567
573
|
let filterRow = this.$el.parentElement.nextElementSibling;
|
|
574
|
+
|
|
568
575
|
if (filterRow) {
|
|
569
576
|
let index = utils.DomHandler.index(this.$el);
|
|
577
|
+
|
|
570
578
|
filterRow.children[index].style.left = this.styleObject.left;
|
|
571
579
|
filterRow.children[index].style.right = this.styleObject.right;
|
|
572
580
|
}
|
|
573
581
|
}
|
|
574
582
|
},
|
|
575
583
|
onClick(event) {
|
|
576
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
584
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
577
585
|
},
|
|
578
586
|
onKeyDown(event) {
|
|
579
587
|
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && utils.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
580
|
-
this.$emit('column-click', {originalEvent: event, column: this.column});
|
|
588
|
+
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
581
589
|
}
|
|
582
590
|
},
|
|
583
591
|
onResizeStart(event) {
|
|
@@ -588,6 +596,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
588
596
|
|
|
589
597
|
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
590
598
|
let meta = this.multiSortMeta[i];
|
|
599
|
+
|
|
591
600
|
if (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')) {
|
|
592
601
|
index = i;
|
|
593
602
|
break;
|
|
@@ -597,26 +606,30 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
597
606
|
return index;
|
|
598
607
|
},
|
|
599
608
|
isMultiSorted() {
|
|
600
|
-
return this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
|
|
609
|
+
return this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1;
|
|
601
610
|
},
|
|
602
611
|
isColumnSorted() {
|
|
603
|
-
return this.sortMode === 'single' ?
|
|
612
|
+
return this.sortMode === 'single' ? this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField')) : this.isMultiSorted();
|
|
604
613
|
}
|
|
605
614
|
},
|
|
606
615
|
computed: {
|
|
607
616
|
containerClass() {
|
|
608
|
-
return [
|
|
609
|
-
|
|
610
|
-
'
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
617
|
+
return [
|
|
618
|
+
this.columnProp('headerClass'),
|
|
619
|
+
this.columnProp('class'),
|
|
620
|
+
{
|
|
621
|
+
'p-sortable-column': this.columnProp('sortable'),
|
|
622
|
+
'p-resizable-column': this.resizableColumns,
|
|
623
|
+
'p-highlight': this.isColumnSorted(),
|
|
624
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
625
|
+
}
|
|
626
|
+
];
|
|
614
627
|
},
|
|
615
628
|
containerStyle() {
|
|
616
629
|
let headerStyle = this.columnProp('headerStyle');
|
|
617
630
|
let columnStyle = this.columnProp('style');
|
|
618
631
|
|
|
619
|
-
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
|
|
632
|
+
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject] : [columnStyle, headerStyle];
|
|
620
633
|
},
|
|
621
634
|
sortableColumnIcon() {
|
|
622
635
|
let sorted = false;
|
|
@@ -624,10 +637,10 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
624
637
|
|
|
625
638
|
if (this.sortMode === 'single') {
|
|
626
639
|
sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
|
|
627
|
-
sortOrder = sorted ? this.sortOrder: 0;
|
|
628
|
-
}
|
|
629
|
-
else if (this.sortMode === 'multiple') {
|
|
640
|
+
sortOrder = sorted ? this.sortOrder : 0;
|
|
641
|
+
} else if (this.sortMode === 'multiple') {
|
|
630
642
|
let metaIndex = this.getMultiSortMetaIndex();
|
|
643
|
+
|
|
631
644
|
if (metaIndex > -1) {
|
|
632
645
|
sorted = true;
|
|
633
646
|
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
@@ -635,7 +648,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
635
648
|
}
|
|
636
649
|
|
|
637
650
|
return [
|
|
638
|
-
'p-sortable-column-icon pi pi-fw',
|
|
651
|
+
'p-sortable-column-icon pi pi-fw',
|
|
652
|
+
{
|
|
639
653
|
'pi-sort-alt': !sorted,
|
|
640
654
|
'pi-sort-amount-up-alt': sorted && sortOrder > 0,
|
|
641
655
|
'pi-sort-amount-down': sorted && sortOrder < 0
|
|
@@ -645,17 +659,14 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
645
659
|
ariaSort() {
|
|
646
660
|
if (this.columnProp('sortable')) {
|
|
647
661
|
const sortIcon = this.sortableColumnIcon;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
else if (sortIcon[1]['pi-sort-amount-up-alt'])
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
return 'none';
|
|
654
|
-
}
|
|
655
|
-
else {
|
|
662
|
+
|
|
663
|
+
if (sortIcon[1]['pi-sort-amount-down']) return 'descending';
|
|
664
|
+
else if (sortIcon[1]['pi-sort-amount-up-alt']) return 'ascending';
|
|
665
|
+
else return 'none';
|
|
666
|
+
} else {
|
|
656
667
|
return null;
|
|
657
668
|
}
|
|
658
|
-
}
|
|
669
|
+
}
|
|
659
670
|
}
|
|
660
671
|
};
|
|
661
672
|
|
|
@@ -719,7 +730,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
719
730
|
data() {
|
|
720
731
|
return {
|
|
721
732
|
styleObject: {}
|
|
722
|
-
}
|
|
733
|
+
};
|
|
723
734
|
},
|
|
724
735
|
mounted() {
|
|
725
736
|
if (this.columnProp('frozen')) {
|
|
@@ -738,20 +749,24 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
738
749
|
updateStickyPosition() {
|
|
739
750
|
if (this.columnProp('frozen')) {
|
|
740
751
|
let align = this.columnProp('alignFrozen');
|
|
752
|
+
|
|
741
753
|
if (align === 'right') {
|
|
742
754
|
let right = 0;
|
|
743
755
|
let next = this.$el.nextElementSibling;
|
|
756
|
+
|
|
744
757
|
if (next) {
|
|
745
758
|
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
746
759
|
}
|
|
760
|
+
|
|
747
761
|
this.styleObject.right = right + 'px';
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
762
|
+
} else {
|
|
750
763
|
let left = 0;
|
|
751
764
|
let prev = this.$el.previousElementSibling;
|
|
765
|
+
|
|
752
766
|
if (prev) {
|
|
753
767
|
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
754
768
|
}
|
|
769
|
+
|
|
755
770
|
this.styleObject.left = left + 'px';
|
|
756
771
|
}
|
|
757
772
|
}
|
|
@@ -759,15 +774,19 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
759
774
|
},
|
|
760
775
|
computed: {
|
|
761
776
|
containerClass() {
|
|
762
|
-
return [
|
|
763
|
-
|
|
764
|
-
|
|
777
|
+
return [
|
|
778
|
+
this.columnProp('footerClass'),
|
|
779
|
+
this.columnProp('class'),
|
|
780
|
+
{
|
|
781
|
+
'p-frozen-column': this.columnProp('frozen')
|
|
782
|
+
}
|
|
783
|
+
];
|
|
765
784
|
},
|
|
766
785
|
containerStyle() {
|
|
767
786
|
let bodyStyle = this.columnProp('footerStyle');
|
|
768
787
|
let columnStyle = this.columnProp('style');
|
|
769
788
|
|
|
770
|
-
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
|
|
789
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
771
790
|
}
|
|
772
791
|
}
|
|
773
792
|
};
|
|
@@ -791,8 +810,23 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
791
810
|
|
|
792
811
|
var script = {
|
|
793
812
|
name: 'TreeTable',
|
|
794
|
-
emits: [
|
|
795
|
-
'
|
|
813
|
+
emits: [
|
|
814
|
+
'node-expand',
|
|
815
|
+
'node-collapse',
|
|
816
|
+
'update:expandedKeys',
|
|
817
|
+
'update:selectionKeys',
|
|
818
|
+
'node-select',
|
|
819
|
+
'node-unselect',
|
|
820
|
+
'update:first',
|
|
821
|
+
'update:rows',
|
|
822
|
+
'page',
|
|
823
|
+
'update:sortField',
|
|
824
|
+
'update:sortOrder',
|
|
825
|
+
'update:multiSortMeta',
|
|
826
|
+
'sort',
|
|
827
|
+
'filter',
|
|
828
|
+
'column-resize-end'
|
|
829
|
+
],
|
|
796
830
|
props: {
|
|
797
831
|
value: {
|
|
798
832
|
type: null,
|
|
@@ -932,7 +966,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
932
966
|
},
|
|
933
967
|
scrollDirection: {
|
|
934
968
|
type: String,
|
|
935
|
-
default:
|
|
969
|
+
default: 'vertical'
|
|
936
970
|
},
|
|
937
971
|
scrollHeight: {
|
|
938
972
|
type: String,
|
|
@@ -954,8 +988,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
954
988
|
d_rows: this.rows,
|
|
955
989
|
d_sortField: this.sortField,
|
|
956
990
|
d_sortOrder: this.sortOrder,
|
|
957
|
-
d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : []
|
|
958
|
-
}
|
|
991
|
+
d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : []
|
|
992
|
+
};
|
|
959
993
|
},
|
|
960
994
|
watch: {
|
|
961
995
|
expandedKeys(newValue) {
|
|
@@ -997,13 +1031,12 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
997
1031
|
if (this.d_expandedKeys[key]) {
|
|
998
1032
|
delete this.d_expandedKeys[key];
|
|
999
1033
|
this.$emit('node-collapse', node);
|
|
1000
|
-
}
|
|
1001
|
-
else {
|
|
1034
|
+
} else {
|
|
1002
1035
|
this.d_expandedKeys[key] = true;
|
|
1003
1036
|
this.$emit('node-expand', node);
|
|
1004
1037
|
}
|
|
1005
1038
|
|
|
1006
|
-
this.d_expandedKeys = {...this.d_expandedKeys};
|
|
1039
|
+
this.d_expandedKeys = { ...this.d_expandedKeys };
|
|
1007
1040
|
this.$emit('update:expandedKeys', this.d_expandedKeys);
|
|
1008
1041
|
},
|
|
1009
1042
|
onNodeClick(event) {
|
|
@@ -1017,27 +1050,24 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1017
1050
|
handleSelectionWithMetaKey(event) {
|
|
1018
1051
|
const originalEvent = event.originalEvent;
|
|
1019
1052
|
const node = event.node;
|
|
1020
|
-
const metaKey =
|
|
1053
|
+
const metaKey = originalEvent.metaKey || originalEvent.ctrlKey;
|
|
1021
1054
|
const selected = this.isNodeSelected(node);
|
|
1022
1055
|
let _selectionKeys;
|
|
1023
1056
|
|
|
1024
1057
|
if (selected && metaKey) {
|
|
1025
1058
|
if (this.isSingleSelectionMode()) {
|
|
1026
1059
|
_selectionKeys = {};
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
_selectionKeys = {...this.selectionKeys};
|
|
1060
|
+
} else {
|
|
1061
|
+
_selectionKeys = { ...this.selectionKeys };
|
|
1030
1062
|
delete _selectionKeys[node.key];
|
|
1031
1063
|
}
|
|
1032
1064
|
|
|
1033
1065
|
this.$emit('node-unselect', node);
|
|
1034
|
-
}
|
|
1035
|
-
else {
|
|
1066
|
+
} else {
|
|
1036
1067
|
if (this.isSingleSelectionMode()) {
|
|
1037
1068
|
_selectionKeys = {};
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
_selectionKeys = !metaKey ? {} : (this.selectionKeys ? {...this.selectionKeys} : {});
|
|
1069
|
+
} else if (this.isMultipleSelectionMode()) {
|
|
1070
|
+
_selectionKeys = !metaKey ? {} : this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
1041
1071
|
}
|
|
1042
1072
|
|
|
1043
1073
|
_selectionKeys[node.key] = true;
|
|
@@ -1055,22 +1085,19 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1055
1085
|
if (selected) {
|
|
1056
1086
|
_selectionKeys = {};
|
|
1057
1087
|
this.$emit('node-unselect', node);
|
|
1058
|
-
}
|
|
1059
|
-
else {
|
|
1088
|
+
} else {
|
|
1060
1089
|
_selectionKeys = {};
|
|
1061
1090
|
_selectionKeys[node.key] = true;
|
|
1062
1091
|
this.$emit('node-select', node);
|
|
1063
1092
|
}
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1093
|
+
} else {
|
|
1066
1094
|
if (selected) {
|
|
1067
|
-
_selectionKeys = {...this.selectionKeys};
|
|
1095
|
+
_selectionKeys = { ...this.selectionKeys };
|
|
1068
1096
|
delete _selectionKeys[node.key];
|
|
1069
1097
|
|
|
1070
1098
|
this.$emit('node-unselect', node);
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
_selectionKeys = this.selectionKeys ? {...this.selectionKeys} : {};
|
|
1099
|
+
} else {
|
|
1100
|
+
_selectionKeys = this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
1074
1101
|
_selectionKeys[node.key] = true;
|
|
1075
1102
|
|
|
1076
1103
|
this.$emit('node-select', node);
|
|
@@ -1082,10 +1109,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1082
1109
|
onCheckboxChange(event) {
|
|
1083
1110
|
this.$emit('update:selectionKeys', event.selectionKeys);
|
|
1084
1111
|
|
|
1085
|
-
if (event.check)
|
|
1086
|
-
|
|
1087
|
-
else
|
|
1088
|
-
this.$emit('node-unselect', event.node);
|
|
1112
|
+
if (event.check) this.$emit('node-select', event.node);
|
|
1113
|
+
else this.$emit('node-unselect', event.node);
|
|
1089
1114
|
},
|
|
1090
1115
|
isSingleSelectionMode() {
|
|
1091
1116
|
return this.selectionMode === 'single';
|
|
@@ -1098,6 +1123,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1098
1123
|
this.d_rows = event.rows;
|
|
1099
1124
|
|
|
1100
1125
|
let pageEvent = this.createLazyLoadEvent(event);
|
|
1126
|
+
|
|
1101
1127
|
pageEvent.pageCount = event.pageCount;
|
|
1102
1128
|
pageEvent.page = event.page;
|
|
1103
1129
|
|
|
@@ -1110,9 +1136,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1110
1136
|
this.$emit('update:first', this.d_first);
|
|
1111
1137
|
},
|
|
1112
1138
|
getFilterColumnHeaderClass(column) {
|
|
1113
|
-
return [
|
|
1114
|
-
'p-
|
|
1115
|
-
|
|
1139
|
+
return [
|
|
1140
|
+
'p-filter-column',
|
|
1141
|
+
this.columnProp(column, 'filterHeaderClass'),
|
|
1142
|
+
{
|
|
1143
|
+
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
1144
|
+
}
|
|
1145
|
+
];
|
|
1116
1146
|
},
|
|
1117
1147
|
onColumnHeaderClick(e) {
|
|
1118
1148
|
let event = e.originalEvent;
|
|
@@ -1122,21 +1152,23 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1122
1152
|
const targetNode = event.target;
|
|
1123
1153
|
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
1124
1154
|
|
|
1125
|
-
if (
|
|
1126
|
-
|
|
1155
|
+
if (
|
|
1156
|
+
utils.DomHandler.hasClass(targetNode, 'p-sortable-column') ||
|
|
1157
|
+
utils.DomHandler.hasClass(targetNode, 'p-column-title') ||
|
|
1158
|
+
utils.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') ||
|
|
1159
|
+
utils.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')
|
|
1160
|
+
) {
|
|
1127
1161
|
utils.DomHandler.clearSelection();
|
|
1128
1162
|
|
|
1129
1163
|
if (this.sortMode === 'single') {
|
|
1130
1164
|
if (this.d_sortField === columnField) {
|
|
1131
|
-
if (this.removableSort &&
|
|
1165
|
+
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
1132
1166
|
this.d_sortOrder = null;
|
|
1133
1167
|
this.d_sortField = null;
|
|
1134
|
-
}
|
|
1135
|
-
else {
|
|
1168
|
+
} else {
|
|
1136
1169
|
this.d_sortOrder = this.d_sortOrder * -1;
|
|
1137
1170
|
}
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1171
|
+
} else {
|
|
1140
1172
|
this.d_sortOrder = this.defaultSortOrder;
|
|
1141
1173
|
this.d_sortField = columnField;
|
|
1142
1174
|
}
|
|
@@ -1144,11 +1176,11 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1144
1176
|
this.$emit('update:sortField', this.d_sortField);
|
|
1145
1177
|
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
1146
1178
|
this.resetPage();
|
|
1147
|
-
}
|
|
1148
|
-
else if (this.sortMode === 'multiple') {
|
|
1179
|
+
} else if (this.sortMode === 'multiple') {
|
|
1149
1180
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
1181
|
+
|
|
1150
1182
|
if (!metaKey) {
|
|
1151
|
-
this.d_multiSortMeta =
|
|
1183
|
+
this.d_multiSortMeta = this.d_multiSortMeta.filter((meta) => meta.field === columnField);
|
|
1152
1184
|
}
|
|
1153
1185
|
|
|
1154
1186
|
this.addMultiSortField(columnField);
|
|
@@ -1160,16 +1192,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1160
1192
|
}
|
|
1161
1193
|
},
|
|
1162
1194
|
addMultiSortField(field) {
|
|
1163
|
-
let index =
|
|
1195
|
+
let index = this.d_multiSortMeta.findIndex((meta) => meta.field === field);
|
|
1164
1196
|
|
|
1165
1197
|
if (index >= 0) {
|
|
1166
|
-
if (this.removableSort &&
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
|
|
1198
|
+
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);
|
|
1199
|
+
else this.d_multiSortMeta[index] = { field: field, order: this.d_multiSortMeta[index].order * -1 };
|
|
1200
|
+
} else {
|
|
1201
|
+
this.d_multiSortMeta.push({ field: field, order: this.defaultSortOrder });
|
|
1173
1202
|
}
|
|
1174
1203
|
|
|
1175
1204
|
this.d_multiSortMeta = [...this.d_multiSortMeta];
|
|
@@ -1185,18 +1214,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1185
1214
|
const value2 = utils.ObjectUtils.resolveFieldData(node2.data, this.d_sortField);
|
|
1186
1215
|
let result = null;
|
|
1187
1216
|
|
|
1188
|
-
if (value1 == null && value2 != null)
|
|
1189
|
-
|
|
1190
|
-
else if (value1
|
|
1191
|
-
|
|
1192
|
-
else
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
1196
|
-
else
|
|
1197
|
-
result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
|
|
1198
|
-
|
|
1199
|
-
return (this.d_sortOrder * result);
|
|
1217
|
+
if (value1 == null && value2 != null) result = -1;
|
|
1218
|
+
else if (value1 != null && value2 == null) result = 1;
|
|
1219
|
+
else if (value1 == null && value2 == null) result = 0;
|
|
1220
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
1221
|
+
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1222
|
+
|
|
1223
|
+
return this.d_sortOrder * result;
|
|
1200
1224
|
});
|
|
1201
1225
|
|
|
1202
1226
|
return _nodes;
|
|
@@ -1206,6 +1230,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1206
1230
|
},
|
|
1207
1231
|
sortNodesMultiple(nodes) {
|
|
1208
1232
|
let _nodes = [...nodes];
|
|
1233
|
+
|
|
1209
1234
|
_nodes.sort((node1, node2) => {
|
|
1210
1235
|
return this.multisortField(node1, node2, 0);
|
|
1211
1236
|
});
|
|
@@ -1217,32 +1242,26 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1217
1242
|
const value2 = utils.ObjectUtils.resolveFieldData(node2.data, this.d_multiSortMeta[index].field);
|
|
1218
1243
|
let result = null;
|
|
1219
1244
|
|
|
1220
|
-
if (value1 == null && value2 != null)
|
|
1221
|
-
|
|
1222
|
-
else if (value1
|
|
1223
|
-
result = 1;
|
|
1224
|
-
else if (value1 == null && value2 == null)
|
|
1225
|
-
result = 0;
|
|
1245
|
+
if (value1 == null && value2 != null) result = -1;
|
|
1246
|
+
else if (value1 != null && value2 == null) result = 1;
|
|
1247
|
+
else if (value1 == null && value2 == null) result = 0;
|
|
1226
1248
|
else {
|
|
1227
|
-
if (value1 === value2)
|
|
1228
|
-
return
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
return (this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true }));
|
|
1233
|
-
else
|
|
1234
|
-
result = (value1 < value2) ? -1 : 1;
|
|
1249
|
+
if (value1 === value2) {
|
|
1250
|
+
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, index + 1) : 0;
|
|
1251
|
+
} else {
|
|
1252
|
+
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true });
|
|
1253
|
+
else result = value1 < value2 ? -1 : 1;
|
|
1235
1254
|
}
|
|
1236
1255
|
}
|
|
1237
1256
|
|
|
1238
|
-
return
|
|
1257
|
+
return this.d_multiSortMeta[index].order * result;
|
|
1239
1258
|
},
|
|
1240
1259
|
filter(value) {
|
|
1241
1260
|
let filteredNodes = [];
|
|
1242
1261
|
const strict = this.filterMode === 'strict';
|
|
1243
1262
|
|
|
1244
1263
|
for (let node of value) {
|
|
1245
|
-
let copyNode = {...node};
|
|
1264
|
+
let copyNode = { ...node };
|
|
1246
1265
|
let localMatch = true;
|
|
1247
1266
|
let globalMatch = false;
|
|
1248
1267
|
|
|
@@ -1255,11 +1274,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1255
1274
|
let filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
|
|
1256
1275
|
let filterValue = this.filters[this.columnProp(col, 'field')];
|
|
1257
1276
|
let filterConstraint = api.FilterService.filters[filterMatchMode];
|
|
1258
|
-
let paramsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
|
1277
|
+
let paramsWithoutNode = { filterField, filterValue, filterConstraint, strict };
|
|
1259
1278
|
|
|
1260
|
-
if (
|
|
1261
|
-
(
|
|
1262
|
-
|
|
1279
|
+
if (
|
|
1280
|
+
(strict && !(this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode))) ||
|
|
1281
|
+
(!strict && !(this.isFilterMatched(copyNode, paramsWithoutNode) || this.findFilteredNodes(copyNode, paramsWithoutNode)))
|
|
1282
|
+
) {
|
|
1283
|
+
localMatch = false;
|
|
1263
1284
|
}
|
|
1264
1285
|
|
|
1265
1286
|
if (!localMatch) {
|
|
@@ -1269,20 +1290,23 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1269
1290
|
|
|
1270
1291
|
//global
|
|
1271
1292
|
if (this.hasGlobalFilter() && !globalMatch) {
|
|
1272
|
-
let copyNodeForGlobal = {...copyNode};
|
|
1293
|
+
let copyNodeForGlobal = { ...copyNode };
|
|
1273
1294
|
let filterValue = this.filters['global'];
|
|
1274
1295
|
let filterConstraint = api.FilterService.filters['contains'];
|
|
1275
|
-
let globalFilterParamsWithoutNode = {filterField, filterValue, filterConstraint, strict};
|
|
1276
|
-
|
|
1277
|
-
if (
|
|
1278
|
-
(
|
|
1279
|
-
|
|
1280
|
-
|
|
1296
|
+
let globalFilterParamsWithoutNode = { filterField, filterValue, filterConstraint, strict };
|
|
1297
|
+
|
|
1298
|
+
if (
|
|
1299
|
+
(strict && (this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode))) ||
|
|
1300
|
+
(!strict && (this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode)))
|
|
1301
|
+
) {
|
|
1302
|
+
globalMatch = true;
|
|
1303
|
+
copyNode = copyNodeForGlobal;
|
|
1281
1304
|
}
|
|
1282
1305
|
}
|
|
1283
1306
|
}
|
|
1284
1307
|
|
|
1285
1308
|
let matches = localMatch;
|
|
1309
|
+
|
|
1286
1310
|
if (this.hasGlobalFilter()) {
|
|
1287
1311
|
matches = localMatch && globalMatch;
|
|
1288
1312
|
}
|
|
@@ -1293,6 +1317,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1293
1317
|
}
|
|
1294
1318
|
|
|
1295
1319
|
let filterEvent = this.createLazyLoadEvent(event);
|
|
1320
|
+
|
|
1296
1321
|
filterEvent.filteredValue = filteredNodes;
|
|
1297
1322
|
this.$emit('filter', filterEvent);
|
|
1298
1323
|
|
|
@@ -1301,11 +1326,15 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1301
1326
|
findFilteredNodes(node, paramsWithoutNode) {
|
|
1302
1327
|
if (node) {
|
|
1303
1328
|
let matched = false;
|
|
1329
|
+
|
|
1304
1330
|
if (node.children) {
|
|
1305
1331
|
let childNodes = [...node.children];
|
|
1332
|
+
|
|
1306
1333
|
node.children = [];
|
|
1334
|
+
|
|
1307
1335
|
for (let childNode of childNodes) {
|
|
1308
|
-
let copyChildNode = {...childNode};
|
|
1336
|
+
let copyChildNode = { ...childNode };
|
|
1337
|
+
|
|
1309
1338
|
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
1310
1339
|
matched = true;
|
|
1311
1340
|
node.children.push(copyChildNode);
|
|
@@ -1318,30 +1347,32 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1318
1347
|
}
|
|
1319
1348
|
}
|
|
1320
1349
|
},
|
|
1321
|
-
isFilterMatched(node, {filterField, filterValue, filterConstraint, strict}) {
|
|
1350
|
+
isFilterMatched(node, { filterField, filterValue, filterConstraint, strict }) {
|
|
1322
1351
|
let matched = false;
|
|
1323
1352
|
let dataFieldValue = utils.ObjectUtils.resolveFieldData(node.data, filterField);
|
|
1353
|
+
|
|
1324
1354
|
if (filterConstraint(dataFieldValue, filterValue, this.filterLocale)) {
|
|
1325
1355
|
matched = true;
|
|
1326
1356
|
}
|
|
1327
1357
|
|
|
1328
1358
|
if (!matched || (strict && !this.isNodeLeaf(node))) {
|
|
1329
|
-
matched = this.findFilteredNodes(node, {filterField, filterValue, filterConstraint, strict}) || matched;
|
|
1359
|
+
matched = this.findFilteredNodes(node, { filterField, filterValue, filterConstraint, strict }) || matched;
|
|
1330
1360
|
}
|
|
1331
1361
|
|
|
1332
1362
|
return matched;
|
|
1333
1363
|
},
|
|
1334
1364
|
isNodeSelected(node) {
|
|
1335
|
-
return
|
|
1365
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[node.key] === true : false;
|
|
1336
1366
|
},
|
|
1337
1367
|
isNodeLeaf(node) {
|
|
1338
1368
|
return node.leaf === false ? false : !(node.children && node.children.length);
|
|
1339
1369
|
},
|
|
1340
1370
|
createLazyLoadEvent(event) {
|
|
1341
1371
|
let filterMatchModes;
|
|
1372
|
+
|
|
1342
1373
|
if (this.hasFilters()) {
|
|
1343
1374
|
filterMatchModes = {};
|
|
1344
|
-
this.columns.forEach(col => {
|
|
1375
|
+
this.columns.forEach((col) => {
|
|
1345
1376
|
if (this.columnProp(col, 'field')) {
|
|
1346
1377
|
filterMatchModes[col.props.field] = this.columnProp(col, 'filterMatchMode');
|
|
1347
1378
|
}
|
|
@@ -1361,26 +1392,28 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1361
1392
|
},
|
|
1362
1393
|
onColumnResizeStart(event) {
|
|
1363
1394
|
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1395
|
+
|
|
1364
1396
|
this.resizeColumnElement = event.target.parentElement;
|
|
1365
1397
|
this.columnResizing = true;
|
|
1366
|
-
this.lastResizeHelperX =
|
|
1398
|
+
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
1367
1399
|
|
|
1368
1400
|
this.bindColumnResizeEvents();
|
|
1369
1401
|
},
|
|
1370
1402
|
onColumnResize(event) {
|
|
1371
1403
|
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1404
|
+
|
|
1372
1405
|
utils.DomHandler.addClass(this.$el, 'p-unselectable-text');
|
|
1373
1406
|
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
1374
1407
|
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
1375
|
-
this.$refs.resizeHelper.style.left =
|
|
1408
|
+
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
1376
1409
|
|
|
1377
1410
|
this.$refs.resizeHelper.style.display = 'block';
|
|
1378
1411
|
},
|
|
1379
1412
|
onColumnResizeEnd() {
|
|
1380
|
-
|
|
1413
|
+
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
1381
1414
|
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
1382
1415
|
let newColumnWidth = columnWidth + delta;
|
|
1383
|
-
let minWidth = this.resizeColumnElement.style.minWidth||15;
|
|
1416
|
+
let minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
1384
1417
|
|
|
1385
1418
|
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
1386
1419
|
if (this.columnResizeMode === 'fit') {
|
|
@@ -1390,22 +1423,19 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1390
1423
|
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
1391
1424
|
if (!this.scrollable) {
|
|
1392
1425
|
this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
1393
|
-
|
|
1426
|
+
|
|
1427
|
+
if (nextColumn) {
|
|
1394
1428
|
nextColumn.style.width = nextColumnWidth + 'px';
|
|
1395
1429
|
}
|
|
1396
|
-
}
|
|
1397
|
-
else {
|
|
1430
|
+
} else {
|
|
1398
1431
|
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
1399
1432
|
}
|
|
1400
1433
|
}
|
|
1401
|
-
}
|
|
1402
|
-
else if (this.columnResizeMode === 'expand') {
|
|
1434
|
+
} else if (this.columnResizeMode === 'expand') {
|
|
1403
1435
|
this.$refs.table.style.width = this.$refs.table.offsetWidth + delta + 'px';
|
|
1404
1436
|
|
|
1405
|
-
if (!this.scrollable)
|
|
1406
|
-
|
|
1407
|
-
else
|
|
1408
|
-
this.resizeTableCells(newColumnWidth);
|
|
1437
|
+
if (!this.scrollable) this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
1438
|
+
else this.resizeTableCells(newColumnWidth);
|
|
1409
1439
|
}
|
|
1410
1440
|
|
|
1411
1441
|
this.$emit('column-resize-end', {
|
|
@@ -1423,13 +1453,16 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1423
1453
|
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
1424
1454
|
let colIndex = utils.DomHandler.index(this.resizeColumnElement);
|
|
1425
1455
|
let children = this.$refs.table.children;
|
|
1456
|
+
|
|
1426
1457
|
for (let child of children) {
|
|
1427
1458
|
for (let row of child.children) {
|
|
1428
1459
|
let resizeCell = row.children[colIndex];
|
|
1460
|
+
|
|
1429
1461
|
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px';
|
|
1430
1462
|
|
|
1431
1463
|
if (this.columnResizeMode === 'fit') {
|
|
1432
1464
|
let nextCell = resizeCell.nextElementSibling;
|
|
1465
|
+
|
|
1433
1466
|
if (nextCell) {
|
|
1434
1467
|
nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px';
|
|
1435
1468
|
}
|
|
@@ -1440,7 +1473,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1440
1473
|
bindColumnResizeEvents() {
|
|
1441
1474
|
if (!this.documentColumnResizeListener) {
|
|
1442
1475
|
this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
|
|
1443
|
-
if(this.columnResizing) {
|
|
1476
|
+
if (this.columnResizing) {
|
|
1444
1477
|
this.onColumnResize(event);
|
|
1445
1478
|
}
|
|
1446
1479
|
});
|
|
@@ -1448,13 +1481,12 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1448
1481
|
|
|
1449
1482
|
if (!this.documentColumnResizeEndListener) {
|
|
1450
1483
|
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
|
|
1451
|
-
if(this.columnResizing) {
|
|
1484
|
+
if (this.columnResizing) {
|
|
1452
1485
|
this.columnResizing = false;
|
|
1453
1486
|
this.onColumnResizeEnd();
|
|
1454
1487
|
}
|
|
1455
1488
|
});
|
|
1456
1489
|
}
|
|
1457
|
-
|
|
1458
1490
|
},
|
|
1459
1491
|
unbindColumnResizeEvents() {
|
|
1460
1492
|
if (this.documentColumnResizeListener) {
|
|
@@ -1464,7 +1496,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1464
1496
|
|
|
1465
1497
|
if (this.documentColumnResizeEndListener) {
|
|
1466
1498
|
document.removeEventListener('document', this.documentColumnResizeEndListener);
|
|
1467
|
-
|
|
1499
|
+
this.documentColumnResizeEndListener = null;
|
|
1468
1500
|
}
|
|
1469
1501
|
},
|
|
1470
1502
|
onColumnKeyDown(event, col) {
|
|
@@ -1495,29 +1527,30 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1495
1527
|
},
|
|
1496
1528
|
computed: {
|
|
1497
1529
|
containerClass() {
|
|
1498
|
-
return [
|
|
1499
|
-
'p-treetable-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1530
|
+
return [
|
|
1531
|
+
'p-treetable p-component',
|
|
1532
|
+
{
|
|
1533
|
+
'p-treetable-hoverable-rows': this.rowHover || this.rowSelectionMode,
|
|
1534
|
+
'p-treetable-auto-layout': this.autoLayout,
|
|
1535
|
+
'p-treetable-resizable': this.resizableColumns,
|
|
1536
|
+
'p-treetable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
|
|
1537
|
+
'p-treetable-gridlines': this.showGridlines,
|
|
1538
|
+
'p-treetable-scrollable': this.scrollable,
|
|
1539
|
+
'p-treetable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
|
|
1540
|
+
'p-treetable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
|
|
1541
|
+
'p-treetable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
|
|
1542
|
+
'p-treetable-flex-scrollable': this.scrollable && this.scrollHeight === 'flex',
|
|
1543
|
+
'p-treetable-responsive-scroll': this.responsiveLayout === 'scroll'
|
|
1544
|
+
}
|
|
1545
|
+
];
|
|
1511
1546
|
},
|
|
1512
1547
|
columns() {
|
|
1513
1548
|
let cols = [];
|
|
1514
1549
|
let children = this.$slots.default();
|
|
1515
1550
|
|
|
1516
|
-
children.forEach(child => {
|
|
1517
|
-
if (child.children && child.children instanceof Array)
|
|
1518
|
-
|
|
1519
|
-
else if (child.type.name === 'Column')
|
|
1520
|
-
cols.push(child);
|
|
1551
|
+
children.forEach((child) => {
|
|
1552
|
+
if (child.children && child.children instanceof Array) cols = [...cols, ...child.children];
|
|
1553
|
+
else if (child.type.name === 'Column') cols.push(child);
|
|
1521
1554
|
});
|
|
1522
1555
|
|
|
1523
1556
|
return cols;
|
|
@@ -1525,16 +1558,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1525
1558
|
processedData() {
|
|
1526
1559
|
if (this.lazy) {
|
|
1527
1560
|
return this.value;
|
|
1528
|
-
}
|
|
1529
|
-
else {
|
|
1561
|
+
} else {
|
|
1530
1562
|
if (this.value && this.value.length) {
|
|
1531
1563
|
let data = this.value;
|
|
1532
1564
|
|
|
1533
1565
|
if (this.sorted) {
|
|
1534
|
-
if(this.sortMode === 'single')
|
|
1535
|
-
|
|
1536
|
-
else if(this.sortMode === 'multiple')
|
|
1537
|
-
data = this.sortMultiple(data);
|
|
1566
|
+
if (this.sortMode === 'single') data = this.sortSingle(data);
|
|
1567
|
+
else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
|
|
1538
1568
|
}
|
|
1539
1569
|
|
|
1540
1570
|
if (this.hasFilters()) {
|
|
@@ -1542,8 +1572,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1542
1572
|
}
|
|
1543
1573
|
|
|
1544
1574
|
return data;
|
|
1545
|
-
}
|
|
1546
|
-
else {
|
|
1575
|
+
} else {
|
|
1547
1576
|
return null;
|
|
1548
1577
|
}
|
|
1549
1578
|
}
|
|
@@ -1553,15 +1582,16 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1553
1582
|
|
|
1554
1583
|
if (this.paginator) {
|
|
1555
1584
|
const first = this.lazy ? 0 : this.d_first;
|
|
1585
|
+
|
|
1556
1586
|
return data.slice(first, first + this.d_rows);
|
|
1557
|
-
}
|
|
1558
|
-
else {
|
|
1587
|
+
} else {
|
|
1559
1588
|
return data;
|
|
1560
1589
|
}
|
|
1561
1590
|
},
|
|
1562
1591
|
empty() {
|
|
1563
1592
|
const data = this.processedData;
|
|
1564
|
-
|
|
1593
|
+
|
|
1594
|
+
return !data || data.length === 0;
|
|
1565
1595
|
},
|
|
1566
1596
|
sorted() {
|
|
1567
1597
|
return this.d_sortField || (this.d_multiSortMeta && this.d_multiSortMeta.length > 0);
|
|
@@ -1570,7 +1600,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1570
1600
|
let hasFooter = false;
|
|
1571
1601
|
|
|
1572
1602
|
for (let col of this.columns) {
|
|
1573
|
-
if (this.columnProp(col, 'footer')|| (col.children && col.children.footer)) {
|
|
1603
|
+
if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
|
|
1574
1604
|
hasFooter = true;
|
|
1575
1605
|
break;
|
|
1576
1606
|
}
|
|
@@ -1596,9 +1626,9 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1596
1626
|
totalRecordsLength() {
|
|
1597
1627
|
if (this.lazy) {
|
|
1598
1628
|
return this.totalRecords;
|
|
1599
|
-
}
|
|
1600
|
-
else {
|
|
1629
|
+
} else {
|
|
1601
1630
|
const data = this.processedData;
|
|
1631
|
+
|
|
1602
1632
|
return data ? data.length : 0;
|
|
1603
1633
|
}
|
|
1604
1634
|
},
|
|
@@ -1607,10 +1637,10 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1607
1637
|
}
|
|
1608
1638
|
},
|
|
1609
1639
|
components: {
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1640
|
+
TTRow: script$3,
|
|
1641
|
+
TTPaginator: Paginator__default["default"],
|
|
1642
|
+
TTHeaderCell: script$2,
|
|
1643
|
+
TTFooterCell: script$1
|
|
1614
1644
|
}
|
|
1615
1645
|
};
|
|
1616
1646
|
|
|
@@ -1689,7 +1719,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1689
1719
|
name: "start",
|
|
1690
1720
|
fn: vue.withCtx(() => [
|
|
1691
1721
|
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
1692
|
-
])
|
|
1722
|
+
]),
|
|
1723
|
+
key: "0"
|
|
1693
1724
|
}
|
|
1694
1725
|
: undefined,
|
|
1695
1726
|
(_ctx.$slots.paginatorend)
|
|
@@ -1697,21 +1728,22 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1697
1728
|
name: "end",
|
|
1698
1729
|
fn: vue.withCtx(() => [
|
|
1699
1730
|
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
1700
|
-
])
|
|
1731
|
+
]),
|
|
1732
|
+
key: "1"
|
|
1701
1733
|
}
|
|
1702
1734
|
: undefined
|
|
1703
1735
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
1704
1736
|
: vue.createCommentVNode("", true),
|
|
1705
1737
|
vue.createElementVNode("div", {
|
|
1706
1738
|
class: "p-treetable-wrapper",
|
|
1707
|
-
style: vue.normalizeStyle({maxHeight: $props.scrollHeight})
|
|
1739
|
+
style: vue.normalizeStyle({ maxHeight: $props.scrollHeight })
|
|
1708
1740
|
}, [
|
|
1709
1741
|
vue.createElementVNode("table", _hoisted_4, [
|
|
1710
1742
|
vue.createElementVNode("thead", _hoisted_5, [
|
|
1711
1743
|
vue.createElementVNode("tr", null, [
|
|
1712
1744
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
1713
1745
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1714
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1746
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1715
1747
|
}, [
|
|
1716
1748
|
(!$options.columnProp(col, 'hidden'))
|
|
1717
1749
|
? (vue.openBlock(), vue.createBlock(_component_TTHeaderCell, {
|
|
@@ -1733,13 +1765,13 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1733
1765
|
? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_6, [
|
|
1734
1766
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
1735
1767
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1736
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1768
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1737
1769
|
}, [
|
|
1738
1770
|
(!$options.columnProp(col, 'hidden'))
|
|
1739
1771
|
? (vue.openBlock(), vue.createElementBlock("th", {
|
|
1740
1772
|
key: 0,
|
|
1741
1773
|
class: vue.normalizeClass($options.getFilterColumnHeaderClass(col)),
|
|
1742
|
-
style: vue.normalizeStyle([$options.columnProp(col, 'style')
|
|
1774
|
+
style: vue.normalizeStyle([$options.columnProp(col, 'style'), $options.columnProp(col, 'filterHeaderStyle')])
|
|
1743
1775
|
}, [
|
|
1744
1776
|
(col.children && col.children.filter)
|
|
1745
1777
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(col.children.filter), {
|
|
@@ -1784,7 +1816,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1784
1816
|
vue.createElementVNode("tr", null, [
|
|
1785
1817
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
1786
1818
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1787
|
-
key: $options.columnProp(col, 'columnKey')
|
|
1819
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1788
1820
|
}, [
|
|
1789
1821
|
(!$options.columnProp(col, 'hidden'))
|
|
1790
1822
|
? (vue.openBlock(), vue.createBlock(_component_TTFooterCell, {
|
|
@@ -1818,7 +1850,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1818
1850
|
name: "start",
|
|
1819
1851
|
fn: vue.withCtx(() => [
|
|
1820
1852
|
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
1821
|
-
])
|
|
1853
|
+
]),
|
|
1854
|
+
key: "0"
|
|
1822
1855
|
}
|
|
1823
1856
|
: undefined,
|
|
1824
1857
|
(_ctx.$slots.paginatorend)
|
|
@@ -1826,7 +1859,8 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1826
1859
|
name: "end",
|
|
1827
1860
|
fn: vue.withCtx(() => [
|
|
1828
1861
|
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
1829
|
-
])
|
|
1862
|
+
]),
|
|
1863
|
+
key: "1"
|
|
1830
1864
|
}
|
|
1831
1865
|
: undefined
|
|
1832
1866
|
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
|
|
@@ -1867,7 +1901,7 @@ this.primevue.treetable = (function (utils, api, Ripple, vue, Paginator) {
|
|
|
1867
1901
|
}
|
|
1868
1902
|
}
|
|
1869
1903
|
|
|
1870
|
-
var css_248z = "\n.p-treetable {\n position: relative;\n}\n.p-treetable table {\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-treetable .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-treetable-responsive-scroll > .p-treetable-wrapper {\n overflow-x: auto;\n}\n.p-treetable-responsive-scroll > .p-treetable-wrapper > table,\n.p-treetable-auto-layout > .p-treetable-wrapper > table {\n table-layout: auto;\n}\n.p-treetable-hoverable-rows .p-treetable-tbody > tr {\n cursor: pointer;\n}\n.p-treetable-toggler {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\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 vertical-align: middle;\n overflow: hidden;\n position: relative;\n}\n.p-treetable-toggler + .p-checkbox {\n vertical-align: middle;\n}\n.p-treetable-toggler + .p-checkbox + span {\n vertical-align: middle;\n}\n\n/* Resizable */\n.p-treetable-resizable > .p-treetable-wrapper {\n overflow-x: auto;\n}\n.p-treetable-resizable .p-treetable-thead > tr > th,\n.p-treetable-resizable .p-treetable-tfoot > tr > td,\n.p-treetable-resizable .p-treetable-tbody > tr > td {\n overflow: hidden;\n}\n.p-treetable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-treetable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: .5rem;\n height: 100%;\n padding: 0px;\n cursor:col-resize;\n border: 1px solid transparent;\n}\n.p-treetable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-treetable .p-treetable-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/* Scrollable */\n.p-treetable-scrollable .p-treetable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-treetable-scrollable .p-treetable-table {\n display: block;\n}\n.p-treetable-scrollable .p-treetable-thead,\n.p-treetable-scrollable .p-treetable-tbody,\n.p-treetable-scrollable .p-treetable-tfoot {\n display: block;\n}\n.p-treetable-scrollable .p-treetable-thead > tr,\n.p-treetable-scrollable .p-treetable-tbody > tr,\n.p-treetable-scrollable .p-treetable-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-treetable-scrollable .p-treetable-thead > tr > th,\n.p-treetable-scrollable .p-treetable-tbody > tr > td,\n.p-treetable-scrollable .p-treetable-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-treetable-scrollable .p-treetable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-treetable-scrollable .p-treetable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-treetable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-treetable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-treetable-scrollable-both .p-treetable-thead > tr > th,\n.p-treetable-scrollable-both .p-treetable-tbody > tr > td,\n.p-treetable-scrollable-both .p-treetable-tfoot > tr > td,\n.p-treetable-scrollable-horizontal .p-treetable-thead > tr > th
|
|
1904
|
+
var css_248z = "\n.p-treetable {\n position: relative;\n}\n.p-treetable table {\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-treetable .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-treetable-responsive-scroll > .p-treetable-wrapper {\n overflow-x: auto;\n}\n.p-treetable-responsive-scroll > .p-treetable-wrapper > table,\n.p-treetable-auto-layout > .p-treetable-wrapper > table {\n table-layout: auto;\n}\n.p-treetable-hoverable-rows .p-treetable-tbody > tr {\n cursor: pointer;\n}\n.p-treetable-toggler {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\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 vertical-align: middle;\n overflow: hidden;\n position: relative;\n}\n.p-treetable-toggler + .p-checkbox {\n vertical-align: middle;\n}\n.p-treetable-toggler + .p-checkbox + span {\n vertical-align: middle;\n}\n\n/* Resizable */\n.p-treetable-resizable > .p-treetable-wrapper {\n overflow-x: auto;\n}\n.p-treetable-resizable .p-treetable-thead > tr > th,\n.p-treetable-resizable .p-treetable-tfoot > tr > td,\n.p-treetable-resizable .p-treetable-tbody > tr > td {\n overflow: hidden;\n}\n.p-treetable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-treetable .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-treetable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-treetable .p-treetable-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/* Scrollable */\n.p-treetable-scrollable .p-treetable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-treetable-scrollable .p-treetable-table {\n display: block;\n}\n.p-treetable-scrollable .p-treetable-thead,\n.p-treetable-scrollable .p-treetable-tbody,\n.p-treetable-scrollable .p-treetable-tfoot {\n display: block;\n}\n.p-treetable-scrollable .p-treetable-thead > tr,\n.p-treetable-scrollable .p-treetable-tbody > tr,\n.p-treetable-scrollable .p-treetable-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-treetable-scrollable .p-treetable-thead > tr > th,\n.p-treetable-scrollable .p-treetable-tbody > tr > td,\n.p-treetable-scrollable .p-treetable-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-treetable-scrollable .p-treetable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-treetable-scrollable .p-treetable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-treetable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-treetable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-treetable-scrollable-both .p-treetable-thead > tr > th,\n.p-treetable-scrollable-both .p-treetable-tbody > tr > td,\n.p-treetable-scrollable-both .p-treetable-tfoot > tr > td,\n.p-treetable-scrollable-horizontal .p-treetable-thead > tr > th .p-treetable-scrollable-horizontal .p-treetable-tbody > tr > td,\n.p-treetable-scrollable-horizontal .p-treetable-tfoot > tr > td {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-treetable-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-treetable-flex-scrollable .p-treetable-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";
|
|
1871
1905
|
styleInject(css_248z);
|
|
1872
1906
|
|
|
1873
1907
|
script.render = render;
|