@adyen/bento-vue2 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/README.md +60 -29
  2. package/dist/@types/components.d.ts +12 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
  5. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
  6. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
  7. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
  8. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
  9. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
  10. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
  11. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -1
  14. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
  15. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
  16. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
  17. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
  19. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
  21. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
  23. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
  25. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
  26. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
  27. package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
  28. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
  29. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
  30. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
  32. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
  33. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
  34. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
  35. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +2 -1
  36. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
  37. package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
  38. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
  39. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
  40. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +43 -0
  41. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
  43. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
  44. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  45. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
  46. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  47. package/dist/@types/packages/vue2/src/types/utils-events.d.ts +0 -1
  48. package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
  49. package/dist/accordion.js +1 -1
  50. package/dist/alert.js +3 -3
  51. package/dist/assets/arrow-left.css +1 -0
  52. package/dist/assets/base-button.css +1 -1
  53. package/dist/assets/button.css +1 -1
  54. package/dist/assets/calendar.css +1 -1
  55. package/dist/assets/checkbox.css +1 -1
  56. package/dist/assets/controls-group.css +1 -1
  57. package/dist/assets/copy.css +1 -1
  58. package/dist/assets/dropdown-default-textbox.css +1 -1
  59. package/dist/assets/dropdown.css +1 -1
  60. package/dist/assets/error-message.css +1 -1
  61. package/dist/assets/footer-actions.css +1 -0
  62. package/dist/assets/grid-layout.css +1 -1
  63. package/dist/assets/index.css +1 -1
  64. package/dist/assets/index10.css +1 -1
  65. package/dist/assets/index11.css +1 -1
  66. package/dist/assets/index12.css +1 -1
  67. package/dist/assets/index13.css +1 -1
  68. package/dist/assets/index14.css +1 -1
  69. package/dist/assets/index15.css +1 -1
  70. package/dist/assets/index16.css +1 -1
  71. package/dist/assets/index17.css +1 -1
  72. package/dist/assets/index18.css +1 -1
  73. package/dist/assets/index19.css +1 -1
  74. package/dist/assets/index2.css +1 -1
  75. package/dist/assets/index20.css +1 -1
  76. package/dist/assets/index21.css +1 -1
  77. package/dist/assets/index22.css +1 -1
  78. package/dist/assets/index23.css +1 -1
  79. package/dist/assets/index24.css +1 -1
  80. package/dist/assets/index25.css +1 -1
  81. package/dist/assets/index26.css +1 -1
  82. package/dist/assets/index27.css +1 -1
  83. package/dist/assets/index28.css +1 -1
  84. package/dist/assets/index29.css +1 -1
  85. package/dist/assets/index3.css +1 -1
  86. package/dist/assets/index30.css +1 -1
  87. package/dist/assets/index31.css +1 -1
  88. package/dist/assets/index32.css +1 -1
  89. package/dist/assets/index33.css +1 -1
  90. package/dist/assets/index34.css +1 -1
  91. package/dist/assets/index35.css +1 -1
  92. package/dist/assets/index36.css +1 -1
  93. package/dist/assets/index37.css +1 -1
  94. package/dist/assets/index38.css +1 -1
  95. package/dist/assets/index39.css +1 -1
  96. package/dist/assets/index4.css +1 -1
  97. package/dist/assets/index40.css +1 -0
  98. package/dist/assets/index41.css +1 -0
  99. package/dist/assets/index5.css +1 -1
  100. package/dist/assets/index6.css +1 -1
  101. package/dist/assets/index7.css +1 -1
  102. package/dist/assets/index8.css +1 -1
  103. package/dist/assets/index9.css +1 -1
  104. package/dist/assets/listbox-option-tag.css +1 -1
  105. package/dist/assets/listbox.css +1 -1
  106. package/dist/assets/loading-button.css +1 -1
  107. package/dist/assets/tooltip.css +1 -1
  108. package/dist/avatar-image.js +1 -1
  109. package/dist/badge.js +1 -1
  110. package/dist/button.js +3 -3
  111. package/dist/card.js +3 -3
  112. package/dist/checkbox.js +93 -84
  113. package/dist/checkbox.js.map +1 -1
  114. package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
  115. package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
  116. package/dist/chunks/{base-button.d4487ac9.js → base-button.98379576.js} +2 -2
  117. package/dist/chunks/{base-button.d4487ac9.js.map → base-button.98379576.js.map} +1 -1
  118. package/dist/chunks/{button-actions.cf73ed47.js → button-actions.bd397c79.js} +2 -2
  119. package/dist/chunks/{button-actions.cf73ed47.js.map → button-actions.bd397c79.js.map} +1 -1
  120. package/dist/chunks/{button.c27a7ce2.js → button.d0c9527d.js} +2 -2
  121. package/dist/chunks/{button.c27a7ce2.js.map → button.d0c9527d.js.map} +1 -1
  122. package/dist/chunks/{calendar.8f50a65a.js → calendar.0ae43a96.js} +6 -6
  123. package/dist/chunks/calendar.0ae43a96.js.map +1 -0
  124. package/dist/chunks/{checkbox.c06daf12.js → checkbox.f8457c93.js} +3 -3
  125. package/dist/chunks/{checkbox.c06daf12.js.map → checkbox.f8457c93.js.map} +1 -1
  126. package/dist/chunks/controls-group.b827382b.js +87 -0
  127. package/dist/chunks/controls-group.b827382b.js.map +1 -0
  128. package/dist/chunks/{copy.b62beae5.js → copy.5a4cbd4d.js} +3 -3
  129. package/dist/chunks/{copy.b62beae5.js.map → copy.5a4cbd4d.js.map} +1 -1
  130. package/dist/chunks/{dropdown-default-textbox.a5eca928.js → dropdown-default-textbox.819e43f7.js} +32 -30
  131. package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +1 -0
  132. package/dist/chunks/{dropdown.368486b1.js → dropdown.c05678d0.js} +142 -139
  133. package/dist/chunks/dropdown.c05678d0.js.map +1 -0
  134. package/dist/chunks/{error-message.a581a172.js → error-message.0433b539.js} +2 -2
  135. package/dist/chunks/{error-message.a581a172.js.map → error-message.0433b539.js.map} +1 -1
  136. package/dist/chunks/footer-actions.67642347.js +98 -0
  137. package/dist/chunks/footer-actions.67642347.js.map +1 -0
  138. package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
  139. package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
  140. package/dist/chunks/{index.3b6fc08a.js → index.0cf00b47.js} +6 -6
  141. package/dist/chunks/{index.3b6fc08a.js.map → index.0cf00b47.js.map} +1 -1
  142. package/dist/chunks/{index.f0d99471.js → index.10aaf539.js} +198 -192
  143. package/dist/chunks/{index.f0d99471.js.map → index.10aaf539.js.map} +1 -1
  144. package/dist/chunks/{index.ad39b625.js → index.133e4da0.js} +2 -2
  145. package/dist/chunks/{index.ad39b625.js.map → index.133e4da0.js.map} +1 -1
  146. package/dist/chunks/{index.175f9e2d.js → index.56858f4e.js} +15 -14
  147. package/dist/chunks/index.56858f4e.js.map +1 -0
  148. package/dist/chunks/{index.d07f9800.js → index.73d50fa6.js} +2 -2
  149. package/dist/chunks/{index.d07f9800.js.map → index.73d50fa6.js.map} +1 -1
  150. package/dist/chunks/{index.3dfea3bd.js → index.f0f8ed98.js} +3 -3
  151. package/dist/chunks/{index.3dfea3bd.js.map → index.f0f8ed98.js.map} +1 -1
  152. package/dist/chunks/{listbox-option-tag.c7e9a228.js → listbox-option-tag.8d6cccac.js} +3 -3
  153. package/dist/chunks/{listbox-option-tag.c7e9a228.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
  154. package/dist/chunks/{listbox.f51e92cd.js → listbox.116ed0c1.js} +177 -177
  155. package/dist/chunks/listbox.116ed0c1.js.map +1 -0
  156. package/dist/chunks/{loading-button.6d34f66f.js → loading-button.1c201f87.js} +10 -10
  157. package/dist/chunks/loading-button.1c201f87.js.map +1 -0
  158. package/dist/chunks/{tooltip.9af34fba.js → tooltip.2aff4fa6.js} +2 -2
  159. package/dist/chunks/tooltip.2aff4fa6.js.map +1 -0
  160. package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
  161. package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
  162. package/dist/code-snippet.js +6 -6
  163. package/dist/code-snippet.js.map +1 -1
  164. package/dist/country.js +149 -174
  165. package/dist/country.js.map +1 -1
  166. package/dist/currency.js +1 -1
  167. package/dist/data-grid.js +482 -499
  168. package/dist/data-grid.js.map +1 -1
  169. package/dist/date-picker.js +80 -74
  170. package/dist/date-picker.js.map +1 -1
  171. package/dist/date-range-picker.js +2 -2
  172. package/dist/date.js +1 -1
  173. package/dist/divider.js +1 -1
  174. package/dist/dropdown.js +72 -67
  175. package/dist/dropdown.js.map +1 -1
  176. package/dist/filter-bar.js +268 -265
  177. package/dist/filter-bar.js.map +1 -1
  178. package/dist/focus-trap.js +1 -1
  179. package/dist/form-layout.js +174 -0
  180. package/dist/form-layout.js.map +1 -0
  181. package/dist/header.js +3 -3
  182. package/dist/index.js +164 -155
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +2 -2
  185. package/dist/input-field.js +69 -67
  186. package/dist/input-field.js.map +1 -1
  187. package/dist/internal.js +6 -6
  188. package/dist/link.js +2 -2
  189. package/dist/loading-indicator.js +1 -1
  190. package/dist/menu.js +4 -4
  191. package/dist/modal.js +203 -324
  192. package/dist/modal.js.map +1 -1
  193. package/dist/pagination.js +4 -4
  194. package/dist/payment-method.js +2 -2
  195. package/dist/popover.js +4 -4
  196. package/dist/popper-container.js +2 -2
  197. package/dist/radio-group.js +97 -99
  198. package/dist/radio-group.js.map +1 -1
  199. package/dist/search-bar.js +2 -2
  200. package/dist/segmented-control.js +4 -4
  201. package/dist/sidepanel.js +218 -0
  202. package/dist/sidepanel.js.map +1 -0
  203. package/dist/status.js +2 -2
  204. package/dist/structured-list.js +1 -1
  205. package/dist/summary-grid.js +3 -3
  206. package/dist/tabs.js +3 -3
  207. package/dist/tabs.js.map +1 -1
  208. package/dist/tag.js +3 -3
  209. package/dist/textarea.js +84 -82
  210. package/dist/textarea.js.map +1 -1
  211. package/dist/timeline.js +23 -23
  212. package/dist/timeline.js.map +1 -1
  213. package/dist/toast.js +2 -2
  214. package/dist/toggle.js +2 -2
  215. package/dist/typography.js +1 -1
  216. package/dist/web-types.json +455 -73
  217. package/package.json +10 -8
  218. package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
  219. package/dist/chunks/calendar.8f50a65a.js.map +0 -1
  220. package/dist/chunks/controls-group.9d58a091.js +0 -64
  221. package/dist/chunks/controls-group.9d58a091.js.map +0 -1
  222. package/dist/chunks/dropdown-default-textbox.a5eca928.js.map +0 -1
  223. package/dist/chunks/dropdown.368486b1.js.map +0 -1
  224. package/dist/chunks/index.175f9e2d.js.map +0 -1
  225. package/dist/chunks/listbox.f51e92cd.js.map +0 -1
  226. package/dist/chunks/loading-button.6d34f66f.js.map +0 -1
  227. package/dist/chunks/tooltip.9af34fba.js.map +0 -1
@@ -1,34 +1,34 @@
1
- import { computed as c, defineComponent as k, ref as h, onMounted as _e, toRef as be, watch as me } from "vue";
2
- import { B as P, a as $ } from "./index.175f9e2d.js";
1
+ import { computed as r, defineComponent as N, ref as C, onMounted as _e, toRef as be, watch as me } from "vue";
2
+ import { B as P, a as $ } from "./index.56858f4e.js";
3
3
  import { BentoLoadingIndicator as ve } from "../loading-indicator.js";
4
- import { a as fe } from "./button.c27a7ce2.js";
5
- import { u as F } from "./i18n.155748d6.js";
6
- import { B as T, a as U, d as ge } from "./debounce.f8d92e44.js";
7
- import { n as I } from "./_plugin-vue2_normalizer.71e2aa87.js";
8
- import { B as Y } from "./checkbox.c06daf12.js";
4
+ import { a as fe } from "./button.d0c9527d.js";
5
+ import { u as G } from "./i18n.155748d6.js";
6
+ import { B as h, a as U, d as ge } from "./debounce.f8d92e44.js";
7
+ import { n as R } from "./_plugin-vue2_normalizer.71e2aa87.js";
8
+ import { B as Y } from "./checkbox.f8457c93.js";
9
9
  import { C as pe, a as Ee } from "./chevron-down.b851a6da.js";
10
- import { B as ye, a as V } from "./loading-button.6d34f66f.js";
10
+ import { B as ye, a as V } from "./loading-button.1c201f87.js";
11
11
  import "../assets/listbox.css";
12
12
  const W = (t, e, l, s) => {
13
- const n = c(
13
+ const n = r(
14
14
  () => {
15
15
  var u, d;
16
16
  return !!((u = t.value) != null && u.length) && ((d = t.value) == null ? void 0 : d.length) === e.value.length;
17
17
  }
18
- ), r = c(() => {
18
+ ), c = r(() => {
19
19
  var u;
20
20
  return t.value == null || t.value.length === 0 ? !1 : ((u = t.value) == null ? void 0 : u.length) !== e.value.length;
21
21
  });
22
22
  return {
23
23
  isAllSelected: n,
24
- isIndeterminate: r,
24
+ isIndeterminate: c,
25
25
  toggleSelectAll: (u) => {
26
26
  u ? l() : s();
27
27
  }
28
28
  };
29
29
  };
30
- var o = /* @__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))(o || {}), R = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(R || {});
31
- const xe = k({
30
+ var o = /* @__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))(o || {}), k = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(k || {});
31
+ const xe = N({
32
32
  name: "bento-listbox-option",
33
33
  props: {
34
34
  /**
@@ -42,22 +42,22 @@ const xe = k({
42
42
  },
43
43
  emits: [o.CLICK, o.ENTER, o.SPACE, o.TAB],
44
44
  setup(t, { emit: e }) {
45
- const l = c(() => ({
45
+ const l = r(() => ({
46
46
  "b-listbox-option--disabled": t.disabled,
47
47
  "b-listbox-option--selected": t.selected
48
48
  }));
49
49
  return {
50
50
  // Enums
51
- BentoKeyboardNavigationKeyDownEvent: T,
51
+ BentoKeyboardNavigationKeyDownEvent: h,
52
52
  BentoListboxEvent: o,
53
53
  // Values
54
54
  conditionalClasses: l,
55
55
  // Events
56
- onClick: (r) => {
57
- e(o.CLICK, r);
56
+ onClick: (c) => {
57
+ e(o.CLICK, c);
58
58
  },
59
- onOptionSelected: (r, m) => {
60
- e(r, m);
59
+ onOptionSelected: (c, m) => {
60
+ e(c, m);
61
61
  }
62
62
  };
63
63
  }
@@ -71,7 +71,7 @@ var Se = function() {
71
71
  }, function(s) {
72
72
  return !s.type.indexOf("key") && e._k(s.keyCode, "tab", 9, s.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, s);
73
73
  }] } }, "label", e.$attrs, !1), [e._t("default")], 2);
74
- }, Ce = [], he = /* @__PURE__ */ I(
74
+ }, Ce = [], he = /* @__PURE__ */ R(
75
75
  xe,
76
76
  Se,
77
77
  Ce,
@@ -91,17 +91,17 @@ const Te = {
91
91
  var Ae = function() {
92
92
  var e = this, l = e._self._c;
93
93
  return l("svg", e._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? l("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), l("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M14.5303 4.53033C14.8232 4.23744 14.8232 3.76256 14.5303 3.46967C14.2374 3.17678 13.7626 3.17678 13.4697 3.46967L6 10.9393L2.53033 7.46967C2.23744 7.17678 1.76256 7.17678 1.46967 7.46967C1.17678 7.76256 1.17678 8.23744 1.46967 8.53033L5.46967 12.5303C5.50628 12.5669 5.54574 12.599 5.58732 12.6264C5.87844 12.8186 6.27405 12.7866 6.53033 12.5303L14.5303 4.53033Z", "clip-rule": "evenodd" } })]);
94
- }, Le = [], Oe = /* @__PURE__ */ I(
94
+ }, Oe = [], Le = /* @__PURE__ */ R(
95
95
  Te,
96
96
  Ae,
97
- Le,
97
+ Oe,
98
98
  !1,
99
99
  null,
100
100
  "4687fbd0",
101
101
  null,
102
102
  null
103
103
  );
104
- const Be = Oe.exports, Ie = k({
104
+ const Be = Le.exports, Ie = N({
105
105
  name: "bento-listbox-single-select-option",
106
106
  components: {
107
107
  BentoListboxOption: w,
@@ -130,12 +130,12 @@ const Be = Oe.exports, Ie = k({
130
130
  setup(t, { emit: e }) {
131
131
  const l = (m) => {
132
132
  t.disabled || e(m, t.option.value);
133
- }, s = c(() => t.disabled ? !0 : null), n = c(() => t.selected ? !0 : null), r = c(() => t.disabled ? -1 : 0);
133
+ }, s = r(() => t.disabled ? !0 : null), n = r(() => t.selected ? !0 : null), c = r(() => t.disabled ? -1 : 0);
134
134
  return {
135
135
  // Values
136
136
  ariaDisabled: s,
137
137
  ariaSelected: n,
138
- tabIndex: r,
138
+ tabIndex: c,
139
139
  // Enums
140
140
  BentoTypographyElement: $,
141
141
  BentoListboxEvent: o,
@@ -157,7 +157,7 @@ var Re = function() {
157
157
  }]) }, [e._t("default", function() {
158
158
  return [l("span", { staticClass: "b-listbox-single-select-option__text" }, [l("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(e._s(e.option.label))]), e.option.description ? l("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
159
159
  }, null, e.option), l("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [l("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
160
- }, ke = [], Ne = /* @__PURE__ */ I(
160
+ }, ke = [], Ne = /* @__PURE__ */ R(
161
161
  Ie,
162
162
  Re,
163
163
  ke,
@@ -168,11 +168,11 @@ var Re = function() {
168
168
  null
169
169
  );
170
170
  const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
171
- const s = c(() => t.value.length - 1), n = h(0);
171
+ const s = r(() => t.value.length - 1), n = C(0);
172
172
  _e(() => {
173
173
  e && (n.value = t.value.findIndex((v) => !e(v)));
174
174
  });
175
- const r = (v) => !e || !!e && e(t.value[v]), m = (v) => !e || !!e && !e(t.value[v]), u = (v) => {
175
+ const c = (v) => !e || !!e && e(t.value[v]), m = (v) => !e || !!e && !e(t.value[v]), u = (v) => {
176
176
  switch (v) {
177
177
  case "increase":
178
178
  n.value += 1;
@@ -181,8 +181,8 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
181
181
  n.value -= 1;
182
182
  break;
183
183
  }
184
- }, d = ({ edgeCaseItem: v, isItemBeforeEdgeCaseItem: A }, L, f) => {
185
- n.value !== v && (A ? m(v) && u(f) : (u(f), r(n.value) && L()), l(n.value));
184
+ }, d = ({ edgeCaseItem: v, isItemBeforeEdgeCaseItem: A }, O, T) => {
185
+ n.value !== v && (A ? m(v) && u(T) : (u(T), c(n.value) && O()), l(n.value));
186
186
  }, _ = () => {
187
187
  const v = n.value === s.value - 2;
188
188
  d(
@@ -208,15 +208,15 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
208
208
  };
209
209
  return {
210
210
  moveToFirstElement: () => {
211
- n.value = 0, r(n.value) ? _() : l(n.value);
211
+ n.value = 0, c(n.value) ? _() : l(n.value);
212
212
  },
213
213
  moveToLastElement: () => {
214
- n.value = s.value, r(n.value) ? y() : l(n.value);
214
+ n.value = s.value, c(n.value) ? y() : l(n.value);
215
215
  },
216
216
  moveToNextElement: _,
217
217
  moveToPreviousElement: y
218
218
  };
219
- }, Pe = k({
219
+ }, Pe = N({
220
220
  name: "bento-listbox-single-select",
221
221
  components: {
222
222
  BentoListboxSingleSelectOption: De
@@ -260,20 +260,20 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
260
260
  },
261
261
  emits: [o.SELECT, o.ENTER, o.SPACE, o.TAB],
262
262
  setup(t, { emit: e, slots: l }) {
263
- const s = h([]), n = (x) => (v) => {
263
+ const s = C([]), n = (x) => (v) => {
264
264
  e(x, v);
265
- }, r = (x) => s.value[x].$el.focus(), { moveToNextElement: m, moveToPreviousElement: u, moveToFirstElement: d, moveToLastElement: _ } = q(
265
+ }, c = (x) => s.value[x].$el.focus(), { moveToNextElement: m, moveToPreviousElement: u, moveToFirstElement: d, moveToLastElement: _ } = q(
266
266
  {
267
267
  items: be(t, "items"),
268
268
  isOptionDisabled: t.isOptionDisabled
269
269
  },
270
- r
270
+ c
271
271
  ), y = {
272
- [T.ARROW_UP]: u,
273
- [T.ARROW_DOWN]: m,
274
- [T.HOME]: d,
275
- [T.END]: _
276
- }, p = {
272
+ [h.ARROW_UP]: u,
273
+ [h.ARROW_DOWN]: m,
274
+ [h.HOME]: d,
275
+ [h.END]: _
276
+ }, E = {
277
277
  [o.SELECT]: n(o.SELECT),
278
278
  [o.SPACE]: n(o.SPACE),
279
279
  [o.TAB]: n(o.TAB),
@@ -289,20 +289,20 @@ const De = Ne.exports, q = ({ items: t, isOptionDisabled: e }, l) => {
289
289
  onOptionSelected: n,
290
290
  // Keyboard navigation
291
291
  listboxListeners: y,
292
- listboxOptionListeners: p
292
+ listboxOptionListeners: E
293
293
  };
294
294
  }
295
295
  });
296
296
  var $e = function() {
297
297
  var e = this, l = e._self._c;
298
298
  return e._self._setupProxy, l("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, e.listboxListeners), e._l(e.items, function(s) {
299
- return l("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedValue }, scopedSlots: e._u([e._l(e.slots, function(n, r) {
300
- return { key: r, fn: function(m) {
301
- return [e._t(r, null, null, m)];
299
+ return l("bento-listbox-single-select-option", e._g({ key: s.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: s, disabled: e.isOptionDisabled ? e.isOptionDisabled(s) : null, selected: s.value === e.selectedValue }, scopedSlots: e._u([e._l(e.slots, function(n, c) {
300
+ return { key: c, fn: function(m) {
301
+ return [e._t(c, null, null, m)];
302
302
  } };
303
303
  })], null, !0) }, e.listboxOptionListeners));
304
304
  }), 1);
305
- }, we = [], Me = /* @__PURE__ */ I(
305
+ }, we = [], Me = /* @__PURE__ */ R(
306
306
  Pe,
307
307
  $e,
308
308
  we,
@@ -312,15 +312,15 @@ var $e = function() {
312
312
  null,
313
313
  null
314
314
  );
315
- const Ge = Me.exports;
315
+ const Fe = Me.exports;
316
316
  var z = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t))(z || {}), D = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.UNSELECT_CATEGORY = "unselect-category", t))(D || {});
317
- const Fe = {
317
+ const Ge = {
318
318
  "en-US": {
319
319
  categoryClosed: "{category} closed",
320
320
  categoryOpened: "{category} opened"
321
321
  }
322
- }, Ue = k({
323
- i18n: { messages: Fe },
322
+ }, Ue = N({
323
+ i18n: { messages: Ge },
324
324
  name: "bento-listbox-multi-select-category",
325
325
  components: {
326
326
  BentoCheckbox: Y,
@@ -366,57 +366,57 @@ const Fe = {
366
366
  },
367
367
  emits: [D.SELECT_CATEGORY, D.UNSELECT_CATEGORY],
368
368
  setup(t, { emit: e }) {
369
- const l = h(!1), { t: s } = F(), n = c(
370
- () => t.category.items.every((f) => t.isOptionDisabled(f))
371
- ), r = c(() => ({
372
- [`b-listbox-multi-select-category--${z.DISABLED}`]: n.value
373
- })), m = (f) => {
369
+ const l = C(!1), { t: s } = G(), n = (f) => t.isOptionDisabled ? t.isOptionDisabled(f) : !1, c = r(
370
+ () => t.category.items.every((f) => n(f))
371
+ ), m = r(() => ({
372
+ [`b-listbox-multi-select-category--${z.DISABLED}`]: c.value
373
+ })), u = (f) => {
374
374
  f.preventDefault(), l.value = !l.value;
375
- }, u = (f) => {
376
- var E;
377
- const S = t.isOptionDisabled(f), C = ((E = t.selectedItemsList) == null ? void 0 : E.includes(f.value)) || !1;
378
- return { isDisabled: S, isPreSelected: C };
379
- }, d = c(
375
+ }, d = (f) => {
376
+ var L;
377
+ const S = n(f), p = ((L = t.selectedItemsList) == null ? void 0 : L.includes(f.value)) || !1;
378
+ return { isDisabled: S, isPreSelected: p };
379
+ }, _ = r(
380
380
  () => t.category.items.filter((f) => {
381
- const { isDisabled: S, isPreSelected: C } = u(f);
382
- return S && C || !S;
381
+ const { isDisabled: S, isPreSelected: p } = d(f);
382
+ return S && p || !S;
383
383
  })
384
- ), _ = c(
384
+ ), y = r(
385
385
  () => {
386
386
  var f;
387
- return (f = d.value) == null ? void 0 : f.filter(
387
+ return (f = _.value) == null ? void 0 : f.filter(
388
388
  ({ value: S }) => {
389
- var C;
390
- return (C = t.selectedItemsList) == null ? void 0 : C.includes(S);
389
+ var p;
390
+ return (p = t.selectedItemsList) == null ? void 0 : p.includes(S);
391
391
  }
392
392
  );
393
393
  }
394
- ), y = c(() => {
394
+ ), E = r(() => {
395
395
  const f = l.value ? "categoryOpened" : "categoryClosed";
396
396
  return s(f, { category: t.category.label });
397
- }), p = () => {
397
+ }), x = () => {
398
398
  e(D.SELECT_CATEGORY);
399
- }, x = () => {
399
+ }, v = () => {
400
400
  e(D.UNSELECT_CATEGORY);
401
- }, { isAllSelected: v, isIndeterminate: A, toggleSelectAll: L } = W(
401
+ }, { isAllSelected: A, isIndeterminate: O, toggleSelectAll: T } = W(
402
+ y,
402
403
  _,
403
- d,
404
- p,
405
- x
404
+ x,
405
+ v
406
406
  );
407
407
  return {
408
408
  // Values
409
- chevronTitle: y,
410
- conditionalClass: r,
411
- hasAllPropsDisabled: n,
409
+ chevronTitle: E,
410
+ conditionalClass: m,
411
+ hasAllPropsDisabled: c,
412
412
  isOpen: l,
413
- isAllSelected: v,
414
- isIndeterminate: A,
413
+ isAllSelected: A,
414
+ isIndeterminate: O,
415
415
  // Enums
416
416
  BentoTypographyElement: $,
417
417
  // Methods
418
- toggleOpen: m,
419
- toggleSelectAll: L
418
+ toggleOpen: u,
419
+ toggleSelectAll: T
420
420
  };
421
421
  }
422
422
  });
@@ -425,19 +425,19 @@ var Ye = function() {
425
425
  return e._self._setupProxy, l("div", [l("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass }, [l("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value }, on: { "update:model-value": e.toggleSelectAll } }), l("span", { staticClass: "b-listbox-multi-select-category__label" }, [l("bento-typography", { staticClass: "b-listbox-multi-select-category__label-text", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(e.category.label) + " ")]), l("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(s) {
426
426
  return e.toggleOpen.apply(null, arguments);
427
427
  } } }, [e.isOpen ? l("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : l("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), l("div", { directives: [{ name: "show", rawName: "v-show", value: e.isOpen, expression: "isOpen" }] }, [e._t("default")], 2)], 1);
428
- }, Ve = [], He = /* @__PURE__ */ I(
428
+ }, Ve = [], He = /* @__PURE__ */ R(
429
429
  Ue,
430
430
  Ye,
431
431
  Ve,
432
432
  !1,
433
433
  null,
434
- "3cf8eb6c",
434
+ "37db1b68",
435
435
  null,
436
436
  null
437
437
  );
438
438
  const Ke = He.exports;
439
- var B = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(B || {});
440
- const We = k({
439
+ var I = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(I || {});
440
+ const We = N({
441
441
  name: "listbox-multi-select-options",
442
442
  components: {
443
443
  BentoCheckbox: Y,
@@ -497,36 +497,36 @@ const We = k({
497
497
  }
498
498
  },
499
499
  emits: [
500
- B.TOGGLE_CHECKBOX_SELECTION,
501
- B.SELECT_CATEGORY,
502
- B.UNSELECT_CATEGORY
500
+ I.TOGGLE_CHECKBOX_SELECTION,
501
+ I.SELECT_CATEGORY,
502
+ I.UNSELECT_CATEGORY
503
503
  ],
504
504
  setup(t, { emit: e }) {
505
505
  const l = (d) => {
506
- e(B.TOGGLE_CHECKBOX_SELECTION, d);
506
+ e(I.TOGGLE_CHECKBOX_SELECTION, d);
507
507
  }, s = (d) => !!d.items, n = (d) => {
508
508
  const _ = t.isMultiLevel && t.searching;
509
509
  return d.description && (!t.isMultiLevel || _);
510
- }, r = (d) => d.items ? !!d.items.find((_) => t.selectedItemsList.includes(_.value)) : t.selectedItemsList.includes(d.value), m = (d, _) => {
510
+ }, c = (d) => d.items ? !!d.items.find((_) => t.selectedItemsList.includes(_.value)) : t.selectedItemsList.includes(d.value), m = (d, _) => {
511
511
  if (s(_))
512
- return e(d ? B.SELECT_CATEGORY : B.UNSELECT_CATEGORY, _);
512
+ return e(d ? I.SELECT_CATEGORY : I.UNSELECT_CATEGORY, _);
513
513
  l(_.value);
514
514
  };
515
515
  return {
516
516
  // Values
517
- conditionalClasses: c(() => ({
517
+ conditionalClasses: r(() => ({
518
518
  "b-listbox-multi-select-options__category-option": t.categoryItems
519
519
  })),
520
520
  // Methods
521
521
  isCategory: s,
522
- isOptionSelected: r,
522
+ isOptionSelected: c,
523
523
  shouldShowDescription: n,
524
524
  toggleCheckboxSelection: l,
525
525
  selectSearch: m,
526
526
  // Enums
527
527
  BentoListboxEvent: o,
528
528
  BentoTypographyElement: $,
529
- ListboxMultiSelectOptionsEvent: B
529
+ ListboxMultiSelectOptionsEvent: I
530
530
  };
531
531
  }
532
532
  });
@@ -545,7 +545,7 @@ var qe = function() {
545
545
  return [l("span", { staticClass: "b-listbox-multi-select__option-text" }, [l("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(e._s(s.label))]), e.shouldShowDescription(s) ? l("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(" " + e._s(s.description) + " ")]) : e._e()], 1)];
546
546
  }, null, s)], 2)]], 2);
547
547
  }), 0);
548
- }, ze = [], je = /* @__PURE__ */ I(
548
+ }, ze = [], je = /* @__PURE__ */ R(
549
549
  We,
550
550
  qe,
551
551
  ze,
@@ -561,7 +561,7 @@ const Xe = je.exports, Ze = {
561
561
  numberOfTotalSelected: "{number} of {total} selected",
562
562
  selectAll: "Select all ({total})"
563
563
  }
564
- }, Je = k({
564
+ }, Je = N({
565
565
  i18n: { messages: Ze },
566
566
  name: "bento-listbox-multi-select",
567
567
  components: {
@@ -614,7 +614,7 @@ const Xe = je.exports, Ze = {
614
614
  },
615
615
  emits: [o.SELECT],
616
616
  setup(t, { emit: e, slots: l }) {
617
- const { t: s } = F(), n = h(null), r = h(null), m = h(null), u = h();
617
+ const { t: s } = G(), n = C(null), c = C(null), m = C(null), u = C();
618
618
  me(
619
619
  () => t.selectedValues,
620
620
  () => {
@@ -624,83 +624,83 @@ const Xe = je.exports, Ze = {
624
624
  immediate: !0
625
625
  }
626
626
  );
627
- const d = c(() => !!t.items.find(({ items: i }) => !!i)), _ = c(() => d.value ? t.items.reduce((i, a) => (a.items ? i.push(...a.items.flat()) : i.push(a), i), []) : t.items), y = (i) => {
627
+ const d = r(() => !!t.items.find(({ items: i }) => !!i)), _ = r(() => d.value ? t.items.reduce((i, a) => (a.items ? i.push(...a.items.flat()) : i.push(a), i), []) : t.items), y = (i) => {
628
628
  var b;
629
629
  const a = t.isOptionDisabled(i), g = ((b = u.value) == null ? void 0 : b.includes(i.value)) || !1;
630
630
  return { isDisabled: a, isPreSelected: g };
631
- }, p = c(
631
+ }, E = r(
632
632
  () => t.searching && d ? t.items : _.value.filter((i) => {
633
633
  const { isDisabled: a, isPreSelected: g } = y(i);
634
634
  return a && g || !a;
635
635
  })
636
- ), x = c(
636
+ ), x = r(
637
637
  () => {
638
638
  var i;
639
- return (i = p.value) == null ? void 0 : i.filter((a) => {
639
+ return (i = E.value) == null ? void 0 : i.filter((a) => {
640
640
  var g;
641
641
  return a.items && d.value && t.searching ? a.items.filter(
642
- (O) => (t.selectedValues ?? []).includes(
643
- O.value
642
+ (B) => (t.selectedValues ?? []).includes(
643
+ B.value
644
644
  )
645
645
  ).length === a.items.length : (g = u.value) == null ? void 0 : g.includes(a.value);
646
646
  });
647
647
  }
648
- ), v = () => d.value && !t.searching ? p.value.length : t.items.length, A = c(() => {
648
+ ), v = () => d.value && !t.searching ? E.value.length : t.items.length, A = r(() => {
649
649
  var g;
650
650
  const i = v(), a = ((g = x.value) == null ? void 0 : g.length) || 0;
651
651
  return a === 0 ? s("selectAll", { total: i }) : a === i ? s("allSelected", { total: i }) : s("numberOfTotalSelected", { number: a, total: i });
652
- }), L = (i) => {
652
+ }), O = (i) => {
653
653
  const a = (b) => {
654
- const { isDisabled: O, isPreSelected: G } = y(b);
655
- return O && G || !O;
654
+ const { isDisabled: B, isPreSelected: F } = y(b);
655
+ return B && F || !B;
656
656
  }, g = i.filter(a).filter((b) => !u.value.includes(b.value)).map(({ value: b }) => b);
657
657
  u.value = [...u.value, ...g], e(o.SELECT, u.value);
658
- }, f = (i) => {
658
+ }, T = (i) => {
659
659
  const a = (b) => {
660
- const { isDisabled: O, isPreSelected: G } = y(b);
661
- return !(O && G);
660
+ const { isDisabled: B, isPreSelected: F } = y(b);
661
+ return !(B && F);
662
662
  }, g = i.filter(a).map(({ value: b }) => b);
663
663
  u.value = u.value.filter((b) => !(g != null && g.includes(b))), e(o.SELECT, u.value);
664
+ }, f = () => {
665
+ O(_.value);
664
666
  }, S = () => {
665
- L(_.value);
666
- }, C = () => {
667
- f(_.value);
668
- }, { isAllSelected: E, isIndeterminate: N, toggleSelectAll: j } = W(
667
+ T(_.value);
668
+ }, { isAllSelected: p, isIndeterminate: L, toggleSelectAll: j } = W(
669
669
  x,
670
- p,
671
- S,
672
- C
670
+ E,
671
+ f,
672
+ S
673
673
  ), X = (i) => {
674
- L(i.items);
674
+ O(i.items);
675
675
  }, Z = (i) => {
676
- f(i.items);
676
+ T(i.items);
677
677
  }, J = (i, a) => {
678
678
  let g = !1;
679
679
  u.value = u.value.filter((b) => a === b ? (g = !0, !1) : !0), g || u.value.push(a), e(i, u.value);
680
- }, M = c(() => {
681
- const i = (b) => u.value.includes(b.value), a = (b) => !!b.find((O) => i(O));
680
+ }, M = r(() => {
681
+ const i = (b) => u.value.includes(b.value), a = (b) => !!b.find((B) => i(B));
682
682
  return t.items.filter((b) => b.items && a(b.items) ? !0 : i(b));
683
- }), Q = c(() => {
683
+ }), Q = r(() => {
684
684
  var i;
685
685
  return ((i = M.value) == null ? void 0 : i.length) > 0;
686
- }), ee = c(
686
+ }), ee = r(
687
687
  () => {
688
688
  var i, a;
689
689
  return ((i = x.value) == null ? void 0 : i.length) === ((a = _.value) == null ? void 0 : a.length);
690
690
  }
691
- ), te = c(
691
+ ), te = r(
692
692
  () => n.value ? [n.value] : []
693
- ), se = c(
693
+ ), se = r(
694
694
  () => {
695
695
  var i, a;
696
- return (a = (i = r.value) == null ? void 0 : i.$children) != null && a.length ? r.value.$children : [];
696
+ return (a = (i = c.value) == null ? void 0 : i.$children) != null && a.length ? c.value.$children : [];
697
697
  }
698
- ), le = c(
698
+ ), le = r(
699
699
  () => {
700
700
  var i, a;
701
701
  return (a = (i = m.value) == null ? void 0 : i.$children) != null && a.length ? m.value.$children : [];
702
702
  }
703
- ), ne = c(() => ({ label: A, value: E })), oe = c(() => [
703
+ ), ne = r(() => ({ label: A, value: p })), oe = r(() => [
704
704
  ne,
705
705
  ...M.value,
706
706
  ..._.value
@@ -712,26 +712,26 @@ const Xe = je.exports, Ze = {
712
712
  ][i].$el.focus();
713
713
  }, { moveToNextElement: ae, moveToPreviousElement: ce, moveToFirstElement: re, moveToLastElement: ue } = q(
714
714
  {
715
- items: h(oe),
715
+ items: C(oe),
716
716
  isOptionDisabled: t.isOptionDisabled
717
717
  },
718
718
  ie
719
719
  ), de = {
720
- [T.ARROW_UP]: ce,
721
- [T.ARROW_DOWN]: ae,
722
- [T.HOME]: re,
723
- [T.END]: ue
720
+ [h.ARROW_UP]: ce,
721
+ [h.ARROW_DOWN]: ae,
722
+ [h.HOME]: re,
723
+ [h.END]: ue
724
724
  };
725
725
  return {
726
726
  // Refs
727
727
  selectAllListboxItemsRef: n,
728
- selectedListboxItemsRef: r,
728
+ selectedListboxItemsRef: c,
729
729
  listboxItemsRef: m,
730
730
  // Values
731
- isAllSelected: E,
731
+ isAllSelected: p,
732
732
  isAllItemsIncludingDisabled: ee,
733
733
  isAnOptionSelected: Q,
734
- isIndeterminate: N,
734
+ isIndeterminate: L,
735
735
  isMultiLevelSelect: d,
736
736
  flattenedItemsList: _,
737
737
  selectedItemsList: u,
@@ -762,8 +762,8 @@ var Qe = function() {
762
762
  }, e.BentoListboxEvent.ENTER, function(s) {
763
763
  return e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, s);
764
764
  }]), scopedSlots: e._u([e._l(e.slots, function(s, n) {
765
- return { key: n, fn: function(r) {
766
- return [e._t(n, null, null, r)];
765
+ return { key: n, fn: function(c) {
766
+ return [e._t(n, null, null, c)];
767
767
  } };
768
768
  })], null, !0) })], 1) : e._e(), l("div", { directives: [{ name: "show", rawName: "v-show", value: !e.isAllItemsIncludingDisabled, expression: "!isAllItemsIncludingDisabled" }] }, [l("hr", { staticClass: "b-listbox-multi-select__divider" }), l("listbox-multi-select-options", { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": e.isMultiLevelSelect, searching: e.searching, "selected-items-list": e.selectedItemsList }, on: e._d({ "toggle-checkbox-selection": function(s) {
769
769
  return e.toggleCheckboxSelection(e.BentoListboxEvent.SELECT, s);
@@ -774,11 +774,11 @@ var Qe = function() {
774
774
  }, e.BentoListboxEvent.ENTER, function(s) {
775
775
  return e.toggleCheckboxSelection(e.BentoListboxEvent.ENTER, s);
776
776
  }]), scopedSlots: e._u([e._l(e.slots, function(s, n) {
777
- return { key: n, fn: function(r) {
778
- return [e._t(n, null, null, r)];
777
+ return { key: n, fn: function(c) {
778
+ return [e._t(n, null, null, c)];
779
779
  } };
780
780
  })], null, !0) })], 1)], 1);
781
- }, et = [], tt = /* @__PURE__ */ I(
781
+ }, et = [], tt = /* @__PURE__ */ R(
782
782
  Je,
783
783
  Qe,
784
784
  et,
@@ -793,10 +793,10 @@ const K = tt.exports, st = {
793
793
  showMore: "Show more",
794
794
  loading: "Loading"
795
795
  }
796
- }, lt = k({
796
+ }, lt = N({
797
797
  name: "bento-listbox",
798
798
  components: {
799
- BentoListboxSingleSelect: Ge,
799
+ BentoListboxSingleSelect: Fe,
800
800
  BentoListboxMultiSelect: K,
801
801
  BentoTypography: P,
802
802
  BentoLoadingIndicator: ve,
@@ -852,8 +852,8 @@ const K = tt.exports, st = {
852
852
  */
853
853
  lazyLoadType: {
854
854
  type: String,
855
- default: R.NONE,
856
- validator: (t) => Object.values(R).includes(t)
855
+ default: k.NONE,
856
+ validator: (t) => Object.values(k).includes(t)
857
857
  },
858
858
  /**
859
859
  * If enabled, the user will be able to select multiple items.
@@ -889,36 +889,36 @@ const K = tt.exports, st = {
889
889
  o.TAB
890
890
  ],
891
891
  setup(t, { emit: e, slots: l }) {
892
- const { t: s } = F(), n = h(null), r = h([]), m = c(() => t.lazyLoadType !== R.AUTOMATIC), u = c(() => t.lazyLoadType === R.AUTOMATIC), d = c(
892
+ const { t: s } = G(), n = C(null), c = C([]), m = r(() => t.lazyLoadType !== k.AUTOMATIC), u = r(() => t.lazyLoadType === k.AUTOMATIC), d = r(
893
893
  () => m.value ? "true" : void 0
894
- ), _ = c(
894
+ ), _ = r(
895
895
  () => m.value && t.loading ? "true" : "false"
896
- ), y = c(
896
+ ), y = r(
897
897
  () => m.value ? "polite" : void 0
898
- ), p = (E) => (N) => {
899
- e(E, N);
898
+ ), E = (p) => (L) => {
899
+ e(p, L);
900
900
  }, x = () => {
901
901
  e(o.SHOW_MORE);
902
902
  }, v = ge(() => {
903
- const E = n.value, N = E.scrollTop + E.clientHeight >= E.scrollHeight;
904
- t.hasMoreItems && N && !t.loading && x();
905
- }), A = c(() => {
906
- var E;
907
- return t.searching && ((E = t.items) == null ? void 0 : E.length) === 0;
908
- }), L = c(
909
- () => t.lazyLoadType === R.BUTTON && t.hasMoreItems
910
- ), f = c(
903
+ const p = n.value, L = p.scrollTop + p.clientHeight >= p.scrollHeight;
904
+ t.hasMoreItems && L && !t.loading && x();
905
+ }), A = r(() => {
906
+ var p;
907
+ return t.searching && ((p = t.items) == null ? void 0 : p.length) === 0;
908
+ }), O = r(
909
+ () => t.lazyLoadType === k.BUTTON && t.hasMoreItems
910
+ ), T = r(
911
911
  () => t.loading ? V.LOADING : V.START
912
- ), S = c(() => t.loading ? s("loading") : s("showMore")), C = {
913
- [o.SELECT]: p(o.SELECT),
914
- [o.SPACE]: p(o.SPACE),
915
- [o.TAB]: p(o.TAB),
916
- [o.ENTER]: p(o.ENTER)
912
+ ), f = r(() => t.loading ? s("loading") : s("showMore")), S = {
913
+ [o.SELECT]: E(o.SELECT),
914
+ [o.SPACE]: E(o.SPACE),
915
+ [o.TAB]: E(o.TAB),
916
+ [o.ENTER]: E(o.ENTER)
917
917
  };
918
918
  return {
919
919
  // Refs
920
920
  listboxRef: n,
921
- listboxItemRef: r,
921
+ listboxItemRef: c,
922
922
  // a11y
923
923
  ariaAtomic: d,
924
924
  ariaBusy: _,
@@ -926,36 +926,36 @@ const K = tt.exports, st = {
926
926
  // Values
927
927
  hasAutomaticLazyLoader: u,
928
928
  isSearchResultEmpty: A,
929
- loadingButtonState: f,
929
+ loadingButtonState: T,
930
930
  slots: l,
931
- shouldDisplayShowMoreButton: L,
932
- showMoreButtonText: S,
931
+ shouldDisplayShowMoreButton: O,
932
+ showMoreButtonText: f,
933
933
  // Enums
934
934
  BentoTypographyElement: $,
935
935
  BentoButtonVariant: fe,
936
- BentoListboxLazyLoadType: R,
937
- BentoKeyboardNavigationKeyDownEvent: T,
936
+ BentoListboxLazyLoadType: k,
937
+ BentoKeyboardNavigationKeyDownEvent: h,
938
938
  BentoListboxEvent: o,
939
939
  // Methods
940
- onOptionSelected: p,
940
+ onOptionSelected: E,
941
941
  emitShowMoreOnScrollEnd: v,
942
942
  emitShowMore: x,
943
- listboxListeners: C
943
+ listboxListeners: S
944
944
  };
945
945
  }
946
946
  });
947
947
  var nt = function() {
948
948
  var e = this, l = e._self._c;
949
949
  return e._self._setupProxy, l("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: () => e.hasAutomaticLazyLoader ? e.emitShowMoreOnScrollEnd() : void 0 } }, [e.isSearchResultEmpty ? l("div", { staticClass: "b-listbox__empty-search-message" }, [l("bento-typography", { attrs: { el: e.BentoTypographyElement.SPAN } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [l("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { items: e.items, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(s, n) {
950
- return { key: n, fn: function(r) {
951
- return [e._t(n, null, null, r)];
950
+ return { key: n, fn: function(c) {
951
+ return [e._t(n, null, null, c)];
952
952
  } };
953
953
  })], null, !0) }, e.listboxListeners))] : [l("bento-listbox-single-select", e._g({ ref: "listboxItemRef", attrs: { items: e.items, "selected-value": e.selectedValue, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(s, n) {
954
- return { key: n, fn: function(r) {
955
- return [e._t(n, null, null, r)];
954
+ return { key: n, fn: function(c) {
955
+ return [e._t(n, null, null, c)];
956
956
  } };
957
957
  })], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: e.BentoButtonVariant.SECONDARY }, on: { click: e.emitShowMore } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? l("div", { staticClass: "b-listbox__lazy-load" }, [l("bento-loading-indicator")], 1) : e._e()]], 2);
958
- }, ot = [], it = /* @__PURE__ */ I(
958
+ }, ot = [], it = /* @__PURE__ */ R(
959
959
  lt,
960
960
  nt,
961
961
  ot,
@@ -970,6 +970,6 @@ export {
970
970
  gt as B,
971
971
  Be as C,
972
972
  o as a,
973
- R as b
973
+ k as b
974
974
  };
975
- //# sourceMappingURL=listbox.f51e92cd.js.map
975
+ //# sourceMappingURL=listbox.116ed0c1.js.map