@adyen/bento-vue2 1.10.0 → 1.11.1

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 (208) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/vue2/src/components/code-snippet/{composables/useLanguage.d.ts → utils/get-lang-loader.d.ts} +1 -3
  3. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryCapital/useCountryCapital.d.ts → use-country-capital/use-country-capital.d.ts} +1 -1
  5. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryName/useCountryName.d.ts → use-country-name/use-country-name.d.ts} +1 -1
  6. package/dist/@types/packages/vue2/src/components/country/composables/{useCountryPhoneCode/useCountryPhoneCode.d.ts → use-country-phone-code/use-country-phon-code.d.ts} +1 -1
  7. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +10 -8
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/index.d.ts +2 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.d.ts → use-calculate-column-width/use-calculate-column-width.d.ts} +1 -2
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.d.ts → use-keyboard-navigator/use-keyboard-navigator.d.ts} +1 -1
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useResizer.d.ts → use-resizer.d.ts} +0 -1
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/{useScroller/useScroller.d.ts → use-scroller/use-scroller.d.ts} +1 -1
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/useDropdownOptionsListbox.d.ts +2 -1
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/index.d.ts +2 -0
  17. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +1587 -5
  18. package/dist/@types/packages/vue2/src/components/dropdown/index.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/index.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-category/secondary-nav-category.vue.d.ts +18 -0
  21. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/index.d.ts +1 -0
  22. package/dist/@types/packages/vue2/src/components/secondary-nav/components/secondary-nav-item/secondary-nav-item.vue.d.ts +19 -0
  23. package/dist/@types/packages/vue2/src/components/secondary-nav/index.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.keys.d.ts +3 -0
  25. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.types.d.ts +14 -0
  26. package/dist/@types/packages/vue2/src/components/secondary-nav/secondary-nav.vue.d.ts +20 -0
  27. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  28. package/dist/@types/packages/vue2/src/utils/ts/deprecate.d.ts +1 -0
  29. package/dist/accordion.js +2 -2
  30. package/dist/action-bar.js +5 -5
  31. package/dist/alert.js +3 -3
  32. package/dist/assets/base-modal.css +1 -1
  33. package/dist/assets/dropdown.css +1 -1
  34. package/dist/assets/fixed-scroller.css +1 -1
  35. package/dist/assets/index.css +1 -1
  36. package/dist/assets/index10.css +1 -1
  37. package/dist/assets/index11.css +1 -1
  38. package/dist/assets/index12.css +1 -1
  39. package/dist/assets/index13.css +1 -1
  40. package/dist/assets/index14.css +1 -1
  41. package/dist/assets/index15.css +1 -1
  42. package/dist/assets/index16.css +1 -1
  43. package/dist/assets/index17.css +1 -1
  44. package/dist/assets/index18.css +1 -1
  45. package/dist/assets/index19.css +1 -1
  46. package/dist/assets/index2.css +1 -1
  47. package/dist/assets/index20.css +1 -1
  48. package/dist/assets/index21.css +1 -1
  49. package/dist/assets/index22.css +1 -1
  50. package/dist/assets/index23.css +1 -1
  51. package/dist/assets/index24.css +1 -1
  52. package/dist/assets/index25.css +1 -1
  53. package/dist/assets/index26.css +1 -1
  54. package/dist/assets/index27.css +1 -1
  55. package/dist/assets/index28.css +1 -1
  56. package/dist/assets/index29.css +1 -1
  57. package/dist/assets/index3.css +1 -1
  58. package/dist/assets/index30.css +1 -1
  59. package/dist/assets/index31.css +1 -1
  60. package/dist/assets/index32.css +1 -1
  61. package/dist/assets/index33.css +1 -1
  62. package/dist/assets/index34.css +1 -1
  63. package/dist/assets/index35.css +1 -1
  64. package/dist/assets/index36.css +1 -1
  65. package/dist/assets/index37.css +1 -1
  66. package/dist/assets/index38.css +1 -1
  67. package/dist/assets/index39.css +1 -1
  68. package/dist/assets/index4.css +1 -1
  69. package/dist/assets/index40.css +1 -1
  70. package/dist/assets/index41.css +1 -1
  71. package/dist/assets/index42.css +1 -1
  72. package/dist/assets/index43.css +1 -1
  73. package/dist/assets/index44.css +1 -1
  74. package/dist/assets/index45.css +1 -1
  75. package/dist/assets/index46.css +1 -0
  76. package/dist/assets/index5.css +1 -1
  77. package/dist/assets/index6.css +1 -1
  78. package/dist/assets/index7.css +1 -1
  79. package/dist/assets/index8.css +1 -1
  80. package/dist/assets/index9.css +1 -1
  81. package/dist/avatar-image.js +1 -1
  82. package/dist/badge.js +1 -1
  83. package/dist/button.js +5 -5
  84. package/dist/card.js +2 -2
  85. package/dist/checkbox.js +6 -6
  86. package/dist/chunks/{base-button.46843461.js → base-button.f58ffaaa.js} +2 -2
  87. package/dist/chunks/{base-button.46843461.js.map → base-button.f58ffaaa.js.map} +1 -1
  88. package/dist/chunks/{base-modal.193ce866.js → base-modal.435bdd62.js} +5 -5
  89. package/dist/chunks/{base-modal.193ce866.js.map → base-modal.435bdd62.js.map} +1 -1
  90. package/dist/chunks/{button-actions-with-menu.11988565.js → button-actions-with-menu.3849a35c.js} +3 -3
  91. package/dist/chunks/{button-actions-with-menu.11988565.js.map → button-actions-with-menu.3849a35c.js.map} +1 -1
  92. package/dist/chunks/{button.f3f05408.js → button.3ce10493.js} +2 -2
  93. package/dist/chunks/{button.f3f05408.js.map → button.3ce10493.js.map} +1 -1
  94. package/dist/chunks/{calendar.7dbac3b8.js → calendar.3e9c35d0.js} +4 -4
  95. package/dist/chunks/{calendar.7dbac3b8.js.map → calendar.3e9c35d0.js.map} +1 -1
  96. package/dist/chunks/{checkbox.f6f6ce39.js → checkbox.68cc1f84.js} +3 -3
  97. package/dist/chunks/{checkbox.f6f6ce39.js.map → checkbox.68cc1f84.js.map} +1 -1
  98. package/dist/chunks/{controls-group.24a9efb1.js → controls-group.9e878137.js} +3 -3
  99. package/dist/chunks/{controls-group.24a9efb1.js.map → controls-group.9e878137.js.map} +1 -1
  100. package/dist/chunks/{copy.f4019f8d.js → copy.14578696.js} +4 -4
  101. package/dist/chunks/{copy.f4019f8d.js.map → copy.14578696.js.map} +1 -1
  102. package/dist/chunks/country.types.002caff2.js +5871 -0
  103. package/dist/chunks/country.types.002caff2.js.map +1 -0
  104. package/dist/chunks/{dropdown-default-textbox.a1240b9d.js → dropdown-default-textbox.4b227b24.js} +2 -2
  105. package/dist/chunks/{dropdown-default-textbox.a1240b9d.js.map → dropdown-default-textbox.4b227b24.js.map} +1 -1
  106. package/dist/chunks/{dropdown.f784ac67.js → dropdown.7749c2d7.js} +272 -271
  107. package/dist/chunks/dropdown.7749c2d7.js.map +1 -0
  108. package/dist/chunks/{field-label.bdf22f47.js → field-label.3019a2f3.js} +2 -2
  109. package/dist/chunks/{field-label.bdf22f47.js.map → field-label.3019a2f3.js.map} +1 -1
  110. package/dist/chunks/{fixed-scroller.28158c25.js → fixed-scroller.cd3e1f8d.js} +2 -2
  111. package/dist/chunks/{fixed-scroller.28158c25.js.map → fixed-scroller.cd3e1f8d.js.map} +1 -1
  112. package/dist/chunks/{footer-actions.08a8323b.js → footer-actions.da12aa54.js} +3 -3
  113. package/dist/chunks/{footer-actions.08a8323b.js.map → footer-actions.da12aa54.js.map} +1 -1
  114. package/dist/chunks/{index.f651209d.js → index.026ae47b.js} +2 -2
  115. package/dist/chunks/{index.f651209d.js.map → index.026ae47b.js.map} +1 -1
  116. package/dist/chunks/{index.6c299479.js → index.02859365.js} +2 -2
  117. package/dist/chunks/{index.6c299479.js.map → index.02859365.js.map} +1 -1
  118. package/dist/chunks/{index.9bdf4d78.js → index.13ede682.js} +6 -6
  119. package/dist/chunks/{index.9bdf4d78.js.map → index.13ede682.js.map} +1 -1
  120. package/dist/chunks/{index.858b0720.js → index.32095db1.js} +22 -22
  121. package/dist/chunks/index.32095db1.js.map +1 -0
  122. package/dist/chunks/{index.158c522b.js → index.618cc4cb.js} +2 -2
  123. package/dist/chunks/{index.158c522b.js.map → index.618cc4cb.js.map} +1 -1
  124. package/dist/chunks/{index.ad4b770b.js → index.6a417137.js} +5 -5
  125. package/dist/chunks/{index.ad4b770b.js.map → index.6a417137.js.map} +1 -1
  126. package/dist/chunks/{index.1036f656.js → index.8f1e4d8d.js} +3 -3
  127. package/dist/chunks/{index.1036f656.js.map → index.8f1e4d8d.js.map} +1 -1
  128. package/dist/chunks/{index.9051abfc.js → index.9398acc6.js} +29 -29
  129. package/dist/chunks/{index.9051abfc.js.map → index.9398acc6.js.map} +1 -1
  130. package/dist/chunks/{index.4824eab5.js → index.c032aa32.js} +7 -7
  131. package/dist/chunks/{index.4824eab5.js.map → index.c032aa32.js.map} +1 -1
  132. package/dist/chunks/{index.7039d901.js → index.eede8742.js} +3 -3
  133. package/dist/chunks/{index.7039d901.js.map → index.eede8742.js.map} +1 -1
  134. package/dist/chunks/{listbox-option-tag.60c0beca.js → listbox-option-tag.2efd15e0.js} +3 -3
  135. package/dist/chunks/{listbox-option-tag.60c0beca.js.map → listbox-option-tag.2efd15e0.js.map} +1 -1
  136. package/dist/chunks/{listbox.163433c5.js → listbox.371743bc.js} +4 -4
  137. package/dist/chunks/{listbox.163433c5.js.map → listbox.371743bc.js.map} +1 -1
  138. package/dist/chunks/{loading-button.7b5d0c22.js → loading-button.2e197f34.js} +2 -2
  139. package/dist/chunks/{loading-button.7b5d0c22.js.map → loading-button.2e197f34.js.map} +1 -1
  140. package/dist/chunks/{tooltip.4a1300d5.js → tooltip.1ec3479c.js} +3 -3
  141. package/dist/chunks/{tooltip.4a1300d5.js.map → tooltip.1ec3479c.js.map} +1 -1
  142. package/dist/chunks/useCountryItems.6b7985bf.js +29 -0
  143. package/dist/chunks/{useCountryItems.34ac8740.js.map → useCountryItems.6b7985bf.js.map} +1 -1
  144. package/dist/code-snippet.js +10 -12
  145. package/dist/code-snippet.js.map +1 -1
  146. package/dist/country.js +41 -5902
  147. package/dist/country.js.map +1 -1
  148. package/dist/currency.js +1 -1
  149. package/dist/data-grid.js +344 -344
  150. package/dist/data-grid.js.map +1 -1
  151. package/dist/date-picker.js +18 -18
  152. package/dist/date-range-picker.js +2 -2
  153. package/dist/date.js +1 -1
  154. package/dist/divider.js +1 -1
  155. package/dist/dropdown.js +41 -41
  156. package/dist/dropdown.js.map +1 -1
  157. package/dist/empty-state.js +3 -3
  158. package/dist/filter-bar.js +401 -402
  159. package/dist/filter-bar.js.map +1 -1
  160. package/dist/focus-trap.js +1 -1
  161. package/dist/form-layout.js +2 -2
  162. package/dist/form-layout.js.map +1 -1
  163. package/dist/header.js +3 -3
  164. package/dist/index.js +173 -170
  165. package/dist/index.js.map +1 -1
  166. package/dist/info-icon.js +3 -3
  167. package/dist/input-field.js +4 -4
  168. package/dist/internal.js +7 -7
  169. package/dist/link.js +2 -2
  170. package/dist/loading-indicator.js +1 -1
  171. package/dist/menu.js +1 -1
  172. package/dist/modal.js +3 -3
  173. package/dist/pagination.js +22 -22
  174. package/dist/pagination.js.map +1 -1
  175. package/dist/payment-method.js +2 -2
  176. package/dist/popover.js +1 -1
  177. package/dist/popper-container.js +1 -1
  178. package/dist/radio-group.js +4 -4
  179. package/dist/search-bar.js +2 -2
  180. package/dist/secondary-nav.js +98 -0
  181. package/dist/secondary-nav.js.map +1 -0
  182. package/dist/segmented-control.js +3 -3
  183. package/dist/sidepanel.js +4 -4
  184. package/dist/status.js +2 -2
  185. package/dist/stepper.js +3 -3
  186. package/dist/structured-list.js +1 -1
  187. package/dist/summary-grid.js +3 -3
  188. package/dist/tabs.js +3 -3
  189. package/dist/tag.js +3 -3
  190. package/dist/textarea.js +4 -4
  191. package/dist/timeline.js +5 -5
  192. package/dist/toast.js +3 -3
  193. package/dist/toggle.js +2 -2
  194. package/dist/tutorial.js +5 -5
  195. package/dist/typography.js +1 -1
  196. package/dist/web-types.json +129 -1
  197. package/package.json +6 -3
  198. package/dist/chunks/dropdown.f784ac67.js.map +0 -1
  199. package/dist/chunks/index.858b0720.js.map +0 -1
  200. package/dist/chunks/useCountryItems.34ac8740.js +0 -29
  201. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateColumnWidth/useCalculateColumnWidth.types.d.ts → use-calculate-column-width/use-calculate-column-width.types.d.ts} +0 -0
  202. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts → use-calculate-sticky-element-height/use-calculate-sticky-element-height.d.ts} +0 -0
  203. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useColumnReorderer/useColumnReorderer.d.ts → use-column-reorderer/use-column-reorderer.d.ts} +0 -0
  204. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useConfigSettings/useConfigSettings.d.ts → use-config-settings/use-config-settings.d.ts} +0 -0
  205. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useKeyboardNavigator/useKeyboardNavigator.types.d.ts → use-keyboard-navigator/use-keyboard-navigator.types.d.ts} +0 -0
  206. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useLazyLoading/useLazyLoading.d.ts → use-lazy-loading/use-lazy-loading.d.ts} +0 -0
  207. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSelector.d.ts → use-selector.d.ts} +0 -0
  208. /package/dist/@types/packages/vue2/src/components/data-grid/composables/{useSorter.d.ts → use-sorter.d.ts} +0 -0
@@ -1,82 +1,86 @@
1
- import { ref as y, watch as Z, computed as u, defineComponent as K, toRefs as Y, nextTick as C, toRef as L } from "vue";
2
- import { B as ve, d as pe } from "./index.858b0720.js";
1
+ import { ref as y, watch as Z, computed as f, defineComponent as K, toRefs as Y, nextTick as C, toRef as O } from "vue";
2
+ import { B as pe, d as me } from "./index.32095db1.js";
3
+ import { D as be, a as D, b as N, c as ye } from "./dropdown-default-textbox.4b227b24.js";
4
+ import { n as I } from "./_plugin-vue2_normalizer.71e2aa87.js";
3
5
  import { g as B } from "./unique-id.a2a2b458.js";
4
- import { u as me } from "./aria-label.ac9651a5.js";
6
+ import { u as _e } from "./aria-label.ac9651a5.js";
5
7
  import { u as W } from "./i18n.eb5b985b.js";
6
- import { u as be } from "./use-form-layout-loading.d03e5d48.js";
7
- import { a as s, B as F, b as k, u as ye } from "./listbox.163433c5.js";
8
- import { B as O, a as _e } from "./keyboard-navigation.ca47dfa8.js";
9
- import { u as ge } from "./use-has-slot.fbeb19ec.js";
10
- import { a as N } from "./index.7039d901.js";
11
- import { a as q } from "./index.ad4b770b.js";
12
- import { n as I } from "./_plugin-vue2_normalizer.71e2aa87.js";
13
- import { D as xe, a as $, b as P, c as he } from "./dropdown-default-textbox.a1240b9d.js";
14
- import { E as we, F as Se } from "./field-label.bdf22f47.js";
15
- import { B as Le } from "./directive.0408e565.js";
8
+ import { u as ge } from "./use-form-layout-loading.d03e5d48.js";
9
+ import { a as i, B as k, b as F, u as xe } from "./listbox.371743bc.js";
10
+ import { B as L, a as we } from "./keyboard-navigation.ca47dfa8.js";
11
+ import { u as he } from "./use-has-slot.fbeb19ec.js";
12
+ import { a as P } from "./index.eede8742.js";
13
+ import { a as q } from "./index.6a417137.js";
14
+ import { B as G } from "./directive.0408e565.js";
15
+ import { E as Se, F as Oe } from "./field-label.3019a2f3.js";
16
16
  import "../assets/dropdown.css";
17
17
  var E = /* @__PURE__ */ ((t) => (t.DEFAULT = "DropdownInputDefault", t.SMALL = "DropdownInputSmall", t))(E || {});
18
- const Oe = {
18
+ const Le = {
19
19
  "en-US": {
20
20
  apply: "Apply",
21
21
  cancel: "Cancel",
22
22
  noOptionsMatchThisSearch: "No options match this search"
23
23
  }
24
- }, Ce = (t, e, n) => {
25
- const l = y(t.value), { t: o } = W();
24
+ }, Ce = (t, e, n, l) => {
25
+ const a = y(t.value), { t: o } = W();
26
26
  Z(t, () => {
27
- l.value = t.value;
27
+ a.value = t.value;
28
28
  });
29
- const a = u(
30
- () => JSON.stringify(l.value) === JSON.stringify(t.value)
31
- ), r = () => {
32
- n(s.SELECT, l.value), n(s.CLOSE_DROPDOWN);
33
- }, d = () => {
34
- l.value = t.value, n(s.CLOSE_DROPDOWN);
35
- }, i = u(() => [
29
+ const d = f(
30
+ () => JSON.stringify(a.value) === JSON.stringify(t.value)
31
+ ), u = () => {
32
+ l(i.SELECT, a.value), l(i.CLOSE_DROPDOWN);
33
+ }, s = () => {
34
+ a.value = t.value, l(i.CLOSE_DROPDOWN);
35
+ }, p = () => {
36
+ n.value && e.value && (a.value = t.value);
37
+ }, x = f(() => [
36
38
  {
37
39
  title: o("apply"),
38
- event: r,
39
- disabled: a.value
40
+ event: u,
41
+ disabled: d.value
40
42
  },
41
43
  {
42
44
  title: o("cancel"),
43
- event: d
45
+ event: s
44
46
  }
45
- ]), v = (p) => {
46
- l.value = p, e.value || n(s.SELECT, p);
47
- }, h = (p) => {
48
- v(p), n(s.TAB);
49
- }, _ = (p) => {
50
- v(p), n(s.ENTER);
51
- }, x = (p) => {
52
- v(p), n(s.SPACE);
53
- }, g = () => {
54
- d(), n(s.ESCAPE);
55
- }, w = () => {
56
- n(s.SHOW_MORE);
57
- }, S = {
58
- [s.SELECT]: v,
59
- [s.SHOW_MORE]: w,
60
- [s.TAB]: h,
61
- [s.SPACE]: x,
62
- [s.ENTER]: _
47
+ ]), m = (r) => {
48
+ a.value = r, e.value || l(i.SELECT, r);
49
+ }, g = (r) => {
50
+ m(r), l(i.TAB);
51
+ }, _ = (r) => {
52
+ m(r), l(i.ENTER);
53
+ }, w = (r) => {
54
+ m(r), l(i.SPACE);
55
+ }, h = () => {
56
+ s(), l(i.ESCAPE);
57
+ }, S = () => {
58
+ l(i.SHOW_MORE);
59
+ }, $ = {
60
+ [i.SELECT]: m,
61
+ [i.SHOW_MORE]: S,
62
+ [i.TAB]: g,
63
+ [i.SPACE]: w,
64
+ [i.ENTER]: _
63
65
  };
64
66
  return {
65
67
  // Values
66
- actions: i,
67
- internalSelectedValue: l,
68
+ actions: x,
69
+ internalSelectedValue: a,
68
70
  // Methods
69
- listeners: S,
70
- onEscapeKey: g
71
+ listeners: $,
72
+ onEscapeKey: h,
73
+ onOutsideDropdownClick: p
71
74
  };
72
75
  }, Ee = K({
73
- i18n: { messages: Oe },
76
+ i18n: { messages: Le },
74
77
  name: "bento-dropdown-options-container",
75
78
  components: {
76
- BentoListbox: F,
77
- PopperContainer: N,
79
+ BentoListbox: k,
80
+ PopperContainer: P,
78
81
  BentoPopover: q
79
82
  },
83
+ directives: { BentoClickOutsideDirective: G },
80
84
  props: {
81
85
  /**
82
86
  * Defines a string value that labels an interactive element.
@@ -143,8 +147,8 @@ const Oe = {
143
147
  */
144
148
  lazyLoadType: {
145
149
  type: String,
146
- default: k.AUTOMATIC,
147
- validator: (t) => Object.values(k).includes(t)
150
+ default: F.AUTOMATIC,
151
+ validator: (t) => Object.values(F).includes(t)
148
152
  },
149
153
  /**
150
154
  * If enabled, the user will be able to select multiple items.
@@ -174,12 +178,12 @@ const Oe = {
174
178
  *
175
179
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
176
180
  */
177
- searching: F.props.searching,
181
+ searching: k.props.searching,
178
182
  /**
179
183
  * Reference to the DOM element or Vue component for positioning
180
184
  * the Dropdown container.
181
185
  */
182
- targetElement: { type: N.props.targetElement.type, required: !0 },
186
+ targetElement: { type: P.props.targetElement.type, required: !0 },
183
187
  /**
184
188
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
185
189
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -190,35 +194,31 @@ const Oe = {
190
194
  }
191
195
  },
192
196
  emits: [
193
- s.CLOSE_DROPDOWN,
194
- s.SHOW_MORE,
195
- s.SELECT,
196
- s.ENTER,
197
- s.ESCAPE,
198
- s.SPACE,
199
- s.TAB
197
+ i.CLOSE_DROPDOWN,
198
+ i.SHOW_MORE,
199
+ i.SELECT,
200
+ i.ENTER,
201
+ i.ESCAPE,
202
+ i.SPACE,
203
+ i.TAB
200
204
  ],
201
205
  setup(t, { emit: e, slots: n }) {
202
- const { selectedValue: l, multiple: o } = Y(t), a = y(null), { t: r } = W(), d = u(() => t.open && !t.disabled), i = u(() => r("noOptionsMatchThisSearch")), v = u(() => ({
206
+ const { selectedValue: l, multiple: a } = Y(t), o = y(null), { t: d } = W(), u = f(() => t.open && !t.disabled), s = f(() => d("noOptionsMatchThisSearch")), p = f(() => ({
203
207
  "b-dropdown-options-container--single": !(t != null && t.multiple)
204
- })), h = u(() => ({
208
+ })), x = f(() => ({
205
209
  "b-dropdown-options-container__listbox--small": t.inputSize === E.SMALL,
206
210
  "b-dropdown-options-container__listbox--single": !(t != null && t.multiple)
207
- })), { actions: _, internalSelectedValue: x, listeners: g, onEscapeKey: w } = Ce(
208
- l,
209
- o,
210
- e
211
- ), S = u(
212
- () => t != null && t.multiple ? q : N
213
- ), p = u(() => {
214
- var f;
215
- const D = {
216
- "min-width": `${(f = t == null ? void 0 : t.targetElement) == null ? void 0 : f.clientWidth}px`,
211
+ })), { actions: m, internalSelectedValue: g, listeners: _, onEscapeKey: w, onOutsideDropdownClick: h } = Ce(l, a, u, e), S = f(
212
+ () => t != null && t.multiple ? q : P
213
+ ), $ = f(() => {
214
+ var c;
215
+ const r = {
216
+ "min-width": `${(c = t == null ? void 0 : t.targetElement) == null ? void 0 : c.clientWidth}px`,
217
217
  "max-width": "min(500px, 95%)"
218
218
  };
219
219
  return t != null && t.multiple ? {
220
220
  actionsLayout: "space-between",
221
- actions: _.value,
221
+ actions: m.value,
222
222
  divider: !0,
223
223
  fallbackPosition: ["top-start"],
224
224
  id: B(`dropdown-options-${t.id}`),
@@ -226,7 +226,7 @@ const Oe = {
226
226
  position: "bottom-start",
227
227
  style: {
228
228
  width: "auto",
229
- ...D
229
+ ...r
230
230
  },
231
231
  targetElement: t.targetElement
232
232
  } : {
@@ -234,29 +234,30 @@ const Oe = {
234
234
  offset: [0, 8],
235
235
  position: "bottom-start",
236
236
  style: {
237
- display: d.value ? "block" : "none",
238
- ...D
237
+ display: u.value ? "block" : "none",
238
+ ...r
239
239
  },
240
240
  targetElement: t.targetElement
241
241
  };
242
242
  });
243
243
  return {
244
244
  // Values
245
- isDropdownOpen: d,
246
- conditionalClasses: v,
247
- conditionalListboxClasses: h,
248
- noResultsMessage: i,
245
+ isDropdownOpen: u,
246
+ conditionalClasses: p,
247
+ conditionalListboxClasses: x,
248
+ noResultsMessage: s,
249
249
  slots: n,
250
- actions: _,
251
- internalSelectedValue: x,
250
+ actions: m,
251
+ internalSelectedValue: g,
252
252
  // Component wrapper
253
253
  popperContainerOrPopoverComponent: S,
254
- popperContainerOrPopoverProps: p,
254
+ popperContainerOrPopoverProps: $,
255
255
  // Refs
256
- dropdownOptionsListboxRef: a,
256
+ dropdownOptionsListboxRef: o,
257
257
  // Events
258
258
  onEscapeKey: w,
259
- listeners: g
259
+ onOutsideDropdownClick: h,
260
+ listeners: _
260
261
  };
261
262
  }
262
263
  });
@@ -264,9 +265,9 @@ var $e = function() {
264
265
  var e = this, n = e._self._c;
265
266
  return e._self._setupProxy, n(e.popperContainerOrPopoverComponent, e._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [n("div", { on: { keydown: function(l) {
266
267
  return !l.type.indexOf("key") && e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
267
- } } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": e.staticCategories, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(l, o) {
268
- return { key: o, fn: function(a) {
269
- return [e._t(o, null, null, a)];
268
+ } } }, [n("bento-listbox", e._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: e.id, "aria-label": e.ariaLabel, "empty-state": e.emptyState, "is-option-disabled": e.isOptionDisabled, items: e.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": e.staticCategories, "no-results-message": e.noResultsMessage, searching: e.searching, loading: e.loading, "lazy-load-type": e.lazyLoadType, "has-more-items": e.hasMoreItems, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(l, a) {
269
+ return { key: a, fn: function(o) {
270
+ return [e._t(a, null, null, o)];
270
271
  } };
271
272
  })], null, !0) }, e.listeners))], 1)]);
272
273
  }, De = [], Re = /* @__PURE__ */ I(
@@ -275,15 +276,15 @@ var $e = function() {
275
276
  De,
276
277
  !1,
277
278
  null,
278
- "f198cd45",
279
+ "9f64e5d1",
279
280
  null,
280
281
  null
281
282
  );
282
283
  const Be = Re.exports;
283
- let V = 0;
284
+ let J = 0;
284
285
  const Ie = {
285
286
  beforeCreate() {
286
- this.uuid = V.toString(), V += 1;
287
+ this.uuid = J.toString(), J += 1;
287
288
  }
288
289
  };
289
290
  var Te = function() {
@@ -300,19 +301,19 @@ var Te = function() {
300
301
  null
301
302
  );
302
303
  const Ne = Me.exports;
303
- let J = 0;
304
+ let V = 0;
304
305
  const Pe = {
305
306
  beforeCreate() {
306
- this.uuid = J.toString(), J += 1;
307
+ this.uuid = V.toString(), V += 1;
307
308
  }
308
309
  };
309
- var Fe = function() {
310
+ var ke = function() {
310
311
  var e = this, n = e._self._c;
311
312
  return n("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? n("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), n("path", { attrs: { fill: "#00112C", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
312
- }, ke = [], Ke = /* @__PURE__ */ I(
313
+ }, Fe = [], Ke = /* @__PURE__ */ I(
313
314
  Pe,
314
- Fe,
315
315
  ke,
316
+ Fe,
316
317
  !1,
317
318
  null,
318
319
  null,
@@ -321,7 +322,7 @@ var Fe = function() {
321
322
  );
322
323
  const We = Ke.exports, ze = K({
323
324
  name: "dropdown-small-textbox",
324
- components: { ChevronDownSmallIcon: Ne, ChevronUpSmallIcon: We, DropdownBaseTextbox: xe },
325
+ components: { ChevronDownSmallIcon: Ne, ChevronUpSmallIcon: We, DropdownBaseTextbox: be },
325
326
  inheritAttrs: !1,
326
327
  props: {
327
328
  /**
@@ -393,26 +394,26 @@ const We = Ke.exports, ze = K({
393
394
  */
394
395
  value: { type: String, default: "" }
395
396
  },
396
- emits: [$.OPEN, $.CLOSE],
397
+ emits: [D.OPEN, D.CLOSE],
397
398
  setup(t, { emit: e }) {
398
- const n = u(() => ({
399
- [`b-dropdown-small-textbox--${P.DISABLED}`]: t.disabled,
400
- [`b-dropdown-small-textbox--${P.READONLY}`]: t.readonly,
401
- [`b-dropdown-small-textbox--${P.OPENED}`]: t.open
402
- })), l = u(() => t.open && !t.disabled && !t.readonly), o = () => {
403
- e($.OPEN);
404
- }, a = () => {
405
- e($.CLOSE);
406
- }, r = {
407
- [$.OPEN]: o,
408
- [$.CLOSE]: a
399
+ const n = f(() => ({
400
+ [`b-dropdown-small-textbox--${N.DISABLED}`]: t.disabled,
401
+ [`b-dropdown-small-textbox--${N.READONLY}`]: t.readonly,
402
+ [`b-dropdown-small-textbox--${N.OPENED}`]: t.open
403
+ })), l = f(() => t.open && !t.disabled && !t.readonly), a = () => {
404
+ e(D.OPEN);
405
+ }, o = () => {
406
+ e(D.CLOSE);
407
+ }, d = {
408
+ [D.OPEN]: a,
409
+ [D.CLOSE]: o
409
410
  };
410
411
  return {
411
412
  // Values
412
413
  conditionalClasses: n,
413
414
  isDropdownOpen: l,
414
415
  // Events
415
- listeners: r
416
+ listeners: d
416
417
  };
417
418
  }
418
419
  });
@@ -431,43 +432,43 @@ var Ue = function() {
431
432
  null,
432
433
  null
433
434
  );
434
- const qe = He.exports, Ve = ({ items: t, placeholder: e, selectedValue: n, staticCategories: l }) => {
435
- let o;
435
+ const qe = He.exports, Je = ({ items: t, placeholder: e, selectedValue: n, staticCategories: l }) => {
436
+ let a;
436
437
  if (l) {
437
- const a = t.value.find((r) => r.items.some((d) => d.value === n.value));
438
- o = a == null ? void 0 : a.items.find((r) => r.value === n.value);
438
+ const o = t.value.find((d) => d.items.some((u) => u.value === n.value));
439
+ a = o == null ? void 0 : o.items.find((d) => d.value === n.value);
439
440
  } else
440
- o = t.value.find(({ value: a }) => a === n.value);
441
- return (o == null ? void 0 : o.label) || e.value || null;
442
- }, Je = ({ selectedValues: t, items: e, placeholder: n }) => {
441
+ a = t.value.find(({ value: o }) => o === n.value);
442
+ return (a == null ? void 0 : a.label) || e.value || null;
443
+ }, Ve = ({ selectedValues: t, items: e, placeholder: n }) => {
443
444
  var l;
444
- return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((o) => {
445
- const { label: a } = e.value.find(({ value: r }) => r === o);
446
- return a;
445
+ return !t.value || ((l = t.value) == null ? void 0 : l.length) === 0 ? n.value || null : t.value.map((a) => {
446
+ const { label: o } = e.value.find(({ value: d }) => d === a);
447
+ return o;
447
448
  }).join(", ");
448
449
  }, Ze = ({ selectedValues: t, items: e, placeholder: n }) => {
449
450
  var l;
450
- return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((o, a) => {
451
- if (a.items) {
452
- const r = a.items.filter(
453
- (i) => t.value.includes(i.value)
451
+ return !t.value || !((l = t.value) != null && l.length) ? n.value || null : e.value.reduce((a, o) => {
452
+ if (o.items) {
453
+ const d = o.items.filter(
454
+ (s) => t.value.includes(s.value)
454
455
  );
455
- r.length === a.items.length ? o.push(a.label) : r.forEach(({ label: i }) => o.push(i));
456
+ d.length === o.items.length ? a.push(o.label) : d.forEach(({ label: s }) => a.push(s));
456
457
  }
457
- return t.value.includes(a.value) && o.push(a.label), o;
458
+ return t.value.includes(o.value) && a.push(o.label), a;
458
459
  }, []).join(", ");
459
- }, Ye = ({ items: t, placeholder: e, value: n, multiple: l, staticCategories: o }) => {
460
- const a = u(() => t.value.find((d) => {
461
- var i;
462
- return (i = d.items) == null ? void 0 : i.length;
460
+ }, Ye = ({ items: t, placeholder: e, value: n, multiple: l, staticCategories: a }) => {
461
+ const o = f(() => t.value.find((u) => {
462
+ var s;
463
+ return (s = u.items) == null ? void 0 : s.length;
463
464
  }));
464
- return u(() => l.value ? a.value ? Ze({ selectedValues: n, placeholder: e, items: t }) : Je({ selectedValues: n, items: t, placeholder: e }) : Ve({
465
+ return f(() => l.value ? o.value ? Ze({ selectedValues: n, placeholder: e, items: t }) : Ve({ selectedValues: n, items: t, placeholder: e }) : Je({
465
466
  items: t,
466
467
  placeholder: e,
467
468
  selectedValue: n,
468
- staticCategories: o.value
469
+ staticCategories: a.value
469
470
  }));
470
- }, G = (t) => {
471
+ }, Q = (t) => {
471
472
  var e;
472
473
  (e = t.value.$children) == null || e[0].$refs.textbox.focus();
473
474
  }, Ge = ({
@@ -475,78 +476,78 @@ const qe = He.exports, Ve = ({ items: t, placeholder: e, selectedValue: n, stati
475
476
  optionsContainerRef: e,
476
477
  selectedValueIndex: n,
477
478
  isDropdownOpen: l,
478
- isDynamicFltering: o,
479
- items: a,
480
- isMultiple: r
481
- }, d, i, v) => {
482
- const h = ({ detail: f }) => {
483
- f.preventDefault(), l.value || (i(), C(() => {
479
+ isDynamicFltering: a,
480
+ items: o,
481
+ isMultiple: d
482
+ }, u, s, p) => {
483
+ const x = ({ detail: r }) => {
484
+ r.preventDefault(), l.value || (s(), C(() => {
484
485
  var c, b;
485
- r ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
486
+ d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
486
487
  }));
487
- }, _ = ({ detail: f }) => {
488
- f.preventDefault(), l.value || (i(), C(() => {
488
+ }, m = ({ detail: r }) => {
489
+ r.preventDefault(), l.value || (s(), C(() => {
489
490
  var c;
490
491
  (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus();
491
492
  }));
492
- }, x = () => {
493
- l.value || (i(), C(() => {
494
- var f, c;
495
- if (r) {
493
+ }, g = () => {
494
+ l.value || (s(), C(() => {
495
+ var r, c;
496
+ if (d) {
496
497
  const b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
497
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[b.length - 1].$children[a.length - 1].$el.focus();
498
+ (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[b.length - 1].$children[o.length - 1].$el.focus();
498
499
  } else
499
- (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[a.length - 1].$el.focus();
500
+ (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[o.length - 1].$el.focus();
500
501
  }));
501
- }, g = () => {
502
- l.value && (v(), G(t));
502
+ }, _ = () => {
503
+ l.value && (p(), Q(t));
503
504
  }, w = () => {
504
- l.value || i(), C(() => {
505
- var f;
506
- (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus();
505
+ l.value || s(), C(() => {
506
+ var r;
507
+ (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus();
507
508
  });
508
- }, S = ({ detail: f }) => {
509
- f.preventDefault(), d(), l.value && C(() => {
509
+ }, h = ({ detail: r }) => {
510
+ r.preventDefault(), u(), l.value && C(() => {
510
511
  var c, b;
511
- r ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
512
+ d ? (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[0].$el.focus() : (b = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[n.value].$el.focus();
512
513
  });
513
- }, p = () => {
514
- d(), l.value && C(() => {
515
- var f, c;
516
- r ? (f = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || f[0].$el.focus() : (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
514
+ }, S = () => {
515
+ u(), l.value && C(() => {
516
+ var r, c;
517
+ d ? (r = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || r[0].$el.focus() : (c = e.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || c[n.value].$el.focus();
517
518
  });
518
519
  };
519
- return u(() => ({
520
- ...o.value ? {} : { [O.SPACE]: S },
521
- [O.ENTER]: p,
522
- [O.ARROW_DOWN]: h,
523
- [O.ARROW_UP]: _,
524
- [O.END]: x,
525
- [O.ESCAPE]: g,
526
- [O.HOME]: w
520
+ return f(() => ({
521
+ ...a.value ? {} : { [L.SPACE]: h },
522
+ [L.ENTER]: S,
523
+ [L.ARROW_DOWN]: x,
524
+ [L.ARROW_UP]: m,
525
+ [L.END]: g,
526
+ [L.ESCAPE]: _,
527
+ [L.HOME]: w
527
528
  }));
528
529
  }, Qe = ({ inputContainerRef: t, isDropdownOpen: e }, n) => {
529
530
  const l = () => {
530
531
  e.value && n(), C(() => {
531
- G(t);
532
+ Q(t);
532
533
  });
533
534
  };
534
535
  return {
535
- [s.ENTER]: l,
536
- [s.ESCAPE]: l,
537
- [s.TAB]: l,
538
- [s.SPACE]: l
536
+ [i.ENTER]: l,
537
+ [i.ESCAPE]: l,
538
+ [i.TAB]: l,
539
+ [i.SPACE]: l
539
540
  };
540
541
  };
541
542
  function Xe(t, e, n) {
542
- const l = y(t), o = y(e), a = (d, i = []) => i.flatMap((v) => v.label.toLocaleLowerCase().includes(d) ? [v, ...a(d, v.items)] : v.items ? [...a(d, v.items)] : []);
543
+ const l = y(t), a = y(e), o = (u, s = []) => s.flatMap((p) => p.label.toLocaleLowerCase().includes(u) ? [p, ...o(u, p.items)] : p.items ? [...o(u, p.items)] : []);
543
544
  return Z(l, () => {
544
545
  n !== void 0 && n(l.value);
545
- }), u(() => {
546
+ }), f(() => {
546
547
  if (!l.value || n !== void 0)
547
- return o.value;
548
- const d = l.value.toLocaleLowerCase();
549
- return a(d, o.value);
548
+ return a.value;
549
+ const u = l.value.toLocaleLowerCase();
550
+ return o(u, a.value);
550
551
  });
551
552
  }
552
553
  const et = {
@@ -560,13 +561,13 @@ const et = {
560
561
  name: "b-dropdown",
561
562
  components: {
562
563
  BentoDropdownOptionsContainer: Be,
563
- BentoTypography: ve,
564
- DropdownInputDefault: he,
564
+ BentoTypography: pe,
565
+ DropdownInputDefault: ye,
565
566
  DropdownInputSmall: qe,
566
- ErrorMessage: we,
567
- FieldLabel: Se
567
+ ErrorMessage: Se,
568
+ FieldLabel: Oe
568
569
  },
569
- directives: { BentoClickOutsideDirective: Le, BentoKeyboardNavigationDirective: _e },
570
+ directives: { BentoClickOutsideDirective: G, BentoKeyboardNavigationDirective: we },
570
571
  props: {
571
572
  /**
572
573
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -660,8 +661,8 @@ const et = {
660
661
  */
661
662
  lazyLoadType: {
662
663
  type: String,
663
- default: F.props.lazyLoadType.default,
664
- validator: (t) => Object.values(k).includes(t)
664
+ default: k.props.lazyLoadType.default,
665
+ validator: (t) => Object.values(F).includes(t)
665
666
  },
666
667
  /*
667
668
  * If enabled, the user will be able to select multiple items.
@@ -726,86 +727,86 @@ const et = {
726
727
  default: void 0
727
728
  }
728
729
  },
729
- emits: ["input", s.SHOW_MORE],
730
+ emits: ["input", i.SHOW_MORE],
730
731
  setup(t, { attrs: e, emit: n, slots: l }) {
731
732
  var H;
732
- const { t: o } = W(), a = y(null), r = y(null), d = y(null), i = y(!1), v = B("bento-dropdown-options-container"), h = B("dropdown-label"), _ = B("dropdown-description"), x = B("dropdown-error"), { isReadOnly: g } = be(L(t, "readonly")), w = y(e["aria-label"]), { ariaLabel: S } = Y(t), p = me({
733
+ const { t: a } = W(), o = y(null), d = y(null), u = y(null), s = y(!1), p = B("bento-dropdown-options-container"), x = B("dropdown-label"), m = B("dropdown-description"), g = B("dropdown-error"), { isReadOnly: _ } = ge(O(t, "readonly")), w = y(e["aria-label"]), { ariaLabel: h } = Y(t), S = _e({
733
734
  ariaLabel: w.value,
734
735
  // TODO: take this line away when the aria-label props is removed
735
- label: S,
736
- defaultFallback: o("ariaLabelFallback")
737
- }), D = u(() => ({
736
+ label: h,
737
+ defaultFallback: a("ariaLabelFallback")
738
+ }), $ = f(() => ({
738
739
  "b-dropdown--condensed": t.condensed
739
- })), f = u(() => ({
740
+ })), r = f(() => ({
740
741
  "b-dropdown__description--error": !!t.errorMessage
741
- })), c = y(""), b = L(t, "items"), Q = Xe(c, b, (H = t == null ? void 0 : t.search) == null ? void 0 : H.searchEvent), A = u(() => t.dynamicFiltering && !!c.value), X = Ye({
742
+ })), c = y(""), b = O(t, "items"), X = Xe(c, b, (H = t == null ? void 0 : t.search) == null ? void 0 : H.searchEvent), A = f(() => t.dynamicFiltering && !!c.value), ee = Ye({
742
743
  items: b,
743
- staticCategories: L(t, "staticCategories"),
744
- multiple: L(t, "multiple"),
745
- placeholder: L(t, "placeholder"),
746
- value: L(t, "value")
747
- }), ee = u(() => t.size === E.DEFAULT), te = u(() => {
744
+ staticCategories: O(t, "staticCategories"),
745
+ multiple: O(t, "multiple"),
746
+ placeholder: O(t, "placeholder"),
747
+ value: O(t, "value")
748
+ }), te = f(() => t.size === E.DEFAULT), ne = f(() => {
748
749
  if (t != null && t.multiple)
749
750
  return t.items.filter(
750
- ({ value: m }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(m)
751
+ ({ value: v }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(v)
751
752
  );
752
753
  if (!t.multiple && t.staticCategories) {
753
- const m = t.items.find(
754
- (T) => T.items.some((fe) => fe.value === t.value)
754
+ const v = t.items.find(
755
+ (T) => T.items.some((ve) => ve.value === t.value)
755
756
  );
756
- return m ? m.items.find((T) => T.value === t.value) : null;
757
+ return v ? v.items.find((T) => T.value === t.value) : null;
757
758
  }
758
- return t.items.find(({ value: m }) => m === (t == null ? void 0 : t.value));
759
- }), ne = u(() => {
760
- const m = t.items.findIndex(({ value: R }) => t.value === R);
761
- return m > 0 ? m : 0;
762
- }), { isMultiLevelSelect: le, flattenedItemsList: ae } = ye(b), oe = u(() => {
763
- var m;
759
+ return t.items.find(({ value: v }) => v === (t == null ? void 0 : t.value));
760
+ }), le = f(() => {
761
+ const v = t.items.findIndex(({ value: R }) => t.value === R);
762
+ return v > 0 ? v : 0;
763
+ }), { isMultiLevelSelect: ae, flattenedItemsList: oe } = xe(b), se = f(() => {
764
+ var v;
764
765
  if (t.multiple) {
765
- const R = (m = t == null ? void 0 : t.value) == null ? void 0 : m.length;
766
- return (le.value ? ae.value.length : b.value.length) === R ? o("all") : R;
766
+ const R = (v = t == null ? void 0 : t.value) == null ? void 0 : v.length;
767
+ return (ae.value ? oe.value.length : b.value.length) === R ? a("all") : R;
767
768
  }
768
769
  return null;
769
- }), se = u(
770
- () => `${t.description ? _ : ""} ${t.errorMessage ? x : ""}`.trim() || null
771
- ), ie = () => {
772
- g.value || (i.value = !0);
770
+ }), ie = f(
771
+ () => `${t.description ? m : ""} ${t.errorMessage ? g : ""}`.trim() || null
772
+ ), re = () => {
773
+ _.value || (s.value = !0);
773
774
  }, M = () => {
774
- i.value = !1;
775
+ s.value = !1;
775
776
  }, z = () => {
776
- g.value || (i.value = !i.value, A.value && (c.value = ""));
777
- }, re = () => {
778
- A.value && (c.value = ""), i.value && (i.value = !1);
779
- }, U = (m) => {
780
- t.multiple || (c.value = "", i.value = !1), n("input", m);
777
+ _.value || (s.value = !s.value, A.value && (c.value = ""));
778
+ }, de = () => {
779
+ A.value && (c.value = ""), s.value && (s.value = !1, u.value.onOutsideDropdownClick());
780
+ }, U = (v) => {
781
+ t.multiple || (c.value = "", s.value = !1), n("input", v);
781
782
  }, j = () => {
782
- n(s.SHOW_MORE);
783
- }, de = Ge(
783
+ n(i.SHOW_MORE);
784
+ }, ue = Ge(
784
785
  {
785
- inputContainerRef: a,
786
- optionsContainerRef: d,
787
- selectedValueIndex: ne,
788
- isDropdownOpen: i,
789
- isDynamicFltering: L(t, "dynamicFiltering"),
786
+ inputContainerRef: o,
787
+ optionsContainerRef: u,
788
+ selectedValueIndex: le,
789
+ isDropdownOpen: s,
790
+ isDynamicFltering: O(t, "dynamicFiltering"),
790
791
  items: t.items,
791
792
  isMultiple: t.multiple
792
793
  },
793
794
  z,
794
- ie,
795
+ re,
795
796
  M
796
- ), ue = Qe(
797
+ ), ce = Qe(
797
798
  {
798
- inputContainerRef: a,
799
- isDropdownOpen: i
799
+ inputContainerRef: o,
800
+ isDropdownOpen: s
800
801
  },
801
802
  M
802
- ), ce = {
803
- [s.CLOSE_DROPDOWN]: M,
804
- [s.SELECT]: U,
805
- [s.SHOW_MORE]: j,
806
- ...ue
803
+ ), fe = {
804
+ [i.CLOSE_DROPDOWN]: M,
805
+ [i.SELECT]: U,
806
+ [i.SHOW_MORE]: j,
807
+ ...ce
807
808
  };
808
- return t.error && pe(
809
+ return t.error && me(
809
810
  'BentoDropdown "error" property',
810
811
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
811
812
  Having the field as "undefined" will hide/remove the error.
@@ -813,56 +814,56 @@ const et = {
813
814
  "2.0.0"
814
815
  ), {
815
816
  // Values
816
- conditionalClasses: D,
817
- computedAriaLabel: p,
818
- additionalItemsSelected: oe,
819
- idDefaultSize: ee,
820
- isDropdownOpen: i,
821
- displayValue: X,
822
- dropdownOptionsContainerId: v,
823
- filteredItems: Q,
817
+ conditionalClasses: $,
818
+ computedAriaLabel: S,
819
+ additionalItemsSelected: se,
820
+ idDefaultSize: te,
821
+ isDropdownOpen: s,
822
+ displayValue: ee,
823
+ dropdownOptionsContainerId: p,
824
+ filteredItems: X,
824
825
  isSearching: A,
825
- isReadOnly: g,
826
+ isReadOnly: _,
826
827
  searchTerm: c,
827
- labelId: h,
828
- descriptionId: _,
829
- errorId: x,
830
- ariaDescribedBy: se,
831
- selectedValueItem: te,
828
+ labelId: x,
829
+ descriptionId: m,
830
+ errorId: g,
831
+ ariaDescribedBy: ie,
832
+ selectedValueItem: ne,
832
833
  // Conciliation of Vue2 $scopedSlots and Vue3 $scopes.
833
834
  // The setup method and the "useSlots" composible define
834
835
  // { slots } as a proxy of $scopedSlots and $scopes in their
835
836
  // respective Vue version. Source: https://github.com/vuejs/composition-api/issues/84#issuecomment-524885445
836
837
  slots: l,
837
- descriptionConditionalClasses: f,
838
+ descriptionConditionalClasses: r,
838
839
  // Methods
839
- hasSlot: ge(l),
840
+ hasSlot: he(l),
840
841
  // Refs
841
- inputContainerRef: a,
842
- inputContainerRefWrapper: r,
843
- optionsContainerRef: d,
842
+ inputContainerRef: o,
843
+ inputContainerRefWrapper: d,
844
+ optionsContainerRef: u,
844
845
  // Events
845
- closeOpenedDropdown: re,
846
+ clickOutsideDropdown: de,
846
847
  toggleDropdown: z,
847
848
  onOptionSelected: U,
848
849
  emitShowMoreEvent: j,
849
- textboxKeyboardNavigationListeners: de,
850
- listboxListeners: ce
850
+ textboxKeyboardNavigationListeners: ue,
851
+ listboxListeners: fe
851
852
  };
852
853
  }
853
854
  });
854
855
  var nt = function() {
855
856
  var l;
856
857
  var e = this, n = e._self._c;
857
- return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeOpenedDropdown, expression: "closeOpenedDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? n("field-label", { attrs: { id: e.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(o) {
858
- e.searchTerm = o;
859
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
860
- return { key: a, fn: function(r) {
861
- return [e._t(a, null, null, r)];
858
+ return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? n("field-label", { attrs: { id: e.labelId, condensed: e.condensed, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [n(e.size, { ref: "inputContainerRef", tag: "component", attrs: { condensed: e.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, ariaControls: e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, readonly: e.isReadOnly, disabled: e.disabled, "display-value": e.displayValue, "dynamic-filtering": e.dynamicFiltering, "is-invalid": !!e.errorMessage || e.error, multiple: e.multiple, open: e.isDropdownOpen, "selected-value-item": e.idDefaultSize ? e.selectedValueItem : void 0, "show-slot-content-in-multiple": e.showSlotContentInMultiple }, on: { input: function(a) {
859
+ e.searchTerm = a;
860
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
861
+ return { key: o, fn: function(d) {
862
+ return [e._t(o, null, null, d)];
862
863
  } };
863
- })], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(o, a) {
864
- return { key: a, fn: function(r) {
865
- return [e._t(a, null, null, r)];
864
+ })], null, !0) })], 1), e.inputContainerRef ? n("bento-dropdown-options-container", e._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "empty-state": e.emptyState, "debounce-time": (l = e.search) == null ? void 0 : l.debounceTime, disabled: e.disabled, "input-size": e.size, "is-option-disabled": e.isOptionDisabled, items: e.filteredItems, multiple: e.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.value, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: e.loading, "has-more-items": e.hasMoreItems, "lazy-load-type": e.lazyLoadType, "virtual-scroll": e.virtualScroll }, scopedSlots: e._u([e._l(e.slots, function(a, o) {
865
+ return { key: o, fn: function(d) {
866
+ return [e._t(o, null, null, d)];
866
867
  } };
867
868
  })], null, !0) }, e.listboxListeners)) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description || e.hasSlot("description") ? n("bento-typography", { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._t("description", function() {
868
869
  return [e._v(" " + e._s(e.description) + " ")];
@@ -873,7 +874,7 @@ var nt = function() {
873
874
  lt,
874
875
  !1,
875
876
  null,
876
- "99b7ce4a",
877
+ "df383e41",
877
878
  null,
878
879
  null
879
880
  );
@@ -883,4 +884,4 @@ export {
883
884
  E as a,
884
885
  Xe as u
885
886
  };
886
- //# sourceMappingURL=dropdown.f784ac67.js.map
887
+ //# sourceMappingURL=dropdown.7749c2d7.js.map