@adyen/bento-vue2 1.48.0 → 1.50.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 (187) hide show
  1. package/dist/@types/index.d.ts +253 -244
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/card.css +1 -1
  7. package/dist/assets/data-grid.css +1 -1
  8. package/dist/assets/dialog-page.css +1 -1
  9. package/dist/assets/dropdown.css +1 -1
  10. package/dist/assets/file-uploader.css +1 -1
  11. package/dist/assets/filter-bar.css +1 -1
  12. package/dist/assets/header.css +1 -1
  13. package/dist/assets/inspector.css +1 -1
  14. package/dist/assets/menu.css +1 -1
  15. package/dist/assets/modal-fullscreen.css +1 -1
  16. package/dist/assets/payment-method.css +1 -1
  17. package/dist/assets/popover.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/assets/toggle-button.css +1 -1
  20. package/dist/button.js +1 -1
  21. package/dist/checkbox.js +2 -2
  22. package/dist/chunks/{action-bar.CSgrrcK0.js → action-bar.CGJJrMpa.js} +4 -4
  23. package/dist/chunks/{action-bar.CSgrrcK0.js.map → action-bar.CGJJrMpa.js.map} +1 -1
  24. package/dist/chunks/{base-modal.47Xa68h9.js → base-modal.8kcvtFRx.js} +2 -2
  25. package/dist/chunks/{base-modal.47Xa68h9.js.map → base-modal.8kcvtFRx.js.map} +1 -1
  26. package/dist/chunks/{button-actions-with-menu.D13mJiKO.js → button-actions-with-menu.C5OE7oOu.js} +3 -3
  27. package/dist/chunks/{button-actions-with-menu.D13mJiKO.js.map → button-actions-with-menu.C5OE7oOu.js.map} +1 -1
  28. package/dist/chunks/{checkbox-group.BXfJo9NR.js → checkbox-group.wa6Mtmxa.js} +4 -4
  29. package/dist/chunks/{checkbox-group.BXfJo9NR.js.map → checkbox-group.wa6Mtmxa.js.map} +1 -1
  30. package/dist/chunks/{checkbox.BEHpJDrF.js → checkbox.BPvnJrvd.js} +17 -17
  31. package/dist/chunks/{checkbox.BEHpJDrF.js.map → checkbox.BPvnJrvd.js.map} +1 -1
  32. package/dist/chunks/{code-snippet.CUx6b252.js → code-snippet.3s8WCnke.js} +5 -5
  33. package/dist/chunks/{code-snippet.CUx6b252.js.map → code-snippet.3s8WCnke.js.map} +1 -1
  34. package/dist/chunks/{controls-group.C3RDqB9H.js → controls-group.BnDPMaGI.js} +2 -2
  35. package/dist/chunks/{controls-group.C3RDqB9H.js.map → controls-group.BnDPMaGI.js.map} +1 -1
  36. package/dist/chunks/{copy.adSQlAOY.js → copy.DMlIj53I.js} +3 -3
  37. package/dist/chunks/{copy.adSQlAOY.js.map → copy.DMlIj53I.js.map} +1 -1
  38. package/dist/chunks/currency.B1F9YOIx.js.map +1 -1
  39. package/dist/chunks/{dashboard-section.q1XXEUZc.js → dashboard-section.BgyN5u0K.js} +3 -3
  40. package/dist/chunks/{dashboard-section.q1XXEUZc.js.map → dashboard-section.BgyN5u0K.js.map} +1 -1
  41. package/dist/chunks/{dashed-underline.CpVP3VDL.js → dashed-underline.Cvn5IoHT.js} +3 -3
  42. package/dist/chunks/{dashed-underline.CpVP3VDL.js.map → dashed-underline.Cvn5IoHT.js.map} +1 -1
  43. package/dist/chunks/{data-grid-template.kCxfVaW7.js → data-grid-template.DtWM0Tnu.js} +2 -2
  44. package/dist/chunks/{data-grid-template.kCxfVaW7.js.map → data-grid-template.DtWM0Tnu.js.map} +1 -1
  45. package/dist/chunks/{data-grid.DgxC3G4n.js → data-grid.N5Rxo6QB.js} +671 -665
  46. package/dist/chunks/data-grid.N5Rxo6QB.js.map +1 -0
  47. package/dist/chunks/{date-picker.DqsQJ7P7.js → date-picker.Byv5Z-Xj.js} +3 -3
  48. package/dist/chunks/{date-picker.DqsQJ7P7.js.map → date-picker.Byv5Z-Xj.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker.VZlIz83o.js → date-range-picker.CUS9Q53T.js} +6 -6
  50. package/dist/chunks/{date-range-picker.VZlIz83o.js.map → date-range-picker.CUS9Q53T.js.map} +1 -1
  51. package/dist/chunks/{dropdown-tag.BLAjuup5.js → dropdown-tag.ClUMccWv.js} +4 -4
  52. package/dist/chunks/{dropdown-tag.BLAjuup5.js.map → dropdown-tag.ClUMccWv.js.map} +1 -1
  53. package/dist/chunks/{dropdown.DWgwNFNB.js → dropdown.CC1i41NX.js} +264 -264
  54. package/dist/chunks/dropdown.CC1i41NX.js.map +1 -0
  55. package/dist/chunks/{error-message.Da-p1QIA.js → error-message.xTNEaNn8.js} +2 -2
  56. package/dist/chunks/{error-message.Da-p1QIA.js.map → error-message.xTNEaNn8.js.map} +1 -1
  57. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  58. package/dist/chunks/{file-uploader.DT7GsNqI.js → file-uploader.DTkxh9Ct.js} +400 -395
  59. package/dist/chunks/file-uploader.DTkxh9Ct.js.map +1 -0
  60. package/dist/chunks/{filter-bar.D2YR4Tpz.js → filter-bar.gj9sdW5T.js} +17 -18
  61. package/dist/chunks/{filter-bar.D2YR4Tpz.js.map → filter-bar.gj9sdW5T.js.map} +1 -1
  62. package/dist/chunks/{focus-trap.CGypVwG6.js → focus-trap._RrLaKlq.js} +6 -3
  63. package/dist/chunks/{focus-trap.CGypVwG6.js.map → focus-trap._RrLaKlq.js.map} +1 -1
  64. package/dist/chunks/{header.D5MLt9hG.js → header.5rAXro_L.js} +48 -48
  65. package/dist/chunks/{header.D5MLt9hG.js.map → header.5rAXro_L.js.map} +1 -1
  66. package/dist/chunks/{index.D8ivUe7P.js → index.CU8GKq4C.js} +8 -7
  67. package/dist/chunks/{index.D8ivUe7P.js.map → index.CU8GKq4C.js.map} +1 -1
  68. package/dist/chunks/{info-icon-with-popover.CO0mky_N.js → info-icon-with-popover.B0zJWJZn.js} +2 -2
  69. package/dist/chunks/{info-icon-with-popover.CO0mky_N.js.map → info-icon-with-popover.B0zJWJZn.js.map} +1 -1
  70. package/dist/chunks/{info-icon.0d0GzDe2.js → info-icon.C4_l0WAf.js} +3 -3
  71. package/dist/chunks/{info-icon.0d0GzDe2.js.map → info-icon.C4_l0WAf.js.map} +1 -1
  72. package/dist/chunks/{input-field-password.CQtzruQM.js → input-field-password.PU9SY4FC.js} +5 -5
  73. package/dist/chunks/{input-field-password.CQtzruQM.js.map → input-field-password.PU9SY4FC.js.map} +1 -1
  74. package/dist/chunks/{input-field-phone-number.DWKZy2-k.js → input-field-phone-number.D2juJ9ZD.js} +2 -2
  75. package/dist/chunks/{input-field-phone-number.DWKZy2-k.js.map → input-field-phone-number.D2juJ9ZD.js.map} +1 -1
  76. package/dist/chunks/{input-field.3V5IblWw.js → input-field.BPbe00eB.js} +3 -3
  77. package/dist/chunks/{input-field.3V5IblWw.js.map → input-field.BPbe00eB.js.map} +1 -1
  78. package/dist/chunks/inspector.types.BtgXpTC7.js +101 -0
  79. package/dist/chunks/inspector.types.BtgXpTC7.js.map +1 -0
  80. package/dist/chunks/{layout-row.BfS-cPky.js → layout-row.CHwDU8yK.js} +7 -7
  81. package/dist/chunks/{layout-row.BfS-cPky.js.map → layout-row.CHwDU8yK.js.map} +1 -1
  82. package/dist/chunks/{listbox-option-tag.XbvBQqlt.js → listbox-option-tag.BJBWnC2r.js} +2 -2
  83. package/dist/chunks/{listbox-option-tag.XbvBQqlt.js.map → listbox-option-tag.BJBWnC2r.js.map} +1 -1
  84. package/dist/chunks/{menu.DYopJZ12.js → menu.BC7ynpgF.js} +24 -24
  85. package/dist/chunks/{menu.DYopJZ12.js.map → menu.BC7ynpgF.js.map} +1 -1
  86. package/dist/chunks/{modal-fullscreen.Pp5mp7hD.js → modal-fullscreen.Dz3kSuTz.js} +2 -2
  87. package/dist/chunks/{modal-fullscreen.Pp5mp7hD.js.map → modal-fullscreen.Dz3kSuTz.js.map} +1 -1
  88. package/dist/chunks/{modal.CCjAy7Hv.js → modal.DV55hSPn.js} +2 -2
  89. package/dist/chunks/{modal.CCjAy7Hv.js.map → modal.DV55hSPn.js.map} +1 -1
  90. package/dist/chunks/{pagination.8g4bC4tv.js → pagination.CT-h2q0J.js} +2 -2
  91. package/dist/chunks/{pagination.8g4bC4tv.js.map → pagination.CT-h2q0J.js.map} +1 -1
  92. package/dist/chunks/payment-method.Bu76jY3c.js +59 -0
  93. package/dist/chunks/payment-method.Bu76jY3c.js.map +1 -0
  94. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  95. package/dist/chunks/{popover.C-LwO38X.js → popover.CRdrSmFW.js} +17 -16
  96. package/dist/chunks/popover.CRdrSmFW.js.map +1 -0
  97. package/dist/chunks/{popper-container.B1iB2ovW.js → popper-container.CsW4R0-t.js} +2 -2
  98. package/dist/chunks/{popper-container.B1iB2ovW.js.map → popper-container.CsW4R0-t.js.map} +1 -1
  99. package/dist/chunks/{promo-banner.DS0_aROF.js → promo-banner.BNXfyv3h.js} +6 -6
  100. package/dist/chunks/{promo-banner.DS0_aROF.js.map → promo-banner.BNXfyv3h.js.map} +1 -1
  101. package/dist/chunks/{radio-group.1z-IZvLU.js → radio-group.CUgib4vp.js} +4 -4
  102. package/dist/chunks/{radio-group.1z-IZvLU.js.map → radio-group.CUgib4vp.js.map} +1 -1
  103. package/dist/chunks/{search-bar.Bu12OC-l.js → search-bar.bMOGN8_E.js} +3 -3
  104. package/dist/chunks/{search-bar.Bu12OC-l.js.map → search-bar.bMOGN8_E.js.map} +1 -1
  105. package/dist/chunks/{secondary-nav.CLDlWCXX.js → secondary-nav.C9sm93do.js} +3 -3
  106. package/dist/chunks/{secondary-nav.CLDlWCXX.js.map → secondary-nav.C9sm93do.js.map} +1 -1
  107. package/dist/chunks/{segmented-control.BJIlas0M.js → segmented-control.BxCcPbKd.js} +2 -2
  108. package/dist/chunks/{segmented-control.BJIlas0M.js.map → segmented-control.BxCcPbKd.js.map} +1 -1
  109. package/dist/chunks/{selection-card-group.usHcqYKO.js → selection-card-group.0O3gmtoi.js} +11 -11
  110. package/dist/chunks/{selection-card-group.usHcqYKO.js.map → selection-card-group.0O3gmtoi.js.map} +1 -1
  111. package/dist/chunks/{sidepanel.C_ff-PEn.js → sidepanel.Dp6dKRnq.js} +2 -2
  112. package/dist/chunks/{sidepanel.C_ff-PEn.js.map → sidepanel.Dp6dKRnq.js.map} +1 -1
  113. package/dist/chunks/{structured-list-item.TC8mVrrA.js → structured-list-item.DrY71Ndc.js} +4 -4
  114. package/dist/chunks/{structured-list-item.TC8mVrrA.js.map → structured-list-item.DrY71Ndc.js.map} +1 -1
  115. package/dist/chunks/{summary-grid-item-custom.A11AzfH0.js → summary-grid-item-custom.CXs6AMS4.js} +4 -4
  116. package/dist/chunks/{summary-grid-item-custom.A11AzfH0.js.map → summary-grid-item-custom.CXs6AMS4.js.map} +1 -1
  117. package/dist/chunks/{tag.3fthBtwc.js → tag.CevG31iQ.js} +2 -2
  118. package/dist/chunks/{tag.3fthBtwc.js.map → tag.CevG31iQ.js.map} +1 -1
  119. package/dist/chunks/{textarea.CpXux8qX.js → textarea.DHbXaxdU.js} +2 -2
  120. package/dist/chunks/{textarea.CpXux8qX.js.map → textarea.DHbXaxdU.js.map} +1 -1
  121. package/dist/chunks/{timeline-item.Ca9RJt0z.js → timeline-item.C4HOsaEG.js} +4 -4
  122. package/dist/chunks/{timeline-item.Ca9RJt0z.js.map → timeline-item.C4HOsaEG.js.map} +1 -1
  123. package/dist/chunks/{toggle-button.BX_9vB0d.js → toggle-button.DK4H4sHT.js} +5 -5
  124. package/dist/chunks/toggle-button.DK4H4sHT.js.map +1 -0
  125. package/dist/chunks/{tooltip.R2sqydIE.js → tooltip.Bu8o7uyZ.js} +2 -2
  126. package/dist/chunks/{tooltip.R2sqydIE.js.map → tooltip.Bu8o7uyZ.js.map} +1 -1
  127. package/dist/chunks/{tutorial.Cc0tv59x.js → tutorial.BbQox1EZ.js} +4 -4
  128. package/dist/chunks/{tutorial.Cc0tv59x.js.map → tutorial.BbQox1EZ.js.map} +1 -1
  129. package/dist/chunks/{use-cached-selected-values.C24AnZ-w.js → use-cached-selected-values.a_5Iw6Dh.js} +258 -254
  130. package/dist/chunks/use-cached-selected-values.a_5Iw6Dh.js.map +1 -0
  131. package/dist/code-snippet.js +1 -1
  132. package/dist/dashboard-template.js +1 -1
  133. package/dist/dashed-underline.js +1 -1
  134. package/dist/data-grid-template.js +1 -1
  135. package/dist/data-grid.js +1 -1
  136. package/dist/date-picker.js +1 -1
  137. package/dist/date-range-picker.js +1 -1
  138. package/dist/dropdown.js +3 -3
  139. package/dist/file-uploader.js +1 -1
  140. package/dist/filter-bar.js +1 -1
  141. package/dist/focus-trap.js +1 -1
  142. package/dist/header.js +1 -1
  143. package/dist/index.js +44 -44
  144. package/dist/info-icon.js +1 -1
  145. package/dist/input-field-password.js +1 -1
  146. package/dist/input-field-phone-number.js +1 -1
  147. package/dist/input-field.js +1 -1
  148. package/dist/inspector.js +1 -1
  149. package/dist/internal.js +8 -8
  150. package/dist/layout.js +1 -1
  151. package/dist/menu.js +1 -1
  152. package/dist/modal-fullscreen.js +1 -1
  153. package/dist/modal.js +2 -2
  154. package/dist/pagination.js +1 -1
  155. package/dist/payment-method.js +1 -1
  156. package/dist/popover.js +1 -1
  157. package/dist/popper-container.js +1 -1
  158. package/dist/promo-banner.js +1 -1
  159. package/dist/radio-group.js +1 -1
  160. package/dist/search-bar.js +2 -2
  161. package/dist/secondary-nav.js +1 -1
  162. package/dist/segmented-control.js +1 -1
  163. package/dist/selection-card.js +1 -1
  164. package/dist/sidepanel.js +1 -1
  165. package/dist/structured-list.js +1 -1
  166. package/dist/styles/bento-dark.css +2 -1
  167. package/dist/styles/bento-light.css +2 -1
  168. package/dist/styles/bento.css +2 -1
  169. package/dist/styles/legacy.css +3 -0
  170. package/dist/styles/styleguide.css +2 -1
  171. package/dist/summary-grid.js +1 -1
  172. package/dist/tag.js +1 -1
  173. package/dist/textarea.js +1 -1
  174. package/dist/timeline.js +1 -1
  175. package/dist/tutorial.js +1 -1
  176. package/dist/web-types.json +71 -41
  177. package/package.json +5 -5
  178. package/dist/chunks/data-grid.DgxC3G4n.js.map +0 -1
  179. package/dist/chunks/dropdown.DWgwNFNB.js.map +0 -1
  180. package/dist/chunks/file-uploader.DT7GsNqI.js.map +0 -1
  181. package/dist/chunks/inspector.types.GOl_-hXm.js +0 -70
  182. package/dist/chunks/inspector.types.GOl_-hXm.js.map +0 -1
  183. package/dist/chunks/payment-method.BKr_q5cZ.js +0 -84
  184. package/dist/chunks/payment-method.BKr_q5cZ.js.map +0 -1
  185. package/dist/chunks/popover.C-LwO38X.js.map +0 -1
  186. package/dist/chunks/toggle-button.BX_9vB0d.js.map +0 -1
  187. package/dist/chunks/use-cached-selected-values.C24AnZ-w.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { computed as c, ref as O, onMounted as te, onUnmounted as _e, watch as se, defineComponent as $, toRef as G } from "vue";
1
+ import { computed as r, ref as O, onMounted as te, onUnmounted as _e, watch as se, defineComponent as $, toRef as G } from "vue";
2
2
  import { B as w } from "./typography.J1v_SPG3.js";
3
3
  import { B as ge } from "./loading-indicator.z8COalOc.js";
4
4
  import { B as ye } from "./empty-state.BnHTBgKG.js";
5
5
  import { u as Y } from "./i18n.BQkEbtPM.js";
6
6
  import { d as pe } from "./debounce.DUTu11PS.js";
7
- import { B as X } from "./checkbox.BEHpJDrF.js";
7
+ import { B as X } from "./checkbox.BPvnJrvd.js";
8
8
  import "./index.Cl4_42j5.js";
9
9
  import { B as Ce } from "./base-button.-gx_u8Bd.js";
10
10
  import { C as Se } from "./cross-small.BLUwtRB-.js";
@@ -15,69 +15,69 @@ import { d as Ee, e as Z } from "./button-actions.BovYBINL.js";
15
15
  import { o as Le } from "./resize.Bqks3WUm.js";
16
16
  import "../assets/use-cached-selected-values.css";
17
17
  const le = (t, e, s, l) => {
18
- const n = c(
18
+ const n = r(
19
19
  () => {
20
- var r, b;
21
- return !!((r = t.value) != null && r.length) && ((b = t.value) == null ? void 0 : b.length) === e.value.length;
20
+ var d, c;
21
+ return !!((d = t.value) != null && d.length) && ((c = t.value) == null ? void 0 : c.length) === e.value.length;
22
22
  }
23
- ), a = c(() => {
24
- var r;
25
- return t.value == null || t.value.length === 0 ? !1 : ((r = t.value) == null ? void 0 : r.length) !== e.value.length;
23
+ ), a = r(() => {
24
+ var d;
25
+ return t.value == null || t.value.length === 0 ? !1 : ((d = t.value) == null ? void 0 : d.length) !== e.value.length;
26
26
  });
27
27
  return {
28
28
  isAllSelected: n,
29
29
  isIndeterminate: a,
30
- toggleSelectAll: (r) => {
31
- r ? s() : l();
30
+ toggleSelectAll: (d) => {
31
+ d ? s() : l();
32
32
  }
33
33
  };
34
34
  };
35
35
  function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n }) {
36
- const a = O(null), o = O([]), r = O(0), b = O(0), m = O(0);
36
+ const a = O(null), o = O([]), d = O(0), c = O(0), b = O(0);
37
37
  let E;
38
- const p = c(() => {
39
- const _ = typeof s == "number" ? t.value.length * s : t.value.reduce((L, f, h) => L + s(h), 0), C = typeof s == "number" ? r.value * s : t.value.slice(0, r.value).reduce((L, f, h) => L + s(h), 0);
38
+ const C = r(() => {
39
+ const m = typeof s == "number" ? t.value.length * s : t.value.reduce((L, _, h) => L + s(h), 0), g = typeof s == "number" ? d.value * s : t.value.slice(0, d.value).reduce((L, _, h) => L + s(h), 0);
40
40
  return {
41
41
  style: {
42
- marginTop: `${C}px`,
43
- height: `${_ - C}px`
42
+ marginTop: `${g}px`,
43
+ height: `${m - g}px`
44
44
  }
45
45
  };
46
46
  }), S = () => {
47
- const _ = (n == null ? void 0 : n.value) ?? 0, C = Math.max(a.value.scrollTop - _, 0);
47
+ const m = (n == null ? void 0 : n.value) ?? 0, g = Math.max(a.value.scrollTop - m, 0);
48
48
  if (typeof s == "number")
49
- return Math.floor(C / s);
50
- let L = 0, f = 0;
49
+ return Math.floor(g / s);
50
+ let L = 0, _ = 0;
51
51
  for (let h = 0; h < t.value.length; h += 1) {
52
52
  const A = s(h);
53
- if (L += A, L >= C) {
54
- f = h;
53
+ if (L += A, L >= g) {
54
+ _ = h;
55
55
  break;
56
56
  }
57
57
  }
58
- return f;
58
+ return _;
59
59
  }, B = () => {
60
- if (m.value = a.value.clientHeight, typeof s == "number")
61
- return Math.ceil(m.value / s);
62
- const _ = r.value ?? 0;
63
- let C = 0, L = 0;
64
- for (let f = _; f < t.value.length; f += 1) {
65
- const h = s(f);
66
- if (C += h, L = f, C > m.value)
60
+ if (b.value = a.value.clientHeight, typeof s == "number")
61
+ return Math.ceil(b.value / s);
62
+ const m = d.value ?? 0;
63
+ let g = 0, L = 0;
64
+ for (let _ = m; _ < t.value.length; _ += 1) {
65
+ const h = s(_);
66
+ if (g += h, L = _, g > b.value)
67
67
  break;
68
68
  }
69
- return L - _;
69
+ return L - m;
70
70
  }, T = () => {
71
71
  if (a.value) {
72
- const _ = B();
73
- r.value = S(), b.value = Math.min(r.value + _ + l, t.value.length), o.value = t.value.slice(r.value, b.value);
72
+ const m = B();
73
+ d.value = S(), c.value = Math.min(d.value + m + l, t.value.length), o.value = t.value.slice(d.value, c.value);
74
74
  }
75
75
  }, R = () => {
76
76
  T();
77
77
  };
78
78
  e || (te(() => {
79
- a.value && (m.value = a.value.clientHeight, E = Le(a.value, ({ clientHeight: _ }) => {
80
- m.value = _, T();
79
+ a.value && (b.value = a.value.clientHeight, E = Le(a.value, ({ clientHeight: m }) => {
80
+ b.value = m, T();
81
81
  }), T());
82
82
  }), _e(() => {
83
83
  E == null || E.disconnect();
@@ -87,23 +87,23 @@ function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n })
87
87
  T();
88
88
  }
89
89
  ));
90
- const u = {
90
+ const f = {
91
91
  ref: a,
92
92
  style: { overflowY: "auto" }
93
93
  };
94
94
  return e ? {
95
95
  containerRef: a,
96
- containerProps: u,
96
+ containerProps: f,
97
97
  // eslint-disable-next-line @typescript-eslint/no-empty-function
98
98
  onScroll: () => {
99
99
  },
100
100
  list: t
101
101
  } : {
102
102
  containerRef: a,
103
- containerProps: u,
103
+ containerProps: f,
104
104
  onScroll: R,
105
105
  list: o,
106
- wrapperProps: p
106
+ wrapperProps: C
107
107
  };
108
108
  }
109
109
  var i = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(i || {}), P = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(P || {});
@@ -147,7 +147,7 @@ const Be = Re.exports, ke = $({
147
147
  },
148
148
  emits: [i.CLICK, i.ENTER, i.SPACE, i.TAB],
149
149
  setup(t, { emit: e }) {
150
- const s = c(() => ({
150
+ const s = r(() => ({
151
151
  "b-listbox-option--disabled": t.disabled,
152
152
  "b-listbox-option--selected": t.selected
153
153
  }));
@@ -231,7 +231,7 @@ const Ge = Fe.exports, Ue = $({
231
231
  setup(t, { emit: e }) {
232
232
  const s = (o) => {
233
233
  t.disabled || e(o, t.option);
234
- }, l = c(() => t.disabled ? !0 : null), n = c(() => t.selected ? !0 : null), a = c(() => t.disabled ? -1 : 0);
234
+ }, l = r(() => t.disabled ? !0 : null), n = r(() => t.selected ? !0 : null), a = r(() => t.disabled ? -1 : 0);
235
235
  return {
236
236
  // Values
237
237
  ariaDisabled: l,
@@ -266,14 +266,14 @@ var ze = function() {
266
266
  "5a5ff36a"
267
267
  );
268
268
  const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategories: s }, l) => {
269
- const n = c(
270
- () => s.value ? t.value.flatMap((u) => u.items) : t.value
271
- ), a = c(() => n.value.length - 1), o = O(0);
269
+ const n = r(
270
+ () => s.value ? t.value.flatMap((f) => f.items) : t.value
271
+ ), a = r(() => n.value.length - 1), o = O(0);
272
272
  te(() => {
273
- e && (o.value = t.value.findIndex((u) => !e(u)));
273
+ e && (o.value = t.value.findIndex((f) => !e(f)));
274
274
  });
275
- const r = (u) => !e || !!e && e(t.value[u]), b = (u) => !e || !!e && !e(t.value[u]), m = (u) => {
276
- switch (u) {
275
+ const d = (f) => !e || !!e && e(t.value[f]), c = (f) => !e || !!e && !e(t.value[f]), b = (f) => {
276
+ switch (f) {
277
277
  case "increase":
278
278
  o.value += 1;
279
279
  break;
@@ -281,29 +281,29 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
281
281
  o.value -= 1;
282
282
  break;
283
283
  }
284
- }, E = ({ edgeCaseItem: u, isItemBeforeEdgeCaseItem: _ }, C, L) => {
285
- o.value !== u && (_ ? b(u) && m(L) : (m(L), r(o.value) && C()), l(o.value));
286
- }, p = (u) => {
287
- var C;
288
- (C = u == null ? void 0 : u.detail) == null || C.preventDefault();
289
- const _ = o.value === a.value - 2;
284
+ }, E = ({ edgeCaseItem: f, isItemBeforeEdgeCaseItem: m }, g, L) => {
285
+ o.value !== f && (m ? c(f) && b(L) : (b(L), d(o.value) && g()), l(o.value));
286
+ }, C = (f) => {
287
+ var g;
288
+ (g = f == null ? void 0 : f.detail) == null || g.preventDefault();
289
+ const m = o.value === a.value - 2;
290
290
  E(
291
291
  {
292
- isItemBeforeEdgeCaseItem: _,
292
+ isItemBeforeEdgeCaseItem: m,
293
293
  edgeCaseItem: a.value
294
294
  },
295
- p,
295
+ C,
296
296
  "increase"
297
297
  /* INCREASE */
298
298
  );
299
- }, S = (u) => {
300
- var C;
301
- (C = u == null ? void 0 : u.detail) == null || C.preventDefault();
302
- const _ = o.value === 1;
299
+ }, S = (f) => {
300
+ var g;
301
+ (g = f == null ? void 0 : f.detail) == null || g.preventDefault();
302
+ const m = o.value === 1;
303
303
  E(
304
304
  {
305
305
  edgeCaseItem: 0,
306
- isItemBeforeEdgeCaseItem: _
306
+ isItemBeforeEdgeCaseItem: m
307
307
  },
308
308
  S,
309
309
  "decrease"
@@ -312,15 +312,15 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
312
312
  };
313
313
  return {
314
314
  moveToFirstElement: () => {
315
- o.value = 0, r(o.value) ? p() : l(o.value);
315
+ o.value = 0, d(o.value) ? C() : l(o.value);
316
316
  },
317
317
  moveToLastElement: () => {
318
- o.value = a.value, r(o.value) ? S() : l(o.value);
318
+ o.value = a.value, d(o.value) ? S() : l(o.value);
319
319
  },
320
- moveToNextElement: p,
320
+ moveToNextElement: C,
321
321
  moveToPreviousElement: S,
322
- setListboxFocusedIndex: (u) => {
323
- o.value = u;
322
+ setListboxFocusedIndex: (f) => {
323
+ o.value = f;
324
324
  }
325
325
  };
326
326
  }, We = $({
@@ -372,17 +372,20 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
372
372
  },
373
373
  emits: [i.SELECT, i.ENTER, i.SPACE, i.TAB],
374
374
  setup(t, { emit: e, expose: s, slots: l }) {
375
- const n = O([]), a = c(() => {
376
- var u;
377
- return !!((u = t.selectedValue) != null && u.length) && t.selectedValue.at(0);
378
- }), o = c(() => !!t.items.some(({ items: u }) => !!u)), r = (u) => (_) => {
379
- e(u, [_]);
380
- }, b = (u) => n.value[u].$el.focus(), {
381
- moveToNextElement: m,
382
- moveToPreviousElement: E,
383
- moveToFirstElement: p,
384
- moveToLastElement: S,
385
- setListboxFocusedIndex: B
375
+ const n = O(null), a = O([]), o = r(() => {
376
+ var m;
377
+ return !!((m = t.selectedValue) != null && m.length) && t.selectedValue.at(0);
378
+ }), d = r(() => !!t.items.some(({ items: m }) => !!m)), c = (m) => (g) => {
379
+ e(m, [g]);
380
+ }, b = (m) => {
381
+ var g;
382
+ (g = n.value.querySelectorAll('[role="option"]')[m]) == null || g.focus();
383
+ }, {
384
+ moveToNextElement: E,
385
+ moveToPreviousElement: C,
386
+ moveToFirstElement: S,
387
+ moveToLastElement: B,
388
+ setListboxFocusedIndex: T
386
389
  } = ne(
387
390
  {
388
391
  items: G(t, "items"),
@@ -390,52 +393,53 @@ const qe = Ye.exports, ne = ({ items: t, isOptionDisabled: e, hasStaticCategorie
390
393
  hasStaticCategories: G(t, "staticCategories")
391
394
  },
392
395
  b
393
- ), T = {
394
- [k.ARROW_UP]: E,
395
- [k.ARROW_DOWN]: m,
396
- [k.HOME]: p,
397
- [k.END]: S
398
- }, R = {
399
- [i.SELECT]: r(i.SELECT),
400
- [i.SPACE]: r(i.SPACE),
401
- [i.TAB]: r(i.TAB),
402
- [i.ENTER]: r(i.ENTER)
396
+ ), R = {
397
+ [k.ARROW_UP]: C,
398
+ [k.ARROW_DOWN]: E,
399
+ [k.HOME]: S,
400
+ [k.END]: B
401
+ }, f = {
402
+ [i.SELECT]: c(i.SELECT),
403
+ [i.SPACE]: c(i.SPACE),
404
+ [i.TAB]: c(i.TAB),
405
+ [i.ENTER]: c(i.ENTER)
403
406
  };
404
407
  return s({
405
408
  /**
406
409
  * Reference for a single listbox item.
407
410
  * Required for keyboard navigation in dropdown as $children is removed in vue@3
408
411
  */
409
- listboxItemRef: n,
412
+ listboxItemRef: a,
410
413
  /**
411
414
  * Method to set the index of the item to be focused on
412
415
  * Used for focus management to be kept in-sync with parent e.g. dropdowns
413
416
  */
414
- setListboxFocusedIndex: B
417
+ setListboxFocusedIndex: T
415
418
  }), {
416
419
  // Enums
417
420
  BentoListboxEvent: i,
418
421
  // Values
419
- listboxItemRef: n,
420
- selectedItem: a,
422
+ listboxRef: n,
423
+ listboxItemRef: a,
424
+ selectedItem: o,
421
425
  slots: l,
422
426
  // Computed
423
- hasCategories: o,
427
+ hasCategories: d,
424
428
  // Methods
425
- onOptionSelected: r,
429
+ onOptionSelected: c,
426
430
  // Keyboard navigation
427
- listboxListeners: T,
428
- listboxOptionListeners: R
431
+ listboxListeners: R,
432
+ listboxOptionListeners: f
429
433
  };
430
434
  }
431
435
  });
432
436
  var Ke = function() {
433
437
  var e = this, s = e._self._c;
434
- return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
438
+ return e._self._setupProxy, s("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef" }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
435
439
  return s("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(n) {
436
440
  return s("bento-listbox-single-select-option", e._g({ key: n.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: n, disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null, selected: n.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
437
- return { key: o, fn: function(r) {
438
- return [e._t(o, null, null, r)];
441
+ return { key: o, fn: function(d) {
442
+ return [e._t(o, null, null, d)];
439
443
  } };
440
444
  })], null, !0) }, e.listboxOptionListeners));
441
445
  }), 1);
@@ -512,64 +516,64 @@ const Je = {
512
516
  },
513
517
  emits: [z.SELECT_CATEGORY, z.UNSELECT_CATEGORY],
514
518
  setup(t, { emit: e }) {
515
- const s = O(!1), { t: l } = Y(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, a = c(
516
- () => t.category.items.every((f) => n(f))
517
- ), o = G(t, "staticCategories"), r = c(() => s.value || t.staticCategories), b = c(() => ({
519
+ const s = O(!1), { t: l } = Y(), n = (_) => t.isOptionDisabled ? t.isOptionDisabled(_) : !1, a = r(
520
+ () => t.category.items.every((_) => n(_))
521
+ ), o = G(t, "staticCategories"), d = r(() => s.value || t.staticCategories), c = r(() => ({
518
522
  [`b-listbox-multi-select-category--${j.DISABLED}`]: a.value,
519
523
  [`b-listbox-multi-select-category--${j.STATIC_CATEGORY}`]: t.staticCategories
520
- })), m = (f) => {
521
- f.preventDefault(), s.value = !s.value;
522
- }, E = (f) => {
524
+ })), b = (_) => {
525
+ _.preventDefault(), s.value = !s.value;
526
+ }, E = (_) => {
523
527
  var F;
524
- const h = n(f), A = ((F = t.selectedItemsList) == null ? void 0 : F.includes(f.value)) || !1;
528
+ const h = n(_), A = ((F = t.selectedItemsList) == null ? void 0 : F.includes(_.value)) || !1;
525
529
  return { isDisabled: h, isPreSelected: A };
526
- }, p = c(
527
- () => t.category.items.filter((f) => {
528
- const { isDisabled: h, isPreSelected: A } = E(f);
530
+ }, C = r(
531
+ () => t.category.items.filter((_) => {
532
+ const { isDisabled: h, isPreSelected: A } = E(_);
529
533
  return h && A || !h;
530
534
  })
531
- ), S = c(
535
+ ), S = r(
532
536
  () => {
533
- var f;
534
- return (f = p.value) == null ? void 0 : f.filter(
537
+ var _;
538
+ return (_ = C.value) == null ? void 0 : _.filter(
535
539
  ({ value: h }) => {
536
540
  var A;
537
541
  return (A = t.selectedItemsList) == null ? void 0 : A.includes(h);
538
542
  }
539
543
  );
540
544
  }
541
- ), B = c(() => {
542
- const f = s.value ? "categoryOpened" : "categoryClosed";
543
- return l(f, { category: t.category.label });
544
- }), T = c(
545
+ ), B = r(() => {
546
+ const _ = s.value ? "categoryOpened" : "categoryClosed";
547
+ return l(_, { category: t.category.label });
548
+ }), T = r(
545
549
  () => ({
546
550
  el: "span",
547
551
  variant: t.staticCategories ? "caption" : "body"
548
552
  })
549
553
  ), R = () => {
550
554
  e(z.SELECT_CATEGORY);
551
- }, u = () => {
555
+ }, f = () => {
552
556
  e(z.UNSELECT_CATEGORY);
553
- }, { isAllSelected: _, isIndeterminate: C, toggleSelectAll: L } = le(
557
+ }, { isAllSelected: m, isIndeterminate: g, toggleSelectAll: L } = le(
554
558
  S,
555
- p,
559
+ C,
556
560
  R,
557
- u
561
+ f
558
562
  );
559
563
  return {
560
564
  // Values
561
565
  chevronTitle: B,
562
- conditionalClass: b,
566
+ conditionalClass: c,
563
567
  hasAllPropsDisabled: a,
564
568
  isOpen: s,
565
- isAllSelected: _,
566
- isIndeterminate: C,
569
+ isAllSelected: m,
570
+ isIndeterminate: g,
567
571
  isStaticCategory: o,
568
572
  // Computed
569
- showItemChildren: r,
573
+ showItemChildren: d,
570
574
  categoryLabelProps: T,
571
575
  // Methods
572
- toggleOpen: m,
576
+ toggleOpen: b,
573
577
  toggleSelectAll: L
574
578
  };
575
579
  }
@@ -658,19 +662,19 @@ const lt = $({
658
662
  N.UNSELECT_CATEGORY
659
663
  ],
660
664
  setup(t, { emit: e }) {
661
- const s = (b) => {
662
- e(N.TOGGLE_CHECKBOX_SELECTION, b);
663
- }, l = (b) => !!b.items, n = (b) => {
664
- const m = t.isMultiLevel && t.searching;
665
- return b.description && (!t.isMultiLevel || m);
666
- }, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value), o = (b, m) => {
667
- if (l(m))
668
- return e(b ? N.SELECT_CATEGORY : N.UNSELECT_CATEGORY, m);
669
- s(m.value);
665
+ const s = (c) => {
666
+ e(N.TOGGLE_CHECKBOX_SELECTION, c);
667
+ }, l = (c) => !!c.items, n = (c) => {
668
+ const b = t.isMultiLevel && t.searching;
669
+ return c.description && (!t.isMultiLevel || b);
670
+ }, a = (c) => c.items ? !!c.items.find((b) => t.selectedItemsList.includes(b.value)) : t.selectedItemsList.includes(c.value), o = (c, b) => {
671
+ if (l(b))
672
+ return e(c ? N.SELECT_CATEGORY : N.UNSELECT_CATEGORY, b);
673
+ s(b.value);
670
674
  };
671
675
  return {
672
676
  // Values
673
- conditionalClasses: c(() => ({
677
+ conditionalClasses: r(() => ({
674
678
  "b-listbox-multi-select-options__static-category-option": t.staticCategories,
675
679
  "b-listbox-multi-select-options__category-option": t.categoryItems
676
680
  })),
@@ -766,7 +770,7 @@ var dt = function() {
766
770
  null,
767
771
  "55fb08d8"
768
772
  );
769
- const vt = mt.exports, ft = {
773
+ const ft = mt.exports, vt = {
770
774
  "en-US": {
771
775
  allSelected: "All selected ({total})",
772
776
  numberOfTotalSelected: "{number} of {total} selected",
@@ -774,10 +778,10 @@ const vt = mt.exports, ft = {
774
778
  selectAll: "Select all ({total})"
775
779
  }
776
780
  }, _t = (t) => {
777
- const e = c(() => {
781
+ const e = r(() => {
778
782
  var l;
779
783
  return !!((l = t.value) != null && l.find(({ items: n }) => !!n));
780
- }), s = c(() => {
784
+ }), s = r(() => {
781
785
  var l;
782
786
  return e.value ? (l = t.value) == null ? void 0 : l.reduce((n, a) => (a.items ? n.push(...a.items.flat()) : n.push(a), n), []) : t.value;
783
787
  });
@@ -786,14 +790,14 @@ const vt = mt.exports, ft = {
786
790
  flattenedItemsList: s
787
791
  };
788
792
  }, gt = $({
789
- i18n: { messages: ft },
793
+ i18n: { messages: vt },
790
794
  name: "bento-listbox-multi-select",
791
795
  components: {
792
796
  BentoCheckbox: X,
793
797
  BentoListboxOption: q,
794
798
  BentoTypography: w,
795
799
  ListboxMultiSelectOptions: it,
796
- ListboxMultiSelectChips: vt
800
+ ListboxMultiSelectChips: ft
797
801
  },
798
802
  directives: { BentoKeyboardNavigationDirective: J },
799
803
  props: {
@@ -857,98 +861,98 @@ const vt = mt.exports, ft = {
857
861
  },
858
862
  emits: [i.SELECT],
859
863
  setup(t, { emit: e, slots: s }) {
860
- const { t: l } = Y(), n = O(null), a = O(null), o = O(null), r = c(
861
- () => t.selectedValues.map(({ value: d }) => d)
862
- ), { isMultiLevelSelect: b, flattenedItemsList: m } = _t(G(t, "items")), E = (d) => {
864
+ const { t: l } = Y(), n = O(null), a = O(null), o = O(null), d = r(
865
+ () => t.selectedValues.map(({ value: u }) => u)
866
+ ), { isMultiLevelSelect: c, flattenedItemsList: b } = _t(G(t, "items")), E = (u) => {
863
867
  var x;
864
- const v = t.isOptionDisabled(d), g = ((x = r.value) == null ? void 0 : x.includes(d.value)) || !1;
865
- return { isDisabled: v, isPreSelected: g };
866
- }, p = c(() => {
867
- if (t.searching && b)
868
+ const v = t.isOptionDisabled(u), y = ((x = d.value) == null ? void 0 : x.includes(u.value)) || !1;
869
+ return { isDisabled: v, isPreSelected: y };
870
+ }, C = r(() => {
871
+ if (t.searching && c)
868
872
  return t.items;
869
- const d = m.value.filter((v) => {
870
- const { isDisabled: g, isPreSelected: x } = E(v);
871
- return g && x || !g;
873
+ const u = b.value.filter((v) => {
874
+ const { isDisabled: y, isPreSelected: x } = E(v);
875
+ return y && x || !y;
872
876
  });
873
877
  return t.selectedValues.forEach((v) => {
874
- d.find((g) => g.value === v.value) || d.push(v);
875
- }), d;
876
- }), S = c(
878
+ u.find((y) => y.value === v.value) || u.push(v);
879
+ }), u;
880
+ }), S = r(
877
881
  () => {
878
- var d;
879
- return (d = p.value) == null ? void 0 : d.filter((v) => {
880
- var g;
881
- return v.items && b.value && t.searching ? v.items.filter(
882
- (y) => (t.selectedValues ?? []).includes(y.value)
883
- ).length === v.items.length : (g = r.value) == null ? void 0 : g.includes(v.value);
882
+ var u;
883
+ return (u = C.value) == null ? void 0 : u.filter((v) => {
884
+ var y;
885
+ return v.items && c.value && t.searching ? v.items.filter(
886
+ (p) => (t.selectedValues ?? []).includes(p.value)
887
+ ).length === v.items.length : (y = d.value) == null ? void 0 : y.includes(v.value);
884
888
  });
885
889
  }
886
- ), B = () => b.value && !t.searching ? m.value.length : t.items.length, T = c(() => {
890
+ ), B = () => c.value && !t.searching ? b.value.length : t.items.length, T = r(() => {
887
891
  var x;
888
- const d = p.value.length, v = B(), g = ((x = S.value) == null ? void 0 : x.length) || 0;
889
- return g === 0 ? l("selectAll", { total: d }) : g === v ? l("allSelected", { total: v }) : g <= v ? l("numberOfTotalSelected", { number: g, total: v }) : l("numbersSelected", { number: g });
890
- }), R = (d) => {
892
+ const u = C.value.length, v = B(), y = ((x = S.value) == null ? void 0 : x.length) || 0;
893
+ return y === 0 ? l("selectAll", { total: u }) : y === v ? l("allSelected", { total: v }) : y <= v ? l("numberOfTotalSelected", { number: y, total: v }) : l("numbersSelected", { number: y });
894
+ }), R = (u) => {
891
895
  const v = (x) => {
892
- const { isDisabled: y, isPreSelected: M } = E(x);
893
- return y && M || !y;
894
- }, g = d.filter(v).filter((x) => !r.value.includes(x.value));
895
- e(i.SELECT, [...t.selectedValues, ...g]);
896
- }, u = (d) => {
897
- const v = (y) => {
898
- const { isDisabled: M, isPreSelected: fe } = E(y);
899
- return !(M && fe);
900
- }, g = d.filter(v).map(({ value: y }) => y), x = t.selectedValues.filter((y) => !(g != null && g.includes(y.value)));
896
+ const { isDisabled: p, isPreSelected: M } = E(x);
897
+ return p && M || !p;
898
+ }, y = u.filter(v).filter((x) => !d.value.includes(x.value));
899
+ e(i.SELECT, [...t.selectedValues, ...y]);
900
+ }, f = (u) => {
901
+ const v = (p) => {
902
+ const { isDisabled: M, isPreSelected: ve } = E(p);
903
+ return !(M && ve);
904
+ }, y = u.filter(v).map(({ value: p }) => p), x = t.selectedValues.filter((p) => !(y != null && y.includes(p.value)));
901
905
  e(i.SELECT, x);
902
- }, _ = () => {
903
- R(m.value);
904
- }, C = () => {
905
- u(m.value);
906
- }, { isAllSelected: L, isIndeterminate: f, toggleSelectAll: h } = le(
906
+ }, m = () => {
907
+ R(b.value);
908
+ }, g = () => {
909
+ f(b.value);
910
+ }, { isAllSelected: L, isIndeterminate: _, toggleSelectAll: h } = le(
907
911
  S,
908
- p,
909
- _,
910
- C
911
- ), A = (d) => {
912
- R(d.items);
913
- }, F = (d) => {
914
- u(d.items);
915
- }, W = (d, v) => {
916
- let g = !1;
917
- const x = t.selectedValues.filter(({ value: y }) => v.value === y ? (g = !0, !1) : !0);
918
- g || x.push(v), e(d, x);
919
- }, V = c(() => {
920
- if (!b.value)
912
+ C,
913
+ m,
914
+ g
915
+ ), A = (u) => {
916
+ R(u.items);
917
+ }, F = (u) => {
918
+ f(u.items);
919
+ }, W = (u, v) => {
920
+ let y = !1;
921
+ const x = t.selectedValues.filter(({ value: p }) => v.value === p ? (y = !0, !1) : !0);
922
+ y || x.push(v), e(u, x);
923
+ }, V = r(() => {
924
+ if (!c.value)
921
925
  return t.selectedValues;
922
- const d = (y) => r.value.includes(y.value), v = (y) => !t.staticCategories && y.every((M) => d(M));
926
+ const u = (p) => d.value.includes(p.value), v = (p) => !t.staticCategories && p.every((M) => u(M));
923
927
  return t.items.flatMap(
924
- (y) => y.items && !v(y.items) ? y.items : y
925
- ).filter((y) => y.items ? !0 : d(y));
926
- }), K = c(() => {
927
- var g, x, y, M;
928
- const d = ["automatic", "button"].includes(t.lazyLoadType), v = ((g = t.selectedValues) == null ? void 0 : g.length) > 0 && ((x = S.value) == null ? void 0 : x.length) !== ((y = m.value) == null ? void 0 : y.length);
929
- return d && t.hasMoreItems ? !!((M = t.selectedValues) != null && M.length) : v;
930
- }), I = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), U = c(
928
+ (p) => p.items && !v(p.items) ? p.items : p
929
+ ).filter((p) => p.items ? !0 : u(p));
930
+ }), K = r(() => {
931
+ var y, x, p, M;
932
+ const u = ["automatic", "button"].includes(t.lazyLoadType), v = ((y = t.selectedValues) == null ? void 0 : y.length) > 0 && ((x = S.value) == null ? void 0 : x.length) !== ((p = b.value) == null ? void 0 : p.length);
933
+ return u && t.hasMoreItems ? !!((M = t.selectedValues) != null && M.length) : v;
934
+ }), I = r(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), U = r(
931
935
  () => n.value ? [n.value] : []
932
- ), ae = c(
936
+ ), ae = r(
933
937
  () => {
934
- var d, v;
935
- return (v = (d = a.value) == null ? void 0 : d.$children) != null && v.length ? a.value.$children : [];
938
+ var u, v;
939
+ return (v = (u = a.value) == null ? void 0 : u.$children) != null && v.length ? a.value.$children : [];
936
940
  }
937
- ), oe = c(
941
+ ), oe = r(
938
942
  () => {
939
- var d, v;
940
- return (v = (d = o.value) == null ? void 0 : d.$children) != null && v.length ? o.value.$children : [];
943
+ var u, v;
944
+ return (v = (u = o.value) == null ? void 0 : u.$children) != null && v.length ? o.value.$children : [];
941
945
  }
942
- ), ie = c(() => ({ label: T, value: L })), ce = c(() => [
946
+ ), ie = r(() => ({ label: T, value: L })), ce = r(() => [
943
947
  ie,
944
948
  ...V.value,
945
- ...m.value
946
- ]), re = (d) => {
949
+ ...b.value
950
+ ]), re = (u) => {
947
951
  [
948
952
  ...U.value,
949
953
  ...ae.value,
950
954
  ...oe.value
951
- ][d].$el.focus();
955
+ ][u].$el.focus();
952
956
  }, { moveToNextElement: ue, moveToPreviousElement: de, moveToFirstElement: be, moveToLastElement: me } = ne(
953
957
  {
954
958
  items: O(ce),
@@ -956,9 +960,9 @@ const vt = mt.exports, ft = {
956
960
  hasStaticCategories: G(t, "staticCategories")
957
961
  },
958
962
  re
959
- ), ve = {
960
- [k.ARROW_UP]: (d) => de(d),
961
- [k.ARROW_DOWN]: (d) => ue(d),
963
+ ), fe = {
964
+ [k.ARROW_UP]: (u) => de(u),
965
+ [k.ARROW_DOWN]: (u) => ue(u),
962
966
  [k.HOME]: be,
963
967
  [k.END]: me
964
968
  };
@@ -970,10 +974,10 @@ const vt = mt.exports, ft = {
970
974
  // Values
971
975
  isAllSelected: L,
972
976
  showSelectedItems: K,
973
- isIndeterminate: f,
974
- isMultiLevelSelect: b,
975
- flattenedItemsList: m,
976
- selectedItemsList: r,
977
+ isIndeterminate: _,
978
+ isMultiLevelSelect: c,
979
+ flattenedItemsList: b,
980
+ selectedItemsList: d,
977
981
  selectAllCheckboxText: T,
978
982
  selectedOptions: V,
979
983
  showSelectAllCheckbox: I,
@@ -986,7 +990,7 @@ const vt = mt.exports, ft = {
986
990
  toggleSelectAll: h,
987
991
  unselectAllCategory: F,
988
992
  // Events
989
- listboxListeners: ve
993
+ listboxListeners: fe
990
994
  };
991
995
  }
992
996
  });
@@ -1144,61 +1148,61 @@ const ee = Ct.exports, St = {
1144
1148
  i.TAB
1145
1149
  ],
1146
1150
  setup(t, { emit: e, slots: s }) {
1147
- const l = O([]), n = G(t, "items"), { t: a } = Y(), o = c(() => t.lazyLoadType !== P.AUTOMATIC), r = c(() => t.lazyLoadType === P.AUTOMATIC), b = () => {
1151
+ const l = O([]), n = G(t, "items"), { t: a } = Y(), o = r(() => t.lazyLoadType !== P.AUTOMATIC), d = r(() => t.lazyLoadType === P.AUTOMATIC), c = () => {
1148
1152
  var I;
1149
1153
  return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((I = t == null ? void 0 : t.virtualScroll) != null && I.itemHeight) ? t.virtualScroll.itemHeight : ht;
1150
1154
  }, {
1151
- containerRef: m,
1155
+ containerRef: b,
1152
1156
  containerProps: E,
1153
- onScroll: p,
1157
+ onScroll: C,
1154
1158
  list: S,
1155
1159
  wrapperProps: B
1156
1160
  } = Oe(n, {
1157
- itemHeight: b(),
1161
+ itemHeight: c(),
1158
1162
  // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1159
1163
  disabled: (t == null ? void 0 : t.multiple) || (t == null ? void 0 : t.virtualScroll) === !1 || (t == null ? void 0 : t.lazyLoadType) !== "none"
1160
- }), T = c(
1164
+ }), T = r(
1161
1165
  () => o.value ? "true" : void 0
1162
- ), R = c(
1166
+ ), R = r(
1163
1167
  () => o.value && t.loading ? "true" : "false"
1164
- ), u = c(
1168
+ ), f = r(
1165
1169
  () => o.value ? "polite" : void 0
1166
- ), _ = (I) => (U) => {
1170
+ ), m = (I) => (U) => {
1167
1171
  e(I, U);
1168
- }, C = () => {
1172
+ }, g = () => {
1169
1173
  e(i.SHOW_MORE);
1170
1174
  }, L = pe(() => {
1171
- const I = m.value;
1175
+ const I = b.value;
1172
1176
  if (!I)
1173
1177
  return;
1174
1178
  const U = Math.round(I.scrollTop) + I.clientHeight >= I.scrollHeight;
1175
- t.hasMoreItems && U && !t.loading && C();
1176
- }), f = () => {
1177
- r.value ? L() : p();
1178
- }, h = c(() => {
1179
+ t.hasMoreItems && U && !t.loading && g();
1180
+ }), _ = () => {
1181
+ d.value ? L() : C();
1182
+ }, h = r(() => {
1179
1183
  var I;
1180
1184
  return ((I = t.items) == null ? void 0 : I.length) === 0;
1181
- }), A = c(
1185
+ }), A = r(
1182
1186
  () => t.lazyLoadType === P.BUTTON && t.hasMoreItems
1183
- ), F = c(
1187
+ ), F = r(
1184
1188
  () => t.loading ? Z.LOADING : Z.START
1185
- ), W = c(() => t.loading ? a("loading") : a("showMore")), V = c(() => ({
1189
+ ), W = r(() => t.loading ? a("loading") : a("showMore")), V = r(() => ({
1186
1190
  ...t.emptyState,
1187
1191
  variant: "condensed"
1188
1192
  })), K = {
1189
- [i.SELECT]: _(i.SELECT),
1190
- [i.SPACE]: _(i.SPACE),
1191
- [i.TAB]: _(i.TAB),
1192
- [i.ENTER]: _(i.ENTER)
1193
+ [i.SELECT]: m(i.SELECT),
1194
+ [i.SPACE]: m(i.SPACE),
1195
+ [i.TAB]: m(i.TAB),
1196
+ [i.ENTER]: m(i.ENTER)
1193
1197
  };
1194
1198
  return {
1195
1199
  // Refs
1196
- listboxRef: m,
1200
+ listboxRef: b,
1197
1201
  listboxItemRef: l,
1198
1202
  // a11y
1199
1203
  ariaAtomic: T,
1200
1204
  ariaBusy: R,
1201
- ariaLive: u,
1205
+ ariaLive: f,
1202
1206
  // Values
1203
1207
  containerProps: E,
1204
1208
  isSearchResultEmpty: h,
@@ -1213,9 +1217,9 @@ const ee = Ct.exports, St = {
1213
1217
  BentoKeyboardNavigationKeyDownEvent: k,
1214
1218
  BentoListboxEvent: i,
1215
1219
  // Methods
1216
- onListboxContainerScroll: f,
1217
- onOptionSelected: _,
1218
- emitShowMore: C,
1220
+ onListboxContainerScroll: _,
1221
+ onOptionSelected: m,
1222
+ emitShowMore: g,
1219
1223
  listboxListeners: K
1220
1224
  };
1221
1225
  }
@@ -1254,29 +1258,29 @@ const zt = Ot.exports, H = (t, e) => {
1254
1258
  }
1255
1259
  return null;
1256
1260
  }, Vt = (t, e, s) => {
1257
- const l = O([]), n = O(), a = (b) => {
1258
- n.value = s.value ? b.map(({ value: m }) => m) : b[0].value;
1259
- }, o = (b) => {
1260
- l.value = b, a(b);
1261
- }, r = () => {
1261
+ const l = O([]), n = O(), a = (c) => {
1262
+ n.value = s.value ? c.map(({ value: b }) => b) : c[0].value;
1263
+ }, o = (c) => {
1264
+ l.value = c, a(c);
1265
+ }, d = () => {
1262
1266
  l.value = [], n.value = null;
1263
1267
  };
1264
1268
  return se(
1265
1269
  () => e.value,
1266
1270
  () => {
1267
1271
  if (!e.value) {
1268
- r();
1272
+ d();
1269
1273
  return;
1270
1274
  }
1271
- const b = !Array.isArray(e.value), m = [...l.value];
1272
- r();
1273
- const E = (p) => {
1274
- let S = H(t.value, p);
1275
- S || (S = H(m, p)), S || (S = { value: p, label: p.toString() }), l.value.push(S);
1275
+ const c = !Array.isArray(e.value), b = [...l.value];
1276
+ d();
1277
+ const E = (C) => {
1278
+ let S = H(t.value, C);
1279
+ S || (S = H(b, C)), S || (S = { value: C, label: C.toString() }), l.value.push(S);
1276
1280
  };
1277
- if (b) {
1278
- const p = e.value;
1279
- E(p), a(l.value);
1281
+ if (c) {
1282
+ const C = e.value;
1283
+ E(C), a(l.value);
1280
1284
  return;
1281
1285
  }
1282
1286
  e.value.forEach(E), a(l.value);
@@ -1287,7 +1291,7 @@ const zt = Ot.exports, H = (t, e) => {
1287
1291
  cachedSelectedListboxOptions: l,
1288
1292
  cachedListboxSelectedValues: n,
1289
1293
  // Methods
1290
- resetCache: r,
1294
+ resetCache: d,
1291
1295
  setCachedValues: o
1292
1296
  };
1293
1297
  };
@@ -1298,4 +1302,4 @@ export {
1298
1302
  Vt as c,
1299
1303
  _t as u
1300
1304
  };
1301
- //# sourceMappingURL=use-cached-selected-values.C24AnZ-w.js.map
1305
+ //# sourceMappingURL=use-cached-selected-values.a_5Iw6Dh.js.map