@adyen/bento-vue3 1.6.1 → 1.7.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/core/src/components/button/button.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +45 -0
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +229 -220
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -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 +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +44 -46
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +8 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +46 -28
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +802 -52
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +64 -7
- package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +7 -4
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +15 -15
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +173 -0
- package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
- package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
- package/dist/accordion.js +52 -43
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +210 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/checkmark.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -0
- 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/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/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/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/refresh.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +30 -22
- package/dist/button.js.map +1 -1
- package/dist/card.js +84 -84
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.4b5ab17e.js → base-button.7897a95e.js} +2 -2
- package/dist/chunks/{base-button.4b5ab17e.js.map → base-button.7897a95e.js.map} +1 -1
- package/dist/chunks/{base-modal.53a229ac.js → base-modal.0c85e7cb.js} +4 -4
- package/dist/chunks/{base-modal.53a229ac.js.map → base-modal.0c85e7cb.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.fa35390c.js +107 -0
- package/dist/chunks/button-actions-with-menu.fa35390c.js.map +1 -0
- package/dist/chunks/{button.975d0bb8.js → button.e5177388.js} +44 -36
- package/dist/chunks/button.e5177388.js.map +1 -0
- package/dist/chunks/{calendar.cc37ac1f.js → calendar.c83d4e99.js} +274 -250
- package/dist/chunks/calendar.c83d4e99.js.map +1 -0
- package/dist/chunks/{checkbox.67ceb148.js → checkbox.3cdbdd52.js} +7 -7
- package/dist/chunks/{checkbox.67ceb148.js.map → checkbox.3cdbdd52.js.map} +1 -1
- package/dist/chunks/checkmark.83e4f1e0.js +30 -0
- package/dist/chunks/checkmark.83e4f1e0.js.map +1 -0
- package/dist/chunks/{chevron-right.aef416c6.js → chevron-left.2fd6b083.js} +10 -10
- package/dist/chunks/chevron-left.2fd6b083.js.map +1 -0
- package/dist/chunks/{controls-group.7214dc7f.js → controls-group.38b436f6.js} +2 -2
- package/dist/chunks/{controls-group.7214dc7f.js.map → controls-group.38b436f6.js.map} +1 -1
- package/dist/chunks/{copy.7a73d1fd.js → copy.86236c8d.js} +4 -4
- package/dist/chunks/{copy.7a73d1fd.js.map → copy.86236c8d.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.0f878a8d.js → dropdown-default-textbox.0b38fac3.js} +4 -4
- package/dist/chunks/dropdown-default-textbox.0b38fac3.js.map +1 -0
- package/dist/chunks/{dropdown.7a104ce3.js → dropdown.afff433b.js} +144 -110
- package/dist/chunks/dropdown.afff433b.js.map +1 -0
- package/dist/chunks/{error-message.b91afffc.js → error-message.64e1964b.js} +2 -2
- package/dist/chunks/{error-message.b91afffc.js.map → error-message.64e1964b.js.map} +1 -1
- package/dist/chunks/fixed-scroller.e5aa7b00.js +148 -0
- package/dist/chunks/fixed-scroller.e5aa7b00.js.map +1 -0
- package/dist/chunks/{footer-actions.13f19a22.js → footer-actions.1ce44374.js} +3 -3
- package/dist/chunks/{footer-actions.13f19a22.js.map → footer-actions.1ce44374.js.map} +1 -1
- package/dist/chunks/{index.7f24db66.js → index.2bd3812b.js} +2 -2
- package/dist/chunks/{index.7f24db66.js.map → index.2bd3812b.js.map} +1 -1
- package/dist/chunks/{index.1dc4ebae.js → index.369b0e66.js} +112 -92
- package/dist/chunks/index.369b0e66.js.map +1 -0
- package/dist/chunks/{index.536bcb56.js → index.6a665ade.js} +3 -3
- package/dist/chunks/{index.536bcb56.js.map → index.6a665ade.js.map} +1 -1
- package/dist/chunks/{index.4c951e0d.js → index.77f35162.js} +6 -6
- package/dist/chunks/{index.4c951e0d.js.map → index.77f35162.js.map} +1 -1
- package/dist/chunks/index.bcc58fdd.js +1334 -0
- package/dist/chunks/index.bcc58fdd.js.map +1 -0
- package/dist/chunks/index.c207e9ab.js +602 -0
- package/dist/chunks/index.c207e9ab.js.map +1 -0
- package/dist/chunks/{index.6700224a.js → index.e579bc02.js} +2 -2
- package/dist/chunks/{index.6700224a.js.map → index.e579bc02.js.map} +1 -1
- package/dist/chunks/{index.d68847b0.js → index.fa7b44f1.js} +2 -2
- package/dist/chunks/{index.d68847b0.js.map → index.fa7b44f1.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.0f31ecb2.js → listbox-option-tag.809ec40e.js} +3 -3
- package/dist/chunks/{listbox-option-tag.0f31ecb2.js.map → listbox-option-tag.809ec40e.js.map} +1 -1
- package/dist/chunks/listbox.f6e5a11d.js +1306 -0
- package/dist/chunks/listbox.f6e5a11d.js.map +1 -0
- package/dist/chunks/{loading-button.6523a015.js → loading-button.746b7fa1.js} +2 -2
- package/dist/chunks/{loading-button.6523a015.js.map → loading-button.746b7fa1.js.map} +1 -1
- package/dist/chunks/refresh.c38c9eee.js +30 -0
- package/dist/chunks/refresh.c38c9eee.js.map +1 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
- package/dist/chunks/{tooltip.b5391514.js → tooltip.f769eb14.js} +54 -51
- package/dist/chunks/{tooltip.b5391514.js.map → tooltip.f769eb14.js.map} +1 -1
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +553 -541
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +10 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +129 -118
- 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 +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +44 -42
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +696 -683
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +3 -3
- package/dist/header.js +121 -198
- package/dist/header.js.map +1 -1
- package/dist/image.js +4 -4
- package/dist/index.js +164 -158
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +8 -8
- package/dist/input-field.js +7 -7
- package/dist/internal.js +20 -144
- package/dist/internal.js.map +1 -1
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +3 -592
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +3 -3
- package/dist/pagination.js +37 -21
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +50 -40
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +16 -16
- package/dist/popper-container.js +6 -1276
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +128 -97
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +130 -106
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +94 -91
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +146 -163
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +128 -99
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +216 -203
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +6 -6
- package/dist/tutorial.js +375 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +5 -2
- package/dist/assets/chevron-right.css +0 -1
- package/dist/chunks/button.975d0bb8.js.map +0 -1
- package/dist/chunks/calendar.cc37ac1f.js.map +0 -1
- package/dist/chunks/chevron-right.aef416c6.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.0f878a8d.js.map +0 -1
- package/dist/chunks/dropdown.7a104ce3.js.map +0 -1
- package/dist/chunks/index.1dc4ebae.js.map +0 -1
- package/dist/chunks/listbox.0f25778d.js +0 -1213
- package/dist/chunks/listbox.0f25778d.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as s, B as ee, b as te } from "./listbox.
|
|
1
|
+
import { ref as S, watch as be, computed as p, defineComponent as ne, toRefs as ve, resolveComponent as R, openBlock as b, createBlock as I, resolveDynamicComponent as ye, mergeProps as A, withCtx as O, createElementVNode as U, withKeys as Ne, createVNode as k, toHandlers as x, createSlots as Z, renderList as Y, renderSlot as G, normalizeProps as Q, guardReactiveProps as X, createElementBlock as E, toDisplayString as P, createCommentVNode as L, pushScopeId as ge, popScopeId as he, normalizeClass as we, withDirectives as q, vShow as de, nextTick as B, toRef as N, resolveDirective as ue, createTextVNode as W } from "vue";
|
|
2
|
+
import { a as s, B as ee, b as te } from "./listbox.f6e5a11d.js";
|
|
3
3
|
import { B as Me } from "./directive.0408e565.js";
|
|
4
4
|
import { B as D, a as Pe } from "./keyboard-navigation.ca47dfa8.js";
|
|
5
|
-
import { D as Ke, a as M, b as
|
|
5
|
+
import { D as Ke, a as M, b as V, c as ke } from "./dropdown-default-textbox.0b38fac3.js";
|
|
6
6
|
import { _ as z } from "./_plugin-vue_export-helper.dad06003.js";
|
|
7
|
-
import { B as ze, d as Fe } from "./index.
|
|
7
|
+
import { B as ze, d as Fe } from "./index.2bd3812b.js";
|
|
8
8
|
import { g as K } from "./unique-id.a2a2b458.js";
|
|
9
9
|
import { u as le } from "./i18n.6c402773.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
10
|
+
import { u as We } from "./aria-label.ac9651a5.js";
|
|
11
|
+
import { u as xe } from "./use-form-layout-loading.d03e5d48.js";
|
|
12
|
+
import { a as J } from "./index.bcc58fdd.js";
|
|
13
13
|
import { BentoPopover as ce } from "../popover.js";
|
|
14
|
-
import { E as qe } from "./error-message.
|
|
14
|
+
import { E as qe } from "./error-message.64e1964b.js";
|
|
15
15
|
import "../assets/dropdown.css";
|
|
16
16
|
var T = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(T || {});
|
|
17
17
|
const oe = {
|
|
@@ -21,17 +21,17 @@ const oe = {
|
|
|
21
21
|
noOptionsMatchThisSearch: "No options match this search"
|
|
22
22
|
}
|
|
23
23
|
}, Ue = (e, o, n) => {
|
|
24
|
-
const t =
|
|
24
|
+
const t = S(e.value), { t: a } = le({ messages: oe });
|
|
25
25
|
be(e, () => {
|
|
26
26
|
t.value = e.value;
|
|
27
27
|
});
|
|
28
|
-
const i =
|
|
28
|
+
const i = p(
|
|
29
29
|
() => JSON.stringify(t.value) === JSON.stringify(e.value)
|
|
30
30
|
), r = () => {
|
|
31
31
|
n(s.SELECT, t.value), n(s.CLOSE_DROPDOWN);
|
|
32
32
|
}, d = () => {
|
|
33
33
|
t.value = e.value, n(s.CLOSE_DROPDOWN);
|
|
34
|
-
}, l =
|
|
34
|
+
}, l = p(() => [
|
|
35
35
|
{
|
|
36
36
|
title: a("apply"),
|
|
37
37
|
event: r,
|
|
@@ -43,7 +43,7 @@ const oe = {
|
|
|
43
43
|
}
|
|
44
44
|
]), c = (v) => {
|
|
45
45
|
t.value = v, o.value || n(s.SELECT, v);
|
|
46
|
-
},
|
|
46
|
+
}, $ = (v) => {
|
|
47
47
|
c(v), n(s.TAB);
|
|
48
48
|
}, g = (v) => {
|
|
49
49
|
c(v), n(s.ENTER);
|
|
@@ -56,7 +56,7 @@ const oe = {
|
|
|
56
56
|
}, C = {
|
|
57
57
|
[s.SELECT]: c,
|
|
58
58
|
[s.SHOW_MORE]: h,
|
|
59
|
-
[s.TAB]:
|
|
59
|
+
[s.TAB]: $,
|
|
60
60
|
[s.SPACE]: y,
|
|
61
61
|
[s.ENTER]: g
|
|
62
62
|
};
|
|
@@ -68,7 +68,7 @@ const oe = {
|
|
|
68
68
|
listeners: C,
|
|
69
69
|
onEscapeKey: m
|
|
70
70
|
};
|
|
71
|
-
},
|
|
71
|
+
}, je = ne({
|
|
72
72
|
i18n: { messages: oe },
|
|
73
73
|
name: "bento-dropdown-options-container",
|
|
74
74
|
components: {
|
|
@@ -81,6 +81,13 @@ const oe = {
|
|
|
81
81
|
* Defines a string value that labels an interactive element.
|
|
82
82
|
*/
|
|
83
83
|
ariaLabel: { type: String, default: null },
|
|
84
|
+
/**
|
|
85
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
86
|
+
*/
|
|
87
|
+
emptyState: {
|
|
88
|
+
type: Object,
|
|
89
|
+
default: void 0
|
|
90
|
+
},
|
|
84
91
|
/**
|
|
85
92
|
* Disables dropdown functionality
|
|
86
93
|
*/
|
|
@@ -167,7 +174,15 @@ const oe = {
|
|
|
167
174
|
* Reference to the DOM element or Vue component for positioning
|
|
168
175
|
* the Dropdown container.
|
|
169
176
|
*/
|
|
170
|
-
targetElement: { type: J.props.targetElement.type, required: !0 }
|
|
177
|
+
targetElement: { type: J.props.targetElement.type, required: !0 },
|
|
178
|
+
/**
|
|
179
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
180
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
181
|
+
*/
|
|
182
|
+
virtualScroll: {
|
|
183
|
+
type: [Boolean, Object],
|
|
184
|
+
default: !1
|
|
185
|
+
}
|
|
171
186
|
},
|
|
172
187
|
emits: [
|
|
173
188
|
s.CLOSE_DROPDOWN,
|
|
@@ -180,21 +195,21 @@ const oe = {
|
|
|
180
195
|
],
|
|
181
196
|
setup(e, { emit: o, slots: n }) {
|
|
182
197
|
var u;
|
|
183
|
-
const { selectedValue: t, multiple: a } = ve(e), i =
|
|
198
|
+
const { selectedValue: t, multiple: a } = ve(e), i = S(null), { t: r } = le({ messages: oe }), d = p(() => e.open && !e.disabled), l = p(() => r("noOptionsMatchThisSearch")), c = {
|
|
184
199
|
"min-width": `${(u = e == null ? void 0 : e.targetElement) == null ? void 0 : u.clientWidth}px`,
|
|
185
200
|
"max-width": "min(500px, 95%)"
|
|
186
|
-
},
|
|
201
|
+
}, $ = p(() => ({
|
|
187
202
|
"b-dropdown-options-container--single": !(e != null && e.multiple)
|
|
188
|
-
})), g =
|
|
203
|
+
})), g = p(() => ({
|
|
189
204
|
"b-dropdown-options-container__listbox--small": e.inputSize === T.SMALL,
|
|
190
205
|
"b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
|
|
191
206
|
})), { actions: y, internalSelectedValue: m, listeners: h, onEscapeKey: C } = Ue(
|
|
192
207
|
t,
|
|
193
208
|
a,
|
|
194
209
|
o
|
|
195
|
-
), v =
|
|
210
|
+
), v = p(
|
|
196
211
|
() => e != null && e.multiple ? ce : J
|
|
197
|
-
), F =
|
|
212
|
+
), F = p(
|
|
198
213
|
() => e != null && e.multiple ? {
|
|
199
214
|
actionsLayout: "space-between",
|
|
200
215
|
actions: y.value,
|
|
@@ -222,7 +237,7 @@ const oe = {
|
|
|
222
237
|
return {
|
|
223
238
|
// Values
|
|
224
239
|
isDropdownOpen: d,
|
|
225
|
-
conditionalClasses:
|
|
240
|
+
conditionalClasses: $,
|
|
226
241
|
conditionalListboxClasses: g,
|
|
227
242
|
noResultsMessage: l,
|
|
228
243
|
slots: n,
|
|
@@ -239,12 +254,12 @@ const oe = {
|
|
|
239
254
|
};
|
|
240
255
|
}
|
|
241
256
|
});
|
|
242
|
-
function
|
|
257
|
+
function He(e, o, n, t, a, i) {
|
|
243
258
|
const r = R("bento-listbox");
|
|
244
259
|
return b(), I(ye(e.popperContainerOrPopoverComponent), A({
|
|
245
260
|
class: ["b-dropdown-options-container", e.conditionalClasses]
|
|
246
261
|
}, e.popperContainerOrPopoverProps), {
|
|
247
|
-
default:
|
|
262
|
+
default: O(() => [
|
|
248
263
|
U("div", {
|
|
249
264
|
onKeydown: o[0] || (o[0] = Ne((...d) => e.onEscapeKey && e.onEscapeKey(...d), ["esc"]))
|
|
250
265
|
}, [
|
|
@@ -253,6 +268,7 @@ function Ve(e, o, n, t, a, i) {
|
|
|
253
268
|
ref: "dropdownOptionsListboxRef",
|
|
254
269
|
"aria-label": e.ariaLabel,
|
|
255
270
|
class: ["b-dropdown-options-container__listbox", e.conditionalListboxClasses],
|
|
271
|
+
"empty-state": e.emptyState,
|
|
256
272
|
"is-option-disabled": e.isOptionDisabled,
|
|
257
273
|
items: e.items,
|
|
258
274
|
"selected-value": e.internalSelectedValue,
|
|
@@ -261,25 +277,26 @@ function Ve(e, o, n, t, a, i) {
|
|
|
261
277
|
searching: e.searching,
|
|
262
278
|
loading: e.loading,
|
|
263
279
|
"lazy-load-type": e.lazyLoadType,
|
|
264
|
-
"has-more-items": e.hasMoreItems
|
|
265
|
-
|
|
280
|
+
"has-more-items": e.hasMoreItems,
|
|
281
|
+
"virtual-scroll": e.virtualScroll
|
|
282
|
+
}, x(e.listeners)), Z({ _: 2 }, [
|
|
266
283
|
Y(e.slots, (d, l) => ({
|
|
267
284
|
name: l,
|
|
268
|
-
fn:
|
|
285
|
+
fn: O((c) => [
|
|
269
286
|
G(e.$slots, l, Q(X(c)), void 0, !0)
|
|
270
287
|
])
|
|
271
288
|
}))
|
|
272
|
-
]), 1040, ["id", "aria-label", "class", "is-option-disabled", "items", "selected-value", "multiple", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items"])
|
|
289
|
+
]), 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"])
|
|
273
290
|
], 32)
|
|
274
291
|
]),
|
|
275
292
|
_: 3
|
|
276
293
|
}, 16, ["class"]);
|
|
277
294
|
}
|
|
278
|
-
const
|
|
279
|
-
let
|
|
295
|
+
const Ve = /* @__PURE__ */ z(je, [["render", He], ["__scopeId", "data-v-7cdbf295"]]);
|
|
296
|
+
let pe = 0;
|
|
280
297
|
const Je = {
|
|
281
298
|
beforeCreate() {
|
|
282
|
-
this.uuid =
|
|
299
|
+
this.uuid = pe.toString(), pe += 1;
|
|
283
300
|
}
|
|
284
301
|
}, Ze = (e) => (ge("data-v-18645fe6"), e = e(), he(), e), Ye = { key: 0 }, Ge = /* @__PURE__ */ Ze(() => /* @__PURE__ */ U("path", {
|
|
285
302
|
fill: "#00112C",
|
|
@@ -294,15 +311,15 @@ function Qe(e, o, n, t, a, i) {
|
|
|
294
311
|
height: "16",
|
|
295
312
|
fill: "none"
|
|
296
313
|
}), [
|
|
297
|
-
e.$attrs["svg-title"] ? (b(), E("title", Ye, P(e.$attrs["svg-title"]), 1)) :
|
|
314
|
+
e.$attrs["svg-title"] ? (b(), E("title", Ye, P(e.$attrs["svg-title"]), 1)) : L("", !0),
|
|
298
315
|
Ge
|
|
299
316
|
], 16);
|
|
300
317
|
}
|
|
301
318
|
const Xe = /* @__PURE__ */ z(Je, [["render", Qe], ["__scopeId", "data-v-18645fe6"]]);
|
|
302
|
-
let
|
|
319
|
+
let fe = 0;
|
|
303
320
|
const et = {
|
|
304
321
|
beforeCreate() {
|
|
305
|
-
this.uuid =
|
|
322
|
+
this.uuid = fe.toString(), fe += 1;
|
|
306
323
|
}
|
|
307
324
|
}, tt = (e) => (ge("data-v-6f20d431"), e = e(), he(), e), ot = { key: 0 }, nt = /* @__PURE__ */ tt(() => /* @__PURE__ */ U("path", {
|
|
308
325
|
fill: "#00112C",
|
|
@@ -317,7 +334,7 @@ function lt(e, o, n, t, a, i) {
|
|
|
317
334
|
height: "16",
|
|
318
335
|
fill: "none"
|
|
319
336
|
}), [
|
|
320
|
-
e.$attrs["svg-title"] ? (b(), E("title", ot, P(e.$attrs["svg-title"]), 1)) :
|
|
337
|
+
e.$attrs["svg-title"] ? (b(), E("title", ot, P(e.$attrs["svg-title"]), 1)) : L("", !0),
|
|
321
338
|
nt
|
|
322
339
|
], 16);
|
|
323
340
|
}
|
|
@@ -397,11 +414,11 @@ const at = /* @__PURE__ */ z(et, [["render", lt], ["__scopeId", "data-v-6f20d431
|
|
|
397
414
|
},
|
|
398
415
|
emits: [M.OPEN, M.CLOSE],
|
|
399
416
|
setup(e, { emit: o }) {
|
|
400
|
-
const n =
|
|
401
|
-
[`b-dropdown-small-textbox--${
|
|
402
|
-
[`b-dropdown-small-textbox--${
|
|
403
|
-
[`b-dropdown-small-textbox--${
|
|
404
|
-
})), t =
|
|
417
|
+
const n = p(() => ({
|
|
418
|
+
[`b-dropdown-small-textbox--${V.DISABLED}`]: e.disabled,
|
|
419
|
+
[`b-dropdown-small-textbox--${V.READONLY}`]: e.readonly,
|
|
420
|
+
[`b-dropdown-small-textbox--${V.OPENED}`]: e.open
|
|
421
|
+
})), t = p(() => e.open && !e.disabled && !e.readonly), a = () => {
|
|
405
422
|
o(M.OPEN);
|
|
406
423
|
}, i = () => {
|
|
407
424
|
o(M.CLOSE);
|
|
@@ -424,8 +441,8 @@ function rt(e, o, n, t, a, i) {
|
|
|
424
441
|
return b(), E("div", {
|
|
425
442
|
class: we(["b-dropdown-small-textbox", e.conditionalClasses])
|
|
426
443
|
}, [
|
|
427
|
-
k(l, A({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" },
|
|
428
|
-
icon:
|
|
444
|
+
k(l, A({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, x(e.listeners)), {
|
|
445
|
+
icon: O(() => [
|
|
429
446
|
U("div", st, [
|
|
430
447
|
q(k(r, { "svg-title": "opened" }, null, 512), [
|
|
431
448
|
[de, e.isDropdownOpen]
|
|
@@ -441,10 +458,10 @@ function rt(e, o, n, t, a, i) {
|
|
|
441
458
|
}
|
|
442
459
|
const dt = /* @__PURE__ */ z(it, [["render", rt], ["__scopeId", "data-v-55bc3614"]]);
|
|
443
460
|
function ut(e, o, n) {
|
|
444
|
-
const t =
|
|
461
|
+
const t = S(e), a = S(o), i = (d, l = []) => l.flatMap((c) => c.label.toLocaleLowerCase().includes(d) ? [c, ...i(d, c.items)] : c.items ? [...i(d, c.items)] : []);
|
|
445
462
|
return be(t, () => {
|
|
446
463
|
n !== void 0 && n(t.value);
|
|
447
|
-
}),
|
|
464
|
+
}), p(() => {
|
|
448
465
|
if (!t.value || n !== void 0)
|
|
449
466
|
return a.value;
|
|
450
467
|
const d = t.value.toLocaleLowerCase();
|
|
@@ -454,13 +471,13 @@ function ut(e, o, n) {
|
|
|
454
471
|
const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
455
472
|
const t = e.value.find(({ value: a }) => a === n.value);
|
|
456
473
|
return (t == null ? void 0 : t.label) || o.value || null;
|
|
457
|
-
},
|
|
474
|
+
}, pt = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
458
475
|
var t;
|
|
459
476
|
return !e.value || ((t = e.value) == null ? void 0 : t.length) === 0 ? n.value || null : e.value.map((a) => {
|
|
460
477
|
const { label: i } = o.value.find(({ value: r }) => r === a);
|
|
461
478
|
return i;
|
|
462
479
|
}).join(", ");
|
|
463
|
-
},
|
|
480
|
+
}, ft = ({ selectedValues: e, items: o, placeholder: n }) => {
|
|
464
481
|
var t;
|
|
465
482
|
return !e.value || !((t = e.value) != null && t.length) ? n.value || null : o.value.reduce((a, i) => {
|
|
466
483
|
if (i.items) {
|
|
@@ -472,11 +489,11 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
472
489
|
return e.value.includes(i.value) && a.push(i.label), a;
|
|
473
490
|
}, []).join(", ");
|
|
474
491
|
}, mt = ({ items: e, placeholder: o, value: n, multiple: t }) => {
|
|
475
|
-
const a =
|
|
492
|
+
const a = p(() => e.value.find((r) => {
|
|
476
493
|
var d;
|
|
477
494
|
return (d = r.items) == null ? void 0 : d.length;
|
|
478
495
|
}));
|
|
479
|
-
return
|
|
496
|
+
return p(() => t.value ? a.value ? ft({ selectedValues: n, placeholder: o, items: e }) : pt({ selectedValues: n, items: e, placeholder: o }) : ct({ items: e, placeholder: o, selectedValue: n }));
|
|
480
497
|
}, me = {
|
|
481
498
|
"en-US": {
|
|
482
499
|
optional: "optional",
|
|
@@ -484,7 +501,7 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
484
501
|
clearSearch: "Clear filter",
|
|
485
502
|
ariaLabelFallback: "Dropdown"
|
|
486
503
|
}
|
|
487
|
-
},
|
|
504
|
+
}, Se = (e) => {
|
|
488
505
|
var o;
|
|
489
506
|
(o = e.value.$children) == null || o[0].$refs.textbox.focus();
|
|
490
507
|
}, bt = ({
|
|
@@ -496,27 +513,27 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
496
513
|
items: i,
|
|
497
514
|
isMultiple: r
|
|
498
515
|
}, d, l, c) => {
|
|
499
|
-
const
|
|
516
|
+
const $ = ({ detail: u }) => {
|
|
500
517
|
u.preventDefault(), t.value || (l(), B(() => {
|
|
501
|
-
var
|
|
502
|
-
r ? (
|
|
518
|
+
var f, _;
|
|
519
|
+
r ? (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (_ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[n.value].$el.focus();
|
|
503
520
|
}));
|
|
504
521
|
}, g = ({ detail: u }) => {
|
|
505
522
|
u.preventDefault(), t.value || (l(), B(() => {
|
|
506
|
-
var
|
|
507
|
-
(
|
|
523
|
+
var f;
|
|
524
|
+
(f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
|
|
508
525
|
}));
|
|
509
526
|
}, y = () => {
|
|
510
527
|
t.value || (l(), B(() => {
|
|
511
|
-
var u,
|
|
528
|
+
var u, f;
|
|
512
529
|
if (r) {
|
|
513
|
-
const
|
|
514
|
-
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[
|
|
530
|
+
const _ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
|
|
531
|
+
(u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[_.length - 1].$children[i.length - 1].$el.focus();
|
|
515
532
|
} else
|
|
516
|
-
(
|
|
533
|
+
(f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[i.length - 1].$el.focus();
|
|
517
534
|
}));
|
|
518
535
|
}, m = () => {
|
|
519
|
-
t.value && (c(),
|
|
536
|
+
t.value && (c(), Se(e));
|
|
520
537
|
}, h = () => {
|
|
521
538
|
t.value || l(), B(() => {
|
|
522
539
|
var u;
|
|
@@ -524,19 +541,19 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
524
541
|
});
|
|
525
542
|
}, C = ({ detail: u }) => {
|
|
526
543
|
u.preventDefault(), d(), t.value && B(() => {
|
|
527
|
-
var
|
|
528
|
-
r ? (
|
|
544
|
+
var f, _;
|
|
545
|
+
r ? (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (_ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || _[n.value].$el.focus();
|
|
529
546
|
});
|
|
530
547
|
}, v = () => {
|
|
531
548
|
d(), t.value && B(() => {
|
|
532
|
-
var u,
|
|
533
|
-
r ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (
|
|
549
|
+
var u, f;
|
|
550
|
+
r ? (u = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (f = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[n.value].$el.focus();
|
|
534
551
|
});
|
|
535
552
|
};
|
|
536
|
-
return
|
|
553
|
+
return p(() => ({
|
|
537
554
|
...a.value ? {} : { [D.SPACE]: C },
|
|
538
555
|
[D.ENTER]: v,
|
|
539
|
-
[D.ARROW_DOWN]:
|
|
556
|
+
[D.ARROW_DOWN]: $,
|
|
540
557
|
[D.ARROW_UP]: g,
|
|
541
558
|
[D.END]: y,
|
|
542
559
|
[D.ESCAPE]: m,
|
|
@@ -545,7 +562,7 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
545
562
|
}, vt = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
|
|
546
563
|
const t = () => {
|
|
547
564
|
o.value && n(), B(() => {
|
|
548
|
-
|
|
565
|
+
Se(e);
|
|
549
566
|
});
|
|
550
567
|
};
|
|
551
568
|
return {
|
|
@@ -558,7 +575,7 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
558
575
|
i18n: { messages: me },
|
|
559
576
|
name: "b-dropdown",
|
|
560
577
|
components: {
|
|
561
|
-
BentoDropdownOptionsContainer:
|
|
578
|
+
BentoDropdownOptionsContainer: Ve,
|
|
562
579
|
BentoTypography: ze,
|
|
563
580
|
DropdownInputDefault: ke,
|
|
564
581
|
DropdownInputSmall: dt,
|
|
@@ -573,6 +590,13 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
573
590
|
* Defines a string value that labels an interactive element.
|
|
574
591
|
*/
|
|
575
592
|
ariaLabel: { type: String, default: null },
|
|
593
|
+
/**
|
|
594
|
+
* Empty state props used with the inner empty state component which is displayed when no search results are found.
|
|
595
|
+
*/
|
|
596
|
+
emptyState: {
|
|
597
|
+
type: Object,
|
|
598
|
+
default: void 0
|
|
599
|
+
},
|
|
576
600
|
/**
|
|
577
601
|
* Disables dropdown functionality.
|
|
578
602
|
*/
|
|
@@ -688,6 +712,14 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
688
712
|
type: [String, Number, Array],
|
|
689
713
|
default: null
|
|
690
714
|
},
|
|
715
|
+
/**
|
|
716
|
+
* Enables virtual scrolling if set to true or by providing an object with itemHeight function.
|
|
717
|
+
* The itemHeight function is used to calculate the height of rendered item given it's index.
|
|
718
|
+
*/
|
|
719
|
+
virtualScroll: {
|
|
720
|
+
type: [Boolean, Object],
|
|
721
|
+
default: !1
|
|
722
|
+
},
|
|
691
723
|
/**
|
|
692
724
|
* Dropdown search options and events.
|
|
693
725
|
* @see BentoDropdownSearchOptions
|
|
@@ -700,38 +732,38 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
700
732
|
emits: ["input", s.SHOW_MORE],
|
|
701
733
|
setup(e, { attrs: o, emit: n, slots: t }) {
|
|
702
734
|
var re;
|
|
703
|
-
const { t: a } = le({ messages: me }), i =
|
|
735
|
+
const { t: a } = le({ messages: me }), i = S(null), r = S(null), d = S(null), l = S(!1), c = K("bento-dropdown-options-container"), $ = K("dropdown-label"), g = K("dropdown-description"), y = K("dropdown-error"), { isReadOnly: m } = xe(N(e, "readonly")), h = S(o["aria-label"]), { ariaLabel: C } = ve(e), v = We({
|
|
704
736
|
ariaLabel: h.value,
|
|
705
737
|
// TODO: take this line away when the aria-label props is removed
|
|
706
738
|
label: C,
|
|
707
739
|
defaultFallback: a("ariaLabelFallback")
|
|
708
|
-
}), F =
|
|
740
|
+
}), F = p(() => ({
|
|
709
741
|
"b-dropdown__description--error": !!e.errorMessage
|
|
710
|
-
})), u =
|
|
711
|
-
items:
|
|
742
|
+
})), u = S(""), f = N(e, "items"), _ = ut(u, f, (re = e == null ? void 0 : e.search) == null ? void 0 : re.searchEvent), j = p(() => e.dynamicFiltering && !!u.value), $e = mt({
|
|
743
|
+
items: f,
|
|
712
744
|
multiple: N(e, "multiple"),
|
|
713
745
|
placeholder: N(e, "placeholder"),
|
|
714
746
|
value: N(e, "value")
|
|
715
|
-
}),
|
|
747
|
+
}), _e = p(() => e.size === T.DEFAULT), Oe = p(
|
|
716
748
|
() => e != null && e.multiple ? e.items.filter(
|
|
717
749
|
({ value: w }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(w)
|
|
718
750
|
) : e.items.find(({ value: w }) => w === (e == null ? void 0 : e.value))
|
|
719
|
-
),
|
|
751
|
+
), Le = p(() => {
|
|
720
752
|
const w = e.items.findIndex(({ value: Ae }) => e.value === Ae);
|
|
721
753
|
return w > 0 ? w : 0;
|
|
722
|
-
}), Ee =
|
|
754
|
+
}), Ee = p(() => {
|
|
723
755
|
var w;
|
|
724
756
|
return e.multiple ? (w = e == null ? void 0 : e.value) == null ? void 0 : w.length : null;
|
|
725
|
-
}), Ce =
|
|
757
|
+
}), Ce = p(
|
|
726
758
|
() => `${e.description ? g : ""} ${e.errorMessage ? y : ""}`.trim() || null
|
|
727
759
|
), De = () => {
|
|
728
760
|
m.value || (l.value = !0);
|
|
729
|
-
},
|
|
761
|
+
}, H = () => {
|
|
730
762
|
l.value = !1;
|
|
731
763
|
}, ae = () => {
|
|
732
|
-
m.value || (l.value = !l.value,
|
|
764
|
+
m.value || (l.value = !l.value, j.value && (u.value = ""));
|
|
733
765
|
}, Ie = () => {
|
|
734
|
-
|
|
766
|
+
j.value && (u.value = ""), l.value && (l.value = !1);
|
|
735
767
|
}, ie = (w) => {
|
|
736
768
|
e.multiple || (u.value = "", l.value = !1), n("input", w);
|
|
737
769
|
}, se = () => {
|
|
@@ -740,7 +772,7 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
740
772
|
{
|
|
741
773
|
inputContainerRef: i,
|
|
742
774
|
optionsContainerRef: d,
|
|
743
|
-
selectedValueIndex:
|
|
775
|
+
selectedValueIndex: Le,
|
|
744
776
|
isDropdownOpen: l,
|
|
745
777
|
isDynamicFltering: N(e, "dynamicFiltering"),
|
|
746
778
|
items: e.items,
|
|
@@ -748,15 +780,15 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
748
780
|
},
|
|
749
781
|
ae,
|
|
750
782
|
De,
|
|
751
|
-
|
|
783
|
+
H
|
|
752
784
|
), Re = vt(
|
|
753
785
|
{
|
|
754
786
|
inputContainerRef: i,
|
|
755
787
|
isDropdownOpen: l
|
|
756
788
|
},
|
|
757
|
-
|
|
789
|
+
H
|
|
758
790
|
), Te = {
|
|
759
|
-
[s.CLOSE_DROPDOWN]:
|
|
791
|
+
[s.CLOSE_DROPDOWN]: H,
|
|
760
792
|
[s.SELECT]: ie,
|
|
761
793
|
[s.SHOW_MORE]: se,
|
|
762
794
|
...Re
|
|
@@ -771,19 +803,19 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
771
803
|
// Values
|
|
772
804
|
computedAriaLabel: v,
|
|
773
805
|
additionalItemsSelected: Ee,
|
|
774
|
-
idDefaultSize:
|
|
806
|
+
idDefaultSize: _e,
|
|
775
807
|
isDropdownOpen: l,
|
|
776
|
-
displayValue:
|
|
808
|
+
displayValue: $e,
|
|
777
809
|
dropdownOptionsContainerId: c,
|
|
778
|
-
filteredItems:
|
|
779
|
-
isSearching:
|
|
810
|
+
filteredItems: _,
|
|
811
|
+
isSearching: j,
|
|
780
812
|
isReadOnly: m,
|
|
781
813
|
searchTerm: u,
|
|
782
|
-
labelId:
|
|
814
|
+
labelId: $,
|
|
783
815
|
descriptionId: g,
|
|
784
816
|
errorId: y,
|
|
785
817
|
ariaDescribedBy: Ce,
|
|
786
|
-
selectedValueItem:
|
|
818
|
+
selectedValueItem: Oe,
|
|
787
819
|
// Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
|
|
788
820
|
// The setup method and the "useSlots" composible define
|
|
789
821
|
// { slots } as a proxy of $scopedSlots and $scopes in their
|
|
@@ -807,7 +839,7 @@ const ct = ({ items: e, placeholder: o, selectedValue: n }) => {
|
|
|
807
839
|
const gt = { class: "b-dropdown" }, ht = ["id"];
|
|
808
840
|
function wt(e, o, n, t, a, i) {
|
|
809
841
|
var g;
|
|
810
|
-
const r = R("bento-typography"), d = R("bento-dropdown-options-container"), l = R("error-message"), c = ue("bento-keyboard-navigation-directive"),
|
|
842
|
+
const r = R("bento-typography"), d = R("bento-dropdown-options-container"), l = R("error-message"), c = ue("bento-keyboard-navigation-directive"), $ = ue("bento-click-outside-directive");
|
|
811
843
|
return q((b(), E("div", gt, [
|
|
812
844
|
e.label ? (b(), E("div", {
|
|
813
845
|
key: 0,
|
|
@@ -818,8 +850,8 @@ function wt(e, o, n, t, a, i) {
|
|
|
818
850
|
el: "span",
|
|
819
851
|
stronger: ""
|
|
820
852
|
}, {
|
|
821
|
-
default:
|
|
822
|
-
|
|
853
|
+
default: O(() => [
|
|
854
|
+
W(P(e.label), 1)
|
|
823
855
|
]),
|
|
824
856
|
_: 1
|
|
825
857
|
}),
|
|
@@ -828,23 +860,23 @@ function wt(e, o, n, t, a, i) {
|
|
|
828
860
|
class: "b-dropdown__label-requirement",
|
|
829
861
|
el: "span"
|
|
830
862
|
}, {
|
|
831
|
-
default:
|
|
832
|
-
|
|
863
|
+
default: O(() => [
|
|
864
|
+
W(" (" + P(e.$t("optional")) + ") ", 1)
|
|
833
865
|
]),
|
|
834
866
|
_: 1
|
|
835
|
-
})) :
|
|
867
|
+
})) : L("", !0),
|
|
836
868
|
e.required ? (b(), I(r, {
|
|
837
869
|
key: 1,
|
|
838
870
|
class: "b-dropdown__label-requirement",
|
|
839
871
|
el: "span"
|
|
840
872
|
}, {
|
|
841
|
-
default:
|
|
842
|
-
|
|
873
|
+
default: O(() => [
|
|
874
|
+
W(" (" + P(e.$t("required")) + ") ", 1)
|
|
843
875
|
]),
|
|
844
876
|
_: 1
|
|
845
|
-
})) :
|
|
846
|
-
], 8, ht)) :
|
|
847
|
-
q((b(), E("div", A({ ref: "inputContainerRefWrapper" },
|
|
877
|
+
})) : L("", !0)
|
|
878
|
+
], 8, ht)) : L("", !0),
|
|
879
|
+
q((b(), E("div", A({ ref: "inputContainerRefWrapper" }, x(e.textboxKeyboardNavigationListeners, !0)), [
|
|
848
880
|
(b(), I(ye(e.size), {
|
|
849
881
|
ref: "inputContainerRef",
|
|
850
882
|
value: e.searchTerm,
|
|
@@ -870,7 +902,7 @@ function wt(e, o, n, t, a, i) {
|
|
|
870
902
|
}, Z({ _: 2 }, [
|
|
871
903
|
Y(e.slots, (y, m) => ({
|
|
872
904
|
name: m,
|
|
873
|
-
fn:
|
|
905
|
+
fn: O((h) => [
|
|
874
906
|
G(e.$slots, m, Q(X(h)), void 0, !0)
|
|
875
907
|
])
|
|
876
908
|
}))
|
|
@@ -883,6 +915,7 @@ function wt(e, o, n, t, a, i) {
|
|
|
883
915
|
id: e.dropdownOptionsContainerId,
|
|
884
916
|
ref: "optionsContainerRef",
|
|
885
917
|
"aria-label": e.computedAriaLabel,
|
|
918
|
+
"empty-state": e.emptyState,
|
|
886
919
|
"debounce-time": (g = e.search) == null ? void 0 : g.debounceTime,
|
|
887
920
|
disabled: e.disabled,
|
|
888
921
|
"input-size": e.size,
|
|
@@ -895,40 +928,41 @@ function wt(e, o, n, t, a, i) {
|
|
|
895
928
|
"target-element": e.inputContainerRefWrapper,
|
|
896
929
|
loading: e.loading,
|
|
897
930
|
"has-more-items": e.hasMoreItems,
|
|
898
|
-
"lazy-load-type": e.lazyLoadType
|
|
899
|
-
|
|
931
|
+
"lazy-load-type": e.lazyLoadType,
|
|
932
|
+
"virtual-scroll": e.virtualScroll
|
|
933
|
+
}, x(e.listboxListeners)), Z({ _: 2 }, [
|
|
900
934
|
Y(e.slots, (y, m) => ({
|
|
901
935
|
name: m,
|
|
902
|
-
fn:
|
|
936
|
+
fn: O((h) => [
|
|
903
937
|
G(e.$slots, m, Q(X(h)), void 0, !0)
|
|
904
938
|
])
|
|
905
939
|
}))
|
|
906
|
-
]), 1040, ["id", "aria-label", "debounce-time", "disabled", "input-size", "is-option-disabled", "items", "multiple", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type"])) :
|
|
940
|
+
]), 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"])) : L("", !0),
|
|
907
941
|
e.errorMessage ? (b(), I(l, {
|
|
908
942
|
key: 2,
|
|
909
943
|
id: e.errorId,
|
|
910
944
|
"error-message": e.errorMessage,
|
|
911
945
|
class: "b-dropdown__error-message"
|
|
912
|
-
}, null, 8, ["id", "error-message"])) :
|
|
946
|
+
}, null, 8, ["id", "error-message"])) : L("", !0),
|
|
913
947
|
e.description ? (b(), I(r, {
|
|
914
948
|
key: 3,
|
|
915
949
|
id: e.descriptionId,
|
|
916
950
|
class: we(["b-dropdown__description", e.descriptionConditionalClasses]),
|
|
917
951
|
el: "span"
|
|
918
952
|
}, {
|
|
919
|
-
default:
|
|
920
|
-
|
|
953
|
+
default: O(() => [
|
|
954
|
+
W(P(e.description), 1)
|
|
921
955
|
]),
|
|
922
956
|
_: 1
|
|
923
|
-
}, 8, ["id", "class"])) :
|
|
957
|
+
}, 8, ["id", "class"])) : L("", !0)
|
|
924
958
|
])), [
|
|
925
|
-
[
|
|
959
|
+
[$, e.closeOpenedDropdown]
|
|
926
960
|
]);
|
|
927
961
|
}
|
|
928
|
-
const Mt = /* @__PURE__ */ z(yt, [["render", wt], ["__scopeId", "data-v-
|
|
962
|
+
const Mt = /* @__PURE__ */ z(yt, [["render", wt], ["__scopeId", "data-v-e9e0b9c7"]]);
|
|
929
963
|
export {
|
|
930
964
|
Mt as B,
|
|
931
965
|
T as a,
|
|
932
966
|
ut as u
|
|
933
967
|
};
|
|
934
|
-
//# sourceMappingURL=dropdown.
|
|
968
|
+
//# sourceMappingURL=dropdown.afff433b.js.map
|