@adyen/bento-vue3 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
- package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +121 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +154 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
- package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +16 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2355 -6
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +22 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
- package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +23 -23
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +57 -46
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/checkbox.js +73 -54
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.aa085dfa.js → base-button.39fae75f.js} +2 -2
- package/dist/chunks/{base-button.aa085dfa.js.map → base-button.39fae75f.js.map} +1 -1
- package/dist/chunks/{base-modal.a629cb32.js → base-modal.161ce8f0.js} +86 -86
- package/dist/chunks/base-modal.161ce8f0.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.2ff339f6.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.2ff339f6.js.map} +1 -1
- package/dist/chunks/button.623a46d2.js +118 -0
- package/dist/chunks/button.623a46d2.js.map +1 -0
- package/dist/chunks/{calendar.fa7712e8.js → calendar.b1d05580.js} +4 -4
- package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b1d05580.js.map} +1 -1
- package/dist/chunks/checkbox.d65694f2.js +278 -0
- package/dist/chunks/checkbox.d65694f2.js.map +1 -0
- package/dist/chunks/{controls-group.d6543674.js → controls-group.30352ce4.js} +21 -17
- package/dist/chunks/controls-group.30352ce4.js.map +1 -0
- package/dist/chunks/copy.2a9cddc1.js +145 -0
- package/dist/chunks/copy.2a9cddc1.js.map +1 -0
- package/dist/chunks/country.types.002caff2.js +5871 -0
- package/dist/chunks/country.types.002caff2.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.a731b5fb.js} +25 -25
- package/dist/chunks/dropdown-default-textbox.a731b5fb.js.map +1 -0
- package/dist/chunks/{dropdown.63de9aac.js → dropdown.96431c25.js} +399 -359
- package/dist/chunks/dropdown.96431c25.js.map +1 -0
- package/dist/chunks/{field-label.3c19a29a.js → field-label.b681234d.js} +5 -5
- package/dist/chunks/{field-label.3c19a29a.js.map → field-label.b681234d.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.ebfb2f80.js} +2 -2
- package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.ebfb2f80.js.map} +1 -1
- package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.03015ba1.js} +3 -3
- package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.03015ba1.js.map} +1 -1
- package/dist/chunks/{index.98174339.js → index.03605cb0.js} +5 -5
- package/dist/chunks/{index.98174339.js.map → index.03605cb0.js.map} +1 -1
- package/dist/chunks/index.09f7f1b5.js +124 -0
- package/dist/chunks/index.09f7f1b5.js.map +1 -0
- package/dist/chunks/index.0a8ddfaa.js +168 -0
- package/dist/chunks/index.0a8ddfaa.js.map +1 -0
- package/dist/chunks/index.113137fb.js +21 -0
- package/dist/chunks/index.113137fb.js.map +1 -0
- package/dist/chunks/{index.89dfe209.js → index.1dac266a.js} +3 -3
- package/dist/chunks/{index.89dfe209.js.map → index.1dac266a.js.map} +1 -1
- package/dist/chunks/{index.0ee895e0.js → index.45d00aad.js} +2 -2
- package/dist/chunks/{index.0ee895e0.js.map → index.45d00aad.js.map} +1 -1
- package/dist/chunks/{index.4d2a13e1.js → index.80078bf9.js} +2 -2
- package/dist/chunks/{index.4d2a13e1.js.map → index.80078bf9.js.map} +1 -1
- package/dist/chunks/{index.85832db5.js → index.a4a6e52f.js} +3 -3
- package/dist/chunks/{index.85832db5.js.map → index.a4a6e52f.js.map} +1 -1
- package/dist/chunks/index.cf561336.js +622 -0
- package/dist/chunks/index.cf561336.js.map +1 -0
- package/dist/chunks/{index.c6fecf1c.js → index.ef1c4d59.js} +33 -33
- package/dist/chunks/{index.c6fecf1c.js.map → index.ef1c4d59.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.ff6d6f32.js} +3 -3
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.ff6d6f32.js.map} +1 -1
- package/dist/chunks/listbox.dd9883c5.js +1419 -0
- package/dist/chunks/listbox.dd9883c5.js.map +1 -0
- package/dist/chunks/{loading-button.4b88e24d.js → loading-button.30c5fede.js} +19 -19
- package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.30c5fede.js.map} +1 -1
- package/dist/chunks/{tooltip.27c32d36.js → tooltip.785993dd.js} +15 -15
- package/dist/chunks/tooltip.785993dd.js.map +1 -0
- package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
- package/dist/chunks/useCountryItems.d2a1f224.js +29 -0
- package/dist/chunks/{useCountryItems.e83ef8f0.js.map → useCountryItems.d2a1f224.js.map} +1 -1
- package/dist/code-snippet.js +136 -138
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +51 -5912
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1325 -1021
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +20 -20
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +2 -10
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +51 -50
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +23 -23
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +759 -747
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +3 -3
- package/dist/index.js +194 -185
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +17 -15
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +67 -64
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +15 -13
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +69 -67
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +8 -8
- package/dist/secondary-nav.js +110 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +173 -161
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +244 -237
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +0 -67
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +0 -73
- package/dist/chunks/base-modal.a629cb32.js.map +0 -1
- package/dist/chunks/button.82ed953e.js +0 -148
- package/dist/chunks/button.82ed953e.js.map +0 -1
- package/dist/chunks/checkbox.731dc0ab.js +0 -264
- package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
- package/dist/chunks/controls-group.d6543674.js.map +0 -1
- package/dist/chunks/copy.330d594e.js +0 -126
- package/dist/chunks/copy.330d594e.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
- package/dist/chunks/dropdown.63de9aac.js.map +0 -1
- package/dist/chunks/index.73ed22a7.js +0 -594
- package/dist/chunks/index.73ed22a7.js.map +0 -1
- package/dist/chunks/index.75f3672e.js +0 -124
- package/dist/chunks/index.75f3672e.js.map +0 -1
- package/dist/chunks/index.edcaf766.js +0 -150
- package/dist/chunks/index.edcaf766.js.map +0 -1
- package/dist/chunks/listbox.ac43f8ab.js +0 -1309
- package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
- package/dist/chunks/tooltip.27c32d36.js.map +0 -1
- package/dist/chunks/useCountryItems.e83ef8f0.js +0 -29
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
- /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
|
@@ -1,594 +0,0 @@
|
|
|
1
|
-
import { openBlock as f, createElementBlock as L, mergeProps as V, toDisplayString as P, createCommentVNode as K, createElementVNode as O, defineComponent as E, computed as B, resolveComponent as h, createBlock as w, normalizeClass as N, createSlots as te, withCtx as M, createVNode as k, createTextVNode as D, resolveDynamicComponent as oe, renderSlot as q, ref as p, onMounted as se, Transition as ie, withKeys as y, withModifiers as T, Fragment as j, renderList as Z, normalizeStyle as z, inject as ue, resolveDirective as ae, withDirectives as le } from "vue";
|
|
2
|
-
import { _ as S } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import { g as F } from "./unique-id.a2a2b458.js";
|
|
4
|
-
import { B as re } from "./directive.0408e565.js";
|
|
5
|
-
import { a as ce } from "./button.82ed953e.js";
|
|
6
|
-
import { a as de, B as W } from "./index.98174339.js";
|
|
7
|
-
import { a as me, C as A } from "./chevron-left.4ee92950.js";
|
|
8
|
-
import { B as pe, a as H } from "./base-button.aa085dfa.js";
|
|
9
|
-
import { B as fe } from "./index.75f3672e.js";
|
|
10
|
-
import "../assets/index26.css";
|
|
11
|
-
let U = 0;
|
|
12
|
-
const ve = {
|
|
13
|
-
beforeCreate() {
|
|
14
|
-
this.uuid = U.toString(), U += 1;
|
|
15
|
-
}
|
|
16
|
-
}, _e = { key: 0 }, be = /* @__PURE__ */ O("path", {
|
|
17
|
-
fill: "#00112C",
|
|
18
|
-
d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
|
|
19
|
-
}, null, -1), ye = /* @__PURE__ */ O("path", {
|
|
20
|
-
fill: "#00112C",
|
|
21
|
-
d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z"
|
|
22
|
-
}, null, -1), Ce = /* @__PURE__ */ O("path", {
|
|
23
|
-
fill: "#00112C",
|
|
24
|
-
d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z"
|
|
25
|
-
}, null, -1);
|
|
26
|
-
function he(e, t, m, s, r, l) {
|
|
27
|
-
return f(), L("svg", V({ role: "img" }, e.$attrs, {
|
|
28
|
-
class: "ui-assets-icons-16",
|
|
29
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
-
width: "16",
|
|
31
|
-
height: "16",
|
|
32
|
-
fill: "none"
|
|
33
|
-
}), [
|
|
34
|
-
e.$attrs["svg-title"] ? (f(), L("title", _e, P(e.$attrs["svg-title"]), 1)) : K("", !0),
|
|
35
|
-
be,
|
|
36
|
-
ye,
|
|
37
|
-
Ce
|
|
38
|
-
], 16);
|
|
39
|
-
}
|
|
40
|
-
const ge = /* @__PURE__ */ S(ve, [["render", he]]), Me = E({
|
|
41
|
-
name: "menu-item",
|
|
42
|
-
components: { BaseButton: pe, BentoTypography: fe, ChevronRightIcon: me },
|
|
43
|
-
props: {
|
|
44
|
-
/**
|
|
45
|
-
* menu-item text that gets displayed as the main label
|
|
46
|
-
*/
|
|
47
|
-
text: {
|
|
48
|
-
type: String,
|
|
49
|
-
required: !0
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* menu-item action that gets executed when the MeniItem is clicked
|
|
53
|
-
*/
|
|
54
|
-
handler: {
|
|
55
|
-
type: Function,
|
|
56
|
-
required: !0
|
|
57
|
-
},
|
|
58
|
-
/**
|
|
59
|
-
* menu-item text that gets displayed as the secondary label
|
|
60
|
-
*/
|
|
61
|
-
secondaryText: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: null
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Optional chevron icon displayed to the right of the menu-item
|
|
67
|
-
*/
|
|
68
|
-
chevron: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: !1
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Optional icon displayed to the left of the menu-item
|
|
74
|
-
*/
|
|
75
|
-
icon: {
|
|
76
|
-
// Types for Vue2 (Object) and Vue3 (Function)
|
|
77
|
-
// TODO: Remove Object when fully migrated to Vue3
|
|
78
|
-
type: [Object, Function],
|
|
79
|
-
default: null
|
|
80
|
-
},
|
|
81
|
-
/**
|
|
82
|
-
* Disables menu-item button functionality
|
|
83
|
-
*/
|
|
84
|
-
disabled: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: !1
|
|
87
|
-
},
|
|
88
|
-
/**
|
|
89
|
-
* Displays an indent variant od the menu-item
|
|
90
|
-
*/
|
|
91
|
-
indent: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: !1
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Displays menu-item button as critical
|
|
97
|
-
*/
|
|
98
|
-
critical: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !1
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* Renders the text in a bold variant
|
|
104
|
-
*/
|
|
105
|
-
isTitle: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
default: !1
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
emits: [H.CLICK],
|
|
111
|
-
setup(e, { emit: t }) {
|
|
112
|
-
return {
|
|
113
|
-
// Values
|
|
114
|
-
conditionalClasses: B(() => ({
|
|
115
|
-
"b-menu-item--critical": e.critical,
|
|
116
|
-
"b-menu-item--indent": e.indent
|
|
117
|
-
})),
|
|
118
|
-
// Methods
|
|
119
|
-
onClick: (r) => {
|
|
120
|
-
r.stopPropagation(), e.handler(), t(H.CLICK);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
function $e(e, t, m, s, r, l) {
|
|
126
|
-
const u = h("bento-typography"), i = h("chevron-right-icon"), o = h("base-button");
|
|
127
|
-
return f(), w(o, {
|
|
128
|
-
class: N(["b-menu-item", e.conditionalClasses]),
|
|
129
|
-
role: "menuitem",
|
|
130
|
-
disabled: e.disabled,
|
|
131
|
-
tabindex: "-1",
|
|
132
|
-
onClick: e.onClick
|
|
133
|
-
}, te({
|
|
134
|
-
default: M(() => [
|
|
135
|
-
k(u, {
|
|
136
|
-
el: "span",
|
|
137
|
-
variant: "body",
|
|
138
|
-
stronger: e.isTitle,
|
|
139
|
-
class: "b-menu-item__primary-text"
|
|
140
|
-
}, {
|
|
141
|
-
default: M(() => [
|
|
142
|
-
D(P(e.text), 1)
|
|
143
|
-
]),
|
|
144
|
-
_: 1
|
|
145
|
-
}, 8, ["stronger"]),
|
|
146
|
-
e.secondaryText ? (f(), w(u, {
|
|
147
|
-
key: 0,
|
|
148
|
-
el: "span",
|
|
149
|
-
variant: "body",
|
|
150
|
-
class: "b-menu-item__secondary-text"
|
|
151
|
-
}, {
|
|
152
|
-
default: M(() => [
|
|
153
|
-
D(P(e.secondaryText), 1)
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})) : K("", !0)
|
|
157
|
-
]),
|
|
158
|
-
_: 2
|
|
159
|
-
}, [
|
|
160
|
-
e.icon ? {
|
|
161
|
-
name: "iconLeft",
|
|
162
|
-
fn: M(() => [
|
|
163
|
-
(f(), w(oe(e.icon), {
|
|
164
|
-
class: "b-menu-item__icon-left",
|
|
165
|
-
"aria-hidden": "true"
|
|
166
|
-
}))
|
|
167
|
-
]),
|
|
168
|
-
key: "0"
|
|
169
|
-
} : void 0,
|
|
170
|
-
e.chevron ? {
|
|
171
|
-
name: "iconRight",
|
|
172
|
-
fn: M(() => [
|
|
173
|
-
k(i, { "aria-hidden": "true" })
|
|
174
|
-
]),
|
|
175
|
-
key: "1"
|
|
176
|
-
} : void 0
|
|
177
|
-
]), 1032, ["class", "disabled", "onClick"]);
|
|
178
|
-
}
|
|
179
|
-
const G = /* @__PURE__ */ S(Me, [["render", $e], ["__scopeId", "data-v-9e8afd9c"]]);
|
|
180
|
-
var C = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(C || {});
|
|
181
|
-
const Ie = E({
|
|
182
|
-
name: "bento-menu-list-container"
|
|
183
|
-
});
|
|
184
|
-
const Be = { class: "b-menu-list-container" };
|
|
185
|
-
function ke(e, t, m, s, r, l) {
|
|
186
|
-
return f(), L("div", Be, [
|
|
187
|
-
q(e.$slots, "default", {}, void 0, !0)
|
|
188
|
-
]);
|
|
189
|
-
}
|
|
190
|
-
const J = /* @__PURE__ */ S(Ie, [["render", ke], ["__scopeId", "data-v-ea0113ba"]]), Y = {
|
|
191
|
-
"en-US": {
|
|
192
|
-
menuButton: "Open menu",
|
|
193
|
-
backButton: "Go back"
|
|
194
|
-
}
|
|
195
|
-
}, Le = E({
|
|
196
|
-
i18n: { messages: Y },
|
|
197
|
-
name: "sub-menu-item-list",
|
|
198
|
-
components: { MenuItem: G, MenuListContainer: J },
|
|
199
|
-
props: {
|
|
200
|
-
items: {
|
|
201
|
-
type: Array,
|
|
202
|
-
required: !0
|
|
203
|
-
},
|
|
204
|
-
title: {
|
|
205
|
-
type: String,
|
|
206
|
-
required: !0
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
emits: [C.CLOSE, C.BACK],
|
|
210
|
-
setup(e, { emit: t }) {
|
|
211
|
-
const m = p(null), s = p(0), r = p(e.items.length), l = () => t(C.CLOSE), u = () => t(C.BACK), i = B(() => {
|
|
212
|
-
var v;
|
|
213
|
-
const a = (v = e.items) == null ? void 0 : v.map((b) => ({
|
|
214
|
-
...b,
|
|
215
|
-
indent: !b.icon,
|
|
216
|
-
isTitle: !1,
|
|
217
|
-
clickHandler: l
|
|
218
|
-
}));
|
|
219
|
-
return [
|
|
220
|
-
{
|
|
221
|
-
text: e.title,
|
|
222
|
-
secondaryText: null,
|
|
223
|
-
critical: !1,
|
|
224
|
-
icon: A,
|
|
225
|
-
isTitle: !0,
|
|
226
|
-
disabled: !1,
|
|
227
|
-
indent: !1,
|
|
228
|
-
handler: u,
|
|
229
|
-
clickHandler: u
|
|
230
|
-
},
|
|
231
|
-
...a
|
|
232
|
-
];
|
|
233
|
-
}), o = async () => {
|
|
234
|
-
var a, v, b, $, g;
|
|
235
|
-
(g = ($ = (b = (v = (a = m.value) == null ? void 0 : a.children) == null ? void 0 : v[s.value]) == null ? void 0 : b.children) == null ? void 0 : $[0]) == null || g.focus();
|
|
236
|
-
};
|
|
237
|
-
se(async () => {
|
|
238
|
-
setTimeout(() => o(), 150);
|
|
239
|
-
});
|
|
240
|
-
const n = () => {
|
|
241
|
-
s.value > 0 ? (s.value -= 1, i.value[s.value].disabled && n()) : s.value = r.value, o();
|
|
242
|
-
}, c = () => {
|
|
243
|
-
s.value < r.value ? (s.value += 1, i.value[s.value].disabled && c()) : s.value = 0, o();
|
|
244
|
-
};
|
|
245
|
-
return {
|
|
246
|
-
// Enums
|
|
247
|
-
BentoMenuEvent: C,
|
|
248
|
-
// Values
|
|
249
|
-
subMenuItemListRefLocal: m,
|
|
250
|
-
subMenuFocusedIndex: s,
|
|
251
|
-
ChevronLeftIcon: A,
|
|
252
|
-
computedItems: i,
|
|
253
|
-
// Methods
|
|
254
|
-
closeMenu: l,
|
|
255
|
-
onBackButton: u,
|
|
256
|
-
focusPrevious: n,
|
|
257
|
-
focusNext: c
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
function we(e, t, m, s, r, l) {
|
|
262
|
-
const u = h("menu-item"), i = h("menu-list-container");
|
|
263
|
-
return f(), w(ie, {
|
|
264
|
-
name: "b-sub-menu-item-list__transition",
|
|
265
|
-
appear: ""
|
|
266
|
-
}, {
|
|
267
|
-
default: M(() => [
|
|
268
|
-
k(i, { class: "b-sub-menu-item-list" }, {
|
|
269
|
-
default: M(() => [
|
|
270
|
-
O("ul", {
|
|
271
|
-
ref: "subMenuItemListRefLocal",
|
|
272
|
-
role: "menu",
|
|
273
|
-
class: "b-sub-menu-item-list__list",
|
|
274
|
-
onKeydown: [
|
|
275
|
-
t[0] || (t[0] = y(T((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
|
|
276
|
-
t[1] || (t[1] = y(T((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
|
|
277
|
-
t[2] || (t[2] = y(T((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
|
|
278
|
-
]
|
|
279
|
-
}, [
|
|
280
|
-
(f(!0), L(j, null, Z(e.computedItems, (o, n) => (f(), L("li", {
|
|
281
|
-
key: `sub-menu-item-list-item-${n}`,
|
|
282
|
-
class: N([
|
|
283
|
-
{ "b-sub-menu-item-list__back-button": n === 0 },
|
|
284
|
-
{ "b-sub-menu-item-list__first-item": n == 1 }
|
|
285
|
-
]),
|
|
286
|
-
role: "none"
|
|
287
|
-
}, [
|
|
288
|
-
k(u, {
|
|
289
|
-
text: o.text,
|
|
290
|
-
handler: o.handler,
|
|
291
|
-
"secondary-text": o.secondaryText,
|
|
292
|
-
icon: o.icon,
|
|
293
|
-
"is-title": o.isTitle,
|
|
294
|
-
disabled: o.disabled,
|
|
295
|
-
critical: o.critical,
|
|
296
|
-
indent: o.indent,
|
|
297
|
-
tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
|
|
298
|
-
onClick: o.clickHandler
|
|
299
|
-
}, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"])
|
|
300
|
-
], 2))), 128))
|
|
301
|
-
], 544)
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
})
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
const Se = /* @__PURE__ */ S(Le, [["render", we], ["__scopeId", "data-v-67456329"]]), Oe = E({
|
|
310
|
-
name: "menu-item-list",
|
|
311
|
-
components: { MenuItem: G, MenuListContainer: J, SubMenuItemList: Se },
|
|
312
|
-
props: {
|
|
313
|
-
/**
|
|
314
|
-
* The data to be displayed in the list
|
|
315
|
-
*/
|
|
316
|
-
data: {
|
|
317
|
-
type: Array,
|
|
318
|
-
required: !0
|
|
319
|
-
},
|
|
320
|
-
/**
|
|
321
|
-
* Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.
|
|
322
|
-
*/
|
|
323
|
-
indentItems: {
|
|
324
|
-
type: Boolean,
|
|
325
|
-
default: !1
|
|
326
|
-
},
|
|
327
|
-
/**
|
|
328
|
-
* If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.
|
|
329
|
-
*/
|
|
330
|
-
focusLastElement: {
|
|
331
|
-
type: Boolean,
|
|
332
|
-
default: !1
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
emits: [C.CLOSE],
|
|
336
|
-
setup(e, { emit: t }) {
|
|
337
|
-
const m = p(null), s = p(null), r = p(null), l = p(!1), u = p(null), i = p(e.focusLastElement ? e.data.length - 1 : 0), o = p(0), n = p(e.data.length - 1), c = B(() => e.data.some((d) => d.icon)), a = B(() => e.indentItems || c.value ? e.data.map((d) => {
|
|
338
|
-
let _ = !1;
|
|
339
|
-
return d.icon || (_ = !0), {
|
|
340
|
-
...d,
|
|
341
|
-
// eslint-disable-next-line no-param-reassign
|
|
342
|
-
indent: _
|
|
343
|
-
};
|
|
344
|
-
}) : e.data), v = () => {
|
|
345
|
-
var d, _, I;
|
|
346
|
-
return (I = (_ = (d = m.value) == null ? void 0 : d.children[i.value]) == null ? void 0 : _.children[0]) == null ? void 0 : I.focus();
|
|
347
|
-
}, b = () => t(C.CLOSE), $ = async (d, _) => {
|
|
348
|
-
d.items ? (u.value = _, l.value = !0) : (u.value = _, l.value = !1, b());
|
|
349
|
-
}, g = () => {
|
|
350
|
-
i.value > 0 ? (i.value -= 1, a.value[i.value].disabled && g()) : i.value = n.value, v();
|
|
351
|
-
}, R = () => {
|
|
352
|
-
i.value < n.value ? (i.value += 1, a.value[i.value].disabled && R()) : i.value = 0, v();
|
|
353
|
-
}, Q = (d, _) => {
|
|
354
|
-
var I;
|
|
355
|
-
(I = d == null ? void 0 : d.items) != null && I.length && (u.value = _, l.value = !0);
|
|
356
|
-
}, X = () => {
|
|
357
|
-
u.value && l.value && (u.value = null, l.value = !1);
|
|
358
|
-
}, x = () => {
|
|
359
|
-
l.value = !1, u.value = null, v();
|
|
360
|
-
}, ee = B(() => {
|
|
361
|
-
var d, _, I;
|
|
362
|
-
return (I = (_ = (d = r.value) == null ? void 0 : d[0]) == null ? void 0 : _.$el) == null ? void 0 : I.offsetHeight;
|
|
363
|
-
}), ne = B(() => l.value ? `${ee.value}px` : "");
|
|
364
|
-
return {
|
|
365
|
-
// Values
|
|
366
|
-
menuItemListRef: m,
|
|
367
|
-
menuItemListWrapperRef: s,
|
|
368
|
-
subMenuItemListRef: r,
|
|
369
|
-
computedData: a,
|
|
370
|
-
computedHeight: ne,
|
|
371
|
-
focusedIndex: i,
|
|
372
|
-
subMenuFocusedIndex: o,
|
|
373
|
-
showSubMenu: l,
|
|
374
|
-
visibleSubMenuIndex: u,
|
|
375
|
-
// Methods
|
|
376
|
-
toggleMenu: $,
|
|
377
|
-
closeMenu: b,
|
|
378
|
-
focusPrevious: g,
|
|
379
|
-
focusNext: R,
|
|
380
|
-
focusRight: Q,
|
|
381
|
-
focusLeft: X,
|
|
382
|
-
onBackButton: x
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
const Ee = ["onKeydown"];
|
|
387
|
-
function Ke(e, t, m, s, r, l) {
|
|
388
|
-
const u = h("menu-item"), i = h("sub-menu-item-list"), o = h("menu-list-container");
|
|
389
|
-
return f(), w(o, {
|
|
390
|
-
ref: "menuItemListWrapperRef",
|
|
391
|
-
style: z({ height: e.computedHeight })
|
|
392
|
-
}, {
|
|
393
|
-
default: M(() => [
|
|
394
|
-
O("ul", {
|
|
395
|
-
ref: "menuItemListRef",
|
|
396
|
-
class: "b-menu-item-list",
|
|
397
|
-
role: "menu",
|
|
398
|
-
onKeydown: [
|
|
399
|
-
t[1] || (t[1] = y((...n) => e.focusNext && e.focusNext(...n), ["down"])),
|
|
400
|
-
t[2] || (t[2] = y((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
|
|
401
|
-
t[3] || (t[3] = y((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
|
|
402
|
-
t[4] || (t[4] = y((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
|
|
403
|
-
]
|
|
404
|
-
}, [
|
|
405
|
-
(f(!0), L(j, null, Z(e.computedData, (n, c) => {
|
|
406
|
-
var a, v, b, $;
|
|
407
|
-
return f(), L("li", {
|
|
408
|
-
key: `menu-item-${c}`,
|
|
409
|
-
class: "b-menu-item-list__item",
|
|
410
|
-
role: "none",
|
|
411
|
-
onKeydown: [
|
|
412
|
-
y((g) => e.focusRight(n, c), ["right"]),
|
|
413
|
-
t[0] || (t[0] = y((g) => e.focusLeft(), ["left"]))
|
|
414
|
-
]
|
|
415
|
-
}, [
|
|
416
|
-
k(u, {
|
|
417
|
-
text: n.text,
|
|
418
|
-
handler: (a = n.items) != null && a.length ? () => null : n.handler,
|
|
419
|
-
"secondary-text": n.secondaryText,
|
|
420
|
-
icon: n.icon,
|
|
421
|
-
chevron: !!((v = n.items) != null && v.length),
|
|
422
|
-
disabled: n.disabled,
|
|
423
|
-
critical: n.critical,
|
|
424
|
-
indent: n.indent,
|
|
425
|
-
tabindex: c === e.subMenuFocusedIndex ? "0" : "-1",
|
|
426
|
-
"aria-haspopup": !!((b = n.items) != null && b.length),
|
|
427
|
-
"aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === c,
|
|
428
|
-
onClick: (g) => e.toggleMenu(n, c)
|
|
429
|
-
}, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
|
|
430
|
-
($ = n.items) != null && $.length && e.showSubMenu && e.visibleSubMenuIndex === c ? (f(), w(i, {
|
|
431
|
-
key: 0,
|
|
432
|
-
ref_for: !0,
|
|
433
|
-
ref: "subMenuItemListRef",
|
|
434
|
-
items: n.items,
|
|
435
|
-
title: n.text,
|
|
436
|
-
onBack: e.onBackButton,
|
|
437
|
-
onClose: e.closeMenu
|
|
438
|
-
}, null, 8, ["items", "title", "onBack", "onClose"])) : K("", !0)
|
|
439
|
-
], 40, Ee);
|
|
440
|
-
}), 128))
|
|
441
|
-
], 544)
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}, 8, ["style"]);
|
|
445
|
-
}
|
|
446
|
-
const Te = /* @__PURE__ */ S(Oe, [["render", Ke], ["__scopeId", "data-v-aa350acc"]]), Pe = Symbol("menu inverse style injection key"), Ne = E({
|
|
447
|
-
i18n: { messages: Y },
|
|
448
|
-
name: "bento-menu",
|
|
449
|
-
components: { BentoButton: ce, BentoPopover: de, MenuItemList: Te, OptionsVerticalIcon: ge },
|
|
450
|
-
directives: { BentoClickOutsideDirective: re },
|
|
451
|
-
props: {
|
|
452
|
-
/**
|
|
453
|
-
* Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
|
|
454
|
-
*/
|
|
455
|
-
button: {
|
|
456
|
-
type: Object,
|
|
457
|
-
default: () => ({
|
|
458
|
-
variant: "secondary"
|
|
459
|
-
})
|
|
460
|
-
},
|
|
461
|
-
/**
|
|
462
|
-
* The data to be displayed in the list
|
|
463
|
-
*/
|
|
464
|
-
data: {
|
|
465
|
-
type: Array,
|
|
466
|
-
required: !0
|
|
467
|
-
},
|
|
468
|
-
/**
|
|
469
|
-
* The position of where the menu should open.
|
|
470
|
-
*/
|
|
471
|
-
menuPosition: {
|
|
472
|
-
type: String,
|
|
473
|
-
default: W.BOTTOM_START,
|
|
474
|
-
validator: (e) => Object.values(W).includes(e)
|
|
475
|
-
},
|
|
476
|
-
/**
|
|
477
|
-
* Instructs the menu popover to be visible outside of the containing container.
|
|
478
|
-
* @see {@link https://floating-ui.com/docs/usefloating#strategy}
|
|
479
|
-
*/
|
|
480
|
-
menuFixedPositioning: {
|
|
481
|
-
type: Boolean,
|
|
482
|
-
default: !1
|
|
483
|
-
},
|
|
484
|
-
/**
|
|
485
|
-
* Sets a custom width for the menu popover.
|
|
486
|
-
*/
|
|
487
|
-
menuWidth: {
|
|
488
|
-
type: Number,
|
|
489
|
-
default: null
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
emits: [C.CLOSE, C.OPEN],
|
|
493
|
-
setup(e, { emit: t }) {
|
|
494
|
-
const m = p(null), s = p(!1), r = p(!1), l = F("menu"), u = F("menu-popover"), i = ue(Pe, p(!1)), o = B(() => ({
|
|
495
|
-
"b-menu--inverse": i.value
|
|
496
|
-
})), n = B(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), c = () => {
|
|
497
|
-
s.value = !0, t(C.OPEN);
|
|
498
|
-
}, a = () => {
|
|
499
|
-
s.value && (s.value = !1, m.value.$el.focus(), t(C.CLOSE));
|
|
500
|
-
};
|
|
501
|
-
return {
|
|
502
|
-
// Values
|
|
503
|
-
menuButtonRef: m,
|
|
504
|
-
menuId: l,
|
|
505
|
-
popoverId: u,
|
|
506
|
-
showMenu: s,
|
|
507
|
-
computedMenuWidth: n,
|
|
508
|
-
isLastElementFocused: r,
|
|
509
|
-
// Classes
|
|
510
|
-
computedClasses: o,
|
|
511
|
-
isInverseColorSet: i,
|
|
512
|
-
// Methods
|
|
513
|
-
onKeyDown: () => {
|
|
514
|
-
r.value = !1, c();
|
|
515
|
-
},
|
|
516
|
-
onKeyUp: () => {
|
|
517
|
-
r.value = !0, c();
|
|
518
|
-
},
|
|
519
|
-
closeMenu: a,
|
|
520
|
-
toggleShowMenu: (g) => {
|
|
521
|
-
g.stopPropagation(), s.value ? a() : c();
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
function Re(e, t, m, s, r, l) {
|
|
527
|
-
const u = h("options-vertical-icon"), i = h("bento-button"), o = h("menu-item-list"), n = h("bento-popover"), c = ae("bento-click-outside-directive");
|
|
528
|
-
return le((f(), L("div", {
|
|
529
|
-
class: N([e.computedClasses, "b-menu"]),
|
|
530
|
-
onKeydown: [
|
|
531
|
-
t[0] || (t[0] = y((...a) => e.onKeyDown && e.onKeyDown(...a), ["down"])),
|
|
532
|
-
t[1] || (t[1] = y((...a) => e.onKeyUp && e.onKeyUp(...a), ["up"])),
|
|
533
|
-
t[2] || (t[2] = y((...a) => e.closeMenu && e.closeMenu(...a), ["esc"]))
|
|
534
|
-
]
|
|
535
|
-
}, [
|
|
536
|
-
k(i, V({
|
|
537
|
-
ref: "menuButtonRef",
|
|
538
|
-
"aria-haspopup": "true"
|
|
539
|
-
}, e.button, {
|
|
540
|
-
"aria-expanded": `${e.showMenu}`,
|
|
541
|
-
"aria-controls": e.showMenu ? e.menuId : null,
|
|
542
|
-
inverse: e.isInverseColorSet,
|
|
543
|
-
onClick: e.toggleShowMenu
|
|
544
|
-
}), {
|
|
545
|
-
iconLeft: M(() => [
|
|
546
|
-
q(e.$slots, "default", {}, () => [
|
|
547
|
-
k(u, {
|
|
548
|
-
title: e.$t("menuButton")
|
|
549
|
-
}, null, 8, ["title"])
|
|
550
|
-
], !0)
|
|
551
|
-
]),
|
|
552
|
-
_: 3
|
|
553
|
-
}, 16, ["aria-expanded", "aria-controls", "inverse", "onClick"]),
|
|
554
|
-
e.menuButtonRef ? (f(), w(n, {
|
|
555
|
-
key: 0,
|
|
556
|
-
id: e.menuId,
|
|
557
|
-
open: e.showMenu,
|
|
558
|
-
class: "b-menu__popover",
|
|
559
|
-
style: z(e.computedMenuWidth),
|
|
560
|
-
"target-element": e.menuButtonRef,
|
|
561
|
-
position: e.menuPosition,
|
|
562
|
-
"fixed-positioning": e.menuFixedPositioning,
|
|
563
|
-
"fallback-position": [
|
|
564
|
-
"bottom-start",
|
|
565
|
-
"bottom-end",
|
|
566
|
-
"top-start",
|
|
567
|
-
"top-end",
|
|
568
|
-
"right-start",
|
|
569
|
-
"right-end",
|
|
570
|
-
"left-start",
|
|
571
|
-
"left-end"
|
|
572
|
-
],
|
|
573
|
-
"without-space": ""
|
|
574
|
-
}, {
|
|
575
|
-
default: M(() => [
|
|
576
|
-
k(o, {
|
|
577
|
-
data: e.data,
|
|
578
|
-
"focus-last-element": e.isLastElementFocused,
|
|
579
|
-
onClose: e.closeMenu
|
|
580
|
-
}, null, 8, ["data", "focus-last-element", "onClose"])
|
|
581
|
-
]),
|
|
582
|
-
_: 1
|
|
583
|
-
}, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning"])) : K("", !0)
|
|
584
|
-
], 34)), [
|
|
585
|
-
[c, e.closeMenu]
|
|
586
|
-
]);
|
|
587
|
-
}
|
|
588
|
-
const Ze = /* @__PURE__ */ S(Ne, [["render", Re], ["__scopeId", "data-v-7849afd2"]]);
|
|
589
|
-
export {
|
|
590
|
-
Ze as B,
|
|
591
|
-
Pe as M,
|
|
592
|
-
C as a
|
|
593
|
-
};
|
|
594
|
-
//# sourceMappingURL=index.73ed22a7.js.map
|