primevue 3.29.2 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/accordion/Accordion.d.ts +17 -0
- package/accordion/Accordion.vue +38 -92
- package/accordion/BaseAccordion.vue +93 -0
- package/accordion/accordion.cjs.js +340 -330
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +339 -329
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +340 -331
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +28 -0
- package/accordiontab/AccordionTab.vue +2 -13
- package/accordiontab/BaseAccordionTab.vue +24 -0
- package/accordiontab/accordiontab.cjs.js +24 -14
- package/accordiontab/accordiontab.cjs.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +24 -14
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +24 -14
- package/accordiontab/accordiontab.min.js +1 -1
- package/api/api.cjs.js +475 -500
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +475 -500
- package/api/api.esm.min.js +1 -1
- package/api/api.js +475 -500
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +23 -2
- package/autocomplete/AutoComplete.vue +40 -322
- package/autocomplete/BaseAutoComplete.vue +322 -0
- package/autocomplete/autocomplete.cjs.js +1290 -1237
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1291 -1238
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1290 -1238
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +14 -0
- package/avatar/Avatar.vue +13 -81
- package/avatar/BaseAvatar.vue +96 -0
- package/avatar/avatar.cjs.js +101 -110
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +102 -111
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +102 -112
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +11 -0
- package/avatargroup/AvatarGroup.vue +3 -14
- package/avatargroup/BaseAvatarGroup.vue +35 -0
- package/avatargroup/avatargroup.cjs.js +31 -35
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +31 -35
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +32 -37
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +12 -0
- package/badge/Badge.vue +3 -38
- package/badge/BaseBadge.vue +86 -0
- package/badge/badge.cjs.js +59 -40
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +59 -40
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +60 -42
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +43 -1
- package/badgedirective/badgedirective.cjs.js +66 -45
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +64 -47
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +66 -47
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/base.cjs.js +18 -0
- package/base/base.cjs.min.js +1 -0
- package/base/base.esm.js +13 -0
- package/base/base.esm.min.js +1 -0
- package/base/base.js +22 -0
- package/base/base.min.js +1 -0
- package/base/package.json +5 -0
- package/basecomponent/BaseComponent.d.ts +23 -0
- package/basecomponent/BaseComponent.vue +462 -12
- package/basecomponent/basecomponent.cjs.js +170 -36
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +170 -36
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +170 -38
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/package.json +1 -0
- package/basedirective/BaseDirective.d.ts +38 -0
- package/basedirective/basedirective.cjs.js +157 -0
- package/basedirective/basedirective.cjs.min.js +1 -0
- package/basedirective/basedirective.esm.js +155 -0
- package/basedirective/basedirective.esm.min.js +1 -0
- package/basedirective/basedirective.js +157 -0
- package/basedirective/basedirective.min.js +1 -0
- package/basedirective/package.json +6 -0
- package/baseicon/baseicon.cjs.js +22 -26
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +22 -26
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +22 -26
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BaseBlockUI.vue +64 -0
- package/blockui/BlockUI.d.ts +12 -0
- package/blockui/BlockUI.vue +10 -48
- package/blockui/blockui.cjs.js +103 -115
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +103 -115
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +103 -116
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/BaseBreadcrumb.vue +85 -0
- package/breadcrumb/Breadcrumb.d.ts +12 -0
- package/breadcrumb/Breadcrumb.vue +6 -54
- package/breadcrumb/BreadcrumbItem.vue +10 -21
- package/breadcrumb/breadcrumb.cjs.js +198 -219
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +198 -219
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +198 -220
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/BaseButton.vue +115 -0
- package/button/Button.d.ts +24 -0
- package/button/Button.vue +21 -121
- package/button/button.cjs.js +176 -174
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +174 -173
- package/button/button.esm.min.js +1 -1
- package/button/button.js +176 -175
- package/button/button.min.js +1 -1
- package/calendar/BaseCalendar.vue +453 -0
- package/calendar/Calendar.d.ts +24 -12
- package/calendar/Calendar.vue +127 -491
- package/calendar/calendar.cjs.js +3115 -3197
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +3115 -3197
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +3115 -3198
- package/calendar/calendar.min.js +1 -1
- package/card/BaseCard.vue +21 -0
- package/card/Card.d.ts +11 -0
- package/card/Card.vue +9 -9
- package/card/card.cjs.js +40 -41
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +40 -41
- package/card/card.esm.min.js +1 -1
- package/card/card.js +40 -41
- package/card/card.min.js +1 -1
- package/carousel/BaseCarousel.vue +197 -0
- package/carousel/Carousel.d.ts +12 -0
- package/carousel/Carousel.vue +36 -188
- package/carousel/carousel.cjs.js +705 -737
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +704 -736
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +705 -738
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +257 -0
- package/cascadeselect/CascadeSelect.d.ts +19 -7
- package/cascadeselect/CascadeSelect.vue +18 -242
- package/cascadeselect/CascadeSelectSub.vue +15 -22
- package/cascadeselect/cascadeselect.cjs.js +1143 -1083
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1143 -1083
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1143 -1084
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/BaseChart.vue +48 -0
- package/chart/Chart.d.ts +12 -0
- package/chart/Chart.vue +3 -27
- package/chart/chart.cjs.js +144 -135
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +144 -135
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +145 -137
- package/chart/chart.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +93 -0
- package/checkbox/Checkbox.d.ts +41 -0
- package/checkbox/Checkbox.vue +16 -74
- package/checkbox/checkbox.cjs.js +201 -140
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +201 -140
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +202 -141
- package/checkbox/checkbox.min.js +1 -1
- package/chip/BaseChip.vue +78 -0
- package/chip/Chip.d.ts +12 -0
- package/chip/Chip.vue +7 -63
- package/chip/chip.cjs.js +106 -129
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +105 -128
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +106 -130
- package/chip/chip.min.js +1 -1
- package/chips/BaseChips.vue +143 -0
- package/chips/Chips.d.ts +12 -0
- package/chips/Chips.vue +11 -127
- package/chips/chips.cjs.js +368 -344
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +368 -344
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +368 -345
- package/chips/chips.min.js +1 -1
- package/colorpicker/BaseColorPicker.vue +89 -0
- package/colorpicker/ColorPicker.d.ts +14 -2
- package/colorpicker/ColorPicker.vue +16 -34
- package/colorpicker/colorpicker.cjs.js +699 -650
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +698 -649
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +699 -651
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/BaseColumn.vue +191 -0
- package/column/Column.d.ts +56 -29
- package/column/Column.vue +2 -180
- package/column/column.cjs.js +193 -183
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +193 -183
- package/column/column.esm.min.js +1 -1
- package/column/column.js +193 -183
- package/column/column.min.js +1 -1
- package/columngroup/BaseColumnGroup.vue +19 -0
- package/columngroup/ColumnGroup.d.ts +23 -0
- package/columngroup/ColumnGroup.vue +2 -8
- package/columngroup/columngroup.cjs.js +21 -11
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +21 -11
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +21 -11
- package/columngroup/columngroup.min.js +1 -1
- package/config/PrimeVue.d.ts +15 -1
- package/config/config.cjs.js +167 -168
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +167 -168
- package/config/config.esm.min.js +1 -1
- package/config/config.js +167 -168
- package/config/config.min.js +1 -1
- package/confirmationservice/confirmationservice.cjs.js +12 -13
- package/confirmationservice/confirmationservice.cjs.min.js +1 -1
- package/confirmationservice/confirmationservice.esm.js +12 -13
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +12 -13
- package/confirmationservice/confirmationservice.min.js +1 -1
- package/confirmdialog/BaseConfirmDialog.vue +35 -0
- package/confirmdialog/ConfirmDialog.d.ts +12 -0
- package/confirmdialog/ConfirmDialog.vue +18 -33
- package/confirmdialog/confirmdialog.cjs.js +213 -183
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +213 -183
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +214 -184
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/BaseConfirmPopup.vue +111 -0
- package/confirmpopup/ConfirmPopup.d.ts +12 -0
- package/confirmpopup/ConfirmPopup.vue +21 -109
- package/confirmpopup/confirmpopup.cjs.js +375 -377
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +375 -377
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +375 -378
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +133 -0
- package/contextmenu/ContextMenu.d.ts +16 -0
- package/contextmenu/ContextMenu.vue +6 -93
- package/contextmenu/ContextMenuSub.vue +24 -58
- package/contextmenu/contextmenu.cjs.js +989 -951
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +988 -950
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +989 -952
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +12138 -11708
- package/core/core.min.js +76 -70
- package/datatable/BaseDataTable.vue +740 -0
- package/datatable/BodyCell.vue +48 -35
- package/datatable/ColumnFilter.vue +74 -59
- package/datatable/DataTable.d.ts +31 -8
- package/datatable/DataTable.vue +82 -593
- package/datatable/FooterCell.vue +15 -11
- package/datatable/HeaderCell.vue +30 -24
- package/datatable/HeaderCheckbox.vue +8 -7
- package/datatable/RowCheckbox.vue +13 -7
- package/datatable/RowRadioButton.vue +13 -7
- package/datatable/TableBody.vue +24 -35
- package/datatable/TableFooter.vue +20 -9
- package/datatable/TableHeader.vue +32 -21
- package/datatable/datatable.cjs.js +5908 -5739
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +5908 -5739
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +5908 -5740
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +100 -0
- package/dataview/DataView.d.ts +16 -0
- package/dataview/DataView.vue +13 -86
- package/dataview/dataview.cjs.js +291 -295
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +290 -294
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +292 -296
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +12 -0
- package/deferredcontent/deferredcontent.cjs.js +49 -51
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +49 -51
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +49 -51
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/BaseDialog.vue +319 -0
- package/dialog/Dialog.d.ts +12 -0
- package/dialog/Dialog.vue +23 -339
- package/dialog/dialog.cjs.js +591 -603
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +590 -602
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +591 -604
- package/dialog/dialog.min.js +1 -1
- package/dialogservice/dialogservice.cjs.js +24 -21
- package/dialogservice/dialogservice.cjs.min.js +1 -1
- package/dialogservice/dialogservice.esm.js +23 -20
- package/dialogservice/dialogservice.esm.min.js +1 -1
- package/dialogservice/dialogservice.js +24 -21
- package/dialogservice/dialogservice.min.js +1 -1
- package/divider/BaseDivider.vue +136 -0
- package/divider/Divider.d.ts +12 -0
- package/divider/Divider.vue +4 -120
- package/divider/divider.cjs.js +64 -74
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +64 -74
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +65 -76
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +185 -0
- package/dock/Dock.d.ts +12 -0
- package/dock/Dock.vue +3 -146
- package/dock/DockSub.vue +19 -39
- package/dock/dock.cjs.js +423 -411
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +424 -412
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +424 -413
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +313 -0
- package/dropdown/Dropdown.d.ts +17 -1
- package/dropdown/Dropdown.vue +60 -320
- package/dropdown/dropdown.cjs.js +1261 -1226
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1261 -1226
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1261 -1227
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +7 -1
- package/dynamicdialog/DynamicDialog.vue +3 -3
- package/dynamicdialog/dynamicdialog.cjs.js +90 -89
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +90 -89
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +90 -89
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/BaseEditor.vue +996 -0
- package/editor/Editor.d.ts +57 -5
- package/editor/Editor.vue +25 -981
- package/editor/editor.cjs.js +241 -236
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +241 -236
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +241 -237
- package/editor/editor.min.js +1 -1
- package/fieldset/BaseFieldset.vue +65 -0
- package/fieldset/Fieldset.d.ts +12 -0
- package/fieldset/Fieldset.vue +9 -39
- package/fieldset/fieldset.cjs.js +150 -140
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +149 -139
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +150 -141
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/BaseFileUpload.vue +189 -0
- package/fileupload/FileContent.vue +10 -8
- package/fileupload/FileUpload.d.ts +12 -4
- package/fileupload/FileUpload.vue +29 -190
- package/fileupload/fileupload.cjs.js +817 -790
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +817 -790
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +817 -790
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +44 -0
- package/focustrap/focustrap.cjs.js +116 -102
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +116 -106
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +117 -104
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/BaseGalleria.vue +499 -0
- package/galleria/Galleria.d.ts +12 -0
- package/galleria/Galleria.vue +6 -413
- package/galleria/GalleriaContent.vue +8 -22
- package/galleria/GalleriaItem.vue +13 -27
- package/galleria/GalleriaThumbnails.vue +32 -56
- package/galleria/galleria.cjs.js +1164 -1247
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +1164 -1247
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1164 -1248
- package/galleria/galleria.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -9
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -9
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -9
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -9
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -9
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -9
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -9
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -9
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -9
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -9
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -9
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -9
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -9
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -9
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -9
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -9
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -9
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -9
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -9
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -9
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -9
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -9
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -9
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -9
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +29 -26
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +29 -26
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +30 -28
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +10 -3
- package/icons/arrowup/index.cjs.js +29 -26
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +29 -26
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +30 -28
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +10 -3
- package/icons/ban/index.cjs.js +27 -24
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +27 -24
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +28 -26
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +10 -3
- package/icons/bars/index.cjs.js +6 -9
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -9
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -9
- package/icons/bars/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -9
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -9
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -9
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -9
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -9
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -9
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -9
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -9
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -9
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -9
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -9
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -9
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -9
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -9
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -9
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -9
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -9
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -9
- package/icons/chevronup/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +35 -9
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +36 -10
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +36 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +10 -3
- package/icons/eye/index.cjs.js +6 -9
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -9
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -9
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +29 -26
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +29 -26
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +30 -28
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +10 -3
- package/icons/filter/index.cjs.js +27 -24
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +27 -24
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +28 -26
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +10 -3
- package/icons/filterslash/index.cjs.js +29 -26
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +29 -26
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +30 -28
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +10 -3
- package/icons/infocircle/index.cjs.js +29 -26
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +29 -26
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +30 -28
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +10 -3
- package/icons/minus/index.cjs.js +6 -9
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -9
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -9
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +27 -24
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +27 -24
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +28 -26
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +10 -3
- package/icons/plus/index.cjs.js +27 -24
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +27 -24
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +28 -26
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +10 -3
- package/icons/refresh/index.cjs.js +29 -26
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +29 -26
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +30 -28
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +10 -3
- package/icons/search/index.cjs.js +29 -26
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +29 -26
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +30 -28
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +10 -3
- package/icons/searchminus/index.cjs.js +29 -26
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +29 -26
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +30 -28
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +10 -3
- package/icons/searchplus/index.cjs.js +29 -26
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +29 -26
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +30 -28
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +10 -3
- package/icons/sortalt/index.cjs.js +39 -9
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +40 -10
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +40 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +10 -3
- package/icons/sortamountdown/index.cjs.js +24 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +25 -10
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +25 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +10 -3
- package/icons/sortamountupalt/index.cjs.js +24 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +25 -10
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +25 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +10 -3
- package/icons/spinner/index.cjs.js +27 -24
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +27 -24
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +28 -26
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +10 -3
- package/icons/star/index.cjs.js +27 -24
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +27 -24
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +28 -26
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +10 -3
- package/icons/starfill/index.cjs.js +27 -24
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +27 -24
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +28 -26
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +10 -3
- package/icons/thlarge/index.cjs.js +29 -26
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +29 -26
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +30 -28
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +10 -3
- package/icons/times/index.cjs.js +6 -9
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -9
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -9
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +29 -26
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +29 -26
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +30 -28
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +10 -3
- package/icons/trash/index.cjs.js +29 -26
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +29 -26
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +30 -28
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +10 -3
- package/icons/undo/index.cjs.js +29 -26
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +29 -26
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +30 -28
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +10 -3
- package/icons/upload/index.cjs.js +29 -26
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +29 -26
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +30 -28
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +10 -3
- package/icons/windowmaximize/index.cjs.js +29 -26
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +29 -26
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +30 -28
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +10 -3
- package/icons/windowminimize/index.cjs.js +29 -26
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +29 -26
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +30 -28
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +10 -3
- package/image/BaseImage.vue +153 -0
- package/image/Image.d.ts +12 -0
- package/image/Image.vue +17 -130
- package/image/image.cjs.js +385 -379
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +385 -379
- package/image/image.esm.min.js +1 -1
- package/image/image.js +385 -380
- package/image/image.min.js +1 -1
- package/inlinemessage/BaseInlineMessage.vue +54 -0
- package/inlinemessage/InlineMessage.d.ts +12 -0
- package/inlinemessage/InlineMessage.vue +5 -36
- package/inlinemessage/inlinemessage.cjs.js +80 -80
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +80 -80
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +81 -82
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/BaseInplace.vue +72 -0
- package/inplace/Inplace.d.ts +12 -0
- package/inplace/Inplace.vue +6 -58
- package/inplace/inplace.cjs.js +145 -145
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +144 -144
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +145 -146
- package/inplace/inplace.min.js +1 -1
- package/inputmask/BaseInputMask.vue +43 -0
- package/inputmask/InputMask.d.ts +11 -0
- package/inputmask/InputMask.vue +3 -34
- package/inputmask/inputmask.cjs.js +464 -519
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +464 -519
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +465 -520
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +288 -0
- package/inputnumber/InputNumber.d.ts +12 -0
- package/inputnumber/InputNumber.vue +50 -283
- package/inputnumber/inputnumber.cjs.js +1113 -1157
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1112 -1156
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1113 -1158
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +101 -0
- package/inputswitch/InputSwitch.d.ts +17 -0
- package/inputswitch/InputSwitch.vue +6 -83
- package/inputswitch/inputswitch.cjs.js +149 -138
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +149 -138
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +150 -140
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/BaseInputText.vue +34 -0
- package/inputtext/InputText.d.ts +15 -0
- package/inputtext/InputText.vue +10 -6
- package/inputtext/inputtext.cjs.js +58 -20
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +58 -20
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +58 -20
- package/inputtext/inputtext.min.js +1 -1
- package/knob/BaseKnob.vue +114 -0
- package/knob/Knob.d.ts +12 -0
- package/knob/Knob.vue +6 -101
- package/knob/knob.cjs.js +316 -326
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +316 -326
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +317 -328
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +156 -0
- package/listbox/Listbox.d.ts +12 -0
- package/listbox/Listbox.vue +45 -141
- package/listbox/listbox.cjs.js +925 -877
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +925 -877
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +925 -878
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +238 -0
- package/megamenu/MegaMenu.d.ts +16 -0
- package/megamenu/MegaMenu.vue +6 -129
- package/megamenu/MegaMenuSub.vue +27 -91
- package/megamenu/megamenu.cjs.js +1028 -979
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1029 -980
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1028 -980
- package/megamenu/megamenu.min.js +1 -1
- package/menu/BaseMenu.vue +112 -0
- package/menu/Menu.d.ts +12 -0
- package/menu/Menu.vue +15 -92
- package/menu/Menuitem.vue +22 -27
- package/menu/menu.cjs.js +609 -651
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +608 -650
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +609 -652
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +155 -0
- package/menubar/Menubar.d.ts +16 -0
- package/menubar/Menubar.vue +11 -110
- package/menubar/MenubarSub.vue +19 -55
- package/menubar/menubar.cjs.js +970 -923
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +970 -923
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +970 -924
- package/menubar/menubar.min.js +1 -1
- package/message/BaseMessage.vue +105 -0
- package/message/Message.d.ts +12 -0
- package/message/Message.vue +10 -89
- package/message/message.cjs.js +150 -154
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +149 -153
- package/message/message.esm.min.js +1 -1
- package/message/message.js +150 -155
- package/message/message.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +363 -0
- package/multiselect/MultiSelect.d.ts +12 -5
- package/multiselect/MultiSelect.vue +76 -373
- package/multiselect/multiselect.cjs.js +1513 -1449
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1513 -1449
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1513 -1450
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +146 -0
- package/orderlist/OrderList.d.ts +12 -0
- package/orderlist/OrderList.vue +35 -156
- package/orderlist/orderlist.cjs.js +627 -686
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +626 -685
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +627 -687
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +111 -0
- package/organizationchart/OrganizationChart.d.ts +12 -0
- package/organizationchart/OrganizationChart.vue +4 -80
- package/organizationchart/OrganizationChartNode.vue +15 -16
- package/organizationchart/organizationchart.cjs.js +315 -313
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +315 -313
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +316 -315
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +135 -0
- package/overlaypanel/OverlayPanel.d.ts +12 -0
- package/overlaypanel/OverlayPanel.vue +10 -122
- package/overlaypanel/overlaypanel.cjs.js +352 -374
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +351 -373
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +352 -375
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/BasePaginator.vue +147 -0
- package/paginator/CurrentPageReport.vue +2 -1
- package/paginator/FirstPageLink.vue +3 -12
- package/paginator/JumpToPageDropdown.vue +13 -1
- package/paginator/JumpToPageInput.vue +12 -1
- package/paginator/LastPageLink.vue +3 -12
- package/paginator/NextPageLink.vue +3 -12
- package/paginator/PageLinks.vue +4 -2
- package/paginator/Paginator.d.ts +41 -5
- package/paginator/Paginator.vue +19 -93
- package/paginator/PrevPageLink.vue +3 -12
- package/paginator/RowsPerPageDropdown.vue +13 -1
- package/paginator/paginator.cjs.js +753 -782
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +754 -783
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +753 -783
- package/paginator/paginator.min.js +1 -1
- package/panel/BasePanel.vue +67 -0
- package/panel/Panel.d.ts +12 -0
- package/panel/Panel.vue +11 -45
- package/panel/panel.cjs.js +151 -154
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +151 -154
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +151 -155
- package/panel/panel.min.js +1 -1
- package/panelmenu/BasePanelMenu.vue +118 -0
- package/panelmenu/PanelMenu.d.ts +16 -0
- package/panelmenu/PanelMenu.vue +28 -104
- package/panelmenu/PanelMenuList.vue +5 -3
- package/panelmenu/PanelMenuSub.vue +29 -49
- package/panelmenu/panelmenu.cjs.js +1034 -1007
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1034 -1007
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1034 -1008
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/BasePassword.vue +180 -0
- package/password/Password.d.ts +16 -0
- package/password/Password.vue +12 -176
- package/password/password.cjs.js +473 -479
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +472 -478
- package/password/password.esm.min.js +1 -1
- package/password/password.js +473 -480
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +167 -0
- package/picklist/PickList.d.ts +14 -2
- package/picklist/PickList.vue +46 -175
- package/picklist/picklist.cjs.js +1060 -1108
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1059 -1107
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1060 -1109
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +28 -32
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +28 -32
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +28 -32
- package/portal/portal.min.js +1 -1
- package/progressbar/BaseProgressBar.vue +158 -0
- package/progressbar/ProgressBar.d.ts +12 -0
- package/progressbar/ProgressBar.vue +7 -141
- package/progressbar/progressbar.cjs.js +80 -100
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +80 -100
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +81 -102
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/BaseProgressSpinner.vue +68 -0
- package/progressspinner/ProgressSpinner.d.ts +12 -0
- package/progressspinner/ProgressSpinner.vue +5 -47
- package/progressspinner/progressspinner.cjs.js +65 -72
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +65 -72
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +66 -74
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +72 -0
- package/radiobutton/RadioButton.d.ts +17 -0
- package/radiobutton/RadioButton.vue +7 -68
- package/radiobutton/radiobutton.cjs.js +145 -106
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +145 -106
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +146 -107
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/BaseRating.vue +98 -0
- package/rating/Rating.d.ts +30 -1
- package/rating/Rating.vue +13 -76
- package/rating/rating.cjs.js +238 -206
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +238 -206
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +238 -207
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +3 -521
- package/resources/primevue.min.css +3 -1
- package/ripple/Ripple.d.ts +48 -1
- package/ripple/ripple.cjs.js +102 -82
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +100 -84
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +102 -84
- package/ripple/ripple.min.js +1 -1
- package/row/Row.d.ts +25 -1
- package/row/row.cjs.js +5 -5
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +5 -5
- package/row/row.esm.min.js +1 -1
- package/row/row.js +5 -5
- package/row/row.min.js +1 -1
- package/scrollpanel/BaseScrollPanel.vue +92 -0
- package/scrollpanel/ScrollPanel.d.ts +12 -0
- package/scrollpanel/ScrollPanel.vue +29 -82
- package/scrollpanel/scrollpanel.cjs.js +370 -358
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +370 -358
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +370 -359
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/BaseScrollTop.vue +78 -0
- package/scrolltop/ScrollTop.d.ts +12 -0
- package/scrolltop/ScrollTop.vue +5 -61
- package/scrolltop/scrolltop.cjs.js +140 -147
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +140 -147
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +140 -148
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/BaseSelectButton.vue +46 -0
- package/selectbutton/SelectButton.d.ts +12 -0
- package/selectbutton/SelectButton.vue +11 -44
- package/selectbutton/selectbutton.cjs.js +241 -209
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +241 -209
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +242 -210
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/BaseSidebar.vue +255 -0
- package/sidebar/Sidebar.d.ts +12 -0
- package/sidebar/Sidebar.vue +10 -251
- package/sidebar/sidebar.cjs.js +316 -329
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +315 -328
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +316 -330
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/BaseSkeleton.vue +96 -0
- package/skeleton/Skeleton.d.ts +12 -0
- package/skeleton/Skeleton.vue +3 -74
- package/skeleton/skeleton.cjs.js +81 -75
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +81 -75
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +82 -77
- package/skeleton/skeleton.min.js +1 -1
- package/slider/BaseSlider.vue +118 -0
- package/slider/Slider.d.ts +12 -0
- package/slider/Slider.vue +13 -104
- package/slider/slider.cjs.js +411 -400
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +411 -400
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +411 -401
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +234 -0
- package/speeddial/SpeedDial.d.ts +12 -0
- package/speeddial/SpeedDial.vue +19 -237
- package/speeddial/speeddial.cjs.js +607 -614
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +606 -613
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +607 -615
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/BaseSplitButton.vue +149 -0
- package/splitbutton/SplitButton.d.ts +24 -2
- package/splitbutton/SplitButton.vue +17 -135
- package/splitbutton/splitbutton.cjs.js +230 -220
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +230 -220
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +230 -221
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/BaseSplitter.vue +101 -0
- package/splitter/Splitter.d.ts +12 -0
- package/splitter/Splitter.vue +13 -97
- package/splitter/splitter.cjs.js +427 -409
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +427 -409
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +427 -410
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/BaseSplitterPanel.vue +49 -0
- package/splitterpanel/SplitterPanel.d.ts +12 -0
- package/splitterpanel/SplitterPanel.vue +3 -16
- package/splitterpanel/splitterpanel.cjs.js +52 -26
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +52 -26
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +53 -28
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/BaseSteps.vue +112 -0
- package/steps/Steps.d.ts +12 -0
- package/steps/Steps.vue +14 -110
- package/steps/steps.cjs.js +248 -260
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +248 -260
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +248 -261
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +17 -0
- package/styleclass/styleclass.cjs.js +117 -141
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +113 -141
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +117 -142
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/BaseTabMenu.vue +100 -0
- package/tabmenu/TabMenu.d.ts +12 -0
- package/tabmenu/TabMenu.vue +39 -107
- package/tabmenu/tabmenu.cjs.js +365 -394
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +364 -393
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +365 -395
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/BaseTabPanel.vue +19 -0
- package/tabpanel/TabPanel.d.ts +19 -0
- package/tabpanel/TabPanel.vue +3 -13
- package/tabpanel/tabpanel.cjs.js +19 -14
- package/tabpanel/tabpanel.cjs.min.js +1 -1
- package/tabpanel/tabpanel.esm.js +19 -14
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +19 -14
- package/tabpanel/tabpanel.min.js +1 -1
- package/tabview/BaseTabView.vue +159 -0
- package/tabview/TabView.d.ts +16 -0
- package/tabview/TabView.vue +53 -172
- package/tabview/tabview.cjs.js +459 -459
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +458 -458
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +459 -460
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +59 -0
- package/tag/Tag.d.ts +12 -0
- package/tag/Tag.vue +6 -47
- package/tag/tag.cjs.js +58 -71
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +58 -71
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +59 -73
- package/tag/tag.min.js +1 -1
- package/terminal/BaseTerminal.vue +65 -0
- package/terminal/Terminal.d.ts +12 -0
- package/terminal/Terminal.vue +10 -45
- package/terminal/terminal.cjs.js +112 -107
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +111 -106
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +112 -108
- package/terminal/terminal.min.js +1 -1
- package/textarea/BaseTextarea.vue +45 -0
- package/textarea/Textarea.d.ts +12 -0
- package/textarea/Textarea.vue +3 -18
- package/textarea/textarea.cjs.js +80 -79
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +80 -79
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +81 -81
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +142 -0
- package/tieredmenu/TieredMenu.d.ts +16 -0
- package/tieredmenu/TieredMenu.vue +5 -105
- package/tieredmenu/TieredMenuSub.vue +23 -50
- package/tieredmenu/tieredmenu.cjs.js +987 -941
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +987 -941
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +987 -942
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/BaseTimeline.vue +155 -0
- package/timeline/Timeline.d.ts +11 -0
- package/timeline/Timeline.vue +9 -139
- package/timeline/timeline.cjs.js +87 -90
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +87 -90
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +87 -91
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +181 -0
- package/toast/Toast.d.ts +12 -0
- package/toast/Toast.vue +4 -155
- package/toast/ToastMessage.vue +9 -31
- package/toast/toast.cjs.js +389 -380
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +388 -379
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +389 -381
- package/toast/toast.min.js +1 -1
- package/toastservice/toastservice.cjs.js +15 -16
- package/toastservice/toastservice.cjs.min.js +1 -1
- package/toastservice/toastservice.esm.js +15 -16
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +15 -16
- package/toastservice/toastservice.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +85 -0
- package/togglebutton/ToggleButton.d.ts +12 -0
- package/togglebutton/ToggleButton.vue +7 -77
- package/togglebutton/togglebutton.cjs.js +193 -170
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +192 -169
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +194 -171
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/BaseToolbar.vue +55 -0
- package/toolbar/Toolbar.d.ts +12 -0
- package/toolbar/Toolbar.vue +7 -34
- package/toolbar/toolbar.cjs.js +50 -52
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +50 -52
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +51 -54
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +44 -0
- package/tooltip/tooltip.cjs.js +379 -400
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +379 -404
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +409 -432
- package/tooltip/tooltip.min.js +1 -1
- package/tree/BaseTree.vue +211 -0
- package/tree/Tree.d.ts +32 -10
- package/tree/Tree.vue +13 -173
- package/tree/TreeNode.vue +23 -45
- package/tree/tree.cjs.js +852 -855
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +852 -855
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +852 -856
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +184 -0
- package/treeselect/TreeSelect.d.ts +19 -2
- package/treeselect/TreeSelect.vue +21 -180
- package/treeselect/treeselect.cjs.js +675 -622
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +675 -622
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +675 -623
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +434 -0
- package/treetable/BodyCell.vue +30 -29
- package/treetable/FooterCell.vue +15 -11
- package/treetable/HeaderCell.vue +26 -21
- package/treetable/TreeTable.d.ts +29 -4
- package/treetable/TreeTable.vue +37 -379
- package/treetable/TreeTableRow.vue +9 -11
- package/treetable/treetable.cjs.js +2104 -2129
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2104 -2129
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2104 -2130
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
- package/tristatecheckbox/TriStateCheckbox.vue +12 -49
- package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +197 -145
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/useconfirm/useconfirm.cjs.js +6 -9
- package/useconfirm/useconfirm.cjs.min.js +1 -1
- package/useconfirm/useconfirm.esm.js +6 -9
- package/useconfirm/useconfirm.esm.min.js +1 -1
- package/useconfirm/useconfirm.js +6 -9
- package/useconfirm/useconfirm.min.js +1 -1
- package/usedialog/usedialog.cjs.js +6 -9
- package/usedialog/usedialog.cjs.min.js +1 -1
- package/usedialog/usedialog.esm.js +6 -9
- package/usedialog/usedialog.esm.min.js +1 -1
- package/usedialog/usedialog.js +6 -9
- package/usedialog/usedialog.min.js +1 -1
- package/usestyle/UseStyle.d.ts +19 -0
- package/usestyle/package.json +6 -0
- package/usestyle/usestyle.cjs.js +73 -0
- package/usestyle/usestyle.cjs.min.js +1 -0
- package/usestyle/usestyle.esm.js +69 -0
- package/usestyle/usestyle.esm.min.js +1 -0
- package/usestyle/usestyle.js +76 -0
- package/usestyle/usestyle.min.js +1 -0
- package/usetoast/usetoast.cjs.js +6 -9
- package/usetoast/usetoast.cjs.min.js +1 -1
- package/usetoast/usetoast.esm.js +6 -9
- package/usetoast/usetoast.esm.min.js +1 -1
- package/usetoast/usetoast.js +6 -9
- package/usetoast/usetoast.min.js +1 -1
- package/utils/Utils.d.ts +12 -1
- package/utils/utils.cjs.js +958 -996
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +958 -996
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +958 -996
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +332 -0
- package/vetur-tags.json +168 -80
- package/virtualscroller/BaseVirtualScroller.vue +164 -0
- package/virtualscroller/VirtualScroller.d.ts +22 -5
- package/virtualscroller/VirtualScroller.vue +6 -151
- package/virtualscroller/virtualscroller.cjs.js +865 -800
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +864 -799
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +865 -801
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +836 -4
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
package/treetable/treetable.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.treetable = (function (api,
|
|
2
|
+
this.primevue.treetable = (function (api, SpinnerIcon, Paginator, utils, BaseComponent, usestyle, vue, SortAltIcon, SortAmountDownIcon, SortAmountUpAltIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, MinusIcon, Ripple) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
-
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
7
|
var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
|
|
9
8
|
var Paginator__default = /*#__PURE__*/_interopDefaultLegacy(Paginator);
|
|
9
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
10
10
|
var SortAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAltIcon);
|
|
11
11
|
var SortAmountDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountDownIcon);
|
|
12
12
|
var SortAmountUpAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SortAmountUpAltIcon);
|
|
@@ -16,2246 +16,2220 @@ this.primevue.treetable = (function (api, BaseComponent, SpinnerIcon, Paginator,
|
|
|
16
16
|
var MinusIcon__default = /*#__PURE__*/_interopDefaultLegacy(MinusIcon);
|
|
17
17
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
props
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
var styles = "\n.p-treetable {\n position: relative;\n}\n\n.p-treetable table {\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n\n.p-treetable .p-sortable-column {\n cursor: pointer;\n user-select: none;\n}\n\n.p-treetable-responsive-scroll > .p-treetable-wrapper {\n overflow-x: auto;\n}\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\n.p-treetable-hoverable-rows .p-treetable-tbody > tr {\n cursor: pointer;\n}\n\n.p-treetable-toggler {\n cursor: pointer;\n user-select: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n overflow: hidden;\n position: relative;\n}\n\n.p-treetable-toggler + .p-checkbox {\n vertical-align: middle;\n}\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\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\n.p-treetable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n\n.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\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\n.p-treetable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n\n.p-treetable .p-treetable-loading-overlay {\n position: absolute;\n display: flex;\n align-items: 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\n.p-treetable-scrollable .p-treetable-table {\n display: block;\n}\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\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: flex;\n flex-wrap: nowrap;\n width: 100%;\n}\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: flex;\n flex: 1 1 0;\n align-items: center;\n}\n\n.p-treetable-scrollable .p-treetable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n\n.p-treetable-scrollable .p-treetable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n\n.p-treetable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n\n.p-treetable-scrollable th.p-frozen-column {\n z-index: 1;\n}\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 flex: 0 0 auto;\n}\n\n.p-treetable-flex-scrollable {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n.p-treetable-flex-scrollable .p-treetable-wrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n}\n";
|
|
20
|
+
var classes = {
|
|
21
|
+
root: function root(_ref) {
|
|
22
|
+
var props = _ref.props;
|
|
23
|
+
return ['p-treetable p-component', {
|
|
24
|
+
'p-treetable-hoverable-rows': props.rowHover || props.rowSelectionMode,
|
|
25
|
+
'p-treetable-auto-layout': props.autoLayout,
|
|
26
|
+
'p-treetable-resizable': props.resizableColumns,
|
|
27
|
+
'p-treetable-resizable-fit': props.resizableColumns && props.columnResizeMode === 'fit',
|
|
28
|
+
'p-treetable-gridlines': props.showGridlines,
|
|
29
|
+
'p-treetable-scrollable': props.scrollable,
|
|
30
|
+
'p-treetable-scrollable-vertical': props.scrollable && props.scrollDirection === 'vertical',
|
|
31
|
+
'p-treetable-scrollable-horizontal': props.scrollable && props.scrollDirection === 'horizontal',
|
|
32
|
+
'p-treetable-scrollable-both': props.scrollable && props.scrollDirection === 'both',
|
|
33
|
+
'p-treetable-flex-scrollable': props.scrollable && props.scrollHeight === 'flex',
|
|
34
|
+
'p-treetable-responsive-scroll': props.responsiveLayout === 'scroll'
|
|
35
|
+
}];
|
|
36
|
+
},
|
|
37
|
+
loadingWrapper: 'p-treetable-loading',
|
|
38
|
+
loadingOverlay: 'p-treetable-loading-overlay p-component-overlay',
|
|
39
|
+
loadingIcon: 'p-treetable-loading-icon',
|
|
40
|
+
header: 'p-treetable-header',
|
|
41
|
+
paginator: function paginator(_ref2) {
|
|
42
|
+
var instance = _ref2.instance;
|
|
43
|
+
return instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : '';
|
|
44
|
+
},
|
|
45
|
+
wrapper: 'p-treetable-wrapper',
|
|
46
|
+
thead: 'p-treetable-thead',
|
|
47
|
+
//headercell
|
|
48
|
+
headerCell: function headerCell(_ref3) {
|
|
49
|
+
var instance = _ref3.instance,
|
|
50
|
+
props = _ref3.props,
|
|
51
|
+
column = _ref3.column;
|
|
52
|
+
return column && instance.hasColumnFilter() ? ['p-filter-column', {
|
|
53
|
+
'p-frozen-column': instance.columnProp(column, 'frozen')
|
|
54
|
+
}] : [{
|
|
55
|
+
'p-sortable-column': instance.columnProp('sortable'),
|
|
56
|
+
'p-resizable-column': props.resizableColumns,
|
|
57
|
+
'p-highlight': instance.isColumnSorted(),
|
|
58
|
+
'p-frozen-column': instance.columnProp('frozen')
|
|
59
|
+
}];
|
|
60
|
+
},
|
|
61
|
+
columnResizer: 'p-column-resizer',
|
|
62
|
+
headerTitle: 'p-column-title',
|
|
63
|
+
sortIcon: 'p-sortable-column-icon',
|
|
64
|
+
sortBadge: 'p-sortable-column-badge',
|
|
65
|
+
tbody: 'p-treetable-tbody',
|
|
66
|
+
//ttrow
|
|
67
|
+
row: function row(_ref4) {
|
|
68
|
+
var instance = _ref4.instance;
|
|
69
|
+
return [{
|
|
70
|
+
'p-highlight': instance.selected
|
|
71
|
+
}];
|
|
72
|
+
},
|
|
73
|
+
//bodycell
|
|
74
|
+
bodyCell: function bodyCell(_ref5) {
|
|
75
|
+
var instance = _ref5.instance;
|
|
76
|
+
return [{
|
|
77
|
+
'p-frozen-column': instance.columnProp('frozen')
|
|
78
|
+
}];
|
|
79
|
+
},
|
|
80
|
+
rowToggler: 'p-treetable-toggler p-link',
|
|
81
|
+
rowTogglerIcon: 'p-tree-toggler-icon',
|
|
82
|
+
checkboxWrapper: function checkboxWrapper(_ref6) {
|
|
83
|
+
var instance = _ref6.instance;
|
|
84
|
+
return ['p-checkbox p-treetable-checkbox p-component', {
|
|
85
|
+
'p-checkbox-focused': instance.checkboxFocused
|
|
86
|
+
}];
|
|
87
|
+
},
|
|
88
|
+
checkbox: function checkbox(_ref7) {
|
|
89
|
+
var instance = _ref7.instance;
|
|
90
|
+
return ['p-checkbox-box', {
|
|
91
|
+
'p-highlight': instance.checked,
|
|
92
|
+
'p-focus': instance.checkboxFocused,
|
|
93
|
+
'p-indeterminate': instance.partialChecked
|
|
94
|
+
}];
|
|
95
|
+
},
|
|
96
|
+
checkboxicon: 'p-checkbox-icon',
|
|
97
|
+
//treetable
|
|
98
|
+
emptyMessage: 'p-treetable-emptymessage',
|
|
99
|
+
tfoot: 'p-treetable-tfoot',
|
|
100
|
+
//footercell
|
|
101
|
+
footerCell: function footerCell(_ref8) {
|
|
102
|
+
var instance = _ref8.instance;
|
|
103
|
+
return [{
|
|
104
|
+
'p-frozen-column': instance.columnProp('frozen')
|
|
105
|
+
}];
|
|
106
|
+
},
|
|
107
|
+
//treetable
|
|
108
|
+
footer: 'p-treetable-footer',
|
|
109
|
+
resizeHelper: 'p-column-resizer-helper p-highlight'
|
|
110
|
+
};
|
|
111
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
112
|
+
name: 'treetable',
|
|
113
|
+
manual: true
|
|
114
|
+
}),
|
|
115
|
+
loadStyle = _useStyle.load;
|
|
116
|
+
var script$5 = {
|
|
117
|
+
name: 'BaseTreeTable',
|
|
118
|
+
"extends": BaseComponent__default["default"],
|
|
119
|
+
props: {
|
|
120
|
+
value: {
|
|
121
|
+
type: null,
|
|
122
|
+
"default": null
|
|
27
123
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
124
|
+
expandedKeys: {
|
|
125
|
+
type: null,
|
|
126
|
+
"default": null
|
|
32
127
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
128
|
+
selectionKeys: {
|
|
129
|
+
type: null,
|
|
130
|
+
"default": null
|
|
37
131
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
132
|
+
selectionMode: {
|
|
133
|
+
type: String,
|
|
134
|
+
"default": null
|
|
42
135
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
136
|
+
metaKeySelection: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
"default": true
|
|
139
|
+
},
|
|
140
|
+
rows: {
|
|
141
|
+
type: Number,
|
|
142
|
+
"default": 0
|
|
143
|
+
},
|
|
144
|
+
first: {
|
|
145
|
+
type: Number,
|
|
146
|
+
"default": 0
|
|
147
|
+
},
|
|
148
|
+
totalRecords: {
|
|
149
|
+
type: Number,
|
|
150
|
+
"default": 0
|
|
151
|
+
},
|
|
152
|
+
paginator: {
|
|
153
|
+
type: Boolean,
|
|
154
|
+
"default": false
|
|
155
|
+
},
|
|
156
|
+
paginatorPosition: {
|
|
157
|
+
type: String,
|
|
158
|
+
"default": 'bottom'
|
|
159
|
+
},
|
|
160
|
+
alwaysShowPaginator: {
|
|
161
|
+
type: Boolean,
|
|
162
|
+
"default": true
|
|
163
|
+
},
|
|
164
|
+
paginatorTemplate: {
|
|
165
|
+
type: String,
|
|
166
|
+
"default": 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
|
|
167
|
+
},
|
|
168
|
+
pageLinkSize: {
|
|
169
|
+
type: Number,
|
|
170
|
+
"default": 5
|
|
171
|
+
},
|
|
172
|
+
rowsPerPageOptions: {
|
|
173
|
+
type: Array,
|
|
174
|
+
"default": null
|
|
175
|
+
},
|
|
176
|
+
currentPageReportTemplate: {
|
|
177
|
+
type: String,
|
|
178
|
+
"default": '({currentPage} of {totalPages})'
|
|
179
|
+
},
|
|
180
|
+
lazy: {
|
|
181
|
+
type: Boolean,
|
|
182
|
+
"default": false
|
|
183
|
+
},
|
|
184
|
+
loading: {
|
|
185
|
+
type: Boolean,
|
|
186
|
+
"default": false
|
|
187
|
+
},
|
|
188
|
+
loadingIcon: {
|
|
189
|
+
type: String,
|
|
190
|
+
"default": undefined
|
|
191
|
+
},
|
|
192
|
+
rowHover: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
"default": false
|
|
195
|
+
},
|
|
196
|
+
autoLayout: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
"default": false
|
|
199
|
+
},
|
|
200
|
+
sortField: {
|
|
201
|
+
type: [String, Function],
|
|
202
|
+
"default": null
|
|
203
|
+
},
|
|
204
|
+
sortOrder: {
|
|
205
|
+
type: Number,
|
|
206
|
+
"default": null
|
|
207
|
+
},
|
|
208
|
+
defaultSortOrder: {
|
|
209
|
+
type: Number,
|
|
210
|
+
"default": 1
|
|
211
|
+
},
|
|
212
|
+
multiSortMeta: {
|
|
213
|
+
type: Array,
|
|
214
|
+
"default": null
|
|
215
|
+
},
|
|
216
|
+
sortMode: {
|
|
217
|
+
type: String,
|
|
218
|
+
"default": 'single'
|
|
219
|
+
},
|
|
220
|
+
removableSort: {
|
|
221
|
+
type: Boolean,
|
|
222
|
+
"default": false
|
|
223
|
+
},
|
|
224
|
+
filters: {
|
|
225
|
+
type: Object,
|
|
226
|
+
"default": null
|
|
227
|
+
},
|
|
228
|
+
filterMode: {
|
|
229
|
+
type: String,
|
|
230
|
+
"default": 'lenient'
|
|
231
|
+
},
|
|
232
|
+
filterLocale: {
|
|
233
|
+
type: String,
|
|
234
|
+
"default": undefined
|
|
235
|
+
},
|
|
236
|
+
resizableColumns: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
"default": false
|
|
239
|
+
},
|
|
240
|
+
columnResizeMode: {
|
|
241
|
+
type: String,
|
|
242
|
+
"default": 'fit'
|
|
243
|
+
},
|
|
244
|
+
indentation: {
|
|
245
|
+
type: Number,
|
|
246
|
+
"default": 1
|
|
247
|
+
},
|
|
248
|
+
showGridlines: {
|
|
249
|
+
type: Boolean,
|
|
250
|
+
"default": false
|
|
251
|
+
},
|
|
252
|
+
scrollable: {
|
|
253
|
+
type: Boolean,
|
|
254
|
+
"default": false
|
|
255
|
+
},
|
|
256
|
+
scrollDirection: {
|
|
257
|
+
type: String,
|
|
258
|
+
"default": 'vertical'
|
|
259
|
+
},
|
|
260
|
+
scrollHeight: {
|
|
261
|
+
type: String,
|
|
262
|
+
"default": null
|
|
263
|
+
},
|
|
264
|
+
responsiveLayout: {
|
|
265
|
+
type: String,
|
|
266
|
+
"default": null
|
|
267
|
+
},
|
|
268
|
+
tableProps: {
|
|
269
|
+
type: Object,
|
|
270
|
+
"default": null
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
css: {
|
|
274
|
+
classes: classes,
|
|
275
|
+
loadStyle: loadStyle
|
|
276
|
+
},
|
|
277
|
+
provide: function provide() {
|
|
278
|
+
return {
|
|
279
|
+
$parentInstance: this
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
};
|
|
79
283
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
284
|
+
function _typeof$8(obj) { "@babel/helpers - typeof"; return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$8(obj); }
|
|
285
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
286
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$8(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
287
|
+
function _defineProperty$8(obj, key, value) { key = _toPropertyKey$8(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
288
|
+
function _toPropertyKey$8(arg) { var key = _toPrimitive$8(arg, "string"); return _typeof$8(key) === "symbol" ? key : String(key); }
|
|
289
|
+
function _toPrimitive$8(input, hint) { if (_typeof$8(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$8(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
290
|
+
var script$4 = {
|
|
291
|
+
name: 'FooterCell',
|
|
292
|
+
hostName: 'TreeTable',
|
|
293
|
+
"extends": BaseComponent__default["default"],
|
|
294
|
+
props: {
|
|
295
|
+
column: {
|
|
296
|
+
type: Object,
|
|
297
|
+
"default": null
|
|
298
|
+
},
|
|
299
|
+
index: {
|
|
300
|
+
type: Number,
|
|
301
|
+
"default": null
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
data: function data() {
|
|
305
|
+
return {
|
|
306
|
+
styleObject: {}
|
|
307
|
+
};
|
|
308
|
+
},
|
|
309
|
+
mounted: function mounted() {
|
|
310
|
+
if (this.columnProp('frozen')) {
|
|
311
|
+
this.updateStickyPosition();
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
updated: function updated() {
|
|
315
|
+
if (this.columnProp('frozen')) {
|
|
316
|
+
this.updateStickyPosition();
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
methods: {
|
|
320
|
+
columnProp: function columnProp(prop) {
|
|
321
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
322
|
+
},
|
|
323
|
+
getColumnPT: function getColumnPT(key) {
|
|
324
|
+
var columnMetaData = {
|
|
325
|
+
props: this.column.props,
|
|
326
|
+
parent: {
|
|
327
|
+
props: this.$props,
|
|
328
|
+
state: this.$data
|
|
329
|
+
},
|
|
330
|
+
context: {
|
|
331
|
+
index: this.index
|
|
83
332
|
}
|
|
333
|
+
};
|
|
334
|
+
return _objectSpread$8(_objectSpread$8({}, this.ptm("column.".concat(key), {
|
|
335
|
+
column: columnMetaData
|
|
336
|
+
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
84
337
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
338
|
+
getColumnProp: function getColumnProp() {
|
|
339
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined;
|
|
340
|
+
},
|
|
341
|
+
updateStickyPosition: function updateStickyPosition() {
|
|
342
|
+
if (this.columnProp('frozen')) {
|
|
343
|
+
var align = this.columnProp('alignFrozen');
|
|
344
|
+
if (align === 'right') {
|
|
345
|
+
var right = 0;
|
|
346
|
+
var next = this.$el.nextElementSibling;
|
|
347
|
+
if (next) {
|
|
348
|
+
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
349
|
+
}
|
|
350
|
+
this.styleObject.right = right + 'px';
|
|
351
|
+
} else {
|
|
352
|
+
var left = 0;
|
|
353
|
+
var prev = this.$el.previousElementSibling;
|
|
354
|
+
if (prev) {
|
|
355
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
356
|
+
}
|
|
357
|
+
this.styleObject.left = left + 'px';
|
|
100
358
|
}
|
|
359
|
+
}
|
|
101
360
|
}
|
|
361
|
+
},
|
|
362
|
+
computed: {
|
|
363
|
+
containerClass: function containerClass() {
|
|
364
|
+
return [this.columnProp('footerClass'), this.columnProp('class'), this.cx('footerCell')];
|
|
365
|
+
},
|
|
366
|
+
containerStyle: function containerStyle() {
|
|
367
|
+
var bodyStyle = this.columnProp('footerStyle');
|
|
368
|
+
var columnStyle = this.columnProp('style');
|
|
369
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
370
|
+
}
|
|
371
|
+
}
|
|
102
372
|
};
|
|
103
373
|
|
|
374
|
+
function _typeof$7(obj) { "@babel/helpers - typeof"; return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$7(obj); }
|
|
375
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
376
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
377
|
+
function _defineProperty$7(obj, key, value) { key = _toPropertyKey$7(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
378
|
+
function _toPropertyKey$7(arg) { var key = _toPrimitive$7(arg, "string"); return _typeof$7(key) === "symbol" ? key : String(key); }
|
|
379
|
+
function _toPrimitive$7(input, hint) { if (_typeof$7(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$7(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
104
380
|
function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
105
|
-
return
|
|
381
|
+
return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
106
382
|
style: $options.containerStyle,
|
|
107
|
-
class: $options.containerClass,
|
|
383
|
+
"class": $options.containerClass,
|
|
108
384
|
role: "cell"
|
|
109
|
-
}, {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
column: $props.column
|
|
114
|
-
}, null, 8, ["column"]))
|
|
115
|
-
: vue.createCommentVNode("", true),
|
|
116
|
-
vue.createTextVNode(" " + vue.toDisplayString($options.columnProp('footer')), 1)
|
|
117
|
-
], 16))
|
|
385
|
+
}, _objectSpread$7(_objectSpread$7({}, $options.getColumnPT('root')), $options.getColumnPT('footerCell'))), [$props.column.children && $props.column.children.footer ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.footer), {
|
|
386
|
+
key: 0,
|
|
387
|
+
column: $props.column
|
|
388
|
+
}, null, 8, ["column"])) : vue.createCommentVNode("", true), vue.createTextVNode(" " + vue.toDisplayString($options.columnProp('footer')), 1)], 16);
|
|
118
389
|
}
|
|
119
390
|
|
|
120
391
|
script$4.render = render$4;
|
|
121
392
|
|
|
393
|
+
function _typeof$6(obj) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$6(obj); }
|
|
394
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
395
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty$6(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
396
|
+
function _defineProperty$6(obj, key, value) { key = _toPropertyKey$6(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
397
|
+
function _toPropertyKey$6(arg) { var key = _toPrimitive$6(arg, "string"); return _typeof$6(key) === "symbol" ? key : String(key); }
|
|
398
|
+
function _toPrimitive$6(input, hint) { if (_typeof$6(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$6(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
122
399
|
var script$3 = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
resizableColumns: {
|
|
132
|
-
type: Boolean,
|
|
133
|
-
default: false
|
|
134
|
-
},
|
|
135
|
-
sortField: {
|
|
136
|
-
type: [String, Function],
|
|
137
|
-
default: null
|
|
138
|
-
},
|
|
139
|
-
sortOrder: {
|
|
140
|
-
type: Number,
|
|
141
|
-
default: null
|
|
142
|
-
},
|
|
143
|
-
multiSortMeta: {
|
|
144
|
-
type: Array,
|
|
145
|
-
default: null
|
|
146
|
-
},
|
|
147
|
-
sortMode: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: 'single'
|
|
150
|
-
}
|
|
400
|
+
name: 'HeaderCell',
|
|
401
|
+
hostName: 'TreeTable',
|
|
402
|
+
"extends": BaseComponent__default["default"],
|
|
403
|
+
emits: ['column-click', 'column-resizestart'],
|
|
404
|
+
props: {
|
|
405
|
+
column: {
|
|
406
|
+
type: Object,
|
|
407
|
+
"default": null
|
|
151
408
|
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
409
|
+
resizableColumns: {
|
|
410
|
+
type: Boolean,
|
|
411
|
+
"default": false
|
|
412
|
+
},
|
|
413
|
+
sortField: {
|
|
414
|
+
type: [String, Function],
|
|
415
|
+
"default": null
|
|
416
|
+
},
|
|
417
|
+
sortOrder: {
|
|
418
|
+
type: Number,
|
|
419
|
+
"default": null
|
|
420
|
+
},
|
|
421
|
+
multiSortMeta: {
|
|
422
|
+
type: Array,
|
|
423
|
+
"default": null
|
|
424
|
+
},
|
|
425
|
+
sortMode: {
|
|
426
|
+
type: String,
|
|
427
|
+
"default": 'single'
|
|
428
|
+
},
|
|
429
|
+
index: {
|
|
430
|
+
type: Number,
|
|
431
|
+
"default": null
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
data: function data() {
|
|
435
|
+
return {
|
|
436
|
+
styleObject: {}
|
|
437
|
+
};
|
|
438
|
+
},
|
|
439
|
+
mounted: function mounted() {
|
|
440
|
+
if (this.columnProp('frozen')) {
|
|
441
|
+
this.updateStickyPosition();
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
updated: function updated() {
|
|
445
|
+
if (this.columnProp('frozen')) {
|
|
446
|
+
this.updateStickyPosition();
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
methods: {
|
|
450
|
+
columnProp: function columnProp(prop) {
|
|
451
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
156
452
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
453
|
+
getColumnPT: function getColumnPT(key) {
|
|
454
|
+
var columnMetaData = {
|
|
455
|
+
props: this.column.props,
|
|
456
|
+
parent: {
|
|
457
|
+
props: this.$props,
|
|
458
|
+
state: this.$data
|
|
459
|
+
},
|
|
460
|
+
context: {
|
|
461
|
+
index: this.index
|
|
160
462
|
}
|
|
463
|
+
};
|
|
464
|
+
return _objectSpread$6(_objectSpread$6({}, this.ptm("column.".concat(key), {
|
|
465
|
+
column: columnMetaData
|
|
466
|
+
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
161
467
|
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
468
|
+
getColumnProp: function getColumnProp() {
|
|
469
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo:
|
|
470
|
+
},
|
|
471
|
+
updateStickyPosition: function updateStickyPosition() {
|
|
472
|
+
if (this.columnProp('frozen')) {
|
|
473
|
+
var align = this.columnProp('alignFrozen');
|
|
474
|
+
if (align === 'right') {
|
|
475
|
+
var right = 0;
|
|
476
|
+
var next = this.$el.nextElementSibling;
|
|
477
|
+
if (next) {
|
|
478
|
+
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
479
|
+
}
|
|
480
|
+
this.styleObject.right = right + 'px';
|
|
481
|
+
} else {
|
|
482
|
+
var left = 0;
|
|
483
|
+
var prev = this.$el.previousElementSibling;
|
|
484
|
+
if (prev) {
|
|
485
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
486
|
+
}
|
|
487
|
+
this.styleObject.left = left + 'px';
|
|
488
|
+
}
|
|
489
|
+
var filterRow = this.$el.parentElement.nextElementSibling;
|
|
490
|
+
if (filterRow) {
|
|
491
|
+
var index = utils.DomHandler.index(this.$el);
|
|
492
|
+
filterRow.children[index].style.left = this.styleObject.left;
|
|
493
|
+
filterRow.children[index].style.right = this.styleObject.right;
|
|
165
494
|
}
|
|
495
|
+
}
|
|
166
496
|
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
this.styleObject.right = right + 'px';
|
|
196
|
-
} else {
|
|
197
|
-
let left = 0;
|
|
198
|
-
let prev = this.$el.previousElementSibling;
|
|
199
|
-
|
|
200
|
-
if (prev) {
|
|
201
|
-
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
this.styleObject.left = left + 'px';
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
let filterRow = this.$el.parentElement.nextElementSibling;
|
|
208
|
-
|
|
209
|
-
if (filterRow) {
|
|
210
|
-
let index = utils.DomHandler.index(this.$el);
|
|
211
|
-
|
|
212
|
-
filterRow.children[index].style.left = this.styleObject.left;
|
|
213
|
-
filterRow.children[index].style.right = this.styleObject.right;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
onClick(event) {
|
|
218
|
-
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
219
|
-
},
|
|
220
|
-
onKeyDown(event) {
|
|
221
|
-
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
222
|
-
this.$emit('column-click', { originalEvent: event, column: this.column });
|
|
223
|
-
|
|
224
|
-
event.preventDefault();
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
onResizeStart(event) {
|
|
228
|
-
this.$emit('column-resizestart', event);
|
|
229
|
-
},
|
|
230
|
-
getMultiSortMetaIndex() {
|
|
231
|
-
let index = -1;
|
|
232
|
-
|
|
233
|
-
for (let i = 0; i < this.multiSortMeta.length; i++) {
|
|
234
|
-
let meta = this.multiSortMeta[i];
|
|
235
|
-
|
|
236
|
-
if (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')) {
|
|
237
|
-
index = i;
|
|
238
|
-
break;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
return index;
|
|
243
|
-
},
|
|
244
|
-
isMultiSorted() {
|
|
245
|
-
return this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1;
|
|
246
|
-
},
|
|
247
|
-
isColumnSorted() {
|
|
248
|
-
return this.sortMode === 'single' ? this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField')) : this.isMultiSorted();
|
|
497
|
+
onClick: function onClick(event) {
|
|
498
|
+
this.$emit('column-click', {
|
|
499
|
+
originalEvent: event,
|
|
500
|
+
column: this.column
|
|
501
|
+
});
|
|
502
|
+
},
|
|
503
|
+
onKeyDown: function onKeyDown(event) {
|
|
504
|
+
if ((event.code === 'Enter' || event.code === 'Space') && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
505
|
+
this.$emit('column-click', {
|
|
506
|
+
originalEvent: event,
|
|
507
|
+
column: this.column
|
|
508
|
+
});
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
onResizeStart: function onResizeStart(event) {
|
|
513
|
+
this.$emit('column-resizestart', event);
|
|
514
|
+
},
|
|
515
|
+
getMultiSortMetaIndex: function getMultiSortMetaIndex() {
|
|
516
|
+
var index = -1;
|
|
517
|
+
for (var i = 0; i < this.multiSortMeta.length; i++) {
|
|
518
|
+
var meta = this.multiSortMeta[i];
|
|
519
|
+
if (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')) {
|
|
520
|
+
index = i;
|
|
521
|
+
break;
|
|
249
522
|
}
|
|
523
|
+
}
|
|
524
|
+
return index;
|
|
250
525
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
let metaIndex = this.getMultiSortMetaIndex();
|
|
279
|
-
|
|
280
|
-
if (metaIndex > -1) {
|
|
281
|
-
sorted = true;
|
|
282
|
-
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
return {
|
|
287
|
-
sorted,
|
|
288
|
-
sortOrder
|
|
289
|
-
};
|
|
290
|
-
},
|
|
291
|
-
sortableColumnIcon() {
|
|
292
|
-
const { sorted, sortOrder } = this.sortState;
|
|
293
|
-
|
|
294
|
-
if (!sorted) return SortAltIcon__default["default"];
|
|
295
|
-
else if (sorted && sortOrder > 0) return SortAmountUpAltIcon__default["default"];
|
|
296
|
-
else if (sorted && sortOrder < 0) return SortAmountDownIcon__default["default"];
|
|
297
|
-
|
|
298
|
-
return null;
|
|
299
|
-
},
|
|
300
|
-
ariaSort() {
|
|
301
|
-
if (this.columnProp('sortable')) {
|
|
302
|
-
const { sorted, sortOrder } = this.sortState;
|
|
303
|
-
|
|
304
|
-
if (sorted && sortOrder < 0) return 'descending';
|
|
305
|
-
else if (sorted && sortOrder > 0) return 'ascending';
|
|
306
|
-
else return 'none';
|
|
307
|
-
} else {
|
|
308
|
-
return null;
|
|
309
|
-
}
|
|
526
|
+
isMultiSorted: function isMultiSorted() {
|
|
527
|
+
return this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1;
|
|
528
|
+
},
|
|
529
|
+
isColumnSorted: function isColumnSorted() {
|
|
530
|
+
return this.sortMode === 'single' ? this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField')) : this.isMultiSorted();
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
computed: {
|
|
534
|
+
containerClass: function containerClass() {
|
|
535
|
+
return [this.columnProp('headerClass'), this.columnProp('class'), this.cx('headerCell')];
|
|
536
|
+
},
|
|
537
|
+
containerStyle: function containerStyle() {
|
|
538
|
+
var headerStyle = this.columnProp('headerStyle');
|
|
539
|
+
var columnStyle = this.columnProp('style');
|
|
540
|
+
return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject] : [columnStyle, headerStyle];
|
|
541
|
+
},
|
|
542
|
+
sortState: function sortState() {
|
|
543
|
+
var sorted = false;
|
|
544
|
+
var sortOrder = null;
|
|
545
|
+
if (this.sortMode === 'single') {
|
|
546
|
+
sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
|
|
547
|
+
sortOrder = sorted ? this.sortOrder : 0;
|
|
548
|
+
} else if (this.sortMode === 'multiple') {
|
|
549
|
+
var metaIndex = this.getMultiSortMetaIndex();
|
|
550
|
+
if (metaIndex > -1) {
|
|
551
|
+
sorted = true;
|
|
552
|
+
sortOrder = this.multiSortMeta[metaIndex].order;
|
|
310
553
|
}
|
|
554
|
+
}
|
|
555
|
+
return {
|
|
556
|
+
sorted: sorted,
|
|
557
|
+
sortOrder: sortOrder
|
|
558
|
+
};
|
|
559
|
+
},
|
|
560
|
+
sortableColumnIcon: function sortableColumnIcon() {
|
|
561
|
+
var _this$sortState = this.sortState,
|
|
562
|
+
sorted = _this$sortState.sorted,
|
|
563
|
+
sortOrder = _this$sortState.sortOrder;
|
|
564
|
+
if (!sorted) return SortAltIcon__default["default"];else if (sorted && sortOrder > 0) return SortAmountUpAltIcon__default["default"];else if (sorted && sortOrder < 0) return SortAmountDownIcon__default["default"];
|
|
565
|
+
return null;
|
|
311
566
|
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
567
|
+
ariaSort: function ariaSort() {
|
|
568
|
+
if (this.columnProp('sortable')) {
|
|
569
|
+
var _this$sortState2 = this.sortState,
|
|
570
|
+
sorted = _this$sortState2.sorted,
|
|
571
|
+
sortOrder = _this$sortState2.sortOrder;
|
|
572
|
+
if (sorted && sortOrder < 0) return 'descending';else if (sorted && sortOrder > 0) return 'ascending';else return 'none';
|
|
573
|
+
} else {
|
|
574
|
+
return null;
|
|
575
|
+
}
|
|
316
576
|
}
|
|
577
|
+
},
|
|
578
|
+
components: {
|
|
579
|
+
SortAltIcon: SortAltIcon__default["default"],
|
|
580
|
+
SortAmountUpAltIcon: SortAmountUpAltIcon__default["default"],
|
|
581
|
+
SortAmountDownIcon: SortAmountDownIcon__default["default"]
|
|
582
|
+
}
|
|
317
583
|
};
|
|
318
584
|
|
|
319
|
-
|
|
320
|
-
|
|
585
|
+
function _typeof$5(obj) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$5(obj); }
|
|
586
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
587
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$5(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
588
|
+
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$5(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
589
|
+
function _toPropertyKey$5(arg) { var key = _toPrimitive$5(arg, "string"); return _typeof$5(key) === "symbol" ? key : String(key); }
|
|
590
|
+
function _toPrimitive$5(input, hint) { if (_typeof$5(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$5(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
591
|
+
var _hoisted_1$2 = ["tabindex", "aria-sort", "data-p-sortable-column", "data-p-resizable-column", "data-p-highlight", "data-p-frozen-column"];
|
|
321
592
|
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
322
|
-
return
|
|
593
|
+
return vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
|
|
594
|
+
"class": $options.containerClass,
|
|
323
595
|
style: [$options.containerStyle],
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
596
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
597
|
+
return $options.onClick && $options.onClick.apply($options, arguments);
|
|
598
|
+
}),
|
|
599
|
+
onKeydown: _cache[2] || (_cache[2] = function () {
|
|
600
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
601
|
+
}),
|
|
327
602
|
tabindex: $options.columnProp('sortable') ? '0' : null,
|
|
328
603
|
"aria-sort": $options.ariaSort,
|
|
329
604
|
role: "columnheader"
|
|
330
|
-
}, {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
(
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
], 16))
|
|
358
|
-
: vue.createCommentVNode("", true),
|
|
359
|
-
($options.isMultiSorted())
|
|
360
|
-
? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
361
|
-
key: 4,
|
|
362
|
-
class: "p-sortable-column-badge"
|
|
363
|
-
}, $options.getColumnPTOptions('sortBadge')), vue.toDisplayString($options.getMultiSortMetaIndex() + 1), 17))
|
|
364
|
-
: vue.createCommentVNode("", true)
|
|
365
|
-
], 16, _hoisted_1$2))
|
|
605
|
+
}, _objectSpread$5(_objectSpread$5({}, $options.getColumnPT('root')), $options.getColumnPT('headerCell')), {
|
|
606
|
+
"data-p-sortable-column": $options.columnProp('sortable'),
|
|
607
|
+
"data-p-resizable-column": $props.resizableColumns,
|
|
608
|
+
"data-p-highlight": $options.isColumnSorted(),
|
|
609
|
+
"data-p-frozen-column": $options.columnProp('frozen')
|
|
610
|
+
}), [$props.resizableColumns && !$options.columnProp('frozen') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
611
|
+
key: 0,
|
|
612
|
+
"class": _ctx.cx('columnResizer'),
|
|
613
|
+
onMousedown: _cache[0] || (_cache[0] = function () {
|
|
614
|
+
return $options.onResizeStart && $options.onResizeStart.apply($options, arguments);
|
|
615
|
+
})
|
|
616
|
+
}, $options.getColumnPT('columnResizer')), null, 16)) : vue.createCommentVNode("", true), $props.column.children && $props.column.children.header ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.header), {
|
|
617
|
+
key: 1,
|
|
618
|
+
column: $props.column
|
|
619
|
+
}, null, 8, ["column"])) : vue.createCommentVNode("", true), $options.columnProp('header') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
620
|
+
key: 2,
|
|
621
|
+
"class": _ctx.cx('headerTitle')
|
|
622
|
+
}, $options.getColumnPT('headerTitle')), vue.toDisplayString($options.columnProp('header')), 17)) : vue.createCommentVNode("", true), $options.columnProp('sortable') ? (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
|
|
623
|
+
key: 3
|
|
624
|
+
}, $options.getColumnPT('sort'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children && $props.column.children.sorticon || $options.sortableColumnIcon), {
|
|
625
|
+
sorted: $options.sortState.sorted,
|
|
626
|
+
sortOrder: $options.sortState.sortOrder,
|
|
627
|
+
"class": vue.normalizeClass(_ctx.cx('sortIcon'))
|
|
628
|
+
}, null, 8, ["sorted", "sortOrder", "class"]))], 16)) : vue.createCommentVNode("", true), $options.isMultiSorted() ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
629
|
+
key: 4,
|
|
630
|
+
"class": _ctx.cx('sortBadge')
|
|
631
|
+
}, $options.getColumnPT('sortBadge')), vue.toDisplayString($options.getMultiSortMetaIndex() + 1), 17)) : vue.createCommentVNode("", true)], 16, _hoisted_1$2);
|
|
366
632
|
}
|
|
367
633
|
|
|
368
634
|
script$3.render = render$3;
|
|
369
635
|
|
|
636
|
+
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
|
|
637
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
638
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
639
|
+
function _defineProperty$4(obj, key, value) { key = _toPropertyKey$4(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
640
|
+
function _toPropertyKey$4(arg) { var key = _toPrimitive$4(arg, "string"); return _typeof$4(key) === "symbol" ? key : String(key); }
|
|
641
|
+
function _toPrimitive$4(input, hint) { if (_typeof$4(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$4(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
370
642
|
var script$2 = {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
column: {
|
|
380
|
-
type: Object,
|
|
381
|
-
default: null
|
|
382
|
-
},
|
|
383
|
-
level: {
|
|
384
|
-
type: Number,
|
|
385
|
-
default: 0
|
|
386
|
-
},
|
|
387
|
-
indentation: {
|
|
388
|
-
type: Number,
|
|
389
|
-
default: 1
|
|
390
|
-
},
|
|
391
|
-
leaf: {
|
|
392
|
-
type: Boolean,
|
|
393
|
-
default: false
|
|
394
|
-
},
|
|
395
|
-
expanded: {
|
|
396
|
-
type: Boolean,
|
|
397
|
-
default: false
|
|
398
|
-
},
|
|
399
|
-
selectionMode: {
|
|
400
|
-
type: String,
|
|
401
|
-
default: null
|
|
402
|
-
},
|
|
403
|
-
checked: {
|
|
404
|
-
type: Boolean,
|
|
405
|
-
default: false
|
|
406
|
-
},
|
|
407
|
-
partialChecked: {
|
|
408
|
-
type: Boolean,
|
|
409
|
-
default: false
|
|
410
|
-
},
|
|
411
|
-
templates: {
|
|
412
|
-
type: Object,
|
|
413
|
-
default: null
|
|
414
|
-
}
|
|
643
|
+
name: 'BodyCell',
|
|
644
|
+
hostName: 'TreeTable',
|
|
645
|
+
"extends": BaseComponent__default["default"],
|
|
646
|
+
emits: ['node-toggle', 'checkbox-toggle'],
|
|
647
|
+
props: {
|
|
648
|
+
node: {
|
|
649
|
+
type: Object,
|
|
650
|
+
"default": null
|
|
415
651
|
},
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
checkboxFocused: false
|
|
420
|
-
};
|
|
652
|
+
column: {
|
|
653
|
+
type: Object,
|
|
654
|
+
"default": null
|
|
421
655
|
},
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
656
|
+
level: {
|
|
657
|
+
type: Number,
|
|
658
|
+
"default": 0
|
|
659
|
+
},
|
|
660
|
+
indentation: {
|
|
661
|
+
type: Number,
|
|
662
|
+
"default": 1
|
|
663
|
+
},
|
|
664
|
+
leaf: {
|
|
665
|
+
type: Boolean,
|
|
666
|
+
"default": false
|
|
667
|
+
},
|
|
668
|
+
expanded: {
|
|
669
|
+
type: Boolean,
|
|
670
|
+
"default": false
|
|
671
|
+
},
|
|
672
|
+
selectionMode: {
|
|
673
|
+
type: String,
|
|
674
|
+
"default": null
|
|
675
|
+
},
|
|
676
|
+
checked: {
|
|
677
|
+
type: Boolean,
|
|
678
|
+
"default": false
|
|
679
|
+
},
|
|
680
|
+
partialChecked: {
|
|
681
|
+
type: Boolean,
|
|
682
|
+
"default": false
|
|
683
|
+
},
|
|
684
|
+
templates: {
|
|
685
|
+
type: Object,
|
|
686
|
+
"default": null
|
|
687
|
+
},
|
|
688
|
+
index: {
|
|
689
|
+
type: Number,
|
|
690
|
+
"default": null
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
data: function data() {
|
|
694
|
+
return {
|
|
695
|
+
styleObject: {},
|
|
696
|
+
checkboxFocused: false
|
|
697
|
+
};
|
|
698
|
+
},
|
|
699
|
+
mounted: function mounted() {
|
|
700
|
+
if (this.columnProp('frozen')) {
|
|
701
|
+
this.updateStickyPosition();
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
updated: function updated() {
|
|
705
|
+
if (this.columnProp('frozen')) {
|
|
706
|
+
this.updateStickyPosition();
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
methods: {
|
|
710
|
+
toggle: function toggle() {
|
|
711
|
+
this.$emit('node-toggle', this.node);
|
|
712
|
+
},
|
|
713
|
+
columnProp: function columnProp(prop) {
|
|
714
|
+
return utils.ObjectUtils.getVNodeProp(this.column, prop);
|
|
426
715
|
},
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
716
|
+
getColumnPT: function getColumnPT(key) {
|
|
717
|
+
var columnMetaData = {
|
|
718
|
+
props: this.column.props,
|
|
719
|
+
parent: {
|
|
720
|
+
props: this.$props,
|
|
721
|
+
state: this.$data
|
|
722
|
+
},
|
|
723
|
+
context: {
|
|
724
|
+
index: this.index
|
|
430
725
|
}
|
|
726
|
+
};
|
|
727
|
+
return _objectSpread$4(_objectSpread$4({}, this.ptm("column.".concat(key), {
|
|
728
|
+
column: columnMetaData
|
|
729
|
+
})), this.ptmo(this.getColumnProp(), key, columnMetaData));
|
|
431
730
|
},
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
447
|
-
},
|
|
448
|
-
getColumnCheckboxPTOptions(key) {
|
|
449
|
-
return this.ptmo(this.getColumnProp(), key, {
|
|
450
|
-
props: this.column.props,
|
|
451
|
-
parent: {
|
|
452
|
-
props: this.$props,
|
|
453
|
-
state: this.$data
|
|
454
|
-
},
|
|
455
|
-
context: {
|
|
456
|
-
checked: this.checked,
|
|
457
|
-
focused: this.checkboxFocused,
|
|
458
|
-
partialChecked: this.partialChecked
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
},
|
|
462
|
-
getColumnProp() {
|
|
463
|
-
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo
|
|
464
|
-
},
|
|
465
|
-
updateStickyPosition() {
|
|
466
|
-
if (this.columnProp('frozen')) {
|
|
467
|
-
let align = this.columnProp('alignFrozen');
|
|
468
|
-
|
|
469
|
-
if (align === 'right') {
|
|
470
|
-
let right = 0;
|
|
471
|
-
let next = this.$el.nextElementSibling;
|
|
472
|
-
|
|
473
|
-
if (next) {
|
|
474
|
-
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
this.styleObject.right = right + 'px';
|
|
478
|
-
} else {
|
|
479
|
-
let left = 0;
|
|
480
|
-
let prev = this.$el.previousElementSibling;
|
|
481
|
-
|
|
482
|
-
if (prev) {
|
|
483
|
-
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
this.styleObject.left = left + 'px';
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
resolveFieldData(rowData, field) {
|
|
491
|
-
return utils.ObjectUtils.resolveFieldData(rowData, field);
|
|
492
|
-
},
|
|
493
|
-
toggleCheckbox() {
|
|
494
|
-
this.$emit('checkbox-toggle');
|
|
495
|
-
},
|
|
496
|
-
onCheckboxFocus() {
|
|
497
|
-
this.checkboxFocused = true;
|
|
498
|
-
},
|
|
499
|
-
onCheckboxBlur() {
|
|
500
|
-
this.checkboxFocused = false;
|
|
731
|
+
getColumnProp: function getColumnProp() {
|
|
732
|
+
return this.column.props && this.column.props.pt ? this.column.props.pt : undefined; //@todo
|
|
733
|
+
},
|
|
734
|
+
getColumnCheckboxPT: function getColumnCheckboxPT(key) {
|
|
735
|
+
return this.ptmo(this.getColumnProp(), key, {
|
|
736
|
+
props: this.column.props,
|
|
737
|
+
parent: {
|
|
738
|
+
props: this.$props,
|
|
739
|
+
state: this.$data
|
|
740
|
+
},
|
|
741
|
+
context: {
|
|
742
|
+
checked: this.checked,
|
|
743
|
+
focused: this.checkboxFocused,
|
|
744
|
+
partialChecked: this.partialChecked
|
|
501
745
|
}
|
|
746
|
+
});
|
|
502
747
|
},
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
return {
|
|
521
|
-
marginLeft: this.level * this.indentation + 'rem',
|
|
522
|
-
visibility: this.leaf ? 'hidden' : 'visible'
|
|
523
|
-
};
|
|
524
|
-
},
|
|
525
|
-
checkboxSelectionMode() {
|
|
526
|
-
return this.selectionMode === 'checkbox';
|
|
527
|
-
},
|
|
528
|
-
checkboxClass() {
|
|
529
|
-
return ['p-checkbox-box', { 'p-highlight': this.checked, 'p-focus': this.checkboxFocused, 'p-indeterminate': this.partialChecked }];
|
|
748
|
+
updateStickyPosition: function updateStickyPosition() {
|
|
749
|
+
if (this.columnProp('frozen')) {
|
|
750
|
+
var align = this.columnProp('alignFrozen');
|
|
751
|
+
if (align === 'right') {
|
|
752
|
+
var right = 0;
|
|
753
|
+
var next = this.$el.nextElementSibling;
|
|
754
|
+
if (next) {
|
|
755
|
+
right = utils.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
|
|
756
|
+
}
|
|
757
|
+
this.styleObject.right = right + 'px';
|
|
758
|
+
} else {
|
|
759
|
+
var left = 0;
|
|
760
|
+
var prev = this.$el.previousElementSibling;
|
|
761
|
+
if (prev) {
|
|
762
|
+
left = utils.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
|
|
763
|
+
}
|
|
764
|
+
this.styleObject.left = left + 'px';
|
|
530
765
|
}
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
resolveFieldData: function resolveFieldData(rowData, field) {
|
|
769
|
+
return utils.ObjectUtils.resolveFieldData(rowData, field);
|
|
770
|
+
},
|
|
771
|
+
toggleCheckbox: function toggleCheckbox() {
|
|
772
|
+
this.$emit('checkbox-toggle');
|
|
773
|
+
},
|
|
774
|
+
onCheckboxFocus: function onCheckboxFocus() {
|
|
775
|
+
this.checkboxFocused = true;
|
|
776
|
+
},
|
|
777
|
+
onCheckboxBlur: function onCheckboxBlur() {
|
|
778
|
+
this.checkboxFocused = false;
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
computed: {
|
|
782
|
+
containerClass: function containerClass() {
|
|
783
|
+
return [this.columnProp('bodyClass'), this.columnProp('class'), this.cx('bodyCell')];
|
|
531
784
|
},
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
MinusIcon: MinusIcon__default["default"]
|
|
785
|
+
containerStyle: function containerStyle() {
|
|
786
|
+
var bodyStyle = this.columnProp('bodyStyle');
|
|
787
|
+
var columnStyle = this.columnProp('style');
|
|
788
|
+
return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject] : [columnStyle, bodyStyle];
|
|
537
789
|
},
|
|
538
|
-
|
|
539
|
-
|
|
790
|
+
togglerStyle: function togglerStyle() {
|
|
791
|
+
return {
|
|
792
|
+
marginLeft: this.level * this.indentation + 'rem',
|
|
793
|
+
visibility: this.leaf ? 'hidden' : 'visible'
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
checkboxSelectionMode: function checkboxSelectionMode() {
|
|
797
|
+
return this.selectionMode === 'checkbox';
|
|
540
798
|
}
|
|
799
|
+
},
|
|
800
|
+
components: {
|
|
801
|
+
ChevronRightIcon: ChevronRightIcon__default["default"],
|
|
802
|
+
ChevronDownIcon: ChevronDownIcon__default["default"],
|
|
803
|
+
CheckIcon: CheckIcon__default["default"],
|
|
804
|
+
MinusIcon: MinusIcon__default["default"]
|
|
805
|
+
},
|
|
806
|
+
directives: {
|
|
807
|
+
ripple: Ripple__default["default"]
|
|
808
|
+
}
|
|
541
809
|
};
|
|
542
810
|
|
|
811
|
+
function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$3(obj); }
|
|
812
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
813
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
814
|
+
function _defineProperty$3(obj, key, value) { key = _toPropertyKey$3(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
815
|
+
function _toPropertyKey$3(arg) { var key = _toPrimitive$3(arg, "string"); return _typeof$3(key) === "symbol" ? key : String(key); }
|
|
816
|
+
function _toPrimitive$3(input, hint) { if (_typeof$3(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$3(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
543
817
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
return (vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
818
|
+
var _directive_ripple = vue.resolveDirective("ripple");
|
|
819
|
+
return vue.openBlock(), vue.createElementBlock("td", vue.mergeProps({
|
|
547
820
|
style: $options.containerStyle,
|
|
548
|
-
class: $options.containerClass,
|
|
821
|
+
"class": $options.containerClass,
|
|
549
822
|
role: "cell"
|
|
550
|
-
}, {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
class: "p-checkbox-icon"
|
|
608
|
-
}, $options.getColumnCheckboxPTOptions('checkboxIcon')), null, 16))
|
|
609
|
-
], 16)
|
|
610
|
-
], 16))
|
|
611
|
-
: vue.createCommentVNode("", true),
|
|
612
|
-
($props.column.children && $props.column.children.body)
|
|
613
|
-
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
|
|
614
|
-
key: 2,
|
|
615
|
-
node: $props.node,
|
|
616
|
-
column: $props.column
|
|
617
|
-
}, null, 8, ["node", "column"]))
|
|
618
|
-
: (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({ key: 3 }, $options.getColumnPTOptions('cellContent'))), vue.toDisplayString($options.resolveFieldData($props.node.data, $options.columnProp('field'))), 17))
|
|
619
|
-
], 16))
|
|
823
|
+
}, _objectSpread$3(_objectSpread$3({}, $options.getColumnPT('root')), $options.getColumnPT('bodyCell'))), [$options.columnProp('expander') ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
|
|
824
|
+
key: 0,
|
|
825
|
+
type: "button",
|
|
826
|
+
"class": _ctx.cx('rowToggler'),
|
|
827
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
828
|
+
return $options.toggle && $options.toggle.apply($options, arguments);
|
|
829
|
+
}),
|
|
830
|
+
style: $options.togglerStyle,
|
|
831
|
+
tabindex: "-1"
|
|
832
|
+
}, $options.getColumnPT('rowToggler')), [$props.templates['togglericon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['togglericon']), {
|
|
833
|
+
key: 0,
|
|
834
|
+
node: $props.node,
|
|
835
|
+
expanded: $props.expanded,
|
|
836
|
+
"class": vue.normalizeClass(_ctx.cx('rowTogglerIcon'))
|
|
837
|
+
}, null, 8, ["node", "expanded", "class"])) : $props.expanded ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.node.expandedIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({
|
|
838
|
+
key: 1,
|
|
839
|
+
"class": _ctx.cx('rowTogglerIcon')
|
|
840
|
+
}, $options.getColumnPT('rowTogglerIcon')), null, 16, ["class"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.node.collapsedIcon ? 'span' : 'ChevronRightIcon'), vue.mergeProps({
|
|
841
|
+
key: 2,
|
|
842
|
+
"class": _ctx.cx('rowTogglerIcon')
|
|
843
|
+
}, $options.getColumnPT('rowTogglerIcon')), null, 16, ["class"]))], 16)), [[_directive_ripple]]) : vue.createCommentVNode("", true), $options.checkboxSelectionMode && $options.columnProp('expander') ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
844
|
+
key: 1,
|
|
845
|
+
"class": _ctx.cx('checkboxWrapper'),
|
|
846
|
+
onClick: _cache[3] || (_cache[3] = function () {
|
|
847
|
+
return $options.toggleCheckbox && $options.toggleCheckbox.apply($options, arguments);
|
|
848
|
+
})
|
|
849
|
+
}, $options.getColumnPT('checkboxWrapper')), [vue.createElementVNode("div", vue.mergeProps({
|
|
850
|
+
"class": "p-hidden-accessible"
|
|
851
|
+
}, $options.getColumnPT('hiddenInputWrapper'), {
|
|
852
|
+
"data-p-hidden-accessible": true
|
|
853
|
+
}), [vue.createElementVNode("input", vue.mergeProps({
|
|
854
|
+
type: "checkbox",
|
|
855
|
+
onFocus: _cache[1] || (_cache[1] = function () {
|
|
856
|
+
return $options.onCheckboxFocus && $options.onCheckboxFocus.apply($options, arguments);
|
|
857
|
+
}),
|
|
858
|
+
onBlur: _cache[2] || (_cache[2] = function () {
|
|
859
|
+
return $options.onCheckboxBlur && $options.onCheckboxBlur.apply($options, arguments);
|
|
860
|
+
}),
|
|
861
|
+
tabindex: "-1"
|
|
862
|
+
}, $options.getColumnPT('hiddenInput')), null, 16)], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
863
|
+
ref: "checkboxEl",
|
|
864
|
+
"class": _ctx.cx('checkbox')
|
|
865
|
+
}, $options.getColumnCheckboxPT('checkbox')), [$props.templates['checkboxicon'] ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates['checkboxicon']), {
|
|
866
|
+
key: 0,
|
|
867
|
+
checked: $props.checked,
|
|
868
|
+
partialChecked: $props.partialChecked,
|
|
869
|
+
"class": vue.normalizeClass(_ctx.cx('checkboxicon'))
|
|
870
|
+
}, null, 8, ["checked", "partialChecked", "class"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.checked ? 'CheckIcon' : $props.partialChecked ? 'MinusIcon' : null), vue.mergeProps({
|
|
871
|
+
key: 1,
|
|
872
|
+
"class": _ctx.cx('checkboxicon')
|
|
873
|
+
}, $options.getColumnCheckboxPT('checkboxIcon')), null, 16, ["class"]))], 16)], 16)) : vue.createCommentVNode("", true), $props.column.children && $props.column.children.body ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.column.children.body), {
|
|
874
|
+
key: 2,
|
|
875
|
+
node: $props.node,
|
|
876
|
+
column: $props.column
|
|
877
|
+
}, null, 8, ["node", "column"])) : (vue.openBlock(), vue.createElementBlock("span", vue.normalizeProps(vue.mergeProps({
|
|
878
|
+
key: 3
|
|
879
|
+
}, $options.getColumnPT('bodyCellContent'))), vue.toDisplayString($options.resolveFieldData($props.node.data, $options.columnProp('field'))), 17))], 16);
|
|
620
880
|
}
|
|
621
881
|
|
|
622
882
|
script$2.render = render$2;
|
|
623
883
|
|
|
884
|
+
function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
|
|
885
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
886
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
887
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
888
|
+
function _defineProperty$2(obj, key, value) { key = _toPropertyKey$2(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
889
|
+
function _toPropertyKey$2(arg) { var key = _toPrimitive$2(arg, "string"); return _typeof$2(key) === "symbol" ? key : String(key); }
|
|
890
|
+
function _toPrimitive$2(input, hint) { if (_typeof$2(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$2(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
891
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
892
|
+
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
893
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
894
|
+
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
895
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
896
|
+
function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
624
897
|
var script$1 = {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
898
|
+
name: 'TreeTableRow',
|
|
899
|
+
hostName: 'TreeTable',
|
|
900
|
+
"extends": BaseComponent__default["default"],
|
|
901
|
+
emits: ['node-click', 'node-toggle', 'checkbox-change', 'nodeClick', 'nodeToggle', 'checkboxChange'],
|
|
902
|
+
props: {
|
|
903
|
+
node: {
|
|
904
|
+
type: null,
|
|
905
|
+
"default": null
|
|
906
|
+
},
|
|
907
|
+
parentNode: {
|
|
908
|
+
type: null,
|
|
909
|
+
"default": null
|
|
910
|
+
},
|
|
911
|
+
columns: {
|
|
912
|
+
type: null,
|
|
913
|
+
"default": null
|
|
914
|
+
},
|
|
915
|
+
expandedKeys: {
|
|
916
|
+
type: null,
|
|
917
|
+
"default": null
|
|
918
|
+
},
|
|
919
|
+
selectionKeys: {
|
|
920
|
+
type: null,
|
|
921
|
+
"default": null
|
|
922
|
+
},
|
|
923
|
+
selectionMode: {
|
|
924
|
+
type: String,
|
|
925
|
+
"default": null
|
|
926
|
+
},
|
|
927
|
+
level: {
|
|
928
|
+
type: Number,
|
|
929
|
+
"default": 0
|
|
930
|
+
},
|
|
931
|
+
indentation: {
|
|
932
|
+
type: Number,
|
|
933
|
+
"default": 1
|
|
934
|
+
},
|
|
935
|
+
tabindex: {
|
|
936
|
+
type: Number,
|
|
937
|
+
"default": -1
|
|
938
|
+
},
|
|
939
|
+
ariaSetSize: {
|
|
940
|
+
type: Number,
|
|
941
|
+
"default": null
|
|
942
|
+
},
|
|
943
|
+
ariaPosInset: {
|
|
944
|
+
type: Number,
|
|
945
|
+
"default": null
|
|
946
|
+
},
|
|
947
|
+
templates: {
|
|
948
|
+
type: Object,
|
|
949
|
+
"default": null
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
nodeTouched: false,
|
|
953
|
+
methods: {
|
|
954
|
+
columnProp: function columnProp(col, prop) {
|
|
955
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
956
|
+
},
|
|
957
|
+
toggle: function toggle() {
|
|
958
|
+
this.$emit('node-toggle', this.node);
|
|
959
|
+
},
|
|
960
|
+
onClick: function onClick(event) {
|
|
961
|
+
if (utils.DomHandler.isClickable(event.target) || utils.DomHandler.getAttribute(event.target, 'data-pc-section') === 'rowtoggler' || utils.DomHandler.getAttribute(event.target, 'data-pc-section') === 'rowtogglericon' || event.target.tagName === 'path') {
|
|
962
|
+
return;
|
|
963
|
+
}
|
|
964
|
+
this.setTabIndexForSelectionMode(event, this.nodeTouched);
|
|
965
|
+
this.$emit('node-click', {
|
|
966
|
+
originalEvent: event,
|
|
967
|
+
nodeTouched: this.nodeTouched,
|
|
968
|
+
node: this.node
|
|
969
|
+
});
|
|
970
|
+
this.nodeTouched = false;
|
|
971
|
+
},
|
|
972
|
+
onTouchEnd: function onTouchEnd() {
|
|
973
|
+
this.nodeTouched = true;
|
|
974
|
+
},
|
|
975
|
+
onKeyDown: function onKeyDown(event, item) {
|
|
976
|
+
switch (event.code) {
|
|
977
|
+
case 'ArrowDown':
|
|
978
|
+
this.onArrowDownKey(event);
|
|
979
|
+
break;
|
|
980
|
+
case 'ArrowUp':
|
|
981
|
+
this.onArrowUpKey(event);
|
|
982
|
+
break;
|
|
983
|
+
case 'ArrowLeft':
|
|
984
|
+
this.onArrowLeftKey(event);
|
|
985
|
+
break;
|
|
986
|
+
case 'ArrowRight':
|
|
987
|
+
this.onArrowRightKey(event);
|
|
988
|
+
break;
|
|
989
|
+
case 'Home':
|
|
990
|
+
this.onHomeKey(event);
|
|
991
|
+
break;
|
|
992
|
+
case 'End':
|
|
993
|
+
this.onEndKey(event);
|
|
994
|
+
break;
|
|
995
|
+
case 'Enter':
|
|
996
|
+
case 'Space':
|
|
997
|
+
this.onEnterKey(event, item);
|
|
998
|
+
break;
|
|
999
|
+
case 'Tab':
|
|
1000
|
+
this.onTabKey(event);
|
|
1001
|
+
break;
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
1005
|
+
var nextElementSibling = event.currentTarget.nextElementSibling;
|
|
1006
|
+
nextElementSibling && this.focusRowChange(event.currentTarget, nextElementSibling);
|
|
1007
|
+
event.preventDefault();
|
|
1008
|
+
},
|
|
1009
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
1010
|
+
var previousElementSibling = event.currentTarget.previousElementSibling;
|
|
1011
|
+
previousElementSibling && this.focusRowChange(event.currentTarget, previousElementSibling);
|
|
1012
|
+
event.preventDefault();
|
|
1013
|
+
},
|
|
1014
|
+
onArrowRightKey: function onArrowRightKey(event) {
|
|
1015
|
+
var _this = this;
|
|
1016
|
+
var ishiddenIcon = utils.DomHandler.findSingle(event.currentTarget, 'button').style.visibility === 'hidden';
|
|
1017
|
+
var togglerElement = utils.DomHandler.findSingle(this.$refs.node, '[data-pc-section="rowtoggler"]');
|
|
1018
|
+
if (ishiddenIcon) return;
|
|
1019
|
+
!this.expanded && togglerElement.click();
|
|
1020
|
+
this.$nextTick(function () {
|
|
1021
|
+
_this.onArrowDownKey(event);
|
|
1022
|
+
});
|
|
1023
|
+
event.preventDefault();
|
|
1024
|
+
},
|
|
1025
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
1026
|
+
if (this.level === 0 && !this.expanded) {
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
var currentTarget = event.currentTarget;
|
|
1030
|
+
var ishiddenIcon = utils.DomHandler.findSingle(currentTarget, 'button').style.visibility === 'hidden';
|
|
1031
|
+
var togglerElement = utils.DomHandler.findSingle(currentTarget, '[data-pc-section="rowtoggler"]');
|
|
1032
|
+
if (this.expanded && !ishiddenIcon) {
|
|
1033
|
+
togglerElement.click();
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
var target = this.findBeforeClickableNode(currentTarget);
|
|
1037
|
+
target && this.focusRowChange(currentTarget, target);
|
|
1038
|
+
},
|
|
1039
|
+
onHomeKey: function onHomeKey(event) {
|
|
1040
|
+
var findFirstElement = utils.DomHandler.findSingle(event.currentTarget.parentElement, "tr[aria-level=\"".concat(this.level + 1, "\"]"));
|
|
1041
|
+
findFirstElement && utils.DomHandler.focus(findFirstElement);
|
|
1042
|
+
event.preventDefault();
|
|
1043
|
+
},
|
|
1044
|
+
onEndKey: function onEndKey(event) {
|
|
1045
|
+
var nodes = utils.DomHandler.find(event.currentTarget.parentElement, "tr[aria-level=\"".concat(this.level + 1, "\"]"));
|
|
1046
|
+
var findFirstElement = nodes[nodes.length - 1];
|
|
1047
|
+
utils.DomHandler.focus(findFirstElement);
|
|
1048
|
+
event.preventDefault();
|
|
1049
|
+
},
|
|
1050
|
+
onEnterKey: function onEnterKey(event) {
|
|
1051
|
+
event.preventDefault();
|
|
1052
|
+
this.setTabIndexForSelectionMode(event, this.nodeTouched);
|
|
1053
|
+
if (this.selectionMode === 'checkbox') {
|
|
1054
|
+
this.toggleCheckbox();
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
this.$emit('node-click', {
|
|
1058
|
+
originalEvent: event,
|
|
1059
|
+
nodeTouched: this.nodeTouched,
|
|
1060
|
+
node: this.node
|
|
1061
|
+
});
|
|
1062
|
+
this.nodeTouched = false;
|
|
1063
|
+
},
|
|
1064
|
+
onTabKey: function onTabKey() {
|
|
1065
|
+
var rows = _toConsumableArray$1(utils.DomHandler.find(this.$refs.node.parentElement, 'tr'));
|
|
1066
|
+
var hasSelectedRow = rows.some(function (row) {
|
|
1067
|
+
return utils.DomHandler.getAttribute(row, 'data-p-highlight') || row.getAttribute('aria-checked') === 'true';
|
|
1068
|
+
});
|
|
1069
|
+
rows.forEach(function (row) {
|
|
1070
|
+
row.tabIndex = -1;
|
|
1071
|
+
});
|
|
1072
|
+
if (hasSelectedRow) {
|
|
1073
|
+
var selectedNodes = rows.filter(function (node) {
|
|
1074
|
+
return utils.DomHandler.getAttribute(node, 'data-p-highlight') || node.getAttribute('aria-checked') === 'true';
|
|
1075
|
+
});
|
|
1076
|
+
selectedNodes[0].tabIndex = 0;
|
|
1077
|
+
return;
|
|
1078
|
+
}
|
|
1079
|
+
rows[0].tabIndex = 0;
|
|
1080
|
+
},
|
|
1081
|
+
focusRowChange: function focusRowChange(firstFocusableRow, currentFocusedRow) {
|
|
1082
|
+
firstFocusableRow.tabIndex = '-1';
|
|
1083
|
+
currentFocusedRow.tabIndex = '0';
|
|
1084
|
+
utils.DomHandler.focus(currentFocusedRow);
|
|
1085
|
+
},
|
|
1086
|
+
findBeforeClickableNode: function findBeforeClickableNode(node) {
|
|
1087
|
+
var prevNode = node.previousElementSibling;
|
|
1088
|
+
if (prevNode) {
|
|
1089
|
+
var prevNodeButton = prevNode.querySelector('button');
|
|
1090
|
+
if (prevNodeButton && prevNodeButton.style.visibility !== 'hidden') {
|
|
1091
|
+
return prevNode;
|
|
676
1092
|
}
|
|
1093
|
+
return this.findBeforeClickableNode(prevNode);
|
|
1094
|
+
}
|
|
1095
|
+
return null;
|
|
677
1096
|
},
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
case 'ArrowDown':
|
|
706
|
-
this.onArrowDownKey(event);
|
|
707
|
-
break;
|
|
708
|
-
|
|
709
|
-
case 'ArrowUp':
|
|
710
|
-
this.onArrowUpKey(event);
|
|
711
|
-
break;
|
|
712
|
-
|
|
713
|
-
case 'ArrowLeft':
|
|
714
|
-
this.onArrowLeftKey(event);
|
|
715
|
-
break;
|
|
716
|
-
|
|
717
|
-
case 'ArrowRight':
|
|
718
|
-
this.onArrowRightKey(event);
|
|
719
|
-
break;
|
|
720
|
-
|
|
721
|
-
case 'Home':
|
|
722
|
-
this.onHomeKey(event);
|
|
723
|
-
break;
|
|
724
|
-
|
|
725
|
-
case 'End':
|
|
726
|
-
this.onEndKey(event);
|
|
727
|
-
break;
|
|
728
|
-
|
|
729
|
-
case 'Enter':
|
|
730
|
-
case 'Space':
|
|
731
|
-
this.onEnterKey(event, item);
|
|
732
|
-
break;
|
|
733
|
-
|
|
734
|
-
case 'Tab':
|
|
735
|
-
this.onTabKey(event);
|
|
736
|
-
break;
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
onArrowDownKey(event) {
|
|
740
|
-
const nextElementSibling = event.currentTarget.nextElementSibling;
|
|
741
|
-
|
|
742
|
-
nextElementSibling && this.focusRowChange(event.currentTarget, nextElementSibling);
|
|
743
|
-
|
|
744
|
-
event.preventDefault();
|
|
745
|
-
},
|
|
746
|
-
onArrowUpKey(event) {
|
|
747
|
-
const previousElementSibling = event.currentTarget.previousElementSibling;
|
|
748
|
-
|
|
749
|
-
previousElementSibling && this.focusRowChange(event.currentTarget, previousElementSibling);
|
|
750
|
-
|
|
751
|
-
event.preventDefault();
|
|
752
|
-
},
|
|
753
|
-
onArrowRightKey(event) {
|
|
754
|
-
const ishiddenIcon = utils.DomHandler.findSingle(event.currentTarget, 'button').style.visibility === 'hidden';
|
|
755
|
-
const togglerElement = utils.DomHandler.findSingle(this.$refs.node, '.p-treetable-toggler');
|
|
756
|
-
|
|
757
|
-
if (ishiddenIcon) return;
|
|
758
|
-
|
|
759
|
-
!this.expanded && togglerElement.click();
|
|
760
|
-
|
|
761
|
-
this.$nextTick(() => {
|
|
762
|
-
this.onArrowDownKey(event);
|
|
763
|
-
});
|
|
764
|
-
|
|
765
|
-
event.preventDefault();
|
|
766
|
-
},
|
|
767
|
-
onArrowLeftKey(event) {
|
|
768
|
-
if (this.level === 0 && !this.expanded) {
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
const currentTarget = event.currentTarget;
|
|
773
|
-
const ishiddenIcon = utils.DomHandler.findSingle(currentTarget, 'button').style.visibility === 'hidden';
|
|
774
|
-
const togglerElement = utils.DomHandler.findSingle(currentTarget, '.p-treetable-toggler');
|
|
775
|
-
|
|
776
|
-
if (this.expanded && !ishiddenIcon) {
|
|
777
|
-
togglerElement.click();
|
|
778
|
-
|
|
779
|
-
return;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
const target = this.findBeforeClickableNode(currentTarget);
|
|
783
|
-
|
|
784
|
-
target && this.focusRowChange(currentTarget, target);
|
|
785
|
-
},
|
|
786
|
-
onHomeKey(event) {
|
|
787
|
-
const findFirstElement = utils.DomHandler.findSingle(event.currentTarget.parentElement, `tr[aria-level="${this.level + 1}"]`);
|
|
788
|
-
|
|
789
|
-
findFirstElement && utils.DomHandler.focus(findFirstElement);
|
|
790
|
-
|
|
791
|
-
event.preventDefault();
|
|
792
|
-
},
|
|
793
|
-
onEndKey(event) {
|
|
794
|
-
const nodes = utils.DomHandler.find(event.currentTarget.parentElement, `tr[aria-level="${this.level + 1}"]`);
|
|
795
|
-
const findFirstElement = nodes[nodes.length - 1];
|
|
796
|
-
|
|
797
|
-
utils.DomHandler.focus(findFirstElement);
|
|
798
|
-
|
|
799
|
-
event.preventDefault();
|
|
800
|
-
},
|
|
801
|
-
onEnterKey(event) {
|
|
802
|
-
event.preventDefault();
|
|
803
|
-
this.setTabIndexForSelectionMode(event, this.nodeTouched);
|
|
804
|
-
|
|
805
|
-
if (this.selectionMode === 'checkbox') {
|
|
806
|
-
this.toggleCheckbox();
|
|
807
|
-
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
this.$emit('node-click', {
|
|
812
|
-
originalEvent: event,
|
|
813
|
-
nodeTouched: this.nodeTouched,
|
|
814
|
-
node: this.node
|
|
815
|
-
});
|
|
816
|
-
|
|
817
|
-
this.nodeTouched = false;
|
|
818
|
-
},
|
|
819
|
-
onTabKey() {
|
|
820
|
-
const rows = [...utils.DomHandler.find(this.$refs.node.parentElement, 'tr')];
|
|
821
|
-
const hasSelectedRow = rows.some((row) => utils.DomHandler.hasClass(row, 'p-highlight') || row.getAttribute('aria-checked') === 'true');
|
|
822
|
-
|
|
823
|
-
rows.forEach((row) => {
|
|
824
|
-
row.tabIndex = -1;
|
|
825
|
-
});
|
|
826
|
-
|
|
827
|
-
if (hasSelectedRow) {
|
|
828
|
-
const selectedNodes = rows.filter((node) => utils.DomHandler.hasClass(node, 'p-highlight') || node.getAttribute('aria-checked') === 'true');
|
|
829
|
-
|
|
830
|
-
selectedNodes[0].tabIndex = 0;
|
|
831
|
-
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
rows[0].tabIndex = 0;
|
|
836
|
-
},
|
|
837
|
-
focusRowChange(firstFocusableRow, currentFocusedRow) {
|
|
838
|
-
firstFocusableRow.tabIndex = '-1';
|
|
839
|
-
currentFocusedRow.tabIndex = '0';
|
|
840
|
-
utils.DomHandler.focus(currentFocusedRow);
|
|
841
|
-
},
|
|
842
|
-
findBeforeClickableNode(node) {
|
|
843
|
-
const prevNode = node.previousElementSibling;
|
|
844
|
-
|
|
845
|
-
if (prevNode) {
|
|
846
|
-
const prevNodeButton = prevNode.querySelector('button');
|
|
847
|
-
|
|
848
|
-
if (prevNodeButton && prevNodeButton.style.visibility !== 'hidden') {
|
|
849
|
-
return prevNode;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
return this.findBeforeClickableNode(prevNode);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
return null;
|
|
856
|
-
},
|
|
857
|
-
toggleCheckbox() {
|
|
858
|
-
let _selectionKeys = this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
859
|
-
const _check = !this.checked;
|
|
860
|
-
|
|
861
|
-
this.propagateDown(this.node, _check, _selectionKeys);
|
|
862
|
-
|
|
863
|
-
this.$emit('checkbox-change', {
|
|
864
|
-
node: this.node,
|
|
865
|
-
check: _check,
|
|
866
|
-
selectionKeys: _selectionKeys
|
|
867
|
-
});
|
|
868
|
-
},
|
|
869
|
-
propagateDown(node, check, selectionKeys) {
|
|
870
|
-
if (check) selectionKeys[node.key] = { checked: true, partialChecked: false };
|
|
871
|
-
else delete selectionKeys[node.key];
|
|
872
|
-
|
|
873
|
-
if (node.children && node.children.length) {
|
|
874
|
-
for (let child of node.children) {
|
|
875
|
-
this.propagateDown(child, check, selectionKeys);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
},
|
|
879
|
-
propagateUp(event) {
|
|
880
|
-
let check = event.check;
|
|
881
|
-
let _selectionKeys = { ...event.selectionKeys };
|
|
882
|
-
let checkedChildCount = 0;
|
|
883
|
-
let childPartialSelected = false;
|
|
884
|
-
|
|
885
|
-
for (let child of this.node.children) {
|
|
886
|
-
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;
|
|
887
|
-
else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
if (check && checkedChildCount === this.node.children.length) {
|
|
891
|
-
_selectionKeys[this.node.key] = { checked: true, partialChecked: false };
|
|
892
|
-
} else {
|
|
893
|
-
if (!check) {
|
|
894
|
-
delete _selectionKeys[this.node.key];
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
if (childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length)) _selectionKeys[this.node.key] = { checked: false, partialChecked: true };
|
|
898
|
-
else _selectionKeys[this.node.key] = { checked: false, partialChecked: false };
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
this.$emit('checkbox-change', {
|
|
902
|
-
node: event.node,
|
|
903
|
-
check: event.check,
|
|
904
|
-
selectionKeys: _selectionKeys
|
|
905
|
-
});
|
|
906
|
-
},
|
|
907
|
-
onCheckboxChange(event) {
|
|
908
|
-
let check = event.check;
|
|
909
|
-
let _selectionKeys = { ...event.selectionKeys };
|
|
910
|
-
let checkedChildCount = 0;
|
|
911
|
-
let childPartialSelected = false;
|
|
912
|
-
|
|
913
|
-
for (let child of this.node.children) {
|
|
914
|
-
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;
|
|
915
|
-
else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
if (check && checkedChildCount === this.node.children.length) {
|
|
919
|
-
_selectionKeys[this.node.key] = { checked: true, partialChecked: false };
|
|
920
|
-
} else {
|
|
921
|
-
if (!check) {
|
|
922
|
-
delete _selectionKeys[this.node.key];
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
if (childPartialSelected || (checkedChildCount > 0 && checkedChildCount !== this.node.children.length)) _selectionKeys[this.node.key] = { checked: false, partialChecked: true };
|
|
926
|
-
else _selectionKeys[this.node.key] = { checked: false, partialChecked: false };
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
this.$emit('checkbox-change', {
|
|
930
|
-
node: event.node,
|
|
931
|
-
check: event.check,
|
|
932
|
-
selectionKeys: _selectionKeys
|
|
933
|
-
});
|
|
934
|
-
},
|
|
935
|
-
setTabIndexForSelectionMode(event, nodeTouched) {
|
|
936
|
-
if (this.selectionMode !== null) {
|
|
937
|
-
const elements = [...utils.DomHandler.find(this.$refs.node.parentElement, 'tr')];
|
|
938
|
-
|
|
939
|
-
event.currentTarget.tabIndex = nodeTouched === false ? -1 : 0;
|
|
940
|
-
|
|
941
|
-
if (elements.every((element) => element.tabIndex === -1)) {
|
|
942
|
-
elements[0].tabIndex = 0;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
1097
|
+
toggleCheckbox: function toggleCheckbox() {
|
|
1098
|
+
var _selectionKeys = this.selectionKeys ? _objectSpread$2({}, this.selectionKeys) : {};
|
|
1099
|
+
var _check = !this.checked;
|
|
1100
|
+
this.propagateDown(this.node, _check, _selectionKeys);
|
|
1101
|
+
this.$emit('checkbox-change', {
|
|
1102
|
+
node: this.node,
|
|
1103
|
+
check: _check,
|
|
1104
|
+
selectionKeys: _selectionKeys
|
|
1105
|
+
});
|
|
1106
|
+
},
|
|
1107
|
+
propagateDown: function propagateDown(node, check, selectionKeys) {
|
|
1108
|
+
if (check) selectionKeys[node.key] = {
|
|
1109
|
+
checked: true,
|
|
1110
|
+
partialChecked: false
|
|
1111
|
+
};else delete selectionKeys[node.key];
|
|
1112
|
+
if (node.children && node.children.length) {
|
|
1113
|
+
var _iterator = _createForOfIteratorHelper$1(node.children),
|
|
1114
|
+
_step;
|
|
1115
|
+
try {
|
|
1116
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1117
|
+
var child = _step.value;
|
|
1118
|
+
this.propagateDown(child, check, selectionKeys);
|
|
1119
|
+
}
|
|
1120
|
+
} catch (err) {
|
|
1121
|
+
_iterator.e(err);
|
|
1122
|
+
} finally {
|
|
1123
|
+
_iterator.f();
|
|
945
1124
|
}
|
|
1125
|
+
}
|
|
946
1126
|
},
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
return this.selectionMode === 'single' || this.selectionMode === 'multiple' ? this.selected : null;
|
|
1127
|
+
propagateUp: function propagateUp(event) {
|
|
1128
|
+
var check = event.check;
|
|
1129
|
+
var _selectionKeys = _objectSpread$2({}, event.selectionKeys);
|
|
1130
|
+
var checkedChildCount = 0;
|
|
1131
|
+
var childPartialSelected = false;
|
|
1132
|
+
var _iterator2 = _createForOfIteratorHelper$1(this.node.children),
|
|
1133
|
+
_step2;
|
|
1134
|
+
try {
|
|
1135
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1136
|
+
var child = _step2.value;
|
|
1137
|
+
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
1138
|
+
}
|
|
1139
|
+
} catch (err) {
|
|
1140
|
+
_iterator2.e(err);
|
|
1141
|
+
} finally {
|
|
1142
|
+
_iterator2.f();
|
|
1143
|
+
}
|
|
1144
|
+
if (check && checkedChildCount === this.node.children.length) {
|
|
1145
|
+
_selectionKeys[this.node.key] = {
|
|
1146
|
+
checked: true,
|
|
1147
|
+
partialChecked: false
|
|
1148
|
+
};
|
|
1149
|
+
} else {
|
|
1150
|
+
if (!check) {
|
|
1151
|
+
delete _selectionKeys[this.node.key];
|
|
973
1152
|
}
|
|
1153
|
+
if (childPartialSelected || checkedChildCount > 0 && checkedChildCount !== this.node.children.length) _selectionKeys[this.node.key] = {
|
|
1154
|
+
checked: false,
|
|
1155
|
+
partialChecked: true
|
|
1156
|
+
};else _selectionKeys[this.node.key] = {
|
|
1157
|
+
checked: false,
|
|
1158
|
+
partialChecked: false
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
this.$emit('checkbox-change', {
|
|
1162
|
+
node: event.node,
|
|
1163
|
+
check: event.check,
|
|
1164
|
+
selectionKeys: _selectionKeys
|
|
1165
|
+
});
|
|
974
1166
|
},
|
|
975
|
-
|
|
976
|
-
|
|
1167
|
+
onCheckboxChange: function onCheckboxChange(event) {
|
|
1168
|
+
var check = event.check;
|
|
1169
|
+
var _selectionKeys = _objectSpread$2({}, event.selectionKeys);
|
|
1170
|
+
var checkedChildCount = 0;
|
|
1171
|
+
var childPartialSelected = false;
|
|
1172
|
+
var _iterator3 = _createForOfIteratorHelper$1(this.node.children),
|
|
1173
|
+
_step3;
|
|
1174
|
+
try {
|
|
1175
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1176
|
+
var child = _step3.value;
|
|
1177
|
+
if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;
|
|
1178
|
+
}
|
|
1179
|
+
} catch (err) {
|
|
1180
|
+
_iterator3.e(err);
|
|
1181
|
+
} finally {
|
|
1182
|
+
_iterator3.f();
|
|
1183
|
+
}
|
|
1184
|
+
if (check && checkedChildCount === this.node.children.length) {
|
|
1185
|
+
_selectionKeys[this.node.key] = {
|
|
1186
|
+
checked: true,
|
|
1187
|
+
partialChecked: false
|
|
1188
|
+
};
|
|
1189
|
+
} else {
|
|
1190
|
+
if (!check) {
|
|
1191
|
+
delete _selectionKeys[this.node.key];
|
|
1192
|
+
}
|
|
1193
|
+
if (childPartialSelected || checkedChildCount > 0 && checkedChildCount !== this.node.children.length) _selectionKeys[this.node.key] = {
|
|
1194
|
+
checked: false,
|
|
1195
|
+
partialChecked: true
|
|
1196
|
+
};else _selectionKeys[this.node.key] = {
|
|
1197
|
+
checked: false,
|
|
1198
|
+
partialChecked: false
|
|
1199
|
+
};
|
|
1200
|
+
}
|
|
1201
|
+
this.$emit('checkbox-change', {
|
|
1202
|
+
node: event.node,
|
|
1203
|
+
check: event.check,
|
|
1204
|
+
selectionKeys: _selectionKeys
|
|
1205
|
+
});
|
|
1206
|
+
},
|
|
1207
|
+
setTabIndexForSelectionMode: function setTabIndexForSelectionMode(event, nodeTouched) {
|
|
1208
|
+
if (this.selectionMode !== null) {
|
|
1209
|
+
var elements = _toConsumableArray$1(utils.DomHandler.find(this.$refs.node.parentElement, 'tr'));
|
|
1210
|
+
event.currentTarget.tabIndex = nodeTouched === false ? -1 : 0;
|
|
1211
|
+
if (elements.every(function (element) {
|
|
1212
|
+
return element.tabIndex === -1;
|
|
1213
|
+
})) {
|
|
1214
|
+
elements[0].tabIndex = 0;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
977
1217
|
}
|
|
1218
|
+
},
|
|
1219
|
+
computed: {
|
|
1220
|
+
containerClass: function containerClass() {
|
|
1221
|
+
return [this.node.styleClass, this.cx('root')];
|
|
1222
|
+
},
|
|
1223
|
+
expanded: function expanded() {
|
|
1224
|
+
return this.expandedKeys && this.expandedKeys[this.node.key] === true;
|
|
1225
|
+
},
|
|
1226
|
+
leaf: function leaf() {
|
|
1227
|
+
return this.node.leaf === false ? false : !(this.node.children && this.node.children.length);
|
|
1228
|
+
},
|
|
1229
|
+
selected: function selected() {
|
|
1230
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[this.node.key] === true : false;
|
|
1231
|
+
},
|
|
1232
|
+
checked: function checked() {
|
|
1233
|
+
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].checked : false;
|
|
1234
|
+
},
|
|
1235
|
+
partialChecked: function partialChecked() {
|
|
1236
|
+
return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].partialChecked : false;
|
|
1237
|
+
},
|
|
1238
|
+
getAriaSelected: function getAriaSelected() {
|
|
1239
|
+
return this.selectionMode === 'single' || this.selectionMode === 'multiple' ? this.selected : null;
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
components: {
|
|
1243
|
+
TTBodyCell: script$2
|
|
1244
|
+
}
|
|
978
1245
|
};
|
|
979
1246
|
|
|
980
|
-
|
|
981
|
-
|
|
1247
|
+
var _hoisted_1$1 = ["tabindex", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "aria-selected", "aria-checked", "data-p-highlight"];
|
|
982
1248
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
:
|
|
1050
|
-
|
|
1249
|
+
var _component_TTBodyCell = vue.resolveComponent("TTBodyCell");
|
|
1250
|
+
var _component_TreeTableRow = vue.resolveComponent("TreeTableRow", true);
|
|
1251
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [vue.createElementVNode("tr", vue.mergeProps({
|
|
1252
|
+
ref: "node",
|
|
1253
|
+
"class": $options.containerClass,
|
|
1254
|
+
style: $props.node.style,
|
|
1255
|
+
tabindex: $props.tabindex,
|
|
1256
|
+
role: "row",
|
|
1257
|
+
"aria-expanded": $options.expanded,
|
|
1258
|
+
"aria-level": $props.level + 1,
|
|
1259
|
+
"aria-setsize": $props.ariaSetSize,
|
|
1260
|
+
"aria-posinset": $props.ariaPosInset,
|
|
1261
|
+
"aria-selected": $options.getAriaSelected,
|
|
1262
|
+
"aria-checked": $options.checked || undefined,
|
|
1263
|
+
onClick: _cache[1] || (_cache[1] = function () {
|
|
1264
|
+
return $options.onClick && $options.onClick.apply($options, arguments);
|
|
1265
|
+
}),
|
|
1266
|
+
onKeydown: _cache[2] || (_cache[2] = function () {
|
|
1267
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
1268
|
+
}),
|
|
1269
|
+
onTouchend: _cache[3] || (_cache[3] = function () {
|
|
1270
|
+
return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);
|
|
1271
|
+
})
|
|
1272
|
+
}, _ctx.ptm('row'), {
|
|
1273
|
+
"data-p-highlight": $options.selected
|
|
1274
|
+
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.columns, function (col, i) {
|
|
1275
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1276
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
1277
|
+
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createBlock(_component_TTBodyCell, {
|
|
1278
|
+
key: 0,
|
|
1279
|
+
column: col,
|
|
1280
|
+
node: $props.node,
|
|
1281
|
+
level: $props.level,
|
|
1282
|
+
leaf: $options.leaf,
|
|
1283
|
+
indentation: $props.indentation,
|
|
1284
|
+
expanded: $options.expanded,
|
|
1285
|
+
selectionMode: $props.selectionMode,
|
|
1286
|
+
checked: $options.checked,
|
|
1287
|
+
partialChecked: $options.partialChecked,
|
|
1288
|
+
templates: $props.templates,
|
|
1289
|
+
onNodeToggle: _cache[0] || (_cache[0] = function ($event) {
|
|
1290
|
+
return _ctx.$emit('node-toggle', $event);
|
|
1291
|
+
}),
|
|
1292
|
+
onCheckboxToggle: $options.toggleCheckbox,
|
|
1293
|
+
index: i,
|
|
1294
|
+
pt: _ctx.pt
|
|
1295
|
+
}, null, 8, ["column", "node", "level", "leaf", "indentation", "expanded", "selectionMode", "checked", "partialChecked", "templates", "onCheckboxToggle", "index", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
1296
|
+
}), 128))], 16, _hoisted_1$1), $options.expanded && $props.node.children && $props.node.children.length ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
1297
|
+
key: 0
|
|
1298
|
+
}, vue.renderList($props.node.children, function (childNode) {
|
|
1299
|
+
return vue.openBlock(), vue.createBlock(_component_TreeTableRow, {
|
|
1300
|
+
key: childNode.key,
|
|
1301
|
+
columns: $props.columns,
|
|
1302
|
+
node: childNode,
|
|
1303
|
+
parentNode: $props.node,
|
|
1304
|
+
level: $props.level + 1,
|
|
1305
|
+
expandedKeys: $props.expandedKeys,
|
|
1306
|
+
selectionMode: $props.selectionMode,
|
|
1307
|
+
selectionKeys: $props.selectionKeys,
|
|
1308
|
+
indentation: $props.indentation,
|
|
1309
|
+
ariaPosInset: $props.node.children.indexOf(childNode) + 1,
|
|
1310
|
+
ariaSetSize: $props.node.children.length,
|
|
1311
|
+
templates: $props.templates,
|
|
1312
|
+
onNodeToggle: _cache[4] || (_cache[4] = function ($event) {
|
|
1313
|
+
return _ctx.$emit('node-toggle', $event);
|
|
1314
|
+
}),
|
|
1315
|
+
onNodeClick: _cache[5] || (_cache[5] = function ($event) {
|
|
1316
|
+
return _ctx.$emit('node-click', $event);
|
|
1317
|
+
}),
|
|
1318
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
1319
|
+
pt: _ctx.pt
|
|
1320
|
+
}, null, 8, ["columns", "node", "parentNode", "level", "expandedKeys", "selectionMode", "selectionKeys", "indentation", "ariaPosInset", "ariaSetSize", "templates", "onCheckboxChange", "pt"]);
|
|
1321
|
+
}), 128)) : vue.createCommentVNode("", true)], 64);
|
|
1051
1322
|
}
|
|
1052
1323
|
|
|
1053
1324
|
script$1.render = render$1;
|
|
1054
1325
|
|
|
1326
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
1327
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
1328
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1329
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1330
|
+
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1331
|
+
function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
1332
|
+
function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1333
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
1334
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1335
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
1336
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
1337
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
1338
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
1055
1339
|
var script = {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
type: null,
|
|
1078
|
-
default: null
|
|
1079
|
-
},
|
|
1080
|
-
expandedKeys: {
|
|
1081
|
-
type: null,
|
|
1082
|
-
default: null
|
|
1083
|
-
},
|
|
1084
|
-
selectionKeys: {
|
|
1085
|
-
type: null,
|
|
1086
|
-
default: null
|
|
1087
|
-
},
|
|
1088
|
-
selectionMode: {
|
|
1089
|
-
type: String,
|
|
1090
|
-
default: null
|
|
1091
|
-
},
|
|
1092
|
-
metaKeySelection: {
|
|
1093
|
-
type: Boolean,
|
|
1094
|
-
default: true
|
|
1095
|
-
},
|
|
1096
|
-
rows: {
|
|
1097
|
-
type: Number,
|
|
1098
|
-
default: 0
|
|
1099
|
-
},
|
|
1100
|
-
first: {
|
|
1101
|
-
type: Number,
|
|
1102
|
-
default: 0
|
|
1103
|
-
},
|
|
1104
|
-
totalRecords: {
|
|
1105
|
-
type: Number,
|
|
1106
|
-
default: 0
|
|
1107
|
-
},
|
|
1108
|
-
paginator: {
|
|
1109
|
-
type: Boolean,
|
|
1110
|
-
default: false
|
|
1111
|
-
},
|
|
1112
|
-
paginatorPosition: {
|
|
1113
|
-
type: String,
|
|
1114
|
-
default: 'bottom'
|
|
1115
|
-
},
|
|
1116
|
-
alwaysShowPaginator: {
|
|
1117
|
-
type: Boolean,
|
|
1118
|
-
default: true
|
|
1119
|
-
},
|
|
1120
|
-
paginatorTemplate: {
|
|
1121
|
-
type: String,
|
|
1122
|
-
default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
|
|
1123
|
-
},
|
|
1124
|
-
pageLinkSize: {
|
|
1125
|
-
type: Number,
|
|
1126
|
-
default: 5
|
|
1127
|
-
},
|
|
1128
|
-
rowsPerPageOptions: {
|
|
1129
|
-
type: Array,
|
|
1130
|
-
default: null
|
|
1131
|
-
},
|
|
1132
|
-
currentPageReportTemplate: {
|
|
1133
|
-
type: String,
|
|
1134
|
-
default: '({currentPage} of {totalPages})'
|
|
1135
|
-
},
|
|
1136
|
-
lazy: {
|
|
1137
|
-
type: Boolean,
|
|
1138
|
-
default: false
|
|
1139
|
-
},
|
|
1140
|
-
loading: {
|
|
1141
|
-
type: Boolean,
|
|
1142
|
-
default: false
|
|
1143
|
-
},
|
|
1144
|
-
loadingIcon: {
|
|
1145
|
-
type: String,
|
|
1146
|
-
default: undefined
|
|
1147
|
-
},
|
|
1148
|
-
rowHover: {
|
|
1149
|
-
type: Boolean,
|
|
1150
|
-
default: false
|
|
1151
|
-
},
|
|
1152
|
-
autoLayout: {
|
|
1153
|
-
type: Boolean,
|
|
1154
|
-
default: false
|
|
1155
|
-
},
|
|
1156
|
-
sortField: {
|
|
1157
|
-
type: [String, Function],
|
|
1158
|
-
default: null
|
|
1159
|
-
},
|
|
1160
|
-
sortOrder: {
|
|
1161
|
-
type: Number,
|
|
1162
|
-
default: null
|
|
1163
|
-
},
|
|
1164
|
-
defaultSortOrder: {
|
|
1165
|
-
type: Number,
|
|
1166
|
-
default: 1
|
|
1167
|
-
},
|
|
1168
|
-
multiSortMeta: {
|
|
1169
|
-
type: Array,
|
|
1170
|
-
default: null
|
|
1171
|
-
},
|
|
1172
|
-
sortMode: {
|
|
1173
|
-
type: String,
|
|
1174
|
-
default: 'single'
|
|
1175
|
-
},
|
|
1176
|
-
removableSort: {
|
|
1177
|
-
type: Boolean,
|
|
1178
|
-
default: false
|
|
1179
|
-
},
|
|
1180
|
-
filters: {
|
|
1181
|
-
type: Object,
|
|
1182
|
-
default: null
|
|
1183
|
-
},
|
|
1184
|
-
filterMode: {
|
|
1185
|
-
type: String,
|
|
1186
|
-
default: 'lenient'
|
|
1187
|
-
},
|
|
1188
|
-
filterLocale: {
|
|
1189
|
-
type: String,
|
|
1190
|
-
default: undefined
|
|
1191
|
-
},
|
|
1192
|
-
resizableColumns: {
|
|
1193
|
-
type: Boolean,
|
|
1194
|
-
default: false
|
|
1195
|
-
},
|
|
1196
|
-
columnResizeMode: {
|
|
1197
|
-
type: String,
|
|
1198
|
-
default: 'fit'
|
|
1199
|
-
},
|
|
1200
|
-
indentation: {
|
|
1201
|
-
type: Number,
|
|
1202
|
-
default: 1
|
|
1203
|
-
},
|
|
1204
|
-
showGridlines: {
|
|
1205
|
-
type: Boolean,
|
|
1206
|
-
default: false
|
|
1207
|
-
},
|
|
1208
|
-
scrollable: {
|
|
1209
|
-
type: Boolean,
|
|
1210
|
-
default: false
|
|
1211
|
-
},
|
|
1212
|
-
scrollDirection: {
|
|
1213
|
-
type: String,
|
|
1214
|
-
default: 'vertical'
|
|
1215
|
-
},
|
|
1216
|
-
scrollHeight: {
|
|
1217
|
-
type: String,
|
|
1218
|
-
default: null
|
|
1219
|
-
},
|
|
1220
|
-
responsiveLayout: {
|
|
1221
|
-
type: String,
|
|
1222
|
-
default: null
|
|
1223
|
-
},
|
|
1224
|
-
tableProps: {
|
|
1225
|
-
type: Object,
|
|
1226
|
-
default: null
|
|
1227
|
-
}
|
|
1340
|
+
name: 'TreeTable',
|
|
1341
|
+
"extends": script$5,
|
|
1342
|
+
emits: ['node-expand', 'node-collapse', 'update:expandedKeys', 'update:selectionKeys', 'node-select', 'node-unselect', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'column-resize-end'],
|
|
1343
|
+
documentColumnResizeListener: null,
|
|
1344
|
+
documentColumnResizeEndListener: null,
|
|
1345
|
+
lastResizeHelperX: null,
|
|
1346
|
+
resizeColumnElement: null,
|
|
1347
|
+
data: function data() {
|
|
1348
|
+
return {
|
|
1349
|
+
d_expandedKeys: this.expandedKeys || {},
|
|
1350
|
+
d_first: this.first,
|
|
1351
|
+
d_rows: this.rows,
|
|
1352
|
+
d_sortField: this.sortField,
|
|
1353
|
+
d_sortOrder: this.sortOrder,
|
|
1354
|
+
d_multiSortMeta: this.multiSortMeta ? _toConsumableArray(this.multiSortMeta) : [],
|
|
1355
|
+
hasASelectedNode: false
|
|
1356
|
+
};
|
|
1357
|
+
},
|
|
1358
|
+
watch: {
|
|
1359
|
+
expandedKeys: function expandedKeys(newValue) {
|
|
1360
|
+
this.d_expandedKeys = newValue;
|
|
1228
1361
|
},
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
lastResizeHelperX: null,
|
|
1232
|
-
resizeColumnElement: null,
|
|
1233
|
-
data() {
|
|
1234
|
-
return {
|
|
1235
|
-
d_expandedKeys: this.expandedKeys || {},
|
|
1236
|
-
d_first: this.first,
|
|
1237
|
-
d_rows: this.rows,
|
|
1238
|
-
d_sortField: this.sortField,
|
|
1239
|
-
d_sortOrder: this.sortOrder,
|
|
1240
|
-
d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : [],
|
|
1241
|
-
hasASelectedNode: false
|
|
1242
|
-
};
|
|
1362
|
+
first: function first(newValue) {
|
|
1363
|
+
this.d_first = newValue;
|
|
1243
1364
|
},
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
this.d_rows = newValue;
|
|
1253
|
-
},
|
|
1254
|
-
sortField(newValue) {
|
|
1255
|
-
this.d_sortField = newValue;
|
|
1256
|
-
},
|
|
1257
|
-
sortOrder(newValue) {
|
|
1258
|
-
this.d_sortOrder = newValue;
|
|
1259
|
-
},
|
|
1260
|
-
multiSortMeta(newValue) {
|
|
1261
|
-
this.d_multiSortMeta = newValue;
|
|
1262
|
-
}
|
|
1365
|
+
rows: function rows(newValue) {
|
|
1366
|
+
this.d_rows = newValue;
|
|
1367
|
+
},
|
|
1368
|
+
sortField: function sortField(newValue) {
|
|
1369
|
+
this.d_sortField = newValue;
|
|
1370
|
+
},
|
|
1371
|
+
sortOrder: function sortOrder(newValue) {
|
|
1372
|
+
this.d_sortOrder = newValue;
|
|
1263
1373
|
},
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1374
|
+
multiSortMeta: function multiSortMeta(newValue) {
|
|
1375
|
+
this.d_multiSortMeta = newValue;
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
mounted: function mounted() {
|
|
1379
|
+
if (this.scrollable && this.scrollDirection !== 'vertical') {
|
|
1380
|
+
this.updateScrollWidth();
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
updated: function updated() {
|
|
1384
|
+
if (this.scrollable && this.scrollDirection !== 'vertical') {
|
|
1385
|
+
this.updateScrollWidth();
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
methods: {
|
|
1389
|
+
columnProp: function columnProp(col, prop) {
|
|
1390
|
+
return utils.ObjectUtils.getVNodeProp(col, prop);
|
|
1391
|
+
},
|
|
1392
|
+
onNodeToggle: function onNodeToggle(node) {
|
|
1393
|
+
var key = node.key;
|
|
1394
|
+
if (this.d_expandedKeys[key]) {
|
|
1395
|
+
delete this.d_expandedKeys[key];
|
|
1396
|
+
this.$emit('node-collapse', node);
|
|
1397
|
+
} else {
|
|
1398
|
+
this.d_expandedKeys[key] = true;
|
|
1399
|
+
this.$emit('node-expand', node);
|
|
1400
|
+
}
|
|
1401
|
+
this.d_expandedKeys = _objectSpread$1({}, this.d_expandedKeys);
|
|
1402
|
+
this.$emit('update:expandedKeys', this.d_expandedKeys);
|
|
1403
|
+
},
|
|
1404
|
+
onNodeClick: function onNodeClick(event) {
|
|
1405
|
+
if (this.rowSelectionMode && event.node.selectable !== false) {
|
|
1406
|
+
var metaSelection = event.nodeTouched ? false : this.metaKeySelection;
|
|
1407
|
+
var _selectionKeys = metaSelection ? this.handleSelectionWithMetaKey(event) : this.handleSelectionWithoutMetaKey(event);
|
|
1408
|
+
this.$emit('update:selectionKeys', _selectionKeys);
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1411
|
+
handleSelectionWithMetaKey: function handleSelectionWithMetaKey(event) {
|
|
1412
|
+
var originalEvent = event.originalEvent;
|
|
1413
|
+
var node = event.node;
|
|
1414
|
+
var metaKey = originalEvent.metaKey || originalEvent.ctrlKey;
|
|
1415
|
+
var selected = this.isNodeSelected(node);
|
|
1416
|
+
var _selectionKeys;
|
|
1417
|
+
if (selected && metaKey) {
|
|
1418
|
+
if (this.isSingleSelectionMode()) {
|
|
1419
|
+
_selectionKeys = {};
|
|
1420
|
+
} else {
|
|
1421
|
+
_selectionKeys = _objectSpread$1({}, this.selectionKeys);
|
|
1422
|
+
delete _selectionKeys[node.key];
|
|
1267
1423
|
}
|
|
1424
|
+
this.$emit('node-unselect', node);
|
|
1425
|
+
} else {
|
|
1426
|
+
if (this.isSingleSelectionMode()) {
|
|
1427
|
+
_selectionKeys = {};
|
|
1428
|
+
} else if (this.isMultipleSelectionMode()) {
|
|
1429
|
+
_selectionKeys = !metaKey ? {} : this.selectionKeys ? _objectSpread$1({}, this.selectionKeys) : {};
|
|
1430
|
+
}
|
|
1431
|
+
_selectionKeys[node.key] = true;
|
|
1432
|
+
this.$emit('node-select', node);
|
|
1433
|
+
}
|
|
1434
|
+
return _selectionKeys;
|
|
1268
1435
|
},
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1436
|
+
handleSelectionWithoutMetaKey: function handleSelectionWithoutMetaKey(event) {
|
|
1437
|
+
var node = event.node;
|
|
1438
|
+
var selected = this.isNodeSelected(node);
|
|
1439
|
+
var _selectionKeys;
|
|
1440
|
+
if (this.isSingleSelectionMode()) {
|
|
1441
|
+
if (selected) {
|
|
1442
|
+
_selectionKeys = {};
|
|
1443
|
+
this.$emit('node-unselect', node);
|
|
1444
|
+
} else {
|
|
1445
|
+
_selectionKeys = {};
|
|
1446
|
+
_selectionKeys[node.key] = true;
|
|
1447
|
+
this.$emit('node-select', node);
|
|
1448
|
+
}
|
|
1449
|
+
} else {
|
|
1450
|
+
if (selected) {
|
|
1451
|
+
_selectionKeys = _objectSpread$1({}, this.selectionKeys);
|
|
1452
|
+
delete _selectionKeys[node.key];
|
|
1453
|
+
this.$emit('node-unselect', node);
|
|
1454
|
+
} else {
|
|
1455
|
+
_selectionKeys = this.selectionKeys ? _objectSpread$1({}, this.selectionKeys) : {};
|
|
1456
|
+
_selectionKeys[node.key] = true;
|
|
1457
|
+
this.$emit('node-select', node);
|
|
1272
1458
|
}
|
|
1459
|
+
}
|
|
1460
|
+
return _selectionKeys;
|
|
1273
1461
|
},
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
this
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
} else if (this.isMultipleSelectionMode()) {
|
|
1320
|
-
_selectionKeys = !metaKey ? {} : this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
_selectionKeys[node.key] = true;
|
|
1324
|
-
this.$emit('node-select', node);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
return _selectionKeys;
|
|
1328
|
-
},
|
|
1329
|
-
handleSelectionWithoutMetaKey(event) {
|
|
1330
|
-
const node = event.node;
|
|
1331
|
-
const selected = this.isNodeSelected(node);
|
|
1332
|
-
let _selectionKeys;
|
|
1333
|
-
|
|
1334
|
-
if (this.isSingleSelectionMode()) {
|
|
1335
|
-
if (selected) {
|
|
1336
|
-
_selectionKeys = {};
|
|
1337
|
-
this.$emit('node-unselect', node);
|
|
1338
|
-
} else {
|
|
1339
|
-
_selectionKeys = {};
|
|
1340
|
-
_selectionKeys[node.key] = true;
|
|
1341
|
-
this.$emit('node-select', node);
|
|
1342
|
-
}
|
|
1343
|
-
} else {
|
|
1344
|
-
if (selected) {
|
|
1345
|
-
_selectionKeys = { ...this.selectionKeys };
|
|
1346
|
-
delete _selectionKeys[node.key];
|
|
1347
|
-
|
|
1348
|
-
this.$emit('node-unselect', node);
|
|
1349
|
-
} else {
|
|
1350
|
-
_selectionKeys = this.selectionKeys ? { ...this.selectionKeys } : {};
|
|
1351
|
-
_selectionKeys[node.key] = true;
|
|
1352
|
-
|
|
1353
|
-
this.$emit('node-select', node);
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
return _selectionKeys;
|
|
1358
|
-
},
|
|
1359
|
-
onCheckboxChange(event) {
|
|
1360
|
-
this.$emit('update:selectionKeys', event.selectionKeys);
|
|
1361
|
-
|
|
1362
|
-
if (event.check) this.$emit('node-select', event.node);
|
|
1363
|
-
else this.$emit('node-unselect', event.node);
|
|
1364
|
-
},
|
|
1365
|
-
isSingleSelectionMode() {
|
|
1366
|
-
return this.selectionMode === 'single';
|
|
1367
|
-
},
|
|
1368
|
-
isMultipleSelectionMode() {
|
|
1369
|
-
return this.selectionMode === 'multiple';
|
|
1370
|
-
},
|
|
1371
|
-
onPage(event) {
|
|
1372
|
-
this.d_first = event.first;
|
|
1373
|
-
this.d_rows = event.rows;
|
|
1374
|
-
|
|
1375
|
-
let pageEvent = this.createLazyLoadEvent(event);
|
|
1376
|
-
|
|
1377
|
-
pageEvent.pageCount = event.pageCount;
|
|
1378
|
-
pageEvent.page = event.page;
|
|
1379
|
-
|
|
1380
|
-
this.$emit('update:first', this.d_first);
|
|
1381
|
-
this.$emit('update:rows', this.d_rows);
|
|
1382
|
-
this.$emit('page', pageEvent);
|
|
1383
|
-
},
|
|
1384
|
-
resetPage() {
|
|
1385
|
-
this.d_first = 0;
|
|
1386
|
-
this.$emit('update:first', this.d_first);
|
|
1387
|
-
},
|
|
1388
|
-
getFilterColumnHeaderClass(column) {
|
|
1389
|
-
return [
|
|
1390
|
-
'p-filter-column',
|
|
1391
|
-
this.columnProp(column, 'filterHeaderClass'),
|
|
1392
|
-
{
|
|
1393
|
-
'p-frozen-column': this.columnProp(column, 'frozen')
|
|
1394
|
-
}
|
|
1395
|
-
];
|
|
1396
|
-
},
|
|
1397
|
-
onColumnHeaderClick(e) {
|
|
1398
|
-
let event = e.originalEvent;
|
|
1399
|
-
let column = e.column;
|
|
1400
|
-
|
|
1401
|
-
if (this.columnProp(column, 'sortable')) {
|
|
1402
|
-
const targetNode = event.target;
|
|
1403
|
-
const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
1404
|
-
|
|
1405
|
-
if (
|
|
1406
|
-
utils.DomHandler.hasClass(targetNode, 'p-sortable-column') ||
|
|
1407
|
-
utils.DomHandler.hasClass(targetNode, 'p-column-title') ||
|
|
1408
|
-
utils.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') ||
|
|
1409
|
-
utils.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')
|
|
1410
|
-
) {
|
|
1411
|
-
utils.DomHandler.clearSelection();
|
|
1412
|
-
|
|
1413
|
-
if (this.sortMode === 'single') {
|
|
1414
|
-
if (this.d_sortField === columnField) {
|
|
1415
|
-
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
1416
|
-
this.d_sortOrder = null;
|
|
1417
|
-
this.d_sortField = null;
|
|
1418
|
-
} else {
|
|
1419
|
-
this.d_sortOrder = this.d_sortOrder * -1;
|
|
1420
|
-
}
|
|
1421
|
-
} else {
|
|
1422
|
-
this.d_sortOrder = this.defaultSortOrder;
|
|
1423
|
-
this.d_sortField = columnField;
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
this.$emit('update:sortField', this.d_sortField);
|
|
1427
|
-
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
1428
|
-
this.resetPage();
|
|
1429
|
-
} else if (this.sortMode === 'multiple') {
|
|
1430
|
-
let metaKey = event.metaKey || event.ctrlKey;
|
|
1431
|
-
|
|
1432
|
-
if (!metaKey) {
|
|
1433
|
-
this.d_multiSortMeta = this.d_multiSortMeta.filter((meta) => meta.field === columnField);
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
this.addMultiSortField(columnField);
|
|
1437
|
-
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
},
|
|
1444
|
-
addMultiSortField(field) {
|
|
1445
|
-
let index = this.d_multiSortMeta.findIndex((meta) => meta.field === field);
|
|
1446
|
-
|
|
1447
|
-
if (index >= 0) {
|
|
1448
|
-
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);
|
|
1449
|
-
else this.d_multiSortMeta[index] = { field: field, order: this.d_multiSortMeta[index].order * -1 };
|
|
1462
|
+
onCheckboxChange: function onCheckboxChange(event) {
|
|
1463
|
+
this.$emit('update:selectionKeys', event.selectionKeys);
|
|
1464
|
+
if (event.check) this.$emit('node-select', event.node);else this.$emit('node-unselect', event.node);
|
|
1465
|
+
},
|
|
1466
|
+
isSingleSelectionMode: function isSingleSelectionMode() {
|
|
1467
|
+
return this.selectionMode === 'single';
|
|
1468
|
+
},
|
|
1469
|
+
isMultipleSelectionMode: function isMultipleSelectionMode() {
|
|
1470
|
+
return this.selectionMode === 'multiple';
|
|
1471
|
+
},
|
|
1472
|
+
onPage: function onPage(event) {
|
|
1473
|
+
this.d_first = event.first;
|
|
1474
|
+
this.d_rows = event.rows;
|
|
1475
|
+
var pageEvent = this.createLazyLoadEvent(event);
|
|
1476
|
+
pageEvent.pageCount = event.pageCount;
|
|
1477
|
+
pageEvent.page = event.page;
|
|
1478
|
+
this.$emit('update:first', this.d_first);
|
|
1479
|
+
this.$emit('update:rows', this.d_rows);
|
|
1480
|
+
this.$emit('page', pageEvent);
|
|
1481
|
+
},
|
|
1482
|
+
resetPage: function resetPage() {
|
|
1483
|
+
this.d_first = 0;
|
|
1484
|
+
this.$emit('update:first', this.d_first);
|
|
1485
|
+
},
|
|
1486
|
+
getFilterColumnHeaderClass: function getFilterColumnHeaderClass(column) {
|
|
1487
|
+
return [this.cx('headerCell', {
|
|
1488
|
+
column: column
|
|
1489
|
+
}), this.columnProp(column, 'filterHeaderClass')];
|
|
1490
|
+
},
|
|
1491
|
+
onColumnHeaderClick: function onColumnHeaderClick(e) {
|
|
1492
|
+
var event = e.originalEvent;
|
|
1493
|
+
var column = e.column;
|
|
1494
|
+
if (this.columnProp(column, 'sortable')) {
|
|
1495
|
+
var targetNode = event.target;
|
|
1496
|
+
var columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
|
|
1497
|
+
if (utils.DomHandler.getAttribute(targetNode, 'data-p-sortable-column') === true || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'headerTitle' || utils.DomHandler.getAttribute(targetNode, 'data-pc-section') === 'sortIcon' || utils.DomHandler.getAttribute(targetNode.parentElement, 'data-pc-section') === 'sortIcon') {
|
|
1498
|
+
utils.DomHandler.clearSelection();
|
|
1499
|
+
if (this.sortMode === 'single') {
|
|
1500
|
+
if (this.d_sortField === columnField) {
|
|
1501
|
+
if (this.removableSort && this.d_sortOrder * -1 === this.defaultSortOrder) {
|
|
1502
|
+
this.d_sortOrder = null;
|
|
1503
|
+
this.d_sortField = null;
|
|
1504
|
+
} else {
|
|
1505
|
+
this.d_sortOrder = this.d_sortOrder * -1;
|
|
1506
|
+
}
|
|
1450
1507
|
} else {
|
|
1451
|
-
|
|
1508
|
+
this.d_sortOrder = this.defaultSortOrder;
|
|
1509
|
+
this.d_sortField = columnField;
|
|
1452
1510
|
}
|
|
1453
|
-
|
|
1454
|
-
this
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
_nodes.sort((node1, node2) => {
|
|
1463
|
-
const value1 = utils.ObjectUtils.resolveFieldData(node1.data, this.d_sortField);
|
|
1464
|
-
const value2 = utils.ObjectUtils.resolveFieldData(node2.data, this.d_sortField);
|
|
1465
|
-
let result = null;
|
|
1466
|
-
|
|
1467
|
-
if (value1 == null && value2 != null) result = -1;
|
|
1468
|
-
else if (value1 != null && value2 == null) result = 1;
|
|
1469
|
-
else if (value1 == null && value2 == null) result = 0;
|
|
1470
|
-
else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
1471
|
-
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1472
|
-
|
|
1473
|
-
return this.d_sortOrder * result;
|
|
1474
|
-
});
|
|
1475
|
-
|
|
1476
|
-
return _nodes;
|
|
1477
|
-
},
|
|
1478
|
-
sortMultiple(nodes) {
|
|
1479
|
-
return this.sortNodesMultiple(nodes);
|
|
1480
|
-
},
|
|
1481
|
-
sortNodesMultiple(nodes) {
|
|
1482
|
-
let _nodes = [...nodes];
|
|
1483
|
-
|
|
1484
|
-
_nodes.sort((node1, node2) => {
|
|
1485
|
-
return this.multisortField(node1, node2, 0);
|
|
1486
|
-
});
|
|
1487
|
-
|
|
1488
|
-
return _nodes;
|
|
1489
|
-
},
|
|
1490
|
-
multisortField(node1, node2, index) {
|
|
1491
|
-
const value1 = utils.ObjectUtils.resolveFieldData(node1.data, this.d_multiSortMeta[index].field);
|
|
1492
|
-
const value2 = utils.ObjectUtils.resolveFieldData(node2.data, this.d_multiSortMeta[index].field);
|
|
1493
|
-
let result = null;
|
|
1494
|
-
|
|
1495
|
-
if (value1 == null && value2 != null) result = -1;
|
|
1496
|
-
else if (value1 != null && value2 == null) result = 1;
|
|
1497
|
-
else if (value1 == null && value2 == null) result = 0;
|
|
1498
|
-
else {
|
|
1499
|
-
if (value1 === value2) {
|
|
1500
|
-
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, index + 1) : 0;
|
|
1501
|
-
} else {
|
|
1502
|
-
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 });
|
|
1503
|
-
else result = value1 < value2 ? -1 : 1;
|
|
1504
|
-
}
|
|
1511
|
+
this.$emit('update:sortField', this.d_sortField);
|
|
1512
|
+
this.$emit('update:sortOrder', this.d_sortOrder);
|
|
1513
|
+
this.resetPage();
|
|
1514
|
+
} else if (this.sortMode === 'multiple') {
|
|
1515
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
1516
|
+
if (!metaKey) {
|
|
1517
|
+
this.d_multiSortMeta = this.d_multiSortMeta.filter(function (meta) {
|
|
1518
|
+
return meta.field === columnField;
|
|
1519
|
+
});
|
|
1505
1520
|
}
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1521
|
+
this.addMultiSortField(columnField);
|
|
1522
|
+
this.$emit('update:multiSortMeta', this.d_multiSortMeta);
|
|
1523
|
+
}
|
|
1524
|
+
this.$emit('sort', this.createLazyLoadEvent(event));
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
},
|
|
1528
|
+
addMultiSortField: function addMultiSortField(field) {
|
|
1529
|
+
var index = this.d_multiSortMeta.findIndex(function (meta) {
|
|
1530
|
+
return meta.field === field;
|
|
1531
|
+
});
|
|
1532
|
+
if (index >= 0) {
|
|
1533
|
+
if (this.removableSort && this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder) this.d_multiSortMeta.splice(index, 1);else this.d_multiSortMeta[index] = {
|
|
1534
|
+
field: field,
|
|
1535
|
+
order: this.d_multiSortMeta[index].order * -1
|
|
1536
|
+
};
|
|
1537
|
+
} else {
|
|
1538
|
+
this.d_multiSortMeta.push({
|
|
1539
|
+
field: field,
|
|
1540
|
+
order: this.defaultSortOrder
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
this.d_multiSortMeta = _toConsumableArray(this.d_multiSortMeta);
|
|
1544
|
+
},
|
|
1545
|
+
sortSingle: function sortSingle(nodes) {
|
|
1546
|
+
return this.sortNodesSingle(nodes);
|
|
1547
|
+
},
|
|
1548
|
+
sortNodesSingle: function sortNodesSingle(nodes) {
|
|
1549
|
+
var _this = this;
|
|
1550
|
+
var _nodes = _toConsumableArray(nodes);
|
|
1551
|
+
_nodes.sort(function (node1, node2) {
|
|
1552
|
+
var value1 = utils.ObjectUtils.resolveFieldData(node1.data, _this.d_sortField);
|
|
1553
|
+
var value2 = utils.ObjectUtils.resolveFieldData(node2.data, _this.d_sortField);
|
|
1554
|
+
var result = null;
|
|
1555
|
+
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
|
|
1556
|
+
numeric: true
|
|
1557
|
+
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1558
|
+
return _this.d_sortOrder * result;
|
|
1559
|
+
});
|
|
1560
|
+
return _nodes;
|
|
1561
|
+
},
|
|
1562
|
+
sortMultiple: function sortMultiple(nodes) {
|
|
1563
|
+
return this.sortNodesMultiple(nodes);
|
|
1564
|
+
},
|
|
1565
|
+
sortNodesMultiple: function sortNodesMultiple(nodes) {
|
|
1566
|
+
var _this2 = this;
|
|
1567
|
+
var _nodes = _toConsumableArray(nodes);
|
|
1568
|
+
_nodes.sort(function (node1, node2) {
|
|
1569
|
+
return _this2.multisortField(node1, node2, 0);
|
|
1570
|
+
});
|
|
1571
|
+
return _nodes;
|
|
1572
|
+
},
|
|
1573
|
+
multisortField: function multisortField(node1, node2, index) {
|
|
1574
|
+
var value1 = utils.ObjectUtils.resolveFieldData(node1.data, this.d_multiSortMeta[index].field);
|
|
1575
|
+
var value2 = utils.ObjectUtils.resolveFieldData(node2.data, this.d_multiSortMeta[index].field);
|
|
1576
|
+
var result = null;
|
|
1577
|
+
if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else {
|
|
1578
|
+
if (value1 === value2) {
|
|
1579
|
+
return this.d_multiSortMeta.length - 1 > index ? this.multisortField(node1, node2, index + 1) : 0;
|
|
1580
|
+
} else {
|
|
1581
|
+
if ((typeof value1 === 'string' || value1 instanceof String) && (typeof value2 === 'string' || value2 instanceof String)) return this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, {
|
|
1582
|
+
numeric: true
|
|
1583
|
+
});else result = value1 < value2 ? -1 : 1;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
return this.d_multiSortMeta[index].order * result;
|
|
1587
|
+
},
|
|
1588
|
+
filter: function filter(value) {
|
|
1589
|
+
var filteredNodes = [];
|
|
1590
|
+
var strict = this.filterMode === 'strict';
|
|
1591
|
+
var _iterator = _createForOfIteratorHelper(value),
|
|
1592
|
+
_step;
|
|
1593
|
+
try {
|
|
1594
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1595
|
+
var node = _step.value;
|
|
1596
|
+
var copyNode = _objectSpread$1({}, node);
|
|
1597
|
+
var localMatch = true;
|
|
1598
|
+
var globalMatch = false;
|
|
1599
|
+
for (var j = 0; j < this.columns.length; j++) {
|
|
1600
|
+
var col = this.columns[j];
|
|
1601
|
+
var filterField = this.columnProp(col, 'field');
|
|
1602
|
+
|
|
1603
|
+
//local
|
|
1604
|
+
if (Object.prototype.hasOwnProperty.call(this.filters, this.columnProp(col, 'field'))) {
|
|
1605
|
+
var filterMatchMode = this.columnProp(col, 'filterMatchMode') || 'startsWith';
|
|
1606
|
+
var filterValue = this.filters[this.columnProp(col, 'field')];
|
|
1607
|
+
var filterConstraint = api.FilterService.filters[filterMatchMode];
|
|
1608
|
+
var paramsWithoutNode = {
|
|
1609
|
+
filterField: filterField,
|
|
1610
|
+
filterValue: filterValue,
|
|
1611
|
+
filterConstraint: filterConstraint,
|
|
1612
|
+
strict: strict
|
|
1613
|
+
};
|
|
1614
|
+
if (strict && !(this.findFilteredNodes(copyNode, paramsWithoutNode) || this.isFilterMatched(copyNode, paramsWithoutNode)) || !strict && !(this.isFilterMatched(copyNode, paramsWithoutNode) || this.findFilteredNodes(copyNode, paramsWithoutNode))) {
|
|
1615
|
+
localMatch = false;
|
|
1616
|
+
}
|
|
1617
|
+
if (!localMatch) {
|
|
1618
|
+
break;
|
|
1619
|
+
}
|
|
1567
1620
|
}
|
|
1568
1621
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
for (let childNode of childNodes) {
|
|
1586
|
-
let copyChildNode = { ...childNode };
|
|
1587
|
-
|
|
1588
|
-
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
1589
|
-
matched = true;
|
|
1590
|
-
node.children.push(copyChildNode);
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
if (matched) {
|
|
1596
|
-
return true;
|
|
1597
|
-
}
|
|
1622
|
+
//global
|
|
1623
|
+
if (this.hasGlobalFilter() && !globalMatch) {
|
|
1624
|
+
var copyNodeForGlobal = _objectSpread$1({}, copyNode);
|
|
1625
|
+
var _filterValue = this.filters['global'];
|
|
1626
|
+
var _filterConstraint = api.FilterService.filters['contains'];
|
|
1627
|
+
var globalFilterParamsWithoutNode = {
|
|
1628
|
+
filterField: filterField,
|
|
1629
|
+
filterValue: _filterValue,
|
|
1630
|
+
filterConstraint: _filterConstraint,
|
|
1631
|
+
strict: strict
|
|
1632
|
+
};
|
|
1633
|
+
if (strict && (this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode)) || !strict && (this.isFilterMatched(copyNodeForGlobal, globalFilterParamsWithoutNode) || this.findFilteredNodes(copyNodeForGlobal, globalFilterParamsWithoutNode))) {
|
|
1634
|
+
globalMatch = true;
|
|
1635
|
+
copyNode = copyNodeForGlobal;
|
|
1636
|
+
}
|
|
1598
1637
|
}
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1638
|
+
}
|
|
1639
|
+
var matches = localMatch;
|
|
1640
|
+
if (this.hasGlobalFilter()) {
|
|
1641
|
+
matches = localMatch && globalMatch;
|
|
1642
|
+
}
|
|
1643
|
+
if (matches) {
|
|
1644
|
+
filteredNodes.push(copyNode);
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
} catch (err) {
|
|
1648
|
+
_iterator.e(err);
|
|
1649
|
+
} finally {
|
|
1650
|
+
_iterator.f();
|
|
1651
|
+
}
|
|
1652
|
+
var filterEvent = this.createLazyLoadEvent(event);
|
|
1653
|
+
filterEvent.filteredValue = filteredNodes;
|
|
1654
|
+
this.$emit('filter', filterEvent);
|
|
1655
|
+
return filteredNodes;
|
|
1656
|
+
},
|
|
1657
|
+
findFilteredNodes: function findFilteredNodes(node, paramsWithoutNode) {
|
|
1658
|
+
if (node) {
|
|
1659
|
+
var matched = false;
|
|
1660
|
+
if (node.children) {
|
|
1661
|
+
var childNodes = _toConsumableArray(node.children);
|
|
1662
|
+
node.children = [];
|
|
1663
|
+
var _iterator2 = _createForOfIteratorHelper(childNodes),
|
|
1664
|
+
_step2;
|
|
1665
|
+
try {
|
|
1666
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
1667
|
+
var childNode = _step2.value;
|
|
1668
|
+
var copyChildNode = _objectSpread$1({}, childNode);
|
|
1669
|
+
if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {
|
|
1605
1670
|
matched = true;
|
|
1671
|
+
node.children.push(copyChildNode);
|
|
1672
|
+
}
|
|
1606
1673
|
}
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
return matched;
|
|
1613
|
-
},
|
|
1614
|
-
isNodeSelected(node) {
|
|
1615
|
-
return this.selectionMode && this.selectionKeys ? this.selectionKeys[node.key] === true : false;
|
|
1616
|
-
},
|
|
1617
|
-
isNodeLeaf(node) {
|
|
1618
|
-
return node.leaf === false ? false : !(node.children && node.children.length);
|
|
1619
|
-
},
|
|
1620
|
-
createLazyLoadEvent(event) {
|
|
1621
|
-
let filterMatchModes;
|
|
1622
|
-
|
|
1623
|
-
if (this.hasFilters()) {
|
|
1624
|
-
filterMatchModes = {};
|
|
1625
|
-
this.columns.forEach((col) => {
|
|
1626
|
-
if (this.columnProp(col, 'field')) {
|
|
1627
|
-
filterMatchModes[col.props.field] = this.columnProp(col, 'filterMatchMode');
|
|
1628
|
-
}
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
return {
|
|
1633
|
-
originalEvent: event,
|
|
1634
|
-
first: this.d_first,
|
|
1635
|
-
rows: this.d_rows,
|
|
1636
|
-
sortField: this.d_sortField,
|
|
1637
|
-
sortOrder: this.d_sortOrder,
|
|
1638
|
-
multiSortMeta: this.d_multiSortMeta,
|
|
1639
|
-
filters: this.filters,
|
|
1640
|
-
filterMatchModes: filterMatchModes
|
|
1641
|
-
};
|
|
1642
|
-
},
|
|
1643
|
-
onColumnResizeStart(event) {
|
|
1644
|
-
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1645
|
-
|
|
1646
|
-
this.resizeColumnElement = event.target.parentElement;
|
|
1647
|
-
this.columnResizing = true;
|
|
1648
|
-
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
1649
|
-
|
|
1650
|
-
this.bindColumnResizeEvents();
|
|
1651
|
-
},
|
|
1652
|
-
onColumnResize(event) {
|
|
1653
|
-
let containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1654
|
-
|
|
1655
|
-
utils.DomHandler.addClass(this.$el, 'p-unselectable-text');
|
|
1656
|
-
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
1657
|
-
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
1658
|
-
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
1659
|
-
|
|
1660
|
-
this.$refs.resizeHelper.style.display = 'block';
|
|
1661
|
-
},
|
|
1662
|
-
onColumnResizeEnd() {
|
|
1663
|
-
let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
1664
|
-
let columnWidth = this.resizeColumnElement.offsetWidth;
|
|
1665
|
-
let newColumnWidth = columnWidth + delta;
|
|
1666
|
-
let minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
1667
|
-
|
|
1668
|
-
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
1669
|
-
if (this.columnResizeMode === 'fit') {
|
|
1670
|
-
let nextColumn = this.resizeColumnElement.nextElementSibling;
|
|
1671
|
-
let nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
1672
|
-
|
|
1673
|
-
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
1674
|
-
if (!this.scrollable) {
|
|
1675
|
-
this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
1676
|
-
|
|
1677
|
-
if (nextColumn) {
|
|
1678
|
-
nextColumn.style.width = nextColumnWidth + 'px';
|
|
1679
|
-
}
|
|
1680
|
-
} else {
|
|
1681
|
-
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
} else if (this.columnResizeMode === 'expand') {
|
|
1685
|
-
this.$refs.table.style.width = this.$refs.table.offsetWidth + delta + 'px';
|
|
1686
|
-
|
|
1687
|
-
if (!this.scrollable) this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
1688
|
-
else this.resizeTableCells(newColumnWidth);
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
this.$emit('column-resize-end', {
|
|
1692
|
-
element: this.resizeColumnElement,
|
|
1693
|
-
delta: delta
|
|
1694
|
-
});
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
this.$refs.resizeHelper.style.display = 'none';
|
|
1698
|
-
this.resizeColumn = null;
|
|
1699
|
-
utils.DomHandler.removeClass(this.$el, 'p-unselectable-text');
|
|
1700
|
-
|
|
1701
|
-
this.unbindColumnResizeEvents();
|
|
1702
|
-
},
|
|
1703
|
-
resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
1704
|
-
let colIndex = utils.DomHandler.index(this.resizeColumnElement);
|
|
1705
|
-
let children = this.$refs.table.children;
|
|
1706
|
-
|
|
1707
|
-
for (let child of children) {
|
|
1708
|
-
for (let row of child.children) {
|
|
1709
|
-
let resizeCell = row.children[colIndex];
|
|
1710
|
-
|
|
1711
|
-
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px';
|
|
1712
|
-
|
|
1713
|
-
if (this.columnResizeMode === 'fit') {
|
|
1714
|
-
let nextCell = resizeCell.nextElementSibling;
|
|
1715
|
-
|
|
1716
|
-
if (nextCell) {
|
|
1717
|
-
nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px';
|
|
1718
|
-
}
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
},
|
|
1723
|
-
bindColumnResizeEvents() {
|
|
1724
|
-
if (!this.documentColumnResizeListener) {
|
|
1725
|
-
this.documentColumnResizeListener = document.addEventListener('mousemove', (event) => {
|
|
1726
|
-
if (this.columnResizing) {
|
|
1727
|
-
this.onColumnResize(event);
|
|
1728
|
-
}
|
|
1729
|
-
});
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
if (!this.documentColumnResizeEndListener) {
|
|
1733
|
-
this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
|
|
1734
|
-
if (this.columnResizing) {
|
|
1735
|
-
this.columnResizing = false;
|
|
1736
|
-
this.onColumnResizeEnd();
|
|
1737
|
-
}
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
},
|
|
1741
|
-
unbindColumnResizeEvents() {
|
|
1742
|
-
if (this.documentColumnResizeListener) {
|
|
1743
|
-
document.removeEventListener('document', this.documentColumnResizeListener);
|
|
1744
|
-
this.documentColumnResizeListener = null;
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
if (this.documentColumnResizeEndListener) {
|
|
1748
|
-
document.removeEventListener('document', this.documentColumnResizeEndListener);
|
|
1749
|
-
this.documentColumnResizeEndListener = null;
|
|
1750
|
-
}
|
|
1751
|
-
},
|
|
1752
|
-
onColumnKeyDown(event, col) {
|
|
1753
|
-
if (event.code === 'Enter' && event.currentTarget.nodeName === 'TH' && utils.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
|
1754
|
-
this.onColumnHeaderClick(event, col);
|
|
1755
|
-
}
|
|
1756
|
-
},
|
|
1757
|
-
hasColumnFilter() {
|
|
1758
|
-
if (this.columns) {
|
|
1759
|
-
for (let col of this.columns) {
|
|
1760
|
-
if (col.children && col.children.filter) {
|
|
1761
|
-
return true;
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
return false;
|
|
1767
|
-
},
|
|
1768
|
-
hasFilters() {
|
|
1769
|
-
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
1770
|
-
},
|
|
1771
|
-
hasGlobalFilter() {
|
|
1772
|
-
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
1773
|
-
},
|
|
1774
|
-
updateScrollWidth() {
|
|
1775
|
-
this.$refs.table.style.width = this.$refs.table.scrollWidth + 'px';
|
|
1776
|
-
},
|
|
1777
|
-
getItemLabel(node) {
|
|
1778
|
-
return node.data.name;
|
|
1779
|
-
},
|
|
1780
|
-
setTabindex(node, index) {
|
|
1781
|
-
if (this.isNodeSelected(node)) {
|
|
1782
|
-
this.hasASelectedNode = true;
|
|
1783
|
-
|
|
1784
|
-
return 0;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
if (this.selectionMode) {
|
|
1788
|
-
if (!this.isNodeSelected(node) && index === 0 && !this.hasASelectedNode) return 0;
|
|
1789
|
-
} else if (!this.selectionMode && index === 0) {
|
|
1790
|
-
return 0;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
return -1;
|
|
1674
|
+
} catch (err) {
|
|
1675
|
+
_iterator2.e(err);
|
|
1676
|
+
} finally {
|
|
1677
|
+
_iterator2.f();
|
|
1678
|
+
}
|
|
1794
1679
|
}
|
|
1680
|
+
if (matched) {
|
|
1681
|
+
return true;
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1795
1684
|
},
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1685
|
+
isFilterMatched: function isFilterMatched(node, _ref) {
|
|
1686
|
+
var filterField = _ref.filterField,
|
|
1687
|
+
filterValue = _ref.filterValue,
|
|
1688
|
+
filterConstraint = _ref.filterConstraint,
|
|
1689
|
+
strict = _ref.strict;
|
|
1690
|
+
var matched = false;
|
|
1691
|
+
var dataFieldValue = utils.ObjectUtils.resolveFieldData(node.data, filterField);
|
|
1692
|
+
if (filterConstraint(dataFieldValue, filterValue, this.filterLocale)) {
|
|
1693
|
+
matched = true;
|
|
1694
|
+
}
|
|
1695
|
+
if (!matched || strict && !this.isNodeLeaf(node)) {
|
|
1696
|
+
matched = this.findFilteredNodes(node, {
|
|
1697
|
+
filterField: filterField,
|
|
1698
|
+
filterValue: filterValue,
|
|
1699
|
+
filterConstraint: filterConstraint,
|
|
1700
|
+
strict: strict
|
|
1701
|
+
}) || matched;
|
|
1702
|
+
}
|
|
1703
|
+
return matched;
|
|
1704
|
+
},
|
|
1705
|
+
isNodeSelected: function isNodeSelected(node) {
|
|
1706
|
+
return this.selectionMode && this.selectionKeys ? this.selectionKeys[node.key] === true : false;
|
|
1707
|
+
},
|
|
1708
|
+
isNodeLeaf: function isNodeLeaf(node) {
|
|
1709
|
+
return node.leaf === false ? false : !(node.children && node.children.length);
|
|
1710
|
+
},
|
|
1711
|
+
createLazyLoadEvent: function createLazyLoadEvent(event) {
|
|
1712
|
+
var _this3 = this;
|
|
1713
|
+
var filterMatchModes;
|
|
1714
|
+
if (this.hasFilters()) {
|
|
1715
|
+
filterMatchModes = {};
|
|
1716
|
+
this.columns.forEach(function (col) {
|
|
1717
|
+
if (_this3.columnProp(col, 'field')) {
|
|
1718
|
+
filterMatchModes[col.props.field] = _this3.columnProp(col, 'filterMatchMode');
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
return {
|
|
1723
|
+
originalEvent: event,
|
|
1724
|
+
first: this.d_first,
|
|
1725
|
+
rows: this.d_rows,
|
|
1726
|
+
sortField: this.d_sortField,
|
|
1727
|
+
sortOrder: this.d_sortOrder,
|
|
1728
|
+
multiSortMeta: this.d_multiSortMeta,
|
|
1729
|
+
filters: this.filters,
|
|
1730
|
+
filterMatchModes: filterMatchModes
|
|
1731
|
+
};
|
|
1732
|
+
},
|
|
1733
|
+
onColumnResizeStart: function onColumnResizeStart(event) {
|
|
1734
|
+
var containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1735
|
+
this.resizeColumnElement = event.target.parentElement;
|
|
1736
|
+
this.columnResizing = true;
|
|
1737
|
+
this.lastResizeHelperX = event.pageX - containerLeft + this.$el.scrollLeft;
|
|
1738
|
+
this.bindColumnResizeEvents();
|
|
1739
|
+
},
|
|
1740
|
+
onColumnResize: function onColumnResize(event) {
|
|
1741
|
+
var containerLeft = utils.DomHandler.getOffset(this.$el).left;
|
|
1742
|
+
this.$el.setAttribute('data-p-unselectable-text', 'true');
|
|
1743
|
+
!this.isUnstyled && utils.DomHandler.addClass(this.$el, 'p-unselectable-text');
|
|
1744
|
+
this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
|
|
1745
|
+
this.$refs.resizeHelper.style.top = 0 + 'px';
|
|
1746
|
+
this.$refs.resizeHelper.style.left = event.pageX - containerLeft + this.$el.scrollLeft + 'px';
|
|
1747
|
+
this.$refs.resizeHelper.style.display = 'block';
|
|
1748
|
+
},
|
|
1749
|
+
onColumnResizeEnd: function onColumnResizeEnd() {
|
|
1750
|
+
var delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
|
|
1751
|
+
var columnWidth = this.resizeColumnElement.offsetWidth;
|
|
1752
|
+
var newColumnWidth = columnWidth + delta;
|
|
1753
|
+
var minWidth = this.resizeColumnElement.style.minWidth || 15;
|
|
1754
|
+
if (columnWidth + delta > parseInt(minWidth, 10)) {
|
|
1755
|
+
if (this.columnResizeMode === 'fit') {
|
|
1756
|
+
var nextColumn = this.resizeColumnElement.nextElementSibling;
|
|
1757
|
+
var nextColumnWidth = nextColumn.offsetWidth - delta;
|
|
1758
|
+
if (newColumnWidth > 15 && nextColumnWidth > 15) {
|
|
1759
|
+
if (!this.scrollable) {
|
|
1760
|
+
this.resizeColumnElement.style.width = newColumnWidth + 'px';
|
|
1761
|
+
if (nextColumn) {
|
|
1762
|
+
nextColumn.style.width = nextColumnWidth + 'px';
|
|
1763
|
+
}
|
|
1855
1764
|
} else {
|
|
1856
|
-
|
|
1765
|
+
this.resizeTableCells(newColumnWidth, nextColumnWidth);
|
|
1857
1766
|
}
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1767
|
+
}
|
|
1768
|
+
} else if (this.columnResizeMode === 'expand') {
|
|
1769
|
+
this.$refs.table.style.width = this.$refs.table.offsetWidth + delta + 'px';
|
|
1770
|
+
if (!this.scrollable) this.resizeColumnElement.style.width = newColumnWidth + 'px';else this.resizeTableCells(newColumnWidth);
|
|
1771
|
+
}
|
|
1772
|
+
this.$emit('column-resize-end', {
|
|
1773
|
+
element: this.resizeColumnElement,
|
|
1774
|
+
delta: delta
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
this.$refs.resizeHelper.style.display = 'none';
|
|
1778
|
+
this.resizeColumn = null;
|
|
1779
|
+
this.$el.setAttribute('data-p-unselectable-text', 'false');
|
|
1780
|
+
!this.isUnstyled && utils.DomHandler.removeClass(this.$el, 'p-unselectable-text');
|
|
1781
|
+
this.unbindColumnResizeEvents();
|
|
1782
|
+
},
|
|
1783
|
+
resizeTableCells: function resizeTableCells(newColumnWidth, nextColumnWidth) {
|
|
1784
|
+
var colIndex = utils.DomHandler.index(this.resizeColumnElement);
|
|
1785
|
+
var children = this.$refs.table.children;
|
|
1786
|
+
var _iterator3 = _createForOfIteratorHelper(children),
|
|
1787
|
+
_step3;
|
|
1788
|
+
try {
|
|
1789
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1790
|
+
var child = _step3.value;
|
|
1791
|
+
var _iterator4 = _createForOfIteratorHelper(child.children),
|
|
1792
|
+
_step4;
|
|
1793
|
+
try {
|
|
1794
|
+
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
1795
|
+
var row = _step4.value;
|
|
1796
|
+
var resizeCell = row.children[colIndex];
|
|
1797
|
+
resizeCell.style.flex = '0 0 ' + newColumnWidth + 'px';
|
|
1798
|
+
if (this.columnResizeMode === 'fit') {
|
|
1799
|
+
var nextCell = resizeCell.nextElementSibling;
|
|
1800
|
+
if (nextCell) {
|
|
1801
|
+
nextCell.style.flex = '0 0 ' + nextColumnWidth + 'px';
|
|
1874
1802
|
}
|
|
1803
|
+
}
|
|
1875
1804
|
}
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1805
|
+
} catch (err) {
|
|
1806
|
+
_iterator4.e(err);
|
|
1807
|
+
} finally {
|
|
1808
|
+
_iterator4.f();
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
} catch (err) {
|
|
1812
|
+
_iterator3.e(err);
|
|
1813
|
+
} finally {
|
|
1814
|
+
_iterator3.f();
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
bindColumnResizeEvents: function bindColumnResizeEvents() {
|
|
1818
|
+
var _this4 = this;
|
|
1819
|
+
if (!this.documentColumnResizeListener) {
|
|
1820
|
+
this.documentColumnResizeListener = document.addEventListener('mousemove', function (event) {
|
|
1821
|
+
if (_this4.columnResizing) {
|
|
1822
|
+
_this4.onColumnResize(event);
|
|
1823
|
+
}
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
if (!this.documentColumnResizeEndListener) {
|
|
1827
|
+
this.documentColumnResizeEndListener = document.addEventListener('mouseup', function () {
|
|
1828
|
+
if (_this4.columnResizing) {
|
|
1829
|
+
_this4.columnResizing = false;
|
|
1830
|
+
_this4.onColumnResizeEnd();
|
|
1831
|
+
}
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
unbindColumnResizeEvents: function unbindColumnResizeEvents() {
|
|
1836
|
+
if (this.documentColumnResizeListener) {
|
|
1837
|
+
document.removeEventListener('document', this.documentColumnResizeListener);
|
|
1838
|
+
this.documentColumnResizeListener = null;
|
|
1839
|
+
}
|
|
1840
|
+
if (this.documentColumnResizeEndListener) {
|
|
1841
|
+
document.removeEventListener('document', this.documentColumnResizeEndListener);
|
|
1842
|
+
this.documentColumnResizeEndListener = null;
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
onColumnKeyDown: function onColumnKeyDown(event, col) {
|
|
1846
|
+
if (event.code === 'Enter' && event.currentTarget.nodeName === 'TH' && utils.DomHandler.getAttribute(event.currentTarget, 'data-p-sortable-column')) {
|
|
1847
|
+
this.onColumnHeaderClick(event, col);
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
hasColumnFilter: function hasColumnFilter() {
|
|
1851
|
+
if (this.columns) {
|
|
1852
|
+
var _iterator5 = _createForOfIteratorHelper(this.columns),
|
|
1853
|
+
_step5;
|
|
1854
|
+
try {
|
|
1855
|
+
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
1856
|
+
var col = _step5.value;
|
|
1857
|
+
if (col.children && col.children.filter) {
|
|
1858
|
+
return true;
|
|
1901
1859
|
}
|
|
1860
|
+
}
|
|
1861
|
+
} catch (err) {
|
|
1862
|
+
_iterator5.e(err);
|
|
1863
|
+
} finally {
|
|
1864
|
+
_iterator5.f();
|
|
1902
1865
|
}
|
|
1866
|
+
}
|
|
1867
|
+
return false;
|
|
1868
|
+
},
|
|
1869
|
+
hasFilters: function hasFilters() {
|
|
1870
|
+
return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
|
|
1903
1871
|
},
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1872
|
+
hasGlobalFilter: function hasGlobalFilter() {
|
|
1873
|
+
return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
|
|
1874
|
+
},
|
|
1875
|
+
updateScrollWidth: function updateScrollWidth() {
|
|
1876
|
+
this.$refs.table.style.width = this.$refs.table.scrollWidth + 'px';
|
|
1877
|
+
},
|
|
1878
|
+
getItemLabel: function getItemLabel(node) {
|
|
1879
|
+
return node.data.name;
|
|
1880
|
+
},
|
|
1881
|
+
setTabindex: function setTabindex(node, index) {
|
|
1882
|
+
if (this.isNodeSelected(node)) {
|
|
1883
|
+
this.hasASelectedNode = true;
|
|
1884
|
+
return 0;
|
|
1885
|
+
}
|
|
1886
|
+
if (this.selectionMode) {
|
|
1887
|
+
if (!this.isNodeSelected(node) && index === 0 && !this.hasASelectedNode) return 0;
|
|
1888
|
+
} else if (!this.selectionMode && index === 0) {
|
|
1889
|
+
return 0;
|
|
1890
|
+
}
|
|
1891
|
+
return -1;
|
|
1910
1892
|
}
|
|
1893
|
+
},
|
|
1894
|
+
computed: {
|
|
1895
|
+
columns: function columns() {
|
|
1896
|
+
var cols = [];
|
|
1897
|
+
var children = this.$slots["default"]();
|
|
1898
|
+
children.forEach(function (child) {
|
|
1899
|
+
if (child.children && child.children instanceof Array) cols = [].concat(_toConsumableArray(cols), _toConsumableArray(child.children));else if (child.type.name === 'Column') cols.push(child);
|
|
1900
|
+
});
|
|
1901
|
+
return cols;
|
|
1902
|
+
},
|
|
1903
|
+
processedData: function processedData() {
|
|
1904
|
+
if (this.lazy) {
|
|
1905
|
+
return this.value;
|
|
1906
|
+
} else {
|
|
1907
|
+
if (this.value && this.value.length) {
|
|
1908
|
+
var data = this.value;
|
|
1909
|
+
if (this.sorted) {
|
|
1910
|
+
if (this.sortMode === 'single') data = this.sortSingle(data);else if (this.sortMode === 'multiple') data = this.sortMultiple(data);
|
|
1911
|
+
}
|
|
1912
|
+
if (this.hasFilters()) {
|
|
1913
|
+
data = this.filter(data);
|
|
1914
|
+
}
|
|
1915
|
+
return data;
|
|
1916
|
+
} else {
|
|
1917
|
+
return null;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
dataToRender: function dataToRender() {
|
|
1922
|
+
var data = this.processedData;
|
|
1923
|
+
if (this.paginator) {
|
|
1924
|
+
var first = this.lazy ? 0 : this.d_first;
|
|
1925
|
+
return data.slice(first, first + this.d_rows);
|
|
1926
|
+
} else {
|
|
1927
|
+
return data;
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
empty: function empty() {
|
|
1931
|
+
var data = this.processedData;
|
|
1932
|
+
return !data || data.length === 0;
|
|
1933
|
+
},
|
|
1934
|
+
sorted: function sorted() {
|
|
1935
|
+
return this.d_sortField || this.d_multiSortMeta && this.d_multiSortMeta.length > 0;
|
|
1936
|
+
},
|
|
1937
|
+
hasFooter: function hasFooter() {
|
|
1938
|
+
var hasFooter = false;
|
|
1939
|
+
var _iterator6 = _createForOfIteratorHelper(this.columns),
|
|
1940
|
+
_step6;
|
|
1941
|
+
try {
|
|
1942
|
+
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
1943
|
+
var col = _step6.value;
|
|
1944
|
+
if (this.columnProp(col, 'footer') || col.children && col.children.footer) {
|
|
1945
|
+
hasFooter = true;
|
|
1946
|
+
break;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
} catch (err) {
|
|
1950
|
+
_iterator6.e(err);
|
|
1951
|
+
} finally {
|
|
1952
|
+
_iterator6.f();
|
|
1953
|
+
}
|
|
1954
|
+
return hasFooter;
|
|
1955
|
+
},
|
|
1956
|
+
paginatorTop: function paginatorTop() {
|
|
1957
|
+
return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
|
|
1958
|
+
},
|
|
1959
|
+
paginatorBottom: function paginatorBottom() {
|
|
1960
|
+
return this.paginator && (this.paginatorPosition !== 'top' || this.paginatorPosition === 'both');
|
|
1961
|
+
},
|
|
1962
|
+
singleSelectionMode: function singleSelectionMode() {
|
|
1963
|
+
return this.selectionMode && this.selectionMode === 'single';
|
|
1964
|
+
},
|
|
1965
|
+
multipleSelectionMode: function multipleSelectionMode() {
|
|
1966
|
+
return this.selectionMode && this.selectionMode === 'multiple';
|
|
1967
|
+
},
|
|
1968
|
+
rowSelectionMode: function rowSelectionMode() {
|
|
1969
|
+
return this.singleSelectionMode || this.multipleSelectionMode;
|
|
1970
|
+
},
|
|
1971
|
+
totalRecordsLength: function totalRecordsLength() {
|
|
1972
|
+
if (this.lazy) {
|
|
1973
|
+
return this.totalRecords;
|
|
1974
|
+
} else {
|
|
1975
|
+
var data = this.processedData;
|
|
1976
|
+
return data ? data.length : 0;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
},
|
|
1980
|
+
components: {
|
|
1981
|
+
TTRow: script$1,
|
|
1982
|
+
TTPaginator: Paginator__default["default"],
|
|
1983
|
+
TTHeaderCell: script$3,
|
|
1984
|
+
TTFooterCell: script$4,
|
|
1985
|
+
SpinnerIcon: SpinnerIcon__default["default"]
|
|
1986
|
+
}
|
|
1911
1987
|
};
|
|
1912
1988
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1989
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1990
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1991
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1992
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1993
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1994
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1995
|
+
var _hoisted_1 = ["colspan"];
|
|
1915
1996
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
class: $options.containerClass,
|
|
1997
|
+
var _component_TTPaginator = vue.resolveComponent("TTPaginator");
|
|
1998
|
+
var _component_TTHeaderCell = vue.resolveComponent("TTHeaderCell");
|
|
1999
|
+
var _component_TTRow = vue.resolveComponent("TTRow");
|
|
2000
|
+
var _component_TTFooterCell = vue.resolveComponent("TTFooterCell");
|
|
2001
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2002
|
+
"class": _ctx.cx('root'),
|
|
1923
2003
|
"data-scrollselectors": ".p-treetable-scrollable-body",
|
|
1924
2004
|
role: "table"
|
|
1925
|
-
}, _ctx.ptm('root')
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
? {
|
|
2002
|
-
name: "nextpagelinkicon",
|
|
2003
|
-
fn: vue.withCtx(() => [
|
|
2004
|
-
vue.renderSlot(_ctx.$slots, "paginatornextpagelinkicon")
|
|
2005
|
-
]),
|
|
2006
|
-
key: "4"
|
|
2007
|
-
}
|
|
2008
|
-
: undefined,
|
|
2009
|
-
(_ctx.$slots.paginatorlastpagelinkicon)
|
|
2010
|
-
? {
|
|
2011
|
-
name: "lastpagelinkicon",
|
|
2012
|
-
fn: vue.withCtx(() => [
|
|
2013
|
-
vue.renderSlot(_ctx.$slots, "paginatorlastpagelinkicon")
|
|
2014
|
-
]),
|
|
2015
|
-
key: "5"
|
|
2016
|
-
}
|
|
2017
|
-
: undefined
|
|
2018
|
-
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
|
|
2019
|
-
: vue.createCommentVNode("", true),
|
|
2020
|
-
vue.createElementVNode("div", vue.mergeProps({
|
|
2021
|
-
class: "p-treetable-wrapper",
|
|
2022
|
-
style: { maxHeight: $props.scrollHeight }
|
|
2023
|
-
}, _ctx.ptm('wrapper')), [
|
|
2024
|
-
vue.createElementVNode("table", vue.mergeProps({
|
|
2025
|
-
ref: "table",
|
|
2026
|
-
role: "table"
|
|
2027
|
-
}, { ...$props.tableProps, ..._ctx.ptm('table') }), [
|
|
2028
|
-
vue.createElementVNode("thead", vue.mergeProps({
|
|
2029
|
-
class: "p-treetable-thead",
|
|
2030
|
-
role: "rowgroup"
|
|
2031
|
-
}, _ctx.ptm('thead')), [
|
|
2032
|
-
vue.createElementVNode("tr", vue.mergeProps({ role: "row" }, _ctx.ptm('headerRow')), [
|
|
2033
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
2034
|
-
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2035
|
-
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2036
|
-
}, [
|
|
2037
|
-
(!$options.columnProp(col, 'hidden'))
|
|
2038
|
-
? (vue.openBlock(), vue.createBlock(_component_TTHeaderCell, {
|
|
2039
|
-
key: 0,
|
|
2040
|
-
column: col,
|
|
2041
|
-
resizableColumns: $props.resizableColumns,
|
|
2042
|
-
sortField: $data.d_sortField,
|
|
2043
|
-
sortOrder: $data.d_sortOrder,
|
|
2044
|
-
multiSortMeta: $data.d_multiSortMeta,
|
|
2045
|
-
sortMode: $props.sortMode,
|
|
2046
|
-
onColumnClick: $options.onColumnHeaderClick,
|
|
2047
|
-
onColumnResizestart: $options.onColumnResizeStart,
|
|
2048
|
-
pt: _ctx.pt
|
|
2049
|
-
}, null, 8, ["column", "resizableColumns", "sortField", "sortOrder", "multiSortMeta", "sortMode", "onColumnClick", "onColumnResizestart", "pt"]))
|
|
2050
|
-
: vue.createCommentVNode("", true)
|
|
2051
|
-
], 64))
|
|
2052
|
-
}), 128))
|
|
2053
|
-
], 16),
|
|
2054
|
-
($options.hasColumnFilter())
|
|
2055
|
-
? (vue.openBlock(), vue.createElementBlock("tr", vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.ptm('headerRow'))), [
|
|
2056
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
2057
|
-
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2058
|
-
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2059
|
-
}, [
|
|
2060
|
-
(!$options.columnProp(col, 'hidden'))
|
|
2061
|
-
? (vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
|
|
2062
|
-
key: 0,
|
|
2063
|
-
class: $options.getFilterColumnHeaderClass(col),
|
|
2064
|
-
style: [$options.columnProp(col, 'style'), $options.columnProp(col, 'filterHeaderStyle')]
|
|
2065
|
-
}, _ctx.ptm('headerCell')), [
|
|
2066
|
-
(col.children && col.children.filter)
|
|
2067
|
-
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(col.children.filter), {
|
|
2068
|
-
key: 0,
|
|
2069
|
-
column: col
|
|
2070
|
-
}, null, 8, ["column"]))
|
|
2071
|
-
: vue.createCommentVNode("", true)
|
|
2072
|
-
], 16))
|
|
2073
|
-
: vue.createCommentVNode("", true)
|
|
2074
|
-
], 64))
|
|
2075
|
-
}), 128))
|
|
2076
|
-
], 16))
|
|
2077
|
-
: vue.createCommentVNode("", true)
|
|
2078
|
-
], 16),
|
|
2079
|
-
vue.createElementVNode("tbody", vue.mergeProps({
|
|
2080
|
-
class: "p-treetable-tbody",
|
|
2081
|
-
role: "rowgroup"
|
|
2082
|
-
}, _ctx.ptm('tbody')), [
|
|
2083
|
-
(!$options.empty)
|
|
2084
|
-
? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList($options.dataToRender, (node, index) => {
|
|
2085
|
-
return (vue.openBlock(), vue.createBlock(_component_TTRow, {
|
|
2086
|
-
key: node.key,
|
|
2087
|
-
columns: $options.columns,
|
|
2088
|
-
node: node,
|
|
2089
|
-
level: 0,
|
|
2090
|
-
expandedKeys: $data.d_expandedKeys,
|
|
2091
|
-
indentation: $props.indentation,
|
|
2092
|
-
selectionMode: $props.selectionMode,
|
|
2093
|
-
selectionKeys: $props.selectionKeys,
|
|
2094
|
-
ariaSetSize: $options.dataToRender.length,
|
|
2095
|
-
ariaPosInset: index + 1,
|
|
2096
|
-
tabindex: $options.setTabindex(node, index),
|
|
2097
|
-
templates: _ctx.$slots,
|
|
2098
|
-
onNodeToggle: $options.onNodeToggle,
|
|
2099
|
-
onNodeClick: $options.onNodeClick,
|
|
2100
|
-
onCheckboxChange: $options.onCheckboxChange,
|
|
2101
|
-
pt: _ctx.pt
|
|
2102
|
-
}, null, 8, ["columns", "node", "expandedKeys", "indentation", "selectionMode", "selectionKeys", "ariaSetSize", "ariaPosInset", "tabindex", "templates", "onNodeToggle", "onNodeClick", "onCheckboxChange", "pt"]))
|
|
2103
|
-
}), 128))
|
|
2104
|
-
: (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2105
|
-
key: 1,
|
|
2106
|
-
class: "p-treetable-emptymessage"
|
|
2107
|
-
}, _ctx.ptm('emptyMessage')), [
|
|
2108
|
-
vue.createElementVNode("td", vue.mergeProps({
|
|
2109
|
-
colspan: $options.columns.length
|
|
2110
|
-
}, _ctx.ptm('bodyCell')), [
|
|
2111
|
-
vue.renderSlot(_ctx.$slots, "empty")
|
|
2112
|
-
], 16, _hoisted_1)
|
|
2113
|
-
], 16))
|
|
2114
|
-
], 16),
|
|
2115
|
-
($options.hasFooter)
|
|
2116
|
-
? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
|
|
2117
|
-
key: 0,
|
|
2118
|
-
class: "p-treetable-tfoot",
|
|
2119
|
-
role: "rowgroup"
|
|
2120
|
-
}, _ctx.ptm('tfoot')), [
|
|
2121
|
-
vue.createElementVNode("tr", vue.mergeProps({ role: "row" }, _ctx.ptm('footerRow')), [
|
|
2122
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, (col, i) => {
|
|
2123
|
-
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2124
|
-
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2125
|
-
}, [
|
|
2126
|
-
(!$options.columnProp(col, 'hidden'))
|
|
2127
|
-
? (vue.openBlock(), vue.createBlock(_component_TTFooterCell, {
|
|
2128
|
-
key: 0,
|
|
2129
|
-
column: col,
|
|
2130
|
-
pt: _ctx.pt
|
|
2131
|
-
}, null, 8, ["column", "pt"]))
|
|
2132
|
-
: vue.createCommentVNode("", true)
|
|
2133
|
-
], 64))
|
|
2134
|
-
}), 128))
|
|
2135
|
-
], 16)
|
|
2136
|
-
], 16))
|
|
2137
|
-
: vue.createCommentVNode("", true)
|
|
2138
|
-
], 16)
|
|
2139
|
-
], 16),
|
|
2140
|
-
($options.paginatorBottom)
|
|
2141
|
-
? (vue.openBlock(), vue.createBlock(_component_TTPaginator, {
|
|
2142
|
-
key: 3,
|
|
2143
|
-
rows: $data.d_rows,
|
|
2144
|
-
first: $data.d_first,
|
|
2145
|
-
totalRecords: $options.totalRecordsLength,
|
|
2146
|
-
pageLinkSize: $props.pageLinkSize,
|
|
2147
|
-
template: $props.paginatorTemplate,
|
|
2148
|
-
rowsPerPageOptions: $props.rowsPerPageOptions,
|
|
2149
|
-
currentPageReportTemplate: $props.currentPageReportTemplate,
|
|
2150
|
-
class: "p-paginator-bottom",
|
|
2151
|
-
onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
|
|
2152
|
-
alwaysShow: $props.alwaysShowPaginator,
|
|
2153
|
-
pt: _ctx.pt
|
|
2154
|
-
}, vue.createSlots({ _: 2 }, [
|
|
2155
|
-
(_ctx.$slots.paginatorstart)
|
|
2156
|
-
? {
|
|
2157
|
-
name: "start",
|
|
2158
|
-
fn: vue.withCtx(() => [
|
|
2159
|
-
vue.renderSlot(_ctx.$slots, "paginatorstart")
|
|
2160
|
-
]),
|
|
2161
|
-
key: "0"
|
|
2162
|
-
}
|
|
2163
|
-
: undefined,
|
|
2164
|
-
(_ctx.$slots.paginatorend)
|
|
2165
|
-
? {
|
|
2166
|
-
name: "end",
|
|
2167
|
-
fn: vue.withCtx(() => [
|
|
2168
|
-
vue.renderSlot(_ctx.$slots, "paginatorend")
|
|
2169
|
-
]),
|
|
2170
|
-
key: "1"
|
|
2171
|
-
}
|
|
2172
|
-
: undefined,
|
|
2173
|
-
(_ctx.$slots.paginatorfirstpagelinkicon)
|
|
2174
|
-
? {
|
|
2175
|
-
name: "firstpagelinkicon",
|
|
2176
|
-
fn: vue.withCtx(() => [
|
|
2177
|
-
vue.renderSlot(_ctx.$slots, "paginatorfirstpagelinkicon")
|
|
2178
|
-
]),
|
|
2179
|
-
key: "2"
|
|
2180
|
-
}
|
|
2181
|
-
: undefined,
|
|
2182
|
-
(_ctx.$slots.paginatorprevpagelinkicon)
|
|
2183
|
-
? {
|
|
2184
|
-
name: "prevpagelinkicon",
|
|
2185
|
-
fn: vue.withCtx(() => [
|
|
2186
|
-
vue.renderSlot(_ctx.$slots, "paginatorprevpagelinkicon")
|
|
2187
|
-
]),
|
|
2188
|
-
key: "3"
|
|
2189
|
-
}
|
|
2190
|
-
: undefined,
|
|
2191
|
-
(_ctx.$slots.paginatornextpagelinkicon)
|
|
2192
|
-
? {
|
|
2193
|
-
name: "nextpagelinkicon",
|
|
2194
|
-
fn: vue.withCtx(() => [
|
|
2195
|
-
vue.renderSlot(_ctx.$slots, "paginatornextpagelinkicon")
|
|
2196
|
-
]),
|
|
2197
|
-
key: "4"
|
|
2198
|
-
}
|
|
2199
|
-
: undefined,
|
|
2200
|
-
(_ctx.$slots.paginatorlastpagelinkicon)
|
|
2201
|
-
? {
|
|
2202
|
-
name: "lastpagelinkicon",
|
|
2203
|
-
fn: vue.withCtx(() => [
|
|
2204
|
-
vue.renderSlot(_ctx.$slots, "paginatorlastpagelinkicon")
|
|
2205
|
-
]),
|
|
2206
|
-
key: "5"
|
|
2207
|
-
}
|
|
2208
|
-
: undefined
|
|
2209
|
-
]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow", "pt"]))
|
|
2210
|
-
: vue.createCommentVNode("", true),
|
|
2211
|
-
(_ctx.$slots.footer)
|
|
2212
|
-
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2213
|
-
key: 4,
|
|
2214
|
-
class: "p-treetable-footer"
|
|
2215
|
-
}, _ctx.ptm('footer')), [
|
|
2216
|
-
vue.renderSlot(_ctx.$slots, "footer")
|
|
2217
|
-
], 16))
|
|
2218
|
-
: vue.createCommentVNode("", true),
|
|
2219
|
-
vue.createElementVNode("div", vue.mergeProps({
|
|
2220
|
-
ref: "resizeHelper",
|
|
2221
|
-
class: "p-column-resizer-helper p-highlight",
|
|
2222
|
-
style: {"display":"none"}
|
|
2223
|
-
}, _ctx.ptm('resizeHelper')), null, 16)
|
|
2224
|
-
], 16))
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
function styleInject(css, ref) {
|
|
2228
|
-
if ( ref === void 0 ) ref = {};
|
|
2229
|
-
var insertAt = ref.insertAt;
|
|
2230
|
-
|
|
2231
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
2232
|
-
|
|
2233
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
2234
|
-
var style = document.createElement('style');
|
|
2235
|
-
style.type = 'text/css';
|
|
2236
|
-
|
|
2237
|
-
if (insertAt === 'top') {
|
|
2238
|
-
if (head.firstChild) {
|
|
2239
|
-
head.insertBefore(style, head.firstChild);
|
|
2240
|
-
} else {
|
|
2241
|
-
head.appendChild(style);
|
|
2005
|
+
}, _ctx.ptm('root'), {
|
|
2006
|
+
"data-pc-name": "treetable"
|
|
2007
|
+
}), [_ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2008
|
+
key: 0,
|
|
2009
|
+
"class": _ctx.cx('loadingWrapper')
|
|
2010
|
+
}, _ctx.ptm('loadingWrapper')), [vue.createElementVNode("div", vue.mergeProps({
|
|
2011
|
+
"class": _ctx.cx('loadingOverlay')
|
|
2012
|
+
}, _ctx.ptm('loadingOverlay')), [vue.renderSlot(_ctx.$slots, "loadingicon", {
|
|
2013
|
+
"class": vue.normalizeClass(_ctx.cx('loadingIcon'))
|
|
2014
|
+
}, function () {
|
|
2015
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon ? 'span' : 'SpinnerIcon'), vue.mergeProps({
|
|
2016
|
+
spin: "",
|
|
2017
|
+
"class": [_ctx.cx('loadingIcon'), _ctx.loadingIcon]
|
|
2018
|
+
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
2019
|
+
})], 16)], 16)) : vue.createCommentVNode("", true), _ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2020
|
+
key: 1,
|
|
2021
|
+
"class": _ctx.cx('header')
|
|
2022
|
+
}, _ctx.ptm('header')), [vue.renderSlot(_ctx.$slots, "header")], 16)) : vue.createCommentVNode("", true), $options.paginatorTop ? (vue.openBlock(), vue.createBlock(_component_TTPaginator, {
|
|
2023
|
+
key: 2,
|
|
2024
|
+
rows: $data.d_rows,
|
|
2025
|
+
first: $data.d_first,
|
|
2026
|
+
totalRecords: $options.totalRecordsLength,
|
|
2027
|
+
pageLinkSize: _ctx.pageLinkSize,
|
|
2028
|
+
template: _ctx.paginatorTemplate,
|
|
2029
|
+
rowsPerPageOptions: _ctx.rowsPerPageOptions,
|
|
2030
|
+
currentPageReportTemplate: _ctx.currentPageReportTemplate,
|
|
2031
|
+
"class": vue.normalizeClass(_ctx.cx('paginator')),
|
|
2032
|
+
onPage: _cache[0] || (_cache[0] = function ($event) {
|
|
2033
|
+
return $options.onPage($event);
|
|
2034
|
+
}),
|
|
2035
|
+
alwaysShow: _ctx.alwaysShowPaginator,
|
|
2036
|
+
unstyled: _ctx.unstyled,
|
|
2037
|
+
pt: _ctx.ptm('paginator'),
|
|
2038
|
+
"data-pc-section": "paginator"
|
|
2039
|
+
}, vue.createSlots({
|
|
2040
|
+
_: 2
|
|
2041
|
+
}, [_ctx.$slots.paginatorstart ? {
|
|
2042
|
+
name: "start",
|
|
2043
|
+
fn: vue.withCtx(function () {
|
|
2044
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorstart")];
|
|
2045
|
+
}),
|
|
2046
|
+
key: "0"
|
|
2047
|
+
} : undefined, _ctx.$slots.paginatorend ? {
|
|
2048
|
+
name: "end",
|
|
2049
|
+
fn: vue.withCtx(function () {
|
|
2050
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorend")];
|
|
2051
|
+
}),
|
|
2052
|
+
key: "1"
|
|
2053
|
+
} : undefined, _ctx.$slots.paginatorfirstpagelinkicon ? {
|
|
2054
|
+
name: "firstpagelinkicon",
|
|
2055
|
+
fn: vue.withCtx(function () {
|
|
2056
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorfirstpagelinkicon")];
|
|
2057
|
+
}),
|
|
2058
|
+
key: "2"
|
|
2059
|
+
} : undefined, _ctx.$slots.paginatorprevpagelinkicon ? {
|
|
2060
|
+
name: "prevpagelinkicon",
|
|
2061
|
+
fn: vue.withCtx(function () {
|
|
2062
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorprevpagelinkicon")];
|
|
2063
|
+
}),
|
|
2064
|
+
key: "3"
|
|
2065
|
+
} : undefined, _ctx.$slots.paginatornextpagelinkicon ? {
|
|
2066
|
+
name: "nextpagelinkicon",
|
|
2067
|
+
fn: vue.withCtx(function () {
|
|
2068
|
+
return [vue.renderSlot(_ctx.$slots, "paginatornextpagelinkicon")];
|
|
2069
|
+
}),
|
|
2070
|
+
key: "4"
|
|
2071
|
+
} : undefined, _ctx.$slots.paginatorlastpagelinkicon ? {
|
|
2072
|
+
name: "lastpagelinkicon",
|
|
2073
|
+
fn: vue.withCtx(function () {
|
|
2074
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorlastpagelinkicon")];
|
|
2075
|
+
}),
|
|
2076
|
+
key: "5"
|
|
2077
|
+
} : undefined]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "unstyled", "pt"])) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
|
|
2078
|
+
"class": _ctx.cx('wrapper'),
|
|
2079
|
+
style: {
|
|
2080
|
+
maxHeight: _ctx.scrollHeight
|
|
2242
2081
|
}
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
}
|
|
2082
|
+
}, _ctx.ptm('wrapper')), [vue.createElementVNode("table", vue.mergeProps({
|
|
2083
|
+
ref: "table",
|
|
2084
|
+
role: "table"
|
|
2085
|
+
}, _objectSpread(_objectSpread({}, _ctx.tableProps), _ctx.ptm('table'))), [vue.createElementVNode("thead", vue.mergeProps({
|
|
2086
|
+
"class": _ctx.cx('thead'),
|
|
2087
|
+
role: "rowgroup"
|
|
2088
|
+
}, _ctx.ptm('thead')), [vue.createElementVNode("tr", vue.mergeProps({
|
|
2089
|
+
role: "row"
|
|
2090
|
+
}, _ctx.ptm('headerRow')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, function (col, i) {
|
|
2091
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2092
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2093
|
+
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createBlock(_component_TTHeaderCell, {
|
|
2094
|
+
key: 0,
|
|
2095
|
+
column: col,
|
|
2096
|
+
resizableColumns: _ctx.resizableColumns,
|
|
2097
|
+
sortField: $data.d_sortField,
|
|
2098
|
+
sortOrder: $data.d_sortOrder,
|
|
2099
|
+
multiSortMeta: $data.d_multiSortMeta,
|
|
2100
|
+
sortMode: _ctx.sortMode,
|
|
2101
|
+
onColumnClick: $options.onColumnHeaderClick,
|
|
2102
|
+
onColumnResizestart: $options.onColumnResizeStart,
|
|
2103
|
+
index: i,
|
|
2104
|
+
pt: _ctx.pt
|
|
2105
|
+
}, null, 8, ["column", "resizableColumns", "sortField", "sortOrder", "multiSortMeta", "sortMode", "onColumnClick", "onColumnResizestart", "index", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
2106
|
+
}), 128))], 16), $options.hasColumnFilter() ? (vue.openBlock(), vue.createElementBlock("tr", vue.normalizeProps(vue.mergeProps({
|
|
2107
|
+
key: 0
|
|
2108
|
+
}, _ctx.ptm('headerFilterRow'))), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, function (col, i) {
|
|
2109
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2110
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2111
|
+
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createElementBlock("th", vue.mergeProps({
|
|
2112
|
+
key: 0,
|
|
2113
|
+
"class": $options.getFilterColumnHeaderClass(col),
|
|
2114
|
+
style: [$options.columnProp(col, 'style'), $options.columnProp(col, 'filterHeaderStyle')]
|
|
2115
|
+
}, _ctx.ptm('headerFilterCell')), [col.children && col.children.filter ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(col.children.filter), {
|
|
2116
|
+
key: 0,
|
|
2117
|
+
column: col,
|
|
2118
|
+
index: i
|
|
2119
|
+
}, null, 8, ["column", "index"])) : vue.createCommentVNode("", true)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
2120
|
+
}), 128))], 16)) : vue.createCommentVNode("", true)], 16), vue.createElementVNode("tbody", vue.mergeProps({
|
|
2121
|
+
"class": _ctx.cx('tbody'),
|
|
2122
|
+
role: "rowgroup"
|
|
2123
|
+
}, _ctx.ptm('tbody')), [!$options.empty ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, {
|
|
2124
|
+
key: 0
|
|
2125
|
+
}, vue.renderList($options.dataToRender, function (node, index) {
|
|
2126
|
+
return vue.openBlock(), vue.createBlock(_component_TTRow, {
|
|
2127
|
+
key: node.key,
|
|
2128
|
+
columns: $options.columns,
|
|
2129
|
+
node: node,
|
|
2130
|
+
level: 0,
|
|
2131
|
+
expandedKeys: $data.d_expandedKeys,
|
|
2132
|
+
indentation: _ctx.indentation,
|
|
2133
|
+
selectionMode: _ctx.selectionMode,
|
|
2134
|
+
selectionKeys: _ctx.selectionKeys,
|
|
2135
|
+
ariaSetSize: $options.dataToRender.length,
|
|
2136
|
+
ariaPosInset: index + 1,
|
|
2137
|
+
tabindex: $options.setTabindex(node, index),
|
|
2138
|
+
templates: _ctx.$slots,
|
|
2139
|
+
onNodeToggle: $options.onNodeToggle,
|
|
2140
|
+
onNodeClick: $options.onNodeClick,
|
|
2141
|
+
onCheckboxChange: $options.onCheckboxChange,
|
|
2142
|
+
pt: _ctx.pt
|
|
2143
|
+
}, null, 8, ["columns", "node", "expandedKeys", "indentation", "selectionMode", "selectionKeys", "ariaSetSize", "ariaPosInset", "tabindex", "templates", "onNodeToggle", "onNodeClick", "onCheckboxChange", "pt"]);
|
|
2144
|
+
}), 128)) : (vue.openBlock(), vue.createElementBlock("tr", vue.mergeProps({
|
|
2145
|
+
key: 1,
|
|
2146
|
+
"class": _ctx.cx('emptyMessage')
|
|
2147
|
+
}, _ctx.ptm('emptyMessage')), [vue.createElementVNode("td", vue.mergeProps({
|
|
2148
|
+
colspan: $options.columns.length
|
|
2149
|
+
}, _ctx.ptm('emptyMessageCell')), [vue.renderSlot(_ctx.$slots, "empty")], 16, _hoisted_1)], 16))], 16), $options.hasFooter ? (vue.openBlock(), vue.createElementBlock("tfoot", vue.mergeProps({
|
|
2150
|
+
key: 0,
|
|
2151
|
+
"class": _ctx.cx('tfoot'),
|
|
2152
|
+
role: "rowgroup"
|
|
2153
|
+
}, _ctx.ptm('tfoot')), [vue.createElementVNode("tr", vue.mergeProps({
|
|
2154
|
+
role: "row"
|
|
2155
|
+
}, _ctx.ptm('footerRow')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.columns, function (col, i) {
|
|
2156
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
2157
|
+
key: $options.columnProp(col, 'columnKey') || $options.columnProp(col, 'field') || i
|
|
2158
|
+
}, [!$options.columnProp(col, 'hidden') ? (vue.openBlock(), vue.createBlock(_component_TTFooterCell, {
|
|
2159
|
+
key: 0,
|
|
2160
|
+
column: col,
|
|
2161
|
+
index: i,
|
|
2162
|
+
pt: _ctx.pt
|
|
2163
|
+
}, null, 8, ["column", "index", "pt"])) : vue.createCommentVNode("", true)], 64);
|
|
2164
|
+
}), 128))], 16)], 16)) : vue.createCommentVNode("", true)], 16)], 16), $options.paginatorBottom ? (vue.openBlock(), vue.createBlock(_component_TTPaginator, {
|
|
2165
|
+
key: 3,
|
|
2166
|
+
rows: $data.d_rows,
|
|
2167
|
+
first: $data.d_first,
|
|
2168
|
+
totalRecords: $options.totalRecordsLength,
|
|
2169
|
+
pageLinkSize: _ctx.pageLinkSize,
|
|
2170
|
+
template: _ctx.paginatorTemplate,
|
|
2171
|
+
rowsPerPageOptions: _ctx.rowsPerPageOptions,
|
|
2172
|
+
currentPageReportTemplate: _ctx.currentPageReportTemplate,
|
|
2173
|
+
"class": vue.normalizeClass(_ctx.cx('paginator')),
|
|
2174
|
+
onPage: _cache[1] || (_cache[1] = function ($event) {
|
|
2175
|
+
return $options.onPage($event);
|
|
2176
|
+
}),
|
|
2177
|
+
alwaysShow: _ctx.alwaysShowPaginator,
|
|
2178
|
+
unstyled: _ctx.unstyled,
|
|
2179
|
+
pt: _ctx.pt,
|
|
2180
|
+
"data-pc-section": "paginator"
|
|
2181
|
+
}, vue.createSlots({
|
|
2182
|
+
_: 2
|
|
2183
|
+
}, [_ctx.$slots.paginatorstart ? {
|
|
2184
|
+
name: "start",
|
|
2185
|
+
fn: vue.withCtx(function () {
|
|
2186
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorstart")];
|
|
2187
|
+
}),
|
|
2188
|
+
key: "0"
|
|
2189
|
+
} : undefined, _ctx.$slots.paginatorend ? {
|
|
2190
|
+
name: "end",
|
|
2191
|
+
fn: vue.withCtx(function () {
|
|
2192
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorend")];
|
|
2193
|
+
}),
|
|
2194
|
+
key: "1"
|
|
2195
|
+
} : undefined, _ctx.$slots.paginatorfirstpagelinkicon ? {
|
|
2196
|
+
name: "firstpagelinkicon",
|
|
2197
|
+
fn: vue.withCtx(function () {
|
|
2198
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorfirstpagelinkicon")];
|
|
2199
|
+
}),
|
|
2200
|
+
key: "2"
|
|
2201
|
+
} : undefined, _ctx.$slots.paginatorprevpagelinkicon ? {
|
|
2202
|
+
name: "prevpagelinkicon",
|
|
2203
|
+
fn: vue.withCtx(function () {
|
|
2204
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorprevpagelinkicon")];
|
|
2205
|
+
}),
|
|
2206
|
+
key: "3"
|
|
2207
|
+
} : undefined, _ctx.$slots.paginatornextpagelinkicon ? {
|
|
2208
|
+
name: "nextpagelinkicon",
|
|
2209
|
+
fn: vue.withCtx(function () {
|
|
2210
|
+
return [vue.renderSlot(_ctx.$slots, "paginatornextpagelinkicon")];
|
|
2211
|
+
}),
|
|
2212
|
+
key: "4"
|
|
2213
|
+
} : undefined, _ctx.$slots.paginatorlastpagelinkicon ? {
|
|
2214
|
+
name: "lastpagelinkicon",
|
|
2215
|
+
fn: vue.withCtx(function () {
|
|
2216
|
+
return [vue.renderSlot(_ctx.$slots, "paginatorlastpagelinkicon")];
|
|
2217
|
+
}),
|
|
2218
|
+
key: "5"
|
|
2219
|
+
} : undefined]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "class", "alwaysShow", "unstyled", "pt"])) : vue.createCommentVNode("", true), _ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
2220
|
+
key: 4,
|
|
2221
|
+
"class": _ctx.cx('footer')
|
|
2222
|
+
}, _ctx.ptm('footer')), [vue.renderSlot(_ctx.$slots, "footer")], 16)) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
|
|
2223
|
+
ref: "resizeHelper",
|
|
2224
|
+
"class": _ctx.cx('resizeHelper'),
|
|
2225
|
+
style: {
|
|
2226
|
+
"display": "none"
|
|
2227
|
+
}
|
|
2228
|
+
}, _ctx.ptm('resizeHelper')), null, 16)], 16);
|
|
2252
2229
|
}
|
|
2253
2230
|
|
|
2254
|
-
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 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 user-select: none;\n display: inline-flex;\n align-items: 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: flex;\n align-items: 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: flex;\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: flex;\n flex: 1 1 0;\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 flex: 0 0 auto;\n}\n.p-treetable-flex-scrollable {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.p-treetable-flex-scrollable .p-treetable-wrapper {\n display: flex;\n flex-direction: column;\n flex: 1;\n height: 100%;\n}\n";
|
|
2255
|
-
styleInject(css_248z);
|
|
2256
|
-
|
|
2257
2231
|
script.render = render;
|
|
2258
2232
|
|
|
2259
2233
|
return script;
|
|
2260
2234
|
|
|
2261
|
-
})(primevue.api, primevue.
|
|
2235
|
+
})(primevue.api, primevue.icons.spinner, primevue.paginator, primevue.utils, primevue.basecomponent, primevue.usestyle, Vue, primevue.icons.sortalt, primevue.icons.sortamountdown, primevue.icons.sortamountupalt, primevue.icons.check, primevue.icons.chevrondown, primevue.icons.chevronright, primevue.icons.minus, primevue.ripple);
|