@adyen/bento-vue2 1.64.1 → 1.66.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 (183) hide show
  1. package/dist/@types/index.d.ts +416 -234
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions-with-menu.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/copy.css +1 -1
  9. package/dist/assets/data-grid-template.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/date.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/dropdown.css +1 -1
  14. package/dist/assets/file-uploader.css +1 -1
  15. package/dist/assets/filter-bar.css +1 -1
  16. package/dist/assets/header.css +1 -1
  17. package/dist/assets/info-icon.css +1 -1
  18. package/dist/assets/input-field-password.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/pagination.css +1 -1
  23. package/dist/assets/popover.css +1 -1
  24. package/dist/assets/sidepanel.css +1 -1
  25. package/dist/assets/step.css +1 -1
  26. package/dist/assets/summary-grid.css +1 -1
  27. package/dist/assets/tab.css +1 -0
  28. package/dist/assets/textarea.css +1 -1
  29. package/dist/assets/use-cached-selected-values.css +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{action-bar.DHdrZtmW.js → action-bar.C8zeHAJG.js} +31 -31
  32. package/dist/chunks/action-bar.C8zeHAJG.js.map +1 -0
  33. package/dist/chunks/button-actions-with-menu.BVU1NS0m.js +83 -0
  34. package/dist/chunks/button-actions-with-menu.BVU1NS0m.js.map +1 -0
  35. package/dist/chunks/calendar.DvIQEYwN.js +2086 -0
  36. package/dist/chunks/calendar.DvIQEYwN.js.map +1 -0
  37. package/dist/chunks/{checkbox-group.DVX0GFm9.js → checkbox-group.BVMGnokj.js} +4 -4
  38. package/dist/chunks/{checkbox-group.DVX0GFm9.js.map → checkbox-group.BVMGnokj.js.map} +1 -1
  39. package/dist/chunks/{checkbox.nHrvoKfp.js → checkbox.Bg5FM5Oa.js} +2 -2
  40. package/dist/chunks/{checkbox.nHrvoKfp.js.map → checkbox.Bg5FM5Oa.js.map} +1 -1
  41. package/dist/chunks/{code-snippet.y-fe04wy.js → code-snippet.BcoVTIs2.js} +3 -3
  42. package/dist/chunks/{code-snippet.y-fe04wy.js.map → code-snippet.BcoVTIs2.js.map} +1 -1
  43. package/dist/chunks/{controls-group.BWAmz7Tg.js → controls-group.CccuLkgP.js} +2 -2
  44. package/dist/chunks/{controls-group.BWAmz7Tg.js.map → controls-group.CccuLkgP.js.map} +1 -1
  45. package/dist/chunks/copy.CF8Fzu2Y.js +96 -0
  46. package/dist/chunks/copy.CF8Fzu2Y.js.map +1 -0
  47. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js → dashboard-section.CcEIwDqX.js} +3 -3
  48. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js.map → dashboard-section.CcEIwDqX.js.map} +1 -1
  49. package/dist/chunks/{data-grid-template.DtFRjaR8.js → data-grid-template.DJQcVuPs.js} +16 -14
  50. package/dist/chunks/data-grid-template.DJQcVuPs.js.map +1 -0
  51. package/dist/chunks/{data-grid.DCPJKAXM.js → data-grid.t4fCoE2Y.js} +70 -64
  52. package/dist/chunks/{data-grid.DCPJKAXM.js.map → data-grid.t4fCoE2Y.js.map} +1 -1
  53. package/dist/chunks/{date-picker.k0g6anfy.js → date-picker.DOAWsba5.js} +6 -7
  54. package/dist/chunks/{date-picker.k0g6anfy.js.map → date-picker.DOAWsba5.js.map} +1 -1
  55. package/dist/chunks/{date-range-picker.C1NVoQMD.js → date-range-picker.DYxZygbL.js} +22 -23
  56. package/dist/chunks/{date-range-picker.C1NVoQMD.js.map → date-range-picker.DYxZygbL.js.map} +1 -1
  57. package/dist/chunks/date.BfyWX2PY.js +160 -0
  58. package/dist/chunks/date.BfyWX2PY.js.map +1 -0
  59. package/dist/chunks/{dropdown-tag.Bz9wsYt7.js → dropdown-tag.DYg5l6HT.js} +2 -2
  60. package/dist/chunks/{dropdown-tag.Bz9wsYt7.js.map → dropdown-tag.DYg5l6HT.js.map} +1 -1
  61. package/dist/chunks/{dropdown.9xELPCKZ.js → dropdown.BWsU98dn.js} +273 -267
  62. package/dist/chunks/dropdown.BWsU98dn.js.map +1 -0
  63. package/dist/chunks/{error-message.1Em7Lis3.js → error-message.BgxnwPLF.js} +2 -2
  64. package/dist/chunks/{error-message.1Em7Lis3.js.map → error-message.BgxnwPLF.js.map} +1 -1
  65. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  66. package/dist/chunks/{file-uploader.DyjdNLOa.js → file-uploader.BPslxGI8.js} +323 -323
  67. package/dist/chunks/file-uploader.BPslxGI8.js.map +1 -0
  68. package/dist/chunks/{filter-bar.u3zmwRsM.js → filter-bar.Bx3wivl8.js} +664 -649
  69. package/dist/chunks/{filter-bar.u3zmwRsM.js.map → filter-bar.Bx3wivl8.js.map} +1 -1
  70. package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
  71. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
  72. package/dist/chunks/{header-with-views.piXHBTLd.js → header-with-views.B6mwBJjk.js} +13 -13
  73. package/dist/chunks/{header-with-views.piXHBTLd.js.map → header-with-views.B6mwBJjk.js.map} +1 -1
  74. package/dist/chunks/{header.Cb644uAi.js → header.hTMmMN8n.js} +25 -24
  75. package/dist/chunks/{header.Cb644uAi.js.map → header.hTMmMN8n.js.map} +1 -1
  76. package/dist/chunks/index.BrH1t1iu.js +407 -0
  77. package/dist/chunks/index.BrH1t1iu.js.map +1 -0
  78. package/dist/chunks/info-icon.CYOXx8CL.js +37 -0
  79. package/dist/chunks/info-icon.CYOXx8CL.js.map +1 -0
  80. package/dist/chunks/input-field-password.B8qWGzaB.js +252 -0
  81. package/dist/chunks/input-field-password.B8qWGzaB.js.map +1 -0
  82. package/dist/chunks/{input-field-phone-number.pnq9LO1V.js → input-field-phone-number.Bi4TJhbX.js} +3 -3
  83. package/dist/chunks/{input-field-phone-number.pnq9LO1V.js.map → input-field-phone-number.Bi4TJhbX.js.map} +1 -1
  84. package/dist/chunks/{input-field.CloLEXr_.js → input-field.L5bWjTpB.js} +3 -3
  85. package/dist/chunks/{input-field.CloLEXr_.js.map → input-field.L5bWjTpB.js.map} +1 -1
  86. package/dist/chunks/{pagination.1XBgTs6T.js → pagination.CW_1yX5C.js} +115 -115
  87. package/dist/chunks/pagination.CW_1yX5C.js.map +1 -0
  88. package/dist/chunks/{radio-group.CtPG_iiI.js → radio-group.4_KKjvAm.js} +3 -3
  89. package/dist/chunks/{radio-group.CtPG_iiI.js.map → radio-group.4_KKjvAm.js.map} +1 -1
  90. package/dist/chunks/{rich-text-editor.CLxVaskq.js → rich-text-editor.BpaFd2-y.js} +3 -3
  91. package/dist/chunks/{rich-text-editor.CLxVaskq.js.map → rich-text-editor.BpaFd2-y.js.map} +1 -1
  92. package/dist/chunks/{search-bar.BIVcXNZZ.js → search-bar.5JHI6li0.js} +3 -3
  93. package/dist/chunks/{search-bar.BIVcXNZZ.js.map → search-bar.5JHI6li0.js.map} +1 -1
  94. package/dist/chunks/{secondary-nav.CR5uIx-H.js → secondary-nav.D4hrWvf7.js} +2 -2
  95. package/dist/chunks/{secondary-nav.CR5uIx-H.js.map → secondary-nav.D4hrWvf7.js.map} +1 -1
  96. package/dist/chunks/{selection-card-group.CoqBRUT8.js → selection-card-group.0o5T4tab.js} +3 -3
  97. package/dist/chunks/{selection-card-group.CoqBRUT8.js.map → selection-card-group.0o5T4tab.js.map} +1 -1
  98. package/dist/chunks/step.DMMofD4B.js +217 -0
  99. package/dist/chunks/step.DMMofD4B.js.map +1 -0
  100. package/dist/chunks/{structured-list-item.tox2Kcb6.js → structured-list-item.Bnn6-Z3q.js} +3 -3
  101. package/dist/chunks/{structured-list-item.tox2Kcb6.js.map → structured-list-item.Bnn6-Z3q.js.map} +1 -1
  102. package/dist/chunks/summary-grid.types.Cwri2Y3T.js +337 -0
  103. package/dist/chunks/summary-grid.types.Cwri2Y3T.js.map +1 -0
  104. package/dist/chunks/tab.BhWPBxcB.js +192 -0
  105. package/dist/chunks/tab.BhWPBxcB.js.map +1 -0
  106. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
  107. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
  108. package/dist/chunks/{textarea.BPeDUAPL.js → textarea.RAU710Uw.js} +83 -80
  109. package/dist/chunks/textarea.RAU710Uw.js.map +1 -0
  110. package/dist/chunks/{timeline-item.CS9ZDOsm.js → timeline-item.DK2d00rt.js} +10 -11
  111. package/dist/chunks/timeline-item.DK2d00rt.js.map +1 -0
  112. package/dist/chunks/use-cached-selected-values.CusB5KBl.js +1320 -0
  113. package/dist/chunks/use-cached-selected-values.CusB5KBl.js.map +1 -0
  114. package/dist/code-snippet.js +1 -1
  115. package/dist/dashboard-template.js +1 -1
  116. package/dist/data-grid-template.js +1 -1
  117. package/dist/data-grid.js +1 -1
  118. package/dist/date-picker.js +2 -2
  119. package/dist/date-range-picker.js +2 -2
  120. package/dist/date.js +1 -1
  121. package/dist/dropdown.js +3 -3
  122. package/dist/file-uploader.js +1 -1
  123. package/dist/filter-bar.js +1 -1
  124. package/dist/header-with-views.js +1 -1
  125. package/dist/header.js +1 -1
  126. package/dist/index.js +34 -34
  127. package/dist/info-icon.js +1 -1
  128. package/dist/input-field-password.js +1 -1
  129. package/dist/input-field-phone-number.js +1 -1
  130. package/dist/input-field.js +1 -1
  131. package/dist/internal.js +6 -6
  132. package/dist/pagination.js +1 -1
  133. package/dist/radio-group.js +1 -1
  134. package/dist/rich-text-editor.js +1 -1
  135. package/dist/search-bar.js +2 -2
  136. package/dist/secondary-nav.js +1 -1
  137. package/dist/selection-card.js +1 -1
  138. package/dist/stepper.js +1 -1
  139. package/dist/structured-list.js +1 -1
  140. package/dist/styles/bento-dark.css +1 -0
  141. package/dist/styles/bento-light.css +1 -0
  142. package/dist/styles/bento.css +1 -0
  143. package/dist/styles/legacy.css +1 -0
  144. package/dist/styles/styleguide.css +1 -0
  145. package/dist/summary-grid.js +1 -1
  146. package/dist/tabs.js +1 -1
  147. package/dist/textarea.js +1 -1
  148. package/dist/timeline.js +1 -1
  149. package/dist/web-types.json +197 -79
  150. package/package.json +7 -6
  151. package/dist/assets/tabs.css +0 -1
  152. package/dist/chunks/action-bar.DHdrZtmW.js.map +0 -1
  153. package/dist/chunks/button-actions-with-menu.CYkEoiee.js +0 -166
  154. package/dist/chunks/button-actions-with-menu.CYkEoiee.js.map +0 -1
  155. package/dist/chunks/calendar.DbTC35rM.js +0 -1167
  156. package/dist/chunks/calendar.DbTC35rM.js.map +0 -1
  157. package/dist/chunks/copy.CXeLbvUP.js +0 -129
  158. package/dist/chunks/copy.CXeLbvUP.js.map +0 -1
  159. package/dist/chunks/data-grid-template.DtFRjaR8.js.map +0 -1
  160. package/dist/chunks/date.dYFFEunA.js +0 -987
  161. package/dist/chunks/date.dYFFEunA.js.map +0 -1
  162. package/dist/chunks/dropdown.9xELPCKZ.js.map +0 -1
  163. package/dist/chunks/file-uploader.DyjdNLOa.js.map +0 -1
  164. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  165. package/dist/chunks/index.BDuTpjD8.js +0 -40
  166. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  167. package/dist/chunks/index.DD7TppDb.js +0 -10
  168. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  169. package/dist/chunks/info-icon.B9aTl1nU.js +0 -41
  170. package/dist/chunks/info-icon.B9aTl1nU.js.map +0 -1
  171. package/dist/chunks/input-field-password.CH6pc2CI.js +0 -252
  172. package/dist/chunks/input-field-password.CH6pc2CI.js.map +0 -1
  173. package/dist/chunks/pagination.1XBgTs6T.js.map +0 -1
  174. package/dist/chunks/step.dNTg2rtW.js +0 -217
  175. package/dist/chunks/step.dNTg2rtW.js.map +0 -1
  176. package/dist/chunks/summary-grid.types.CkUIw703.js +0 -301
  177. package/dist/chunks/summary-grid.types.CkUIw703.js.map +0 -1
  178. package/dist/chunks/tabs.Dx6teJGW.js +0 -205
  179. package/dist/chunks/tabs.Dx6teJGW.js.map +0 -1
  180. package/dist/chunks/textarea.BPeDUAPL.js.map +0 -1
  181. package/dist/chunks/timeline-item.CS9ZDOsm.js.map +0 -1
  182. package/dist/chunks/use-cached-selected-values.C1CeSurp.js +0 -1271
  183. package/dist/chunks/use-cached-selected-values.C1CeSurp.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { ref as S, watch as ue, computed as u, defineComponent as N, useSlots as pe, toRefs as fe, nextTick as x, useAttrs as Oe, toRef as w, inject as Ee } from "vue";
2
- import { d as ie, B as De } from "./typography.J1v_SPG3.js";
3
- import { a as U, b as P, c as Be, B as k, D as Ie } from "./dropdown-default-textbox.BNuuA4ES.js";
1
+ import { ref as S, watch as be, computed as d, defineComponent as N, useSlots as ye, toRefs as _e, nextTick as h, useAttrs as Te, toRef as w, inject as Ne } from "vue";
2
+ import { d as pe, B as Ae } from "./typography.J1v_SPG3.js";
3
+ import { a as V, b as $, c as Re, B as P, D as Me } from "./dropdown-default-textbox.BNuuA4ES.js";
4
4
  /* empty css */
5
- import { n as K } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { s as q } from "./events.CMzGybJJ.js";
7
- import { g as F } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Te } from "./aria-label.CaUURpnB.js";
9
- import { u as V } from "./i18n.BQkEbtPM.js";
10
- import { u as Ae } from "./use-form-layout-loading.D3lALhtC.js";
11
- import { u as Ne } from "./use-has-slot.C9lQZ6nz.js";
12
- import { a as p, b as H, B as J, c as Re, u as $e } from "./use-cached-selected-values.C1CeSurp.js";
13
- import { B as E, a as Me } from "./keyboard-navigation.pB8weElW.js";
14
- import { B as Pe } from "./directive.Cbdox5VL.js";
15
- import { F as ke, E as Fe } from "./error-message.1Em7Lis3.js";
16
- import { P as re } from "./popper-container.DIFqmRsp.js";
17
- import { B as Ke } from "./popover.B05xkQ4e.js";
5
+ import { n as F } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { s as J } from "./events.CMzGybJJ.js";
7
+ import { g as k } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as $e } from "./aria-label.CaUURpnB.js";
9
+ import { u as Q } from "./i18n.BQkEbtPM.js";
10
+ import { a as p, b as Y, B as Z, c as Pe, u as ke, d as Fe } from "./use-cached-selected-values.CusB5KBl.js";
11
+ import { u as Ke } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { u as ze } from "./use-has-slot.C9lQZ6nz.js";
13
+ import { B as E, a as je } from "./keyboard-navigation.pB8weElW.js";
14
+ import { B as We } from "./directive.Cbdox5VL.js";
15
+ import { F as Ue, E as qe } from "./error-message.BgxnwPLF.js";
16
+ import { P as fe } from "./popper-container.DIFqmRsp.js";
17
+ import { B as He } from "./popover.B05xkQ4e.js";
18
18
  import "../assets/dropdown.css";
19
- const ze = {
19
+ const Ve = {
20
20
  "en-US": {
21
21
  apply: "Apply",
22
22
  cancel: "Cancel",
@@ -30,62 +30,62 @@ const ze = {
30
30
  apply: "Aplicar",
31
31
  cancel: "Cancelar"
32
32
  }
33
- }, je = (n, t, o, e) => {
34
- const a = S(n.value), { t: s } = V();
35
- ue(n, () => {
33
+ }, Je = (n, t, o, e) => {
34
+ const a = S(n.value), { t: l } = Q();
35
+ be(n, () => {
36
36
  a.value = n.value;
37
37
  });
38
- const l = u(
38
+ const s = d(
39
39
  () => JSON.stringify(a.value) === JSON.stringify(n.value)
40
40
  ), i = () => {
41
41
  e(p.SELECT, a.value), e(p.CLOSE_DROPDOWN);
42
42
  }, c = () => {
43
43
  a.value = n.value, e(p.CLOSE_DROPDOWN);
44
- }, m = () => {
44
+ }, b = () => {
45
45
  o.value && t.value && (a.value = n.value);
46
- }, r = u(() => [
46
+ }, r = d(() => [
47
47
  {
48
- title: s("apply"),
48
+ title: l("apply"),
49
49
  event: i,
50
- disabled: l.value
50
+ disabled: s.value
51
51
  },
52
52
  {
53
- title: s("cancel"),
53
+ title: l("cancel"),
54
54
  event: c
55
55
  }
56
- ]), d = (b) => {
57
- a.value = b, t.value || e(p.SELECT, b);
58
- }, g = (b) => {
59
- d(b), e(p.TAB);
60
- }, h = (b) => {
61
- d(b), e(p.ENTER);
62
- }, v = (b) => {
63
- d(b), e(p.SPACE);
56
+ ]), u = (y) => {
57
+ a.value = y, t.value || e(p.SELECT, y);
58
+ }, _ = (y) => {
59
+ u(y), e(p.TAB);
60
+ }, g = (y) => {
61
+ u(y), e(p.ENTER);
62
+ }, f = (y) => {
63
+ u(y), e(p.SPACE);
64
64
  }, O = () => {
65
65
  c(), e(p.ESCAPE);
66
- }, C = () => {
66
+ }, L = () => {
67
67
  e(p.SHOW_MORE);
68
- }, L = {
69
- [p.SELECT]: d,
70
- [p.SHOW_MORE]: C,
71
- [p.TAB]: g,
72
- [p.SPACE]: v,
73
- [p.ENTER]: h
68
+ }, x = {
69
+ [p.SELECT]: u,
70
+ [p.SHOW_MORE]: L,
71
+ [p.TAB]: _,
72
+ [p.SPACE]: f,
73
+ [p.ENTER]: g
74
74
  };
75
75
  return {
76
76
  // Values
77
77
  actions: r,
78
78
  internalSelectedValue: a,
79
79
  // Methods
80
- listeners: L,
80
+ listeners: x,
81
81
  onEscapeKey: O,
82
- onOutsideDropdownClick: m
82
+ onOutsideDropdownClick: b
83
83
  };
84
- }, We = N({
85
- i18n: { messages: ze },
84
+ }, Ye = N({
85
+ i18n: { messages: Ve },
86
86
  name: "bento-dropdown-options-container"
87
- }), Ue = /* @__PURE__ */ N({
88
- ...We,
87
+ }), Ze = /* @__PURE__ */ N({
88
+ ...Ye,
89
89
  props: {
90
90
  /**
91
91
  * Defines a string value that labels an interactive element.
@@ -144,8 +144,8 @@ const ze = {
144
144
  */
145
145
  lazyLoadType: {
146
146
  type: String,
147
- default: J.AUTOMATIC,
148
- validator: (n) => Object.values(J).includes(n)
147
+ default: Z.AUTOMATIC,
148
+ validator: (n) => Object.values(Z).includes(n)
149
149
  },
150
150
  /**
151
151
  * Indicates if new options are lazy loading.
@@ -175,7 +175,7 @@ const ze = {
175
175
  *
176
176
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
177
177
  */
178
- searching: H.props.searching,
178
+ searching: Y.props.searching,
179
179
  /**
180
180
  * If enabled, dropdown will display non-selectable, static categories
181
181
  */
@@ -184,7 +184,7 @@ const ze = {
184
184
  * Reference to the DOM element or Vue component for positioning
185
185
  * the Dropdown container.
186
186
  */
187
- targetElement: { type: re.props.targetElement.type, required: !0 },
187
+ targetElement: { type: fe.props.targetElement.type, required: !0 },
188
188
  /**
189
189
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
190
190
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -196,23 +196,23 @@ const ze = {
196
196
  },
197
197
  emits: [],
198
198
  setup(n, { expose: t, emit: o }) {
199
- const e = n, a = pe(), { selectedValue: s, multiple: l } = fe(e), i = S(null), { t: c } = V(), m = u(() => e.open && !e.disabled), r = u(() => c("noOptionsMatchThisSearch")), d = u(() => ({
199
+ const e = n, a = ye(), { selectedValue: l, multiple: s } = _e(e), i = S(null), { t: c } = Q(), b = d(() => e.open && !e.disabled), r = d(() => c("noOptionsMatchThisSearch")), u = d(() => ({
200
200
  "b-dropdown-options-container--single": !(e != null && e.multiple)
201
- })), g = u(() => ({
201
+ })), _ = d(() => ({
202
202
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
203
- })), { actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: C, onOutsideDropdownClick: L } = je(s, l, m, o), b = u(() => e != null && e.multiple ? Ke : re), I = u(() => {
204
- var T;
203
+ })), { actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x } = Je(l, s, b, o), y = d(() => e != null && e.multiple ? He : fe), B = d(() => {
204
+ var I;
205
205
  const D = {
206
- "min-width": `${(T = e == null ? void 0 : e.targetElement) == null ? void 0 : T.clientWidth}px`,
206
+ "min-width": `${(I = e == null ? void 0 : e.targetElement) == null ? void 0 : I.clientWidth}px`,
207
207
  "max-width": "min(500px, 95%)"
208
208
  };
209
209
  return e != null && e.multiple ? {
210
210
  actionsLayout: "space-between",
211
211
  ariaLabel: e.ariaLabel,
212
- actions: h.value,
212
+ actions: g.value,
213
213
  divider: !0,
214
214
  fallbackPosition: ["top-start"],
215
- id: F(`dropdown-options-${e.id}`),
215
+ id: k(`dropdown-options-${e.id}`),
216
216
  open: e.open,
217
217
  position: "bottom-start",
218
218
  style: {
@@ -225,75 +225,75 @@ const ze = {
225
225
  offset: [0, 8],
226
226
  position: "bottom-start",
227
227
  style: {
228
- display: m.value ? "block" : "none",
228
+ display: b.value ? "block" : "none",
229
229
  ...D
230
230
  },
231
231
  targetElement: e.targetElement
232
232
  };
233
233
  });
234
234
  return t({
235
- onOutsideDropdownClick: L
236
- }), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: s, multiple: l, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: m, noResultsMessage: r, conditionalClasses: d, conditionalListboxClasses: g, actions: h, internalSelectedValue: v, listeners: O, onEscapeKey: C, onOutsideDropdownClick: L, popperContainerOrPopoverComponent: b, popperContainerOrPopoverProps: I, BentoListbox: H };
235
+ onOutsideDropdownClick: x
236
+ }), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: l, multiple: s, dropdownOptionsListboxRef: i, t: c, isDropdownOpen: b, noResultsMessage: r, conditionalClasses: u, conditionalListboxClasses: _, actions: g, internalSelectedValue: f, listeners: O, onEscapeKey: L, onOutsideDropdownClick: x, popperContainerOrPopoverComponent: y, popperContainerOrPopoverProps: B, BentoListbox: Y };
237
237
  }
238
238
  });
239
- var qe = function() {
239
+ var Qe = function() {
240
240
  var t = this, o = t._self._c, e = t._self._setupProxy;
241
241
  return o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
242
242
  return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
243
- } } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, s) {
244
- return { key: s, fn: function(l) {
245
- return [t._t(s, null, null, l)];
243
+ } } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
244
+ return { key: l, fn: function(s) {
245
+ return [t._t(l, null, null, s)];
246
246
  } };
247
247
  })], null, !0) }, e.listeners))], 1)]);
248
- }, He = [], Je = /* @__PURE__ */ K(
249
- Ue,
250
- qe,
251
- He,
248
+ }, Xe = [], Ge = /* @__PURE__ */ F(
249
+ Ze,
250
+ Qe,
251
+ Xe,
252
252
  !1,
253
253
  null,
254
254
  "d774d15c"
255
255
  );
256
- const Ve = Je.exports;
257
- let de = 0;
258
- const Ye = {
256
+ const et = Ge.exports;
257
+ let ve = 0;
258
+ const tt = {
259
259
  beforeCreate() {
260
- this.uuid = de.toString(), de += 1;
260
+ this.uuid = ve.toString(), ve += 1;
261
261
  }
262
262
  };
263
- var Ze = function() {
263
+ var ot = function() {
264
264
  var t = this, o = t._self._c;
265
265
  return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
266
- }, Qe = [], Xe = /* @__PURE__ */ K(
267
- Ye,
268
- Ze,
269
- Qe,
266
+ }, at = [], nt = /* @__PURE__ */ F(
267
+ tt,
268
+ ot,
269
+ at,
270
270
  !1,
271
271
  null,
272
272
  null
273
273
  );
274
- const Ge = Xe.exports;
275
- let ce = 0;
276
- const et = {
274
+ const st = nt.exports;
275
+ let me = 0;
276
+ const lt = {
277
277
  beforeCreate() {
278
- this.uuid = ce.toString(), ce += 1;
278
+ this.uuid = me.toString(), me += 1;
279
279
  }
280
280
  };
281
- var tt = function() {
281
+ var it = function() {
282
282
  var t = this, o = t._self._c;
283
283
  return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
284
- }, ot = [], at = /* @__PURE__ */ K(
285
- et,
286
- tt,
287
- ot,
284
+ }, rt = [], dt = /* @__PURE__ */ F(
285
+ lt,
286
+ it,
287
+ rt,
288
288
  !1,
289
289
  null,
290
290
  null
291
291
  );
292
- const nt = at.exports, lt = N({
292
+ const ct = dt.exports, ut = N({
293
293
  name: "dropdown-small-textbox",
294
294
  inheritAttrs: !1
295
- }), st = /* @__PURE__ */ N({
296
- ...lt,
295
+ }), pt = /* @__PURE__ */ N({
296
+ ...ut,
297
297
  props: {
298
298
  /**
299
299
  * The number of additional items that have been selected in the dropdown.
@@ -354,138 +354,133 @@ const nt = at.exports, lt = N({
354
354
  },
355
355
  emits: ["clear", "close", "input", "keydown", "open"],
356
356
  setup(n, { expose: t, emit: o }) {
357
- const e = n, a = S(null), s = u(() => ({
358
- [`b-dropdown-small-textbox--${U.DISABLED}`]: e.disabled,
359
- [`b-dropdown-small-textbox--${U.READONLY}`]: e.readonly,
360
- [`b-dropdown-small-textbox--${U.OPENED}`]: e.open
361
- })), l = u(() => e.open && !e.disabled && !e.readonly), i = (v) => {
362
- o("input", v);
363
- }, c = (v) => {
364
- o("keydown", v);
365
- }, m = (v) => {
366
- q(v), o("open");
367
- }, r = (v) => {
368
- q(v), o("close");
369
- }, d = (v) => {
370
- q(v), o("clear");
371
- }, g = {
372
- [P.INPUT]: i,
373
- [P.OPEN]: m,
374
- [P.CLOSE]: r,
375
- [P.CLEAR]: d,
376
- [P.KEYDOWN]: c
377
- }, h = () => {
357
+ const e = n, a = S(null), l = d(() => ({
358
+ [`b-dropdown-small-textbox--${V.DISABLED}`]: e.disabled,
359
+ [`b-dropdown-small-textbox--${V.READONLY}`]: e.readonly,
360
+ [`b-dropdown-small-textbox--${V.OPENED}`]: e.open
361
+ })), s = d(() => e.open && !e.disabled && !e.readonly), i = (f) => {
362
+ o("input", f);
363
+ }, c = (f) => {
364
+ o("keydown", f);
365
+ }, b = (f) => {
366
+ J(f), o("open");
367
+ }, r = (f) => {
368
+ J(f), o("close");
369
+ }, u = (f) => {
370
+ J(f), o("clear");
371
+ }, _ = {
372
+ [$.INPUT]: i,
373
+ [$.OPEN]: b,
374
+ [$.CLOSE]: r,
375
+ [$.CLEAR]: u,
376
+ [$.KEYDOWN]: c
377
+ }, g = () => {
378
378
  a.value.focus();
379
379
  };
380
380
  return t({
381
- focus: h
382
- }), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: s, isDropdownOpen: l, onInput: i, onKeyDown: c, openDropdown: m, closeDropdown: r, clearValue: d, listeners: g, focus: h, BentoDropdownSize: k, DropdownBaseTextbox: Be, ChevronDownSmallIcon: Ge, ChevronUpSmallIcon: nt };
381
+ focus: g
382
+ }), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: l, isDropdownOpen: s, onInput: i, onKeyDown: c, openDropdown: b, closeDropdown: r, clearValue: u, listeners: _, focus: g, BentoDropdownSize: P, DropdownBaseTextbox: Re, ChevronDownSmallIcon: st, ChevronUpSmallIcon: ct };
383
383
  }
384
384
  });
385
- var it = function() {
385
+ var ft = function() {
386
386
  var t = this, o = t._self._c, e = t._self._setupProxy;
387
387
  return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
388
388
  return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
389
389
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
390
- }, rt = [], dt = /* @__PURE__ */ K(
391
- st,
392
- it,
393
- rt,
390
+ }, vt = [], mt = /* @__PURE__ */ F(
391
+ pt,
392
+ ft,
393
+ vt,
394
394
  !1,
395
395
  null,
396
396
  "d0e53db8"
397
397
  );
398
- const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
398
+ const bt = mt.exports, yt = (n, t) => t.value.reduce((o, e) => {
399
399
  if (e.items) {
400
400
  const a = e.items.filter(
401
- (l) => n.value.find((i) => i.value === l.value)
401
+ (s) => n.value.find((i) => i.value === s.value)
402
402
  );
403
- a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: l, displayValue: i }) => o.push(i ?? l));
403
+ a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: s, displayValue: i }) => o.push(i ?? s));
404
404
  }
405
405
  return n.value.find((a) => a.value === e.value) && o.push(e.displayValue ?? e.label), o;
406
- }, []).join(", "), pt = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
407
- const a = u(
408
- () => e.value && n.value.find((l) => {
406
+ }, []).join(", "), _t = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
407
+ const a = d(
408
+ () => e.value && n.value.find((s) => {
409
409
  var i;
410
- return (i = l.items) == null ? void 0 : i.length;
410
+ return (i = s.items) == null ? void 0 : i.length;
411
411
  })
412
412
  );
413
- return u(() => o.value.length ? a.value ? ut(o, n) : o.value.map(({ label: l, displayValue: i }) => i ?? l).join(", ") : t.value || null);
414
- }, ve = (n) => {
413
+ return d(() => o.value.length ? a.value ? yt(o, n) : o.value.map(({ label: s, displayValue: i }) => i ?? s).join(", ") : t.value || null);
414
+ }, ge = (n) => {
415
415
  var t;
416
416
  (t = n.value.$children) == null || t[0].$refs.textbox.focus();
417
- }, ft = ({
417
+ }, gt = ({
418
418
  inputContainerRef: n,
419
419
  optionsContainerRef: t,
420
420
  selectedValueIndex: o,
421
421
  isDropdownOpen: e,
422
422
  isDynamicFltering: a,
423
- items: s,
424
- isMultiple: l
425
- }, i, c, m) => {
426
- const r = async (f) => {
427
- var y, B;
428
- a.value && await x(), (B = (y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.$el.querySelectorAll('[role="option"]')[f]) == null || B.focus();
429
- }, d = async (f) => {
430
- var B, R;
431
- a.value && await x();
432
- const y = (B = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : B.$el.querySelectorAll(
423
+ items: l,
424
+ isMultiple: s
425
+ }, i, c, b) => {
426
+ const r = async (m) => {
427
+ var C;
428
+ a.value && await h(), (C = l.value[m]) == null || C.focus();
429
+ }, u = async (m) => {
430
+ var K, A;
431
+ a.value && await h();
432
+ const C = (K = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : K.$el.querySelectorAll(
433
433
  "button"
434
434
  );
435
- y.length ? (R = y[f]) == null || R.focus() : r(f);
436
- }, g = (f) => {
437
- var y;
438
- return (y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : y.setListboxFocusedIndex(
439
- f
435
+ C.length ? (A = C[m]) == null || A.focus() : r(m);
436
+ }, _ = (m) => {
437
+ var C;
438
+ return (C = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : C.setListboxFocusedIndex(
439
+ m
440
440
  );
441
- }, h = ({ detail: f }) => {
442
- f.preventDefault(), e.value || c(), x(() => {
443
- l ? d(0) : (g(o.value), r(o.value));
441
+ }, g = ({ detail: m }) => {
442
+ m.preventDefault(), e.value || c(), h(() => {
443
+ s ? u(0) : (_(o.value), r(o.value));
444
444
  });
445
- }, v = ({ detail: f }) => {
446
- f.preventDefault(), e.value || c(), x(() => {
447
- l ? d(0) : (g(o.value), r(o.value));
445
+ }, f = ({ detail: m }) => {
446
+ m.preventDefault(), e.value || c(), h(() => {
447
+ s ? u(0) : (_(o.value), r(o.value));
448
448
  });
449
449
  }, O = () => {
450
- e.value || (c(), x(() => {
451
- var f;
452
- if (l) {
453
- const y = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
454
- (f = y == null ? void 0 : y[y.length - 1].$el.querySelectorAll('[role="option"]')[s.length - 1]) == null || f.focus();
455
- } else
456
- g(s.length - 1), r(s.length - 1);
450
+ e.value || (c(), h(() => {
451
+ _(l.value.length - 1), r(l.value.length - 1);
457
452
  }));
458
- }, C = () => {
459
- e.value && (m(), ve(n));
460
453
  }, L = () => {
461
- e.value && m();
462
- }, b = () => {
463
- e.value || c(), x(() => {
464
- l ? d(0) : r(0);
454
+ e.value && (b(), ge(n));
455
+ }, x = () => {
456
+ e.value && b();
457
+ }, y = () => {
458
+ e.value || c(), h(() => {
459
+ r(0);
465
460
  });
466
- }, I = ({ detail: f }) => {
467
- f.preventDefault(), i(), e.value && x(() => {
468
- l ? d(0) : (g(o.value), r(o.value));
461
+ }, B = ({ detail: m }) => {
462
+ m.preventDefault(), i(), e.value && h(() => {
463
+ s ? u(0) : (_(o.value), r(o.value));
469
464
  });
470
- }, D = ({ detail: f }) => {
471
- f.preventDefault(), i(), e.value && x(() => {
472
- l ? d(0) : (g(o.value), r(o.value));
465
+ }, D = ({ detail: m }) => {
466
+ m.preventDefault(), i(), e.value && h(() => {
467
+ s ? u(0) : (_(o.value), r(o.value));
473
468
  });
474
469
  };
475
- return u(() => ({
476
- ...a.value ? {} : { [E.SPACE]: I },
470
+ return d(() => ({
471
+ ...a.value ? {} : { [E.SPACE]: B },
477
472
  [E.ENTER]: D,
478
- [E.ARROW_DOWN]: h,
479
- [E.ARROW_UP]: v,
473
+ [E.ARROW_DOWN]: g,
474
+ [E.ARROW_UP]: f,
480
475
  [E.END]: O,
481
- [E.ESCAPE]: C,
482
- [E.HOME]: b,
483
- [E.TAB]: L
476
+ [E.ESCAPE]: L,
477
+ [E.HOME]: y,
478
+ [E.TAB]: x
484
479
  }));
485
- }, vt = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
480
+ }, Ct = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
486
481
  const e = () => {
487
- t.value && o(), x(() => {
488
- ve(n);
482
+ t.value && o(), h(() => {
483
+ ge(n);
489
484
  });
490
485
  };
491
486
  return {
@@ -495,18 +490,18 @@ const ct = dt.exports, ut = (n, t) => t.value.reduce((o, e) => {
495
490
  [p.SPACE]: e
496
491
  };
497
492
  };
498
- function mt(n, t, o, e) {
499
- const a = S(n), s = S(t), l = (c, m = []) => m.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...l(c, r.items)] : [r, ...l(c, r.items)] : r.items ? [...l(c, r.items)] : []);
500
- return ue(a, () => {
493
+ function ht(n, t, o, e) {
494
+ const a = S(n), l = S(t), s = (c, b = []) => b.flatMap((r) => r.label.toLocaleLowerCase().includes(c) ? e != null && e.value && r.items ? [...s(c, r.items)] : [r, ...s(c, r.items)] : r.items ? [...s(c, r.items)] : []);
495
+ return be(a, () => {
501
496
  o !== void 0 && o(a.value);
502
- }), u(() => {
497
+ }), d(() => {
503
498
  if (!a.value || o !== void 0)
504
- return s.value;
499
+ return l.value;
505
500
  const c = a.value.toLocaleLowerCase();
506
- return l(c, s.value);
501
+ return s(c, l.value);
507
502
  });
508
503
  }
509
- const yt = {
504
+ const St = {
510
505
  "en-US": {
511
506
  all: "All",
512
507
  ariaLabelFallback: "Dropdown",
@@ -520,15 +515,15 @@ const yt = {
520
515
  all: "Todos",
521
516
  clearFilter: "Limpar filtro"
522
517
  }
523
- }, bt = Symbol("input field component injection key"), Kt = Symbol("input field hint injection key"), zt = Symbol("input field parent component injection key"), _t = N({
524
- i18n: { messages: yt },
518
+ }, wt = Symbol("input field component injection key"), Ht = Symbol("input field hint injection key"), Vt = Symbol("input field parent component injection key"), Lt = N({
519
+ i18n: { messages: St },
525
520
  name: "b-dropdown",
526
521
  components: {
527
- DropdownInputDefault: Ie,
528
- DropdownInputSmall: ct
522
+ DropdownInputDefault: Me,
523
+ DropdownInputSmall: bt
529
524
  }
530
- }), gt = /* @__PURE__ */ N({
531
- ..._t,
525
+ }), xt = /* @__PURE__ */ N({
526
+ ...Lt,
532
527
  props: {
533
528
  /**
534
529
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -619,8 +614,8 @@ const yt = {
619
614
  */
620
615
  lazyLoadType: {
621
616
  type: String,
622
- default: H.props.lazyLoadType.default,
623
- validator: (n) => Object.values(J).includes(n)
617
+ default: Y.props.lazyLoadType.default,
618
+ validator: (n) => Object.values(Z).includes(n)
624
619
  },
625
620
  /*
626
621
  * If enabled, the user will be able to select multiple items.
@@ -660,7 +655,7 @@ const yt = {
660
655
  size: {
661
656
  type: String,
662
657
  default: null,
663
- validator: (n) => Object.values(k).includes(n)
658
+ validator: (n) => Object.values(P).includes(n)
664
659
  },
665
660
  /**
666
661
  * If enabled, dropdown will display non-selectable, static categories
@@ -704,131 +699,142 @@ const yt = {
704
699
  },
705
700
  emits: ["input", "show-more"],
706
701
  setup(n, { expose: t, emit: o }) {
707
- var se;
708
- const e = n, a = Oe(), s = pe(), l = Ne(s), { t: i } = V(), c = S(null), m = S(null), r = S(null), d = S(!1), g = F("bento-dropdown-options-container"), h = F("dropdown-label"), v = F("dropdown-description"), O = F("dropdown-error"), { isReadOnly: C } = Ae(w(e, "readonly")), { cachedSelectedListboxOptions: L, cachedListboxSelectedValues: b, setCachedValues: I } = Re(
702
+ var ue;
703
+ const e = n, a = Te(), l = ye(), s = ze(l), { t: i } = Q(), c = S(null), b = S(null), r = S(null), u = S(!1), _ = k("bento-dropdown-options-container"), g = k("dropdown-label"), f = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: L } = Ke(w(e, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: B } = Pe(
709
704
  w(e, "items"),
710
705
  w(e, "value"),
711
706
  w(e, "multiple"),
712
707
  w(e, "enableValueLabelPair")
713
- ), D = S(a["aria-label"]), { ariaLabel: T, label: f } = fe(e), y = u(() => i("ariaLabelFallback")), B = Te({
708
+ ), D = S(a["aria-label"]), { ariaLabel: I, label: m } = _e(e), C = d(() => i("ariaLabelFallback")), K = $e({
714
709
  // TODO: take ariaLabel ref away when aria-label prop is removed
715
- ariaLabel: T.value || D,
716
- label: f,
717
- defaultFallback: y
718
- }), R = e.size === k.SMALL || Ee(bt, !1), me = u(() => R ? k.SMALL : k.DEFAULT), ye = u(() => ({
710
+ ariaLabel: I.value || D,
711
+ label: m,
712
+ defaultFallback: C
713
+ }), A = e.size === P.SMALL || Ne(wt, !1), Ce = d(() => A ? P.SMALL : P.DEFAULT), he = d(() => ({
719
714
  "b-dropdown--condensed": e.condensed
720
- })), be = u(() => ({
715
+ })), Se = d(() => ({
721
716
  "b-dropdown__description--error": !!e.errorMessage
722
- })), A = S(""), $ = w(e, "items"), Y = w(e, "staticCategories"), Z = mt(A, $, (se = e == null ? void 0 : e.search) == null ? void 0 : se.searchEvent, Y), j = u(() => e.dynamicFiltering && !!A.value), _e = pt({
723
- items: $,
717
+ })), T = S(""), R = w(e, "items"), X = w(e, "staticCategories"), j = ht(T, R, (ue = e == null ? void 0 : e.search) == null ? void 0 : ue.searchEvent, X), W = d(() => e.dynamicFiltering && !!T.value), we = _t({
718
+ items: R,
724
719
  placeholder: w(e, "placeholder"),
725
720
  isMultiSelect: w(e, "multiple"),
726
- selectedValues: L
727
- }), ge = u(() => {
721
+ selectedValues: x
722
+ }), Le = d(() => {
728
723
  if (e != null && e.multiple && Array.isArray(e.value))
729
724
  return e.items.filter(
730
- ({ value: _ }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(_)
725
+ ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
731
726
  );
732
727
  if (!e.multiple && e.staticCategories) {
733
- const _ = e.items.find(
734
- (W) => W.items.some((xe) => xe.value === e.value)
728
+ const v = e.items.find(
729
+ (H) => H.items.some((Ie) => Ie.value === e.value)
735
730
  );
736
- return _ ? _.items.find((W) => W.value === e.value) : null;
731
+ return v ? v.items.find((H) => H.value === e.value) : null;
737
732
  }
738
- return e.items.find(({ value: _ }) => _ === (e == null ? void 0 : e.value));
739
- }), Q = u(() => {
740
- const _ = Z.value.findIndex(({ value: M }) => e.value === M);
741
- return _ > -1 ? _ : 0;
742
- }), { isMultiLevelSelect: X, flattenedItemsList: G } = $e($), he = u(() => {
733
+ return e.items.find(({ value: v }) => v === (e == null ? void 0 : e.value));
734
+ }), G = d(() => {
735
+ const v = j.value.findIndex(({ value: M }) => e.value === M);
736
+ return v > -1 ? v : 0;
737
+ }), { isMultiLevelSelect: U, flattenedItemsList: ee } = ke(R), te = d(() => U.value && !e.staticCategories), oe = d(() => te.value ? "treeitem" : "option"), xe = d(() => {
743
738
  if (e.multiple) {
744
- const _ = Array.isArray(e.value) ? e.value.length : 0, M = X.value ? G.value.length : $.value.length;
745
- return _ === 0 ? null : !e.hasMoreItems && M > 0 && M === _ ? i("all") : _;
739
+ const v = Array.isArray(e.value) ? e.value.length : 0, M = U.value ? ee.value.length : R.value.length;
740
+ return v === 0 ? null : !e.hasMoreItems && M > 0 && M === v ? i("all") : v;
746
741
  }
747
742
  return null;
748
- }), Se = u(
749
- () => `${e.description ? v : ""} ${e.errorMessage ? O : ""}`.trim() || null
750
- ), ee = () => {
751
- C.value || (d.value = !0);
743
+ }), Oe = d(
744
+ () => `${e.description ? f : ""} ${e.errorMessage ? O : ""}`.trim() || null
745
+ ), ae = d(() => {
746
+ var v;
747
+ return (v = r.value) == null ? void 0 : v.$el;
748
+ }), { visibleDomOptions: ne, updateVisibleDomOptions: q } = Fe(
749
+ ae,
750
+ j,
751
+ oe
752
+ ), se = () => {
753
+ L.value || (u.value = !0, h(() => {
754
+ q();
755
+ }));
752
756
  }, z = () => {
753
- d.value = !1;
754
- }, te = () => {
755
- C.value || (d.value = !d.value, j.value && (A.value = ""));
756
- }, we = () => {
757
- j.value && (A.value = ""), d.value && (d.value = !1, r.value.onOutsideDropdownClick());
758
- }, oe = (_) => {
759
- e.multiple || (A.value = "", d.value = !1), I(_), o("input", b.value);
760
- }, ae = () => {
757
+ u.value = !1;
758
+ }, le = () => {
759
+ L.value || (u.value = !u.value, h(() => {
760
+ q();
761
+ }), W.value && (T.value = ""));
762
+ }, Ee = () => {
763
+ W.value && (T.value = ""), u.value && (u.value = !1, r.value.onOutsideDropdownClick());
764
+ }, ie = (v) => {
765
+ e.multiple || (T.value = "", u.value = !1), B(v), o("input", y.value);
766
+ }, re = () => {
761
767
  o(p.SHOW_MORE);
762
- }, Ce = ft(
768
+ }, De = gt(
763
769
  {
764
770
  inputContainerRef: c,
765
771
  optionsContainerRef: r,
766
- selectedValueIndex: Q,
767
- isDropdownOpen: d,
772
+ selectedValueIndex: G,
773
+ isDropdownOpen: u,
768
774
  isDynamicFltering: w(e, "dynamicFiltering"),
769
- items: e.items,
775
+ items: ne,
770
776
  isMultiple: e.multiple
771
777
  },
772
- te,
773
- ee,
778
+ le,
779
+ se,
774
780
  z
775
- ), ne = vt(
781
+ ), de = Ct(
776
782
  {
777
783
  inputContainerRef: c,
778
- isDropdownOpen: d
784
+ isDropdownOpen: u
779
785
  },
780
786
  z
781
- ), Le = {
787
+ ), Be = {
782
788
  [p.CLOSE_DROPDOWN]: z,
783
- [p.SELECT]: oe,
784
- [p.SHOW_MORE]: ae,
785
- ...ne
789
+ [p.SELECT]: ie,
790
+ [p.SHOW_MORE]: re,
791
+ ...de
786
792
  };
787
- e.error && ie(
793
+ e.error && pe(
788
794
  'BentoDropdown "error" property',
789
795
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
790
796
  Having the field as "undefined" will hide/remove the error.
791
797
  <bento-dropdown errorMessage="Error message text" />`,
792
798
  "2.0.0"
793
- ), e.size && ie('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
794
- const le = () => {
799
+ ), e.size && pe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0");
800
+ const ce = () => {
795
801
  c.value.focus();
796
802
  };
797
803
  return t({
798
- focus: le
799
- }), { __sfc: !0, attrs: a, slots: s, hasSlot: l, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: m, optionsContainerRef: r, isDropdownOpen: d, dropdownOptionsContainerId: g, labelId: h, descriptionId: v, errorId: O, isReadOnly: C, cachedSelectedListboxOptions: L, cachedListboxSelectedValues: b, setCachedValues: I, ariaLabelAttribute: D, ariaLabel: T, label: f, computedAriaLabelFallbackMessage: y, computedAriaLabel: B, isInputComponent: R, computedSize: me, conditionalClasses: ye, descriptionConditionalClasses: be, searchTerm: A, items: $, staticCategories: Y, filteredItems: Z, isSearching: j, displayValue: _e, selectedValueItem: ge, selectedValueIndex: Q, isMultiLevelSelect: X, flattenedItemsList: G, additionalItemsSelected: he, ariaDescribedBy: Se, openDropdown: ee, closeDropdown: z, toggleDropdown: te, clickOutsideDropdown: we, onOptionSelected: oe, emitShowMoreEvent: ae, textboxKeyboardNavigationListeners: Ce, listboxKeyboardNavigationListeners: ne, listboxListeners: Le, focus: le, BentoDropdownOptionsContainer: Ve, BentoTypography: De, ErrorMessage: Fe, FieldLabel: ke, vBentoClickOutsideDirective: Pe, vBentoKeyboardNavigationDirective: Me };
804
+ focus: ce
805
+ }), { __sfc: !0, attrs: a, slots: l, hasSlot: s, props: e, emit: o, t: i, inputContainerRef: c, inputContainerRefWrapper: b, optionsContainerRef: r, isDropdownOpen: u, dropdownOptionsContainerId: _, labelId: g, descriptionId: f, errorId: O, isReadOnly: L, cachedSelectedListboxOptions: x, cachedListboxSelectedValues: y, setCachedValues: B, ariaLabelAttribute: D, ariaLabel: I, label: m, computedAriaLabelFallbackMessage: C, computedAriaLabel: K, isInputComponent: A, computedSize: Ce, conditionalClasses: he, descriptionConditionalClasses: Se, searchTerm: T, items: R, staticCategories: X, filteredItems: j, isSearching: W, displayValue: we, selectedValueItem: Le, selectedValueIndex: G, isMultiLevelSelect: U, flattenedItemsList: ee, isTreePattern: te, computedOptionRole: oe, additionalItemsSelected: xe, ariaDescribedBy: Oe, listboxRef: ae, visibleDomOptions: ne, updateVisibleDomOptions: q, openDropdown: se, closeDropdown: z, toggleDropdown: le, clickOutsideDropdown: Ee, onOptionSelected: ie, emitShowMoreEvent: re, textboxKeyboardNavigationListeners: De, listboxKeyboardNavigationListeners: de, listboxListeners: Be, focus: ce, BentoDropdownOptionsContainer: et, BentoTypography: Ae, ErrorMessage: qe, FieldLabel: Ue, vBentoClickOutsideDirective: We, vBentoKeyboardNavigationDirective: je };
800
806
  }
801
807
  });
802
- var ht = function() {
808
+ var Ot = function() {
803
809
  var a;
804
810
  var t = this, o = t._self._c, e = t._self._setupProxy;
805
- return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": 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: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(s) {
806
- e.searchTerm = s;
807
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(s, l) {
808
- return { key: l, fn: function(i) {
809
- return [t._t(l, null, null, i)];
811
+ return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": 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: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(l) {
812
+ e.searchTerm = l;
813
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
814
+ return { key: s, fn: function(i) {
815
+ return [t._t(s, null, null, i)];
810
816
  } };
811
- })], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (a = t.search) == null ? void 0 : a.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(s, l) {
812
- return { key: l, fn: function(i) {
813
- return [t._t(l, null, null, i)];
817
+ })], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "debounce-time": (a = t.search) == null ? void 0 : a.debounceTime, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(l, s) {
818
+ return { key: s, fn: function(i) {
819
+ return [t._t(s, null, null, i)];
814
820
  } };
815
821
  })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
816
822
  return [t._v(" " + t._s(t.description) + " ")];
817
823
  })], 2) : t._e()], 1);
818
- }, St = [], wt = /* @__PURE__ */ K(
819
- gt,
820
- ht,
821
- St,
824
+ }, Et = [], Dt = /* @__PURE__ */ F(
825
+ xt,
826
+ Ot,
827
+ Et,
822
828
  !1,
823
829
  null,
824
- "4355e954"
830
+ "0a1282c1"
825
831
  );
826
- const jt = wt.exports;
832
+ const Jt = Dt.exports;
827
833
  export {
828
- jt as B,
829
- Kt as I,
830
- bt as a,
831
- zt as b,
832
- mt as u
834
+ Jt as B,
835
+ Ht as I,
836
+ wt as a,
837
+ Vt as b,
838
+ ht as u
833
839
  };
834
- //# sourceMappingURL=dropdown.9xELPCKZ.js.map
840
+ //# sourceMappingURL=dropdown.BWsU98dn.js.map