@adyen/bento-vue3 1.2.0 → 1.3.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 (223) hide show
  1. package/dist/@types/components.d.ts +12 -0
  2. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  3. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
  4. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
  5. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
  6. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
  7. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
  8. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
  9. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
  10. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
  11. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
  13. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
  15. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
  17. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
  19. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
  21. package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
  23. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
  24. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
  25. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
  26. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
  27. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
  28. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
  29. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +5 -3
  30. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
  31. package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
  32. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
  33. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
  34. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +46 -0
  35. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
  37. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
  40. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  41. package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
  42. package/dist/accordion.js +1 -1
  43. package/dist/alert.js +3 -3
  44. package/dist/assets/arrow-left.css +1 -0
  45. package/dist/assets/base-button.css +1 -1
  46. package/dist/assets/button.css +1 -1
  47. package/dist/assets/calendar.css +1 -1
  48. package/dist/assets/checkbox.css +1 -1
  49. package/dist/assets/controls-group.css +1 -1
  50. package/dist/assets/copy.css +1 -1
  51. package/dist/assets/dropdown-default-textbox.css +1 -1
  52. package/dist/assets/dropdown.css +1 -1
  53. package/dist/assets/error-message.css +1 -1
  54. package/dist/assets/footer-actions.css +1 -0
  55. package/dist/assets/grid-layout.css +1 -1
  56. package/dist/assets/index.css +1 -1
  57. package/dist/assets/index10.css +1 -1
  58. package/dist/assets/index11.css +1 -1
  59. package/dist/assets/index12.css +1 -1
  60. package/dist/assets/index13.css +1 -1
  61. package/dist/assets/index14.css +1 -1
  62. package/dist/assets/index15.css +1 -1
  63. package/dist/assets/index16.css +1 -1
  64. package/dist/assets/index17.css +1 -1
  65. package/dist/assets/index18.css +1 -1
  66. package/dist/assets/index19.css +1 -1
  67. package/dist/assets/index2.css +1 -1
  68. package/dist/assets/index20.css +1 -1
  69. package/dist/assets/index21.css +1 -1
  70. package/dist/assets/index22.css +1 -1
  71. package/dist/assets/index23.css +1 -1
  72. package/dist/assets/index24.css +1 -1
  73. package/dist/assets/index25.css +1 -1
  74. package/dist/assets/index26.css +1 -1
  75. package/dist/assets/index27.css +1 -1
  76. package/dist/assets/index28.css +1 -1
  77. package/dist/assets/index29.css +1 -1
  78. package/dist/assets/index3.css +1 -1
  79. package/dist/assets/index30.css +1 -1
  80. package/dist/assets/index31.css +1 -1
  81. package/dist/assets/index32.css +1 -1
  82. package/dist/assets/index33.css +1 -1
  83. package/dist/assets/index34.css +1 -1
  84. package/dist/assets/index35.css +1 -1
  85. package/dist/assets/index36.css +1 -1
  86. package/dist/assets/index37.css +1 -1
  87. package/dist/assets/index38.css +1 -1
  88. package/dist/assets/index39.css +1 -1
  89. package/dist/assets/index4.css +1 -1
  90. package/dist/assets/index40.css +1 -1
  91. package/dist/assets/index41.css +1 -0
  92. package/dist/assets/index42.css +1 -0
  93. package/dist/assets/index5.css +1 -1
  94. package/dist/assets/index6.css +1 -1
  95. package/dist/assets/index7.css +1 -1
  96. package/dist/assets/index8.css +1 -1
  97. package/dist/assets/index9.css +1 -1
  98. package/dist/assets/listbox-option-tag.css +1 -1
  99. package/dist/assets/listbox.css +1 -1
  100. package/dist/assets/loading-button.css +1 -1
  101. package/dist/assets/tooltip.css +1 -1
  102. package/dist/avatar-image.js +1 -1
  103. package/dist/badge.js +1 -1
  104. package/dist/button.js +3 -3
  105. package/dist/card.js +3 -3
  106. package/dist/checkbox.js +111 -97
  107. package/dist/checkbox.js.map +1 -1
  108. package/dist/chunks/arrow-left.cdbcc128.js +30 -0
  109. package/dist/chunks/arrow-left.cdbcc128.js.map +1 -0
  110. package/dist/chunks/{base-button.4a56c2fb.js → base-button.20be08da.js} +2 -2
  111. package/dist/chunks/{base-button.4a56c2fb.js.map → base-button.20be08da.js.map} +1 -1
  112. package/dist/chunks/{button-actions.a6e541ad.js → button-actions.54e28e75.js} +2 -2
  113. package/dist/chunks/{button-actions.a6e541ad.js.map → button-actions.54e28e75.js.map} +1 -1
  114. package/dist/chunks/{button.1f630b6e.js → button.e1c39f66.js} +2 -2
  115. package/dist/chunks/{button.1f630b6e.js.map → button.e1c39f66.js.map} +1 -1
  116. package/dist/chunks/{calendar.08885a56.js → calendar.09b683b3.js} +6 -6
  117. package/dist/chunks/calendar.09b683b3.js.map +1 -0
  118. package/dist/chunks/{checkbox.cfb8b8df.js → checkbox.a404069b.js} +3 -3
  119. package/dist/chunks/{checkbox.cfb8b8df.js.map → checkbox.a404069b.js.map} +1 -1
  120. package/dist/chunks/controls-group.60fb2a86.js +136 -0
  121. package/dist/chunks/controls-group.60fb2a86.js.map +1 -0
  122. package/dist/chunks/{copy.1ce0203e.js → copy.2cf5e6c3.js} +3 -3
  123. package/dist/chunks/{copy.1ce0203e.js.map → copy.2cf5e6c3.js.map} +1 -1
  124. package/dist/chunks/{dropdown-default-textbox.dd77bb42.js → dropdown-default-textbox.203e747f.js} +54 -51
  125. package/dist/chunks/dropdown-default-textbox.203e747f.js.map +1 -0
  126. package/dist/chunks/{dropdown.f9997464.js → dropdown.8b415aac.js} +188 -185
  127. package/dist/chunks/dropdown.8b415aac.js.map +1 -0
  128. package/dist/chunks/{error-message.b88bb75a.js → error-message.ddfe8ea5.js} +2 -2
  129. package/dist/chunks/{error-message.b88bb75a.js.map → error-message.ddfe8ea5.js.map} +1 -1
  130. package/dist/chunks/footer-actions.0f640f87.js +106 -0
  131. package/dist/chunks/footer-actions.0f640f87.js.map +1 -0
  132. package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
  133. package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
  134. package/dist/chunks/{index.361c61d3.js → index.13949709.js} +2 -2
  135. package/dist/chunks/{index.361c61d3.js.map → index.13949709.js.map} +1 -1
  136. package/dist/chunks/index.222d29b0.js +120 -0
  137. package/dist/chunks/index.222d29b0.js.map +1 -0
  138. package/dist/chunks/{index.64b7b3cc.js → index.3da90517.js} +6 -6
  139. package/dist/chunks/{index.64b7b3cc.js.map → index.3da90517.js.map} +1 -1
  140. package/dist/chunks/{index.96001b1d.js → index.aa34e363.js} +3 -3
  141. package/dist/chunks/{index.96001b1d.js.map → index.aa34e363.js.map} +1 -1
  142. package/dist/chunks/{index.b46a5047.js → index.c9225c3b.js} +260 -253
  143. package/dist/chunks/{index.b46a5047.js.map → index.c9225c3b.js.map} +1 -1
  144. package/dist/chunks/{index.7dd953ea.js → index.d27367cd.js} +2 -2
  145. package/dist/chunks/{index.7dd953ea.js.map → index.d27367cd.js.map} +1 -1
  146. package/dist/chunks/{listbox-option-tag.73661a5d.js → listbox-option-tag.5ae8b79b.js} +3 -3
  147. package/dist/chunks/{listbox-option-tag.73661a5d.js.map → listbox-option-tag.5ae8b79b.js.map} +1 -1
  148. package/dist/chunks/{listbox.7b5e0eee.js → listbox.0c7c4e5e.js} +339 -339
  149. package/dist/chunks/listbox.0c7c4e5e.js.map +1 -0
  150. package/dist/chunks/loading-button.61d8ebe5.js +109 -0
  151. package/dist/chunks/loading-button.61d8ebe5.js.map +1 -0
  152. package/dist/chunks/{tooltip.53290a34.js → tooltip.835d9b52.js} +2 -2
  153. package/dist/chunks/tooltip.835d9b52.js.map +1 -0
  154. package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
  155. package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
  156. package/dist/code-snippet.js +6 -6
  157. package/dist/code-snippet.js.map +1 -1
  158. package/dist/country.js +559 -595
  159. package/dist/country.js.map +1 -1
  160. package/dist/currency.js +1 -1
  161. package/dist/data-grid.js +682 -702
  162. package/dist/data-grid.js.map +1 -1
  163. package/dist/date-picker.js +82 -75
  164. package/dist/date-picker.js.map +1 -1
  165. package/dist/date-range-picker.js +2 -2
  166. package/dist/date.js +1 -1
  167. package/dist/divider.js +1 -1
  168. package/dist/dropdown.js +67 -62
  169. package/dist/dropdown.js.map +1 -1
  170. package/dist/filter-bar.js +446 -442
  171. package/dist/filter-bar.js.map +1 -1
  172. package/dist/focus-trap.js +1 -1
  173. package/dist/form-layout.js +188 -0
  174. package/dist/form-layout.js.map +1 -0
  175. package/dist/header.js +3 -3
  176. package/dist/index.js +191 -187
  177. package/dist/index.js.map +1 -1
  178. package/dist/info-icon.js +2 -2
  179. package/dist/input-field.js +123 -121
  180. package/dist/input-field.js.map +1 -1
  181. package/dist/internal.js +6 -6
  182. package/dist/link.js +2 -2
  183. package/dist/loading-indicator.js +1 -1
  184. package/dist/menu.js +4 -4
  185. package/dist/modal.js +266 -397
  186. package/dist/modal.js.map +1 -1
  187. package/dist/pagination.js +4 -4
  188. package/dist/payment-method.js +2 -2
  189. package/dist/popover.js +4 -4
  190. package/dist/popper-container.js +2 -2
  191. package/dist/radio-group.js +127 -124
  192. package/dist/radio-group.js.map +1 -1
  193. package/dist/search-bar.js +2 -2
  194. package/dist/segmented-control.js +4 -4
  195. package/dist/sidepanel.js +279 -0
  196. package/dist/sidepanel.js.map +1 -0
  197. package/dist/status.js +2 -2
  198. package/dist/structured-list.js +1 -1
  199. package/dist/summary-grid.js +3 -3
  200. package/dist/tabs.js +7 -7
  201. package/dist/tabs.js.map +1 -1
  202. package/dist/tag.js +3 -3
  203. package/dist/textarea.js +97 -95
  204. package/dist/textarea.js.map +1 -1
  205. package/dist/timeline.js +8 -8
  206. package/dist/timeline.js.map +1 -1
  207. package/dist/toast.js +3 -3
  208. package/dist/toggle.js +2 -2
  209. package/dist/typography.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +14 -7
  212. package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
  213. package/dist/chunks/calendar.08885a56.js.map +0 -1
  214. package/dist/chunks/controls-group.806da9bd.js +0 -75
  215. package/dist/chunks/controls-group.806da9bd.js.map +0 -1
  216. package/dist/chunks/dropdown-default-textbox.dd77bb42.js.map +0 -1
  217. package/dist/chunks/dropdown.f9997464.js.map +0 -1
  218. package/dist/chunks/index.ebf5f6cf.js +0 -119
  219. package/dist/chunks/index.ebf5f6cf.js.map +0 -1
  220. package/dist/chunks/listbox.7b5e0eee.js.map +0 -1
  221. package/dist/chunks/loading-button.426d89b9.js +0 -113
  222. package/dist/chunks/loading-button.426d89b9.js.map +0 -1
  223. package/dist/chunks/tooltip.53290a34.js.map +0 -1
@@ -1,16 +1,17 @@
1
- import { ref as E, watch as fe, computed as c, defineComponent as X, toRefs as De, resolveComponent as B, openBlock as m, createBlock as L, resolveDynamicComponent as me, mergeProps as I, withCtx as S, createElementVNode as q, withKeys as Be, createVNode as M, toHandlers as k, createSlots as x, renderList as j, renderSlot as J, normalizeProps as Z, guardReactiveProps as Y, createElementBlock as O, toDisplayString as A, createCommentVNode as _, pushScopeId as ve, popScopeId as ye, normalizeClass as be, withDirectives as W, vShow as ae, nextTick as D, toRef as N, resolveDirective as ie, createTextVNode as z } from "vue";
2
- import { a as s, B as G, b as F } from "./listbox.7b5e0eee.js";
3
- import { B as Te } from "./directive.0408e565.js";
4
- import { B as C, a as Ie } from "./debounce.f8d92e44.js";
5
- import { D as Re, a as R, b as H, c as Ae } from "./dropdown-default-textbox.dd77bb42.js";
6
- import { _ as K } from "./_plugin-vue_export-helper.dad06003.js";
7
- import { B as Ne, d as Pe, a as Me } from "./index.ebf5f6cf.js";
1
+ import { ref as S, watch as fe, computed as c, defineComponent as X, toRefs as Be, resolveComponent as B, openBlock as m, createBlock as C, resolveDynamicComponent as me, mergeProps as I, withCtx as $, createElementVNode as q, withKeys as Te, createVNode as M, toHandlers as k, createSlots as x, renderList as j, renderSlot as J, normalizeProps as Z, guardReactiveProps as Y, createElementBlock as _, toDisplayString as N, createCommentVNode as E, pushScopeId as ve, popScopeId as be, normalizeClass as ye, withDirectives as W, vShow as ae, nextTick as D, toRef as R, resolveDirective as ie, createTextVNode as z } from "vue";
2
+ import { a as s, B as G, b as F } from "./listbox.0c7c4e5e.js";
3
+ import { B as Ie } from "./directive.0408e565.js";
4
+ import { B as L, a as Re } from "./debounce.f8d92e44.js";
5
+ import { B as Ae, d as Ne, a as Pe } from "./index.222d29b0.js";
8
6
  import { g as P } from "./unique-id.a2a2b458.js";
9
- import { PopperContainer as V, PopperContainerPosition as se } from "../popper-container.js";
7
+ import { u as Me } from "./use-form-layout-loading.d03e5d48.js";
8
+ import { PopperContainer as H, PopperContainerPosition as se } from "../popper-container.js";
10
9
  import { u as ge } from "./i18n.6c402773.js";
11
10
  import { BentoPopover as re, BentoPopoverPositions as de } from "../popover.js";
12
- import { c as ue } from "./button-actions.a6e541ad.js";
13
- import { E as Ke } from "./error-message.b88bb75a.js";
11
+ import { c as ue } from "./button-actions.54e28e75.js";
12
+ import { _ as K } from "./_plugin-vue_export-helper.dad06003.js";
13
+ import { D as Ke, a as A, b as V, c as ze } from "./dropdown-default-textbox.203e747f.js";
14
+ import { E as ke } from "./error-message.ddfe8ea5.js";
14
15
  import "../assets/dropdown.css";
15
16
  var T = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(T || {});
16
17
  const Q = {
@@ -19,8 +20,8 @@ const Q = {
19
20
  cancel: "Cancel",
20
21
  noOptionsMatchThisSearch: "No options match this search"
21
22
  }
22
- }, ze = (e, o, n) => {
23
- const t = E(e.value), { t: a } = ge({ messages: Q });
23
+ }, We = (e, o, n) => {
24
+ const t = S(e.value), { t: a } = ge({ messages: Q });
24
25
  fe(e, () => {
25
26
  t.value = e.value;
26
27
  });
@@ -44,35 +45,35 @@ const Q = {
44
45
  t.value = f, o.value || n(s.SELECT, f);
45
46
  }, y = (f) => {
46
47
  u(f), n(s.TAB);
47
- }, h = (f) => {
48
+ }, v = (f) => {
48
49
  u(f), n(s.ENTER);
49
- }, p = (f) => {
50
+ }, g = (f) => {
50
51
  u(f), n(s.SPACE);
51
- }, v = () => {
52
+ }, p = () => {
52
53
  r(), n(s.ESCAPE);
53
54
  }, b = () => {
54
55
  n(s.SHOW_MORE);
55
- }, w = {
56
+ }, O = {
56
57
  [s.SELECT]: u,
57
58
  [s.SHOW_MORE]: b,
58
59
  [s.TAB]: y,
59
- [s.SPACE]: p,
60
- [s.ENTER]: h
60
+ [s.SPACE]: g,
61
+ [s.ENTER]: v
61
62
  };
62
63
  return {
63
64
  // Values
64
65
  actions: d,
65
66
  internalSelectedValue: t,
66
67
  // Methods
67
- listeners: w,
68
- onEscapeKey: v
68
+ listeners: O,
69
+ onEscapeKey: p
69
70
  };
70
- }, ke = X({
71
+ }, Fe = X({
71
72
  i18n: { messages: Q },
72
73
  name: "bento-dropdown-options-container",
73
74
  components: {
74
75
  BentoListbox: G,
75
- PopperContainer: V,
76
+ PopperContainer: H,
76
77
  BentoPopover: re
77
78
  },
78
79
  props: {
@@ -167,7 +168,7 @@ const Q = {
167
168
  * Reference to the DOM element or Vue component for positioning
168
169
  * the Dropdown container.
169
170
  */
170
- targetElement: { type: V.props.targetElement.type, required: !0 }
171
+ targetElement: { type: H.props.targetElement.type, required: !0 }
171
172
  },
172
173
  emits: [
173
174
  s.CLOSE_DROPDOWN,
@@ -179,16 +180,16 @@ const Q = {
179
180
  s.TAB
180
181
  ],
181
182
  setup(e, { emit: o, slots: n }) {
182
- const { selectedValue: t, multiple: a } = De(e), i = E(null), { t: l } = ge({ messages: Q }), r = c(() => e.open && !e.disabled), d = c(() => l("noOptionsMatchThisSearch")), u = c(() => ({
183
+ const { selectedValue: t, multiple: a } = Be(e), i = S(null), { t: l } = ge({ messages: Q }), r = c(() => e.open && !e.disabled), d = c(() => l("noOptionsMatchThisSearch")), u = c(() => ({
183
184
  "b-dropdown-options-container__listbox--small": e.inputSize === T.SMALL,
184
185
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
185
- })), { actions: y, internalSelectedValue: h, listeners: p, onEscapeKey: v } = ze(
186
+ })), { actions: y, internalSelectedValue: v, listeners: g, onEscapeKey: p } = We(
186
187
  t,
187
188
  a,
188
189
  o
189
190
  ), b = c(
190
- () => e != null && e.multiple ? re : V
191
- ), w = c(
191
+ () => e != null && e.multiple ? re : H
192
+ ), O = c(
192
193
  () => {
193
194
  var f;
194
195
  return e != null && e.multiple ? {
@@ -216,10 +217,10 @@ const Q = {
216
217
  noResultsMessage: d,
217
218
  slots: n,
218
219
  actions: y,
219
- internalSelectedValue: h,
220
+ internalSelectedValue: v,
220
221
  // Component wrapper
221
222
  popperContainerOrPopoverComponent: b,
222
- popperContainerOrPopoverProps: w,
223
+ popperContainerOrPopoverProps: O,
223
224
  // Refs
224
225
  dropdownOptionsListboxRef: i,
225
226
  // Enums
@@ -227,17 +228,17 @@ const Q = {
227
228
  BentoPopoverPositions: de,
228
229
  PopperContainerPosition: se,
229
230
  // Events
230
- onEscapeKey: v,
231
- listeners: p
231
+ onEscapeKey: p,
232
+ listeners: g
232
233
  };
233
234
  }
234
235
  });
235
- function We(e, o, n, t, a, i) {
236
+ function qe(e, o, n, t, a, i) {
236
237
  const l = B("bento-listbox");
237
- return m(), L(me(e.popperContainerOrPopoverComponent), I({ class: "b-dropdown-options-container" }, e.popperContainerOrPopoverProps), {
238
- default: S(() => [
238
+ return m(), C(me(e.popperContainerOrPopoverComponent), I({ class: "b-dropdown-options-container" }, e.popperContainerOrPopoverProps), {
239
+ default: $(() => [
239
240
  q("div", {
240
- onKeydown: o[0] || (o[0] = Be((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
241
+ onKeydown: o[0] || (o[0] = Te((...r) => e.onEscapeKey && e.onEscapeKey(...r), ["esc"]))
241
242
  }, [
242
243
  M(l, I({
243
244
  id: e.id,
@@ -256,7 +257,7 @@ function We(e, o, n, t, a, i) {
256
257
  }, k(e.listeners)), x({ _: 2 }, [
257
258
  j(e.slots, (r, d) => ({
258
259
  name: d,
259
- fn: S((u) => [
260
+ fn: $((u) => [
260
261
  J(e.$slots, d, Z(Y(u)), void 0, !0)
261
262
  ])
262
263
  }))
@@ -266,55 +267,56 @@ function We(e, o, n, t, a, i) {
266
267
  _: 3
267
268
  }, 16);
268
269
  }
269
- const Fe = /* @__PURE__ */ K(ke, [["render", We], ["__scopeId", "data-v-09e1e41e"]]);
270
+ const Ue = /* @__PURE__ */ K(Fe, [["render", qe], ["__scopeId", "data-v-09e1e41e"]]);
270
271
  let ce = 0;
271
- const qe = {
272
+ const He = {
272
273
  beforeCreate() {
273
274
  this.uuid = ce.toString(), ce += 1;
274
275
  }
275
- }, Ue = (e) => (ve("data-v-18645fe6"), e = e(), ye(), e), He = { key: 0 }, Ve = /* @__PURE__ */ Ue(() => /* @__PURE__ */ q("path", {
276
+ }, Ve = (e) => (ve("data-v-18645fe6"), e = e(), be(), e), xe = { key: 0 }, je = /* @__PURE__ */ Ve(() => /* @__PURE__ */ q("path", {
276
277
  fill: "#00112C",
277
278
  "fill-rule": "evenodd",
278
279
  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",
279
280
  "clip-rule": "evenodd"
280
281
  }, null, -1));
281
- function xe(e, o, n, t, a, i) {
282
- return m(), O("svg", I({ role: "img" }, e.$attrs, {
282
+ function Je(e, o, n, t, a, i) {
283
+ return m(), _("svg", I({ role: "img" }, e.$attrs, {
283
284
  xmlns: "http://www.w3.org/2000/svg",
284
285
  width: "16",
285
286
  height: "16",
286
287
  fill: "none"
287
288
  }), [
288
- e.$attrs["svg-title"] ? (m(), O("title", He, A(e.$attrs["svg-title"]), 1)) : _("", !0),
289
- Ve
289
+ e.$attrs["svg-title"] ? (m(), _("title", xe, N(e.$attrs["svg-title"]), 1)) : E("", !0),
290
+ je
290
291
  ], 16);
291
292
  }
292
- const je = /* @__PURE__ */ K(qe, [["render", xe], ["__scopeId", "data-v-18645fe6"]]);
293
+ const Ze = /* @__PURE__ */ K(He, [["render", Je], ["__scopeId", "data-v-18645fe6"]]);
293
294
  let pe = 0;
294
- const Je = {
295
+ const Ye = {
295
296
  beforeCreate() {
296
297
  this.uuid = pe.toString(), pe += 1;
297
298
  }
298
- }, Ze = (e) => (ve("data-v-6f20d431"), e = e(), ye(), e), Ye = { key: 0 }, Ge = /* @__PURE__ */ Ze(() => /* @__PURE__ */ q("path", {
299
+ }, Ge = (e) => (ve("data-v-6f20d431"), e = e(), be(), e), Qe = { key: 0 }, Xe = /* @__PURE__ */ Ge(() => /* @__PURE__ */ q("path", {
299
300
  fill: "#00112C",
300
301
  "fill-rule": "evenodd",
301
302
  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",
302
303
  "clip-rule": "evenodd"
303
304
  }, null, -1));
304
- function Qe(e, o, n, t, a, i) {
305
- return m(), O("svg", I({ role: "img" }, e.$attrs, {
305
+ function et(e, o, n, t, a, i) {
306
+ return m(), _("svg", I({ role: "img" }, e.$attrs, {
306
307
  xmlns: "http://www.w3.org/2000/svg",
307
308
  width: "16",
308
309
  height: "16",
309
310
  fill: "none"
310
311
  }), [
311
- e.$attrs["svg-title"] ? (m(), O("title", Ye, A(e.$attrs["svg-title"]), 1)) : _("", !0),
312
- Ge
312
+ e.$attrs["svg-title"] ? (m(), _("title", Qe, N(e.$attrs["svg-title"]), 1)) : E("", !0),
313
+ Xe
313
314
  ], 16);
314
315
  }
315
- const Xe = /* @__PURE__ */ K(Je, [["render", Qe], ["__scopeId", "data-v-6f20d431"]]), et = X({
316
+ const tt = /* @__PURE__ */ K(Ye, [["render", et], ["__scopeId", "data-v-6f20d431"]]), ot = X({
316
317
  name: "dropdown-small-textbox",
317
- components: { ChevronDownSmallIcon: je, ChevronUpSmallIcon: Xe, DropdownBaseTextbox: Re },
318
+ components: { ChevronDownSmallIcon: Ze, ChevronUpSmallIcon: tt, DropdownBaseTextbox: Ke },
319
+ inheritAttrs: !1,
318
320
  props: {
319
321
  /**
320
322
  * The number of additional items that have been selected in the dropdown.
@@ -385,19 +387,19 @@ const Xe = /* @__PURE__ */ K(Je, [["render", Qe], ["__scopeId", "data-v-6f20d431
385
387
  */
386
388
  value: { type: String, default: "" }
387
389
  },
388
- emits: [R.OPEN, R.CLOSE],
390
+ emits: [A.OPEN, A.CLOSE],
389
391
  setup(e, { emit: o }) {
390
392
  const n = c(() => ({
391
- [`b-dropdown-small-textbox--${H.DISABLED}`]: e.disabled,
392
- [`b-dropdown-small-textbox--${H.READONLY}`]: e.readonly,
393
- [`b-dropdown-small-textbox--${H.OPENED}`]: e.open
393
+ [`b-dropdown-small-textbox--${V.DISABLED}`]: e.disabled,
394
+ [`b-dropdown-small-textbox--${V.READONLY}`]: e.readonly,
395
+ [`b-dropdown-small-textbox--${V.OPENED}`]: e.open
394
396
  })), t = c(() => e.open && !e.disabled && !e.readonly), a = () => {
395
- o(R.OPEN);
397
+ o(A.OPEN);
396
398
  }, i = () => {
397
- o(R.CLOSE);
399
+ o(A.CLOSE);
398
400
  }, l = {
399
- [R.OPEN]: a,
400
- [R.CLOSE]: i
401
+ [A.OPEN]: a,
402
+ [A.CLOSE]: i
401
403
  };
402
404
  return {
403
405
  // Values
@@ -408,15 +410,15 @@ const Xe = /* @__PURE__ */ K(Je, [["render", Qe], ["__scopeId", "data-v-6f20d431
408
410
  };
409
411
  }
410
412
  });
411
- const tt = { class: "b-dropdown-small-textbox__chevron" };
412
- function ot(e, o, n, t, a, i) {
413
+ const nt = { class: "b-dropdown-small-textbox__chevron" };
414
+ function lt(e, o, n, t, a, i) {
413
415
  const l = B("chevron-up-small-icon"), r = B("chevron-down-small-icon"), d = B("dropdown-base-textbox");
414
- return m(), O("div", {
415
- class: be(["b-dropdown-small-textbox", e.conditionalClasses])
416
+ return m(), _("div", {
417
+ class: ye(["b-dropdown-small-textbox", e.conditionalClasses])
416
418
  }, [
417
419
  M(d, I({ ...e.$attrs, ...e.$props }, { class: "b-dropdown-small-textbox__textbox" }, k(e.listeners)), {
418
- icon: S(() => [
419
- q("div", tt, [
420
+ icon: $(() => [
421
+ q("div", nt, [
420
422
  W(M(l, { "svg-title": "opened" }, null, 512), [
421
423
  [ae, e.isDropdownOpen]
422
424
  ]),
@@ -429,9 +431,9 @@ function ot(e, o, n, t, a, i) {
429
431
  }, 16)
430
432
  ], 2);
431
433
  }
432
- const nt = /* @__PURE__ */ K(et, [["render", ot], ["__scopeId", "data-v-076c3c8e"]]);
433
- function lt(e, o, n) {
434
- const t = E(e), a = E(o), i = (r, d = []) => d.flatMap((u) => u.label.toLocaleLowerCase().includes(r) ? [u, ...i(r, u.items)] : u.items ? [...i(r, u.items)] : []);
434
+ const at = /* @__PURE__ */ K(ot, [["render", lt], ["__scopeId", "data-v-55bc3614"]]);
435
+ function it(e, o, n) {
436
+ const t = S(e), a = S(o), i = (r, d = []) => d.flatMap((u) => u.label.toLocaleLowerCase().includes(r) ? [u, ...i(r, u.items)] : u.items ? [...i(r, u.items)] : []);
435
437
  return fe(t, () => {
436
438
  n !== void 0 && n(t.value);
437
439
  }), c(() => {
@@ -441,13 +443,13 @@ function lt(e, o, n) {
441
443
  return i(r, a.value);
442
444
  });
443
445
  }
444
- const at = ({ items: e, placeholder: o, selectedValue: n }) => {
446
+ const st = ({ items: e, placeholder: o, selectedValue: n }) => {
445
447
  const t = e.value.find(({ value: a }) => a === n.value);
446
448
  return (t == null ? void 0 : t.label) || o.value || null;
447
- }, it = ({ selectedValues: e, items: o, placeholder: n }) => e.value ? e.value.map((t) => {
449
+ }, rt = ({ selectedValues: e, items: o, placeholder: n }) => e.value ? e.value.map((t) => {
448
450
  const { label: a } = o.value.find(({ value: i }) => i === t);
449
451
  return a;
450
- }).join(", ") : n.value || null, st = ({ selectedValues: e, items: o, placeholder: n }) => {
452
+ }).join(", ") : n.value || null, dt = ({ selectedValues: e, items: o, placeholder: n }) => {
451
453
  var t;
452
454
  return (t = e.value) != null && t.length ? o.value.reduce((a, i) => {
453
455
  if (i.items) {
@@ -458,13 +460,13 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
458
460
  }
459
461
  return e.value.includes(i.value) && a.push(i.label), a;
460
462
  }, []).join(", ") : n.value || null;
461
- }, rt = ({ items: e, placeholder: o, value: n, multiple: t }) => {
463
+ }, ut = ({ items: e, placeholder: o, value: n, multiple: t }) => {
462
464
  const a = c(() => e.value.find((l) => {
463
465
  var r;
464
466
  return (r = l.items) == null ? void 0 : r.length;
465
467
  }));
466
- return c(() => t.value ? a.value ? st({ selectedValues: n, placeholder: o, items: e }) : it({ selectedValues: n, items: e, placeholder: o }) : at({ items: e, placeholder: o, selectedValue: n }));
467
- }, dt = {
468
+ return c(() => t.value ? a.value ? dt({ selectedValues: n, placeholder: o, items: e }) : rt({ selectedValues: n, items: e, placeholder: o }) : st({ items: e, placeholder: o, selectedValue: n }));
469
+ }, ct = {
468
470
  "en-US": {
469
471
  optional: "optional",
470
472
  required: "required",
@@ -472,7 +474,7 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
472
474
  }
473
475
  }, he = (e) => {
474
476
  e.value.$children[0].$refs.textbox.focus();
475
- }, ut = ({
477
+ }, pt = ({
476
478
  inputContainerRef: e,
477
479
  optionsContainerRef: o,
478
480
  selectedValueIndex: n,
@@ -481,30 +483,30 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
481
483
  items: i,
482
484
  isMultiple: l
483
485
  }, r, d, u) => {
484
- const y = ({ detail: $ }) => {
485
- $.preventDefault(), t.value || (d(), D(() => {
486
+ const y = ({ detail: w }) => {
487
+ w.preventDefault(), t.value || (d(), D(() => {
486
488
  l ? o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
487
489
  }));
488
- }, h = ({ detail: $ }) => {
489
- $.preventDefault(), t.value || (d(), D(() => {
490
+ }, v = ({ detail: w }) => {
491
+ w.preventDefault(), t.value || (d(), D(() => {
490
492
  o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
491
493
  }));
492
- }, p = () => {
494
+ }, g = () => {
493
495
  t.value || (d(), D(() => {
494
496
  if (l) {
495
- const $ = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
496
- o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[$.length - 1].$children[i.length - 1].$el.focus();
497
+ const w = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
498
+ o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[w.length - 1].$children[i.length - 1].$el.focus();
497
499
  } else
498
500
  o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[i.length - 1].$el.focus();
499
501
  }));
500
- }, v = () => {
502
+ }, p = () => {
501
503
  t.value && (u(), he(e));
502
504
  }, b = () => {
503
505
  t.value || d(), D(() => {
504
506
  o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus();
505
507
  });
506
- }, w = ({ detail: $ }) => {
507
- $.preventDefault(), r(), t.value && D(() => {
508
+ }, O = ({ detail: w }) => {
509
+ w.preventDefault(), r(), t.value && D(() => {
508
510
  l ? o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[0].$el.focus() : o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children[n.value].$el.focus();
509
511
  });
510
512
  }, f = () => {
@@ -513,15 +515,15 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
513
515
  });
514
516
  };
515
517
  return c(() => ({
516
- ...a.value ? {} : { [C.SPACE]: w },
517
- [C.ENTER]: f,
518
- [C.ARROW_DOWN]: y,
519
- [C.ARROW_UP]: h,
520
- [C.END]: p,
521
- [C.ESCAPE]: v,
522
- [C.HOME]: b
518
+ ...a.value ? {} : { [L.SPACE]: O },
519
+ [L.ENTER]: f,
520
+ [L.ARROW_DOWN]: y,
521
+ [L.ARROW_UP]: v,
522
+ [L.END]: g,
523
+ [L.ESCAPE]: p,
524
+ [L.HOME]: b
523
525
  }));
524
- }, ct = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
526
+ }, ft = ({ inputContainerRef: e, isDropdownOpen: o }, n) => {
525
527
  const t = () => {
526
528
  o.value && n(), D(() => {
527
529
  he(e);
@@ -533,17 +535,17 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
533
535
  [s.TAB]: t,
534
536
  [s.SPACE]: t
535
537
  };
536
- }, pt = X({
537
- i18n: { messages: dt },
538
+ }, mt = X({
539
+ i18n: { messages: ct },
538
540
  name: "b-dropdown",
539
541
  components: {
540
- BentoDropdownOptionsContainer: Fe,
541
- BentoTypography: Ne,
542
- DropdownInputDefault: Ae,
543
- DropdownInputSmall: nt,
544
- ErrorMessage: Ke
542
+ BentoDropdownOptionsContainer: Ue,
543
+ BentoTypography: Ae,
544
+ DropdownInputDefault: ze,
545
+ DropdownInputSmall: at,
546
+ ErrorMessage: ke
545
547
  },
546
- directives: { BentoClickOutsideDirective: Te, BentoKeyboardNavigationDirective: Ie },
548
+ directives: { BentoClickOutsideDirective: Ie, BentoKeyboardNavigationDirective: Re },
547
549
  props: {
548
550
  /**
549
551
  * Defines a string value that labels an interactive element.
@@ -676,51 +678,51 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
676
678
  emits: ["input", s.SHOW_MORE],
677
679
  setup(e, { emit: o, slots: n }) {
678
680
  var le;
679
- const t = E(null), a = E(null), i = E(null), l = E(!1), r = P("bento-dropdown-options-container"), d = P("dropdown-label"), u = P("dropdown-description"), y = P("dropdown-error"), h = c(() => ({
681
+ const t = S(null), a = S(null), i = S(null), l = S(!1), r = P("bento-dropdown-options-container"), d = P("dropdown-label"), u = P("dropdown-description"), y = P("dropdown-error"), { isReadOnly: v } = Me(R(e, "readonly")), g = c(() => ({
680
682
  "b-dropdown__description--error": !!e.errorMessage
681
- })), p = E(""), v = N(e, "items"), b = lt(p, v, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent), w = c(() => e.dynamicFiltering && !!p.value), f = rt({
682
- items: v,
683
- multiple: N(e, "multiple"),
684
- placeholder: N(e, "placeholder"),
685
- value: N(e, "value")
686
- }), ee = c(
683
+ })), p = S(""), b = R(e, "items"), O = it(p, b, (le = e == null ? void 0 : e.search) == null ? void 0 : le.searchEvent), f = c(() => e.dynamicFiltering && !!p.value), ee = ut({
684
+ items: b,
685
+ multiple: R(e, "multiple"),
686
+ placeholder: R(e, "placeholder"),
687
+ value: R(e, "value")
688
+ }), w = c(
687
689
  () => e != null && e.multiple ? e.items.filter(
688
- ({ value: g }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(g)
689
- ) : e.items.find(({ value: g }) => g === (e == null ? void 0 : e.value))
690
- ), $ = c(() => {
691
- const g = e.items.findIndex(({ value: Le }) => e.value === Le);
692
- return g > 0 ? g : 0;
693
- }), we = c(() => {
694
- var g;
695
- return e.multiple ? (g = e == null ? void 0 : e.value) == null ? void 0 : g.length : null;
696
- }), $e = c(
690
+ ({ value: h }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(h)
691
+ ) : e.items.find(({ value: h }) => h === (e == null ? void 0 : e.value))
692
+ ), we = c(() => {
693
+ const h = e.items.findIndex(({ value: De }) => e.value === De);
694
+ return h > 0 ? h : 0;
695
+ }), $e = c(() => {
696
+ var h;
697
+ return e.multiple ? (h = e == null ? void 0 : e.value) == null ? void 0 : h.length : null;
698
+ }), Se = c(
697
699
  () => `${e.description ? u : ""} ${e.errorMessage ? y : ""}`.trim() || null
698
- ), Se = () => {
699
- e.readonly || (l.value = !0);
700
+ ), Ee = () => {
701
+ v.value || (l.value = !0);
700
702
  }, U = () => {
701
703
  l.value = !1;
702
704
  }, te = () => {
703
- e.readonly || (l.value = !l.value, w.value && (p.value = ""));
704
- }, Ee = () => {
705
- w.value && (p.value = ""), l.value && (l.value = !1);
706
- }, oe = (g) => {
707
- e.multiple || (p.value = "", l.value = !1), o("input", g);
705
+ v.value || (l.value = !l.value, f.value && (p.value = ""));
706
+ }, _e = () => {
707
+ f.value && (p.value = ""), l.value && (l.value = !1);
708
+ }, oe = (h) => {
709
+ e.multiple || (p.value = "", l.value = !1), o("input", h);
708
710
  }, ne = () => {
709
711
  o(s.SHOW_MORE);
710
- }, _e = ut(
712
+ }, Oe = pt(
711
713
  {
712
714
  inputContainerRef: t,
713
715
  optionsContainerRef: i,
714
- selectedValueIndex: $,
716
+ selectedValueIndex: we,
715
717
  isDropdownOpen: l,
716
- isDynamicFltering: N(e, "dynamicFiltering"),
718
+ isDynamicFltering: R(e, "dynamicFiltering"),
717
719
  items: e.items,
718
720
  isMultiple: e.multiple
719
721
  },
720
722
  te,
721
- Se,
723
+ Ee,
722
724
  U
723
- ), Oe = ct(
725
+ ), Le = ft(
724
726
  {
725
727
  inputContainerRef: t,
726
728
  isDropdownOpen: l
@@ -730,9 +732,9 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
730
732
  [s.CLOSE_DROPDOWN]: U,
731
733
  [s.SELECT]: oe,
732
734
  [s.SHOW_MORE]: ne,
733
- ...Oe
735
+ ...Le
734
736
  };
735
- return e.error && Pe(
737
+ return e.error && Ne(
736
738
  'BentoDropdown "error" property',
737
739
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
738
740
  Having the field as "undefined" will hide/remove the error.
@@ -740,48 +742,49 @@ const at = ({ items: e, placeholder: o, selectedValue: n }) => {
740
742
  "2.0.0"
741
743
  ), {
742
744
  // Values
743
- additionalItemsSelected: we,
745
+ additionalItemsSelected: $e,
744
746
  isDropdownOpen: l,
745
- displayValue: f,
747
+ displayValue: ee,
746
748
  dropdownOptionsContainerId: r,
747
- filteredItems: b,
748
- isSearching: w,
749
+ filteredItems: O,
750
+ isSearching: f,
751
+ isReadOnly: v,
749
752
  searchTerm: p,
750
753
  labelId: d,
751
754
  descriptionId: u,
752
755
  errorId: y,
753
- ariaDescribedBy: $e,
754
- selectedValueItem: ee,
756
+ ariaDescribedBy: Se,
757
+ selectedValueItem: w,
755
758
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
756
759
  // The setup method and the "useSlots" composible define
757
760
  // { slots } as a proxy of $scopedSlots and $scopes in their
758
761
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
759
762
  slots: n,
760
- descriptionConditionalClasses: h,
763
+ descriptionConditionalClasses: g,
761
764
  // Refs
762
765
  inputContainerRef: t,
763
766
  inputContainerRefWrapper: a,
764
767
  optionsContainerRef: i,
765
768
  // Events
766
- closeOpenedDropdown: Ee,
769
+ closeOpenedDropdown: _e,
767
770
  toggleDropdown: te,
768
771
  onOptionSelected: oe,
769
772
  emitShowMoreEvent: ne,
770
- textboxKeyboardNavigationListeners: _e,
773
+ textboxKeyboardNavigationListeners: Oe,
771
774
  listboxListeners: Ce,
772
775
  // Enums
773
- BentoTypographyElement: Me,
776
+ BentoTypographyElement: Pe,
774
777
  BentoDropdownSize: T,
775
778
  BentoDropdownLazyLoadType: F
776
779
  };
777
780
  }
778
781
  });
779
- const ft = { class: "b-dropdown" }, mt = ["id"];
780
- function vt(e, o, n, t, a, i) {
781
- var h;
782
+ const vt = { class: "b-dropdown" }, bt = ["id"];
783
+ function yt(e, o, n, t, a, i) {
784
+ var v;
782
785
  const l = B("bento-typography"), r = B("bento-dropdown-options-container"), d = B("error-message"), u = ie("bento-keyboard-navigation-directive"), y = ie("bento-click-outside-directive");
783
- return W((m(), O("div", ft, [
784
- e.label ? (m(), O("div", {
786
+ return W((m(), _("div", vt, [
787
+ e.label ? (m(), _("div", {
785
788
  key: 0,
786
789
  id: e.labelId,
787
790
  class: "b-dropdown__label"
@@ -790,34 +793,34 @@ function vt(e, o, n, t, a, i) {
790
793
  el: e.BentoTypographyElement.SPAN,
791
794
  stronger: ""
792
795
  }, {
793
- default: S(() => [
794
- z(A(e.label), 1)
796
+ default: $(() => [
797
+ z(N(e.label), 1)
795
798
  ]),
796
799
  _: 1
797
800
  }, 8, ["el"]),
798
- e.optional ? (m(), L(l, {
801
+ e.optional ? (m(), C(l, {
799
802
  key: 0,
800
803
  class: "b-dropdown__label-requirement",
801
804
  el: e.BentoTypographyElement.SPAN
802
805
  }, {
803
- default: S(() => [
804
- z(" (" + A(e.$t("optional")) + ") ", 1)
806
+ default: $(() => [
807
+ z(" (" + N(e.$t("optional")) + ") ", 1)
805
808
  ]),
806
809
  _: 1
807
- }, 8, ["el"])) : _("", !0),
808
- e.required ? (m(), L(l, {
810
+ }, 8, ["el"])) : E("", !0),
811
+ e.required ? (m(), C(l, {
809
812
  key: 1,
810
813
  class: "b-dropdown__label-requirement",
811
814
  el: e.BentoTypographyElement.SPAN
812
815
  }, {
813
- default: S(() => [
814
- z(" (" + A(e.$t("required")) + ") ", 1)
816
+ default: $(() => [
817
+ z(" (" + N(e.$t("required")) + ") ", 1)
815
818
  ]),
816
819
  _: 1
817
- }, 8, ["el"])) : _("", !0)
818
- ], 8, mt)) : _("", !0),
819
- W((m(), O("div", I({ ref: "inputContainerRefWrapper" }, k(e.textboxKeyboardNavigationListeners, !0)), [
820
- (m(), L(me(e.size), {
820
+ }, 8, ["el"])) : E("", !0)
821
+ ], 8, bt)) : E("", !0),
822
+ W((m(), _("div", I({ ref: "inputContainerRefWrapper" }, k(e.textboxKeyboardNavigationListeners, !0)), [
823
+ (m(), C(me(e.size), {
821
824
  ref: "inputContainerRef",
822
825
  value: e.searchTerm,
823
826
  "additional-items-selected": e.additionalItemsSelected,
@@ -826,8 +829,8 @@ function vt(e, o, n, t, a, i) {
826
829
  "aria-labelledby": e.label ? e.labelId : null,
827
830
  "aria-describedby": e.ariaDescribedBy,
828
831
  "aria-label": e.ariaLabel ? e.ariaLabel : null,
829
- "aria-readonly": e.readonly,
830
- readonly: e.readonly,
832
+ "aria-readonly": e.isReadOnly,
833
+ readonly: e.isReadOnly,
831
834
  disabled: e.disabled,
832
835
  "display-value": e.displayValue,
833
836
  "dynamic-filtering": e.dynamicFiltering,
@@ -836,26 +839,26 @@ function vt(e, o, n, t, a, i) {
836
839
  open: e.isDropdownOpen,
837
840
  "selected-value-item": e.size === e.BentoDropdownSize.DEFAULT ? e.selectedValueItem : void 0,
838
841
  "show-slot-content-in-multiple": e.showSlotContentInMultiple,
839
- onInput: o[0] || (o[0] = (p) => e.searchTerm = p),
842
+ onInput: o[0] || (o[0] = (g) => e.searchTerm = g),
840
843
  onOpen: e.toggleDropdown,
841
844
  onClose: e.toggleDropdown
842
845
  }, x({ _: 2 }, [
843
- j(e.slots, (p, v) => ({
844
- name: v,
845
- fn: S((b) => [
846
- J(e.$slots, v, Z(Y(b)), void 0, !0)
846
+ j(e.slots, (g, p) => ({
847
+ name: p,
848
+ fn: $((b) => [
849
+ J(e.$slots, p, Z(Y(b)), void 0, !0)
847
850
  ])
848
851
  }))
849
852
  ]), 1064, ["value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple", "onOpen", "onClose"]))
850
853
  ], 16)), [
851
854
  [u]
852
855
  ]),
853
- e.inputContainerRef ? (m(), L(r, I({
856
+ e.inputContainerRef ? (m(), C(r, I({
854
857
  key: 1,
855
858
  id: e.dropdownOptionsContainerId,
856
859
  ref: "optionsContainerRef",
857
860
  "aria-label": e.ariaLabel,
858
- "debounce-time": (h = e.search) == null ? void 0 : h.debounceTime,
861
+ "debounce-time": (v = e.search) == null ? void 0 : v.debounceTime,
859
862
  disabled: e.disabled,
860
863
  "input-size": e.size,
861
864
  "is-option-disabled": e.isOptionDisabled,
@@ -869,38 +872,38 @@ function vt(e, o, n, t, a, i) {
869
872
  "has-more-items": e.hasMoreItems,
870
873
  "lazy-load-type": e.lazyLoadType
871
874
  }, k(e.listboxListeners)), x({ _: 2 }, [
872
- j(e.slots, (p, v) => ({
873
- name: v,
874
- fn: S((b) => [
875
- J(e.$slots, v, Z(Y(b)), void 0, !0)
875
+ j(e.slots, (g, p) => ({
876
+ name: p,
877
+ fn: $((b) => [
878
+ J(e.$slots, p, Z(Y(b)), void 0, !0)
876
879
  ])
877
880
  }))
878
- ]), 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"])) : _("", !0),
879
- e.errorMessage ? (m(), L(d, {
881
+ ]), 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"])) : E("", !0),
882
+ e.errorMessage ? (m(), C(d, {
880
883
  key: 2,
881
884
  id: e.errorId,
882
885
  "error-message": e.errorMessage,
883
886
  class: "b-dropdown__error-message"
884
- }, null, 8, ["id", "error-message"])) : _("", !0),
885
- e.description ? (m(), L(l, {
887
+ }, null, 8, ["id", "error-message"])) : E("", !0),
888
+ e.description ? (m(), C(l, {
886
889
  key: 3,
887
890
  id: e.descriptionId,
888
- class: be(["b-dropdown__description", e.descriptionConditionalClasses]),
891
+ class: ye(["b-dropdown__description", e.descriptionConditionalClasses]),
889
892
  el: e.BentoTypographyElement.SPAN
890
893
  }, {
891
- default: S(() => [
892
- z(A(e.description), 1)
894
+ default: $(() => [
895
+ z(N(e.description), 1)
893
896
  ]),
894
897
  _: 1
895
- }, 8, ["id", "class", "el"])) : _("", !0)
898
+ }, 8, ["id", "class", "el"])) : E("", !0)
896
899
  ])), [
897
900
  [y, e.closeOpenedDropdown]
898
901
  ]);
899
902
  }
900
- const Bt = /* @__PURE__ */ K(pt, [["render", vt], ["__scopeId", "data-v-f66aa4cd"]]);
903
+ const Rt = /* @__PURE__ */ K(mt, [["render", yt], ["__scopeId", "data-v-a62031bf"]]);
901
904
  export {
902
- Bt as B,
905
+ Rt as B,
903
906
  T as a,
904
- lt as u
907
+ it as u
905
908
  };
906
- //# sourceMappingURL=dropdown.f9997464.js.map
909
+ //# sourceMappingURL=dropdown.8b415aac.js.map