@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,81 +1,86 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { B as
|
|
1
|
+
import { ref as $, watch as ye, computed as f, defineComponent as le, toRefs as ge, resolveComponent as O, openBlock as g, createBlock as M, resolveDynamicComponent as he, mergeProps as I, withCtx as P, createElementVNode as j, withKeys as ke, createVNode as W, toHandlers as x, createSlots as Y, renderList as G, renderSlot as U, normalizeProps as Q, guardReactiveProps as X, createElementBlock as R, toDisplayString as ae, createCommentVNode as N, normalizeClass as ee, withDirectives as H, vShow as ce, nextTick as _, toRef as E, resolveDirective as fe, createTextVNode as Ke } from "vue";
|
|
2
|
+
import { B as Fe, d as ze } from "./index.09f7f1b5.js";
|
|
3
|
+
import { D as We, a as A, b as J, c as Ue } from "./dropdown-default-textbox.a731b5fb.js";
|
|
4
|
+
import { _ as F } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
5
|
import { g as K } from "./unique-id.a2a2b458.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
8
|
-
import { a as
|
|
9
|
-
import { B as
|
|
10
|
-
import {
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { E as xe, F as Ue } from "./field-label.3c19a29a.js";
|
|
6
|
+
import { u as xe } from "./aria-label.ac9651a5.js";
|
|
7
|
+
import { u as ie } from "./i18n.6c402773.js";
|
|
8
|
+
import { u as He } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { B as D, a as je } from "./keyboard-navigation.ca47dfa8.js";
|
|
10
|
+
import { a as r, B as te, b as oe, u as qe } from "./listbox.dd9883c5.js";
|
|
11
|
+
import { B as we } from "./directive.0408e565.js";
|
|
12
|
+
import { u as Ve } from "./use-has-slot.4d98bf29.js";
|
|
13
|
+
import { a as Z } from "./index.a4a6e52f.js";
|
|
14
|
+
import { a as pe } from "./index.03605cb0.js";
|
|
15
|
+
import { E as Je, F as Ze } from "./field-label.b681234d.js";
|
|
15
16
|
import "../assets/dropdown.css";
|
|
16
|
-
var
|
|
17
|
-
const
|
|
17
|
+
var B = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(B || {});
|
|
18
|
+
const ne = {
|
|
18
19
|
"en-US": {
|
|
19
20
|
apply: "Apply",
|
|
20
21
|
cancel: "Cancel",
|
|
21
22
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
23
|
}
|
|
23
|
-
},
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
}, Ye = (e, o, i, t) => {
|
|
25
|
+
const n = $(e.value), { t: l } = ie({ messages: ne });
|
|
26
|
+
ye(e, () => {
|
|
27
|
+
n.value = e.value;
|
|
27
28
|
});
|
|
28
|
-
const
|
|
29
|
-
() => JSON.stringify(
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
29
|
+
const d = f(
|
|
30
|
+
() => JSON.stringify(n.value) === JSON.stringify(e.value)
|
|
31
|
+
), s = () => {
|
|
32
|
+
t(r.SELECT, n.value), t(r.CLOSE_DROPDOWN);
|
|
33
|
+
}, a = () => {
|
|
34
|
+
n.value = e.value, t(r.CLOSE_DROPDOWN);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
i.value && o.value && (n.value = e.value);
|
|
37
|
+
}, L = f(() => [
|
|
35
38
|
{
|
|
36
|
-
title:
|
|
37
|
-
event:
|
|
38
|
-
disabled:
|
|
39
|
+
title: l("apply"),
|
|
40
|
+
event: s,
|
|
41
|
+
disabled: d.value
|
|
39
42
|
},
|
|
40
43
|
{
|
|
41
|
-
title:
|
|
42
|
-
event:
|
|
44
|
+
title: l("cancel"),
|
|
45
|
+
event: a
|
|
43
46
|
}
|
|
44
|
-
]),
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
47
|
+
]), m = (u) => {
|
|
48
|
+
n.value = u, o.value || t(r.SELECT, u);
|
|
49
|
+
}, w = (u) => {
|
|
50
|
+
m(u), t(r.TAB);
|
|
51
|
+
}, b = (u) => {
|
|
52
|
+
m(u), t(r.ENTER);
|
|
53
|
+
}, y = (u) => {
|
|
54
|
+
m(u), t(r.SPACE);
|
|
55
|
+
}, S = () => {
|
|
56
|
+
a(), t(r.ESCAPE);
|
|
57
|
+
}, C = () => {
|
|
58
|
+
t(r.SHOW_MORE);
|
|
59
|
+
}, T = {
|
|
60
|
+
[r.SELECT]: m,
|
|
61
|
+
[r.SHOW_MORE]: C,
|
|
62
|
+
[r.TAB]: w,
|
|
63
|
+
[r.SPACE]: y,
|
|
64
|
+
[r.ENTER]: b
|
|
62
65
|
};
|
|
63
66
|
return {
|
|
64
67
|
// Values
|
|
65
|
-
actions:
|
|
66
|
-
internalSelectedValue:
|
|
68
|
+
actions: L,
|
|
69
|
+
internalSelectedValue: n,
|
|
67
70
|
// Methods
|
|
68
|
-
listeners:
|
|
69
|
-
onEscapeKey:
|
|
71
|
+
listeners: T,
|
|
72
|
+
onEscapeKey: S,
|
|
73
|
+
onOutsideDropdownClick: p
|
|
70
74
|
};
|
|
71
|
-
},
|
|
72
|
-
i18n: { messages:
|
|
75
|
+
}, Ge = le({
|
|
76
|
+
i18n: { messages: ne },
|
|
73
77
|
name: "bento-dropdown-options-container",
|
|
74
78
|
components: {
|
|
75
|
-
BentoListbox:
|
|
76
|
-
PopperContainer:
|
|
77
|
-
BentoPopover:
|
|
79
|
+
BentoListbox: te,
|
|
80
|
+
PopperContainer: Z,
|
|
81
|
+
BentoPopover: pe
|
|
78
82
|
},
|
|
83
|
+
directives: { BentoClickOutsideDirective: we },
|
|
79
84
|
props: {
|
|
80
85
|
/**
|
|
81
86
|
* Defines a string value that labels an interactive element.
|
|
@@ -118,8 +123,8 @@ const te = {
|
|
|
118
123
|
*/
|
|
119
124
|
inputSize: {
|
|
120
125
|
type: String,
|
|
121
|
-
default:
|
|
122
|
-
validator: (e) => Object.values(
|
|
126
|
+
default: B.DEFAULT,
|
|
127
|
+
validator: (e) => Object.values(B).includes(e)
|
|
123
128
|
},
|
|
124
129
|
/**
|
|
125
130
|
* The option elements to populate the dropdown with.
|
|
@@ -142,13 +147,17 @@ const te = {
|
|
|
142
147
|
*/
|
|
143
148
|
lazyLoadType: {
|
|
144
149
|
type: String,
|
|
145
|
-
default:
|
|
146
|
-
validator: (e) => Object.values(
|
|
150
|
+
default: oe.AUTOMATIC,
|
|
151
|
+
validator: (e) => Object.values(oe).includes(e)
|
|
147
152
|
},
|
|
148
153
|
/**
|
|
149
154
|
* If enabled, the user will be able to select multiple items.
|
|
150
155
|
*/
|
|
151
156
|
multiple: { type: Boolean, default: !1 },
|
|
157
|
+
/**
|
|
158
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
159
|
+
*/
|
|
160
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
152
161
|
/**
|
|
153
162
|
* Indicates if the dropdown is open so that
|
|
154
163
|
* the container can be displayed.
|
|
@@ -169,12 +178,12 @@ const te = {
|
|
|
169
178
|
*
|
|
170
179
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
171
180
|
*/
|
|
172
|
-
searching:
|
|
181
|
+
searching: te.props.searching,
|
|
173
182
|
/**
|
|
174
183
|
* Reference to the DOM element or Vue component for positioning
|
|
175
184
|
* the Dropdown container.
|
|
176
185
|
*/
|
|
177
|
-
targetElement: { type:
|
|
186
|
+
targetElement: { type: Z.props.targetElement.type, required: !0 },
|
|
178
187
|
/**
|
|
179
188
|
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
180
189
|
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
@@ -185,35 +194,31 @@ const te = {
|
|
|
185
194
|
}
|
|
186
195
|
},
|
|
187
196
|
emits: [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
r.CLOSE_DROPDOWN,
|
|
198
|
+
r.SHOW_MORE,
|
|
199
|
+
r.SELECT,
|
|
200
|
+
r.ENTER,
|
|
201
|
+
r.ESCAPE,
|
|
202
|
+
r.SPACE,
|
|
203
|
+
r.TAB
|
|
195
204
|
],
|
|
196
|
-
setup(e, { emit: o, slots:
|
|
197
|
-
const { selectedValue: t, multiple:
|
|
205
|
+
setup(e, { emit: o, slots: i }) {
|
|
206
|
+
const { selectedValue: t, multiple: n } = ge(e), l = $(null), { t: d } = ie({ messages: ne }), s = f(() => e.open && !e.disabled), a = f(() => d("noOptionsMatchThisSearch")), p = f(() => ({
|
|
198
207
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
199
|
-
})),
|
|
200
|
-
"b-dropdown-options-container__listbox--small": e.inputSize ===
|
|
208
|
+
})), L = f(() => ({
|
|
209
|
+
"b-dropdown-options-container__listbox--small": e.inputSize === B.SMALL,
|
|
201
210
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
202
|
-
})), { actions:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
), m = u(() => {
|
|
209
|
-
var p;
|
|
210
|
-
const P = {
|
|
211
|
-
"min-width": `${(p = e == null ? void 0 : e.targetElement) == null ? void 0 : p.clientWidth}px`,
|
|
211
|
+
})), { actions: m, internalSelectedValue: w, listeners: b, onEscapeKey: y, onOutsideDropdownClick: S } = Ye(t, n, s, o), C = f(
|
|
212
|
+
() => e != null && e.multiple ? pe : Z
|
|
213
|
+
), T = f(() => {
|
|
214
|
+
var c;
|
|
215
|
+
const u = {
|
|
216
|
+
"min-width": `${(c = e == null ? void 0 : e.targetElement) == null ? void 0 : c.clientWidth}px`,
|
|
212
217
|
"max-width": "min(500px, 95%)"
|
|
213
218
|
};
|
|
214
219
|
return e != null && e.multiple ? {
|
|
215
220
|
actionsLayout: "space-between",
|
|
216
|
-
actions:
|
|
221
|
+
actions: m.value,
|
|
217
222
|
divider: !0,
|
|
218
223
|
fallbackPosition: ["top-start"],
|
|
219
224
|
id: K(`dropdown-options-${e.id}`),
|
|
@@ -221,7 +226,7 @@ const te = {
|
|
|
221
226
|
position: "bottom-start",
|
|
222
227
|
style: {
|
|
223
228
|
width: "auto",
|
|
224
|
-
...
|
|
229
|
+
...u
|
|
225
230
|
},
|
|
226
231
|
targetElement: e.targetElement
|
|
227
232
|
} : {
|
|
@@ -229,42 +234,43 @@ const te = {
|
|
|
229
234
|
offset: [0, 8],
|
|
230
235
|
position: "bottom-start",
|
|
231
236
|
style: {
|
|
232
|
-
display:
|
|
233
|
-
...
|
|
237
|
+
display: s.value ? "block" : "none",
|
|
238
|
+
...u
|
|
234
239
|
},
|
|
235
240
|
targetElement: e.targetElement
|
|
236
241
|
};
|
|
237
242
|
});
|
|
238
243
|
return {
|
|
239
244
|
// Values
|
|
240
|
-
isDropdownOpen:
|
|
241
|
-
conditionalClasses:
|
|
242
|
-
conditionalListboxClasses:
|
|
243
|
-
noResultsMessage:
|
|
244
|
-
slots:
|
|
245
|
-
actions:
|
|
246
|
-
internalSelectedValue:
|
|
245
|
+
isDropdownOpen: s,
|
|
246
|
+
conditionalClasses: p,
|
|
247
|
+
conditionalListboxClasses: L,
|
|
248
|
+
noResultsMessage: a,
|
|
249
|
+
slots: i,
|
|
250
|
+
actions: m,
|
|
251
|
+
internalSelectedValue: w,
|
|
247
252
|
// Component wrapper
|
|
248
|
-
popperContainerOrPopoverComponent:
|
|
249
|
-
popperContainerOrPopoverProps:
|
|
253
|
+
popperContainerOrPopoverComponent: C,
|
|
254
|
+
popperContainerOrPopoverProps: T,
|
|
250
255
|
// Refs
|
|
251
|
-
dropdownOptionsListboxRef:
|
|
256
|
+
dropdownOptionsListboxRef: l,
|
|
252
257
|
// Events
|
|
253
|
-
onEscapeKey:
|
|
258
|
+
onEscapeKey: y,
|
|
259
|
+
onOutsideDropdownClick: S,
|
|
254
260
|
listeners: b
|
|
255
261
|
};
|
|
256
262
|
}
|
|
257
263
|
});
|
|
258
|
-
function
|
|
259
|
-
const d =
|
|
260
|
-
return
|
|
264
|
+
function Qe(e, o, i, t, n, l) {
|
|
265
|
+
const d = O("bento-listbox");
|
|
266
|
+
return g(), M(he(e.popperContainerOrPopoverComponent), I({
|
|
261
267
|
class: ["b-dropdown-options-container", e.conditionalClasses]
|
|
262
268
|
}, e.popperContainerOrPopoverProps), {
|
|
263
|
-
default:
|
|
264
|
-
|
|
265
|
-
onKeydown: o[0] || (o[0] =
|
|
269
|
+
default: P(() => [
|
|
270
|
+
j("div", {
|
|
271
|
+
onKeydown: o[0] || (o[0] = ke((...s) => e.onEscapeKey && e.onEscapeKey(...s), ["esc"]))
|
|
266
272
|
}, [
|
|
267
|
-
|
|
273
|
+
W(d, I({
|
|
268
274
|
id: e.id,
|
|
269
275
|
ref: "dropdownOptionsListboxRef",
|
|
270
276
|
"aria-label": e.ariaLabel,
|
|
@@ -274,78 +280,79 @@ function qe(e, o, n, t, a, i) {
|
|
|
274
280
|
items: e.items,
|
|
275
281
|
"selected-value": e.internalSelectedValue,
|
|
276
282
|
multiple: e.multiple,
|
|
283
|
+
"static-categories": e.staticCategories,
|
|
277
284
|
"no-results-message": e.noResultsMessage,
|
|
278
285
|
searching: e.searching,
|
|
279
286
|
loading: e.loading,
|
|
280
287
|
"lazy-load-type": e.lazyLoadType,
|
|
281
288
|
"has-more-items": e.hasMoreItems,
|
|
282
289
|
"virtual-scroll": e.virtualScroll
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
name:
|
|
286
|
-
fn:
|
|
287
|
-
|
|
290
|
+
}, x(e.listeners)), Y({ _: 2 }, [
|
|
291
|
+
G(e.slots, (s, a) => ({
|
|
292
|
+
name: a,
|
|
293
|
+
fn: P((p) => [
|
|
294
|
+
U(e.$slots, a, Q(X(p)), void 0, !0)
|
|
288
295
|
])
|
|
289
296
|
}))
|
|
290
|
-
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
297
|
+
]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
|
|
291
298
|
], 32)
|
|
292
299
|
]),
|
|
293
300
|
_: 3
|
|
294
301
|
}, 16, ["class"]);
|
|
295
302
|
}
|
|
296
|
-
const
|
|
297
|
-
let
|
|
298
|
-
const
|
|
303
|
+
const Xe = /* @__PURE__ */ F(Ge, [["render", Qe], ["__scopeId", "data-v-f073599e"]]);
|
|
304
|
+
let me = 0;
|
|
305
|
+
const et = {
|
|
299
306
|
beforeCreate() {
|
|
300
|
-
this.uuid =
|
|
307
|
+
this.uuid = me.toString(), me += 1;
|
|
301
308
|
}
|
|
302
|
-
},
|
|
309
|
+
}, tt = { key: 0 }, ot = /* @__PURE__ */ j("path", {
|
|
303
310
|
fill: "#00112C",
|
|
304
311
|
d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
|
|
305
312
|
}, null, -1);
|
|
306
|
-
function
|
|
307
|
-
return
|
|
313
|
+
function nt(e, o, i, t, n, l) {
|
|
314
|
+
return g(), R("svg", I({ role: "img" }, e.$attrs, {
|
|
308
315
|
class: "ui-assets-icons-16",
|
|
309
316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
310
317
|
width: "16",
|
|
311
318
|
height: "16",
|
|
312
319
|
fill: "none"
|
|
313
320
|
}), [
|
|
314
|
-
e.$attrs["svg-title"] ? (
|
|
315
|
-
|
|
321
|
+
e.$attrs["svg-title"] ? (g(), R("title", tt, ae(e.$attrs["svg-title"]), 1)) : N("", !0),
|
|
322
|
+
ot
|
|
316
323
|
], 16);
|
|
317
324
|
}
|
|
318
|
-
const
|
|
319
|
-
let
|
|
320
|
-
const
|
|
325
|
+
const lt = /* @__PURE__ */ F(et, [["render", nt]]);
|
|
326
|
+
let ve = 0;
|
|
327
|
+
const at = {
|
|
321
328
|
beforeCreate() {
|
|
322
|
-
this.uuid =
|
|
329
|
+
this.uuid = ve.toString(), ve += 1;
|
|
323
330
|
}
|
|
324
|
-
},
|
|
331
|
+
}, it = { key: 0 }, st = /* @__PURE__ */ j("path", {
|
|
325
332
|
fill: "#00112C",
|
|
326
333
|
d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
|
|
327
334
|
}, null, -1);
|
|
328
|
-
function
|
|
329
|
-
return
|
|
335
|
+
function rt(e, o, i, t, n, l) {
|
|
336
|
+
return g(), R("svg", I({ role: "img" }, e.$attrs, {
|
|
330
337
|
class: "ui-assets-icons-16",
|
|
331
338
|
xmlns: "http://www.w3.org/2000/svg",
|
|
332
339
|
width: "16",
|
|
333
340
|
height: "16",
|
|
334
341
|
fill: "none"
|
|
335
342
|
}), [
|
|
336
|
-
e.$attrs["svg-title"] ? (
|
|
337
|
-
|
|
343
|
+
e.$attrs["svg-title"] ? (g(), R("title", it, ae(e.$attrs["svg-title"]), 1)) : N("", !0),
|
|
344
|
+
st
|
|
338
345
|
], 16);
|
|
339
346
|
}
|
|
340
|
-
const
|
|
347
|
+
const dt = /* @__PURE__ */ F(at, [["render", rt]]), ut = le({
|
|
341
348
|
name: "dropdown-small-textbox",
|
|
342
|
-
components: { ChevronDownSmallIcon:
|
|
349
|
+
components: { ChevronDownSmallIcon: lt, ChevronUpSmallIcon: dt, DropdownBaseTextbox: We },
|
|
343
350
|
inheritAttrs: !1,
|
|
344
351
|
props: {
|
|
345
352
|
/**
|
|
346
353
|
* The number of additional items that have been selected in the dropdown.
|
|
347
354
|
*/
|
|
348
|
-
additionalItemsSelected: { type: Number, default: 0 },
|
|
355
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
349
356
|
/**
|
|
350
357
|
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
351
358
|
*/
|
|
@@ -411,43 +418,43 @@ const nt = /* @__PURE__ */ k(Xe, [["render", ot]]), lt = oe({
|
|
|
411
418
|
*/
|
|
412
419
|
value: { type: String, default: "" }
|
|
413
420
|
},
|
|
414
|
-
emits: [
|
|
421
|
+
emits: [A.OPEN, A.CLOSE],
|
|
415
422
|
setup(e, { emit: o }) {
|
|
416
|
-
const
|
|
417
|
-
[`b-dropdown-small-textbox--${
|
|
418
|
-
[`b-dropdown-small-textbox--${
|
|
419
|
-
[`b-dropdown-small-textbox--${
|
|
420
|
-
})), t =
|
|
421
|
-
o(
|
|
422
|
-
},
|
|
423
|
-
o(
|
|
423
|
+
const i = f(() => ({
|
|
424
|
+
[`b-dropdown-small-textbox--${J.DISABLED}`]: e.disabled,
|
|
425
|
+
[`b-dropdown-small-textbox--${J.READONLY}`]: e.readonly,
|
|
426
|
+
[`b-dropdown-small-textbox--${J.OPENED}`]: e.open
|
|
427
|
+
})), t = f(() => e.open && !e.disabled && !e.readonly), n = () => {
|
|
428
|
+
o(A.OPEN);
|
|
429
|
+
}, l = () => {
|
|
430
|
+
o(A.CLOSE);
|
|
424
431
|
}, d = {
|
|
425
|
-
[
|
|
426
|
-
[
|
|
432
|
+
[A.OPEN]: n,
|
|
433
|
+
[A.CLOSE]: l
|
|
427
434
|
};
|
|
428
435
|
return {
|
|
429
436
|
// Values
|
|
430
|
-
conditionalClasses:
|
|
437
|
+
conditionalClasses: i,
|
|
431
438
|
isDropdownOpen: t,
|
|
432
439
|
// Events
|
|
433
440
|
listeners: d
|
|
434
441
|
};
|
|
435
442
|
}
|
|
436
443
|
});
|
|
437
|
-
const
|
|
438
|
-
function
|
|
439
|
-
const d =
|
|
440
|
-
return
|
|
441
|
-
class:
|
|
444
|
+
const ct = { class: "b-dropdown-small-textbox__chevron" };
|
|
445
|
+
function ft(e, o, i, t, n, l) {
|
|
446
|
+
const d = O("chevron-up-small-icon"), s = O("chevron-down-small-icon"), a = O("dropdown-base-textbox");
|
|
447
|
+
return g(), R("div", {
|
|
448
|
+
class: ee(["b-dropdown-small-textbox", e.conditionalClasses])
|
|
442
449
|
}, [
|
|
443
|
-
|
|
444
|
-
icon:
|
|
445
|
-
|
|
446
|
-
W(
|
|
447
|
-
[
|
|
450
|
+
W(a, I({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, x(e.listeners)), {
|
|
451
|
+
icon: P(() => [
|
|
452
|
+
j("div", ct, [
|
|
453
|
+
H(W(d, { "svg-title": "opened" }, null, 512), [
|
|
454
|
+
[ce, e.isDropdownOpen]
|
|
448
455
|
]),
|
|
449
|
-
W(
|
|
450
|
-
[
|
|
456
|
+
H(W(s, { "svg-title": "closed" }, null, 512), [
|
|
457
|
+
[ce, !e.isDropdownOpen]
|
|
451
458
|
])
|
|
452
459
|
])
|
|
453
460
|
]),
|
|
@@ -455,131 +462,142 @@ function it(e, o, n, t, a, i) {
|
|
|
455
462
|
}, 16)
|
|
456
463
|
], 2);
|
|
457
464
|
}
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
465
|
+
const pt = /* @__PURE__ */ F(ut, [["render", ft], ["__scopeId", "data-v-36f61648"]]), mt = ({ items: e, placeholder: o, selectedValue: i, staticCategories: t }) => {
|
|
466
|
+
let n;
|
|
467
|
+
if (t) {
|
|
468
|
+
const l = e.value.find((d) => d.items.some((s) => s.value === i.value));
|
|
469
|
+
n = l == null ? void 0 : l.items.find((d) => d.value === i.value);
|
|
470
|
+
} else
|
|
471
|
+
n = e.value.find(({ value: l }) => l === i.value);
|
|
472
|
+
return (n == null ? void 0 : n.label) || o.value || null;
|
|
473
|
+
}, vt = ({ selectedValues: e, items: o, placeholder: i }) => {
|
|
462
474
|
var t;
|
|
463
|
-
return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ?
|
|
464
|
-
const { label:
|
|
465
|
-
return
|
|
475
|
+
return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? i.value || null : e.value.map((n) => {
|
|
476
|
+
const { label: l } = o.value.find(({ value: d }) => d === n);
|
|
477
|
+
return l;
|
|
466
478
|
}).join(", ");
|
|
467
|
-
},
|
|
479
|
+
}, bt = ({ selectedValues: e, items: o, placeholder: i }) => {
|
|
468
480
|
var t;
|
|
469
|
-
return !e.value || !((t = e.value) != null && t.length) ?
|
|
470
|
-
if (
|
|
471
|
-
const d =
|
|
472
|
-
(
|
|
481
|
+
return !e.value || !((t = e.value) != null && t.length) ? i.value || null : o.value.reduce((n, l) => {
|
|
482
|
+
if (l.items) {
|
|
483
|
+
const d = l.items.filter(
|
|
484
|
+
(a) => e.value.includes(a.value)
|
|
473
485
|
);
|
|
474
|
-
d.length ===
|
|
486
|
+
d.length === l.items.length ? n.push(l.label) : d.forEach(({ label: a }) => n.push(a));
|
|
475
487
|
}
|
|
476
|
-
return e.value.includes(
|
|
488
|
+
return e.value.includes(l.value) && n.push(l.label), n;
|
|
477
489
|
}, []).join(", ");
|
|
478
|
-
},
|
|
479
|
-
const
|
|
480
|
-
var
|
|
481
|
-
return (
|
|
490
|
+
}, yt = ({ items: e, placeholder: o, value: i, multiple: t, staticCategories: n }) => {
|
|
491
|
+
const l = f(() => e.value.find((s) => {
|
|
492
|
+
var a;
|
|
493
|
+
return (a = s.items) == null ? void 0 : a.length;
|
|
482
494
|
}));
|
|
483
|
-
return
|
|
484
|
-
|
|
495
|
+
return f(() => t.value ? l.value ? bt({ selectedValues: i, placeholder: o, items: e }) : vt({ selectedValues: i, items: e, placeholder: o }) : mt({
|
|
496
|
+
items: e,
|
|
497
|
+
placeholder: o,
|
|
498
|
+
selectedValue: i,
|
|
499
|
+
staticCategories: n.value
|
|
500
|
+
}));
|
|
501
|
+
}, Se = (e) => {
|
|
485
502
|
var o;
|
|
486
503
|
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
487
|
-
},
|
|
504
|
+
}, gt = ({
|
|
488
505
|
inputContainerRef: e,
|
|
489
506
|
optionsContainerRef: o,
|
|
490
|
-
selectedValueIndex:
|
|
507
|
+
selectedValueIndex: i,
|
|
491
508
|
isDropdownOpen: t,
|
|
492
|
-
isDynamicFltering:
|
|
493
|
-
items:
|
|
509
|
+
isDynamicFltering: n,
|
|
510
|
+
items: l,
|
|
494
511
|
isMultiple: d
|
|
495
|
-
},
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
var c,
|
|
499
|
-
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (
|
|
512
|
+
}, s, a, p) => {
|
|
513
|
+
const L = ({ detail: u }) => {
|
|
514
|
+
u.preventDefault(), t.value || (a(), _(() => {
|
|
515
|
+
var c, h;
|
|
516
|
+
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || h[i.value].$el.focus();
|
|
500
517
|
}));
|
|
501
|
-
},
|
|
502
|
-
|
|
518
|
+
}, m = ({ detail: u }) => {
|
|
519
|
+
u.preventDefault(), t.value || (a(), _(() => {
|
|
503
520
|
var c;
|
|
504
521
|
(c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
|
|
505
522
|
}));
|
|
506
|
-
},
|
|
507
|
-
t.value || (
|
|
508
|
-
var
|
|
523
|
+
}, w = () => {
|
|
524
|
+
t.value || (a(), _(() => {
|
|
525
|
+
var u, c;
|
|
509
526
|
if (d) {
|
|
510
|
-
const
|
|
511
|
-
(
|
|
527
|
+
const h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
528
|
+
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[h.length - 1].$children[l.length - 1].$el.focus();
|
|
512
529
|
} else
|
|
513
|
-
(c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[
|
|
530
|
+
(c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[l.length - 1].$el.focus();
|
|
514
531
|
}));
|
|
515
532
|
}, b = () => {
|
|
516
|
-
t.value && (
|
|
517
|
-
},
|
|
518
|
-
t.value ||
|
|
519
|
-
var
|
|
520
|
-
(
|
|
533
|
+
t.value && (p(), Se(e));
|
|
534
|
+
}, y = () => {
|
|
535
|
+
t.value || a(), _(() => {
|
|
536
|
+
var u;
|
|
537
|
+
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
|
|
521
538
|
});
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
var c,
|
|
525
|
-
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (
|
|
539
|
+
}, S = ({ detail: u }) => {
|
|
540
|
+
u.preventDefault(), s(), t.value && _(() => {
|
|
541
|
+
var c, h;
|
|
542
|
+
d ? (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (h = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || h[i.value].$el.focus();
|
|
526
543
|
});
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
d ? (
|
|
544
|
+
}, C = () => {
|
|
545
|
+
s(), t.value && _(() => {
|
|
546
|
+
var u, c;
|
|
547
|
+
d ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (c = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[i.value].$el.focus();
|
|
531
548
|
});
|
|
532
549
|
};
|
|
533
|
-
return
|
|
534
|
-
...
|
|
535
|
-
[
|
|
536
|
-
[
|
|
537
|
-
[
|
|
538
|
-
[
|
|
539
|
-
[
|
|
540
|
-
[
|
|
550
|
+
return f(() => ({
|
|
551
|
+
...n.value ? {} : { [D.SPACE]: S },
|
|
552
|
+
[D.ENTER]: C,
|
|
553
|
+
[D.ARROW_DOWN]: L,
|
|
554
|
+
[D.ARROW_UP]: m,
|
|
555
|
+
[D.END]: w,
|
|
556
|
+
[D.ESCAPE]: b,
|
|
557
|
+
[D.HOME]: y
|
|
541
558
|
}));
|
|
542
|
-
},
|
|
559
|
+
}, ht = ({ inputContainerRef: e, isDropdownOpen: o }, i) => {
|
|
543
560
|
const t = () => {
|
|
544
|
-
o.value &&
|
|
545
|
-
|
|
561
|
+
o.value && i(), _(() => {
|
|
562
|
+
Se(e);
|
|
546
563
|
});
|
|
547
564
|
};
|
|
548
565
|
return {
|
|
549
|
-
[
|
|
550
|
-
[
|
|
551
|
-
[
|
|
552
|
-
[
|
|
566
|
+
[r.ENTER]: t,
|
|
567
|
+
[r.ESCAPE]: t,
|
|
568
|
+
[r.TAB]: t,
|
|
569
|
+
[r.SPACE]: t
|
|
553
570
|
};
|
|
554
571
|
};
|
|
555
|
-
function
|
|
556
|
-
const t =
|
|
557
|
-
return
|
|
558
|
-
|
|
559
|
-
}),
|
|
560
|
-
if (!t.value ||
|
|
561
|
-
return
|
|
562
|
-
const
|
|
563
|
-
return
|
|
572
|
+
function wt(e, o, i) {
|
|
573
|
+
const t = $(e), n = $(o), l = (s, a = []) => a.flatMap((p) => p.label.toLocaleLowerCase().includes(s) ? [p, ...l(s, p.items)] : p.items ? [...l(s, p.items)] : []);
|
|
574
|
+
return ye(t, () => {
|
|
575
|
+
i !== void 0 && i(t.value);
|
|
576
|
+
}), f(() => {
|
|
577
|
+
if (!t.value || i !== void 0)
|
|
578
|
+
return n.value;
|
|
579
|
+
const s = t.value.toLocaleLowerCase();
|
|
580
|
+
return l(s, n.value);
|
|
564
581
|
});
|
|
565
582
|
}
|
|
566
|
-
const
|
|
583
|
+
const be = {
|
|
567
584
|
"en-US": {
|
|
585
|
+
all: "All",
|
|
568
586
|
clearSearch: "Clear filter",
|
|
569
587
|
ariaLabelFallback: "Dropdown"
|
|
570
588
|
}
|
|
571
|
-
},
|
|
572
|
-
i18n: { messages:
|
|
589
|
+
}, St = le({
|
|
590
|
+
i18n: { messages: be },
|
|
573
591
|
name: "b-dropdown",
|
|
574
592
|
components: {
|
|
575
|
-
BentoDropdownOptionsContainer:
|
|
576
|
-
BentoTypography:
|
|
577
|
-
DropdownInputDefault:
|
|
578
|
-
DropdownInputSmall:
|
|
579
|
-
ErrorMessage:
|
|
580
|
-
FieldLabel:
|
|
593
|
+
BentoDropdownOptionsContainer: Xe,
|
|
594
|
+
BentoTypography: Fe,
|
|
595
|
+
DropdownInputDefault: Ue,
|
|
596
|
+
DropdownInputSmall: pt,
|
|
597
|
+
ErrorMessage: Je,
|
|
598
|
+
FieldLabel: Ze
|
|
581
599
|
},
|
|
582
|
-
directives: { BentoClickOutsideDirective:
|
|
600
|
+
directives: { BentoClickOutsideDirective: we, BentoKeyboardNavigationDirective: je },
|
|
583
601
|
props: {
|
|
584
602
|
/**
|
|
585
603
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -673,8 +691,8 @@ const me = {
|
|
|
673
691
|
*/
|
|
674
692
|
lazyLoadType: {
|
|
675
693
|
type: String,
|
|
676
|
-
default:
|
|
677
|
-
validator: (e) => Object.values(
|
|
694
|
+
default: te.props.lazyLoadType.default,
|
|
695
|
+
validator: (e) => Object.values(oe).includes(e)
|
|
678
696
|
},
|
|
679
697
|
/*
|
|
680
698
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -702,13 +720,17 @@ const me = {
|
|
|
702
720
|
*/
|
|
703
721
|
size: {
|
|
704
722
|
type: String,
|
|
705
|
-
default:
|
|
706
|
-
validator: (e) => Object.values(
|
|
723
|
+
default: B.DEFAULT,
|
|
724
|
+
validator: (e) => Object.values(B).includes(e)
|
|
707
725
|
},
|
|
708
726
|
/**
|
|
709
727
|
* Adds a info icon next to the label to display the passed tooltip message.
|
|
710
728
|
*/
|
|
711
729
|
tooltipText: { type: String, default: null },
|
|
730
|
+
/**
|
|
731
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
732
|
+
*/
|
|
733
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
712
734
|
/**
|
|
713
735
|
* The `input` value.
|
|
714
736
|
* Providing an empty string will select no options.
|
|
@@ -735,73 +757,86 @@ const me = {
|
|
|
735
757
|
default: void 0
|
|
736
758
|
}
|
|
737
759
|
},
|
|
738
|
-
emits: ["input",
|
|
739
|
-
setup(e, { attrs: o, emit:
|
|
740
|
-
var
|
|
741
|
-
const { t:
|
|
742
|
-
ariaLabel:
|
|
760
|
+
emits: ["input", r.SHOW_MORE],
|
|
761
|
+
setup(e, { attrs: o, emit: i, slots: t }) {
|
|
762
|
+
var ue;
|
|
763
|
+
const { t: n } = ie({ messages: be }), l = $(null), d = $(null), s = $(null), a = $(!1), p = K("bento-dropdown-options-container"), L = K("dropdown-label"), m = K("dropdown-description"), w = K("dropdown-error"), { isReadOnly: b } = He(E(e, "readonly")), y = $(o["aria-label"]), { ariaLabel: S } = ge(e), C = xe({
|
|
764
|
+
ariaLabel: y.value,
|
|
743
765
|
// TODO: take this line away when the aria-label props is removed
|
|
744
|
-
label:
|
|
745
|
-
defaultFallback:
|
|
746
|
-
}),
|
|
766
|
+
label: S,
|
|
767
|
+
defaultFallback: n("ariaLabelFallback")
|
|
768
|
+
}), T = f(() => ({
|
|
747
769
|
"b-dropdown--condensed": e.condensed
|
|
748
|
-
})),
|
|
770
|
+
})), u = f(() => ({
|
|
749
771
|
"b-dropdown__description--error": !!e.errorMessage
|
|
750
|
-
})), c =
|
|
751
|
-
items:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
772
|
+
})), c = $(""), h = E(e, "items"), $e = wt(c, h, (ue = e == null ? void 0 : e.search) == null ? void 0 : ue.searchEvent), q = f(() => e.dynamicFiltering && !!c.value), Le = yt({
|
|
773
|
+
items: h,
|
|
774
|
+
staticCategories: E(e, "staticCategories"),
|
|
775
|
+
multiple: E(e, "multiple"),
|
|
776
|
+
placeholder: E(e, "placeholder"),
|
|
777
|
+
value: E(e, "value")
|
|
778
|
+
}), Oe = f(() => e.size === B.DEFAULT), Ce = f(() => {
|
|
779
|
+
if (e != null && e.multiple)
|
|
780
|
+
return e.items.filter(
|
|
781
|
+
({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
|
|
782
|
+
);
|
|
783
|
+
if (!e.multiple && e.staticCategories) {
|
|
784
|
+
const v = e.items.find(
|
|
785
|
+
(z) => z.items.some((Pe) => Pe.value === e.value)
|
|
786
|
+
);
|
|
787
|
+
return v ? v.items.find((z) => z.value === e.value) : null;
|
|
788
|
+
}
|
|
789
|
+
return e.items.find(({ value: v }) => v === (e == null ? void 0 : e.value));
|
|
790
|
+
}), Ee = f(() => {
|
|
791
|
+
const v = e.items.findIndex(({ value: k }) => e.value === k);
|
|
792
|
+
return v > 0 ? v : 0;
|
|
793
|
+
}), { isMultiLevelSelect: De, flattenedItemsList: _e } = qe(h), Be = f(() => {
|
|
794
|
+
var v;
|
|
795
|
+
if (e.multiple) {
|
|
796
|
+
const k = (v = e == null ? void 0 : e.value) == null ? void 0 : v.length;
|
|
797
|
+
return (De.value ? _e.value.length : h.value.length) === k ? n("all") : k;
|
|
798
|
+
}
|
|
799
|
+
return null;
|
|
800
|
+
}), Ie = f(
|
|
801
|
+
() => `${e.description ? m : ""} ${e.errorMessage ? w : ""}`.trim() || null
|
|
802
|
+
), Re = () => {
|
|
803
|
+
b.value || (a.value = !0);
|
|
804
|
+
}, V = () => {
|
|
805
|
+
a.value = !1;
|
|
777
806
|
}, se = () => {
|
|
778
|
-
|
|
779
|
-
},
|
|
807
|
+
b.value || (a.value = !a.value, q.value && (c.value = ""));
|
|
808
|
+
}, Te = () => {
|
|
809
|
+
q.value && (c.value = ""), a.value && (a.value = !1, s.value.onOutsideDropdownClick());
|
|
810
|
+
}, re = (v) => {
|
|
811
|
+
e.multiple || (c.value = "", a.value = !1), i("input", v);
|
|
812
|
+
}, de = () => {
|
|
813
|
+
i(r.SHOW_MORE);
|
|
814
|
+
}, Ae = gt(
|
|
780
815
|
{
|
|
781
|
-
inputContainerRef:
|
|
782
|
-
optionsContainerRef:
|
|
783
|
-
selectedValueIndex:
|
|
784
|
-
isDropdownOpen:
|
|
785
|
-
isDynamicFltering:
|
|
816
|
+
inputContainerRef: l,
|
|
817
|
+
optionsContainerRef: s,
|
|
818
|
+
selectedValueIndex: Ee,
|
|
819
|
+
isDropdownOpen: a,
|
|
820
|
+
isDynamicFltering: E(e, "dynamicFiltering"),
|
|
786
821
|
items: e.items,
|
|
787
822
|
isMultiple: e.multiple
|
|
788
823
|
},
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
),
|
|
824
|
+
se,
|
|
825
|
+
Re,
|
|
826
|
+
V
|
|
827
|
+
), Me = ht(
|
|
793
828
|
{
|
|
794
|
-
inputContainerRef:
|
|
795
|
-
isDropdownOpen:
|
|
829
|
+
inputContainerRef: l,
|
|
830
|
+
isDropdownOpen: a
|
|
796
831
|
},
|
|
797
|
-
|
|
798
|
-
),
|
|
799
|
-
[
|
|
800
|
-
[
|
|
801
|
-
[
|
|
802
|
-
...
|
|
832
|
+
V
|
|
833
|
+
), Ne = {
|
|
834
|
+
[r.CLOSE_DROPDOWN]: V,
|
|
835
|
+
[r.SELECT]: re,
|
|
836
|
+
[r.SHOW_MORE]: de,
|
|
837
|
+
...Me
|
|
803
838
|
};
|
|
804
|
-
return e.error &&
|
|
839
|
+
return e.error && ze(
|
|
805
840
|
'BentoDropdown "error" property',
|
|
806
841
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
807
842
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -809,49 +844,51 @@ const me = {
|
|
|
809
844
|
"2.0.0"
|
|
810
845
|
), {
|
|
811
846
|
// Values
|
|
812
|
-
conditionalClasses:
|
|
813
|
-
computedAriaLabel:
|
|
814
|
-
additionalItemsSelected:
|
|
815
|
-
idDefaultSize:
|
|
816
|
-
isDropdownOpen:
|
|
817
|
-
displayValue:
|
|
818
|
-
dropdownOptionsContainerId:
|
|
819
|
-
filteredItems:
|
|
820
|
-
isSearching:
|
|
847
|
+
conditionalClasses: T,
|
|
848
|
+
computedAriaLabel: C,
|
|
849
|
+
additionalItemsSelected: Be,
|
|
850
|
+
idDefaultSize: Oe,
|
|
851
|
+
isDropdownOpen: a,
|
|
852
|
+
displayValue: Le,
|
|
853
|
+
dropdownOptionsContainerId: p,
|
|
854
|
+
filteredItems: $e,
|
|
855
|
+
isSearching: q,
|
|
821
856
|
isReadOnly: b,
|
|
822
857
|
searchTerm: c,
|
|
823
|
-
labelId:
|
|
824
|
-
descriptionId:
|
|
825
|
-
errorId:
|
|
826
|
-
ariaDescribedBy:
|
|
827
|
-
selectedValueItem:
|
|
858
|
+
labelId: L,
|
|
859
|
+
descriptionId: m,
|
|
860
|
+
errorId: w,
|
|
861
|
+
ariaDescribedBy: Ie,
|
|
862
|
+
selectedValueItem: Ce,
|
|
828
863
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
829
864
|
// The setup method and the "useSlots" composible define
|
|
830
865
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
831
866
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
832
867
|
slots: t,
|
|
833
|
-
descriptionConditionalClasses:
|
|
868
|
+
descriptionConditionalClasses: u,
|
|
869
|
+
// Methods
|
|
870
|
+
hasSlot: Ve(t),
|
|
834
871
|
// Refs
|
|
835
|
-
inputContainerRef:
|
|
872
|
+
inputContainerRef: l,
|
|
836
873
|
inputContainerRefWrapper: d,
|
|
837
|
-
optionsContainerRef:
|
|
874
|
+
optionsContainerRef: s,
|
|
838
875
|
// Events
|
|
839
|
-
|
|
840
|
-
toggleDropdown:
|
|
841
|
-
onOptionSelected:
|
|
842
|
-
emitShowMoreEvent:
|
|
843
|
-
textboxKeyboardNavigationListeners:
|
|
844
|
-
listboxListeners:
|
|
876
|
+
clickOutsideDropdown: Te,
|
|
877
|
+
toggleDropdown: se,
|
|
878
|
+
onOptionSelected: re,
|
|
879
|
+
emitShowMoreEvent: de,
|
|
880
|
+
textboxKeyboardNavigationListeners: Ae,
|
|
881
|
+
listboxListeners: Ne
|
|
845
882
|
};
|
|
846
883
|
}
|
|
847
884
|
});
|
|
848
|
-
function
|
|
849
|
-
var
|
|
850
|
-
const d =
|
|
851
|
-
return
|
|
852
|
-
class:
|
|
885
|
+
function $t(e, o, i, t, n, l) {
|
|
886
|
+
var w;
|
|
887
|
+
const d = O("field-label"), s = O("bento-dropdown-options-container"), a = O("error-message"), p = O("bento-typography"), L = fe("bento-keyboard-navigation-directive"), m = fe("bento-click-outside-directive");
|
|
888
|
+
return H((g(), R("div", {
|
|
889
|
+
class: ee(["b-dropdown", e.conditionalClasses])
|
|
853
890
|
}, [
|
|
854
|
-
e.label ? (
|
|
891
|
+
e.label ? (g(), M(d, {
|
|
855
892
|
key: 0,
|
|
856
893
|
id: e.labelId,
|
|
857
894
|
condensed: e.condensed,
|
|
@@ -860,8 +897,8 @@ function vt(e, o, n, t, a, i) {
|
|
|
860
897
|
optional: e.optional,
|
|
861
898
|
required: e.required
|
|
862
899
|
}, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : N("", !0),
|
|
863
|
-
|
|
864
|
-
(
|
|
900
|
+
H((g(), R("div", I({ ref: "inputContainerRefWrapper" }, x(e.textboxKeyboardNavigationListeners, !0)), [
|
|
901
|
+
(g(), M(he(e.size), {
|
|
865
902
|
ref: "inputContainerRef",
|
|
866
903
|
condensed: e.condensed,
|
|
867
904
|
value: e.searchTerm,
|
|
@@ -884,29 +921,30 @@ function vt(e, o, n, t, a, i) {
|
|
|
884
921
|
onInput: o[0] || (o[0] = (b) => e.searchTerm = b),
|
|
885
922
|
onOpen: e.toggleDropdown,
|
|
886
923
|
onClose: e.toggleDropdown
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
name:
|
|
890
|
-
fn:
|
|
891
|
-
|
|
924
|
+
}, Y({ _: 2 }, [
|
|
925
|
+
G(e.slots, (b, y) => ({
|
|
926
|
+
name: y,
|
|
927
|
+
fn: P((S) => [
|
|
928
|
+
U(e.$slots, y, Q(X(S)), void 0, !0)
|
|
892
929
|
])
|
|
893
930
|
}))
|
|
894
931
|
]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
|
|
895
932
|
], 16)), [
|
|
896
|
-
[
|
|
933
|
+
[L]
|
|
897
934
|
]),
|
|
898
|
-
e.inputContainerRef ? (
|
|
935
|
+
e.inputContainerRef ? (g(), M(s, I({
|
|
899
936
|
key: 1,
|
|
900
937
|
id: e.dropdownOptionsContainerId,
|
|
901
938
|
ref: "optionsContainerRef",
|
|
902
939
|
"aria-label": e.computedAriaLabel,
|
|
903
940
|
"empty-state": e.emptyState,
|
|
904
|
-
"debounce-time": (
|
|
941
|
+
"debounce-time": (w = e.search) == null ? void 0 : w.debounceTime,
|
|
905
942
|
disabled: e.disabled,
|
|
906
943
|
"input-size": e.size,
|
|
907
944
|
"is-option-disabled": e.isOptionDisabled,
|
|
908
945
|
items: e.filteredItems,
|
|
909
946
|
multiple: e.multiple,
|
|
947
|
+
"static-categories": e.staticCategories,
|
|
910
948
|
open: e.isDropdownOpen,
|
|
911
949
|
"selected-value": e.value,
|
|
912
950
|
searching: e.isSearching,
|
|
@@ -915,39 +953,41 @@ function vt(e, o, n, t, a, i) {
|
|
|
915
953
|
"has-more-items": e.hasMoreItems,
|
|
916
954
|
"lazy-load-type": e.lazyLoadType,
|
|
917
955
|
"virtual-scroll": e.virtualScroll
|
|
918
|
-
},
|
|
919
|
-
|
|
920
|
-
name:
|
|
921
|
-
fn:
|
|
922
|
-
|
|
956
|
+
}, x(e.listboxListeners)), Y({ _: 2 }, [
|
|
957
|
+
G(e.slots, (b, y) => ({
|
|
958
|
+
name: y,
|
|
959
|
+
fn: P((S) => [
|
|
960
|
+
U(e.$slots, y, Q(X(S)), void 0, !0)
|
|
923
961
|
])
|
|
924
962
|
}))
|
|
925
|
-
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : N("", !0),
|
|
926
|
-
e.errorMessage ? (
|
|
963
|
+
]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : N("", !0),
|
|
964
|
+
e.errorMessage ? (g(), M(a, {
|
|
927
965
|
key: 2,
|
|
928
966
|
id: e.errorId,
|
|
929
967
|
"error-message": e.errorMessage,
|
|
930
968
|
class: "b-dropdown__error-message"
|
|
931
969
|
}, null, 8, ["id", "error-message"])) : N("", !0),
|
|
932
|
-
e.description ? (
|
|
970
|
+
e.description || e.hasSlot("description") ? (g(), M(p, {
|
|
933
971
|
key: 3,
|
|
934
972
|
id: e.descriptionId,
|
|
935
|
-
class:
|
|
973
|
+
class: ee(["b-dropdown__description", e.descriptionConditionalClasses]),
|
|
936
974
|
el: "span"
|
|
937
975
|
}, {
|
|
938
|
-
default:
|
|
939
|
-
|
|
976
|
+
default: P(() => [
|
|
977
|
+
U(e.$slots, "description", {}, () => [
|
|
978
|
+
Ke(ae(e.description), 1)
|
|
979
|
+
], !0)
|
|
940
980
|
]),
|
|
941
|
-
_:
|
|
981
|
+
_: 3
|
|
942
982
|
}, 8, ["id", "class"])) : N("", !0)
|
|
943
983
|
], 2)), [
|
|
944
|
-
[
|
|
984
|
+
[m, e.clickOutsideDropdown]
|
|
945
985
|
]);
|
|
946
986
|
}
|
|
947
|
-
const
|
|
987
|
+
const Kt = /* @__PURE__ */ F(St, [["render", $t], ["__scopeId", "data-v-fbd05464"]]);
|
|
948
988
|
export {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
989
|
+
Kt as B,
|
|
990
|
+
B as a,
|
|
991
|
+
wt as u
|
|
952
992
|
};
|
|
953
|
-
//# sourceMappingURL=dropdown.
|
|
993
|
+
//# sourceMappingURL=dropdown.96431c25.js.map
|