primevue 3.29.2 → 3.30.1
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 +16 -8
- package/accordion/Accordion.d.ts +23 -1
- package/accordion/Accordion.vue +39 -92
- package/accordion/BaseAccordion.vue +93 -0
- package/accordion/accordion.cjs.js +336 -330
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +336 -330
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +336 -331
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +29 -1
- 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 +24 -3
- 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 +15 -1
- 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 +13 -1
- 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 +458 -12
- package/basecomponent/basecomponent.cjs.js +182 -36
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +182 -36
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +182 -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 +163 -0
- package/basedirective/basedirective.cjs.min.js +1 -0
- package/basedirective/basedirective.esm.js +161 -0
- package/basedirective/basedirective.esm.min.js +1 -0
- package/basedirective/basedirective.js +163 -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 +13 -1
- 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 +13 -1
- 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 +25 -1
- 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 +25 -13
- 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 +13 -1
- 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 +20 -8
- 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 +13 -1
- 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 +42 -1
- 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 +13 -1
- 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 +13 -1
- 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 +15 -3
- 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 +57 -30
- 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 +24 -1
- 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 +28 -7
- 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 +13 -1
- 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 +13 -1
- 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 +17 -1
- 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 +12190 -11725
- package/core/core.min.js +76 -70
- package/datatable/BaseDataTable.vue +740 -0
- package/datatable/BodyCell.vue +49 -35
- package/datatable/ColumnFilter.vue +74 -59
- package/datatable/DataTable.d.ts +32 -9
- package/datatable/DataTable.vue +82 -593
- package/datatable/FooterCell.vue +16 -11
- package/datatable/HeaderCell.vue +31 -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 +21 -9
- package/datatable/TableHeader.vue +33 -21
- package/datatable/datatable.cjs.js +5878 -5739
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +5878 -5739
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +5878 -5740
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +99 -0
- package/dataview/DataView.d.ts +17 -1
- package/dataview/DataView.vue +14 -87
- package/dataview/dataview.cjs.js +283 -295
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +282 -294
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +284 -296
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +18 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +18 -2
- 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 +58 -6
- 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 +13 -1
- 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 +13 -5
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +18 -1
- 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 +41 -1
- package/inputtext/InputText.vue +11 -6
- package/inputtext/inputtext.cjs.js +59 -20
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +59 -20
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +59 -20
- package/inputtext/inputtext.min.js +1 -1
- package/knob/BaseKnob.vue +114 -0
- package/knob/Knob.d.ts +13 -1
- 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 +13 -1
- 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 +17 -1
- 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 +13 -1
- 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 +17 -1
- 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 +13 -1
- 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 +13 -6
- 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 +30 -1
- package/orderlist/OrderList.vue +38 -159
- package/orderlist/orderlist.cjs.js +631 -686
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +630 -685
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +631 -687
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +111 -0
- package/organizationchart/OrganizationChart.d.ts +13 -1
- 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 +13 -1
- 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 +20 -9
- 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 +14 -2
- 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 +17 -1
- 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 +17 -1
- 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 +36 -3
- package/picklist/PickList.vue +51 -180
- package/picklist/picklist.cjs.js +1072 -1108
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1071 -1107
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1072 -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 +13 -1
- 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 +13 -1
- 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 +18 -1
- 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 +31 -2
- 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 +26 -2
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +25 -3
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +36 -1
- 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 +22 -1
- package/tabview/TabView.vue +59 -172
- package/tabview/tabview.cjs.js +462 -459
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +462 -459
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +462 -460
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +59 -0
- package/tag/Tag.d.ts +13 -1
- 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 +13 -1
- 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 +30 -1
- package/textarea/Textarea.vue +10 -18
- package/textarea/textarea.cjs.js +85 -77
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +85 -77
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +86 -79
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +142 -0
- package/tieredmenu/TieredMenu.d.ts +17 -1
- 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 +31 -1
- package/timeline/Timeline.vue +17 -139
- package/timeline/timeline.cjs.js +97 -90
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +97 -90
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +97 -91
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +181 -0
- package/toast/Toast.d.ts +13 -1
- 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 +13 -1
- 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 +13 -1
- 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 +33 -11
- 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 +20 -3
- 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 +31 -29
- package/treetable/FooterCell.vue +16 -11
- package/treetable/HeaderCell.vue +27 -21
- package/treetable/TreeTable.d.ts +30 -5
- package/treetable/TreeTable.vue +38 -379
- package/treetable/TreeTableRow.vue +9 -11
- package/treetable/treetable.cjs.js +2088 -2129
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2088 -2129
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2088 -2130
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +34 -7
- 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 +20 -0
- package/usestyle/package.json +6 -0
- package/usestyle/usestyle.cjs.js +75 -0
- package/usestyle/usestyle.cjs.min.js +1 -0
- package/usestyle/usestyle.esm.js +71 -0
- package/usestyle/usestyle.esm.min.js +1 -0
- package/usestyle/usestyle.js +78 -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 +14 -2
- package/utils/utils.cjs.js +972 -996
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +972 -996
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +972 -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 +23 -6
- 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
|
@@ -1,1006 +1,1043 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.contextmenu = (function (
|
|
2
|
+
this.primevue.contextmenu = (function (Portal, utils, BaseComponent, usestyle, AngleRightIcon, 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 Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
|
|
8
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
9
9
|
var AngleRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleRightIcon);
|
|
10
10
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
12
|
+
var styles = "\n.p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n}\n\n.p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-contextmenu .p-menuitem-text {\n line-height: 1;\n}\n\n.p-contextmenu .p-menuitem {\n position: relative;\n}\n\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n}\n\n.p-contextmenu-enter-from {\n opacity: 0;\n}\n\n.p-contextmenu-enter-active {\n transition: opacity 250ms;\n}\n";
|
|
13
|
+
var classes = {
|
|
14
|
+
root: function root(_ref) {
|
|
15
|
+
var instance = _ref.instance;
|
|
16
|
+
return ['p-contextmenu p-component', {
|
|
17
|
+
'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
|
|
18
|
+
'p-ripple-disabled': instance.$primevue.config.ripple === false
|
|
19
|
+
}];
|
|
20
|
+
},
|
|
21
|
+
menu: 'p-contextmenu-root-list',
|
|
22
|
+
menuitem: function menuitem(_ref2) {
|
|
23
|
+
var instance = _ref2.instance,
|
|
24
|
+
processedItem = _ref2.processedItem;
|
|
25
|
+
return ['p-menuitem', {
|
|
26
|
+
'p-menuitem-active p-highlight': instance.isItemActive(processedItem),
|
|
27
|
+
'p-focus': instance.isItemFocused(processedItem),
|
|
28
|
+
'p-disabled': instance.isItemDisabled(processedItem)
|
|
29
|
+
}];
|
|
30
|
+
},
|
|
31
|
+
content: 'p-menuitem-content',
|
|
32
|
+
action: function action(_ref3) {
|
|
33
|
+
var props = _ref3.props,
|
|
34
|
+
isActive = _ref3.isActive,
|
|
35
|
+
isExactActive = _ref3.isExactActive;
|
|
36
|
+
return ['p-menuitem-link', {
|
|
37
|
+
'router-link-active': isActive,
|
|
38
|
+
'router-link-active-exact': props.exact && isExactActive
|
|
39
|
+
}];
|
|
40
|
+
},
|
|
41
|
+
icon: 'p-menuitem-icon',
|
|
42
|
+
label: 'p-menuitem-text',
|
|
43
|
+
submenuIcon: 'p-submenu-icon',
|
|
44
|
+
submenu: 'p-submenu-list',
|
|
45
|
+
separator: 'p-menuitem-separator'
|
|
46
|
+
};
|
|
47
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
48
|
+
name: 'contextmenu',
|
|
49
|
+
manual: true
|
|
50
|
+
}),
|
|
51
|
+
loadStyle = _useStyle.load;
|
|
52
|
+
var script$2 = {
|
|
53
|
+
name: 'BaseContextMenu',
|
|
54
|
+
"extends": BaseComponent__default["default"],
|
|
55
|
+
props: {
|
|
56
|
+
model: {
|
|
57
|
+
type: Array,
|
|
58
|
+
"default": null
|
|
53
59
|
},
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
onItemActionClick(event, navigate) {
|
|
98
|
-
navigate && navigate(event);
|
|
99
|
-
},
|
|
100
|
-
getAriaSetSize() {
|
|
101
|
-
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
102
|
-
},
|
|
103
|
-
getAriaPosInset(index) {
|
|
104
|
-
return index - this.items.slice(0, index).filter((processedItem) => this.isItemVisible(processedItem) && this.getItemProp(processedItem, 'separator')).length + 1;
|
|
105
|
-
},
|
|
106
|
-
onEnter() {
|
|
107
|
-
this.position();
|
|
108
|
-
},
|
|
109
|
-
position() {
|
|
110
|
-
const parentItem = this.$refs.container.parentElement;
|
|
111
|
-
const containerOffset = utils.DomHandler.getOffset(this.$refs.container.parentElement);
|
|
112
|
-
const viewport = utils.DomHandler.getViewport();
|
|
113
|
-
const sublistWidth = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : utils.DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
114
|
-
const itemOuterWidth = utils.DomHandler.getOuterWidth(parentItem.children[0]);
|
|
115
|
-
|
|
116
|
-
this.$refs.container.style.top = '0px';
|
|
60
|
+
appendTo: {
|
|
61
|
+
type: String,
|
|
62
|
+
"default": 'body'
|
|
63
|
+
},
|
|
64
|
+
autoZIndex: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
"default": true
|
|
67
|
+
},
|
|
68
|
+
baseZIndex: {
|
|
69
|
+
type: Number,
|
|
70
|
+
"default": 0
|
|
71
|
+
},
|
|
72
|
+
global: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
"default": false
|
|
75
|
+
},
|
|
76
|
+
exact: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
"default": true
|
|
79
|
+
},
|
|
80
|
+
tabindex: {
|
|
81
|
+
type: Number,
|
|
82
|
+
"default": 0
|
|
83
|
+
},
|
|
84
|
+
'aria-labelledby': {
|
|
85
|
+
type: String,
|
|
86
|
+
"default": null
|
|
87
|
+
},
|
|
88
|
+
'aria-label': {
|
|
89
|
+
type: String,
|
|
90
|
+
"default": null
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
css: {
|
|
94
|
+
classes: classes,
|
|
95
|
+
loadStyle: loadStyle
|
|
96
|
+
},
|
|
97
|
+
provide: function provide() {
|
|
98
|
+
return {
|
|
99
|
+
$parentInstance: this
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
};
|
|
117
103
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
104
|
+
var script$1 = {
|
|
105
|
+
name: 'ContextMenuSub',
|
|
106
|
+
hostName: 'ContextMenu',
|
|
107
|
+
"extends": BaseComponent__default["default"],
|
|
108
|
+
emits: ['item-click', 'item-mouseenter'],
|
|
109
|
+
props: {
|
|
110
|
+
items: {
|
|
111
|
+
type: Array,
|
|
112
|
+
"default": null
|
|
113
|
+
},
|
|
114
|
+
menuId: {
|
|
115
|
+
type: String,
|
|
116
|
+
"default": null
|
|
117
|
+
},
|
|
118
|
+
focusedItemId: {
|
|
119
|
+
type: String,
|
|
120
|
+
"default": null
|
|
121
|
+
},
|
|
122
|
+
root: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
"default": false
|
|
125
|
+
},
|
|
126
|
+
visible: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
"default": false
|
|
129
|
+
},
|
|
130
|
+
level: {
|
|
131
|
+
type: Number,
|
|
132
|
+
"default": 0
|
|
133
|
+
},
|
|
134
|
+
templates: {
|
|
135
|
+
type: Object,
|
|
136
|
+
"default": null
|
|
137
|
+
},
|
|
138
|
+
exact: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
"default": true
|
|
141
|
+
},
|
|
142
|
+
activeItemPath: {
|
|
143
|
+
type: Object,
|
|
144
|
+
"default": null
|
|
145
|
+
},
|
|
146
|
+
tabindex: {
|
|
147
|
+
type: Number,
|
|
148
|
+
"default": 0
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
methods: {
|
|
152
|
+
getItemId: function getItemId(processedItem) {
|
|
153
|
+
return "".concat(this.menuId, "_").concat(processedItem.key);
|
|
154
|
+
},
|
|
155
|
+
getItemKey: function getItemKey(processedItem) {
|
|
156
|
+
return this.getItemId(processedItem);
|
|
157
|
+
},
|
|
158
|
+
getItemProp: function getItemProp(processedItem, name, params) {
|
|
159
|
+
return processedItem && processedItem.item ? utils.ObjectUtils.getItemValue(processedItem.item[name], params) : undefined;
|
|
160
|
+
},
|
|
161
|
+
getItemLabel: function getItemLabel(processedItem) {
|
|
162
|
+
return this.getItemProp(processedItem, 'label');
|
|
163
|
+
},
|
|
164
|
+
getPTOptions: function getPTOptions(processedItem, key) {
|
|
165
|
+
return this.ptm(key, {
|
|
166
|
+
context: {
|
|
167
|
+
active: this.isItemActive(processedItem),
|
|
168
|
+
focused: this.isItemFocused(processedItem)
|
|
149
169
|
}
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
isItemActive: function isItemActive(processedItem) {
|
|
173
|
+
return this.activeItemPath.some(function (path) {
|
|
174
|
+
return path.key === processedItem.key;
|
|
175
|
+
});
|
|
176
|
+
},
|
|
177
|
+
isItemVisible: function isItemVisible(processedItem) {
|
|
178
|
+
return this.getItemProp(processedItem, 'visible') !== false;
|
|
179
|
+
},
|
|
180
|
+
isItemDisabled: function isItemDisabled(processedItem) {
|
|
181
|
+
return this.getItemProp(processedItem, 'disabled');
|
|
182
|
+
},
|
|
183
|
+
isItemFocused: function isItemFocused(processedItem) {
|
|
184
|
+
return this.focusedItemId === this.getItemId(processedItem);
|
|
185
|
+
},
|
|
186
|
+
isItemGroup: function isItemGroup(processedItem) {
|
|
187
|
+
return utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
188
|
+
},
|
|
189
|
+
onItemClick: function onItemClick(event, processedItem) {
|
|
190
|
+
this.getItemProp(processedItem, 'command', {
|
|
191
|
+
originalEvent: event,
|
|
192
|
+
item: processedItem.item
|
|
193
|
+
});
|
|
194
|
+
this.$emit('item-click', {
|
|
195
|
+
originalEvent: event,
|
|
196
|
+
processedItem: processedItem,
|
|
197
|
+
isFocus: true
|
|
198
|
+
});
|
|
199
|
+
},
|
|
200
|
+
onItemMouseEnter: function onItemMouseEnter(event, processedItem) {
|
|
201
|
+
this.$emit('item-mouseenter', {
|
|
202
|
+
originalEvent: event,
|
|
203
|
+
processedItem: processedItem
|
|
204
|
+
});
|
|
150
205
|
},
|
|
151
|
-
|
|
152
|
-
|
|
206
|
+
onItemActionClick: function onItemActionClick(event, navigate) {
|
|
207
|
+
navigate && navigate(event);
|
|
153
208
|
},
|
|
154
|
-
|
|
155
|
-
|
|
209
|
+
getAriaSetSize: function getAriaSetSize() {
|
|
210
|
+
var _this = this;
|
|
211
|
+
return this.items.filter(function (processedItem) {
|
|
212
|
+
return _this.isItemVisible(processedItem) && !_this.getItemProp(processedItem, 'separator');
|
|
213
|
+
}).length;
|
|
214
|
+
},
|
|
215
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
216
|
+
var _this2 = this;
|
|
217
|
+
return index - this.items.slice(0, index).filter(function (processedItem) {
|
|
218
|
+
return _this2.isItemVisible(processedItem) && _this2.getItemProp(processedItem, 'separator');
|
|
219
|
+
}).length + 1;
|
|
220
|
+
},
|
|
221
|
+
onEnter: function onEnter() {
|
|
222
|
+
this.position();
|
|
223
|
+
},
|
|
224
|
+
position: function position() {
|
|
225
|
+
var parentItem = this.$refs.container.parentElement;
|
|
226
|
+
var containerOffset = utils.DomHandler.getOffset(this.$refs.container.parentElement);
|
|
227
|
+
var viewport = utils.DomHandler.getViewport();
|
|
228
|
+
var sublistWidth = this.$refs.container.offsetParent ? this.$refs.container.offsetWidth : utils.DomHandler.getHiddenElementOuterWidth(this.$refs.container);
|
|
229
|
+
var itemOuterWidth = utils.DomHandler.getOuterWidth(parentItem.children[0]);
|
|
230
|
+
this.$refs.container.style.top = '0px';
|
|
231
|
+
if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - utils.DomHandler.calculateScrollbarWidth()) {
|
|
232
|
+
this.$refs.container.style.left = -1 * sublistWidth + 'px';
|
|
233
|
+
} else {
|
|
234
|
+
this.$refs.container.style.left = itemOuterWidth + 'px';
|
|
235
|
+
}
|
|
156
236
|
}
|
|
237
|
+
},
|
|
238
|
+
components: {
|
|
239
|
+
AngleRightIcon: AngleRightIcon__default["default"]
|
|
240
|
+
},
|
|
241
|
+
directives: {
|
|
242
|
+
ripple: Ripple__default["default"]
|
|
243
|
+
}
|
|
157
244
|
};
|
|
158
245
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
246
|
+
var _hoisted_1 = ["tabindex"];
|
|
247
|
+
var _hoisted_2 = ["id", "aria-label", "aria-disabled", "aria-expanded", "aria-haspopup", "aria-level", "aria-setsize", "aria-posinset", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
248
|
+
var _hoisted_3 = ["onClick", "onMouseenter"];
|
|
249
|
+
var _hoisted_4 = ["href", "onClick"];
|
|
250
|
+
var _hoisted_5 = ["href", "target"];
|
|
251
|
+
var _hoisted_6 = ["id"];
|
|
165
252
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return (vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
253
|
+
var _component_router_link = vue.resolveComponent("router-link");
|
|
254
|
+
var _component_AngleRightIcon = vue.resolveComponent("AngleRightIcon");
|
|
255
|
+
var _component_ContextMenuSub = vue.resolveComponent("ContextMenuSub", true);
|
|
256
|
+
var _directive_ripple = vue.resolveDirective("ripple");
|
|
257
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
172
258
|
name: "p-contextmenusub",
|
|
173
259
|
onEnter: $options.onEnter
|
|
174
260
|
}, {
|
|
175
|
-
default: vue.withCtx(()
|
|
176
|
-
($props.root ? true : $props.visible)
|
|
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
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
: vue.createCommentVNode("", true)
|
|
303
|
-
], 16, _hoisted_1))
|
|
304
|
-
: vue.createCommentVNode("", true),
|
|
305
|
-
($options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator'))
|
|
306
|
-
? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
307
|
-
key: 1,
|
|
308
|
-
id: $options.getItemId(processedItem),
|
|
309
|
-
style: $options.getItemProp(processedItem, 'style'),
|
|
310
|
-
class: $options.getSeparatorItemClass(processedItem),
|
|
311
|
-
role: "separator"
|
|
312
|
-
}, _ctx.ptm('separator')), null, 16, _hoisted_5))
|
|
313
|
-
: vue.createCommentVNode("", true)
|
|
314
|
-
], 64))
|
|
315
|
-
}), 128))
|
|
316
|
-
], 16))
|
|
317
|
-
: vue.createCommentVNode("", true)
|
|
318
|
-
]),
|
|
261
|
+
"default": vue.withCtx(function () {
|
|
262
|
+
return [($props.root ? true : $props.visible) ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
|
|
263
|
+
key: 0,
|
|
264
|
+
ref: "container",
|
|
265
|
+
tabindex: $props.tabindex
|
|
266
|
+
}, _ctx.ptm('menu')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.items, function (processedItem, index) {
|
|
267
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
268
|
+
key: $options.getItemKey(processedItem)
|
|
269
|
+
}, [$options.isItemVisible(processedItem) && !$options.getItemProp(processedItem, 'separator') ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
270
|
+
key: 0,
|
|
271
|
+
id: $options.getItemId(processedItem),
|
|
272
|
+
style: $options.getItemProp(processedItem, 'style'),
|
|
273
|
+
"class": [_ctx.cx('menuitem', {
|
|
274
|
+
processedItem: processedItem
|
|
275
|
+
}), $options.getItemProp(processedItem, 'class')],
|
|
276
|
+
role: "menuitem",
|
|
277
|
+
"aria-label": $options.getItemLabel(processedItem),
|
|
278
|
+
"aria-disabled": $options.isItemDisabled(processedItem) || undefined,
|
|
279
|
+
"aria-expanded": $options.isItemGroup(processedItem) ? $options.isItemActive(processedItem) : undefined,
|
|
280
|
+
"aria-haspopup": $options.isItemGroup(processedItem) && !$options.getItemProp(processedItem, 'to') ? 'menu' : undefined,
|
|
281
|
+
"aria-level": $props.level + 1,
|
|
282
|
+
"aria-setsize": $options.getAriaSetSize(),
|
|
283
|
+
"aria-posinset": $options.getAriaPosInset(index)
|
|
284
|
+
}, $options.getPTOptions(processedItem, 'menuitem'), {
|
|
285
|
+
"data-p-highlight": $options.isItemActive(processedItem),
|
|
286
|
+
"data-p-focused": $options.isItemFocused(processedItem),
|
|
287
|
+
"data-p-disabled": $options.isItemDisabled(processedItem)
|
|
288
|
+
}), [vue.createElementVNode("div", vue.mergeProps({
|
|
289
|
+
"class": _ctx.cx('content'),
|
|
290
|
+
onClick: function onClick($event) {
|
|
291
|
+
return $options.onItemClick($event, processedItem);
|
|
292
|
+
},
|
|
293
|
+
onMouseenter: function onMouseenter($event) {
|
|
294
|
+
return $options.onItemMouseEnter($event, processedItem);
|
|
295
|
+
}
|
|
296
|
+
}, $options.getPTOptions(processedItem, 'content')), [!$props.templates.item ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
297
|
+
key: 0
|
|
298
|
+
}, [$options.getItemProp(processedItem, 'to') && !$options.isItemDisabled(processedItem) ? (vue.openBlock(), vue.createBlock(_component_router_link, {
|
|
299
|
+
key: 0,
|
|
300
|
+
to: $options.getItemProp(processedItem, 'to'),
|
|
301
|
+
custom: ""
|
|
302
|
+
}, {
|
|
303
|
+
"default": vue.withCtx(function (_ref) {
|
|
304
|
+
var navigate = _ref.navigate,
|
|
305
|
+
href = _ref.href,
|
|
306
|
+
isActive = _ref.isActive,
|
|
307
|
+
isExactActive = _ref.isExactActive;
|
|
308
|
+
return [vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
309
|
+
href: href,
|
|
310
|
+
"class": _ctx.cx('action', {
|
|
311
|
+
isActive: isActive,
|
|
312
|
+
isExactActive: isExactActive
|
|
313
|
+
}),
|
|
314
|
+
tabindex: "-1",
|
|
315
|
+
"aria-hidden": "true",
|
|
316
|
+
onClick: function onClick($event) {
|
|
317
|
+
return $options.onItemActionClick($event, navigate);
|
|
318
|
+
}
|
|
319
|
+
}, $options.getPTOptions(processedItem, 'action')), [$props.templates.itemicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
320
|
+
key: 0,
|
|
321
|
+
item: processedItem.item,
|
|
322
|
+
"class": vue.normalizeClass([_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')])
|
|
323
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(processedItem, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
324
|
+
key: 1,
|
|
325
|
+
"class": [_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')]
|
|
326
|
+
}, $options.getPTOptions(processedItem, 'icon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
327
|
+
"class": _ctx.cx('label')
|
|
328
|
+
}, $options.getPTOptions(processedItem, 'label')), vue.toDisplayString($options.getItemLabel(processedItem)), 17)], 16, _hoisted_4)), [[_directive_ripple]])];
|
|
329
|
+
}),
|
|
330
|
+
_: 2
|
|
331
|
+
}, 1032, ["to"])) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
|
|
332
|
+
key: 1,
|
|
333
|
+
href: $options.getItemProp(processedItem, 'url'),
|
|
334
|
+
"class": _ctx.cx('action'),
|
|
335
|
+
target: $options.getItemProp(processedItem, 'target'),
|
|
336
|
+
tabindex: "-1",
|
|
337
|
+
"aria-hidden": "true"
|
|
338
|
+
}, $options.getPTOptions(processedItem, 'action')), [$props.templates.itemicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.itemicon), {
|
|
339
|
+
key: 0,
|
|
340
|
+
item: processedItem.item,
|
|
341
|
+
"class": vue.normalizeClass([_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')])
|
|
342
|
+
}, null, 8, ["item", "class"])) : $options.getItemProp(processedItem, 'icon') ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
343
|
+
key: 1,
|
|
344
|
+
"class": [_ctx.cx('icon'), $options.getItemProp(processedItem, 'icon')]
|
|
345
|
+
}, $options.getPTOptions(processedItem, 'icon')), null, 16)) : vue.createCommentVNode("", true), vue.createElementVNode("span", vue.mergeProps({
|
|
346
|
+
"class": _ctx.cx('label')
|
|
347
|
+
}, $options.getPTOptions(processedItem, 'label')), vue.toDisplayString($options.getItemLabel(processedItem)), 17), $options.getItemProp(processedItem, 'items') ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
|
|
348
|
+
key: 2
|
|
349
|
+
}, [$props.templates.submenuicon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.submenuicon), {
|
|
350
|
+
key: 0,
|
|
351
|
+
active: $options.isItemActive(processedItem),
|
|
352
|
+
"class": vue.normalizeClass(_ctx.cx('submenuIcon'))
|
|
353
|
+
}, null, 8, ["active", "class"])) : (vue.openBlock(), vue.createBlock(_component_AngleRightIcon, vue.mergeProps({
|
|
354
|
+
key: 1,
|
|
355
|
+
"class": _ctx.cx('submenuIcon')
|
|
356
|
+
}, $options.getPTOptions(processedItem, 'submenuicon')), null, 16, ["class"]))], 64)) : vue.createCommentVNode("", true)], 16, _hoisted_5)), [[_directive_ripple]])], 64)) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
|
|
357
|
+
key: 1,
|
|
358
|
+
item: processedItem.item
|
|
359
|
+
}, null, 8, ["item"]))], 16, _hoisted_3), $options.isItemVisible(processedItem) && $options.isItemGroup(processedItem) ? (vue.openBlock(), vue.createBlock(_component_ContextMenuSub, vue.mergeProps({
|
|
360
|
+
key: 0,
|
|
361
|
+
id: $options.getItemId(processedItem) + '_list',
|
|
362
|
+
role: "menu",
|
|
363
|
+
"class": _ctx.cx('submenu'),
|
|
364
|
+
menuId: $props.menuId,
|
|
365
|
+
focusedItemId: $props.focusedItemId,
|
|
366
|
+
items: processedItem.items,
|
|
367
|
+
templates: $props.templates,
|
|
368
|
+
activeItemPath: $props.activeItemPath,
|
|
369
|
+
exact: $props.exact,
|
|
370
|
+
level: $props.level + 1,
|
|
371
|
+
pt: _ctx.pt,
|
|
372
|
+
visible: $options.isItemActive(processedItem) && $options.isItemGroup(processedItem),
|
|
373
|
+
onItemClick: _cache[0] || (_cache[0] = function ($event) {
|
|
374
|
+
return _ctx.$emit('item-click', $event);
|
|
375
|
+
}),
|
|
376
|
+
onItemMouseenter: _cache[1] || (_cache[1] = function ($event) {
|
|
377
|
+
return _ctx.$emit('item-mouseenter', $event);
|
|
378
|
+
})
|
|
379
|
+
}, _ctx.ptm('submenu')), null, 16, ["id", "class", "menuId", "focusedItemId", "items", "templates", "activeItemPath", "exact", "level", "pt", "visible"])) : vue.createCommentVNode("", true)], 16, _hoisted_2)) : vue.createCommentVNode("", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
380
|
+
key: 1,
|
|
381
|
+
id: $options.getItemId(processedItem),
|
|
382
|
+
style: $options.getItemProp(processedItem, 'style'),
|
|
383
|
+
"class": [_ctx.cx('separator'), $options.getItemProp(processedItem, 'class')],
|
|
384
|
+
role: "separator"
|
|
385
|
+
}, _ctx.ptm('separator')), null, 16, _hoisted_6)) : vue.createCommentVNode("", true)], 64);
|
|
386
|
+
}), 128))], 16, _hoisted_1)) : vue.createCommentVNode("", true)];
|
|
387
|
+
}),
|
|
319
388
|
_: 1
|
|
320
|
-
}, 8, ["onEnter"])
|
|
389
|
+
}, 8, ["onEnter"]);
|
|
321
390
|
}
|
|
322
391
|
|
|
323
392
|
script$1.render = render$1;
|
|
324
393
|
|
|
325
394
|
var script = {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
395
|
+
name: 'ContextMenu',
|
|
396
|
+
"extends": script$2,
|
|
397
|
+
inheritAttrs: false,
|
|
398
|
+
emits: ['focus', 'blur', 'show', 'hide'],
|
|
399
|
+
target: null,
|
|
400
|
+
outsideClickListener: null,
|
|
401
|
+
resizeListener: null,
|
|
402
|
+
documentContextMenuListener: null,
|
|
403
|
+
pageX: null,
|
|
404
|
+
pageY: null,
|
|
405
|
+
container: null,
|
|
406
|
+
list: null,
|
|
407
|
+
data: function data() {
|
|
408
|
+
return {
|
|
409
|
+
id: this.$attrs.id,
|
|
410
|
+
focused: false,
|
|
411
|
+
focusedItemInfo: {
|
|
412
|
+
index: -1,
|
|
413
|
+
level: 0,
|
|
414
|
+
parentKey: ''
|
|
415
|
+
},
|
|
416
|
+
activeItemPath: [],
|
|
417
|
+
visible: false,
|
|
418
|
+
submenuVisible: false
|
|
419
|
+
};
|
|
420
|
+
},
|
|
421
|
+
watch: {
|
|
422
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
423
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
424
|
+
},
|
|
425
|
+
activeItemPath: function activeItemPath(newPath) {
|
|
426
|
+
if (utils.ObjectUtils.isNotEmpty(newPath)) {
|
|
427
|
+
this.bindOutsideClickListener();
|
|
428
|
+
this.bindResizeListener();
|
|
429
|
+
this.bindDocumentContextMenuListener();
|
|
430
|
+
} else if (!this.visible) {
|
|
431
|
+
this.unbindOutsideClickListener();
|
|
432
|
+
this.unbindResizeListener();
|
|
433
|
+
this.unbindDocumentContextMenuListener();
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
beforeUnmount: function beforeUnmount() {
|
|
438
|
+
this.unbindResizeListener();
|
|
439
|
+
this.unbindOutsideClickListener();
|
|
440
|
+
this.unbindDocumentContextMenuListener();
|
|
441
|
+
if (this.container && this.autoZIndex) {
|
|
442
|
+
utils.ZIndexUtils.clear(this.container);
|
|
443
|
+
}
|
|
444
|
+
this.target = null;
|
|
445
|
+
this.container = null;
|
|
446
|
+
},
|
|
447
|
+
mounted: function mounted() {
|
|
448
|
+
this.id = this.id || utils.UniqueComponentId();
|
|
449
|
+
if (this.global) {
|
|
450
|
+
this.bindDocumentContextMenuListener();
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
methods: {
|
|
454
|
+
getItemProp: function getItemProp(item, name) {
|
|
455
|
+
return item ? utils.ObjectUtils.getItemValue(item[name]) : undefined;
|
|
456
|
+
},
|
|
457
|
+
getItemLabel: function getItemLabel(item) {
|
|
458
|
+
return this.getItemProp(item, 'label');
|
|
459
|
+
},
|
|
460
|
+
isItemDisabled: function isItemDisabled(item) {
|
|
461
|
+
return this.getItemProp(item, 'disabled');
|
|
462
|
+
},
|
|
463
|
+
isItemGroup: function isItemGroup(item) {
|
|
464
|
+
return utils.ObjectUtils.isNotEmpty(this.getItemProp(item, 'items'));
|
|
465
|
+
},
|
|
466
|
+
isItemSeparator: function isItemSeparator(item) {
|
|
467
|
+
return this.getItemProp(item, 'separator');
|
|
468
|
+
},
|
|
469
|
+
getProccessedItemLabel: function getProccessedItemLabel(processedItem) {
|
|
470
|
+
return processedItem ? this.getItemLabel(processedItem.item) : undefined;
|
|
471
|
+
},
|
|
472
|
+
isProccessedItemGroup: function isProccessedItemGroup(processedItem) {
|
|
473
|
+
return processedItem && utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
474
|
+
},
|
|
475
|
+
toggle: function toggle(event) {
|
|
476
|
+
this.visible ? this.hide() : this.show(event);
|
|
477
|
+
},
|
|
478
|
+
show: function show(event) {
|
|
479
|
+
this.activeItemPath = [];
|
|
480
|
+
this.focusedItemInfo = {
|
|
481
|
+
index: -1,
|
|
482
|
+
level: 0,
|
|
483
|
+
parentKey: ''
|
|
484
|
+
};
|
|
485
|
+
utils.DomHandler.focus(this.list);
|
|
486
|
+
this.pageX = event.pageX;
|
|
487
|
+
this.pageY = event.pageY;
|
|
488
|
+
this.visible ? this.position() : this.visible = true;
|
|
489
|
+
event.stopPropagation();
|
|
490
|
+
event.preventDefault();
|
|
491
|
+
},
|
|
492
|
+
hide: function hide() {
|
|
493
|
+
this.visible = false;
|
|
494
|
+
this.activeItemPath = [];
|
|
495
|
+
this.focusedItemInfo = {
|
|
496
|
+
index: -1,
|
|
497
|
+
level: 0,
|
|
498
|
+
parentKey: ''
|
|
499
|
+
};
|
|
500
|
+
},
|
|
501
|
+
onFocus: function onFocus(event) {
|
|
502
|
+
this.focused = true;
|
|
503
|
+
this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : {
|
|
504
|
+
index: -1,
|
|
505
|
+
level: 0,
|
|
506
|
+
parentKey: ''
|
|
507
|
+
};
|
|
508
|
+
this.$emit('focus', event);
|
|
367
509
|
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
510
|
+
onBlur: function onBlur(event) {
|
|
511
|
+
this.focused = false;
|
|
512
|
+
this.focusedItemInfo = {
|
|
513
|
+
index: -1,
|
|
514
|
+
level: 0,
|
|
515
|
+
parentKey: ''
|
|
516
|
+
};
|
|
517
|
+
this.searchValue = '';
|
|
518
|
+
this.$emit('blur', event);
|
|
519
|
+
},
|
|
520
|
+
onKeyDown: function onKeyDown(event) {
|
|
521
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
522
|
+
switch (event.code) {
|
|
523
|
+
case 'ArrowDown':
|
|
524
|
+
this.onArrowDownKey(event);
|
|
525
|
+
break;
|
|
526
|
+
case 'ArrowUp':
|
|
527
|
+
this.onArrowUpKey(event);
|
|
528
|
+
break;
|
|
529
|
+
case 'ArrowLeft':
|
|
530
|
+
this.onArrowLeftKey(event);
|
|
531
|
+
break;
|
|
532
|
+
case 'ArrowRight':
|
|
533
|
+
this.onArrowRightKey(event);
|
|
534
|
+
break;
|
|
535
|
+
case 'Home':
|
|
536
|
+
this.onHomeKey(event);
|
|
537
|
+
break;
|
|
538
|
+
case 'End':
|
|
539
|
+
this.onEndKey(event);
|
|
540
|
+
break;
|
|
541
|
+
case 'Space':
|
|
542
|
+
this.onSpaceKey(event);
|
|
543
|
+
break;
|
|
544
|
+
case 'Enter':
|
|
545
|
+
this.onEnterKey(event);
|
|
546
|
+
break;
|
|
547
|
+
case 'Escape':
|
|
548
|
+
this.onEscapeKey(event);
|
|
549
|
+
break;
|
|
550
|
+
case 'Tab':
|
|
551
|
+
this.onTabKey(event);
|
|
552
|
+
break;
|
|
553
|
+
case 'PageDown':
|
|
554
|
+
case 'PageUp':
|
|
555
|
+
case 'Backspace':
|
|
556
|
+
case 'ShiftLeft':
|
|
557
|
+
case 'ShiftRight':
|
|
558
|
+
//NOOP
|
|
559
|
+
break;
|
|
560
|
+
default:
|
|
561
|
+
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
562
|
+
this.searchItems(event, event.key);
|
|
563
|
+
}
|
|
564
|
+
break;
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
onItemChange: function onItemChange(event) {
|
|
568
|
+
var processedItem = event.processedItem,
|
|
569
|
+
isFocus = event.isFocus;
|
|
570
|
+
if (utils.ObjectUtils.isEmpty(processedItem)) return;
|
|
571
|
+
var index = processedItem.index,
|
|
572
|
+
key = processedItem.key,
|
|
573
|
+
level = processedItem.level,
|
|
574
|
+
parentKey = processedItem.parentKey,
|
|
575
|
+
items = processedItem.items;
|
|
576
|
+
var grouped = utils.ObjectUtils.isNotEmpty(items);
|
|
577
|
+
var activeItemPath = this.activeItemPath.filter(function (p) {
|
|
578
|
+
return p.parentKey !== parentKey && p.parentKey !== key;
|
|
579
|
+
});
|
|
580
|
+
if (grouped) {
|
|
581
|
+
activeItemPath.push(processedItem);
|
|
582
|
+
this.submenuVisible = true;
|
|
583
|
+
}
|
|
584
|
+
this.focusedItemInfo = {
|
|
585
|
+
index: index,
|
|
586
|
+
level: level,
|
|
587
|
+
parentKey: parentKey
|
|
588
|
+
};
|
|
589
|
+
this.activeItemPath = activeItemPath;
|
|
590
|
+
isFocus && utils.DomHandler.focus(this.list);
|
|
591
|
+
},
|
|
592
|
+
onItemClick: function onItemClick(event) {
|
|
593
|
+
var processedItem = event.processedItem;
|
|
594
|
+
var grouped = this.isProccessedItemGroup(processedItem);
|
|
595
|
+
var selected = this.isSelected(processedItem);
|
|
596
|
+
if (selected) {
|
|
597
|
+
var index = processedItem.index,
|
|
598
|
+
key = processedItem.key,
|
|
599
|
+
level = processedItem.level,
|
|
600
|
+
parentKey = processedItem.parentKey;
|
|
601
|
+
this.activeItemPath = this.activeItemPath.filter(function (p) {
|
|
602
|
+
return key !== p.key && key.startsWith(p.key);
|
|
603
|
+
});
|
|
604
|
+
this.focusedItemInfo = {
|
|
605
|
+
index: index,
|
|
606
|
+
level: level,
|
|
607
|
+
parentKey: parentKey
|
|
384
608
|
};
|
|
609
|
+
utils.DomHandler.focus(this.list);
|
|
610
|
+
} else {
|
|
611
|
+
grouped ? this.onItemChange(event) : this.hide();
|
|
612
|
+
}
|
|
385
613
|
},
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
this.id = newValue || utils.UniqueComponentId();
|
|
389
|
-
},
|
|
390
|
-
activeItemPath(newPath) {
|
|
391
|
-
if (utils.ObjectUtils.isNotEmpty(newPath)) {
|
|
392
|
-
this.bindOutsideClickListener();
|
|
393
|
-
this.bindResizeListener();
|
|
394
|
-
this.bindDocumentContextMenuListener();
|
|
395
|
-
} else if (!this.visible) {
|
|
396
|
-
this.unbindOutsideClickListener();
|
|
397
|
-
this.unbindResizeListener();
|
|
398
|
-
this.unbindDocumentContextMenuListener();
|
|
399
|
-
}
|
|
400
|
-
}
|
|
614
|
+
onItemMouseEnter: function onItemMouseEnter(event) {
|
|
615
|
+
this.onItemChange(event);
|
|
401
616
|
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
if (this.container && this.autoZIndex) {
|
|
408
|
-
utils.ZIndexUtils.clear(this.container);
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
this.target = null;
|
|
412
|
-
this.container = null;
|
|
617
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
618
|
+
var itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();
|
|
619
|
+
this.changeFocusedItemIndex(event, itemIndex);
|
|
620
|
+
event.preventDefault();
|
|
413
621
|
},
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
622
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
623
|
+
if (event.altKey) {
|
|
624
|
+
if (this.focusedItemInfo.index !== -1) {
|
|
625
|
+
var processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
626
|
+
var grouped = this.isProccessedItemGroup(processedItem);
|
|
627
|
+
!grouped && this.onItemChange({
|
|
628
|
+
originalEvent: event,
|
|
629
|
+
processedItem: processedItem
|
|
630
|
+
});
|
|
419
631
|
}
|
|
632
|
+
this.popup && this.hide();
|
|
633
|
+
event.preventDefault();
|
|
634
|
+
} else {
|
|
635
|
+
var itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();
|
|
636
|
+
this.changeFocusedItemIndex(event, itemIndex);
|
|
637
|
+
event.preventDefault();
|
|
638
|
+
}
|
|
420
639
|
},
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
isProccessedItemGroup(processedItem) {
|
|
441
|
-
return processedItem && utils.ObjectUtils.isNotEmpty(processedItem.items);
|
|
442
|
-
},
|
|
443
|
-
toggle(event) {
|
|
444
|
-
this.visible ? this.hide() : this.show(event);
|
|
445
|
-
},
|
|
446
|
-
show(event) {
|
|
447
|
-
this.activeItemPath = [];
|
|
448
|
-
this.focusedItemInfo = { index: -1, level: 0, parentKey: '' };
|
|
449
|
-
utils.DomHandler.focus(this.list);
|
|
450
|
-
|
|
451
|
-
this.pageX = event.pageX;
|
|
452
|
-
this.pageY = event.pageY;
|
|
453
|
-
this.visible ? this.position() : (this.visible = true);
|
|
454
|
-
|
|
455
|
-
event.stopPropagation();
|
|
456
|
-
event.preventDefault();
|
|
457
|
-
},
|
|
458
|
-
hide() {
|
|
459
|
-
this.visible = false;
|
|
460
|
-
this.activeItemPath = [];
|
|
461
|
-
this.focusedItemInfo = { index: -1, level: 0, parentKey: '' };
|
|
462
|
-
},
|
|
463
|
-
onFocus(event) {
|
|
464
|
-
this.focused = true;
|
|
465
|
-
this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : { index: -1, level: 0, parentKey: '' };
|
|
466
|
-
this.$emit('focus', event);
|
|
467
|
-
},
|
|
468
|
-
onBlur(event) {
|
|
469
|
-
this.focused = false;
|
|
470
|
-
this.focusedItemInfo = { index: -1, level: 0, parentKey: '' };
|
|
471
|
-
this.searchValue = '';
|
|
472
|
-
this.$emit('blur', event);
|
|
473
|
-
},
|
|
474
|
-
onKeyDown(event) {
|
|
475
|
-
const metaKey = event.metaKey || event.ctrlKey;
|
|
476
|
-
|
|
477
|
-
switch (event.code) {
|
|
478
|
-
case 'ArrowDown':
|
|
479
|
-
this.onArrowDownKey(event);
|
|
480
|
-
break;
|
|
481
|
-
|
|
482
|
-
case 'ArrowUp':
|
|
483
|
-
this.onArrowUpKey(event);
|
|
484
|
-
break;
|
|
485
|
-
|
|
486
|
-
case 'ArrowLeft':
|
|
487
|
-
this.onArrowLeftKey(event);
|
|
488
|
-
break;
|
|
489
|
-
|
|
490
|
-
case 'ArrowRight':
|
|
491
|
-
this.onArrowRightKey(event);
|
|
492
|
-
break;
|
|
493
|
-
|
|
494
|
-
case 'Home':
|
|
495
|
-
this.onHomeKey(event);
|
|
496
|
-
break;
|
|
497
|
-
|
|
498
|
-
case 'End':
|
|
499
|
-
this.onEndKey(event);
|
|
500
|
-
break;
|
|
501
|
-
|
|
502
|
-
case 'Space':
|
|
503
|
-
this.onSpaceKey(event);
|
|
504
|
-
break;
|
|
505
|
-
|
|
506
|
-
case 'Enter':
|
|
507
|
-
this.onEnterKey(event);
|
|
508
|
-
break;
|
|
509
|
-
|
|
510
|
-
case 'Escape':
|
|
511
|
-
this.onEscapeKey(event);
|
|
512
|
-
break;
|
|
513
|
-
|
|
514
|
-
case 'Tab':
|
|
515
|
-
this.onTabKey(event);
|
|
516
|
-
break;
|
|
517
|
-
|
|
518
|
-
case 'PageDown':
|
|
519
|
-
case 'PageUp':
|
|
520
|
-
case 'Backspace':
|
|
521
|
-
case 'ShiftLeft':
|
|
522
|
-
case 'ShiftRight':
|
|
523
|
-
//NOOP
|
|
524
|
-
break;
|
|
525
|
-
|
|
526
|
-
default:
|
|
527
|
-
if (!metaKey && utils.ObjectUtils.isPrintableCharacter(event.key)) {
|
|
528
|
-
this.searchItems(event, event.key);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
break;
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
onItemChange(event) {
|
|
535
|
-
const { processedItem, isFocus } = event;
|
|
536
|
-
|
|
537
|
-
if (utils.ObjectUtils.isEmpty(processedItem)) return;
|
|
538
|
-
|
|
539
|
-
const { index, key, level, parentKey, items } = processedItem;
|
|
540
|
-
const grouped = utils.ObjectUtils.isNotEmpty(items);
|
|
541
|
-
const activeItemPath = this.activeItemPath.filter((p) => p.parentKey !== parentKey && p.parentKey !== key);
|
|
542
|
-
|
|
543
|
-
if (grouped) {
|
|
544
|
-
activeItemPath.push(processedItem);
|
|
545
|
-
this.submenuVisible = true;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
this.focusedItemInfo = { index, level, parentKey };
|
|
549
|
-
this.activeItemPath = activeItemPath;
|
|
550
|
-
|
|
551
|
-
isFocus && utils.DomHandler.focus(this.list);
|
|
552
|
-
},
|
|
553
|
-
onItemClick(event) {
|
|
554
|
-
const { processedItem } = event;
|
|
555
|
-
const grouped = this.isProccessedItemGroup(processedItem);
|
|
556
|
-
const selected = this.isSelected(processedItem);
|
|
557
|
-
|
|
558
|
-
if (selected) {
|
|
559
|
-
const { index, key, level, parentKey } = processedItem;
|
|
560
|
-
|
|
561
|
-
this.activeItemPath = this.activeItemPath.filter((p) => key !== p.key && key.startsWith(p.key));
|
|
562
|
-
this.focusedItemInfo = { index, level, parentKey };
|
|
563
|
-
|
|
564
|
-
utils.DomHandler.focus(this.list);
|
|
565
|
-
} else {
|
|
566
|
-
grouped ? this.onItemChange(event) : this.hide();
|
|
567
|
-
}
|
|
568
|
-
},
|
|
569
|
-
onItemMouseEnter(event) {
|
|
570
|
-
this.onItemChange(event);
|
|
571
|
-
},
|
|
572
|
-
onArrowDownKey(event) {
|
|
573
|
-
const itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();
|
|
574
|
-
|
|
575
|
-
this.changeFocusedItemIndex(event, itemIndex);
|
|
576
|
-
event.preventDefault();
|
|
577
|
-
},
|
|
578
|
-
onArrowUpKey(event) {
|
|
579
|
-
if (event.altKey) {
|
|
580
|
-
if (this.focusedItemInfo.index !== -1) {
|
|
581
|
-
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
582
|
-
const grouped = this.isProccessedItemGroup(processedItem);
|
|
583
|
-
|
|
584
|
-
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
this.popup && this.hide();
|
|
588
|
-
event.preventDefault();
|
|
589
|
-
} else {
|
|
590
|
-
const itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();
|
|
591
|
-
|
|
592
|
-
this.changeFocusedItemIndex(event, itemIndex);
|
|
593
|
-
event.preventDefault();
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
onArrowLeftKey(event) {
|
|
597
|
-
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
598
|
-
const parentItem = this.activeItemPath.find((p) => p.key === processedItem.parentKey);
|
|
599
|
-
const root = utils.ObjectUtils.isEmpty(processedItem.parent);
|
|
600
|
-
|
|
601
|
-
if (!root) {
|
|
602
|
-
this.focusedItemInfo = { index: -1, parentKey: parentItem ? parentItem.parentKey : '' };
|
|
603
|
-
this.searchValue = '';
|
|
604
|
-
this.onArrowDownKey(event);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
this.activeItemPath = this.activeItemPath.filter((p) => p.parentKey !== this.focusedItemInfo.parentKey);
|
|
608
|
-
|
|
609
|
-
event.preventDefault();
|
|
610
|
-
},
|
|
611
|
-
onArrowRightKey(event) {
|
|
612
|
-
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
613
|
-
const grouped = this.isProccessedItemGroup(processedItem);
|
|
614
|
-
|
|
615
|
-
if (grouped) {
|
|
616
|
-
this.onItemChange({ originalEvent: event, processedItem });
|
|
617
|
-
this.focusedItemInfo = { index: -1, parentKey: processedItem.key };
|
|
618
|
-
this.searchValue = '';
|
|
619
|
-
this.onArrowDownKey(event);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
event.preventDefault();
|
|
623
|
-
},
|
|
624
|
-
onHomeKey(event) {
|
|
625
|
-
this.changeFocusedItemIndex(event, this.findFirstItemIndex());
|
|
626
|
-
event.preventDefault();
|
|
627
|
-
},
|
|
628
|
-
onEndKey(event) {
|
|
629
|
-
this.changeFocusedItemIndex(event, this.findLastItemIndex());
|
|
630
|
-
event.preventDefault();
|
|
631
|
-
},
|
|
632
|
-
onEnterKey(event) {
|
|
633
|
-
if (this.focusedItemInfo.index !== -1) {
|
|
634
|
-
const element = utils.DomHandler.findSingle(this.list, `li[id="${`${this.focusedItemId}`}"]`);
|
|
635
|
-
const anchorElement = element && utils.DomHandler.findSingle(element, '.p-menuitem-link');
|
|
636
|
-
|
|
637
|
-
anchorElement ? anchorElement.click() : element && element.click();
|
|
638
|
-
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
639
|
-
const grouped = this.isProccessedItemGroup(processedItem);
|
|
640
|
-
|
|
641
|
-
!grouped && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
event.preventDefault();
|
|
645
|
-
},
|
|
646
|
-
onSpaceKey(event) {
|
|
647
|
-
this.onEnterKey(event);
|
|
648
|
-
},
|
|
649
|
-
onEscapeKey(event) {
|
|
650
|
-
this.hide();
|
|
651
|
-
!this.popup && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());
|
|
652
|
-
|
|
653
|
-
event.preventDefault();
|
|
654
|
-
},
|
|
655
|
-
onTabKey(event) {
|
|
656
|
-
if (this.focusedItemInfo.index !== -1) {
|
|
657
|
-
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
658
|
-
const grouped = this.isProccessedItemGroup(processedItem);
|
|
659
|
-
|
|
660
|
-
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
this.hide();
|
|
664
|
-
},
|
|
665
|
-
onEnter(el) {
|
|
666
|
-
this.position();
|
|
667
|
-
|
|
668
|
-
if (this.autoZIndex) {
|
|
669
|
-
utils.ZIndexUtils.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);
|
|
670
|
-
}
|
|
671
|
-
},
|
|
672
|
-
onAfterEnter() {
|
|
673
|
-
this.bindOutsideClickListener();
|
|
674
|
-
this.bindResizeListener();
|
|
675
|
-
this.bindDocumentContextMenuListener();
|
|
676
|
-
|
|
677
|
-
this.$emit('show');
|
|
678
|
-
utils.DomHandler.focus(this.list);
|
|
679
|
-
},
|
|
680
|
-
onLeave() {
|
|
681
|
-
this.$emit('hide');
|
|
682
|
-
this.container = null;
|
|
683
|
-
},
|
|
684
|
-
onAfterLeave(el) {
|
|
685
|
-
if (this.autoZIndex) {
|
|
686
|
-
utils.ZIndexUtils.clear(el);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
this.unbindOutsideClickListener();
|
|
690
|
-
this.unbindResizeListener();
|
|
691
|
-
this.unbindDocumentContextMenuListener();
|
|
692
|
-
},
|
|
693
|
-
position() {
|
|
694
|
-
let left = this.pageX + 1;
|
|
695
|
-
let top = this.pageY + 1;
|
|
696
|
-
let width = this.container.offsetParent ? this.container.offsetWidth : utils.DomHandler.getHiddenElementOuterWidth(this.container);
|
|
697
|
-
let height = this.container.offsetParent ? this.container.offsetHeight : utils.DomHandler.getHiddenElementOuterHeight(this.container);
|
|
698
|
-
let viewport = utils.DomHandler.getViewport();
|
|
699
|
-
|
|
700
|
-
//flip
|
|
701
|
-
if (left + width - document.body.scrollLeft > viewport.width) {
|
|
702
|
-
left -= width;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
//flip
|
|
706
|
-
if (top + height - document.body.scrollTop > viewport.height) {
|
|
707
|
-
top -= height;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
//fit
|
|
711
|
-
if (left < document.body.scrollLeft) {
|
|
712
|
-
left = document.body.scrollLeft;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
//fit
|
|
716
|
-
if (top < document.body.scrollTop) {
|
|
717
|
-
top = document.body.scrollTop;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
this.container.style.left = left + 'px';
|
|
721
|
-
this.container.style.top = top + 'px';
|
|
722
|
-
},
|
|
723
|
-
bindOutsideClickListener() {
|
|
724
|
-
if (!this.outsideClickListener) {
|
|
725
|
-
this.outsideClickListener = (event) => {
|
|
726
|
-
const isOutsideContainer = this.container && !this.container.contains(event.target);
|
|
727
|
-
const isOutsideTarget = this.visible ? !(this.target && (this.target === event.target || this.target.contains(event.target))) : true;
|
|
728
|
-
|
|
729
|
-
if (isOutsideContainer && isOutsideTarget) {
|
|
730
|
-
this.hide();
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
|
|
734
|
-
document.addEventListener('click', this.outsideClickListener);
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
unbindOutsideClickListener() {
|
|
738
|
-
if (this.outsideClickListener) {
|
|
739
|
-
document.removeEventListener('click', this.outsideClickListener);
|
|
740
|
-
this.outsideClickListener = null;
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
bindResizeListener() {
|
|
744
|
-
if (!this.resizeListener) {
|
|
745
|
-
this.resizeListener = () => {
|
|
746
|
-
if (this.visible && !utils.DomHandler.isTouchDevice()) {
|
|
747
|
-
this.hide();
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
window.addEventListener('resize', this.resizeListener);
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
unbindResizeListener() {
|
|
755
|
-
if (this.resizeListener) {
|
|
756
|
-
window.removeEventListener('resize', this.resizeListener);
|
|
757
|
-
this.resizeListener = null;
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
bindDocumentContextMenuListener() {
|
|
761
|
-
if (!this.documentContextMenuListener) {
|
|
762
|
-
this.documentContextMenuListener = (event) => {
|
|
763
|
-
event.button !== 2 ? this.show(event) : this.hide();
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
document.addEventListener('contextmenu', this.documentContextMenuListener);
|
|
767
|
-
}
|
|
768
|
-
},
|
|
769
|
-
unbindDocumentContextMenuListener() {
|
|
770
|
-
if (this.documentContextMenuListener) {
|
|
771
|
-
document.removeEventListener('contextmenu', this.documentContextMenuListener);
|
|
772
|
-
this.documentContextMenuListener = null;
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
isItemMatched(processedItem) {
|
|
776
|
-
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
|
|
777
|
-
},
|
|
778
|
-
isValidItem(processedItem) {
|
|
779
|
-
return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item);
|
|
780
|
-
},
|
|
781
|
-
isValidSelectedItem(processedItem) {
|
|
782
|
-
return this.isValidItem(processedItem) && this.isSelected(processedItem);
|
|
783
|
-
},
|
|
784
|
-
isSelected(processedItem) {
|
|
785
|
-
return this.activeItemPath.some((p) => p.key === processedItem.key);
|
|
786
|
-
},
|
|
787
|
-
findFirstItemIndex() {
|
|
788
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
|
|
789
|
-
},
|
|
790
|
-
findLastItemIndex() {
|
|
791
|
-
return utils.ObjectUtils.findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
|
|
792
|
-
},
|
|
793
|
-
findNextItemIndex(index) {
|
|
794
|
-
const matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex((processedItem) => this.isValidItem(processedItem)) : -1;
|
|
795
|
-
|
|
796
|
-
return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
|
|
797
|
-
},
|
|
798
|
-
findPrevItemIndex(index) {
|
|
799
|
-
const matchedItemIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
800
|
-
|
|
801
|
-
return matchedItemIndex > -1 ? matchedItemIndex : index;
|
|
802
|
-
},
|
|
803
|
-
findSelectedItemIndex() {
|
|
804
|
-
return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
805
|
-
},
|
|
806
|
-
findFirstFocusedItemIndex() {
|
|
807
|
-
const selectedIndex = this.findSelectedItemIndex();
|
|
808
|
-
|
|
809
|
-
return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
|
|
810
|
-
},
|
|
811
|
-
findLastFocusedItemIndex() {
|
|
812
|
-
const selectedIndex = this.findSelectedItemIndex();
|
|
813
|
-
|
|
814
|
-
return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
|
|
815
|
-
},
|
|
816
|
-
searchItems(event, char) {
|
|
817
|
-
this.searchValue = (this.searchValue || '') + char;
|
|
818
|
-
|
|
819
|
-
let itemIndex = -1;
|
|
820
|
-
let matched = false;
|
|
821
|
-
|
|
822
|
-
if (this.focusedItemInfo.index !== -1) {
|
|
823
|
-
itemIndex = this.visibleItems.slice(this.focusedItemInfo.index).findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
824
|
-
itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo.index).findIndex((processedItem) => this.isItemMatched(processedItem)) : itemIndex + this.focusedItemInfo.index;
|
|
825
|
-
} else {
|
|
826
|
-
itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
if (itemIndex !== -1) {
|
|
830
|
-
matched = true;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
if (itemIndex === -1 && this.focusedItemInfo.index === -1) {
|
|
834
|
-
itemIndex = this.findFirstFocusedItemIndex();
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
if (itemIndex !== -1) {
|
|
838
|
-
this.changeFocusedItemIndex(event, itemIndex);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
if (this.searchTimeout) {
|
|
842
|
-
clearTimeout(this.searchTimeout);
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
this.searchTimeout = setTimeout(() => {
|
|
846
|
-
this.searchValue = '';
|
|
847
|
-
this.searchTimeout = null;
|
|
848
|
-
}, 500);
|
|
849
|
-
|
|
850
|
-
return matched;
|
|
851
|
-
},
|
|
852
|
-
changeFocusedItemIndex(event, index) {
|
|
853
|
-
if (this.focusedItemInfo.index !== index) {
|
|
854
|
-
this.focusedItemInfo.index = index;
|
|
855
|
-
this.scrollInView();
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
scrollInView(index = -1) {
|
|
859
|
-
const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
|
|
860
|
-
const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
|
|
861
|
-
|
|
862
|
-
if (element) {
|
|
863
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
864
|
-
}
|
|
865
|
-
},
|
|
866
|
-
createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
|
|
867
|
-
const processedItems = [];
|
|
868
|
-
|
|
869
|
-
items &&
|
|
870
|
-
items.forEach((item, index) => {
|
|
871
|
-
const key = (parentKey !== '' ? parentKey + '_' : '') + index;
|
|
872
|
-
const newItem = {
|
|
873
|
-
item,
|
|
874
|
-
index,
|
|
875
|
-
level,
|
|
876
|
-
key,
|
|
877
|
-
parent,
|
|
878
|
-
parentKey
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
newItem['items'] = this.createProcessedItems(item.items, level + 1, newItem, key);
|
|
882
|
-
processedItems.push(newItem);
|
|
883
|
-
});
|
|
884
|
-
|
|
885
|
-
return processedItems;
|
|
886
|
-
},
|
|
887
|
-
containerRef(el) {
|
|
888
|
-
this.container = el;
|
|
889
|
-
},
|
|
890
|
-
listRef(el) {
|
|
891
|
-
this.list = el ? el.$el : undefined;
|
|
892
|
-
}
|
|
640
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
641
|
+
var _this = this;
|
|
642
|
+
var processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
643
|
+
var parentItem = this.activeItemPath.find(function (p) {
|
|
644
|
+
return p.key === processedItem.parentKey;
|
|
645
|
+
});
|
|
646
|
+
var root = utils.ObjectUtils.isEmpty(processedItem.parent);
|
|
647
|
+
if (!root) {
|
|
648
|
+
this.focusedItemInfo = {
|
|
649
|
+
index: -1,
|
|
650
|
+
parentKey: parentItem ? parentItem.parentKey : ''
|
|
651
|
+
};
|
|
652
|
+
this.searchValue = '';
|
|
653
|
+
this.onArrowDownKey(event);
|
|
654
|
+
}
|
|
655
|
+
this.activeItemPath = this.activeItemPath.filter(function (p) {
|
|
656
|
+
return p.parentKey !== _this.focusedItemInfo.parentKey;
|
|
657
|
+
});
|
|
658
|
+
event.preventDefault();
|
|
893
659
|
},
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
660
|
+
onArrowRightKey: function onArrowRightKey(event) {
|
|
661
|
+
var processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
662
|
+
var grouped = this.isProccessedItemGroup(processedItem);
|
|
663
|
+
if (grouped) {
|
|
664
|
+
this.onItemChange({
|
|
665
|
+
originalEvent: event,
|
|
666
|
+
processedItem: processedItem
|
|
667
|
+
});
|
|
668
|
+
this.focusedItemInfo = {
|
|
669
|
+
index: -1,
|
|
670
|
+
parentKey: processedItem.key
|
|
671
|
+
};
|
|
672
|
+
this.searchValue = '';
|
|
673
|
+
this.onArrowDownKey(event);
|
|
674
|
+
}
|
|
675
|
+
event.preventDefault();
|
|
676
|
+
},
|
|
677
|
+
onHomeKey: function onHomeKey(event) {
|
|
678
|
+
this.changeFocusedItemIndex(event, this.findFirstItemIndex());
|
|
679
|
+
event.preventDefault();
|
|
680
|
+
},
|
|
681
|
+
onEndKey: function onEndKey(event) {
|
|
682
|
+
this.changeFocusedItemIndex(event, this.findLastItemIndex());
|
|
683
|
+
event.preventDefault();
|
|
684
|
+
},
|
|
685
|
+
onEnterKey: function onEnterKey(event) {
|
|
686
|
+
if (this.focusedItemInfo.index !== -1) {
|
|
687
|
+
var element = utils.DomHandler.findSingle(this.list, "li[id=\"".concat("".concat(this.focusedItemId), "\"]"));
|
|
688
|
+
var anchorElement = element && utils.DomHandler.findSingle(element, 'a[data-pc-section="action"]');
|
|
689
|
+
anchorElement ? anchorElement.click() : element && element.click();
|
|
690
|
+
var processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
691
|
+
var grouped = this.isProccessedItemGroup(processedItem);
|
|
692
|
+
!grouped && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());
|
|
693
|
+
}
|
|
694
|
+
event.preventDefault();
|
|
695
|
+
},
|
|
696
|
+
onSpaceKey: function onSpaceKey(event) {
|
|
697
|
+
this.onEnterKey(event);
|
|
698
|
+
},
|
|
699
|
+
onEscapeKey: function onEscapeKey(event) {
|
|
700
|
+
this.hide();
|
|
701
|
+
!this.popup && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());
|
|
702
|
+
event.preventDefault();
|
|
909
703
|
},
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
704
|
+
onTabKey: function onTabKey(event) {
|
|
705
|
+
if (this.focusedItemInfo.index !== -1) {
|
|
706
|
+
var processedItem = this.visibleItems[this.focusedItemInfo.index];
|
|
707
|
+
var grouped = this.isProccessedItemGroup(processedItem);
|
|
708
|
+
!grouped && this.onItemChange({
|
|
709
|
+
originalEvent: event,
|
|
710
|
+
processedItem: processedItem
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
this.hide();
|
|
714
|
+
},
|
|
715
|
+
onEnter: function onEnter(el) {
|
|
716
|
+
utils.DomHandler.addStyles(el, {
|
|
717
|
+
position: 'absolute'
|
|
718
|
+
});
|
|
719
|
+
this.position();
|
|
720
|
+
if (this.autoZIndex) {
|
|
721
|
+
utils.ZIndexUtils.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
onAfterEnter: function onAfterEnter() {
|
|
725
|
+
this.bindOutsideClickListener();
|
|
726
|
+
this.bindResizeListener();
|
|
727
|
+
this.bindDocumentContextMenuListener();
|
|
728
|
+
this.$emit('show');
|
|
729
|
+
utils.DomHandler.focus(this.list);
|
|
730
|
+
},
|
|
731
|
+
onLeave: function onLeave() {
|
|
732
|
+
this.$emit('hide');
|
|
733
|
+
this.container = null;
|
|
734
|
+
},
|
|
735
|
+
onAfterLeave: function onAfterLeave(el) {
|
|
736
|
+
if (this.autoZIndex) {
|
|
737
|
+
utils.ZIndexUtils.clear(el);
|
|
738
|
+
}
|
|
739
|
+
this.unbindOutsideClickListener();
|
|
740
|
+
this.unbindResizeListener();
|
|
741
|
+
this.unbindDocumentContextMenuListener();
|
|
742
|
+
},
|
|
743
|
+
position: function position() {
|
|
744
|
+
var left = this.pageX + 1;
|
|
745
|
+
var top = this.pageY + 1;
|
|
746
|
+
var width = this.container.offsetParent ? this.container.offsetWidth : utils.DomHandler.getHiddenElementOuterWidth(this.container);
|
|
747
|
+
var height = this.container.offsetParent ? this.container.offsetHeight : utils.DomHandler.getHiddenElementOuterHeight(this.container);
|
|
748
|
+
var viewport = utils.DomHandler.getViewport();
|
|
749
|
+
|
|
750
|
+
//flip
|
|
751
|
+
if (left + width - document.body.scrollLeft > viewport.width) {
|
|
752
|
+
left -= width;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
//flip
|
|
756
|
+
if (top + height - document.body.scrollTop > viewport.height) {
|
|
757
|
+
top -= height;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
//fit
|
|
761
|
+
if (left < document.body.scrollLeft) {
|
|
762
|
+
left = document.body.scrollLeft;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
//fit
|
|
766
|
+
if (top < document.body.scrollTop) {
|
|
767
|
+
top = document.body.scrollTop;
|
|
768
|
+
}
|
|
769
|
+
this.container.style.left = left + 'px';
|
|
770
|
+
this.container.style.top = top + 'px';
|
|
771
|
+
},
|
|
772
|
+
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
773
|
+
var _this2 = this;
|
|
774
|
+
if (!this.outsideClickListener) {
|
|
775
|
+
this.outsideClickListener = function (event) {
|
|
776
|
+
var isOutsideContainer = _this2.container && !_this2.container.contains(event.target);
|
|
777
|
+
var isOutsideTarget = _this2.visible ? !(_this2.target && (_this2.target === event.target || _this2.target.contains(event.target))) : true;
|
|
778
|
+
if (isOutsideContainer && isOutsideTarget) {
|
|
779
|
+
_this2.hide();
|
|
780
|
+
}
|
|
781
|
+
};
|
|
782
|
+
document.addEventListener('click', this.outsideClickListener);
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
786
|
+
if (this.outsideClickListener) {
|
|
787
|
+
document.removeEventListener('click', this.outsideClickListener);
|
|
788
|
+
this.outsideClickListener = null;
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
bindResizeListener: function bindResizeListener() {
|
|
792
|
+
var _this3 = this;
|
|
793
|
+
if (!this.resizeListener) {
|
|
794
|
+
this.resizeListener = function () {
|
|
795
|
+
if (_this3.visible && !utils.DomHandler.isTouchDevice()) {
|
|
796
|
+
_this3.hide();
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
window.addEventListener('resize', this.resizeListener);
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
unbindResizeListener: function unbindResizeListener() {
|
|
803
|
+
if (this.resizeListener) {
|
|
804
|
+
window.removeEventListener('resize', this.resizeListener);
|
|
805
|
+
this.resizeListener = null;
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
bindDocumentContextMenuListener: function bindDocumentContextMenuListener() {
|
|
809
|
+
var _this4 = this;
|
|
810
|
+
if (!this.documentContextMenuListener) {
|
|
811
|
+
this.documentContextMenuListener = function (event) {
|
|
812
|
+
event.button !== 2 ? _this4.show(event) : _this4.hide();
|
|
813
|
+
};
|
|
814
|
+
document.addEventListener('contextmenu', this.documentContextMenuListener);
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
unbindDocumentContextMenuListener: function unbindDocumentContextMenuListener() {
|
|
818
|
+
if (this.documentContextMenuListener) {
|
|
819
|
+
document.removeEventListener('contextmenu', this.documentContextMenuListener);
|
|
820
|
+
this.documentContextMenuListener = null;
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
isItemMatched: function isItemMatched(processedItem) {
|
|
824
|
+
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
|
|
825
|
+
},
|
|
826
|
+
isValidItem: function isValidItem(processedItem) {
|
|
827
|
+
return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item);
|
|
828
|
+
},
|
|
829
|
+
isValidSelectedItem: function isValidSelectedItem(processedItem) {
|
|
830
|
+
return this.isValidItem(processedItem) && this.isSelected(processedItem);
|
|
831
|
+
},
|
|
832
|
+
isSelected: function isSelected(processedItem) {
|
|
833
|
+
return this.activeItemPath.some(function (p) {
|
|
834
|
+
return p.key === processedItem.key;
|
|
835
|
+
});
|
|
836
|
+
},
|
|
837
|
+
findFirstItemIndex: function findFirstItemIndex() {
|
|
838
|
+
var _this5 = this;
|
|
839
|
+
return this.visibleItems.findIndex(function (processedItem) {
|
|
840
|
+
return _this5.isValidItem(processedItem);
|
|
841
|
+
});
|
|
842
|
+
},
|
|
843
|
+
findLastItemIndex: function findLastItemIndex() {
|
|
844
|
+
var _this6 = this;
|
|
845
|
+
return utils.ObjectUtils.findLastIndex(this.visibleItems, function (processedItem) {
|
|
846
|
+
return _this6.isValidItem(processedItem);
|
|
847
|
+
});
|
|
848
|
+
},
|
|
849
|
+
findNextItemIndex: function findNextItemIndex(index) {
|
|
850
|
+
var _this7 = this;
|
|
851
|
+
var matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex(function (processedItem) {
|
|
852
|
+
return _this7.isValidItem(processedItem);
|
|
853
|
+
}) : -1;
|
|
854
|
+
return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
|
|
855
|
+
},
|
|
856
|
+
findPrevItemIndex: function findPrevItemIndex(index) {
|
|
857
|
+
var _this8 = this;
|
|
858
|
+
var matchedItemIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleItems.slice(0, index), function (processedItem) {
|
|
859
|
+
return _this8.isValidItem(processedItem);
|
|
860
|
+
}) : -1;
|
|
861
|
+
return matchedItemIndex > -1 ? matchedItemIndex : index;
|
|
862
|
+
},
|
|
863
|
+
findSelectedItemIndex: function findSelectedItemIndex() {
|
|
864
|
+
var _this9 = this;
|
|
865
|
+
return this.visibleItems.findIndex(function (processedItem) {
|
|
866
|
+
return _this9.isValidSelectedItem(processedItem);
|
|
867
|
+
});
|
|
868
|
+
},
|
|
869
|
+
findFirstFocusedItemIndex: function findFirstFocusedItemIndex() {
|
|
870
|
+
var selectedIndex = this.findSelectedItemIndex();
|
|
871
|
+
return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
|
|
872
|
+
},
|
|
873
|
+
findLastFocusedItemIndex: function findLastFocusedItemIndex() {
|
|
874
|
+
var selectedIndex = this.findSelectedItemIndex();
|
|
875
|
+
return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
|
|
876
|
+
},
|
|
877
|
+
searchItems: function searchItems(event, _char) {
|
|
878
|
+
var _this10 = this;
|
|
879
|
+
this.searchValue = (this.searchValue || '') + _char;
|
|
880
|
+
var itemIndex = -1;
|
|
881
|
+
var matched = false;
|
|
882
|
+
if (this.focusedItemInfo.index !== -1) {
|
|
883
|
+
itemIndex = this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function (processedItem) {
|
|
884
|
+
return _this10.isItemMatched(processedItem);
|
|
885
|
+
});
|
|
886
|
+
itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo.index).findIndex(function (processedItem) {
|
|
887
|
+
return _this10.isItemMatched(processedItem);
|
|
888
|
+
}) : itemIndex + this.focusedItemInfo.index;
|
|
889
|
+
} else {
|
|
890
|
+
itemIndex = this.visibleItems.findIndex(function (processedItem) {
|
|
891
|
+
return _this10.isItemMatched(processedItem);
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
if (itemIndex !== -1) {
|
|
895
|
+
matched = true;
|
|
896
|
+
}
|
|
897
|
+
if (itemIndex === -1 && this.focusedItemInfo.index === -1) {
|
|
898
|
+
itemIndex = this.findFirstFocusedItemIndex();
|
|
899
|
+
}
|
|
900
|
+
if (itemIndex !== -1) {
|
|
901
|
+
this.changeFocusedItemIndex(event, itemIndex);
|
|
902
|
+
}
|
|
903
|
+
if (this.searchTimeout) {
|
|
904
|
+
clearTimeout(this.searchTimeout);
|
|
905
|
+
}
|
|
906
|
+
this.searchTimeout = setTimeout(function () {
|
|
907
|
+
_this10.searchValue = '';
|
|
908
|
+
_this10.searchTimeout = null;
|
|
909
|
+
}, 500);
|
|
910
|
+
return matched;
|
|
911
|
+
},
|
|
912
|
+
changeFocusedItemIndex: function changeFocusedItemIndex(event, index) {
|
|
913
|
+
if (this.focusedItemInfo.index !== index) {
|
|
914
|
+
this.focusedItemInfo.index = index;
|
|
915
|
+
this.scrollInView();
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
scrollInView: function scrollInView() {
|
|
919
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
920
|
+
var id = index !== -1 ? "".concat(this.id, "_").concat(index) : this.focusedItemId;
|
|
921
|
+
var element = utils.DomHandler.findSingle(this.list, "li[id=\"".concat(id, "\"]"));
|
|
922
|
+
if (element) {
|
|
923
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
924
|
+
block: 'nearest',
|
|
925
|
+
inline: 'start'
|
|
926
|
+
});
|
|
927
|
+
}
|
|
928
|
+
},
|
|
929
|
+
createProcessedItems: function createProcessedItems(items) {
|
|
930
|
+
var _this11 = this;
|
|
931
|
+
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
932
|
+
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
933
|
+
var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
934
|
+
var processedItems = [];
|
|
935
|
+
items && items.forEach(function (item, index) {
|
|
936
|
+
var key = (parentKey !== '' ? parentKey + '_' : '') + index;
|
|
937
|
+
var newItem = {
|
|
938
|
+
item: item,
|
|
939
|
+
index: index,
|
|
940
|
+
level: level,
|
|
941
|
+
key: key,
|
|
942
|
+
parent: parent,
|
|
943
|
+
parentKey: parentKey
|
|
944
|
+
};
|
|
945
|
+
newItem['items'] = _this11.createProcessedItems(item.items, level + 1, newItem, key);
|
|
946
|
+
processedItems.push(newItem);
|
|
947
|
+
});
|
|
948
|
+
return processedItems;
|
|
949
|
+
},
|
|
950
|
+
containerRef: function containerRef(el) {
|
|
951
|
+
this.container = el;
|
|
952
|
+
},
|
|
953
|
+
listRef: function listRef(el) {
|
|
954
|
+
this.list = el ? el.$el : undefined;
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
computed: {
|
|
958
|
+
processedItems: function processedItems() {
|
|
959
|
+
return this.createProcessedItems(this.model || []);
|
|
960
|
+
},
|
|
961
|
+
visibleItems: function visibleItems() {
|
|
962
|
+
var _this12 = this;
|
|
963
|
+
var processedItem = this.activeItemPath.find(function (p) {
|
|
964
|
+
return p.key === _this12.focusedItemInfo.parentKey;
|
|
965
|
+
});
|
|
966
|
+
return processedItem ? processedItem.items : this.processedItems;
|
|
967
|
+
},
|
|
968
|
+
focusedItemId: function focusedItemId() {
|
|
969
|
+
return this.focusedItemInfo.index !== -1 ? "".concat(this.id).concat(utils.ObjectUtils.isNotEmpty(this.focusedItemInfo.parentKey) ? '_' + this.focusedItemInfo.parentKey : '', "_").concat(this.focusedItemInfo.index) : null;
|
|
913
970
|
}
|
|
971
|
+
},
|
|
972
|
+
components: {
|
|
973
|
+
ContextMenuSub: script$1,
|
|
974
|
+
Portal: Portal__default["default"]
|
|
975
|
+
}
|
|
914
976
|
};
|
|
915
977
|
|
|
978
|
+
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); }
|
|
979
|
+
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; }
|
|
980
|
+
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; }
|
|
981
|
+
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; }
|
|
982
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
983
|
+
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); }
|
|
916
984
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
985
|
+
var _component_ContextMenuSub = vue.resolveComponent("ContextMenuSub");
|
|
986
|
+
var _component_Portal = vue.resolveComponent("Portal");
|
|
987
|
+
return vue.openBlock(), vue.createBlock(_component_Portal, {
|
|
988
|
+
appendTo: _ctx.appendTo
|
|
989
|
+
}, {
|
|
990
|
+
"default": vue.withCtx(function () {
|
|
991
|
+
return [vue.createVNode(vue.Transition, {
|
|
923
992
|
name: "p-contextmenu",
|
|
924
993
|
onEnter: $options.onEnter,
|
|
925
994
|
onAfterEnter: $options.onAfterEnter,
|
|
926
995
|
onLeave: $options.onLeave,
|
|
927
996
|
onAfterLeave: $options.onAfterLeave
|
|
928
997
|
}, {
|
|
929
|
-
default: vue.withCtx(()
|
|
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
|
-
: vue.createCommentVNode("", true)
|
|
964
|
-
]),
|
|
998
|
+
"default": vue.withCtx(function () {
|
|
999
|
+
return [$data.visible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
1000
|
+
key: 0,
|
|
1001
|
+
ref: $options.containerRef,
|
|
1002
|
+
"class": _ctx.cx('root')
|
|
1003
|
+
}, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root')), {
|
|
1004
|
+
"data-pc-name": "contextmenu"
|
|
1005
|
+
}), [vue.createVNode(_component_ContextMenuSub, {
|
|
1006
|
+
ref: $options.listRef,
|
|
1007
|
+
id: $data.id + '_list',
|
|
1008
|
+
"class": vue.normalizeClass(_ctx.cx('menu')),
|
|
1009
|
+
role: "menubar",
|
|
1010
|
+
root: true,
|
|
1011
|
+
tabindex: _ctx.tabindex,
|
|
1012
|
+
"aria-orientation": "vertical",
|
|
1013
|
+
"aria-activedescendant": $data.focused ? $options.focusedItemId : undefined,
|
|
1014
|
+
menuId: $data.id,
|
|
1015
|
+
focusedItemId: $data.focused ? $options.focusedItemId : undefined,
|
|
1016
|
+
items: $options.processedItems,
|
|
1017
|
+
templates: _ctx.$slots,
|
|
1018
|
+
activeItemPath: $data.activeItemPath,
|
|
1019
|
+
exact: _ctx.exact,
|
|
1020
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1021
|
+
"aria-label": _ctx.ariaLabel,
|
|
1022
|
+
level: 0,
|
|
1023
|
+
visible: $data.submenuVisible,
|
|
1024
|
+
pt: _ctx.pt,
|
|
1025
|
+
onFocus: $options.onFocus,
|
|
1026
|
+
onBlur: $options.onBlur,
|
|
1027
|
+
onKeydown: $options.onKeyDown,
|
|
1028
|
+
onItemClick: $options.onItemClick,
|
|
1029
|
+
onItemMouseenter: $options.onItemMouseEnter
|
|
1030
|
+
}, null, 8, ["id", "class", "tabindex", "aria-activedescendant", "menuId", "focusedItemId", "items", "templates", "activeItemPath", "exact", "aria-labelledby", "aria-label", "visible", "pt", "onFocus", "onBlur", "onKeydown", "onItemClick", "onItemMouseenter"])], 16)) : vue.createCommentVNode("", true)];
|
|
1031
|
+
}),
|
|
965
1032
|
_: 1
|
|
966
|
-
}, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
|
|
967
|
-
|
|
1033
|
+
}, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
1034
|
+
}),
|
|
968
1035
|
_: 1
|
|
969
|
-
}, 8, ["appendTo"])
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
function styleInject(css, ref) {
|
|
973
|
-
if ( ref === void 0 ) ref = {};
|
|
974
|
-
var insertAt = ref.insertAt;
|
|
975
|
-
|
|
976
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
977
|
-
|
|
978
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
979
|
-
var style = document.createElement('style');
|
|
980
|
-
style.type = 'text/css';
|
|
981
|
-
|
|
982
|
-
if (insertAt === 'top') {
|
|
983
|
-
if (head.firstChild) {
|
|
984
|
-
head.insertBefore(style, head.firstChild);
|
|
985
|
-
} else {
|
|
986
|
-
head.appendChild(style);
|
|
987
|
-
}
|
|
988
|
-
} else {
|
|
989
|
-
head.appendChild(style);
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
if (style.styleSheet) {
|
|
993
|
-
style.styleSheet.cssText = css;
|
|
994
|
-
} else {
|
|
995
|
-
style.appendChild(document.createTextNode(css));
|
|
996
|
-
}
|
|
1036
|
+
}, 8, ["appendTo"]);
|
|
997
1037
|
}
|
|
998
1038
|
|
|
999
|
-
var css_248z = "\n.p-contextmenu {\n position: absolute;\n}\n.p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n}\n.p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n.p-contextmenu .p-menuitem-text {\n line-height: 1;\n}\n.p-contextmenu .p-menuitem {\n position: relative;\n}\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n}\n.p-contextmenu-enter-from {\n opacity: 0;\n}\n.p-contextmenu-enter-active {\n transition: opacity 250ms;\n}\n";
|
|
1000
|
-
styleInject(css_248z);
|
|
1001
|
-
|
|
1002
1039
|
script.render = render;
|
|
1003
1040
|
|
|
1004
1041
|
return script;
|
|
1005
1042
|
|
|
1006
|
-
})(primevue.
|
|
1043
|
+
})(primevue.portal, primevue.utils, primevue.basecomponent, primevue.usestyle, primevue.icons.angleright, primevue.ripple, Vue);
|