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/panelmenu/panelmenu.js
CHANGED
|
@@ -1,662 +1,763 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.panelmenu = (function (
|
|
2
|
+
this.primevue.panelmenu = (function (ChevronDownIcon, ChevronRightIcon, utils, BaseComponent, usestyle, Ripple, vue) {
|
|
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 ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
|
|
9
8
|
var ChevronRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronRightIcon);
|
|
9
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
10
10
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
11
11
|
|
|
12
|
+
var styles = "\n.p-panelmenu .p-panelmenu-header-action {\n display: flex;\n align-items: center;\n user-select: none;\n cursor: pointer;\n position: relative;\n text-decoration: none;\n}\n\n.p-panelmenu .p-panelmenu-header-action:focus {\n z-index: 1;\n}\n\n.p-panelmenu .p-submenu-list {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.p-panelmenu .p-menuitem-link {\n display: flex;\n align-items: center;\n user-select: none;\n cursor: pointer;\n text-decoration: none;\n position: relative;\n overflow: hidden;\n}\n\n.p-panelmenu .p-menuitem-text {\n line-height: 1;\n}\n";
|
|
13
|
+
var classes = {
|
|
14
|
+
root: 'p-panelmenu p-component',
|
|
15
|
+
panel: 'p-panelmenu-panel',
|
|
16
|
+
header: function header(_ref) {
|
|
17
|
+
var instance = _ref.instance,
|
|
18
|
+
item = _ref.item;
|
|
19
|
+
return ['p-panelmenu-header', {
|
|
20
|
+
'p-highlight': instance.isItemActive(item),
|
|
21
|
+
'p-disabled': instance.isItemDisabled(item)
|
|
22
|
+
}];
|
|
23
|
+
},
|
|
24
|
+
headerContent: 'p-panelmenu-header-content',
|
|
25
|
+
headerAction: function headerAction(_ref2) {
|
|
26
|
+
var instance = _ref2.instance,
|
|
27
|
+
isActive = _ref2.isActive,
|
|
28
|
+
isExactActive = _ref2.isExactActive;
|
|
29
|
+
return ['p-panelmenu-header-action', {
|
|
30
|
+
'router-link-active': isActive,
|
|
31
|
+
'router-link-active-exact': instance.exact && isExactActive
|
|
32
|
+
}];
|
|
33
|
+
},
|
|
34
|
+
headerIcon: 'p-menuitem-icon',
|
|
35
|
+
headerLabel: 'p-menuitem-text',
|
|
36
|
+
toggleableContent: 'p-toggleable-content',
|
|
37
|
+
menuContent: 'p-panelmenu-content',
|
|
38
|
+
menu: 'p-panelmenu-root-list',
|
|
39
|
+
menuitem: function menuitem(_ref3) {
|
|
40
|
+
var instance = _ref3.instance,
|
|
41
|
+
processedItem = _ref3.processedItem;
|
|
42
|
+
return ['p-menuitem', {
|
|
43
|
+
'p-focus': instance.isItemFocused(processedItem),
|
|
44
|
+
'p-disabled': instance.isItemDisabled(processedItem)
|
|
45
|
+
}];
|
|
46
|
+
},
|
|
47
|
+
content: 'p-menuitem-content',
|
|
48
|
+
action: function action(_ref4) {
|
|
49
|
+
var props = _ref4.props,
|
|
50
|
+
isActive = _ref4.isActive,
|
|
51
|
+
isExactActive = _ref4.isExactActive;
|
|
52
|
+
return ['p-menuitem-link', {
|
|
53
|
+
'router-link-active': isActive,
|
|
54
|
+
'router-link-active-exact': props.exact && isExactActive
|
|
55
|
+
}];
|
|
56
|
+
},
|
|
57
|
+
icon: 'p-menuitem-icon',
|
|
58
|
+
label: 'p-menuitem-text',
|
|
59
|
+
submenuIcon: 'p-submenu-icon',
|
|
60
|
+
submenu: 'p-submenu-list',
|
|
61
|
+
separator: 'p-menuitem-separator'
|
|
62
|
+
};
|
|
63
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
64
|
+
name: 'panelmenu',
|
|
65
|
+
manual: true
|
|
66
|
+
}),
|
|
67
|
+
loadStyle = _useStyle.load;
|
|
68
|
+
var script$3 = {
|
|
69
|
+
name: 'BasePanelMenu',
|
|
70
|
+
"extends": BaseComponent__default["default"],
|
|
71
|
+
props: {
|
|
72
|
+
model: {
|
|
73
|
+
type: Array,
|
|
74
|
+
"default": null
|
|
75
|
+
},
|
|
76
|
+
expandedKeys: {
|
|
77
|
+
type: Object,
|
|
78
|
+
"default": null
|
|
79
|
+
},
|
|
80
|
+
exact: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
"default": true
|
|
83
|
+
},
|
|
84
|
+
tabindex: {
|
|
85
|
+
type: Number,
|
|
86
|
+
"default": 0
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
css: {
|
|
90
|
+
classes: classes,
|
|
91
|
+
loadStyle: loadStyle
|
|
92
|
+
},
|
|
93
|
+
provide: function provide() {
|
|
94
|
+
return {
|
|
95
|
+
$parentInstance: this
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
12
100
|
var script$2 = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
focusedItemId: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
items: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: null
|
|
28
|
-
},
|
|
29
|
-
level: {
|
|
30
|
-
type: Number,
|
|
31
|
-
default: 0
|
|
32
|
-
},
|
|
33
|
-
templates: {
|
|
34
|
-
type: Object,
|
|
35
|
-
default: null
|
|
36
|
-
},
|
|
37
|
-
activeItemPath: {
|
|
38
|
-
type: Object,
|
|
39
|
-
default: null
|
|
40
|
-
},
|
|
41
|
-
exact: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: true
|
|
44
|
-
}
|
|
101
|
+
name: 'PanelMenuSub',
|
|
102
|
+
hostName: 'PanelMenu',
|
|
103
|
+
"extends": BaseComponent__default["default"],
|
|
104
|
+
emits: ['item-toggle'],
|
|
105
|
+
props: {
|
|
106
|
+
panelId: {
|
|
107
|
+
type: String,
|
|
108
|
+
"default": null
|
|
45
109
|
},
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
94
|
-
},
|
|
95
|
-
getAriaPosInset(index) {
|
|
96
|
-
return index - this.items.slice(0, index).filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')).length + 1;
|
|
97
|
-
},
|
|
98
|
-
getItemClass(processedItem) {
|
|
99
|
-
return [
|
|
100
|
-
'p-menuitem',
|
|
101
|
-
this.getItemProp(processedItem, 'class'),
|
|
102
|
-
{
|
|
103
|
-
'p-focus': this.isItemFocused(processedItem),
|
|
104
|
-
'p-disabled': this.isItemDisabled(processedItem)
|
|
105
|
-
}
|
|
106
|
-
];
|
|
107
|
-
},
|
|
108
|
-
getItemActionClass(processedItem, routerProps) {
|
|
109
|
-
return [
|
|
110
|
-
'p-menuitem-link',
|
|
111
|
-
{
|
|
112
|
-
'router-link-active': routerProps && routerProps.isActive,
|
|
113
|
-
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
114
|
-
}
|
|
115
|
-
];
|
|
116
|
-
},
|
|
117
|
-
getItemIconClass(processedItem) {
|
|
118
|
-
return ['p-menuitem-icon', this.getItemProp(processedItem, 'icon')];
|
|
119
|
-
},
|
|
120
|
-
getSeparatorItemClass(processedItem) {
|
|
121
|
-
return ['p-menuitem-separator', this.getItemProp(processedItem, 'class')];
|
|
110
|
+
focusedItemId: {
|
|
111
|
+
type: String,
|
|
112
|
+
"default": null
|
|
113
|
+
},
|
|
114
|
+
items: {
|
|
115
|
+
type: Array,
|
|
116
|
+
"default": null
|
|
117
|
+
},
|
|
118
|
+
level: {
|
|
119
|
+
type: Number,
|
|
120
|
+
"default": 0
|
|
121
|
+
},
|
|
122
|
+
templates: {
|
|
123
|
+
type: Object,
|
|
124
|
+
"default": null
|
|
125
|
+
},
|
|
126
|
+
activeItemPath: {
|
|
127
|
+
type: Object,
|
|
128
|
+
"default": null
|
|
129
|
+
},
|
|
130
|
+
exact: {
|
|
131
|
+
type: Boolean,
|
|
132
|
+
"default": true
|
|
133
|
+
},
|
|
134
|
+
tabindex: {
|
|
135
|
+
type: Number,
|
|
136
|
+
"default": -1
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
methods: {
|
|
140
|
+
getItemId: function getItemId(processedItem) {
|
|
141
|
+
return "".concat(this.panelId, "_").concat(processedItem.key);
|
|
142
|
+
},
|
|
143
|
+
getItemKey: function getItemKey(processedItem) {
|
|
144
|
+
return this.getItemId(processedItem);
|
|
145
|
+
},
|
|
146
|
+
getItemProp: function getItemProp(processedItem, name, params) {
|
|
147
|
+
return processedItem && processedItem.item ? utils.ObjectUtils.getItemValue(processedItem.item[name], params) : undefined;
|
|
148
|
+
},
|
|
149
|
+
getItemLabel: function getItemLabel(processedItem) {
|
|
150
|
+
return this.getItemProp(processedItem, 'label');
|
|
151
|
+
},
|
|
152
|
+
getPTOptions: function getPTOptions(processedItem, key) {
|
|
153
|
+
return this.ptm(key, {
|
|
154
|
+
context: {
|
|
155
|
+
active: this.isItemActive(processedItem),
|
|
156
|
+
focused: this.isItemFocused(processedItem)
|
|
122
157
|
}
|
|
158
|
+
});
|
|
123
159
|
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
160
|
+
isItemActive: function isItemActive(processedItem) {
|
|
161
|
+
return this.activeItemPath.some(function (path) {
|
|
162
|
+
return path.key === processedItem.key;
|
|
163
|
+
});
|
|
127
164
|
},
|
|
128
|
-
|
|
129
|
-
|
|
165
|
+
isItemVisible: function isItemVisible(processedItem) {
|
|
166
|
+
return this.getItemProp(processedItem, 'visible') !== false;
|
|
167
|
+
},
|
|
168
|
+
isItemDisabled: function isItemDisabled(processedItem) {
|
|
169
|
+
return this.getItemProp(processedItem, 'disabled');
|
|
170
|
+
},
|
|
171
|
+
isItemFocused: function isItemFocused(processedItem) {
|
|
172
|
+
return this.focusedItemId === this.getItemId(processedItem);
|
|
173
|
+
},
|
|
174
|
+
isItemGroup: function isItemGroup(processedItem) {
|
|
175
|
+
return utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
176
|
+
},
|
|
177
|
+
onItemClick: function onItemClick(event, processedItem) {
|
|
178
|
+
this.getItemProp(processedItem, 'command', {
|
|
179
|
+
originalEvent: event,
|
|
180
|
+
item: processedItem.item
|
|
181
|
+
});
|
|
182
|
+
this.$emit('item-toggle', {
|
|
183
|
+
processedItem: processedItem,
|
|
184
|
+
expanded: !this.isItemActive(processedItem)
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
onItemToggle: function onItemToggle(event) {
|
|
188
|
+
this.$emit('item-toggle', event);
|
|
189
|
+
},
|
|
190
|
+
onItemActionClick: function onItemActionClick(event, navigate) {
|
|
191
|
+
navigate && navigate(event);
|
|
192
|
+
},
|
|
193
|
+
getAriaSetSize: function getAriaSetSize() {
|
|
194
|
+
var _this = this;
|
|
195
|
+
return this.items.filter(function (processedItem) {
|
|
196
|
+
return _this.isItemVisible(processedItem) && !_this.getItemProp(processedItem, 'separator');
|
|
197
|
+
}).length;
|
|
198
|
+
},
|
|
199
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
200
|
+
var _this2 = this;
|
|
201
|
+
return index - this.items.slice(0, index).filter(function (processedItem) {
|
|
202
|
+
return _this2.isItemVisible(processedItem) && _this2.getItemProp(processedItem, 'separator');
|
|
203
|
+
}).length + 1;
|
|
130
204
|
}
|
|
205
|
+
},
|
|
206
|
+
components: {
|
|
207
|
+
ChevronRightIcon: ChevronRightIcon__default["default"],
|
|
208
|
+
ChevronDownIcon: ChevronDownIcon__default["default"]
|
|
209
|
+
},
|
|
210
|
+
directives: {
|
|
211
|
+
ripple: Ripple__default["default"]
|
|
212
|
+
}
|
|
131
213
|
};
|
|
132
214
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
215
|
+
var _hoisted_1$1 = ["tabindex"];
|
|
216
|
+
var _hoisted_2$1 = ["id", "aria-label", "aria-expanded", "aria-level", "aria-setsize", "aria-posinset", "data-p-focused", "data-p-disabled"];
|
|
217
|
+
var _hoisted_3$1 = ["onClick"];
|
|
218
|
+
var _hoisted_4$1 = ["href", "onClick"];
|
|
219
|
+
var _hoisted_5$1 = ["href", "target"];
|
|
138
220
|
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}, null, 8, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "exact", "onItemToggle", "pt"]))
|
|
262
|
-
: vue.createCommentVNode("", true)
|
|
263
|
-
], 16), [
|
|
264
|
-
[vue.vShow, $options.isItemActive(processedItem)]
|
|
265
|
-
])
|
|
266
|
-
]),
|
|
267
|
-
_: 2
|
|
268
|
-
}, 1024)
|
|
269
|
-
], 16, _hoisted_1$1))
|
|
270
|
-
: vue.createCommentVNode("", true),
|
|
271
|
-
($options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator'))
|
|
272
|
-
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
273
|
-
key: 1,
|
|
274
|
-
style: $options.getItemProp(processedItem, 'style'),
|
|
275
|
-
class: $options.getSeparatorItemClass(processedItem),
|
|
276
|
-
role: "separator"
|
|
277
|
-
}, _ctx.ptm('separator')), null, 16))
|
|
278
|
-
: vue.createCommentVNode("", true)
|
|
279
|
-
], 64))
|
|
280
|
-
}), 128))
|
|
281
|
-
], 16))
|
|
221
|
+
var _component_router_link = vue.resolveComponent("router-link");
|
|
222
|
+
var _component_PanelMenuSub = vue.resolveComponent("PanelMenuSub", true);
|
|
223
|
+
var _directive_ripple = vue.resolveDirective("ripple");
|
|
224
|
+
return vue.openBlock(), vue.createElementBlock("ul", {
|
|
225
|
+
"class": vue.normalizeClass(_ctx.cx('submenu')),
|
|
226
|
+
tabindex: $props.tabindex
|
|
227
|
+
}, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.items, function (processedItem, index) {
|
|
228
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
229
|
+
key: $options.getItemKey(processedItem)
|
|
230
|
+
}, [$options.isItemVisible(processedItem) && !$options.getItemProp(processedItem, 'separator') ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
231
|
+
key: 0,
|
|
232
|
+
id: $options.getItemId(processedItem),
|
|
233
|
+
"class": [_ctx.cx('menuitem', {
|
|
234
|
+
processedItem: processedItem
|
|
235
|
+
}), $options.getItemProp(processedItem, 'class')],
|
|
236
|
+
style: $options.getItemProp(processedItem, 'style'),
|
|
237
|
+
role: "treeitem",
|
|
238
|
+
"aria-label": $options.getItemLabel(processedItem),
|
|
239
|
+
"aria-expanded": $options.isItemGroup(processedItem) ? $options.isItemActive(processedItem) : undefined,
|
|
240
|
+
"aria-level": $props.level + 1,
|
|
241
|
+
"aria-setsize": $options.getAriaSetSize(),
|
|
242
|
+
"aria-posinset": $options.getAriaPosInset(index)
|
|
243
|
+
}, $options.getPTOptions(processedItem, 'menuitem'), {
|
|
244
|
+
"data-p-focused": $options.isItemFocused(processedItem),
|
|
245
|
+
"data-p-disabled": $options.isItemDisabled(processedItem)
|
|
246
|
+
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
247
|
+
"class": _ctx.cx('content'),
|
|
248
|
+
onClick: function onClick($event) {
|
|
249
|
+
return $options.onItemClick($event, processedItem);
|
|
250
|
+
}
|
|
251
|
+
}, $options.getPTOptions(processedItem, 'content')), [!$props.templates.item ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
252
|
+
key: 0
|
|
253
|
+
}, [$options.getItemProp(processedItem, 'to') && !$options.isItemDisabled(processedItem) ? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
254
|
+
key: 0,
|
|
255
|
+
to: $options.getItemProp(processedItem, 'to'),
|
|
256
|
+
custom: ""
|
|
257
|
+
}, {
|
|
258
|
+
"default": vue.withCtx(function (_ref) {
|
|
259
|
+
var navigate = _ref.navigate,
|
|
260
|
+
href = _ref.href,
|
|
261
|
+
isActive = _ref.isActive,
|
|
262
|
+
isExactActive = _ref.isExactActive;
|
|
263
|
+
return [vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
264
|
+
href: href,
|
|
265
|
+
"class": _ctx.cx('action', {
|
|
266
|
+
isActive: isActive,
|
|
267
|
+
isExactActive: isExactActive
|
|
268
|
+
}),
|
|
269
|
+
tabindex: "-1",
|
|
270
|
+
"aria-hidden": "true",
|
|
271
|
+
onClick: function onClick($event) {
|
|
272
|
+
return $options.onItemActionClick($event, navigate);
|
|
273
|
+
}
|
|
274
|
+
}, $options.getPTOptions(processedItem, 'action')), [$props.templates.itemicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
275
|
+
key: 0,
|
|
276
|
+
item: processedItem.item,
|
|
277
|
+
"class": vue.normalizeClass([_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')])
|
|
278
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(processedItem, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
279
|
+
key: 1,
|
|
280
|
+
"class": [_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')]
|
|
281
|
+
}, $options.getPTOptions(processedItem, 'icon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
282
|
+
"class": _ctx.cx('label')
|
|
283
|
+
}, $options.getPTOptions(processedItem, 'label')), vue.toDisplayString($options.getItemLabel(processedItem)), 17)], 16, _hoisted_4$1)), [[_directive_ripple]])];
|
|
284
|
+
}),
|
|
285
|
+
_: 2
|
|
286
|
+
}, 1032, ["to"])) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
287
|
+
key: 1,
|
|
288
|
+
href: $options.getItemProp(processedItem, 'url'),
|
|
289
|
+
"class": _ctx.cx('action'),
|
|
290
|
+
target: $options.getItemProp(processedItem, 'target'),
|
|
291
|
+
tabindex: "-1",
|
|
292
|
+
"aria-hidden": "true"
|
|
293
|
+
}, $options.getPTOptions(processedItem, 'action')), [$options.isItemGroup(processedItem) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
294
|
+
key: 0
|
|
295
|
+
}, [$props.templates.submenuicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.submenuicon), vue.mergeProps({
|
|
296
|
+
key: 0,
|
|
297
|
+
"class": _ctx.cx('submenuIcon'),
|
|
298
|
+
active: $options.isItemActive(processedItem)
|
|
299
|
+
}, $options.getPTOptions(processedItem, 'submenuIcon')), null, 16, ["class", "active"])) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($options.isItemActive(processedItem) ? 'ChevronDownIcon' : 'ChevronRightIcon'), vue.mergeProps({
|
|
300
|
+
key: 1,
|
|
301
|
+
"class": _ctx.cx('submenuIcon')
|
|
302
|
+
}, $options.getPTOptions(processedItem, 'submenuIcon')), null, 16, ["class"]))], 64)) : vue.createCommentVNode("", true), $props.templates.itemicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
303
|
+
key: 1,
|
|
304
|
+
item: processedItem.item,
|
|
305
|
+
"class": vue.normalizeClass([_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')])
|
|
306
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(processedItem, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
307
|
+
key: 2,
|
|
308
|
+
"class": [_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')]
|
|
309
|
+
}, $options.getPTOptions(processedItem, 'icon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
310
|
+
"class": _ctx.cx('label')
|
|
311
|
+
}, $options.getPTOptions(processedItem, 'label')), vue.toDisplayString($options.getItemLabel(processedItem)), 17)], 16, _hoisted_5$1)), [[_directive_ripple]])], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
|
|
312
|
+
key: 1,
|
|
313
|
+
item: processedItem.item
|
|
314
|
+
}, null, 8, ["item"]))], 16, _hoisted_3$1), vue.createVNode(vue.Transition, {
|
|
315
|
+
name: "p-toggleable-content"
|
|
316
|
+
}, {
|
|
317
|
+
"default": vue.withCtx(function () {
|
|
318
|
+
return [vue.withDirectives(vue.createElementVNode("div", vue.mergeProps({
|
|
319
|
+
"class": _ctx.cx('toggleableContent')
|
|
320
|
+
}, _ctx.ptm('toggleableContent')), [$options.isItemVisible(processedItem) && $options.isItemGroup(processedItem) ? (vue.openBlock(), vue.createBlock(_component_PanelMenuSub, vue.mergeProps({
|
|
321
|
+
key: 0,
|
|
322
|
+
id: $options.getItemId(processedItem) + '_list',
|
|
323
|
+
role: "group",
|
|
324
|
+
panelId: $props.panelId,
|
|
325
|
+
focusedItemId: $props.focusedItemId,
|
|
326
|
+
items: processedItem.items,
|
|
327
|
+
level: $props.level + 1,
|
|
328
|
+
templates: $props.templates,
|
|
329
|
+
activeItemPath: $props.activeItemPath,
|
|
330
|
+
exact: $props.exact,
|
|
331
|
+
onItemToggle: $options.onItemToggle,
|
|
332
|
+
pt: _ctx.pt
|
|
333
|
+
}, _ctx.ptm('submenu')), null, 16, ["id", "panelId", "focusedItemId", "items", "level", "templates", "activeItemPath", "exact", "onItemToggle", "pt"])) : vue.createCommentVNode("", true)], 16), [[vue.vShow, $options.isItemActive(processedItem)]])];
|
|
334
|
+
}),
|
|
335
|
+
_: 2
|
|
336
|
+
}, 1024)], 16, _hoisted_2$1)) : vue.createCommentVNode("", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
337
|
+
key: 1,
|
|
338
|
+
style: $options.getItemProp(processedItem, 'style'),
|
|
339
|
+
"class": [_ctx.cx('separator'), $options.getItemProp(processedItem, 'class')],
|
|
340
|
+
role: "separator"
|
|
341
|
+
}, _ctx.ptm('separator')), null, 16)) : vue.createCommentVNode("", true)], 64);
|
|
342
|
+
}), 128))], 10, _hoisted_1$1);
|
|
282
343
|
}
|
|
283
344
|
|
|
284
345
|
script$2.render = render$2;
|
|
285
346
|
|
|
347
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
348
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
349
|
+
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); }
|
|
350
|
+
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; }
|
|
351
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
352
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
286
353
|
var script$1 = {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
items: {
|
|
296
|
-
type: Array,
|
|
297
|
-
default: null
|
|
298
|
-
},
|
|
299
|
-
templates: {
|
|
300
|
-
type: Object,
|
|
301
|
-
default: null
|
|
302
|
-
},
|
|
303
|
-
expandedKeys: {
|
|
304
|
-
type: Object,
|
|
305
|
-
default: null
|
|
306
|
-
},
|
|
307
|
-
exact: {
|
|
308
|
-
type: Boolean,
|
|
309
|
-
default: true
|
|
310
|
-
}
|
|
354
|
+
name: 'PanelMenuList',
|
|
355
|
+
hostName: 'PanelMenu',
|
|
356
|
+
"extends": BaseComponent__default["default"],
|
|
357
|
+
emits: ['item-toggle', 'header-focus'],
|
|
358
|
+
props: {
|
|
359
|
+
panelId: {
|
|
360
|
+
type: String,
|
|
361
|
+
"default": null
|
|
311
362
|
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
363
|
+
items: {
|
|
364
|
+
type: Array,
|
|
365
|
+
"default": null
|
|
366
|
+
},
|
|
367
|
+
templates: {
|
|
368
|
+
type: Object,
|
|
369
|
+
"default": null
|
|
370
|
+
},
|
|
371
|
+
expandedKeys: {
|
|
372
|
+
type: Object,
|
|
373
|
+
"default": null
|
|
374
|
+
},
|
|
375
|
+
exact: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
"default": true
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
searchTimeout: null,
|
|
381
|
+
searchValue: null,
|
|
382
|
+
data: function data() {
|
|
383
|
+
return {
|
|
384
|
+
focused: false,
|
|
385
|
+
focusedItem: null,
|
|
386
|
+
activeItemPath: []
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
watch: {
|
|
390
|
+
expandedKeys: function expandedKeys(newValue) {
|
|
391
|
+
this.autoUpdateActiveItemPath(newValue);
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
mounted: function mounted() {
|
|
395
|
+
this.autoUpdateActiveItemPath(this.expandedKeys);
|
|
396
|
+
},
|
|
397
|
+
methods: {
|
|
398
|
+
getItemProp: function getItemProp(processedItem, name) {
|
|
399
|
+
return processedItem && processedItem.item ? utils.ObjectUtils.getItemValue(processedItem.item[name]) : undefined;
|
|
400
|
+
},
|
|
401
|
+
getItemLabel: function getItemLabel(processedItem) {
|
|
402
|
+
return this.getItemProp(processedItem, 'label');
|
|
403
|
+
},
|
|
404
|
+
isItemVisible: function isItemVisible(processedItem) {
|
|
405
|
+
return this.getItemProp(processedItem, 'visible') !== false;
|
|
406
|
+
},
|
|
407
|
+
isItemDisabled: function isItemDisabled(processedItem) {
|
|
408
|
+
return this.getItemProp(processedItem, 'disabled');
|
|
409
|
+
},
|
|
410
|
+
isItemActive: function isItemActive(processedItem) {
|
|
411
|
+
return this.activeItemPath.some(function (path) {
|
|
412
|
+
return path.key === processedItem.parentKey;
|
|
413
|
+
});
|
|
320
414
|
},
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
415
|
+
isItemGroup: function isItemGroup(processedItem) {
|
|
416
|
+
return utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
417
|
+
},
|
|
418
|
+
onFocus: function onFocus(event) {
|
|
419
|
+
this.focused = true;
|
|
420
|
+
this.focusedItem = this.focusedItem || (this.isElementInPanel(event, event.relatedTarget) ? this.findFirstItem() : this.findLastItem());
|
|
421
|
+
},
|
|
422
|
+
onBlur: function onBlur() {
|
|
423
|
+
this.focused = false;
|
|
424
|
+
this.focusedItem = null;
|
|
425
|
+
this.searchValue = '';
|
|
426
|
+
},
|
|
427
|
+
onKeyDown: function onKeyDown(event) {
|
|
428
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
429
|
+
switch (event.code) {
|
|
430
|
+
case 'ArrowDown':
|
|
431
|
+
this.onArrowDownKey(event);
|
|
432
|
+
break;
|
|
433
|
+
case 'ArrowUp':
|
|
434
|
+
this.onArrowUpKey(event);
|
|
435
|
+
break;
|
|
436
|
+
case 'ArrowLeft':
|
|
437
|
+
this.onArrowLeftKey(event);
|
|
438
|
+
break;
|
|
439
|
+
case 'ArrowRight':
|
|
440
|
+
this.onArrowRightKey(event);
|
|
441
|
+
break;
|
|
442
|
+
case 'Home':
|
|
443
|
+
this.onHomeKey(event);
|
|
444
|
+
break;
|
|
445
|
+
case 'End':
|
|
446
|
+
this.onEndKey(event);
|
|
447
|
+
break;
|
|
448
|
+
case 'Space':
|
|
449
|
+
this.onSpaceKey(event);
|
|
450
|
+
break;
|
|
451
|
+
case 'Enter':
|
|
452
|
+
this.onEnterKey(event);
|
|
453
|
+
break;
|
|
454
|
+
case 'Escape':
|
|
455
|
+
case 'Tab':
|
|
456
|
+
case 'PageDown':
|
|
457
|
+
case 'PageUp':
|
|
458
|
+
case 'Backspace':
|
|
459
|
+
case 'ShiftLeft':
|
|
460
|
+
case 'ShiftRight':
|
|
461
|
+
//NOOP
|
|
462
|
+
break;
|
|
463
|
+
default:
|
|
464
|
+
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
465
|
+
this.searchItems(event, event.key);
|
|
466
|
+
}
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
471
|
+
var processedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem) ? this.findNextItem(this.focusedItem) : this.findFirstItem();
|
|
472
|
+
this.changeFocusedItem({
|
|
473
|
+
originalEvent: event,
|
|
474
|
+
processedItem: processedItem,
|
|
475
|
+
focusOnNext: true
|
|
476
|
+
});
|
|
477
|
+
event.preventDefault();
|
|
478
|
+
},
|
|
479
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
480
|
+
var processedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem) ? this.findPrevItem(this.focusedItem) : this.findLastItem();
|
|
481
|
+
this.changeFocusedItem({
|
|
482
|
+
originalEvent: event,
|
|
483
|
+
processedItem: processedItem,
|
|
484
|
+
selfCheck: true
|
|
485
|
+
});
|
|
486
|
+
event.preventDefault();
|
|
487
|
+
},
|
|
488
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
489
|
+
var _this = this;
|
|
490
|
+
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
491
|
+
var matched = this.activeItemPath.some(function (p) {
|
|
492
|
+
return p.key === _this.focusedItem.key;
|
|
493
|
+
});
|
|
494
|
+
if (matched) {
|
|
495
|
+
this.activeItemPath = this.activeItemPath.filter(function (p) {
|
|
496
|
+
return p.key !== _this.focusedItem.key;
|
|
497
|
+
});
|
|
498
|
+
} else {
|
|
499
|
+
this.focusedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem.parent) ? this.focusedItem.parent : this.focusedItem;
|
|
324
500
|
}
|
|
501
|
+
event.preventDefault();
|
|
502
|
+
}
|
|
325
503
|
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
isItemActive(processedItem) {
|
|
343
|
-
return this.activeItemPath.some((path) => path.key === processedItem.parentKey);
|
|
344
|
-
},
|
|
345
|
-
isItemGroup(processedItem) {
|
|
346
|
-
return utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
347
|
-
},
|
|
348
|
-
onFocus(event) {
|
|
349
|
-
this.focused = true;
|
|
350
|
-
this.focusedItem = this.focusedItem || (this.isElementInPanel(event, event.relatedTarget) ? this.findFirstItem() : this.findLastItem());
|
|
351
|
-
},
|
|
352
|
-
onBlur() {
|
|
353
|
-
this.focused = false;
|
|
354
|
-
this.focusedItem = null;
|
|
355
|
-
this.searchValue = '';
|
|
356
|
-
},
|
|
357
|
-
onKeyDown(event) {
|
|
358
|
-
const metaKey = event.metaKey || event.ctrlKey;
|
|
359
|
-
|
|
360
|
-
switch (event.code) {
|
|
361
|
-
case 'ArrowDown':
|
|
362
|
-
this.onArrowDownKey(event);
|
|
363
|
-
break;
|
|
364
|
-
|
|
365
|
-
case 'ArrowUp':
|
|
366
|
-
this.onArrowUpKey(event);
|
|
367
|
-
break;
|
|
368
|
-
|
|
369
|
-
case 'ArrowLeft':
|
|
370
|
-
this.onArrowLeftKey(event);
|
|
371
|
-
break;
|
|
372
|
-
|
|
373
|
-
case 'ArrowRight':
|
|
374
|
-
this.onArrowRightKey(event);
|
|
375
|
-
break;
|
|
376
|
-
|
|
377
|
-
case 'Home':
|
|
378
|
-
this.onHomeKey(event);
|
|
379
|
-
break;
|
|
380
|
-
|
|
381
|
-
case 'End':
|
|
382
|
-
this.onEndKey(event);
|
|
383
|
-
break;
|
|
384
|
-
|
|
385
|
-
case 'Space':
|
|
386
|
-
this.onSpaceKey(event);
|
|
387
|
-
break;
|
|
388
|
-
|
|
389
|
-
case 'Enter':
|
|
390
|
-
this.onEnterKey(event);
|
|
391
|
-
break;
|
|
392
|
-
|
|
393
|
-
case 'Escape':
|
|
394
|
-
case 'Tab':
|
|
395
|
-
case 'PageDown':
|
|
396
|
-
case 'PageUp':
|
|
397
|
-
case 'Backspace':
|
|
398
|
-
case 'ShiftLeft':
|
|
399
|
-
case 'ShiftRight':
|
|
400
|
-
//NOOP
|
|
401
|
-
break;
|
|
402
|
-
|
|
403
|
-
default:
|
|
404
|
-
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
405
|
-
this.searchItems(event, event.key);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
break;
|
|
409
|
-
}
|
|
410
|
-
},
|
|
411
|
-
onArrowDownKey(event) {
|
|
412
|
-
const processedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem) ? this.findNextItem(this.focusedItem) : this.findFirstItem();
|
|
413
|
-
|
|
414
|
-
this.changeFocusedItem({ originalEvent: event, processedItem, focusOnNext: true });
|
|
415
|
-
event.preventDefault();
|
|
416
|
-
},
|
|
417
|
-
onArrowUpKey(event) {
|
|
418
|
-
const processedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem) ? this.findPrevItem(this.focusedItem) : this.findLastItem();
|
|
419
|
-
|
|
420
|
-
this.changeFocusedItem({ originalEvent: event, processedItem, selfCheck: true });
|
|
421
|
-
event.preventDefault();
|
|
422
|
-
},
|
|
423
|
-
onArrowLeftKey(event) {
|
|
424
|
-
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
425
|
-
const matched = this.activeItemPath.some((p) => p.key === this.focusedItem.key);
|
|
426
|
-
|
|
427
|
-
if (matched) {
|
|
428
|
-
this.activeItemPath = this.activeItemPath.filter((p) => p.key !== this.focusedItem.key);
|
|
429
|
-
} else {
|
|
430
|
-
this.focusedItem = utils.ObjectUtils.isNotEmpty(this.focusedItem.parent) ? this.focusedItem.parent : this.focusedItem;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
event.preventDefault();
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
onArrowRightKey(event) {
|
|
437
|
-
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
438
|
-
const grouped = this.isItemGroup(this.focusedItem);
|
|
439
|
-
|
|
440
|
-
if (grouped) {
|
|
441
|
-
const matched = this.activeItemPath.some((p) => p.key === this.focusedItem.key);
|
|
442
|
-
|
|
443
|
-
if (matched) {
|
|
444
|
-
this.onArrowDownKey(event);
|
|
445
|
-
} else {
|
|
446
|
-
this.activeItemPath = this.activeItemPath.filter((p) => p.parentKey !== this.focusedItem.parentKey);
|
|
447
|
-
this.activeItemPath.push(this.focusedItem);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
event.preventDefault();
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
onHomeKey(event) {
|
|
455
|
-
this.changeFocusedItem({ originalEvent: event, processedItem: this.findFirstItem(), allowHeaderFocus: false });
|
|
456
|
-
event.preventDefault();
|
|
457
|
-
},
|
|
458
|
-
onEndKey(event) {
|
|
459
|
-
this.changeFocusedItem({ originalEvent: event, processedItem: this.findLastItem(), focusOnNext: true, allowHeaderFocus: false });
|
|
460
|
-
event.preventDefault();
|
|
461
|
-
},
|
|
462
|
-
onEnterKey(event) {
|
|
463
|
-
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
464
|
-
const element = utils.DomHandler.findSingle(this.$el, `li[id="${`${this.focusedItemId}`}"]`);
|
|
465
|
-
const anchorElement = element && (utils.DomHandler.findSingle(element, '.p-menuitem-link') || utils.DomHandler.findSingle(element, 'a,button'));
|
|
466
|
-
|
|
467
|
-
anchorElement ? anchorElement.click() : element && element.click();
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
event.preventDefault();
|
|
471
|
-
},
|
|
472
|
-
onSpaceKey(event) {
|
|
473
|
-
this.onEnterKey(event);
|
|
474
|
-
},
|
|
475
|
-
onItemToggle(event) {
|
|
476
|
-
const { processedItem, expanded } = event;
|
|
477
|
-
|
|
478
|
-
if (this.expandedKeys) {
|
|
479
|
-
this.$emit('item-toggle', { item: processedItem.item, expanded });
|
|
480
|
-
} else {
|
|
481
|
-
this.activeItemPath = this.activeItemPath.filter((p) => p.parentKey !== processedItem.parentKey);
|
|
482
|
-
expanded && this.activeItemPath.push(processedItem);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
this.focusedItem = processedItem;
|
|
486
|
-
utils.DomHandler.focus(this.$el);
|
|
487
|
-
},
|
|
488
|
-
isElementInPanel(event, element) {
|
|
489
|
-
const panel = event.currentTarget.closest('.p-panelmenu-panel');
|
|
490
|
-
|
|
491
|
-
return panel && panel.contains(element);
|
|
492
|
-
},
|
|
493
|
-
isItemMatched(processedItem) {
|
|
494
|
-
return this.isValidItem(processedItem) && this.getItemLabel(processedItem).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
|
|
495
|
-
},
|
|
496
|
-
isVisibleItem(processedItem) {
|
|
497
|
-
return !!processedItem && (processedItem.level === 0 || this.isItemActive(processedItem)) && this.isItemVisible(processedItem);
|
|
498
|
-
},
|
|
499
|
-
isValidItem(processedItem) {
|
|
500
|
-
return !!processedItem && !this.isItemDisabled(processedItem);
|
|
501
|
-
},
|
|
502
|
-
findFirstItem() {
|
|
503
|
-
return this.visibleItems.find((processedItem) => this.isValidItem(processedItem));
|
|
504
|
-
},
|
|
505
|
-
findLastItem() {
|
|
506
|
-
return utils.ObjectUtils.findLast(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
|
|
507
|
-
},
|
|
508
|
-
findNextItem(processedItem) {
|
|
509
|
-
const index = this.visibleItems.findIndex((item) => item.key === processedItem.key);
|
|
510
|
-
const matchedItem = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).find((pItem) => this.isValidItem(pItem)) : undefined;
|
|
511
|
-
|
|
512
|
-
return matchedItem || processedItem;
|
|
513
|
-
},
|
|
514
|
-
findPrevItem(processedItem) {
|
|
515
|
-
const index = this.visibleItems.findIndex((item) => item.key === processedItem.key);
|
|
516
|
-
const matchedItem = index > 0 ? utils.ObjectUtils.findLast(this.visibleItems.slice(0, index), (pItem) => this.isValidItem(pItem)) : undefined;
|
|
517
|
-
|
|
518
|
-
return matchedItem || processedItem;
|
|
519
|
-
},
|
|
520
|
-
searchItems(event, char) {
|
|
521
|
-
this.searchValue = (this.searchValue || '') + char;
|
|
522
|
-
|
|
523
|
-
let matchedItem = null;
|
|
524
|
-
let matched = false;
|
|
525
|
-
|
|
526
|
-
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
527
|
-
const focusedItemIndex = this.visibleItems.findIndex((processedItem) => processedItem.key === this.focusedItem.key);
|
|
528
|
-
|
|
529
|
-
matchedItem = this.visibleItems.slice(focusedItemIndex).find((processedItem) => this.isItemMatched(processedItem));
|
|
530
|
-
matchedItem = utils.ObjectUtils.isEmpty(matchedItem) ? this.visibleItems.slice(0, focusedItemIndex).find((processedItem) => this.isItemMatched(processedItem)) : matchedItem;
|
|
531
|
-
} else {
|
|
532
|
-
matchedItem = this.visibleItems.find((processedItem) => this.isItemMatched(processedItem));
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
if (utils.ObjectUtils.isNotEmpty(matchedItem)) {
|
|
536
|
-
matched = true;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
if (utils.ObjectUtils.isEmpty(matchedItem) && utils.ObjectUtils.isEmpty(this.focusedItem)) {
|
|
540
|
-
matchedItem = this.findFirstItem();
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (utils.ObjectUtils.isNotEmpty(matchedItem)) {
|
|
544
|
-
this.changeFocusedItem({
|
|
545
|
-
originalEvent: event,
|
|
546
|
-
processedItem: matchedItem,
|
|
547
|
-
allowHeaderFocus: false
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
if (this.searchTimeout) {
|
|
552
|
-
clearTimeout(this.searchTimeout);
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
this.searchTimeout = setTimeout(() => {
|
|
556
|
-
this.searchValue = '';
|
|
557
|
-
this.searchTimeout = null;
|
|
558
|
-
}, 500);
|
|
559
|
-
|
|
560
|
-
return matched;
|
|
561
|
-
},
|
|
562
|
-
changeFocusedItem(event) {
|
|
563
|
-
const { originalEvent, processedItem, focusOnNext, selfCheck, allowHeaderFocus = true } = event;
|
|
564
|
-
|
|
565
|
-
if (utils.ObjectUtils.isNotEmpty(this.focusedItem) && this.focusedItem.key !== processedItem.key) {
|
|
566
|
-
this.focusedItem = processedItem;
|
|
567
|
-
this.scrollInView();
|
|
568
|
-
} else if (allowHeaderFocus) {
|
|
569
|
-
this.$emit('header-focus', { originalEvent, focusOnNext, selfCheck });
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
scrollInView() {
|
|
573
|
-
const element = utils.DomHandler.findSingle(this.$el, `li[id="${`${this.focusedItemId}`}"]`);
|
|
574
|
-
|
|
575
|
-
if (element) {
|
|
576
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
autoUpdateActiveItemPath(expandedKeys) {
|
|
580
|
-
this.activeItemPath = Object.entries(expandedKeys || {}).reduce((acc, [key, val]) => {
|
|
581
|
-
if (val) {
|
|
582
|
-
const processedItem = this.findProcessedItemByItemKey(key);
|
|
583
|
-
|
|
584
|
-
processedItem && acc.push(processedItem);
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
return acc;
|
|
588
|
-
}, []);
|
|
589
|
-
},
|
|
590
|
-
findProcessedItemByItemKey(key, processedItems, level = 0) {
|
|
591
|
-
processedItems = processedItems || (level === 0 && this.processedItems);
|
|
592
|
-
|
|
593
|
-
if (!processedItems) return null;
|
|
594
|
-
|
|
595
|
-
for (let i = 0; i < processedItems.length; i++) {
|
|
596
|
-
const processedItem = processedItems[i];
|
|
597
|
-
|
|
598
|
-
if (this.getItemProp(processedItem, 'key') === key) return processedItem;
|
|
599
|
-
|
|
600
|
-
const matchedItem = this.findProcessedItemByItemKey(key, processedItem.items, level + 1);
|
|
601
|
-
|
|
602
|
-
if (matchedItem) return matchedItem;
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
|
|
606
|
-
const processedItems = [];
|
|
607
|
-
|
|
608
|
-
items &&
|
|
609
|
-
items.forEach((item, index) => {
|
|
610
|
-
const key = (parentKey !== '' ? parentKey + '_' : '') + index;
|
|
611
|
-
const newItem = {
|
|
612
|
-
item,
|
|
613
|
-
index,
|
|
614
|
-
level,
|
|
615
|
-
key,
|
|
616
|
-
parent,
|
|
617
|
-
parentKey
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
newItem['items'] = this.createProcessedItems(item.items, level + 1, newItem, key);
|
|
621
|
-
processedItems.push(newItem);
|
|
622
|
-
});
|
|
623
|
-
|
|
624
|
-
return processedItems;
|
|
625
|
-
},
|
|
626
|
-
flatItems(processedItems, processedFlattenItems = []) {
|
|
627
|
-
processedItems &&
|
|
628
|
-
processedItems.forEach((processedItem) => {
|
|
629
|
-
if (this.isVisibleItem(processedItem)) {
|
|
630
|
-
processedFlattenItems.push(processedItem);
|
|
631
|
-
this.flatItems(processedItem.items, processedFlattenItems);
|
|
632
|
-
}
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
return processedFlattenItems;
|
|
504
|
+
onArrowRightKey: function onArrowRightKey(event) {
|
|
505
|
+
var _this2 = this;
|
|
506
|
+
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
507
|
+
var grouped = this.isItemGroup(this.focusedItem);
|
|
508
|
+
if (grouped) {
|
|
509
|
+
var matched = this.activeItemPath.some(function (p) {
|
|
510
|
+
return p.key === _this2.focusedItem.key;
|
|
511
|
+
});
|
|
512
|
+
if (matched) {
|
|
513
|
+
this.onArrowDownKey(event);
|
|
514
|
+
} else {
|
|
515
|
+
this.activeItemPath = this.activeItemPath.filter(function (p) {
|
|
516
|
+
return p.parentKey !== _this2.focusedItem.parentKey;
|
|
517
|
+
});
|
|
518
|
+
this.activeItemPath.push(this.focusedItem);
|
|
519
|
+
}
|
|
636
520
|
}
|
|
521
|
+
event.preventDefault();
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
onHomeKey: function onHomeKey(event) {
|
|
525
|
+
this.changeFocusedItem({
|
|
526
|
+
originalEvent: event,
|
|
527
|
+
processedItem: this.findFirstItem(),
|
|
528
|
+
allowHeaderFocus: false
|
|
529
|
+
});
|
|
530
|
+
event.preventDefault();
|
|
531
|
+
},
|
|
532
|
+
onEndKey: function onEndKey(event) {
|
|
533
|
+
this.changeFocusedItem({
|
|
534
|
+
originalEvent: event,
|
|
535
|
+
processedItem: this.findLastItem(),
|
|
536
|
+
focusOnNext: true,
|
|
537
|
+
allowHeaderFocus: false
|
|
538
|
+
});
|
|
539
|
+
event.preventDefault();
|
|
540
|
+
},
|
|
541
|
+
onEnterKey: function onEnterKey(event) {
|
|
542
|
+
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
543
|
+
var element = utils.DomHandler.findSingle(this.$el, "li[id=\"".concat("".concat(this.focusedItemId), "\"]"));
|
|
544
|
+
var anchorElement = element && (utils.DomHandler.findSingle(element, '[data-pc-section="action"]') || utils.DomHandler.findSingle(element, 'a,button'));
|
|
545
|
+
anchorElement ? anchorElement.click() : element && element.click();
|
|
546
|
+
}
|
|
547
|
+
event.preventDefault();
|
|
548
|
+
},
|
|
549
|
+
onSpaceKey: function onSpaceKey(event) {
|
|
550
|
+
this.onEnterKey(event);
|
|
551
|
+
},
|
|
552
|
+
onItemToggle: function onItemToggle(event) {
|
|
553
|
+
var processedItem = event.processedItem,
|
|
554
|
+
expanded = event.expanded;
|
|
555
|
+
if (this.expandedKeys) {
|
|
556
|
+
this.$emit('item-toggle', {
|
|
557
|
+
item: processedItem.item,
|
|
558
|
+
expanded: expanded
|
|
559
|
+
});
|
|
560
|
+
} else {
|
|
561
|
+
this.activeItemPath = this.activeItemPath.filter(function (p) {
|
|
562
|
+
return p.parentKey !== processedItem.parentKey;
|
|
563
|
+
});
|
|
564
|
+
expanded && this.activeItemPath.push(processedItem);
|
|
565
|
+
}
|
|
566
|
+
this.focusedItem = processedItem;
|
|
567
|
+
utils.DomHandler.focus(this.$el);
|
|
568
|
+
},
|
|
569
|
+
isElementInPanel: function isElementInPanel(event, element) {
|
|
570
|
+
var panel = event.currentTarget.closest('[data-pc-section="panel"]');
|
|
571
|
+
return panel && panel.contains(element);
|
|
572
|
+
},
|
|
573
|
+
isItemMatched: function isItemMatched(processedItem) {
|
|
574
|
+
return this.isValidItem(processedItem) && this.getItemLabel(processedItem).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
|
|
575
|
+
},
|
|
576
|
+
isVisibleItem: function isVisibleItem(processedItem) {
|
|
577
|
+
return !!processedItem && (processedItem.level === 0 || this.isItemActive(processedItem)) && this.isItemVisible(processedItem);
|
|
578
|
+
},
|
|
579
|
+
isValidItem: function isValidItem(processedItem) {
|
|
580
|
+
return !!processedItem && !this.isItemDisabled(processedItem);
|
|
581
|
+
},
|
|
582
|
+
findFirstItem: function findFirstItem() {
|
|
583
|
+
var _this3 = this;
|
|
584
|
+
return this.visibleItems.find(function (processedItem) {
|
|
585
|
+
return _this3.isValidItem(processedItem);
|
|
586
|
+
});
|
|
587
|
+
},
|
|
588
|
+
findLastItem: function findLastItem() {
|
|
589
|
+
var _this4 = this;
|
|
590
|
+
return utils.ObjectUtils.findLast(this.visibleItems, function (processedItem) {
|
|
591
|
+
return _this4.isValidItem(processedItem);
|
|
592
|
+
});
|
|
593
|
+
},
|
|
594
|
+
findNextItem: function findNextItem(processedItem) {
|
|
595
|
+
var _this5 = this;
|
|
596
|
+
var index = this.visibleItems.findIndex(function (item) {
|
|
597
|
+
return item.key === processedItem.key;
|
|
598
|
+
});
|
|
599
|
+
var matchedItem = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).find(function (pItem) {
|
|
600
|
+
return _this5.isValidItem(pItem);
|
|
601
|
+
}) : undefined;
|
|
602
|
+
return matchedItem || processedItem;
|
|
603
|
+
},
|
|
604
|
+
findPrevItem: function findPrevItem(processedItem) {
|
|
605
|
+
var _this6 = this;
|
|
606
|
+
var index = this.visibleItems.findIndex(function (item) {
|
|
607
|
+
return item.key === processedItem.key;
|
|
608
|
+
});
|
|
609
|
+
var matchedItem = index > 0 ? utils.ObjectUtils.findLast(this.visibleItems.slice(0, index), function (pItem) {
|
|
610
|
+
return _this6.isValidItem(pItem);
|
|
611
|
+
}) : undefined;
|
|
612
|
+
return matchedItem || processedItem;
|
|
613
|
+
},
|
|
614
|
+
searchItems: function searchItems(event, _char) {
|
|
615
|
+
var _this7 = this;
|
|
616
|
+
this.searchValue = (this.searchValue || '') + _char;
|
|
617
|
+
var matchedItem = null;
|
|
618
|
+
var matched = false;
|
|
619
|
+
if (utils.ObjectUtils.isNotEmpty(this.focusedItem)) {
|
|
620
|
+
var focusedItemIndex = this.visibleItems.findIndex(function (processedItem) {
|
|
621
|
+
return processedItem.key === _this7.focusedItem.key;
|
|
622
|
+
});
|
|
623
|
+
matchedItem = this.visibleItems.slice(focusedItemIndex).find(function (processedItem) {
|
|
624
|
+
return _this7.isItemMatched(processedItem);
|
|
625
|
+
});
|
|
626
|
+
matchedItem = utils.ObjectUtils.isEmpty(matchedItem) ? this.visibleItems.slice(0, focusedItemIndex).find(function (processedItem) {
|
|
627
|
+
return _this7.isItemMatched(processedItem);
|
|
628
|
+
}) : matchedItem;
|
|
629
|
+
} else {
|
|
630
|
+
matchedItem = this.visibleItems.find(function (processedItem) {
|
|
631
|
+
return _this7.isItemMatched(processedItem);
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
if (utils.ObjectUtils.isNotEmpty(matchedItem)) {
|
|
635
|
+
matched = true;
|
|
636
|
+
}
|
|
637
|
+
if (utils.ObjectUtils.isEmpty(matchedItem) && utils.ObjectUtils.isEmpty(this.focusedItem)) {
|
|
638
|
+
matchedItem = this.findFirstItem();
|
|
639
|
+
}
|
|
640
|
+
if (utils.ObjectUtils.isNotEmpty(matchedItem)) {
|
|
641
|
+
this.changeFocusedItem({
|
|
642
|
+
originalEvent: event,
|
|
643
|
+
processedItem: matchedItem,
|
|
644
|
+
allowHeaderFocus: false
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
if (this.searchTimeout) {
|
|
648
|
+
clearTimeout(this.searchTimeout);
|
|
649
|
+
}
|
|
650
|
+
this.searchTimeout = setTimeout(function () {
|
|
651
|
+
_this7.searchValue = '';
|
|
652
|
+
_this7.searchTimeout = null;
|
|
653
|
+
}, 500);
|
|
654
|
+
return matched;
|
|
637
655
|
},
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
656
|
+
changeFocusedItem: function changeFocusedItem(event) {
|
|
657
|
+
var originalEvent = event.originalEvent,
|
|
658
|
+
processedItem = event.processedItem,
|
|
659
|
+
focusOnNext = event.focusOnNext,
|
|
660
|
+
selfCheck = event.selfCheck,
|
|
661
|
+
_event$allowHeaderFoc = event.allowHeaderFocus,
|
|
662
|
+
allowHeaderFocus = _event$allowHeaderFoc === void 0 ? true : _event$allowHeaderFoc;
|
|
663
|
+
if (utils.ObjectUtils.isNotEmpty(this.focusedItem) && this.focusedItem.key !== processedItem.key) {
|
|
664
|
+
this.focusedItem = processedItem;
|
|
665
|
+
this.scrollInView();
|
|
666
|
+
} else if (allowHeaderFocus) {
|
|
667
|
+
this.$emit('header-focus', {
|
|
668
|
+
originalEvent: originalEvent,
|
|
669
|
+
focusOnNext: focusOnNext,
|
|
670
|
+
selfCheck: selfCheck
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
scrollInView: function scrollInView() {
|
|
675
|
+
var element = utils.DomHandler.findSingle(this.$el, "li[id=\"".concat("".concat(this.focusedItemId), "\"]"));
|
|
676
|
+
if (element) {
|
|
677
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
678
|
+
block: 'nearest',
|
|
679
|
+
inline: 'start'
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
autoUpdateActiveItemPath: function autoUpdateActiveItemPath(expandedKeys) {
|
|
684
|
+
var _this8 = this;
|
|
685
|
+
this.activeItemPath = Object.entries(expandedKeys || {}).reduce(function (acc, _ref) {
|
|
686
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
687
|
+
key = _ref2[0],
|
|
688
|
+
val = _ref2[1];
|
|
689
|
+
if (val) {
|
|
690
|
+
var processedItem = _this8.findProcessedItemByItemKey(key);
|
|
691
|
+
processedItem && acc.push(processedItem);
|
|
647
692
|
}
|
|
693
|
+
return acc;
|
|
694
|
+
}, []);
|
|
695
|
+
},
|
|
696
|
+
findProcessedItemByItemKey: function findProcessedItemByItemKey(key, processedItems) {
|
|
697
|
+
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
698
|
+
processedItems = processedItems || level === 0 && this.processedItems;
|
|
699
|
+
if (!processedItems) return null;
|
|
700
|
+
for (var i = 0; i < processedItems.length; i++) {
|
|
701
|
+
var processedItem = processedItems[i];
|
|
702
|
+
if (this.getItemProp(processedItem, 'key') === key) return processedItem;
|
|
703
|
+
var matchedItem = this.findProcessedItemByItemKey(key, processedItem.items, level + 1);
|
|
704
|
+
if (matchedItem) return matchedItem;
|
|
705
|
+
}
|
|
648
706
|
},
|
|
649
|
-
|
|
650
|
-
|
|
707
|
+
createProcessedItems: function createProcessedItems(items) {
|
|
708
|
+
var _this9 = this;
|
|
709
|
+
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
710
|
+
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
711
|
+
var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
712
|
+
var processedItems = [];
|
|
713
|
+
items && items.forEach(function (item, index) {
|
|
714
|
+
var key = (parentKey !== '' ? parentKey + '_' : '') + index;
|
|
715
|
+
var newItem = {
|
|
716
|
+
item: item,
|
|
717
|
+
index: index,
|
|
718
|
+
level: level,
|
|
719
|
+
key: key,
|
|
720
|
+
parent: parent,
|
|
721
|
+
parentKey: parentKey
|
|
722
|
+
};
|
|
723
|
+
newItem['items'] = _this9.createProcessedItems(item.items, level + 1, newItem, key);
|
|
724
|
+
processedItems.push(newItem);
|
|
725
|
+
});
|
|
726
|
+
return processedItems;
|
|
727
|
+
},
|
|
728
|
+
flatItems: function flatItems(processedItems) {
|
|
729
|
+
var _this10 = this;
|
|
730
|
+
var processedFlattenItems = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
731
|
+
processedItems && processedItems.forEach(function (processedItem) {
|
|
732
|
+
if (_this10.isVisibleItem(processedItem)) {
|
|
733
|
+
processedFlattenItems.push(processedItem);
|
|
734
|
+
_this10.flatItems(processedItem.items, processedFlattenItems);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
return processedFlattenItems;
|
|
651
738
|
}
|
|
739
|
+
},
|
|
740
|
+
computed: {
|
|
741
|
+
processedItems: function processedItems() {
|
|
742
|
+
return this.createProcessedItems(this.items || []);
|
|
743
|
+
},
|
|
744
|
+
visibleItems: function visibleItems() {
|
|
745
|
+
return this.flatItems(this.processedItems);
|
|
746
|
+
},
|
|
747
|
+
focusedItemId: function focusedItemId() {
|
|
748
|
+
return utils.ObjectUtils.isNotEmpty(this.focusedItem) ? "".concat(this.panelId, "_").concat(this.focusedItem.key) : null;
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
components: {
|
|
752
|
+
PanelMenuSub: script$2
|
|
753
|
+
}
|
|
652
754
|
};
|
|
653
755
|
|
|
654
756
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
return (vue.openBlock(), vue.createBlock(_component_PanelMenuSub, {
|
|
757
|
+
var _component_PanelMenuSub = vue.resolveComponent("PanelMenuSub");
|
|
758
|
+
return vue.openBlock(), vue.createBlock(_component_PanelMenuSub, vue.mergeProps({
|
|
658
759
|
id: $props.panelId + '_list',
|
|
659
|
-
class:
|
|
760
|
+
"class": _ctx.cx('menu'),
|
|
660
761
|
role: "tree",
|
|
661
762
|
tabindex: -1,
|
|
662
763
|
"aria-activedescendant": $data.focused ? $options.focusedItemId : undefined,
|
|
@@ -671,409 +772,334 @@ this.primevue.panelmenu = (function (BaseComponent, ChevronDownIcon, ChevronRigh
|
|
|
671
772
|
onKeydown: $options.onKeyDown,
|
|
672
773
|
onItemToggle: $options.onItemToggle,
|
|
673
774
|
pt: _ctx.pt
|
|
674
|
-
}, null,
|
|
775
|
+
}, _ctx.ptm('menu')), null, 16, ["id", "class", "aria-activedescendant", "panelId", "focusedItemId", "items", "templates", "activeItemPath", "exact", "onFocus", "onBlur", "onKeydown", "onItemToggle", "pt"]);
|
|
675
776
|
}
|
|
676
777
|
|
|
677
778
|
script$1.render = render$1;
|
|
678
779
|
|
|
780
|
+
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); }
|
|
781
|
+
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; }
|
|
782
|
+
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; }
|
|
783
|
+
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; }
|
|
784
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
785
|
+
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); }
|
|
679
786
|
var script = {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
787
|
+
name: 'PanelMenu',
|
|
788
|
+
"extends": script$3,
|
|
789
|
+
emits: ['update:expandedKeys', 'panel-open', 'panel-close'],
|
|
790
|
+
data: function data() {
|
|
791
|
+
return {
|
|
792
|
+
id: this.$attrs.id,
|
|
793
|
+
activeItem: null
|
|
794
|
+
};
|
|
795
|
+
},
|
|
796
|
+
watch: {
|
|
797
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
798
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
mounted: function mounted() {
|
|
802
|
+
this.id = this.id || utils.UniqueComponentId();
|
|
803
|
+
},
|
|
804
|
+
methods: {
|
|
805
|
+
getItemProp: function getItemProp(item, name) {
|
|
806
|
+
return item ? utils.ObjectUtils.getItemValue(item[name]) : undefined;
|
|
700
807
|
},
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
id: this.$attrs.id,
|
|
704
|
-
activeItem: null
|
|
705
|
-
};
|
|
808
|
+
getItemLabel: function getItemLabel(item) {
|
|
809
|
+
return this.getItemProp(item, 'label');
|
|
706
810
|
},
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
811
|
+
getPTOptions: function getPTOptions(item, key) {
|
|
812
|
+
return this.ptm(key, {
|
|
813
|
+
options: {
|
|
814
|
+
active: this.isItemActive(item),
|
|
815
|
+
focused: this.isItemFocused(item)
|
|
710
816
|
}
|
|
817
|
+
});
|
|
711
818
|
},
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
},
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
rootList ? utils.DomHandler.focus(rootList) : this.updateFocusedHeader({ originalEvent: event, focusOnNext: true });
|
|
796
|
-
event.preventDefault();
|
|
797
|
-
},
|
|
798
|
-
onHeaderArrowUpKey(event) {
|
|
799
|
-
const prevHeader = this.findPrevHeader(event.currentTarget.parentElement) || this.findLastHeader();
|
|
800
|
-
const rootList = utils.DomHandler.hasClass(prevHeader, 'p-highlight') ? utils.DomHandler.findSingle(prevHeader.nextElementSibling, '.p-panelmenu-root-list') : null;
|
|
801
|
-
|
|
802
|
-
rootList ? utils.DomHandler.focus(rootList) : this.updateFocusedHeader({ originalEvent: event, focusOnNext: false });
|
|
803
|
-
event.preventDefault();
|
|
804
|
-
},
|
|
805
|
-
onHeaderHomeKey(event) {
|
|
806
|
-
this.changeFocusedHeader(event, this.findFirstHeader());
|
|
807
|
-
event.preventDefault();
|
|
808
|
-
},
|
|
809
|
-
onHeaderEndKey(event) {
|
|
810
|
-
this.changeFocusedHeader(event, this.findLastHeader());
|
|
811
|
-
event.preventDefault();
|
|
812
|
-
},
|
|
813
|
-
onHeaderEnterKey(event, item) {
|
|
814
|
-
const headerAction = utils.DomHandler.findSingle(event.currentTarget, '.p-panelmenu-header-action');
|
|
815
|
-
|
|
816
|
-
headerAction ? headerAction.click() : this.onHeaderClick(event, item);
|
|
817
|
-
event.preventDefault();
|
|
818
|
-
},
|
|
819
|
-
onHeaderActionClick(event, navigate) {
|
|
820
|
-
navigate && navigate(event);
|
|
821
|
-
},
|
|
822
|
-
findNextHeader(panelElement, selfCheck = false) {
|
|
823
|
-
const nextPanelElement = selfCheck ? panelElement : panelElement.nextElementSibling;
|
|
824
|
-
const headerElement = utils.DomHandler.findSingle(nextPanelElement, '.p-panelmenu-header');
|
|
825
|
-
|
|
826
|
-
return headerElement ? (utils.DomHandler.hasClass(headerElement, 'p-disabled') ? this.findNextHeader(headerElement.parentElement) : headerElement) : null;
|
|
827
|
-
},
|
|
828
|
-
findPrevHeader(panelElement, selfCheck = false) {
|
|
829
|
-
const prevPanelElement = selfCheck ? panelElement : panelElement.previousElementSibling;
|
|
830
|
-
const headerElement = utils.DomHandler.findSingle(prevPanelElement, '.p-panelmenu-header');
|
|
831
|
-
|
|
832
|
-
return headerElement ? (utils.DomHandler.hasClass(headerElement, 'p-disabled') ? this.findPrevHeader(headerElement.parentElement) : headerElement) : null;
|
|
833
|
-
},
|
|
834
|
-
findFirstHeader() {
|
|
835
|
-
return this.findNextHeader(this.$el.firstElementChild, true);
|
|
836
|
-
},
|
|
837
|
-
findLastHeader() {
|
|
838
|
-
return this.findPrevHeader(this.$el.lastElementChild, true);
|
|
839
|
-
},
|
|
840
|
-
updateFocusedHeader(event) {
|
|
841
|
-
const { originalEvent, focusOnNext, selfCheck } = event;
|
|
842
|
-
const panelElement = originalEvent.currentTarget.closest('.p-panelmenu-panel');
|
|
843
|
-
const header = selfCheck ? utils.DomHandler.findSingle(panelElement, '.p-panelmenu-header') : focusOnNext ? this.findNextHeader(panelElement) : this.findPrevHeader(panelElement);
|
|
844
|
-
|
|
845
|
-
header ? this.changeFocusedHeader(originalEvent, header) : focusOnNext ? this.onHeaderHomeKey(originalEvent) : this.onHeaderEndKey(originalEvent);
|
|
846
|
-
},
|
|
847
|
-
changeActiveItem(event, item, selfActive = false) {
|
|
848
|
-
if (!this.isItemDisabled(item)) {
|
|
849
|
-
const active = this.isItemActive(item);
|
|
850
|
-
const eventName = !active ? 'panel-open' : 'panel-close';
|
|
851
|
-
|
|
852
|
-
this.activeItem = selfActive ? item : this.activeItem && utils.ObjectUtils.equals(item, this.activeItem) ? null : item;
|
|
853
|
-
this.changeExpandedKeys({ item, expanded: !active });
|
|
854
|
-
this.$emit(eventName, { originalEvent: event, item });
|
|
855
|
-
}
|
|
856
|
-
},
|
|
857
|
-
changeExpandedKeys({ item, expanded = false }) {
|
|
858
|
-
if (this.expandedKeys) {
|
|
859
|
-
let _keys = { ...this.expandedKeys };
|
|
860
|
-
|
|
861
|
-
if (expanded) _keys[item.key] = true;
|
|
862
|
-
else delete _keys[item.key];
|
|
863
|
-
|
|
864
|
-
this.$emit('update:expandedKeys', _keys);
|
|
865
|
-
}
|
|
866
|
-
},
|
|
867
|
-
changeFocusedHeader(event, element) {
|
|
868
|
-
element && utils.DomHandler.focus(element);
|
|
869
|
-
},
|
|
870
|
-
getPanelClass(item) {
|
|
871
|
-
return ['p-panelmenu-panel', this.getItemProp(item, 'class')];
|
|
872
|
-
},
|
|
873
|
-
getHeaderClass(item) {
|
|
874
|
-
return [
|
|
875
|
-
'p-panelmenu-header',
|
|
876
|
-
this.getItemProp(item, 'headerClass'),
|
|
877
|
-
{
|
|
878
|
-
'p-highlight': this.isItemActive(item),
|
|
879
|
-
'p-disabled': this.isItemDisabled(item)
|
|
880
|
-
}
|
|
881
|
-
];
|
|
882
|
-
},
|
|
883
|
-
getHeaderActionClass(item, routerProps) {
|
|
884
|
-
return [
|
|
885
|
-
'p-panelmenu-header-action',
|
|
886
|
-
{
|
|
887
|
-
'router-link-active': routerProps && routerProps.isActive,
|
|
888
|
-
'router-link-active-exact': this.exact && routerProps && routerProps.isExactActive
|
|
889
|
-
}
|
|
890
|
-
];
|
|
891
|
-
},
|
|
892
|
-
getHeaderIconClass(item) {
|
|
893
|
-
return ['p-menuitem-icon', this.getItemProp(item, 'icon')];
|
|
894
|
-
}
|
|
819
|
+
isItemActive: function isItemActive(item) {
|
|
820
|
+
return this.expandedKeys ? this.expandedKeys[this.getItemProp(item, 'key')] : utils.ObjectUtils.equals(item, this.activeItem);
|
|
821
|
+
},
|
|
822
|
+
isItemVisible: function isItemVisible(item) {
|
|
823
|
+
return this.getItemProp(item, 'visible') !== false;
|
|
824
|
+
},
|
|
825
|
+
isItemDisabled: function isItemDisabled(item) {
|
|
826
|
+
return this.getItemProp(item, 'disabled');
|
|
827
|
+
},
|
|
828
|
+
isItemFocused: function isItemFocused(item) {
|
|
829
|
+
return utils.ObjectUtils.equals(item, this.activeItem);
|
|
830
|
+
},
|
|
831
|
+
getPanelId: function getPanelId(index) {
|
|
832
|
+
return "".concat(this.id, "_").concat(index);
|
|
833
|
+
},
|
|
834
|
+
getPanelKey: function getPanelKey(index) {
|
|
835
|
+
return this.getPanelId(index);
|
|
836
|
+
},
|
|
837
|
+
getHeaderId: function getHeaderId(index) {
|
|
838
|
+
return "".concat(this.getPanelId(index), "_header");
|
|
839
|
+
},
|
|
840
|
+
getContentId: function getContentId(index) {
|
|
841
|
+
return "".concat(this.getPanelId(index), "_content");
|
|
842
|
+
},
|
|
843
|
+
onHeaderClick: function onHeaderClick(event, item) {
|
|
844
|
+
if (this.isItemDisabled(item)) {
|
|
845
|
+
event.preventDefault();
|
|
846
|
+
return;
|
|
847
|
+
}
|
|
848
|
+
if (item.command) {
|
|
849
|
+
item.command({
|
|
850
|
+
originalEvent: event,
|
|
851
|
+
item: item
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
this.changeActiveItem(event, item);
|
|
855
|
+
utils.DomHandler.focus(event.currentTarget);
|
|
856
|
+
},
|
|
857
|
+
onHeaderKeyDown: function onHeaderKeyDown(event, item) {
|
|
858
|
+
switch (event.code) {
|
|
859
|
+
case 'ArrowDown':
|
|
860
|
+
this.onHeaderArrowDownKey(event);
|
|
861
|
+
break;
|
|
862
|
+
case 'ArrowUp':
|
|
863
|
+
this.onHeaderArrowUpKey(event);
|
|
864
|
+
break;
|
|
865
|
+
case 'Home':
|
|
866
|
+
this.onHeaderHomeKey(event);
|
|
867
|
+
break;
|
|
868
|
+
case 'End':
|
|
869
|
+
this.onHeaderEndKey(event);
|
|
870
|
+
break;
|
|
871
|
+
case 'Enter':
|
|
872
|
+
case 'Space':
|
|
873
|
+
this.onHeaderEnterKey(event, item);
|
|
874
|
+
break;
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
onHeaderArrowDownKey: function onHeaderArrowDownKey(event) {
|
|
878
|
+
var rootList = utils.DomHandler.getAttribute(event.currentTarget, 'data-p-highlight') === true ? utils.DomHandler.findSingle(event.currentTarget.nextElementSibling, '[data-pc-section="menu"]') : null;
|
|
879
|
+
rootList ? utils.DomHandler.focus(rootList) : this.updateFocusedHeader({
|
|
880
|
+
originalEvent: event,
|
|
881
|
+
focusOnNext: true
|
|
882
|
+
});
|
|
883
|
+
event.preventDefault();
|
|
884
|
+
},
|
|
885
|
+
onHeaderArrowUpKey: function onHeaderArrowUpKey(event) {
|
|
886
|
+
var prevHeader = this.findPrevHeader(event.currentTarget.parentElement) || this.findLastHeader();
|
|
887
|
+
var rootList = utils.DomHandler.getAttribute(prevHeader, 'data-p-highlight') === true ? utils.DomHandler.findSingle(prevHeader.nextElementSibling, '[data-pc-section="menu"]') : null;
|
|
888
|
+
rootList ? utils.DomHandler.focus(rootList) : this.updateFocusedHeader({
|
|
889
|
+
originalEvent: event,
|
|
890
|
+
focusOnNext: false
|
|
891
|
+
});
|
|
892
|
+
event.preventDefault();
|
|
893
|
+
},
|
|
894
|
+
onHeaderHomeKey: function onHeaderHomeKey(event) {
|
|
895
|
+
this.changeFocusedHeader(event, this.findFirstHeader());
|
|
896
|
+
event.preventDefault();
|
|
897
|
+
},
|
|
898
|
+
onHeaderEndKey: function onHeaderEndKey(event) {
|
|
899
|
+
this.changeFocusedHeader(event, this.findLastHeader());
|
|
900
|
+
event.preventDefault();
|
|
895
901
|
},
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
902
|
+
onHeaderEnterKey: function onHeaderEnterKey(event, item) {
|
|
903
|
+
var headerAction = utils.DomHandler.findSingle(event.currentTarget, '[data-pc-section="headeraction"]');
|
|
904
|
+
headerAction ? headerAction.click() : this.onHeaderClick(event, item);
|
|
905
|
+
event.preventDefault();
|
|
906
|
+
},
|
|
907
|
+
onHeaderActionClick: function onHeaderActionClick(event, navigate) {
|
|
908
|
+
navigate && navigate(event);
|
|
909
|
+
},
|
|
910
|
+
findNextHeader: function findNextHeader(panelElement) {
|
|
911
|
+
var selfCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
912
|
+
var nextPanelElement = selfCheck ? panelElement : panelElement.nextElementSibling;
|
|
913
|
+
var headerElement = utils.DomHandler.findSingle(nextPanelElement, '[data-pc-section="header"]');
|
|
914
|
+
return headerElement ? utils.DomHandler.getAttribute(headerElement, 'data-p-disabled') ? this.findNextHeader(headerElement.parentElement) : headerElement : null;
|
|
915
|
+
},
|
|
916
|
+
findPrevHeader: function findPrevHeader(panelElement) {
|
|
917
|
+
var selfCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
918
|
+
var prevPanelElement = selfCheck ? panelElement : panelElement.previousElementSibling;
|
|
919
|
+
var headerElement = utils.DomHandler.findSingle(prevPanelElement, '[data-pc-section="header"]');
|
|
920
|
+
return headerElement ? utils.DomHandler.getAttribute(headerElement, 'data-p-disabled') ? this.findPrevHeader(headerElement.parentElement) : headerElement : null;
|
|
921
|
+
},
|
|
922
|
+
findFirstHeader: function findFirstHeader() {
|
|
923
|
+
return this.findNextHeader(this.$el.firstElementChild, true);
|
|
924
|
+
},
|
|
925
|
+
findLastHeader: function findLastHeader() {
|
|
926
|
+
return this.findPrevHeader(this.$el.lastElementChild, true);
|
|
927
|
+
},
|
|
928
|
+
updateFocusedHeader: function updateFocusedHeader(event) {
|
|
929
|
+
var originalEvent = event.originalEvent,
|
|
930
|
+
focusOnNext = event.focusOnNext,
|
|
931
|
+
selfCheck = event.selfCheck;
|
|
932
|
+
var panelElement = originalEvent.currentTarget.closest('[data-pc-section="panel"]');
|
|
933
|
+
var header = selfCheck ? utils.DomHandler.findSingle(panelElement, '[data-pc-section="header"]') : focusOnNext ? this.findNextHeader(panelElement) : this.findPrevHeader(panelElement);
|
|
934
|
+
header ? this.changeFocusedHeader(originalEvent, header) : focusOnNext ? this.onHeaderHomeKey(originalEvent) : this.onHeaderEndKey(originalEvent);
|
|
935
|
+
},
|
|
936
|
+
changeActiveItem: function changeActiveItem(event, item) {
|
|
937
|
+
var selfActive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
938
|
+
if (!this.isItemDisabled(item)) {
|
|
939
|
+
var active = this.isItemActive(item);
|
|
940
|
+
var eventName = !active ? 'panel-open' : 'panel-close';
|
|
941
|
+
this.activeItem = selfActive ? item : this.activeItem && utils.ObjectUtils.equals(item, this.activeItem) ? null : item;
|
|
942
|
+
this.changeExpandedKeys({
|
|
943
|
+
item: item,
|
|
944
|
+
expanded: !active
|
|
945
|
+
});
|
|
946
|
+
this.$emit(eventName, {
|
|
947
|
+
originalEvent: event,
|
|
948
|
+
item: item
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
changeExpandedKeys: function changeExpandedKeys(_ref) {
|
|
953
|
+
var item = _ref.item,
|
|
954
|
+
_ref$expanded = _ref.expanded,
|
|
955
|
+
expanded = _ref$expanded === void 0 ? false : _ref$expanded;
|
|
956
|
+
if (this.expandedKeys) {
|
|
957
|
+
var _keys = _objectSpread({}, this.expandedKeys);
|
|
958
|
+
if (expanded) _keys[item.key] = true;else delete _keys[item.key];
|
|
959
|
+
this.$emit('update:expandedKeys', _keys);
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
changeFocusedHeader: function changeFocusedHeader(event, element) {
|
|
963
|
+
element && utils.DomHandler.focus(element);
|
|
900
964
|
}
|
|
965
|
+
},
|
|
966
|
+
components: {
|
|
967
|
+
PanelMenuList: script$1,
|
|
968
|
+
ChevronRightIcon: ChevronRightIcon__default["default"],
|
|
969
|
+
ChevronDownIcon: ChevronDownIcon__default["default"]
|
|
970
|
+
}
|
|
901
971
|
};
|
|
902
972
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
973
|
+
var _hoisted_1 = ["id"];
|
|
974
|
+
var _hoisted_2 = ["id", "tabindex", "aria-label", "aria-expanded", "aria-controls", "aria-disabled", "onClick", "onKeydown", "data-p-highlight", "data-p-disabled"];
|
|
975
|
+
var _hoisted_3 = ["href", "onClick"];
|
|
976
|
+
var _hoisted_4 = ["href"];
|
|
977
|
+
var _hoisted_5 = ["id", "aria-labelledby"];
|
|
909
978
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
979
|
+
var _component_router_link = vue.resolveComponent("router-link");
|
|
980
|
+
var _component_PanelMenuList = vue.resolveComponent("PanelMenuList");
|
|
981
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
914
982
|
id: $data.id,
|
|
915
|
-
class:
|
|
916
|
-
}, _ctx.ptm('root')
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
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
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
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
|
-
: vue.createCommentVNode("", true)
|
|
1032
|
-
], 16, _hoisted_5), [
|
|
1033
|
-
[vue.vShow, $options.isItemActive(item)]
|
|
1034
|
-
])
|
|
1035
|
-
]),
|
|
1036
|
-
_: 2
|
|
1037
|
-
}, 1024)
|
|
1038
|
-
], 16))
|
|
1039
|
-
: vue.createCommentVNode("", true)
|
|
1040
|
-
], 64))
|
|
1041
|
-
}), 128))
|
|
1042
|
-
], 16, _hoisted_1))
|
|
983
|
+
"class": _ctx.cx('root')
|
|
984
|
+
}, _ctx.ptm('root'), {
|
|
985
|
+
"data-pc-name": "panelmenu"
|
|
986
|
+
}), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.model, function (item, index) {
|
|
987
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
988
|
+
key: $options.getPanelKey(index)
|
|
989
|
+
}, [$options.isItemVisible(item) ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
990
|
+
key: 0,
|
|
991
|
+
style: $options.getItemProp(item, 'style'),
|
|
992
|
+
"class": [_ctx.cx('panel'), $options.getItemProp(item, 'class')]
|
|
993
|
+
}, _ctx.ptm('panel')), [vue.createElementVNode("div", vue.mergeProps({
|
|
994
|
+
id: $options.getHeaderId(index),
|
|
995
|
+
"class": [_ctx.cx('header', {
|
|
996
|
+
item: item
|
|
997
|
+
}), $options.getItemProp(item, 'headerClass')],
|
|
998
|
+
tabindex: $options.isItemDisabled(item) ? -1 : _ctx.tabindex,
|
|
999
|
+
role: "button",
|
|
1000
|
+
"aria-label": $options.getItemLabel(item),
|
|
1001
|
+
"aria-expanded": $options.isItemActive(item),
|
|
1002
|
+
"aria-controls": $options.getContentId(index),
|
|
1003
|
+
"aria-disabled": $options.isItemDisabled(item),
|
|
1004
|
+
onClick: function onClick($event) {
|
|
1005
|
+
return $options.onHeaderClick($event, item);
|
|
1006
|
+
},
|
|
1007
|
+
onKeydown: function onKeydown($event) {
|
|
1008
|
+
return $options.onHeaderKeyDown($event, item);
|
|
1009
|
+
}
|
|
1010
|
+
}, $options.getPTOptions(item, 'header'), {
|
|
1011
|
+
"data-p-highlight": $options.isItemActive(item),
|
|
1012
|
+
"data-p-disabled": $options.isItemDisabled(item)
|
|
1013
|
+
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
1014
|
+
"class": _ctx.cx('headerContent')
|
|
1015
|
+
}, $options.getPTOptions(item, 'headerContent')), [!_ctx.$slots.item ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
1016
|
+
key: 0
|
|
1017
|
+
}, [$options.getItemProp(item, 'to') && !$options.isItemDisabled(item) ? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
to: $options.getItemProp(item, 'to'),
|
|
1020
|
+
custom: ""
|
|
1021
|
+
}, {
|
|
1022
|
+
"default": vue.withCtx(function (_ref) {
|
|
1023
|
+
var navigate = _ref.navigate,
|
|
1024
|
+
href = _ref.href,
|
|
1025
|
+
isActive = _ref.isActive,
|
|
1026
|
+
isExactActive = _ref.isExactActive;
|
|
1027
|
+
return [vue.createElementVNode("a", vue.mergeProps({
|
|
1028
|
+
href: href,
|
|
1029
|
+
"class": _ctx.cx('headerAction', {
|
|
1030
|
+
isActive: isActive,
|
|
1031
|
+
isExactActive: isExactActive
|
|
1032
|
+
}),
|
|
1033
|
+
tabindex: -1,
|
|
1034
|
+
onClick: function onClick($event) {
|
|
1035
|
+
return $options.onHeaderActionClick($event, navigate);
|
|
1036
|
+
}
|
|
1037
|
+
}, $options.getPTOptions(item, 'headerAction')), [_ctx.$slots.headericon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.headericon), {
|
|
1038
|
+
key: 0,
|
|
1039
|
+
item: item,
|
|
1040
|
+
"class": vue.normalizeClass([_ctx.cx('headerIcon'), $options.getItemProp(item, 'icon')])
|
|
1041
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(item, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1042
|
+
key: 1,
|
|
1043
|
+
"class": [_ctx.cx('headerIcon'), $options.getItemProp(item, 'icon')]
|
|
1044
|
+
}, $options.getPTOptions(item, 'headerIcon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
1045
|
+
"class": _ctx.cx('headerLabel')
|
|
1046
|
+
}, $options.getPTOptions(item, 'headerLabel')), vue.toDisplayString($options.getItemLabel(item)), 17)], 16, _hoisted_3)];
|
|
1047
|
+
}),
|
|
1048
|
+
_: 2
|
|
1049
|
+
}, 1032, ["to"])) : (vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
1050
|
+
key: 1,
|
|
1051
|
+
href: $options.getItemProp(item, 'url'),
|
|
1052
|
+
"class": _ctx.cx('headerAction'),
|
|
1053
|
+
tabindex: -1
|
|
1054
|
+
}, $options.getPTOptions(item, 'headerAction')), [$options.getItemProp(item, 'items') ? vue.renderSlot(_ctx.$slots, "submenuicon", {
|
|
1055
|
+
key: 0,
|
|
1056
|
+
active: $options.isItemActive(item)
|
|
1057
|
+
}, function () {
|
|
1058
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($options.isItemActive(item) ? 'ChevronDownIcon' : 'ChevronRightIcon'), vue.mergeProps({
|
|
1059
|
+
"class": _ctx.cx('submenuIcon')
|
|
1060
|
+
}, $options.getPTOptions(item, 'submenuIcon')), null, 16, ["class"]))];
|
|
1061
|
+
}) : vue.createCommentVNode("", true), _ctx.$slots.headericon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.headericon), {
|
|
1062
|
+
key: 1,
|
|
1063
|
+
item: item,
|
|
1064
|
+
"class": vue.normalizeClass([_ctx.cx('headerIcon'), $options.getItemProp(item, 'icon')])
|
|
1065
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(item, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1066
|
+
key: 2,
|
|
1067
|
+
"class": [_ctx.cx('headerIcon'), $options.getItemProp(item, 'icon')]
|
|
1068
|
+
}, $options.getPTOptions(item, 'headerIcon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
1069
|
+
"class": _ctx.cx('headerLabel')
|
|
1070
|
+
}, $options.getPTOptions(item, 'headerLabel')), vue.toDisplayString($options.getItemLabel(item)), 17)], 16, _hoisted_4))], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
|
|
1071
|
+
key: 1,
|
|
1072
|
+
item: item
|
|
1073
|
+
}, null, 8, ["item"]))], 16)], 16, _hoisted_2), vue.createVNode(vue.Transition, {
|
|
1074
|
+
name: "p-toggleable-content"
|
|
1075
|
+
}, {
|
|
1076
|
+
"default": vue.withCtx(function () {
|
|
1077
|
+
return [vue.withDirectives(vue.createElementVNode("div", vue.mergeProps({
|
|
1078
|
+
id: $options.getContentId(index),
|
|
1079
|
+
"class": _ctx.cx('toggleableContent'),
|
|
1080
|
+
role: "region",
|
|
1081
|
+
"aria-labelledby": $options.getHeaderId(index)
|
|
1082
|
+
}, _ctx.ptm('toggleableContent')), [$options.getItemProp(item, 'items') ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1083
|
+
key: 0,
|
|
1084
|
+
"class": _ctx.cx('menuContent')
|
|
1085
|
+
}, _ctx.ptm('menuContent')), [vue.createVNode(_component_PanelMenuList, {
|
|
1086
|
+
panelId: $options.getPanelId(index),
|
|
1087
|
+
items: $options.getItemProp(item, 'items'),
|
|
1088
|
+
templates: _ctx.$slots,
|
|
1089
|
+
expandedKeys: _ctx.expandedKeys,
|
|
1090
|
+
onItemToggle: $options.changeExpandedKeys,
|
|
1091
|
+
onHeaderFocus: $options.updateFocusedHeader,
|
|
1092
|
+
exact: _ctx.exact,
|
|
1093
|
+
pt: _ctx.pt
|
|
1094
|
+
}, null, 8, ["panelId", "items", "templates", "expandedKeys", "onItemToggle", "onHeaderFocus", "exact", "pt"])], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_5), [[vue.vShow, $options.isItemActive(item)]])];
|
|
1095
|
+
}),
|
|
1096
|
+
_: 2
|
|
1097
|
+
}, 1024)], 16)) : vue.createCommentVNode("", true)], 64);
|
|
1098
|
+
}), 128))], 16, _hoisted_1);
|
|
1043
1099
|
}
|
|
1044
1100
|
|
|
1045
|
-
function styleInject(css, ref) {
|
|
1046
|
-
if ( ref === void 0 ) ref = {};
|
|
1047
|
-
var insertAt = ref.insertAt;
|
|
1048
|
-
|
|
1049
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
1050
|
-
|
|
1051
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1052
|
-
var style = document.createElement('style');
|
|
1053
|
-
style.type = 'text/css';
|
|
1054
|
-
|
|
1055
|
-
if (insertAt === 'top') {
|
|
1056
|
-
if (head.firstChild) {
|
|
1057
|
-
head.insertBefore(style, head.firstChild);
|
|
1058
|
-
} else {
|
|
1059
|
-
head.appendChild(style);
|
|
1060
|
-
}
|
|
1061
|
-
} else {
|
|
1062
|
-
head.appendChild(style);
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
if (style.styleSheet) {
|
|
1066
|
-
style.styleSheet.cssText = css;
|
|
1067
|
-
} else {
|
|
1068
|
-
style.appendChild(document.createTextNode(css));
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
var css_248z = "\n.p-panelmenu .p-panelmenu-header-action {\n display: flex;\n align-items: center;\n user-select: none;\n cursor: pointer;\n position: relative;\n text-decoration: none;\n}\n.p-panelmenu .p-panelmenu-header-action:focus {\n z-index: 1;\n}\n.p-panelmenu .p-submenu-list {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-panelmenu .p-menuitem-link {\n display: flex;\n align-items: center;\n user-select: none;\n cursor: pointer;\n text-decoration: none;\n position: relative;\n overflow: hidden;\n}\n.p-panelmenu .p-menuitem-text {\n line-height: 1;\n}\n";
|
|
1073
|
-
styleInject(css_248z);
|
|
1074
|
-
|
|
1075
1101
|
script.render = render;
|
|
1076
1102
|
|
|
1077
1103
|
return script;
|
|
1078
1104
|
|
|
1079
|
-
})(primevue.
|
|
1105
|
+
})(primevue.icons.chevrondown, primevue.icons.chevronright, primevue.utils, primevue.basecomponent, primevue.usestyle, primevue.ripple, Vue);
|