@adyen/bento-vue2 1.5.0 → 1.6.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.
Files changed (238) hide show
  1. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +97 -97
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +7 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +41 -4
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +33 -34
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +20 -20
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  25. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  30. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -2
  31. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
  32. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -1
  33. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
  34. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
  35. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
  36. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  37. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
  40. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
  41. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
  45. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
  46. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  47. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +9 -0
  48. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  49. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
  50. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
  51. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
  52. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  53. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  57. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
  58. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
  60. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +18 -46
  61. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -6
  62. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +12 -12
  63. package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
  64. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
  65. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  66. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +121 -1
  67. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  68. package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
  69. package/dist/accordion.js +33 -36
  70. package/dist/accordion.js.map +1 -1
  71. package/dist/alert.js +3 -3
  72. package/dist/assets/base-modal.css +1 -1
  73. package/dist/assets/button.css +1 -1
  74. package/dist/assets/controls-group.css +1 -1
  75. package/dist/assets/dropdown.css +1 -1
  76. package/dist/assets/index.css +1 -1
  77. package/dist/assets/index10.css +1 -1
  78. package/dist/assets/index11.css +1 -1
  79. package/dist/assets/index12.css +1 -1
  80. package/dist/assets/index13.css +1 -1
  81. package/dist/assets/index14.css +1 -1
  82. package/dist/assets/index15.css +1 -1
  83. package/dist/assets/index16.css +1 -1
  84. package/dist/assets/index17.css +1 -1
  85. package/dist/assets/index18.css +1 -1
  86. package/dist/assets/index19.css +1 -1
  87. package/dist/assets/index2.css +1 -1
  88. package/dist/assets/index20.css +1 -1
  89. package/dist/assets/index21.css +1 -1
  90. package/dist/assets/index22.css +1 -1
  91. package/dist/assets/index23.css +1 -1
  92. package/dist/assets/index24.css +1 -1
  93. package/dist/assets/index25.css +1 -1
  94. package/dist/assets/index27.css +1 -1
  95. package/dist/assets/index28.css +1 -1
  96. package/dist/assets/index29.css +1 -1
  97. package/dist/assets/index3.css +1 -1
  98. package/dist/assets/index30.css +1 -1
  99. package/dist/assets/index31.css +1 -1
  100. package/dist/assets/index32.css +1 -1
  101. package/dist/assets/index33.css +1 -1
  102. package/dist/assets/index34.css +1 -1
  103. package/dist/assets/index35.css +1 -1
  104. package/dist/assets/index36.css +1 -1
  105. package/dist/assets/index37.css +1 -1
  106. package/dist/assets/index38.css +1 -1
  107. package/dist/assets/index39.css +1 -1
  108. package/dist/assets/index4.css +1 -1
  109. package/dist/assets/index40.css +1 -1
  110. package/dist/assets/index41.css +1 -1
  111. package/dist/assets/index42.css +1 -1
  112. package/dist/assets/index43.css +1 -1
  113. package/dist/assets/index44.css +1 -0
  114. package/dist/assets/index5.css +1 -1
  115. package/dist/assets/index6.css +1 -1
  116. package/dist/assets/index7.css +1 -1
  117. package/dist/assets/index8.css +1 -1
  118. package/dist/assets/index9.css +1 -1
  119. package/dist/assets/loading-button.css +1 -1
  120. package/dist/avatar-image.js +1 -1
  121. package/dist/badge.js +1 -1
  122. package/dist/button.js +5 -5
  123. package/dist/card.js +84 -80
  124. package/dist/card.js.map +1 -1
  125. package/dist/checkbox.js +14 -15
  126. package/dist/checkbox.js.map +1 -1
  127. package/dist/chunks/{base-button.89e9efbd.js → base-button.431fb8cf.js} +2 -2
  128. package/dist/chunks/{base-button.89e9efbd.js.map → base-button.431fb8cf.js.map} +1 -1
  129. package/dist/chunks/{base-modal.6eaa7e53.js → base-modal.f462dac0.js} +41 -41
  130. package/dist/chunks/base-modal.f462dac0.js.map +1 -0
  131. package/dist/chunks/{button.66df5734.js → button.38099670.js} +2 -2
  132. package/dist/chunks/{button.66df5734.js.map → button.38099670.js.map} +1 -1
  133. package/dist/chunks/{calendar.44459d87.js → calendar.371e5ae2.js} +8 -7
  134. package/dist/chunks/{calendar.44459d87.js.map → calendar.371e5ae2.js.map} +1 -1
  135. package/dist/chunks/{checkbox.b69b8f22.js → checkbox.b8c2e583.js} +3 -3
  136. package/dist/chunks/{checkbox.b69b8f22.js.map → checkbox.b8c2e583.js.map} +1 -1
  137. package/dist/chunks/{controls-group.a2a2916f.js → controls-group.d75f1d37.js} +2 -2
  138. package/dist/chunks/{controls-group.a2a2916f.js.map → controls-group.d75f1d37.js.map} +1 -1
  139. package/dist/chunks/{copy.57f969d4.js → copy.8e44a660.js} +3 -3
  140. package/dist/chunks/{copy.57f969d4.js.map → copy.8e44a660.js.map} +1 -1
  141. package/dist/chunks/date-input.9186a0bf.js.map +1 -1
  142. package/dist/chunks/{dropdown-default-textbox.2d093874.js → dropdown-default-textbox.6135874c.js} +2 -2
  143. package/dist/chunks/{dropdown-default-textbox.2d093874.js.map → dropdown-default-textbox.6135874c.js.map} +1 -1
  144. package/dist/chunks/{dropdown.10ea8304.js → dropdown.5d22958c.js} +184 -179
  145. package/dist/chunks/dropdown.5d22958c.js.map +1 -0
  146. package/dist/chunks/{error-message.7a5db7f6.js → error-message.a04e8f9a.js} +2 -2
  147. package/dist/chunks/{error-message.7a5db7f6.js.map → error-message.a04e8f9a.js.map} +1 -1
  148. package/dist/chunks/{footer-actions.6ddac024.js → footer-actions.ee645663.js} +3 -3
  149. package/dist/chunks/{footer-actions.6ddac024.js.map → footer-actions.ee645663.js.map} +1 -1
  150. package/dist/chunks/{index.4a11da21.js → index.5d058912.js} +22 -21
  151. package/dist/chunks/{index.4a11da21.js.map → index.5d058912.js.map} +1 -1
  152. package/dist/chunks/{index.f607a3f1.js → index.64cce50b.js} +6 -6
  153. package/dist/chunks/{index.f607a3f1.js.map → index.64cce50b.js.map} +1 -1
  154. package/dist/chunks/{index.0f8690c4.js → index.74258013.js} +2 -2
  155. package/dist/chunks/{index.0f8690c4.js.map → index.74258013.js.map} +1 -1
  156. package/dist/chunks/{index.1645ffcb.js → index.74da0d41.js} +2 -2
  157. package/dist/chunks/{index.1645ffcb.js.map → index.74da0d41.js.map} +1 -1
  158. package/dist/chunks/{index.660f2f2e.js → index.98b6db0e.js} +3 -3
  159. package/dist/chunks/{index.660f2f2e.js.map → index.98b6db0e.js.map} +1 -1
  160. package/dist/chunks/index.af05ced4.js.map +1 -1
  161. package/dist/chunks/{index.e722eb60.js → index.fd557233.js} +2 -2
  162. package/dist/chunks/{index.e722eb60.js.map → index.fd557233.js.map} +1 -1
  163. package/dist/chunks/{listbox-option-tag.e2688e54.js → listbox-option-tag.a651fa46.js} +3 -3
  164. package/dist/chunks/{listbox-option-tag.e2688e54.js.map → listbox-option-tag.a651fa46.js.map} +1 -1
  165. package/dist/chunks/{listbox.201a8521.js → listbox.cbb27077.js} +7 -7
  166. package/dist/chunks/{listbox.201a8521.js.map → listbox.cbb27077.js.map} +1 -1
  167. package/dist/chunks/{loading-button.9d18b4f2.js → loading-button.21c48d50.js} +24 -24
  168. package/dist/chunks/loading-button.21c48d50.js.map +1 -0
  169. package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
  170. package/dist/chunks/{tooltip.f89cb0cd.js → tooltip.ca9673ee.js} +2 -2
  171. package/dist/chunks/tooltip.ca9673ee.js.map +1 -0
  172. package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
  173. package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
  174. package/dist/chunks/use-has-slot.6052d56a.js.map +1 -1
  175. package/dist/code-snippet.js +7 -7
  176. package/dist/code-snippet.js.map +1 -1
  177. package/dist/country.js +2 -2
  178. package/dist/currency.js +1 -1
  179. package/dist/data-grid.js +707 -655
  180. package/dist/data-grid.js.map +1 -1
  181. package/dist/date-picker.js +26 -26
  182. package/dist/date-range-picker.js +2 -2
  183. package/dist/date.js +1 -1
  184. package/dist/divider.js +1 -1
  185. package/dist/dropdown.js +4 -4
  186. package/dist/empty-state.js +3 -3
  187. package/dist/filter-bar.js +727 -638
  188. package/dist/filter-bar.js.map +1 -1
  189. package/dist/focus-trap.js +1 -1
  190. package/dist/form-layout.js +71 -60
  191. package/dist/form-layout.js.map +1 -1
  192. package/dist/header.js +39 -36
  193. package/dist/header.js.map +1 -1
  194. package/dist/index.js +28 -28
  195. package/dist/info-icon.js +7 -7
  196. package/dist/info-icon.js.map +1 -1
  197. package/dist/input-field.js +71 -67
  198. package/dist/input-field.js.map +1 -1
  199. package/dist/internal.js +106 -18
  200. package/dist/internal.js.map +1 -1
  201. package/dist/link.js +29 -28
  202. package/dist/link.js.map +1 -1
  203. package/dist/loading-indicator.js +1 -1
  204. package/dist/menu.js +8 -6
  205. package/dist/menu.js.map +1 -1
  206. package/dist/modal.js +20 -13
  207. package/dist/modal.js.map +1 -1
  208. package/dist/pagination.js +4 -4
  209. package/dist/payment-method.js +2 -2
  210. package/dist/popover.js +3 -3
  211. package/dist/popper-container.js +2 -2
  212. package/dist/radio-group.js +4 -4
  213. package/dist/search-bar.js +6 -6
  214. package/dist/search-bar.js.map +1 -1
  215. package/dist/segmented-control.js +4 -4
  216. package/dist/sidepanel.js +28 -28
  217. package/dist/sidepanel.js.map +1 -1
  218. package/dist/status.js +2 -2
  219. package/dist/stepper.js +3 -3
  220. package/dist/structured-list.js +1 -1
  221. package/dist/summary-grid.js +2 -2
  222. package/dist/tabs.js +48 -48
  223. package/dist/tabs.js.map +1 -1
  224. package/dist/tag.js +3 -3
  225. package/dist/textarea.js +89 -126
  226. package/dist/textarea.js.map +1 -1
  227. package/dist/timeline.js +38 -38
  228. package/dist/timeline.js.map +1 -1
  229. package/dist/toast.js +3 -3
  230. package/dist/toggle.js +2 -2
  231. package/dist/typography.js +1 -1
  232. package/dist/web-types.json +289 -222
  233. package/package.json +5 -3
  234. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
  235. package/dist/chunks/base-modal.6eaa7e53.js.map +0 -1
  236. package/dist/chunks/dropdown.10ea8304.js.map +0 -1
  237. package/dist/chunks/loading-button.9d18b4f2.js.map +0 -1
  238. package/dist/chunks/tooltip.f89cb0cd.js.map +0 -1
@@ -1,27 +1,26 @@
1
- import { ref as _, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as L } from "vue";
2
- import { D as re, a as $, b as A, c as de } from "./dropdown-default-textbox.2d093874.js";
3
- import { n as B } from "./_plugin-vue2_normalizer.71e2aa87.js";
4
- import { B as ue, d as ce } from "./index.1645ffcb.js";
5
- import { g as R } from "./unique-id.a2a2b458.js";
1
+ import { ref as _, watch as V, computed as c, defineComponent as F, toRefs as J, nextTick as C, toRef as E } from "vue";
2
+ import { B as re, d as de } from "./index.74da0d41.js";
3
+ import { g as D } from "./unique-id.a2a2b458.js";
6
4
  import { u as k } from "./i18n.155748d6.js";
7
- import { u as fe } from "./aria-label.ac9651a5.js";
8
- import { a as s, B as M, b as P } from "./listbox.201a8521.js";
9
- import { B as O, a as pe } from "./keyboard-navigation.ca47dfa8.js";
10
- import { u as ve } from "./use-form-layout-loading.d03e5d48.js";
11
- import { PopperContainer as N } from "../popper-container.js";
5
+ import { u as ue } from "./aria-label.ac9651a5.js";
6
+ import { B as s, b as M, a as P } from "./listbox.cbb27077.js";
7
+ import { B as O, a as ce } from "./keyboard-navigation.ca47dfa8.js";
8
+ import { u as fe } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { PopperContainer as A } from "../popper-container.js";
12
10
  import { BentoPopover as U } from "../popover.js";
13
- import { BentoButtonActionsLayout as be } from "../button.js";
14
- import { E as _e } from "./error-message.7a5db7f6.js";
15
- import { B as me } from "./directive.0408e565.js";
11
+ import { n as R } from "./_plugin-vue2_normalizer.71e2aa87.js";
12
+ import { D as pe, a as $, b as N, c as ve } from "./dropdown-default-textbox.6135874c.js";
13
+ import { E as be } from "./error-message.a04e8f9a.js";
14
+ import { B as _e } from "./directive.0408e565.js";
16
15
  import "../assets/dropdown.css";
17
- var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
18
- const ye = {
16
+ var L = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(L || {});
17
+ const me = {
19
18
  "en-US": {
20
19
  apply: "Apply",
21
20
  cancel: "Cancel",
22
21
  noOptionsMatchThisSearch: "No options match this search"
23
22
  }
24
- }, ge = (t, e, n) => {
23
+ }, ye = (t, e, n) => {
25
24
  const l = _(t.value), { t: a } = k();
26
25
  V(t, () => {
27
26
  l.value = t.value;
@@ -30,7 +29,7 @@ const ye = {
30
29
  () => JSON.stringify(l.value) === JSON.stringify(t.value)
31
30
  ), r = () => {
32
31
  n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
33
- }, d = () => {
32
+ }, u = () => {
34
33
  l.value = t.value, n(s.CLOSE_DROPDOWN);
35
34
  }, i = c(() => [
36
35
  {
@@ -40,26 +39,26 @@ const ye = {
40
39
  },
41
40
  {
42
41
  title: a("cancel"),
43
- event: d
42
+ event: u
44
43
  }
45
- ]), p = (v) => {
44
+ ]), f = (v) => {
46
45
  l.value = v, e.value || n(s.SELECT, v);
47
- }, h = (v) => {
48
- p(v), n(s.TAB);
49
- }, m = (v) => {
50
- p(v), n(s.ENTER);
46
+ }, w = (v) => {
47
+ f(v), n(s.TAB);
51
48
  }, x = (v) => {
52
- p(v), n(s.SPACE);
49
+ f(v), n(s.ENTER);
50
+ }, m = (v) => {
51
+ f(v), n(s.SPACE);
53
52
  }, y = () => {
54
- d(), n(s.ESCAPE);
55
- }, w = () => {
53
+ u(), n(s.ESCAPE);
54
+ }, h = () => {
56
55
  n(s.SHOW_MORE);
57
56
  }, S = {
58
- [s.SELECT]: p,
59
- [s.SHOW_MORE]: w,
60
- [s.TAB]: h,
61
- [s.SPACE]: x,
62
- [s.ENTER]: m
57
+ [s.SELECT]: f,
58
+ [s.SHOW_MORE]: h,
59
+ [s.TAB]: w,
60
+ [s.SPACE]: m,
61
+ [s.ENTER]: x
63
62
  };
64
63
  return {
65
64
  // Values
@@ -69,12 +68,12 @@ const ye = {
69
68
  listeners: S,
70
69
  onEscapeKey: y
71
70
  };
72
- }, xe = F({
73
- i18n: { messages: ye },
71
+ }, ge = F({
72
+ i18n: { messages: me },
74
73
  name: "bento-dropdown-options-container",
75
74
  components: {
76
75
  BentoListbox: M,
77
- PopperContainer: N,
76
+ PopperContainer: A,
78
77
  BentoPopover: U
79
78
  },
80
79
  props: {
@@ -112,8 +111,8 @@ const ye = {
112
111
  */
113
112
  inputSize: {
114
113
  type: String,
115
- default: E.DEFAULT,
116
- validator: (t) => Object.values(E).includes(t)
114
+ default: L.DEFAULT,
115
+ validator: (t) => Object.values(L).includes(t)
117
116
  },
118
117
  /**
119
118
  * The option elements to populate the dropdown with.
@@ -168,7 +167,7 @@ const ye = {
168
167
  * Reference to the DOM element or Vue component for positioning
169
168
  * the Dropdown container.
170
169
  */
171
- targetElement: { type: N.props.targetElement.type, required: !0 }
170
+ targetElement: { type: A.props.targetElement.type, required: !0 }
172
171
  },
173
172
  emits: [
174
173
  s.CLOSE_DROPDOWN,
@@ -180,61 +179,67 @@ const ye = {
180
179
  s.TAB
181
180
  ],
182
181
  setup(t, { emit: e, slots: n }) {
183
- const { selectedValue: l, multiple: a } = J(t), o = _(null), { t: r } = k(), d = c(() => t.open && !t.disabled), i = c(() => r("noOptionsMatchThisSearch")), p = c(() => ({
182
+ var d;
183
+ const { selectedValue: l, multiple: a } = J(t), o = _(null), { t: r } = k(), u = c(() => t.open && !t.disabled), i = c(() => r("noOptionsMatchThisSearch")), f = {
184
+ "min-width": `${(d = t == null ? void 0 : t.targetElement) == null ? void 0 : d.clientWidth}px`,
185
+ "max-width": "min(500px, 95%)"
186
+ }, w = c(() => ({
184
187
  "b-dropdown-options-container--single": !(t != null && t.multiple)
185
- })), h = c(() => ({
186
- "b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
188
+ })), x = c(() => ({
189
+ "b-dropdown-options-container__listbox--small": t.inputSize === L.SMALL,
187
190
  "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
188
- })), { actions: m, internalSelectedValue: x, listeners: y, onEscapeKey: w } = ge(
191
+ })), { actions: m, internalSelectedValue: y, listeners: h, onEscapeKey: S } = ye(
189
192
  l,
190
193
  a,
191
194
  e
192
- ), S = c(
193
- () => t != null && t.multiple ? U : N
194
195
  ), v = c(
195
- () => {
196
- var D;
197
- return t != null && t.multiple ? {
198
- actionsLayout: be.SPACE_BETWEEN,
199
- actions: m.value,
200
- divider: !0,
201
- fallbackPosition: ["top-start"],
202
- id: R(`dropdown-options-${t.id}`),
203
- open: t.open,
204
- position: "bottom-start",
205
- style: { width: `${(D = t == null ? void 0 : t.targetElement) == null ? void 0 : D.clientWidth}px` },
206
- targetElement: t.targetElement
207
- } : {
208
- fallbackPosition: ["top-start"],
209
- matchWidth: !0,
210
- offset: [0, 8],
211
- position: "bottom-start",
212
- style: { display: d.value ? "block" : "none" },
213
- targetElement: t.targetElement
214
- };
196
+ () => t != null && t.multiple ? U : A
197
+ ), B = c(
198
+ () => t != null && t.multiple ? {
199
+ actionsLayout: "space-between",
200
+ actions: m.value,
201
+ divider: !0,
202
+ fallbackPosition: ["top-start"],
203
+ id: D(`dropdown-options-${t.id}`),
204
+ open: t.open,
205
+ position: "bottom-start",
206
+ style: {
207
+ width: "auto",
208
+ ...f
209
+ },
210
+ targetElement: t.targetElement
211
+ } : {
212
+ fallbackPosition: ["top-start"],
213
+ offset: [0, 8],
214
+ position: "bottom-start",
215
+ style: {
216
+ display: u.value ? "block" : "none",
217
+ ...f
218
+ },
219
+ targetElement: t.targetElement
215
220
  }
216
221
  );
217
222
  return {
218
223
  // Values
219
- isDropdownOpen: d,
220
- conditionalClasses: p,
221
- conditionalListboxClasses: h,
224
+ isDropdownOpen: u,
225
+ conditionalClasses: w,
226
+ conditionalListboxClasses: x,
222
227
  noResultsMessage: i,
223
228
  slots: n,
224
229
  actions: m,
225
- internalSelectedValue: x,
230
+ internalSelectedValue: y,
226
231
  // Component wrapper
227
- popperContainerOrPopoverComponent: S,
228
- popperContainerOrPopoverProps: v,
232
+ popperContainerOrPopoverComponent: v,
233
+ popperContainerOrPopoverProps: B,
229
234
  // Refs
230
235
  dropdownOptionsListboxRef: o,
231
236
  // Events
232
- onEscapeKey: w,
233
- listeners: y
237
+ onEscapeKey: S,
238
+ listeners: h
234
239
  };
235
240
  }
236
241
  });
237
- var he = function() {
242
+ var xe = function() {
238
243
  var e = this, n = e._self._c;
239
244
  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) {
240
245
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
@@ -243,29 +248,29 @@ var he = function() {
243
248
  return [e._t(a, null, null, o)];
244
249
  } };
245
250
  })], null, !0) }, e.listeners))], 1)]);
246
- }, we = [], Se = /* @__PURE__ */ B(
251
+ }, we = [], he = /* @__PURE__ */ R(
252
+ ge,
247
253
  xe,
248
- he,
249
254
  we,
250
255
  !1,
251
256
  null,
252
- "cab4d9b5",
257
+ "30fb14c9",
253
258
  null,
254
259
  null
255
260
  );
256
- const Oe = Se.exports;
261
+ const Se = he.exports;
257
262
  let H = 0;
258
- const Ce = {
263
+ const Oe = {
259
264
  beforeCreate() {
260
265
  this.uuid = H.toString(), H += 1;
261
266
  }
262
267
  };
263
- var Ee = function() {
268
+ var Ce = function() {
264
269
  var e = this, n = e._self._c;
265
270
  return n("svg", e._b({ 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", "fill-rule": "evenodd", d: "M4.4697 5.96967C4.76259 5.67678 5.23747 5.67678 5.53036 5.96967L8.00003 8.43934L10.4697 5.96967C10.7626 5.67678 11.2375 5.67678 11.5304 5.96967C11.8233 6.26256 11.8233 6.73744 11.5304 7.03033L8.53036 10.0303C8.23747 10.3232 7.76259 10.3232 7.4697 10.0303L4.4697 7.03033C4.17681 6.73744 4.17681 6.26256 4.4697 5.96967Z", "clip-rule": "evenodd" } })]);
266
- }, Le = [], $e = /* @__PURE__ */ B(
271
+ }, Le = [], Ee = /* @__PURE__ */ R(
272
+ Oe,
267
273
  Ce,
268
- Ee,
269
274
  Le,
270
275
  !1,
271
276
  null,
@@ -273,29 +278,29 @@ var Ee = function() {
273
278
  null,
274
279
  null
275
280
  );
276
- const De = $e.exports;
281
+ const $e = Ee.exports;
277
282
  let j = 0;
278
- const Re = {
283
+ const De = {
279
284
  beforeCreate() {
280
285
  this.uuid = j.toString(), j += 1;
281
286
  }
282
287
  };
283
- var Be = function() {
288
+ var Re = function() {
284
289
  var e = this, n = e._self._c;
285
290
  return n("svg", e._b({ 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", "fill-rule": "evenodd", d: "M11.5303 10.0303C11.2374 10.3232 10.7626 10.3232 10.4697 10.0303L8 7.56066L5.53033 10.0303C5.23744 10.3232 4.76256 10.3232 4.46967 10.0303C4.17678 9.73744 4.17678 9.26256 4.46967 8.96967L7.46967 5.96967C7.61032 5.82902 7.80109 5.75 8 5.75C8.19891 5.75 8.38968 5.82902 8.53033 5.96967L11.5303 8.96967C11.8232 9.26256 11.8232 9.73744 11.5303 10.0303Z", "clip-rule": "evenodd" } })]);
286
- }, Ie = [], Te = /* @__PURE__ */ B(
291
+ }, Be = [], Ie = /* @__PURE__ */ R(
292
+ De,
287
293
  Re,
288
294
  Be,
289
- Ie,
290
295
  !1,
291
296
  null,
292
297
  "6f20d431",
293
298
  null,
294
299
  null
295
300
  );
296
- const Ae = Te.exports, Ne = F({
301
+ const Te = Ie.exports, Ae = F({
297
302
  name: "dropdown-small-textbox",
298
- components: { ChevronDownSmallIcon: De, ChevronUpSmallIcon: Ae, DropdownBaseTextbox: re },
303
+ components: { ChevronDownSmallIcon: $e, ChevronUpSmallIcon: Te, DropdownBaseTextbox: pe },
299
304
  inheritAttrs: !1,
300
305
  props: {
301
306
  /**
@@ -370,9 +375,9 @@ const Ae = Te.exports, Ne = F({
370
375
  emits: [$.OPEN, $.CLOSE],
371
376
  setup(t, { emit: e }) {
372
377
  const n = c(() => ({
373
- [`b-dropdown-small-textbox--${A.DISABLED}`]: t.disabled,
374
- [`b-dropdown-small-textbox--${A.READONLY}`]: t.readonly,
375
- [`b-dropdown-small-textbox--${A.OPENED}`]: t.open
378
+ [`b-dropdown-small-textbox--${N.DISABLED}`]: t.disabled,
379
+ [`b-dropdown-small-textbox--${N.READONLY}`]: t.readonly,
380
+ [`b-dropdown-small-textbox--${N.OPENED}`]: t.open
376
381
  })), l = c(() => t.open && !t.disabled && !t.readonly), a = () => {
377
382
  e($.OPEN);
378
383
  }, o = () => {
@@ -390,43 +395,43 @@ const Ae = Te.exports, Ne = F({
390
395
  };
391
396
  }
392
397
  });
393
- var Me = function() {
398
+ var Ne = function() {
394
399
  var e = this, n = e._self._c;
395
400
  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() {
396
401
  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)];
397
402
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), e.listeners))], 1);
398
- }, Pe = [], Fe = /* @__PURE__ */ B(
403
+ }, Me = [], Pe = /* @__PURE__ */ R(
404
+ Ae,
399
405
  Ne,
400
406
  Me,
401
- Pe,
402
407
  !1,
403
408
  null,
404
409
  "d9e6eff4",
405
410
  null,
406
411
  null
407
412
  );
408
- const ke = Fe.exports;
409
- function Ke(t, e, n) {
410
- const l = _(t), a = _(e), o = (d, i = []) => i.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? [p, ...o(d, p.items)] : p.items ? [...o(d, p.items)] : []);
413
+ const Fe = Pe.exports;
414
+ function ke(t, e, n) {
415
+ const l = _(t), a = _(e), o = (u, i = []) => i.flatMap((f) => f.label.toLocaleLowerCase().includes(u) ? [f, ...o(u, f.items)] : f.items ? [...o(u, f.items)] : []);
411
416
  return V(l, () => {
412
417
  n !== void 0 && n(l.value);
413
418
  }), c(() => {
414
419
  if (!l.value || n !== void 0)
415
420
  return a.value;
416
- const d = l.value.toLocaleLowerCase();
417
- return o(d, a.value);
421
+ const u = l.value.toLocaleLowerCase();
422
+ return o(u, a.value);
418
423
  });
419
424
  }
420
- const We = ({ items: t, placeholder: e, selectedValue: n }) => {
425
+ const Ke = ({ items: t, placeholder: e, selectedValue: n }) => {
421
426
  const l = t.value.find(({ value: a }) => a === n.value);
422
427
  return (l == null ? void 0 : l.label) || e.value || null;
423
- }, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
428
+ }, We = ({ selectedValues: t, items: e, placeholder: n }) => {
424
429
  var l;
425
430
  return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
426
431
  const { label: o } = e.value.find(({ value: r }) => r === a);
427
432
  return o;
428
433
  }).join(", ");
429
- }, qe = ({ selectedValues: t, items: e, placeholder: n }) => {
434
+ }, ze = ({ selectedValues: t, items: e, placeholder: n }) => {
430
435
  var l;
431
436
  return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
432
437
  if (o.items) {
@@ -437,13 +442,13 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
437
442
  }
438
443
  return t.value.includes(o.value) && a.push(o.label), a;
439
444
  }, []).join(", ");
440
- }, Ue = ({ items: t, placeholder: e, value: n, multiple: l }) => {
445
+ }, qe = ({ items: t, placeholder: e, value: n, multiple: l }) => {
441
446
  const a = c(() => t.value.find((r) => {
442
- var d;
443
- return (d = r.items) == null ? void 0 : d.length;
447
+ var u;
448
+ return (u = r.items) == null ? void 0 : u.length;
444
449
  }));
445
- return c(() => l.value ? a.value ? qe({ selectedValues: n, placeholder: e, items: t }) : ze({ selectedValues: n, items: t, placeholder: e }) : We({ items: t, placeholder: e, selectedValue: n }));
446
- }, He = {
450
+ return c(() => l.value ? a.value ? ze({ selectedValues: n, placeholder: e, items: t }) : We({ selectedValues: n, items: t, placeholder: e }) : Ke({ items: t, placeholder: e, selectedValue: n }));
451
+ }, Ue = {
447
452
  "en-US": {
448
453
  optional: "optional",
449
454
  required: "required",
@@ -453,7 +458,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
453
458
  }, Z = (t) => {
454
459
  var e;
455
460
  (e = t.value.$children) == null || e[0].$refs.textbox.focus();
456
- }, je = ({
461
+ }, He = ({
457
462
  inputContainerRef: t,
458
463
  optionsContainerRef: e,
459
464
  selectedValueIndex: n,
@@ -461,54 +466,54 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
461
466
  isDynamicFltering: a,
462
467
  items: o,
463
468
  isMultiple: r
464
- }, d, i, p) => {
465
- const h = ({ detail: u }) => {
466
- u.preventDefault(), l.value || (i(), C(() => {
467
- var f, g;
468
- r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
469
+ }, u, i, f) => {
470
+ const w = ({ detail: d }) => {
471
+ d.preventDefault(), l.value || (i(), C(() => {
472
+ var p, g;
473
+ r ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
469
474
  }));
470
- }, m = ({ detail: u }) => {
471
- u.preventDefault(), l.value || (i(), C(() => {
472
- var f;
473
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
475
+ }, x = ({ detail: d }) => {
476
+ d.preventDefault(), l.value || (i(), C(() => {
477
+ var p;
478
+ (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus();
474
479
  }));
475
- }, x = () => {
480
+ }, m = () => {
476
481
  l.value || (i(), C(() => {
477
- var u, f;
482
+ var d, p;
478
483
  if (r) {
479
484
  const g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
480
- (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[g.length - 1].$children[o.length - 1].$el.focus();
485
+ (d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[g.length - 1].$children[o.length - 1].$el.focus();
481
486
  } else
482
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[o.length - 1].$el.focus();
487
+ (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[o.length - 1].$el.focus();
483
488
  }));
484
489
  }, y = () => {
485
- l.value && (p(), Z(t));
486
- }, w = () => {
490
+ l.value && (f(), Z(t));
491
+ }, h = () => {
487
492
  l.value || i(), C(() => {
488
- var u;
489
- (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
493
+ var d;
494
+ (d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[0].$el.focus();
490
495
  });
491
- }, S = ({ detail: u }) => {
492
- u.preventDefault(), d(), l.value && C(() => {
493
- var f, g;
494
- r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
496
+ }, S = ({ detail: d }) => {
497
+ d.preventDefault(), u(), l.value && C(() => {
498
+ var p, g;
499
+ r ? (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[0].$el.focus() : (g = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[n.value].$el.focus();
495
500
  });
496
501
  }, v = () => {
497
- d(), l.value && C(() => {
498
- var u, f;
499
- r ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[n.value].$el.focus();
502
+ u(), l.value && C(() => {
503
+ var d, p;
504
+ r ? (d = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || d[0].$el.focus() : (p = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || p[n.value].$el.focus();
500
505
  });
501
506
  };
502
507
  return c(() => ({
503
508
  ...a.value ? {} : { [O.SPACE]: S },
504
509
  [O.ENTER]: v,
505
- [O.ARROW_DOWN]: h,
506
- [O.ARROW_UP]: m,
507
- [O.END]: x,
510
+ [O.ARROW_DOWN]: w,
511
+ [O.ARROW_UP]: x,
512
+ [O.END]: m,
508
513
  [O.ESCAPE]: y,
509
- [O.HOME]: w
514
+ [O.HOME]: h
510
515
  }));
511
- }, Ve = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
516
+ }, je = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
512
517
  const l = () => {
513
518
  e.value && n(), C(() => {
514
519
  Z(t);
@@ -520,17 +525,17 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
520
525
  [s.TAB]: l,
521
526
  [s.SPACE]: l
522
527
  };
523
- }, Je = F({
524
- i18n: { messages: He },
528
+ }, Ve = F({
529
+ i18n: { messages: Ue },
525
530
  name: "b-dropdown",
526
531
  components: {
527
- BentoDropdownOptionsContainer: Oe,
528
- BentoTypography: ue,
529
- DropdownInputDefault: de,
530
- DropdownInputSmall: ke,
531
- ErrorMessage: _e
532
+ BentoDropdownOptionsContainer: Se,
533
+ BentoTypography: re,
534
+ DropdownInputDefault: ve,
535
+ DropdownInputSmall: Fe,
536
+ ErrorMessage: be
532
537
  },
533
- directives: { BentoClickOutsideDirective: me, BentoKeyboardNavigationDirective: pe },
538
+ directives: { BentoClickOutsideDirective: _e, BentoKeyboardNavigationDirective: ce },
534
539
  props: {
535
540
  /**
536
541
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -642,8 +647,8 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
642
647
  */
643
648
  size: {
644
649
  type: String,
645
- default: E.DEFAULT,
646
- validator: (t) => Object.values(E).includes(t)
650
+ default: L.DEFAULT,
651
+ validator: (t) => Object.values(L).includes(t)
647
652
  },
648
653
  /**
649
654
  * The `input` value.
@@ -666,19 +671,19 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
666
671
  emits: ["input", s.SHOW_MORE],
667
672
  setup(t, { attrs: e, emit: n, slots: l }) {
668
673
  var q;
669
- const { t: a } = k(), o = _(null), r = _(null), d = _(null), i = _(!1), p = R("bento-dropdown-options-container"), h = R("dropdown-label"), m = R("dropdown-description"), x = R("dropdown-error"), { isReadOnly: y } = ve(L(t, "readonly")), w = _(e["aria-label"]), { ariaLabel: S } = J(t), v = fe({
670
- ariaLabel: w.value,
674
+ const { t: a } = k(), o = _(null), r = _(null), u = _(null), i = _(!1), f = D("bento-dropdown-options-container"), w = D("dropdown-label"), x = D("dropdown-description"), m = D("dropdown-error"), { isReadOnly: y } = fe(E(t, "readonly")), h = _(e["aria-label"]), { ariaLabel: S } = J(t), v = ue({
675
+ ariaLabel: h.value,
671
676
  // TODO: take this line away when the aria-label props is removed
672
677
  label: S,
673
678
  defaultFallback: a("ariaLabelFallback")
674
- }), D = c(() => ({
679
+ }), B = c(() => ({
675
680
  "b-dropdown__description--error": !!t.errorMessage
676
- })), u = _(""), f = L(t, "items"), g = Ke(u, f, (q = t == null ? void 0 : t.search) == null ? void 0 : q.searchEvent), I = c(() => t.dynamicFiltering && !!u.value), Y = Ue({
677
- items: f,
678
- multiple: L(t, "multiple"),
679
- placeholder: L(t, "placeholder"),
680
- value: L(t, "value")
681
- }), G = c(() => t.size === E.DEFAULT), Q = c(
681
+ })), d = _(""), p = E(t, "items"), g = ke(d, p, (q = t == null ? void 0 : t.search) == null ? void 0 : q.searchEvent), I = c(() => t.dynamicFiltering && !!d.value), Y = qe({
682
+ items: p,
683
+ multiple: E(t, "multiple"),
684
+ placeholder: E(t, "placeholder"),
685
+ value: E(t, "value")
686
+ }), G = c(() => t.size === L.DEFAULT), Q = c(
682
687
  () => t != null && t.multiple ? t.items.filter(
683
688
  ({ value: b }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(b)
684
689
  ) : t.items.find(({ value: b }) => b === (t == null ? void 0 : t.value))
@@ -689,33 +694,33 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
689
694
  var b;
690
695
  return t.multiple ? (b = t == null ? void 0 : t.value) == null ? void 0 : b.length : null;
691
696
  }), te = c(
692
- () => `${t.description ? m : ""} ${t.errorMessage ? x : ""}`.trim() || null
697
+ () => `${t.description ? x : ""} ${t.errorMessage ? m : ""}`.trim() || null
693
698
  ), ne = () => {
694
699
  y.value || (i.value = !0);
695
700
  }, T = () => {
696
701
  i.value = !1;
697
702
  }, K = () => {
698
- y.value || (i.value = !i.value, I.value && (u.value = ""));
703
+ y.value || (i.value = !i.value, I.value && (d.value = ""));
699
704
  }, le = () => {
700
- I.value && (u.value = ""), i.value && (i.value = !1);
705
+ I.value && (d.value = ""), i.value && (i.value = !1);
701
706
  }, W = (b) => {
702
- t.multiple || (u.value = "", i.value = !1), n("input", b);
707
+ t.multiple || (d.value = "", i.value = !1), n("input", b);
703
708
  }, z = () => {
704
709
  n(s.SHOW_MORE);
705
- }, oe = je(
710
+ }, oe = He(
706
711
  {
707
712
  inputContainerRef: o,
708
- optionsContainerRef: d,
713
+ optionsContainerRef: u,
709
714
  selectedValueIndex: X,
710
715
  isDropdownOpen: i,
711
- isDynamicFltering: L(t, "dynamicFiltering"),
716
+ isDynamicFltering: E(t, "dynamicFiltering"),
712
717
  items: t.items,
713
718
  isMultiple: t.multiple
714
719
  },
715
720
  K,
716
721
  ne,
717
722
  T
718
- ), ae = Ve(
723
+ ), ae = je(
719
724
  {
720
725
  inputContainerRef: o,
721
726
  isDropdownOpen: i
@@ -727,7 +732,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
727
732
  [s.SHOW_MORE]: z,
728
733
  ...ae
729
734
  };
730
- return t.error && ce(
735
+ return t.error && de(
731
736
  'BentoDropdown "error" property',
732
737
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
733
738
  Having the field as "undefined" will hide/remove the error.
@@ -740,14 +745,14 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
740
745
  idDefaultSize: G,
741
746
  isDropdownOpen: i,
742
747
  displayValue: Y,
743
- dropdownOptionsContainerId: p,
748
+ dropdownOptionsContainerId: f,
744
749
  filteredItems: g,
745
750
  isSearching: I,
746
751
  isReadOnly: y,
747
- searchTerm: u,
748
- labelId: h,
749
- descriptionId: m,
750
- errorId: x,
752
+ searchTerm: d,
753
+ labelId: w,
754
+ descriptionId: x,
755
+ errorId: m,
751
756
  ariaDescribedBy: te,
752
757
  selectedValueItem: Q,
753
758
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
@@ -755,11 +760,11 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
755
760
  // { slots } as a proxy of $scopedSlots and $scopes in their
756
761
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
757
762
  slots: l,
758
- descriptionConditionalClasses: D,
763
+ descriptionConditionalClasses: B,
759
764
  // Refs
760
765
  inputContainerRef: o,
761
766
  inputContainerRefWrapper: r,
762
- optionsContainerRef: d,
767
+ optionsContainerRef: u,
763
768
  // Events
764
769
  closeOpenedDropdown: le,
765
770
  toggleDropdown: K,
@@ -770,7 +775,7 @@ const We = ({ items: t, placeholder: e, selectedValue: n }) => {
770
775
  };
771
776
  }
772
777
  });
773
- var Ze = function() {
778
+ var Je = function() {
774
779
  var l;
775
780
  var e = this, n = e._self._c;
776
781
  return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown" }, [e.label ? n("div", { staticClass: "b-dropdown__label", attrs: { id: e.labelId } }, [n("bento-typography", { attrs: { el: "span", stronger: "" } }, [e._v(e._s(e.label))]), e.optional ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("optional")) + ") ")]) : e._e(), e.required ? n("bento-typography", { staticClass: "b-dropdown__label-requirement", attrs: { el: "span" } }, [e._v(" (" + e._s(e.$t("required")) + ") ")]) : e._e()], 1) : 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: { 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) {
@@ -784,20 +789,20 @@ var Ze = function() {
784
789
  return [e._t(o, null, null, r)];
785
790
  } };
786
791
  })], 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._v(" " + e._s(e.description) + " ")]) : e._e()], 1);
787
- }, Ye = [], Ge = /* @__PURE__ */ B(
792
+ }, Ze = [], Ye = /* @__PURE__ */ R(
793
+ Ve,
788
794
  Je,
789
795
  Ze,
790
- Ye,
791
796
  !1,
792
797
  null,
793
798
  "ec4f9fd4",
794
799
  null,
795
800
  null
796
801
  );
797
- const pt = Ge.exports;
802
+ const ct = Ye.exports;
798
803
  export {
799
- pt as B,
800
- E as a,
801
- Ke as u
804
+ ct as B,
805
+ L as a,
806
+ ke as u
802
807
  };
803
- //# sourceMappingURL=dropdown.10ea8304.js.map
808
+ //# sourceMappingURL=dropdown.5d22958c.js.map