@adyen/bento-vue2 1.26.0 → 1.27.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 (203) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +513 -136
  3. package/dist/accordion.js +2 -2
  4. package/dist/action-bar.js +61 -146
  5. package/dist/action-bar.js.map +1 -1
  6. package/dist/alert.js +3 -3
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/index.css +1 -1
  13. package/dist/assets/index10.css +1 -1
  14. package/dist/assets/index11.css +1 -1
  15. package/dist/assets/index12.css +1 -1
  16. package/dist/assets/index13.css +1 -1
  17. package/dist/assets/index14.css +1 -1
  18. package/dist/assets/index15.css +1 -1
  19. package/dist/assets/index16.css +1 -1
  20. package/dist/assets/index17.css +1 -1
  21. package/dist/assets/index18.css +1 -1
  22. package/dist/assets/index19.css +1 -1
  23. package/dist/assets/index2.css +1 -1
  24. package/dist/assets/index20.css +1 -1
  25. package/dist/assets/index21.css +1 -1
  26. package/dist/assets/index22.css +1 -1
  27. package/dist/assets/index23.css +1 -1
  28. package/dist/assets/index24.css +1 -1
  29. package/dist/assets/index25.css +1 -1
  30. package/dist/assets/index26.css +1 -1
  31. package/dist/assets/index27.css +1 -1
  32. package/dist/assets/index28.css +1 -1
  33. package/dist/assets/index29.css +1 -1
  34. package/dist/assets/index3.css +1 -1
  35. package/dist/assets/index30.css +1 -1
  36. package/dist/assets/index31.css +1 -1
  37. package/dist/assets/index32.css +1 -1
  38. package/dist/assets/index33.css +1 -1
  39. package/dist/assets/index34.css +1 -1
  40. package/dist/assets/index35.css +1 -1
  41. package/dist/assets/index36.css +1 -1
  42. package/dist/assets/index37.css +1 -1
  43. package/dist/assets/index38.css +1 -1
  44. package/dist/assets/index39.css +1 -1
  45. package/dist/assets/index4.css +1 -1
  46. package/dist/assets/index40.css +1 -1
  47. package/dist/assets/index41.css +1 -1
  48. package/dist/assets/index42.css +1 -1
  49. package/dist/assets/index43.css +1 -1
  50. package/dist/assets/index44.css +1 -1
  51. package/dist/assets/index45.css +1 -1
  52. package/dist/assets/index46.css +1 -1
  53. package/dist/assets/index47.css +1 -1
  54. package/dist/assets/index48.css +1 -1
  55. package/dist/assets/index49.css +1 -0
  56. package/dist/assets/index5.css +1 -1
  57. package/dist/assets/index6.css +1 -1
  58. package/dist/assets/index7.css +1 -1
  59. package/dist/assets/index8.css +1 -1
  60. package/dist/assets/index9.css +1 -1
  61. package/dist/assets/use-cached-selected-values.css +1 -1
  62. package/dist/avatar-image.js +1 -1
  63. package/dist/badge.js +1 -1
  64. package/dist/button.js +5 -5
  65. package/dist/card.js +3 -3
  66. package/dist/checkbox.js +5 -5
  67. package/dist/chunks/{base-button.ad74b6f8.js → base-button.852204dc.js} +2 -2
  68. package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.852204dc.js.map} +1 -1
  69. package/dist/chunks/{base-modal.1fff7abe.js → base-modal.4fb7528b.js} +6 -6
  70. package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.4fb7528b.js.map} +1 -1
  71. package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.bf968959.js} +4 -4
  72. package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
  73. package/dist/chunks/{button-actions.81db18e8.js → button-actions.87e589e3.js} +31 -29
  74. package/dist/chunks/button-actions.87e589e3.js.map +1 -0
  75. package/dist/chunks/button.cb90b55c.js +101 -0
  76. package/dist/chunks/button.cb90b55c.js.map +1 -0
  77. package/dist/chunks/{calendar.640b8d25.js → calendar.f02e0a5a.js} +5 -5
  78. package/dist/chunks/{calendar.640b8d25.js.map → calendar.f02e0a5a.js.map} +1 -1
  79. package/dist/chunks/{checkbox.bfed007c.js → checkbox.9f9c978a.js} +3 -3
  80. package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.9f9c978a.js.map} +1 -1
  81. package/dist/chunks/{controls-group.4fb50009.js → controls-group.121a307d.js} +3 -3
  82. package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.121a307d.js.map} +1 -1
  83. package/dist/chunks/{copy.f85700c6.js → copy.6808b2dc.js} +4 -4
  84. package/dist/chunks/{copy.f85700c6.js.map → copy.6808b2dc.js.map} +1 -1
  85. package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.7fd7d006.js} +3 -3
  86. package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.7fd7d006.js.map} +1 -1
  87. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.d0f17d96.js} +3 -3
  88. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
  89. package/dist/chunks/{dropdown.10c034aa.js → dropdown.a8037bca.js} +188 -197
  90. package/dist/chunks/dropdown.a8037bca.js.map +1 -0
  91. package/dist/chunks/{error-message.31ec12b7.js → error-message.bdcc1020.js} +2 -2
  92. package/dist/chunks/{error-message.31ec12b7.js.map → error-message.bdcc1020.js.map} +1 -1
  93. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  94. package/dist/chunks/events.f14a214b.js.map +1 -0
  95. package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.82ef6187.js} +2 -2
  96. package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.82ef6187.js.map} +1 -1
  97. package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.58d14a16.js} +4 -4
  98. package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.58d14a16.js.map} +1 -1
  99. package/dist/chunks/{index.15b088b9.js → index.0a30d358.js} +6 -6
  100. package/dist/chunks/{index.15b088b9.js.map → index.0a30d358.js.map} +1 -1
  101. package/dist/chunks/{index.d553d3d1.js → index.1deef79e.js} +2 -2
  102. package/dist/chunks/{index.d553d3d1.js.map → index.1deef79e.js.map} +1 -1
  103. package/dist/chunks/index.3c69be27.js +85 -0
  104. package/dist/chunks/index.3c69be27.js.map +1 -0
  105. package/dist/chunks/index.561786f6.js +126 -0
  106. package/dist/chunks/index.561786f6.js.map +1 -0
  107. package/dist/chunks/{index.b21197ca.js → index.614a5138.js} +2 -2
  108. package/dist/chunks/{index.b21197ca.js.map → index.614a5138.js.map} +1 -1
  109. package/dist/chunks/{index.8b8c3b16.js → index.854d6498.js} +9 -9
  110. package/dist/chunks/{index.8b8c3b16.js.map → index.854d6498.js.map} +1 -1
  111. package/dist/chunks/{index.885d05a9.js → index.939dd5cf.js} +2 -2
  112. package/dist/chunks/{index.885d05a9.js.map → index.939dd5cf.js.map} +1 -1
  113. package/dist/chunks/{index.1ea85d4a.js → index.a48e7f99.js} +6 -6
  114. package/dist/chunks/{index.1ea85d4a.js.map → index.a48e7f99.js.map} +1 -1
  115. package/dist/chunks/{index.317fca12.js → index.bd1d28d0.js} +3 -3
  116. package/dist/chunks/{index.317fca12.js.map → index.bd1d28d0.js.map} +1 -1
  117. package/dist/chunks/{index.671768a1.js → index.c8621e8e.js} +3 -3
  118. package/dist/chunks/{index.671768a1.js.map → index.c8621e8e.js.map} +1 -1
  119. package/dist/chunks/{index.7eefc59c.js → index.ccc7e8d7.js} +3 -3
  120. package/dist/chunks/{index.7eefc59c.js.map → index.ccc7e8d7.js.map} +1 -1
  121. package/dist/chunks/{index.dd30e538.js → index.e29a6907.js} +2 -2
  122. package/dist/chunks/{index.dd30e538.js.map → index.e29a6907.js.map} +1 -1
  123. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  124. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  125. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js → listbox-option-tag.8708be60.js} +3 -3
  126. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js.map → listbox-option-tag.8708be60.js.map} +1 -1
  127. package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.692dbdc8.js} +2 -2
  128. package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.692dbdc8.js.map} +1 -1
  129. package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.c55dd352.js} +2 -2
  130. package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.c55dd352.js.map} +1 -1
  131. package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.efddb5f3.js} +4 -4
  132. package/dist/chunks/{tooltip.58ef3f4a.js.map → tooltip.efddb5f3.js.map} +1 -1
  133. package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
  134. package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
  135. package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.98a9ed01.js} +225 -206
  136. package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
  137. package/dist/code-snippet.js +131 -129
  138. package/dist/code-snippet.js.map +1 -1
  139. package/dist/country.js +2 -2
  140. package/dist/currency.js +1 -1
  141. package/dist/dashboard-template.js +109 -0
  142. package/dist/dashboard-template.js.map +1 -0
  143. package/dist/data-grid-template.js +1 -1
  144. package/dist/data-grid.js +78 -70
  145. package/dist/data-grid.js.map +1 -1
  146. package/dist/date-picker.js +8 -8
  147. package/dist/date-range-picker.js +2 -2
  148. package/dist/date.js +1 -1
  149. package/dist/divider.js +1 -1
  150. package/dist/dropdown.js +7 -7
  151. package/dist/empty-state.js +3 -3
  152. package/dist/filter-bar.js +77 -75
  153. package/dist/filter-bar.js.map +1 -1
  154. package/dist/focus-trap.js +1 -1
  155. package/dist/form-layout.js +2 -2
  156. package/dist/header.js +4 -4
  157. package/dist/index.js +82 -79
  158. package/dist/index.js.map +1 -1
  159. package/dist/info-icon.js +3 -3
  160. package/dist/input-field.js +4 -4
  161. package/dist/internal.js +8 -8
  162. package/dist/link.js +1 -1
  163. package/dist/loading-indicator.js +1 -1
  164. package/dist/menu.js +1 -1
  165. package/dist/modal-fullscreen.js +6 -6
  166. package/dist/modal.js +6 -6
  167. package/dist/pagination.js +4 -4
  168. package/dist/payment-method.js +1 -1
  169. package/dist/popover.js +1 -1
  170. package/dist/popper-container.js +1 -1
  171. package/dist/radio-group.js +4 -4
  172. package/dist/search-bar.js +2 -2
  173. package/dist/secondary-nav.js +2 -2
  174. package/dist/segmented-control.js +40 -41
  175. package/dist/segmented-control.js.map +1 -1
  176. package/dist/selection-card.js +4 -4
  177. package/dist/sidepanel.js +6 -6
  178. package/dist/status.js +2 -2
  179. package/dist/stepper.js +4 -4
  180. package/dist/structured-list.js +1 -1
  181. package/dist/summary-grid.js +3 -3
  182. package/dist/tabs.js +68 -67
  183. package/dist/tabs.js.map +1 -1
  184. package/dist/tag.js +3 -3
  185. package/dist/textarea.js +4 -4
  186. package/dist/timeline.js +7 -7
  187. package/dist/toast.js +4 -4
  188. package/dist/toggle.js +2 -2
  189. package/dist/tutorial.js +68 -53
  190. package/dist/tutorial.js.map +1 -1
  191. package/dist/typography.js +1 -1
  192. package/dist/web-types.json +133 -70
  193. package/package.json +9 -6
  194. package/dist/chunks/button-actions.81db18e8.js.map +0 -1
  195. package/dist/chunks/button.9d6435ae.js +0 -100
  196. package/dist/chunks/button.9d6435ae.js.map +0 -1
  197. package/dist/chunks/checkmark.a6ed8f47.js +0 -26
  198. package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
  199. package/dist/chunks/dropdown.10c034aa.js.map +0 -1
  200. package/dist/chunks/events.58c00e6d.js.map +0 -1
  201. package/dist/chunks/index.aaf965f8.js +0 -147
  202. package/dist/chunks/index.aaf965f8.js.map +0 -1
  203. package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
@@ -1,39 +1,39 @@
1
- import { ref as y, watch as se, computed as u, defineComponent as I, useSlots as le, toRefs as ae, nextTick as E, useAttrs as xe, toRef as C, inject as he } from "vue";
2
- import { d as X, B as we } from "./index.dd30e538.js";
3
- import { D as P, a as ee, b as Se, c as Le, B as Oe } from "./dropdown-default-textbox.54ca1b18.js";
4
- import { n as A } from "./_plugin-vue2_normalizer.71e2aa87.js";
1
+ import { ref as y, watch as se, computed as c, defineComponent as D, useSlots as le, toRefs as ae, nextTick as $, useAttrs as xe, toRef as O, inject as he } from "vue";
2
+ import { d as X, B as we } from "./index.e29a6907.js";
3
+ import { D as P, a as ee, b as Se, c as Le, B as Oe } from "./dropdown-default-textbox.d0f17d96.js";
4
+ import { n as M } from "./_plugin-vue2_normalizer.71e2aa87.js";
5
5
  import { g as T } from "./unique-id.a2a2b458.js";
6
6
  import { u as Ce } from "./aria-label.ac9651a5.js";
7
7
  import { u as W } from "./i18n.eb5b985b.js";
8
8
  import { u as $e } from "./use-form-layout-loading.d03e5d48.js";
9
9
  import { u as Ee } from "./use-has-slot.fbeb19ec.js";
10
- import { c as d, b as K, B as z, a as De, u as Ie } from "./use-cached-selected-values.69297473.js";
11
- import { B as $, a as Be } from "./keyboard-navigation.ca47dfa8.js";
12
- import { a as te } from "./index.671768a1.js";
13
- import { a as Re } from "./index.15b088b9.js";
14
- import { E as Te, F as Ae } from "./error-message.31ec12b7.js";
10
+ import { c as d, b as K, B as z, a as De, u as Ie } from "./use-cached-selected-values.98a9ed01.js";
11
+ import { B as C, a as Be } from "./keyboard-navigation.bbc3d15c.js";
12
+ import { a as te } from "./index.c8621e8e.js";
13
+ import { a as Re } from "./index.0a30d358.js";
14
+ import { E as Te, F as Ae } from "./error-message.bdcc1020.js";
15
15
  import "../assets/dropdown.css";
16
- var L = /* @__PURE__ */ ((n) => (n.DEFAULT = "DropdownInputDefault", n.SMALL = "DropdownInputSmall", n))(L || {});
16
+ var A = /* @__PURE__ */ ((n) => (n.DEFAULT = "DropdownInputDefault", n.SMALL = "DropdownInputSmall", n))(A || {});
17
17
  const Me = {
18
18
  "en-US": {
19
19
  apply: "Apply",
20
20
  cancel: "Cancel",
21
21
  noOptionsMatchThisSearch: "No options match this search"
22
22
  }
23
- }, Ne = (n, t, o, e) => {
23
+ }, Ne = (n, e, o, t) => {
24
24
  const s = y(n.value), { t: a } = W();
25
25
  se(n, () => {
26
26
  s.value = n.value;
27
27
  });
28
- const l = u(
28
+ const l = c(
29
29
  () => JSON.stringify(s.value) === JSON.stringify(n.value)
30
30
  ), r = () => {
31
- e(d.SELECT, s.value), e(d.CLOSE_DROPDOWN);
31
+ t(d.SELECT, s.value), t(d.CLOSE_DROPDOWN);
32
32
  }, v = () => {
33
- s.value = n.value, e(d.CLOSE_DROPDOWN);
33
+ s.value = n.value, t(d.CLOSE_DROPDOWN);
34
34
  }, p = () => {
35
- o.value && t.value && (s.value = n.value);
36
- }, f = u(() => [
35
+ o.value && e.value && (s.value = n.value);
36
+ }, f = c(() => [
37
37
  {
38
38
  title: a("apply"),
39
39
  event: r,
@@ -44,21 +44,21 @@ const Me = {
44
44
  event: v
45
45
  }
46
46
  ]), _ = (i) => {
47
- s.value = i, t.value || e(d.SELECT, i);
48
- }, O = (i) => {
49
- _(i), e(d.TAB);
47
+ s.value = i, e.value || t(d.SELECT, i);
48
+ }, L = (i) => {
49
+ _(i), t(d.TAB);
50
50
  }, g = (i) => {
51
- _(i), e(d.ENTER);
51
+ _(i), t(d.ENTER);
52
52
  }, h = (i) => {
53
- _(i), e(d.SPACE);
53
+ _(i), t(d.SPACE);
54
54
  }, x = () => {
55
- v(), e(d.ESCAPE);
55
+ v(), t(d.ESCAPE);
56
56
  }, w = () => {
57
- e(d.SHOW_MORE);
57
+ t(d.SHOW_MORE);
58
58
  }, S = {
59
59
  [d.SELECT]: _,
60
60
  [d.SHOW_MORE]: w,
61
- [d.TAB]: O,
61
+ [d.TAB]: L,
62
62
  [d.SPACE]: h,
63
63
  [d.ENTER]: g
64
64
  };
@@ -71,10 +71,10 @@ const Me = {
71
71
  onEscapeKey: x,
72
72
  onOutsideDropdownClick: p
73
73
  };
74
- }, ke = I({
74
+ }, ke = D({
75
75
  i18n: { messages: Me },
76
76
  name: "bento-dropdown-options-container"
77
- }), Fe = /* @__PURE__ */ I({
77
+ }), Fe = /* @__PURE__ */ D({
78
78
  ...ke,
79
79
  props: {
80
80
  /**
@@ -100,14 +100,6 @@ const Me = {
100
100
  * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
101
101
  */
102
102
  id: { type: String, required: !0 },
103
- /**
104
- * Dropdown input size
105
- */
106
- inputSize: {
107
- type: String,
108
- default: L.DEFAULT,
109
- validator: (n) => Object.values(L).includes(n)
110
- },
111
103
  /**
112
104
  * Function that allows the options to be disabled
113
105
  *
@@ -188,63 +180,62 @@ const Me = {
188
180
  default: !1
189
181
  }
190
182
  },
191
- setup(n, { expose: t, emit: o }) {
192
- const e = n, s = le(), { selectedValue: a, multiple: l } = ae(e), r = y(null), { t: v } = W(), p = u(() => e.open && !e.disabled), f = u(() => v("noOptionsMatchThisSearch")), _ = u(() => ({
193
- "b-dropdown-options-container--single": !(e != null && e.multiple)
194
- })), O = u(() => ({
195
- "b-dropdown-options-container__listbox--small": e.inputSize === L.SMALL,
196
- "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
197
- })), { actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S } = Ne(a, l, p, o), i = u(() => e != null && e.multiple ? Re : te), c = u(() => {
198
- var M;
199
- const m = {
200
- "min-width": `${(M = e == null ? void 0 : e.targetElement) == null ? void 0 : M.clientWidth}px`,
183
+ setup(n, { expose: e, emit: o }) {
184
+ const t = n, s = le(), { selectedValue: a, multiple: l } = ae(t), r = y(null), { t: v } = W(), p = c(() => t.open && !t.disabled), f = c(() => v("noOptionsMatchThisSearch")), _ = c(() => ({
185
+ "b-dropdown-options-container--single": !(t != null && t.multiple)
186
+ })), L = c(() => ({
187
+ "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
188
+ })), { actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S } = Ne(a, l, p, o), i = c(() => t != null && t.multiple ? Re : te), u = c(() => {
189
+ var N;
190
+ const b = {
191
+ "min-width": `${(N = t == null ? void 0 : t.targetElement) == null ? void 0 : N.clientWidth}px`,
201
192
  "max-width": "min(500px, 95%)"
202
193
  };
203
- return e != null && e.multiple ? {
194
+ return t != null && t.multiple ? {
204
195
  actionsLayout: "space-between",
205
196
  actions: g.value,
206
197
  divider: !0,
207
198
  fallbackPosition: ["top-start"],
208
- id: T(`dropdown-options-${e.id}`),
209
- open: e.open,
199
+ id: T(`dropdown-options-${t.id}`),
200
+ open: t.open,
210
201
  position: "bottom-start",
211
202
  style: {
212
203
  width: "auto",
213
- ...m
204
+ ...b
214
205
  },
215
- targetElement: e.targetElement
206
+ targetElement: t.targetElement
216
207
  } : {
217
208
  fallbackPosition: ["top-start"],
218
209
  offset: [0, 8],
219
210
  position: "bottom-start",
220
211
  style: {
221
212
  display: p.value ? "block" : "none",
222
- ...m
213
+ ...b
223
214
  },
224
- targetElement: e.targetElement
215
+ targetElement: t.targetElement
225
216
  };
226
217
  });
227
- return t({
218
+ return e({
228
219
  onOutsideDropdownClick: S
229
- }), { __sfc: !0, slots: s, emit: o, props: e, selectedValue: a, multiple: l, dropdownOptionsListboxRef: r, t: v, isDropdownOpen: p, noResultsMessage: f, conditionalClasses: _, conditionalListboxClasses: O, actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: i, popperContainerOrPopoverProps: c, BentoListbox: z };
220
+ }), { __sfc: !0, slots: s, emit: o, props: t, selectedValue: a, multiple: l, dropdownOptionsListboxRef: r, t: v, isDropdownOpen: p, noResultsMessage: f, conditionalClasses: _, conditionalListboxClasses: L, actions: g, internalSelectedValue: h, listeners: x, onEscapeKey: w, onOutsideDropdownClick: S, popperContainerOrPopoverComponent: i, popperContainerOrPopoverProps: u, BentoListbox: z };
230
221
  }
231
222
  });
232
223
  var Pe = function() {
233
- var t = this, o = t._self._c, e = t._self._setupProxy;
234
- return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(s) {
235
- return !s.type.indexOf("key") && t._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
236
- } } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(s, a) {
224
+ var e = this, o = e._self._c, t = e._self._setupProxy;
225
+ return o(t.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: t.conditionalClasses }, "component", t.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(s) {
226
+ return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : t.onEscapeKey.apply(null, arguments);
227
+ } } }, [o(t.BentoListbox, e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: t.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": t.internalSelectedValue, multiple: t.multiple, "static-categories": e.staticCategories, "no-results-message": t.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(s, a) {
237
228
  return { key: a, fn: function(l) {
238
- return [t._t(a, null, null, l)];
229
+ return [e._t(a, null, null, l)];
239
230
  } };
240
- })], null, !0) }, e.listeners))], 1)]);
241
- }, Ke = [], ze = /* @__PURE__ */ A(
231
+ })], null, !0) }, t.listeners))], 1)]);
232
+ }, Ke = [], ze = /* @__PURE__ */ M(
242
233
  Fe,
243
234
  Pe,
244
235
  Ke,
245
236
  !1,
246
237
  null,
247
- "ee489bd3",
238
+ "11bd9f89",
248
239
  null,
249
240
  null
250
241
  );
@@ -256,9 +247,9 @@ const Ue = {
256
247
  }
257
248
  };
258
249
  var je = function() {
259
- var t = this, o = t._self._c;
260
- return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
261
- }, qe = [], He = /* @__PURE__ */ A(
250
+ var e = this, o = e._self._c;
251
+ return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
252
+ }, qe = [], He = /* @__PURE__ */ M(
262
253
  Ue,
263
254
  je,
264
255
  qe,
@@ -276,9 +267,9 @@ const Je = {
276
267
  }
277
268
  };
278
269
  var Ye = function() {
279
- var t = this, o = t._self._c;
280
- return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
281
- }, Ze = [], Ge = /* @__PURE__ */ A(
270
+ var e = this, o = e._self._c;
271
+ return o("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? o("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), o("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
272
+ }, Ze = [], Ge = /* @__PURE__ */ M(
282
273
  Je,
283
274
  Ye,
284
275
  Ze,
@@ -288,10 +279,10 @@ var Ye = function() {
288
279
  null,
289
280
  null
290
281
  );
291
- const Qe = Ge.exports, Xe = I({
282
+ const Qe = Ge.exports, Xe = D({
292
283
  name: "dropdown-small-textbox",
293
284
  inheritAttrs: !1
294
- }), et = /* @__PURE__ */ I({
285
+ }), et = /* @__PURE__ */ D({
295
286
  ...Xe,
296
287
  props: {
297
288
  /**
@@ -352,28 +343,28 @@ const Qe = Ge.exports, Xe = I({
352
343
  value: { type: String, default: "" }
353
344
  },
354
345
  emits: ["open", "close"],
355
- setup(n, { emit: t }) {
356
- const o = n, e = u(() => ({
346
+ setup(n, { emit: e }) {
347
+ const o = n, t = c(() => ({
357
348
  [`b-dropdown-small-textbox--${P.DISABLED}`]: o.disabled,
358
349
  [`b-dropdown-small-textbox--${P.READONLY}`]: o.readonly,
359
350
  [`b-dropdown-small-textbox--${P.OPENED}`]: o.open
360
- })), s = u(() => o.open && !o.disabled && !o.readonly), a = () => {
361
- t("open");
351
+ })), s = c(() => o.open && !o.disabled && !o.readonly), a = () => {
352
+ e("open");
362
353
  }, l = () => {
363
- t("close");
354
+ e("close");
364
355
  }, r = {
365
356
  [ee.OPEN]: a,
366
357
  [ee.CLOSE]: l
367
358
  };
368
- return { __sfc: !0, emit: t, props: o, conditionalClasses: e, isDropdownOpen: s, openDropdown: a, closeDropdown: l, listeners: r, DropdownBaseTextbox: Se, ChevronDownSmallIcon: Ve, ChevronUpSmallIcon: Qe };
359
+ return { __sfc: !0, emit: e, props: o, conditionalClasses: t, isDropdownOpen: s, openDropdown: a, closeDropdown: l, listeners: r, DropdownBaseTextbox: Se, ChevronDownSmallIcon: Ve, ChevronUpSmallIcon: Qe };
369
360
  }
370
361
  });
371
362
  var tt = function() {
372
- var t = this, o = t._self._c, e = t._self._setupProxy;
373
- return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: t._u([{ key: "icon", fn: function() {
374
- return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
375
- }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
376
- }, ot = [], nt = /* @__PURE__ */ A(
363
+ var e = this, o = e._self._c, t = e._self._setupProxy;
364
+ return o("div", { staticClass: "b-dropdown-small-textbox", class: t.conditionalClasses }, [o(t.DropdownBaseTextbox, e._g(e._b({ staticClass: "b-dropdown-small-textbox__textbox", scopedSlots: e._u([{ key: "icon", fn: function() {
365
+ return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(t.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: t.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(t.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !t.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
366
+ }, proxy: !0 }]) }, "dropdown-base-textbox", { ...e.$attrs, ...e.$props }, !1), t.listeners))], 1);
367
+ }, ot = [], nt = /* @__PURE__ */ M(
377
368
  et,
378
369
  tt,
379
370
  ot,
@@ -383,116 +374,116 @@ var tt = function() {
383
374
  null,
384
375
  null
385
376
  );
386
- const st = nt.exports, lt = (n, t) => t.value.reduce((o, e) => {
387
- if (e.items) {
388
- const s = e.items.filter(
377
+ const st = nt.exports, lt = (n, e) => e.value.reduce((o, t) => {
378
+ if (t.items) {
379
+ const s = t.items.filter(
389
380
  (l) => n.value.find((r) => r.value === l.value)
390
381
  );
391
- s.length === e.items.length ? o.push(e.label) : s.forEach(({ label: l }) => o.push(l));
382
+ s.length === t.items.length ? o.push(t.label) : s.forEach(({ label: l }) => o.push(l));
392
383
  }
393
- return n.value.find((s) => s.value === e.value) && o.push(e.label), o;
394
- }, []).join(", "), at = ({ items: n, placeholder: t, selectedValues: o }) => {
395
- const e = u(() => n.value.find((a) => {
384
+ return n.value.find((s) => s.value === t.value) && o.push(t.label), o;
385
+ }, []).join(", "), at = ({ items: n, placeholder: e, selectedValues: o }) => {
386
+ const t = c(() => n.value.find((a) => {
396
387
  var l;
397
388
  return (l = a.items) == null ? void 0 : l.length;
398
389
  }));
399
- return u(() => o.value.length ? e.value ? lt(o, n) : o.value.map(({ label: a }) => a).join(", ") : t.value || null);
390
+ return c(() => o.value.length ? t.value ? lt(o, n) : o.value.map(({ label: a }) => a).join(", ") : e.value || null);
400
391
  }, ie = (n) => {
401
- var t;
402
- (t = n.value.$children) == null || t[0].$refs.textbox.focus();
392
+ var e;
393
+ (e = n.value.$children) == null || e[0].$refs.textbox.focus();
403
394
  }, it = ({
404
395
  inputContainerRef: n,
405
- optionsContainerRef: t,
396
+ optionsContainerRef: e,
406
397
  selectedValueIndex: o,
407
- isDropdownOpen: e,
398
+ isDropdownOpen: t,
408
399
  isDynamicFltering: s,
409
400
  items: a,
410
401
  isMultiple: l
411
402
  }, r, v, p) => {
412
403
  const f = ({ detail: i }) => {
413
- i.preventDefault(), e.value || (v(), E(() => {
414
- var c, m;
415
- l ? (c = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[o.value].$el.focus();
404
+ i.preventDefault(), t.value || (v(), $(() => {
405
+ var u, b;
406
+ l ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[o.value].$el.focus();
416
407
  }));
417
408
  }, _ = ({ detail: i }) => {
418
- i.preventDefault(), e.value || (v(), E(() => {
419
- var c;
420
- (c = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
409
+ i.preventDefault(), t.value || (v(), $(() => {
410
+ var u;
411
+ (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus();
421
412
  }));
422
- }, O = () => {
423
- e.value || (v(), E(() => {
424
- var i, c;
413
+ }, L = () => {
414
+ t.value || (v(), $(() => {
415
+ var i, u;
425
416
  if (l) {
426
- const m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
427
- (i = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[m.length - 1].$children[a.length - 1].$el.focus();
417
+ const b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
418
+ (i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[b.length - 1].$children[a.length - 1].$el.focus();
428
419
  } else
429
- (c = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[a.length - 1].$el.focus();
420
+ (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[a.length - 1].$el.focus();
430
421
  }));
431
422
  }, g = () => {
432
- e.value && (p(), ie(n));
423
+ t.value && (p(), ie(n));
433
424
  }, h = () => {
434
- e.value || v(), E(() => {
425
+ t.value || v(), $(() => {
435
426
  var i;
436
- (i = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus();
427
+ (i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus();
437
428
  });
438
429
  }, x = ({ detail: i }) => {
439
- i.preventDefault(), r(), e.value && E(() => {
440
- var c, m;
441
- l ? (c = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (m = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[o.value].$el.focus();
430
+ i.preventDefault(), r(), t.value && $(() => {
431
+ var u, b;
432
+ l ? (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[o.value].$el.focus();
442
433
  });
443
434
  }, w = () => {
444
- r(), e.value && E(() => {
445
- var i, c;
446
- l ? (i = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus() : (c = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[o.value].$el.focus();
435
+ r(), t.value && $(() => {
436
+ var i, u;
437
+ l ? (i = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || i[0].$el.focus() : (u = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || u[o.value].$el.focus();
447
438
  });
448
439
  };
449
- return u(() => ({
450
- ...s.value ? {} : { [$.SPACE]: x },
451
- [$.ENTER]: w,
452
- [$.ARROW_DOWN]: f,
453
- [$.ARROW_UP]: _,
454
- [$.END]: O,
455
- [$.ESCAPE]: g,
456
- [$.HOME]: h
440
+ return c(() => ({
441
+ ...s.value ? {} : { [C.SPACE]: x },
442
+ [C.ENTER]: w,
443
+ [C.ARROW_DOWN]: f,
444
+ [C.ARROW_UP]: _,
445
+ [C.END]: L,
446
+ [C.ESCAPE]: g,
447
+ [C.HOME]: h
457
448
  }));
458
- }, rt = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
459
- const e = () => {
460
- t.value && o(), E(() => {
449
+ }, rt = ({ inputContainerRef: n, isDropdownOpen: e }, o) => {
450
+ const t = () => {
451
+ e.value && o(), $(() => {
461
452
  ie(n);
462
453
  });
463
454
  };
464
455
  return {
465
- [d.ENTER]: e,
466
- [d.ESCAPE]: e,
467
- [d.TAB]: e,
468
- [d.SPACE]: e
456
+ [d.ENTER]: t,
457
+ [d.ESCAPE]: t,
458
+ [d.TAB]: t,
459
+ [d.SPACE]: t
469
460
  };
470
461
  };
471
- function dt(n, t, o) {
472
- const e = y(n), s = y(t), a = (r, v = []) => v.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? [p, ...a(r, p.items)] : p.items ? [...a(r, p.items)] : []);
473
- return se(e, () => {
474
- o !== void 0 && o(e.value);
475
- }), u(() => {
476
- if (!e.value || o !== void 0)
462
+ function dt(n, e, o) {
463
+ const t = y(n), s = y(e), a = (r, v = []) => v.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? [p, ...a(r, p.items)] : p.items ? [...a(r, p.items)] : []);
464
+ return se(t, () => {
465
+ o !== void 0 && o(t.value);
466
+ }), c(() => {
467
+ if (!t.value || o !== void 0)
477
468
  return s.value;
478
- const r = e.value.toLocaleLowerCase();
469
+ const r = t.value.toLocaleLowerCase();
479
470
  return a(r, s.value);
480
471
  });
481
472
  }
482
- const ut = {
473
+ const ct = {
483
474
  "en-US": {
484
475
  all: "All",
485
476
  clearSearch: "Clear filter",
486
477
  ariaLabelFallback: "Dropdown"
487
478
  }
488
- }, ct = Symbol("input field component injection key"), pt = I({
489
- i18n: { messages: ut },
479
+ }, ut = Symbol("input field component injection key"), pt = D({
480
+ i18n: { messages: ct },
490
481
  name: "b-dropdown",
491
482
  components: {
492
483
  DropdownInputDefault: Le,
493
484
  DropdownInputSmall: st
494
485
  }
495
- }), ft = /* @__PURE__ */ I({
486
+ }), ft = /* @__PURE__ */ D({
496
487
  ...pt,
497
488
  props: {
498
489
  /**
@@ -621,7 +612,7 @@ const ut = {
621
612
  size: {
622
613
  type: String,
623
614
  default: null,
624
- validator: (n) => Object.values(L).includes(n)
615
+ validator: (n) => Object.values(A).includes(n)
625
616
  },
626
617
  /**
627
618
  * If enabled, dropdown will display non-selectable, static categories
@@ -650,82 +641,82 @@ const ut = {
650
641
  }
651
642
  },
652
643
  emits: ["input", "show-more"],
653
- setup(n, { emit: t }) {
644
+ setup(n, { emit: e }) {
654
645
  var Q;
655
- const o = n, e = xe(), s = le(), a = Ee(s), { t: l } = W(), r = y(null), v = y(null), p = y(null), f = y(!1), _ = T("bento-dropdown-options-container"), O = T("dropdown-label"), g = T("dropdown-description"), h = T("dropdown-error"), { isReadOnly: x } = $e(C(o, "readonly")), { cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i } = De(
656
- C(o, "items"),
657
- C(o, "value"),
658
- C(o, "multiple")
659
- ), c = y(e["aria-label"]), { ariaLabel: m } = ae(o), M = Ce({
660
- ariaLabel: c.value,
646
+ const o = n, t = xe(), s = le(), a = Ee(s), { t: l } = W(), r = y(null), v = y(null), p = y(null), f = y(!1), _ = T("bento-dropdown-options-container"), L = T("dropdown-label"), g = T("dropdown-description"), h = T("dropdown-error"), { isReadOnly: x } = $e(O(o, "readonly")), { cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i } = De(
647
+ O(o, "items"),
648
+ O(o, "value"),
649
+ O(o, "multiple")
650
+ ), u = y(t["aria-label"]), { ariaLabel: b } = ae(o), N = Ce({
651
+ ariaLabel: u.value,
661
652
  // TODO: take this line away when the aria-label props is removed
662
- label: m,
653
+ label: b,
663
654
  defaultFallback: l("ariaLabelFallback")
664
- }), U = o.size === L.SMALL || he(ct, !1), re = u(() => U ? L.SMALL : L.DEFAULT), de = u(() => ({
655
+ }), U = o.size === A.SMALL || he(ut, !1), re = c(() => U ? A.SMALL : A.DEFAULT), de = c(() => ({
665
656
  "b-dropdown--condensed": o.condensed
666
- })), ue = u(() => ({
657
+ })), ce = c(() => ({
667
658
  "b-dropdown__description--error": !!o.errorMessage
668
- })), D = y(""), B = C(o, "items"), ce = dt(D, B, (Q = o == null ? void 0 : o.search) == null ? void 0 : Q.searchEvent), F = u(() => o.dynamicFiltering && !!D.value), pe = at({
669
- items: B,
670
- placeholder: C(o, "placeholder"),
659
+ })), E = y(""), I = O(o, "items"), ue = dt(E, I, (Q = o == null ? void 0 : o.search) == null ? void 0 : Q.searchEvent), F = c(() => o.dynamicFiltering && !!E.value), pe = at({
660
+ items: I,
661
+ placeholder: O(o, "placeholder"),
671
662
  selectedValues: w
672
- }), fe = u(() => {
663
+ }), fe = c(() => {
673
664
  if (o != null && o.multiple && Array.isArray(o.value))
674
665
  return o.items.filter(
675
- ({ value: b }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(b)
666
+ ({ value: m }) => (o == null ? void 0 : o.value) && (o == null ? void 0 : o.value).includes(m)
676
667
  );
677
668
  if (!o.multiple && o.staticCategories) {
678
- const b = o.items.find(
679
- (k) => k.items.some((ge) => ge.value === o.value)
669
+ const m = o.items.find(
670
+ (R) => R.items.some((ge) => ge.value === o.value)
680
671
  );
681
- return b ? b.items.find((k) => k.value === o.value) : null;
672
+ return m ? m.items.find((R) => R.value === o.value) : null;
682
673
  }
683
- return o.items.find(({ value: b }) => b === (o == null ? void 0 : o.value));
684
- }), j = u(() => {
685
- const b = o.items.findIndex(({ value: R }) => o.value === R);
686
- return b > 0 ? b : 0;
687
- }), { isMultiLevelSelect: q, flattenedItemsList: H } = Ie(B), ve = u(() => {
688
- var b;
689
- if (o.multiple && !o.hasMoreItems) {
690
- const R = (b = o == null ? void 0 : o.value) == null ? void 0 : b.length;
691
- return (q.value ? H.value.length : B.value.length) === R ? l("all") : R;
674
+ return o.items.find(({ value: m }) => m === (o == null ? void 0 : o.value));
675
+ }), j = c(() => {
676
+ const m = o.items.findIndex(({ value: B }) => o.value === B);
677
+ return m > 0 ? m : 0;
678
+ }), { isMultiLevelSelect: q, flattenedItemsList: H } = Ie(I), ve = c(() => {
679
+ var m;
680
+ if (o.multiple) {
681
+ const B = (m = o == null ? void 0 : o.value) == null ? void 0 : m.length, R = q.value ? H.value.length : I.value.length;
682
+ return !o.hasMoreItems && R === B ? l("all") : B;
692
683
  }
693
684
  return null;
694
- }), be = u(
685
+ }), me = c(
695
686
  () => `${o.description ? g : ""} ${o.errorMessage ? h : ""}`.trim() || null
696
687
  ), V = () => {
697
688
  x.value || (f.value = !0);
698
- }, N = () => {
689
+ }, k = () => {
699
690
  f.value = !1;
700
691
  }, J = () => {
701
- x.value || (f.value = !f.value, F.value && (D.value = ""));
702
- }, me = () => {
703
- F.value && (D.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
704
- }, Y = (b) => {
705
- o.multiple || (D.value = "", f.value = !1), i(b), t("input", S.value);
692
+ x.value || (f.value = !f.value, F.value && (E.value = ""));
693
+ }, be = () => {
694
+ F.value && (E.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
695
+ }, Y = (m) => {
696
+ o.multiple || (E.value = "", f.value = !1), i(m), e("input", S.value);
706
697
  }, Z = () => {
707
- t(d.SHOW_MORE);
698
+ e(d.SHOW_MORE);
708
699
  }, _e = it(
709
700
  {
710
701
  inputContainerRef: r,
711
702
  optionsContainerRef: p,
712
703
  selectedValueIndex: j,
713
704
  isDropdownOpen: f,
714
- isDynamicFltering: C(o, "dynamicFiltering"),
705
+ isDynamicFltering: O(o, "dynamicFiltering"),
715
706
  items: o.items,
716
707
  isMultiple: o.multiple
717
708
  },
718
709
  J,
719
710
  V,
720
- N
711
+ k
721
712
  ), G = rt(
722
713
  {
723
714
  inputContainerRef: r,
724
715
  isDropdownOpen: f
725
716
  },
726
- N
717
+ k
727
718
  ), ye = {
728
- [d.CLOSE_DROPDOWN]: N,
719
+ [d.CLOSE_DROPDOWN]: k,
729
720
  [d.SELECT]: Y,
730
721
  [d.SHOW_MORE]: Z,
731
722
  ...G
@@ -736,40 +727,40 @@ const ut = {
736
727
  Having the field as "undefined" will hide/remove the error.
737
728
  <bento-dropdown errorMessage="Error message text" />`,
738
729
  "2.0.0"
739
- ), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: e, slots: s, hasSlot: a, props: o, emit: t, t: l, inputContainerRef: r, inputContainerRefWrapper: v, optionsContainerRef: p, isDropdownOpen: f, dropdownOptionsContainerId: _, labelId: O, descriptionId: g, errorId: h, isReadOnly: x, cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i, ariaLabelAttribute: c, ariaLabel: m, computedAriaLabel: M, isInputComponent: U, size: re, conditionalClasses: de, descriptionConditionalClasses: ue, searchTerm: D, items: B, filteredItems: ce, isSearching: F, displayValue: pe, selectedValueItem: fe, selectedValueIndex: j, isMultiLevelSelect: q, flattenedItemsList: H, additionalItemsSelected: ve, ariaDescribedBy: be, openDropdown: V, closeDropdown: N, toggleDropdown: J, clickOutsideDropdown: me, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: _e, listboxKeyboardNavigationListeners: G, listboxListeners: ye, BentoDropdownOptionsContainer: We, BentoTypography: we, ErrorMessage: Te, FieldLabel: Ae, vBentoClickOutsideDirective: Oe, vBentoKeyboardNavigationDirective: Be };
730
+ ), o.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), { __sfc: !0, attrs: t, slots: s, hasSlot: a, props: o, emit: e, t: l, inputContainerRef: r, inputContainerRefWrapper: v, optionsContainerRef: p, isDropdownOpen: f, dropdownOptionsContainerId: _, labelId: L, descriptionId: g, errorId: h, isReadOnly: x, cachedSelectedListboxOptions: w, cachedListboxSelectedValues: S, setCachedValues: i, ariaLabelAttribute: u, ariaLabel: b, computedAriaLabel: N, isInputComponent: U, size: re, conditionalClasses: de, descriptionConditionalClasses: ce, searchTerm: E, items: I, filteredItems: ue, isSearching: F, displayValue: pe, selectedValueItem: fe, selectedValueIndex: j, isMultiLevelSelect: q, flattenedItemsList: H, additionalItemsSelected: ve, ariaDescribedBy: me, openDropdown: V, closeDropdown: k, toggleDropdown: J, clickOutsideDropdown: be, onOptionSelected: Y, emitShowMoreEvent: Z, textboxKeyboardNavigationListeners: _e, listboxKeyboardNavigationListeners: G, listboxListeners: ye, BentoDropdownOptionsContainer: We, BentoTypography: we, ErrorMessage: Te, FieldLabel: Ae, vBentoClickOutsideDirective: Oe, vBentoKeyboardNavigationDirective: Be };
740
731
  }
741
732
  });
742
733
  var vt = function() {
743
734
  var s;
744
- var t = this, o = t._self._c, e = t._self._setupProxy;
745
- return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [t.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": t.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(a) {
746
- e.searchTerm = a;
747
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
735
+ var e = this, o = e._self._c, t = e._self._setupProxy;
736
+ return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: t.conditionalClasses }, [e.label ? o(t.FieldLabel, { attrs: { id: t.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), o("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, t.textboxKeyboardNavigationListeners), [o(t.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: t.searchTerm, "additional-items-selected": t.additionalItemsSelected, ariaControls: t.dropdownOptionsContainerId, ariaExpanded: t.isDropdownOpen, "aria-labelledby": e.label ? t.labelId : null, "aria-describedby": t.ariaDescribedBy, "aria-label": t.computedAriaLabel, "aria-readonly": t.isReadOnly, readonly: t.isReadOnly, disabled: e.disabled, "display-value": t.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: t.isDropdownOpen, "selected-value-item": t.isInputComponent ? void 0 : t.selectedValueItem, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(a) {
737
+ t.searchTerm = a;
738
+ }, open: t.toggleDropdown, close: t.toggleDropdown }, scopedSlots: e._u([e._l(t.slots, function(a, l) {
748
739
  return { key: l, fn: function(r) {
749
- return [t._t(l, null, null, r)];
740
+ return [e._t(l, null, null, r)];
750
741
  } };
751
- })], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": t.emptyState, "debounce-time": (s = t.search) == null ? void 0 : s.debounceTime, disabled: t.disabled, "input-size": e.size, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": t.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
742
+ })], null, !0) })], 1), t.inputContainerRef ? o(t.BentoDropdownOptionsContainer, e._g({ ref: "optionsContainerRef", attrs: { id: t.dropdownOptionsContainerId, "aria-label": t.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (s = e.search) == null ? void 0 : s.debounceTime, disabled: e.disabled, "is-option-disabled": e.isOptionDisabled, items: t.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: t.isDropdownOpen, "selected-value": t.cachedSelectedListboxOptions, searching: t.isSearching, "target-element": t.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(t.slots, function(a, l) {
752
743
  return { key: l, fn: function(r) {
753
- return [t._t(l, null, null, r)];
744
+ return [e._t(l, null, null, r)];
754
745
  } };
755
- })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
756
- return [t._v(" " + t._s(t.description) + " ")];
757
- })], 2) : t._e()], 1);
758
- }, bt = [], mt = /* @__PURE__ */ A(
746
+ })], null, !0) }, t.listboxListeners)) : e._e(), e.errorMessage ? o(t.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: t.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || t.hasSlot("description") ? o(t.BentoTypography, { staticClass: "b-dropdown__description", class: t.descriptionConditionalClasses, attrs: { id: t.descriptionId, el: "span" } }, [e._t("description", function() {
747
+ return [e._v(" " + e._s(e.description) + " ")];
748
+ })], 2) : e._e()], 1);
749
+ }, mt = [], bt = /* @__PURE__ */ M(
759
750
  ft,
760
751
  vt,
761
- bt,
752
+ mt,
762
753
  !1,
763
754
  null,
764
- "b769b98e",
755
+ "76bdca10",
765
756
  null,
766
757
  null
767
758
  );
768
- const Bt = mt.exports;
759
+ const Bt = bt.exports;
769
760
  export {
770
761
  Bt as B,
771
- ct as I,
772
- L as a,
762
+ ut as I,
763
+ A as a,
773
764
  dt as u
774
765
  };
775
- //# sourceMappingURL=dropdown.10c034aa.js.map
766
+ //# sourceMappingURL=dropdown.a8037bca.js.map