@adyen/bento-vue2 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 +19 -3580
- 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 +20 -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 +16 -7
- package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -1
- 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 +10 -0
- 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/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
- 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 +1598 -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/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -0
- 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 +82 -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 +12 -3
- 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 +251 -3
- 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 +19 -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 +20 -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 +16 -3
- 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 +8 -8
- 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/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/index15.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/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 -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/index8.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/button.js +19 -17
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/checkbox.js +61 -48
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.df9a9bea.js → base-button.bd61ab14.js} +2 -2
- package/dist/chunks/{base-button.df9a9bea.js.map → base-button.bd61ab14.js.map} +1 -1
- package/dist/chunks/{base-modal.75319f4e.js → base-modal.5640a66a.js} +33 -33
- package/dist/chunks/base-modal.5640a66a.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.32770485.js → button-actions-with-menu.767344df.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.32770485.js.map → button-actions-with-menu.767344df.js.map} +1 -1
- package/dist/chunks/button.bb5b4909.js +100 -0
- package/dist/chunks/button.bb5b4909.js.map +1 -0
- package/dist/chunks/{calendar.a885d8fc.js → calendar.4ab3c2dc.js} +4 -4
- package/dist/chunks/{calendar.a885d8fc.js.map → calendar.4ab3c2dc.js.map} +1 -1
- package/dist/chunks/checkbox.c684c20a.js +188 -0
- package/dist/chunks/checkbox.c684c20a.js.map +1 -0
- package/dist/chunks/{controls-group.dd967ccf.js → controls-group.d25f5044.js} +15 -11
- package/dist/chunks/controls-group.d25f5044.js.map +1 -0
- package/dist/chunks/copy.36c058e9.js +122 -0
- package/dist/chunks/copy.36c058e9.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/{cross-circle-fill.7c07d16a.js → cross-circle-fill.27580c4b.js} +5 -5
- package/dist/chunks/{cross-circle-fill.7c07d16a.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.465db4d4.js → dropdown-default-textbox.1cba89ea.js} +11 -11
- package/dist/chunks/dropdown-default-textbox.1cba89ea.js.map +1 -0
- package/dist/chunks/{dropdown.6461dbe3.js → dropdown.4152cc00.js} +351 -313
- package/dist/chunks/dropdown.4152cc00.js.map +1 -0
- package/dist/chunks/{field-label.01df3cba.js → field-label.a0c54b7d.js} +5 -5
- package/dist/chunks/{field-label.01df3cba.js.map → field-label.a0c54b7d.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.42354ccc.js → fixed-scroller.5c90f692.js} +2 -2
- package/dist/chunks/{fixed-scroller.42354ccc.js.map → fixed-scroller.5c90f692.js.map} +1 -1
- package/dist/chunks/{footer-actions.2cd9079e.js → footer-actions.b14cfca8.js} +3 -3
- package/dist/chunks/{footer-actions.2cd9079e.js.map → footer-actions.b14cfca8.js.map} +1 -1
- package/dist/chunks/{index.16914bb1.js → index.179d485c.js} +29 -29
- package/dist/chunks/{index.16914bb1.js.map → index.179d485c.js.map} +1 -1
- package/dist/chunks/index.1e8c900a.js +32 -0
- package/dist/chunks/index.1e8c900a.js.map +1 -0
- package/dist/chunks/{index.152b2b16.js → index.58282364.js} +3 -3
- package/dist/chunks/{index.152b2b16.js.map → index.58282364.js.map} +1 -1
- package/dist/chunks/{index.322692c8.js → index.720f0cbf.js} +2 -2
- package/dist/chunks/{index.322692c8.js.map → index.720f0cbf.js.map} +1 -1
- package/dist/chunks/index.75f0e99f.js +147 -0
- package/dist/chunks/index.75f0e99f.js.map +1 -0
- package/dist/chunks/{index.6cef7328.js → index.7d2ea1de.js} +2 -2
- package/dist/chunks/{index.6cef7328.js.map → index.7d2ea1de.js.map} +1 -1
- package/dist/chunks/{index.02da8d63.js → index.aaedd8f9.js} +3 -3
- package/dist/chunks/{index.02da8d63.js.map → index.aaedd8f9.js.map} +1 -1
- package/dist/chunks/{index.b201e81d.js → index.b0a89960.js} +22 -22
- package/dist/chunks/index.b0a89960.js.map +1 -0
- package/dist/chunks/{index.d1beb704.js → index.f18f79eb.js} +5 -5
- package/dist/chunks/{index.d1beb704.js.map → index.f18f79eb.js.map} +1 -1
- package/dist/chunks/{index.f358c4bd.js → index.f2223abb.js} +163 -155
- package/dist/chunks/index.f2223abb.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.55cd9c16.js → listbox-option-tag.9103c011.js} +3 -3
- package/dist/chunks/{listbox-option-tag.55cd9c16.js.map → listbox-option-tag.9103c011.js.map} +1 -1
- package/dist/chunks/{listbox.a117e6d4.js → listbox.7cf6d6b4.js} +475 -392
- package/dist/chunks/listbox.7cf6d6b4.js.map +1 -0
- package/dist/chunks/{loading-button.459b9ab4.js → loading-button.fb025a2e.js} +20 -20
- package/dist/chunks/{loading-button.459b9ab4.js.map → loading-button.fb025a2e.js.map} +1 -1
- package/dist/chunks/{tooltip.b8929659.js → tooltip.f48beb54.js} +22 -22
- package/dist/chunks/tooltip.f48beb54.js.map +1 -0
- package/dist/chunks/use-has-slot.fbeb19ec.js.map +1 -1
- package/dist/chunks/useCountryItems.6b7985bf.js +29 -0
- package/dist/chunks/{useCountryItems.34ac8740.js.map → useCountryItems.6b7985bf.js.map} +1 -1
- package/dist/code-snippet.js +10 -12
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +41 -5902
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +901 -711
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +18 -18
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +2 -18
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +41 -41
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +18 -18
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +512 -504
- 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 +178 -174
- 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 +62 -60
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +22 -22
- 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 +46 -45
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +10 -10
- package/dist/secondary-nav.js +98 -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 +95 -88
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +198 -191
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +822 -409
- package/package.json +6 -3
- 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.75319f4e.js.map +0 -1
- package/dist/chunks/button.7dd8d4de.js +0 -125
- package/dist/chunks/button.7dd8d4de.js.map +0 -1
- package/dist/chunks/checkbox.65743b08.js +0 -184
- package/dist/chunks/checkbox.65743b08.js.map +0 -1
- package/dist/chunks/controls-group.dd967ccf.js.map +0 -1
- package/dist/chunks/copy.e12b418e.js +0 -103
- package/dist/chunks/copy.e12b418e.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.465db4d4.js.map +0 -1
- package/dist/chunks/dropdown.6461dbe3.js.map +0 -1
- package/dist/chunks/index.0890dc99.js +0 -130
- package/dist/chunks/index.0890dc99.js.map +0 -1
- package/dist/chunks/index.b201e81d.js.map +0 -1
- package/dist/chunks/index.f358c4bd.js.map +0 -1
- package/dist/chunks/listbox.a117e6d4.js.map +0 -1
- package/dist/chunks/tooltip.b8929659.js.map +0 -1
- package/dist/chunks/useCountryItems.34ac8740.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
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { a as
|
|
10
|
-
import { a as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { B as
|
|
1
|
+
import { ref as y, watch as Z, computed as f, defineComponent as K, toRefs as Y, nextTick as C, toRef as O } from "vue";
|
|
2
|
+
import { B as pe, d as me } from "./index.b0a89960.js";
|
|
3
|
+
import { D as be, a as D, b as N, c as ye } from "./dropdown-default-textbox.1cba89ea.js";
|
|
4
|
+
import { n as I } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
|
+
import { g as B } from "./unique-id.a2a2b458.js";
|
|
6
|
+
import { u as _e } from "./aria-label.ac9651a5.js";
|
|
7
|
+
import { u as W } from "./i18n.eb5b985b.js";
|
|
8
|
+
import { u as ge } from "./use-form-layout-loading.d03e5d48.js";
|
|
9
|
+
import { a as i, B as k, b as F, u as xe } from "./listbox.7cf6d6b4.js";
|
|
10
|
+
import { B as L, a as we } from "./keyboard-navigation.ca47dfa8.js";
|
|
11
|
+
import { u as he } from "./use-has-slot.fbeb19ec.js";
|
|
12
|
+
import { a as P } from "./index.58282364.js";
|
|
13
|
+
import { a as q } from "./index.f18f79eb.js";
|
|
14
|
+
import { B as G } from "./directive.0408e565.js";
|
|
15
|
+
import { E as Se, F as Oe } from "./field-label.a0c54b7d.js";
|
|
15
16
|
import "../assets/dropdown.css";
|
|
16
17
|
var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
|
|
17
|
-
const
|
|
18
|
+
const Le = {
|
|
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
|
+
}, Ce = (t, e, n, l) => {
|
|
25
|
+
const a = y(t.value), { t: o } = W();
|
|
26
|
+
Z(t, () => {
|
|
27
|
+
a.value = t.value;
|
|
27
28
|
});
|
|
28
|
-
const
|
|
29
|
-
() => JSON.stringify(
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
29
|
+
const d = f(
|
|
30
|
+
() => JSON.stringify(a.value) === JSON.stringify(t.value)
|
|
31
|
+
), u = () => {
|
|
32
|
+
l(i.SELECT, a.value), l(i.CLOSE_DROPDOWN);
|
|
33
|
+
}, s = () => {
|
|
34
|
+
a.value = t.value, l(i.CLOSE_DROPDOWN);
|
|
35
|
+
}, p = () => {
|
|
36
|
+
n.value && e.value && (a.value = t.value);
|
|
37
|
+
}, x = f(() => [
|
|
35
38
|
{
|
|
36
39
|
title: o("apply"),
|
|
37
|
-
event:
|
|
38
|
-
disabled:
|
|
40
|
+
event: u,
|
|
41
|
+
disabled: d.value
|
|
39
42
|
},
|
|
40
43
|
{
|
|
41
44
|
title: o("cancel"),
|
|
42
|
-
event:
|
|
45
|
+
event: s
|
|
43
46
|
}
|
|
44
|
-
]),
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
}, g = () => {
|
|
53
|
-
u(), n(s.ESCAPE);
|
|
47
|
+
]), m = (r) => {
|
|
48
|
+
a.value = r, e.value || l(i.SELECT, r);
|
|
49
|
+
}, g = (r) => {
|
|
50
|
+
m(r), l(i.TAB);
|
|
51
|
+
}, _ = (r) => {
|
|
52
|
+
m(r), l(i.ENTER);
|
|
53
|
+
}, w = (r) => {
|
|
54
|
+
m(r), l(i.SPACE);
|
|
54
55
|
}, h = () => {
|
|
55
|
-
|
|
56
|
-
}, S = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
56
|
+
s(), l(i.ESCAPE);
|
|
57
|
+
}, S = () => {
|
|
58
|
+
l(i.SHOW_MORE);
|
|
59
|
+
}, $ = {
|
|
60
|
+
[i.SELECT]: m,
|
|
61
|
+
[i.SHOW_MORE]: S,
|
|
62
|
+
[i.TAB]: g,
|
|
63
|
+
[i.SPACE]: w,
|
|
64
|
+
[i.ENTER]: _
|
|
62
65
|
};
|
|
63
66
|
return {
|
|
64
67
|
// Values
|
|
65
|
-
actions:
|
|
66
|
-
internalSelectedValue:
|
|
68
|
+
actions: x,
|
|
69
|
+
internalSelectedValue: a,
|
|
67
70
|
// Methods
|
|
68
|
-
listeners:
|
|
69
|
-
onEscapeKey:
|
|
71
|
+
listeners: $,
|
|
72
|
+
onEscapeKey: h,
|
|
73
|
+
onOutsideDropdownClick: p
|
|
70
74
|
};
|
|
71
|
-
},
|
|
72
|
-
i18n: { messages:
|
|
75
|
+
}, Ee = K({
|
|
76
|
+
i18n: { messages: Le },
|
|
73
77
|
name: "bento-dropdown-options-container",
|
|
74
78
|
components: {
|
|
75
|
-
BentoListbox:
|
|
76
|
-
PopperContainer:
|
|
77
|
-
BentoPopover:
|
|
79
|
+
BentoListbox: k,
|
|
80
|
+
PopperContainer: P,
|
|
81
|
+
BentoPopover: q
|
|
78
82
|
},
|
|
83
|
+
directives: { BentoClickOutsideDirective: G },
|
|
79
84
|
props: {
|
|
80
85
|
/**
|
|
81
86
|
* Defines a string value that labels an interactive element.
|
|
@@ -142,13 +147,17 @@ const ge = {
|
|
|
142
147
|
*/
|
|
143
148
|
lazyLoadType: {
|
|
144
149
|
type: String,
|
|
145
|
-
default:
|
|
146
|
-
validator: (t) => Object.values(
|
|
150
|
+
default: F.AUTOMATIC,
|
|
151
|
+
validator: (t) => Object.values(F).includes(t)
|
|
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 ge = {
|
|
|
169
178
|
*
|
|
170
179
|
* If enabled, hides the "Select all" checkbox in "multiple" mode.
|
|
171
180
|
*/
|
|
172
|
-
searching:
|
|
181
|
+
searching: k.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: P.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,43 +194,39 @@ const ge = {
|
|
|
185
194
|
}
|
|
186
195
|
},
|
|
187
196
|
emits: [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
197
|
+
i.CLOSE_DROPDOWN,
|
|
198
|
+
i.SHOW_MORE,
|
|
199
|
+
i.SELECT,
|
|
200
|
+
i.ENTER,
|
|
201
|
+
i.ESCAPE,
|
|
202
|
+
i.SPACE,
|
|
203
|
+
i.TAB
|
|
195
204
|
],
|
|
196
205
|
setup(t, { emit: e, slots: n }) {
|
|
197
|
-
const { selectedValue: l, multiple:
|
|
206
|
+
const { selectedValue: l, multiple: a } = Y(t), o = y(null), { t: d } = W(), u = f(() => t.open && !t.disabled), s = f(() => d("noOptionsMatchThisSearch")), p = f(() => ({
|
|
198
207
|
"b-dropdown-options-container--single": !(t != null && t.multiple)
|
|
199
|
-
})),
|
|
208
|
+
})), x = f(() => ({
|
|
200
209
|
"b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
|
|
201
210
|
"b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
|
|
202
|
-
})), { actions:
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
), v = d(() => {
|
|
209
|
-
var f;
|
|
210
|
-
const D = {
|
|
211
|
-
"min-width": `${(f = t == null ? void 0 : t.targetElement) == null ? void 0 : f.clientWidth}px`,
|
|
211
|
+
})), { actions: m, internalSelectedValue: g, listeners: _, onEscapeKey: w, onOutsideDropdownClick: h } = Ce(l, a, u, e), S = f(
|
|
212
|
+
() => t != null && t.multiple ? q : P
|
|
213
|
+
), $ = f(() => {
|
|
214
|
+
var c;
|
|
215
|
+
const r = {
|
|
216
|
+
"min-width": `${(c = t == null ? void 0 : t.targetElement) == null ? void 0 : c.clientWidth}px`,
|
|
212
217
|
"max-width": "min(500px, 95%)"
|
|
213
218
|
};
|
|
214
219
|
return t != null && t.multiple ? {
|
|
215
220
|
actionsLayout: "space-between",
|
|
216
|
-
actions:
|
|
221
|
+
actions: m.value,
|
|
217
222
|
divider: !0,
|
|
218
223
|
fallbackPosition: ["top-start"],
|
|
219
|
-
id:
|
|
224
|
+
id: B(`dropdown-options-${t.id}`),
|
|
220
225
|
open: t.open,
|
|
221
226
|
position: "bottom-start",
|
|
222
227
|
style: {
|
|
223
228
|
width: "auto",
|
|
224
|
-
...
|
|
229
|
+
...r
|
|
225
230
|
},
|
|
226
231
|
targetElement: t.targetElement
|
|
227
232
|
} : {
|
|
@@ -230,7 +235,7 @@ const ge = {
|
|
|
230
235
|
position: "bottom-start",
|
|
231
236
|
style: {
|
|
232
237
|
display: u.value ? "block" : "none",
|
|
233
|
-
...
|
|
238
|
+
...r
|
|
234
239
|
},
|
|
235
240
|
targetElement: t.targetElement
|
|
236
241
|
};
|
|
@@ -239,90 +244,91 @@ const ge = {
|
|
|
239
244
|
// Values
|
|
240
245
|
isDropdownOpen: u,
|
|
241
246
|
conditionalClasses: p,
|
|
242
|
-
conditionalListboxClasses:
|
|
243
|
-
noResultsMessage:
|
|
247
|
+
conditionalListboxClasses: x,
|
|
248
|
+
noResultsMessage: s,
|
|
244
249
|
slots: n,
|
|
245
|
-
actions:
|
|
246
|
-
internalSelectedValue:
|
|
250
|
+
actions: m,
|
|
251
|
+
internalSelectedValue: g,
|
|
247
252
|
// Component wrapper
|
|
248
253
|
popperContainerOrPopoverComponent: S,
|
|
249
|
-
popperContainerOrPopoverProps:
|
|
254
|
+
popperContainerOrPopoverProps: $,
|
|
250
255
|
// Refs
|
|
251
|
-
dropdownOptionsListboxRef:
|
|
256
|
+
dropdownOptionsListboxRef: o,
|
|
252
257
|
// Events
|
|
253
|
-
onEscapeKey:
|
|
254
|
-
|
|
258
|
+
onEscapeKey: w,
|
|
259
|
+
onOutsideDropdownClick: h,
|
|
260
|
+
listeners: _
|
|
255
261
|
};
|
|
256
262
|
}
|
|
257
263
|
});
|
|
258
|
-
var
|
|
264
|
+
var $e = function() {
|
|
259
265
|
var e = this, n = e._self._c;
|
|
260
266
|
return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(l) {
|
|
261
267
|
return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
|
|
262
|
-
} } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(l,
|
|
263
|
-
return { key:
|
|
264
|
-
return [e._t(
|
|
268
|
+
} } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": e.staticCategories, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(l, a) {
|
|
269
|
+
return { key: a, fn: function(o) {
|
|
270
|
+
return [e._t(a, null, null, o)];
|
|
265
271
|
} };
|
|
266
272
|
})], null, !0) }, e.listeners))], 1)]);
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
273
|
+
}, De = [], Re = /* @__PURE__ */ I(
|
|
274
|
+
Ee,
|
|
275
|
+
$e,
|
|
276
|
+
De,
|
|
271
277
|
!1,
|
|
272
278
|
null,
|
|
273
|
-
"
|
|
279
|
+
"9f64e5d1",
|
|
274
280
|
null,
|
|
275
281
|
null
|
|
276
282
|
);
|
|
277
|
-
const
|
|
278
|
-
let
|
|
279
|
-
const
|
|
283
|
+
const Be = Re.exports;
|
|
284
|
+
let J = 0;
|
|
285
|
+
const Ie = {
|
|
280
286
|
beforeCreate() {
|
|
281
|
-
this.uuid =
|
|
287
|
+
this.uuid = J.toString(), J += 1;
|
|
282
288
|
}
|
|
283
289
|
};
|
|
284
|
-
var
|
|
290
|
+
var Te = function() {
|
|
285
291
|
var e = this, n = e._self._c;
|
|
286
292
|
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
|
|
287
|
-
},
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
293
|
+
}, Ae = [], Me = /* @__PURE__ */ I(
|
|
294
|
+
Ie,
|
|
295
|
+
Te,
|
|
296
|
+
Ae,
|
|
291
297
|
!1,
|
|
292
298
|
null,
|
|
293
299
|
null,
|
|
294
300
|
null,
|
|
295
301
|
null
|
|
296
302
|
);
|
|
297
|
-
const
|
|
298
|
-
let
|
|
299
|
-
const
|
|
303
|
+
const Ne = Me.exports;
|
|
304
|
+
let V = 0;
|
|
305
|
+
const Pe = {
|
|
300
306
|
beforeCreate() {
|
|
301
|
-
this.uuid =
|
|
307
|
+
this.uuid = V.toString(), V += 1;
|
|
302
308
|
}
|
|
303
309
|
};
|
|
304
|
-
var
|
|
310
|
+
var ke = function() {
|
|
305
311
|
var e = this, n = e._self._c;
|
|
306
312
|
return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
|
|
307
|
-
},
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
313
|
+
}, Fe = [], Ke = /* @__PURE__ */ I(
|
|
314
|
+
Pe,
|
|
315
|
+
ke,
|
|
316
|
+
Fe,
|
|
311
317
|
!1,
|
|
312
318
|
null,
|
|
313
319
|
null,
|
|
314
320
|
null,
|
|
315
321
|
null
|
|
316
322
|
);
|
|
317
|
-
const
|
|
323
|
+
const We = Ke.exports, ze = K({
|
|
318
324
|
name: "dropdown-small-textbox",
|
|
319
|
-
components: { ChevronDownSmallIcon:
|
|
325
|
+
components: { ChevronDownSmallIcon: Ne, ChevronUpSmallIcon: We, DropdownBaseTextbox: be },
|
|
320
326
|
inheritAttrs: !1,
|
|
321
327
|
props: {
|
|
322
328
|
/**
|
|
323
329
|
* The number of additional items that have been selected in the dropdown.
|
|
324
330
|
*/
|
|
325
|
-
additionalItemsSelected: { type: Number, default: 0 },
|
|
331
|
+
additionalItemsSelected: { type: [Number, String], default: 0 },
|
|
326
332
|
/**
|
|
327
333
|
* Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
|
|
328
334
|
*/
|
|
@@ -388,169 +394,180 @@ const Ne = Ae.exports, Me = F({
|
|
|
388
394
|
*/
|
|
389
395
|
value: { type: String, default: "" }
|
|
390
396
|
},
|
|
391
|
-
emits: [
|
|
397
|
+
emits: [D.OPEN, D.CLOSE],
|
|
392
398
|
setup(t, { emit: e }) {
|
|
393
|
-
const n =
|
|
399
|
+
const n = f(() => ({
|
|
394
400
|
[`b-dropdown-small-textbox--${N.DISABLED}`]: t.disabled,
|
|
395
401
|
[`b-dropdown-small-textbox--${N.READONLY}`]: t.readonly,
|
|
396
402
|
[`b-dropdown-small-textbox--${N.OPENED}`]: t.open
|
|
397
|
-
})), l =
|
|
398
|
-
e(
|
|
399
|
-
},
|
|
400
|
-
e(
|
|
401
|
-
},
|
|
402
|
-
[
|
|
403
|
-
[
|
|
403
|
+
})), l = f(() => t.open && !t.disabled && !t.readonly), a = () => {
|
|
404
|
+
e(D.OPEN);
|
|
405
|
+
}, o = () => {
|
|
406
|
+
e(D.CLOSE);
|
|
407
|
+
}, d = {
|
|
408
|
+
[D.OPEN]: a,
|
|
409
|
+
[D.CLOSE]: o
|
|
404
410
|
};
|
|
405
411
|
return {
|
|
406
412
|
// Values
|
|
407
413
|
conditionalClasses: n,
|
|
408
414
|
isDropdownOpen: l,
|
|
409
415
|
// Events
|
|
410
|
-
listeners:
|
|
416
|
+
listeners: d
|
|
411
417
|
};
|
|
412
418
|
}
|
|
413
419
|
});
|
|
414
|
-
var
|
|
420
|
+
var Ue = function() {
|
|
415
421
|
var e = this, n = e._self._c;
|
|
416
422
|
return e._self._setupProxy, n("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [n("dropdown-base-textbox", e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
|
|
417
423
|
return [n("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [n("chevron-up-small-icon", { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), n("chevron-down-small-icon", { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
|
|
418
424
|
}, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
425
|
+
}, je = [], He = /* @__PURE__ */ I(
|
|
426
|
+
ze,
|
|
427
|
+
Ue,
|
|
428
|
+
je,
|
|
423
429
|
!1,
|
|
424
430
|
null,
|
|
425
|
-
"
|
|
431
|
+
"bc324b09",
|
|
426
432
|
null,
|
|
427
433
|
null
|
|
428
434
|
);
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
435
|
+
const qe = He.exports, Je = ({ items: t, placeholder: e, selectedValue: n, staticCategories: l }) => {
|
|
436
|
+
let a;
|
|
437
|
+
if (l) {
|
|
438
|
+
const o = t.value.find((d) => d.items.some((u) => u.value === n.value));
|
|
439
|
+
a = o == null ? void 0 : o.items.find((d) => d.value === n.value);
|
|
440
|
+
} else
|
|
441
|
+
a = t.value.find(({ value: o }) => o === n.value);
|
|
442
|
+
return (a == null ? void 0 : a.label) || e.value || null;
|
|
443
|
+
}, Ve = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
433
444
|
var l;
|
|
434
|
-
return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((
|
|
435
|
-
const { label:
|
|
436
|
-
return
|
|
445
|
+
return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
|
|
446
|
+
const { label: o } = e.value.find(({ value: d }) => d === a);
|
|
447
|
+
return o;
|
|
437
448
|
}).join(", ");
|
|
438
|
-
},
|
|
449
|
+
}, Ze = ({ selectedValues: t, items: e, placeholder: n }) => {
|
|
439
450
|
var l;
|
|
440
|
-
return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((
|
|
441
|
-
if (
|
|
442
|
-
const
|
|
443
|
-
(
|
|
451
|
+
return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
|
|
452
|
+
if (o.items) {
|
|
453
|
+
const d = o.items.filter(
|
|
454
|
+
(s) => t.value.includes(s.value)
|
|
444
455
|
);
|
|
445
|
-
|
|
456
|
+
d.length === o.items.length ? a.push(o.label) : d.forEach(({ label: s }) => a.push(s));
|
|
446
457
|
}
|
|
447
|
-
return t.value.includes(
|
|
458
|
+
return t.value.includes(o.value) && a.push(o.label), a;
|
|
448
459
|
}, []).join(", ");
|
|
449
|
-
},
|
|
450
|
-
const o =
|
|
451
|
-
var
|
|
452
|
-
return (
|
|
460
|
+
}, Ye = ({ items: t, placeholder: e, value: n, multiple: l, staticCategories: a }) => {
|
|
461
|
+
const o = f(() => t.value.find((u) => {
|
|
462
|
+
var s;
|
|
463
|
+
return (s = u.items) == null ? void 0 : s.length;
|
|
464
|
+
}));
|
|
465
|
+
return f(() => l.value ? o.value ? Ze({ selectedValues: n, placeholder: e, items: t }) : Ve({ selectedValues: n, items: t, placeholder: e }) : Je({
|
|
466
|
+
items: t,
|
|
467
|
+
placeholder: e,
|
|
468
|
+
selectedValue: n,
|
|
469
|
+
staticCategories: a.value
|
|
453
470
|
}));
|
|
454
|
-
|
|
455
|
-
}, Z = (t) => {
|
|
471
|
+
}, Q = (t) => {
|
|
456
472
|
var e;
|
|
457
473
|
(e = t.value.$children) == null || e[0].$refs.textbox.focus();
|
|
458
|
-
},
|
|
474
|
+
}, Ge = ({
|
|
459
475
|
inputContainerRef: t,
|
|
460
476
|
optionsContainerRef: e,
|
|
461
477
|
selectedValueIndex: n,
|
|
462
478
|
isDropdownOpen: l,
|
|
463
|
-
isDynamicFltering:
|
|
464
|
-
items:
|
|
465
|
-
isMultiple:
|
|
466
|
-
}, u,
|
|
467
|
-
const
|
|
468
|
-
|
|
479
|
+
isDynamicFltering: a,
|
|
480
|
+
items: o,
|
|
481
|
+
isMultiple: d
|
|
482
|
+
}, u, s, p) => {
|
|
483
|
+
const x = ({ detail: r }) => {
|
|
484
|
+
r.preventDefault(), l.value || (s(), C(() => {
|
|
469
485
|
var c, b;
|
|
470
|
-
|
|
486
|
+
d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
|
|
471
487
|
}));
|
|
472
|
-
},
|
|
473
|
-
|
|
488
|
+
}, m = ({ detail: r }) => {
|
|
489
|
+
r.preventDefault(), l.value || (s(), C(() => {
|
|
474
490
|
var c;
|
|
475
491
|
(c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
|
|
476
492
|
}));
|
|
477
|
-
},
|
|
478
|
-
l.value || (
|
|
479
|
-
var
|
|
480
|
-
if (
|
|
493
|
+
}, g = () => {
|
|
494
|
+
l.value || (s(), C(() => {
|
|
495
|
+
var r, c;
|
|
496
|
+
if (d) {
|
|
481
497
|
const b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
482
|
-
(
|
|
498
|
+
(r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[b.length - 1].$children[o.length - 1].$el.focus();
|
|
483
499
|
} else
|
|
484
|
-
(c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[
|
|
500
|
+
(c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[o.length - 1].$el.focus();
|
|
485
501
|
}));
|
|
486
|
-
},
|
|
487
|
-
l.value && (p(),
|
|
488
|
-
},
|
|
489
|
-
l.value ||
|
|
490
|
-
var
|
|
491
|
-
(
|
|
502
|
+
}, _ = () => {
|
|
503
|
+
l.value && (p(), Q(t));
|
|
504
|
+
}, w = () => {
|
|
505
|
+
l.value || s(), C(() => {
|
|
506
|
+
var r;
|
|
507
|
+
(r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus();
|
|
492
508
|
});
|
|
493
|
-
},
|
|
494
|
-
|
|
509
|
+
}, h = ({ detail: r }) => {
|
|
510
|
+
r.preventDefault(), u(), l.value && C(() => {
|
|
495
511
|
var c, b;
|
|
496
|
-
|
|
512
|
+
d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
|
|
497
513
|
});
|
|
498
|
-
},
|
|
499
|
-
u(), l.value &&
|
|
500
|
-
var
|
|
501
|
-
|
|
514
|
+
}, S = () => {
|
|
515
|
+
u(), l.value && C(() => {
|
|
516
|
+
var r, c;
|
|
517
|
+
d ? (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus() : (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
|
|
502
518
|
});
|
|
503
519
|
};
|
|
504
|
-
return
|
|
505
|
-
...
|
|
506
|
-
[
|
|
507
|
-
[
|
|
508
|
-
[
|
|
509
|
-
[
|
|
510
|
-
[
|
|
511
|
-
[
|
|
520
|
+
return f(() => ({
|
|
521
|
+
...a.value ? {} : { [L.SPACE]: h },
|
|
522
|
+
[L.ENTER]: S,
|
|
523
|
+
[L.ARROW_DOWN]: x,
|
|
524
|
+
[L.ARROW_UP]: m,
|
|
525
|
+
[L.END]: g,
|
|
526
|
+
[L.ESCAPE]: _,
|
|
527
|
+
[L.HOME]: w
|
|
512
528
|
}));
|
|
513
|
-
},
|
|
529
|
+
}, Qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
|
|
514
530
|
const l = () => {
|
|
515
|
-
e.value && n(),
|
|
516
|
-
|
|
531
|
+
e.value && n(), C(() => {
|
|
532
|
+
Q(t);
|
|
517
533
|
});
|
|
518
534
|
};
|
|
519
535
|
return {
|
|
520
|
-
[
|
|
521
|
-
[
|
|
522
|
-
[
|
|
523
|
-
[
|
|
536
|
+
[i.ENTER]: l,
|
|
537
|
+
[i.ESCAPE]: l,
|
|
538
|
+
[i.TAB]: l,
|
|
539
|
+
[i.SPACE]: l
|
|
524
540
|
};
|
|
525
541
|
};
|
|
526
|
-
function
|
|
527
|
-
const l =
|
|
528
|
-
return
|
|
542
|
+
function Xe(t, e, n) {
|
|
543
|
+
const l = y(t), a = y(e), o = (u, s = []) => s.flatMap((p) => p.label.toLocaleLowerCase().includes(u) ? [p, ...o(u, p.items)] : p.items ? [...o(u, p.items)] : []);
|
|
544
|
+
return Z(l, () => {
|
|
529
545
|
n !== void 0 && n(l.value);
|
|
530
|
-
}),
|
|
546
|
+
}), f(() => {
|
|
531
547
|
if (!l.value || n !== void 0)
|
|
532
|
-
return
|
|
548
|
+
return a.value;
|
|
533
549
|
const u = l.value.toLocaleLowerCase();
|
|
534
|
-
return
|
|
550
|
+
return o(u, a.value);
|
|
535
551
|
});
|
|
536
552
|
}
|
|
537
|
-
const
|
|
553
|
+
const et = {
|
|
538
554
|
"en-US": {
|
|
555
|
+
all: "All",
|
|
539
556
|
clearSearch: "Clear filter",
|
|
540
557
|
ariaLabelFallback: "Dropdown"
|
|
541
558
|
}
|
|
542
|
-
},
|
|
543
|
-
i18n: { messages:
|
|
559
|
+
}, tt = K({
|
|
560
|
+
i18n: { messages: et },
|
|
544
561
|
name: "b-dropdown",
|
|
545
562
|
components: {
|
|
546
|
-
BentoDropdownOptionsContainer:
|
|
547
|
-
BentoTypography:
|
|
548
|
-
DropdownInputDefault:
|
|
549
|
-
DropdownInputSmall:
|
|
550
|
-
ErrorMessage:
|
|
551
|
-
FieldLabel:
|
|
563
|
+
BentoDropdownOptionsContainer: Be,
|
|
564
|
+
BentoTypography: pe,
|
|
565
|
+
DropdownInputDefault: ye,
|
|
566
|
+
DropdownInputSmall: qe,
|
|
567
|
+
ErrorMessage: Se,
|
|
568
|
+
FieldLabel: Oe
|
|
552
569
|
},
|
|
553
|
-
directives: { BentoClickOutsideDirective:
|
|
570
|
+
directives: { BentoClickOutsideDirective: G, BentoKeyboardNavigationDirective: we },
|
|
554
571
|
props: {
|
|
555
572
|
/**
|
|
556
573
|
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
@@ -644,8 +661,8 @@ const Je = {
|
|
|
644
661
|
*/
|
|
645
662
|
lazyLoadType: {
|
|
646
663
|
type: String,
|
|
647
|
-
default:
|
|
648
|
-
validator: (t) => Object.values(
|
|
664
|
+
default: k.props.lazyLoadType.default,
|
|
665
|
+
validator: (t) => Object.values(F).includes(t)
|
|
649
666
|
},
|
|
650
667
|
/*
|
|
651
668
|
* If enabled, the user will be able to select multiple items.
|
|
@@ -680,6 +697,10 @@ const Je = {
|
|
|
680
697
|
* Adds a info icon next to the label to display the passed tooltip message.
|
|
681
698
|
*/
|
|
682
699
|
tooltipText: { type: String, default: null },
|
|
700
|
+
/**
|
|
701
|
+
* If enabled, dropdown will display non-selectable, static categories
|
|
702
|
+
*/
|
|
703
|
+
staticCategories: { type: Boolean, default: !1 },
|
|
683
704
|
/**
|
|
684
705
|
* The `input` value.
|
|
685
706
|
* Providing an empty string will select no options.
|
|
@@ -706,73 +727,86 @@ const Je = {
|
|
|
706
727
|
default: void 0
|
|
707
728
|
}
|
|
708
729
|
},
|
|
709
|
-
emits: ["input",
|
|
730
|
+
emits: ["input", i.SHOW_MORE],
|
|
710
731
|
setup(t, { attrs: e, emit: n, slots: l }) {
|
|
711
|
-
var
|
|
712
|
-
const { t:
|
|
713
|
-
ariaLabel:
|
|
732
|
+
var H;
|
|
733
|
+
const { t: a } = W(), o = y(null), d = y(null), u = y(null), s = y(!1), p = B("bento-dropdown-options-container"), x = B("dropdown-label"), m = B("dropdown-description"), g = B("dropdown-error"), { isReadOnly: _ } = ge(O(t, "readonly")), w = y(e["aria-label"]), { ariaLabel: h } = Y(t), S = _e({
|
|
734
|
+
ariaLabel: w.value,
|
|
714
735
|
// TODO: take this line away when the aria-label props is removed
|
|
715
|
-
label:
|
|
716
|
-
defaultFallback:
|
|
717
|
-
}),
|
|
736
|
+
label: h,
|
|
737
|
+
defaultFallback: a("ariaLabelFallback")
|
|
738
|
+
}), $ = f(() => ({
|
|
718
739
|
"b-dropdown--condensed": t.condensed
|
|
719
|
-
})),
|
|
740
|
+
})), r = f(() => ({
|
|
720
741
|
"b-dropdown__description--error": !!t.errorMessage
|
|
721
|
-
})), c =
|
|
742
|
+
})), c = y(""), b = O(t, "items"), X = Xe(c, b, (H = t == null ? void 0 : t.search) == null ? void 0 : H.searchEvent), A = f(() => t.dynamicFiltering && !!c.value), ee = Ye({
|
|
722
743
|
items: b,
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
},
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
744
|
+
staticCategories: O(t, "staticCategories"),
|
|
745
|
+
multiple: O(t, "multiple"),
|
|
746
|
+
placeholder: O(t, "placeholder"),
|
|
747
|
+
value: O(t, "value")
|
|
748
|
+
}), te = f(() => t.size === E.DEFAULT), ne = f(() => {
|
|
749
|
+
if (t != null && t.multiple)
|
|
750
|
+
return t.items.filter(
|
|
751
|
+
({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
|
|
752
|
+
);
|
|
753
|
+
if (!t.multiple && t.staticCategories) {
|
|
754
|
+
const v = t.items.find(
|
|
755
|
+
(T) => T.items.some((ve) => ve.value === t.value)
|
|
756
|
+
);
|
|
757
|
+
return v ? v.items.find((T) => T.value === t.value) : null;
|
|
758
|
+
}
|
|
759
|
+
return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
|
|
760
|
+
}), le = f(() => {
|
|
761
|
+
const v = t.items.findIndex(({ value: R }) => t.value === R);
|
|
762
|
+
return v > 0 ? v : 0;
|
|
763
|
+
}), { isMultiLevelSelect: ae, flattenedItemsList: oe } = xe(b), se = f(() => {
|
|
764
|
+
var v;
|
|
765
|
+
if (t.multiple) {
|
|
766
|
+
const R = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length;
|
|
767
|
+
return (ae.value ? oe.value.length : b.value.length) === R ? a("all") : R;
|
|
768
|
+
}
|
|
769
|
+
return null;
|
|
770
|
+
}), ie = f(
|
|
771
|
+
() => `${t.description ? m : ""} ${t.errorMessage ? g : ""}`.trim() || null
|
|
772
|
+
), re = () => {
|
|
773
|
+
_.value || (s.value = !0);
|
|
774
|
+
}, M = () => {
|
|
775
|
+
s.value = !1;
|
|
748
776
|
}, z = () => {
|
|
749
|
-
|
|
750
|
-
},
|
|
777
|
+
_.value || (s.value = !s.value, A.value && (c.value = ""));
|
|
778
|
+
}, de = () => {
|
|
779
|
+
A.value && (c.value = ""), s.value && (s.value = !1, u.value.onOutsideDropdownClick());
|
|
780
|
+
}, U = (v) => {
|
|
781
|
+
t.multiple || (c.value = "", s.value = !1), n("input", v);
|
|
782
|
+
}, j = () => {
|
|
783
|
+
n(i.SHOW_MORE);
|
|
784
|
+
}, ue = Ge(
|
|
751
785
|
{
|
|
752
|
-
inputContainerRef:
|
|
786
|
+
inputContainerRef: o,
|
|
753
787
|
optionsContainerRef: u,
|
|
754
|
-
selectedValueIndex:
|
|
755
|
-
isDropdownOpen:
|
|
756
|
-
isDynamicFltering:
|
|
788
|
+
selectedValueIndex: le,
|
|
789
|
+
isDropdownOpen: s,
|
|
790
|
+
isDynamicFltering: O(t, "dynamicFiltering"),
|
|
757
791
|
items: t.items,
|
|
758
792
|
isMultiple: t.multiple
|
|
759
793
|
},
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
),
|
|
794
|
+
z,
|
|
795
|
+
re,
|
|
796
|
+
M
|
|
797
|
+
), ce = Qe(
|
|
764
798
|
{
|
|
765
|
-
inputContainerRef:
|
|
766
|
-
isDropdownOpen:
|
|
799
|
+
inputContainerRef: o,
|
|
800
|
+
isDropdownOpen: s
|
|
767
801
|
},
|
|
768
|
-
|
|
769
|
-
),
|
|
770
|
-
[
|
|
771
|
-
[
|
|
772
|
-
[
|
|
773
|
-
...
|
|
802
|
+
M
|
|
803
|
+
), fe = {
|
|
804
|
+
[i.CLOSE_DROPDOWN]: M,
|
|
805
|
+
[i.SELECT]: U,
|
|
806
|
+
[i.SHOW_MORE]: j,
|
|
807
|
+
...ce
|
|
774
808
|
};
|
|
775
|
-
return t.error &&
|
|
809
|
+
return t.error && me(
|
|
776
810
|
'BentoDropdown "error" property',
|
|
777
811
|
`Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
|
|
778
812
|
Having the field as "undefined" will hide/remove the error.
|
|
@@ -780,70 +814,74 @@ const Je = {
|
|
|
780
814
|
"2.0.0"
|
|
781
815
|
), {
|
|
782
816
|
// Values
|
|
783
|
-
conditionalClasses:
|
|
784
|
-
computedAriaLabel:
|
|
785
|
-
additionalItemsSelected:
|
|
786
|
-
idDefaultSize:
|
|
787
|
-
isDropdownOpen:
|
|
788
|
-
displayValue:
|
|
817
|
+
conditionalClasses: $,
|
|
818
|
+
computedAriaLabel: S,
|
|
819
|
+
additionalItemsSelected: se,
|
|
820
|
+
idDefaultSize: te,
|
|
821
|
+
isDropdownOpen: s,
|
|
822
|
+
displayValue: ee,
|
|
789
823
|
dropdownOptionsContainerId: p,
|
|
790
|
-
filteredItems:
|
|
791
|
-
isSearching:
|
|
792
|
-
isReadOnly:
|
|
824
|
+
filteredItems: X,
|
|
825
|
+
isSearching: A,
|
|
826
|
+
isReadOnly: _,
|
|
793
827
|
searchTerm: c,
|
|
794
|
-
labelId:
|
|
795
|
-
descriptionId:
|
|
796
|
-
errorId:
|
|
797
|
-
ariaDescribedBy:
|
|
798
|
-
selectedValueItem:
|
|
828
|
+
labelId: x,
|
|
829
|
+
descriptionId: m,
|
|
830
|
+
errorId: g,
|
|
831
|
+
ariaDescribedBy: ie,
|
|
832
|
+
selectedValueItem: ne,
|
|
799
833
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
800
834
|
// The setup method and the "useSlots" composible define
|
|
801
835
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
802
836
|
// respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
|
|
803
837
|
slots: l,
|
|
804
|
-
descriptionConditionalClasses:
|
|
838
|
+
descriptionConditionalClasses: r,
|
|
839
|
+
// Methods
|
|
840
|
+
hasSlot: he(l),
|
|
805
841
|
// Refs
|
|
806
|
-
inputContainerRef:
|
|
807
|
-
inputContainerRefWrapper:
|
|
842
|
+
inputContainerRef: o,
|
|
843
|
+
inputContainerRefWrapper: d,
|
|
808
844
|
optionsContainerRef: u,
|
|
809
845
|
// Events
|
|
810
|
-
|
|
811
|
-
toggleDropdown:
|
|
812
|
-
onOptionSelected:
|
|
813
|
-
emitShowMoreEvent:
|
|
814
|
-
textboxKeyboardNavigationListeners:
|
|
815
|
-
listboxListeners:
|
|
846
|
+
clickOutsideDropdown: de,
|
|
847
|
+
toggleDropdown: z,
|
|
848
|
+
onOptionSelected: U,
|
|
849
|
+
emitShowMoreEvent: j,
|
|
850
|
+
textboxKeyboardNavigationListeners: ue,
|
|
851
|
+
listboxListeners: fe
|
|
816
852
|
};
|
|
817
853
|
}
|
|
818
854
|
});
|
|
819
|
-
var
|
|
855
|
+
var nt = function() {
|
|
820
856
|
var l;
|
|
821
857
|
var e = this, n = e._self._c;
|
|
822
|
-
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.
|
|
823
|
-
e.searchTerm =
|
|
824
|
-
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(
|
|
825
|
-
return { key:
|
|
826
|
-
return [e._t(
|
|
858
|
+
return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? n("field-label", { attrs: { id: e.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(a) {
|
|
859
|
+
e.searchTerm = a;
|
|
860
|
+
}, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
|
|
861
|
+
return { key: o, fn: function(d) {
|
|
862
|
+
return [e._t(o, null, null, d)];
|
|
827
863
|
} };
|
|
828
|
-
})], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(
|
|
829
|
-
return { key:
|
|
830
|
-
return [e._t(
|
|
864
|
+
})], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
|
|
865
|
+
return { key: o, fn: function(d) {
|
|
866
|
+
return [e._t(o, null, null, d)];
|
|
831
867
|
} };
|
|
832
|
-
})], null, !0) }, e.listboxListeners)) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e.
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
868
|
+
})], null, !0) }, e.listboxListeners)) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || e.hasSlot("description") ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._t("description", function() {
|
|
869
|
+
return [e._v(" " + e._s(e.description) + " ")];
|
|
870
|
+
})], 2) : e._e()], 1);
|
|
871
|
+
}, lt = [], at = /* @__PURE__ */ I(
|
|
872
|
+
tt,
|
|
873
|
+
nt,
|
|
874
|
+
lt,
|
|
837
875
|
!1,
|
|
838
876
|
null,
|
|
839
|
-
"
|
|
877
|
+
"df383e41",
|
|
840
878
|
null,
|
|
841
879
|
null
|
|
842
880
|
);
|
|
843
|
-
const
|
|
881
|
+
const xt = at.exports;
|
|
844
882
|
export {
|
|
845
|
-
|
|
883
|
+
xt as B,
|
|
846
884
|
E as a,
|
|
847
|
-
|
|
885
|
+
Xe as u
|
|
848
886
|
};
|
|
849
|
-
//# sourceMappingURL=dropdown.
|
|
887
|
+
//# sourceMappingURL=dropdown.4152cc00.js.map
|