@adyen/bento-vue3 1.34.0 → 1.35.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 (203) hide show
  1. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +7 -7
  8. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +7 -7
  10. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +7 -7
  11. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +7 -7
  12. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -3
  15. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/utils/ts/get-date-locale/get-date-locale.d.ts +11 -0
  17. package/dist/accordion.js +1 -1
  18. package/dist/action-bar.js +1 -1
  19. package/dist/alert.js +1 -1
  20. package/dist/assets/accordion-item.css +1 -1
  21. package/dist/assets/action-bar.css +1 -1
  22. package/dist/assets/avatar.css +1 -1
  23. package/dist/assets/base-modal.css +1 -1
  24. package/dist/assets/calendar.css +1 -1
  25. package/dist/assets/card.css +1 -1
  26. package/dist/assets/checkbox.css +1 -1
  27. package/dist/assets/code-snippet.css +1 -1
  28. package/dist/assets/currency.css +1 -0
  29. package/dist/assets/data-grid.css +1 -1
  30. package/dist/assets/date-range-picker.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/dropdown.css +1 -1
  33. package/dist/assets/error-message.css +1 -1
  34. package/dist/assets/filter-bar.css +1 -1
  35. package/dist/assets/header.css +1 -1
  36. package/dist/assets/inspector.css +1 -1
  37. package/dist/assets/loading-button.css +1 -1
  38. package/dist/assets/menu.css +1 -1
  39. package/dist/assets/modal-fullscreen.css +1 -1
  40. package/dist/assets/popover.css +1 -1
  41. package/dist/assets/sidepanel.css +1 -1
  42. package/dist/assets/structured-list-item.css +1 -1
  43. package/dist/assets/tutorial.css +1 -1
  44. package/dist/avatar.js +1 -1
  45. package/dist/button.js +2 -2
  46. package/dist/card.js +1 -1
  47. package/dist/checkbox.js +2 -2
  48. package/dist/chunks/accordion-item.C30QFxol.js +142 -0
  49. package/dist/chunks/accordion-item.C30QFxol.js.map +1 -0
  50. package/dist/chunks/{action-bar.DGQYYi8b.js → action-bar.5XBrXwYv.js} +58 -44
  51. package/dist/chunks/{action-bar.DGQYYi8b.js.map → action-bar.5XBrXwYv.js.map} +1 -1
  52. package/dist/chunks/{alert.Bz4tNKDH.js → alert.BvSx_Bi7.js} +26 -20
  53. package/dist/chunks/{alert.Bz4tNKDH.js.map → alert.BvSx_Bi7.js.map} +1 -1
  54. package/dist/chunks/{avatar.mNlMngHQ.js → avatar.8erKxh8t.js} +13 -13
  55. package/dist/chunks/avatar.8erKxh8t.js.map +1 -0
  56. package/dist/chunks/{base-modal.Bl7DBkt0.js → base-modal.BenvK-Np.js} +35 -29
  57. package/dist/chunks/{base-modal.Bl7DBkt0.js.map → base-modal.BenvK-Np.js.map} +1 -1
  58. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js → button-actions-with-menu.CHOjMHpd.js} +4 -4
  59. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js.map → button-actions-with-menu.CHOjMHpd.js.map} +1 -1
  60. package/dist/chunks/{button-actions.hdK5IgrZ.js → button-actions.DyI_dSvx.js} +2 -2
  61. package/dist/chunks/{button-actions.hdK5IgrZ.js.map → button-actions.DyI_dSvx.js.map} +1 -1
  62. package/dist/chunks/{calendar.D--sOCBT.js → calendar.DzYaxc0M.js} +148 -148
  63. package/dist/chunks/calendar.DzYaxc0M.js.map +1 -0
  64. package/dist/chunks/{card.BvSoujBc.js → card.Bt8jcp9I.js} +45 -37
  65. package/dist/chunks/card.Bt8jcp9I.js.map +1 -0
  66. package/dist/chunks/{checkbox-group.CuLP3hPd.js → checkbox-group.B0wngKi6.js} +4 -4
  67. package/dist/chunks/{checkbox-group.CuLP3hPd.js.map → checkbox-group.B0wngKi6.js.map} +1 -1
  68. package/dist/chunks/{checkbox.DMMXn-h8.js → checkbox.Bk_jmkGe.js} +50 -40
  69. package/dist/chunks/{checkbox.DMMXn-h8.js.map → checkbox.Bk_jmkGe.js.map} +1 -1
  70. package/dist/chunks/{code-snippet.BWM5w4CP.js → code-snippet.1SigVnjS.js} +97 -88
  71. package/dist/chunks/code-snippet.1SigVnjS.js.map +1 -0
  72. package/dist/chunks/{controls-group.BnZVHgQK.js → controls-group.COc0kArc.js} +2 -2
  73. package/dist/chunks/{controls-group.BnZVHgQK.js.map → controls-group.COc0kArc.js.map} +1 -1
  74. package/dist/chunks/{copy.h-wVGvID.js → copy.1-HH1fz5.js} +28 -20
  75. package/dist/chunks/{copy.h-wVGvID.js.map → copy.1-HH1fz5.js.map} +1 -1
  76. package/dist/chunks/{currency.CFJy6QYU.js → currency.BdtY-UIM.js} +3 -2
  77. package/dist/chunks/{currency.CFJy6QYU.js.map → currency.BdtY-UIM.js.map} +1 -1
  78. package/dist/chunks/{dashboard-section.BIH2wzgk.js → dashboard-section.BOrGKdY9.js} +2 -2
  79. package/dist/chunks/{dashboard-section.BIH2wzgk.js.map → dashboard-section.BOrGKdY9.js.map} +1 -1
  80. package/dist/chunks/{dashed-underline.CFJdLuJp.js → dashed-underline.BO4BuqUM.js} +2 -2
  81. package/dist/chunks/{dashed-underline.CFJdLuJp.js.map → dashed-underline.BO4BuqUM.js.map} +1 -1
  82. package/dist/chunks/{data-grid-template.21gqdYrs.js → data-grid-template.O946JKTa.js} +2 -2
  83. package/dist/chunks/{data-grid-template.21gqdYrs.js.map → data-grid-template.O946JKTa.js.map} +1 -1
  84. package/dist/chunks/{data-grid.DUwLxtW_.js → data-grid.Bv5TA_zR.js} +578 -532
  85. package/dist/chunks/{data-grid.DUwLxtW_.js.map → data-grid.Bv5TA_zR.js.map} +1 -1
  86. package/dist/chunks/{date-picker.21z_Sw4V.js → date-picker.DvEPEMIM.js} +99 -91
  87. package/dist/chunks/date-picker.DvEPEMIM.js.map +1 -0
  88. package/dist/chunks/{date-range-picker.K2TeW8aX.js → date-range-picker.BLVlkkG_.js} +338 -316
  89. package/dist/chunks/date-range-picker.BLVlkkG_.js.map +1 -0
  90. package/dist/chunks/{date.D8rQMzMG.js → date.CYUV4seY.js} +92 -92
  91. package/dist/chunks/{date.D8rQMzMG.js.map → date.CYUV4seY.js.map} +1 -1
  92. package/dist/chunks/{dropdown-tag.BNJnscD2.js → dropdown-tag.bpKWbC_O.js} +3 -3
  93. package/dist/chunks/{dropdown-tag.BNJnscD2.js.map → dropdown-tag.bpKWbC_O.js.map} +1 -1
  94. package/dist/chunks/{dropdown.ex87AZ7s.js → dropdown.rFZp3hMb.js} +212 -193
  95. package/dist/chunks/dropdown.rFZp3hMb.js.map +1 -0
  96. package/dist/chunks/{error-message.D2Y99KjT.js → error-message.DblYEZ7E.js} +43 -29
  97. package/dist/chunks/{error-message.D2Y99KjT.js.map → error-message.DblYEZ7E.js.map} +1 -1
  98. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  99. package/dist/chunks/{filter-bar.BAmG-yML.js → filter-bar.IN7gqxsc.js} +727 -712
  100. package/dist/chunks/filter-bar.IN7gqxsc.js.map +1 -0
  101. package/dist/chunks/{footer-actions.gtxofUAa.js → footer-actions.CyoMN_ca.js} +2 -2
  102. package/dist/chunks/{footer-actions.gtxofUAa.js.map → footer-actions.CyoMN_ca.js.map} +1 -1
  103. package/dist/chunks/{form-layout-title.Boi0QQZL.js → form-layout-title.Bi_3du_6.js} +2 -2
  104. package/dist/chunks/{form-layout-title.Boi0QQZL.js.map → form-layout-title.Bi_3du_6.js.map} +1 -1
  105. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  106. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  107. package/dist/chunks/{header.BMYhkrGT.js → header.Byd6jXl6.js} +104 -98
  108. package/dist/chunks/{header.BMYhkrGT.js.map → header.Byd6jXl6.js.map} +1 -1
  109. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  110. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  111. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  112. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  113. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  114. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  115. package/dist/chunks/{input-field.Dely7A8G.js → input-field.CgS1AEGu.js} +3 -3
  116. package/dist/chunks/{input-field.Dely7A8G.js.map → input-field.CgS1AEGu.js.map} +1 -1
  117. package/dist/chunks/{inspector.types.t2SPyhw3.js → inspector.types.xpv2J9pJ.js} +44 -36
  118. package/dist/chunks/{inspector.types.t2SPyhw3.js.map → inspector.types.xpv2J9pJ.js.map} +1 -1
  119. package/dist/chunks/loading-button.Bntgn6Lk.js +137 -0
  120. package/dist/chunks/loading-button.Bntgn6Lk.js.map +1 -0
  121. package/dist/chunks/{menu.CLicp_2I.js → menu.BN5WGXw3.js} +2 -2
  122. package/dist/chunks/{menu.CLicp_2I.js.map → menu.BN5WGXw3.js.map} +1 -1
  123. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js → modal-fullscreen.zljoH4pr.js} +35 -29
  124. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js.map → modal-fullscreen.zljoH4pr.js.map} +1 -1
  125. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js → modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js} +31 -25
  126. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js.map +1 -0
  127. package/dist/chunks/{pagination.I5w8bpUS.js → pagination.BMn5ryDD.js} +2 -2
  128. package/dist/chunks/{pagination.I5w8bpUS.js.map → pagination.BMn5ryDD.js.map} +1 -1
  129. package/dist/chunks/{popover.DQP3ce2x.js → popover.pDk6zsak.js} +2 -2
  130. package/dist/chunks/{popover.DQP3ce2x.js.map → popover.pDk6zsak.js.map} +1 -1
  131. package/dist/chunks/{radio-group.lOSBHghv.js → radio-group.DUtoFXmr.js} +3 -3
  132. package/dist/chunks/{radio-group.lOSBHghv.js.map → radio-group.DUtoFXmr.js.map} +1 -1
  133. package/dist/chunks/{search-bar.GCRTgBUA.js → search-bar.poJCoGD-.js} +49 -41
  134. package/dist/chunks/{search-bar.GCRTgBUA.js.map → search-bar.poJCoGD-.js.map} +1 -1
  135. package/dist/chunks/{secondary-nav.CGH_6m7u.js → secondary-nav.Dyvd-YBg.js} +2 -2
  136. package/dist/chunks/{secondary-nav.CGH_6m7u.js.map → secondary-nav.Dyvd-YBg.js.map} +1 -1
  137. package/dist/chunks/{selection-card-group.BdTuPhEm.js → selection-card-group.CHBS81j6.js} +3 -3
  138. package/dist/chunks/{selection-card-group.BdTuPhEm.js.map → selection-card-group.CHBS81j6.js.map} +1 -1
  139. package/dist/chunks/{sidepanel.DA8nQepj.js → sidepanel.CuQCXV1E.js} +36 -30
  140. package/dist/chunks/{sidepanel.DA8nQepj.js.map → sidepanel.CuQCXV1E.js.map} +1 -1
  141. package/dist/chunks/{structured-list-item.Z-1ivOFu.js → structured-list-item.1A2sjhP4.js} +35 -29
  142. package/dist/chunks/{structured-list-item.Z-1ivOFu.js.map → structured-list-item.1A2sjhP4.js.map} +1 -1
  143. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js → summary-grid-item-custom.CuvUVoQ8.js} +2 -2
  144. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js.map → summary-grid-item-custom.CuvUVoQ8.js.map} +1 -1
  145. package/dist/chunks/{textarea.kYFGQFwd.js → textarea.CHnvON8G.js} +2 -2
  146. package/dist/chunks/{textarea.kYFGQFwd.js.map → textarea.CHnvON8G.js.map} +1 -1
  147. package/dist/chunks/{timeline-item.D-Yy2qQr.js → timeline-item.Dc_l5Xyy.js} +81 -75
  148. package/dist/chunks/{timeline-item.D-Yy2qQr.js.map → timeline-item.Dc_l5Xyy.js.map} +1 -1
  149. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js} +82 -70
  150. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js.map → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js.map} +1 -1
  151. package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js → use-cached-selected-values.CS3gHOyI.js} +86 -72
  152. package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js.map → use-cached-selected-values.CS3gHOyI.js.map} +1 -1
  153. package/dist/code-snippet.js +1 -1
  154. package/dist/currency.js +1 -1
  155. package/dist/dashboard-template.js +1 -1
  156. package/dist/dashed-underline.js +1 -1
  157. package/dist/data-grid-template.js +1 -1
  158. package/dist/data-grid.js +1 -1
  159. package/dist/date-picker.js +2 -2
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/date.js +1 -1
  162. package/dist/dropdown.js +3 -3
  163. package/dist/filter-bar.js +1 -1
  164. package/dist/form-layout.js +1 -1
  165. package/dist/header.js +1 -1
  166. package/dist/index.js +43 -43
  167. package/dist/input-field.js +1 -1
  168. package/dist/inspector.js +1 -1
  169. package/dist/internal.js +5 -5
  170. package/dist/menu.js +1 -1
  171. package/dist/modal-fullscreen.js +1 -1
  172. package/dist/modal.js +2 -2
  173. package/dist/pagination.js +1 -1
  174. package/dist/popover.js +1 -1
  175. package/dist/radio-group.js +1 -1
  176. package/dist/search-bar.js +2 -2
  177. package/dist/secondary-nav.js +1 -1
  178. package/dist/selection-card.js +1 -1
  179. package/dist/sidepanel.js +1 -1
  180. package/dist/structured-list.js +1 -1
  181. package/dist/styles/bento.css +3 -0
  182. package/dist/styles/legacy.css +3 -0
  183. package/dist/styles/styleguide.css +3 -0
  184. package/dist/summary-grid.js +1 -1
  185. package/dist/textarea.js +1 -1
  186. package/dist/timeline.js +1 -1
  187. package/dist/tutorial.js +1 -1
  188. package/dist/web-types.json +1 -1
  189. package/package.json +2 -2
  190. package/dist/chunks/accordion-item.CQ8DLt9l.js +0 -126
  191. package/dist/chunks/accordion-item.CQ8DLt9l.js.map +0 -1
  192. package/dist/chunks/avatar.mNlMngHQ.js.map +0 -1
  193. package/dist/chunks/calendar.D--sOCBT.js.map +0 -1
  194. package/dist/chunks/card.BvSoujBc.js.map +0 -1
  195. package/dist/chunks/code-snippet.BWM5w4CP.js.map +0 -1
  196. package/dist/chunks/date-picker.21z_Sw4V.js.map +0 -1
  197. package/dist/chunks/date-range-picker.K2TeW8aX.js.map +0 -1
  198. package/dist/chunks/dropdown.ex87AZ7s.js.map +0 -1
  199. package/dist/chunks/filter-bar.BAmG-yML.js.map +0 -1
  200. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  201. package/dist/chunks/loading-button.Mx-oDIGy.js +0 -123
  202. package/dist/chunks/loading-button.Mx-oDIGy.js.map +0 -1
  203. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js.map +0 -1
@@ -1,43 +1,51 @@
1
- import { ref as $, watch as Oe, computed as c, defineComponent as z, useSlots as Ee, toRefs as Ce, openBlock as x, createBlock as P, resolveDynamicComponent as Be, mergeProps as M, withCtx as F, createElementVNode as ee, withKeys as Ye, unref as o, createVNode as Q, toHandlers as _, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as k, toDisplayString as ve, createCommentVNode as K, normalizeClass as fe, withDirectives as G, vShow as xe, nextTick as N, useAttrs as Ze, toRef as R, inject as Qe, createTextVNode as Xe } from "vue";
1
+ import { ref as $, watch as Oe, computed as c, defineComponent as z, useSlots as Ee, toRefs as Ce, openBlock as x, createBlock as P, resolveDynamicComponent as Be, mergeProps as N, withCtx as F, createElementVNode as ee, withKeys as Ye, unref as o, createVNode as Q, toHandlers as _, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as k, toDisplayString as ve, createCommentVNode as K, normalizeClass as fe, withDirectives as G, vShow as xe, nextTick as M, useAttrs as Ze, toRef as C, inject as Qe, createTextVNode as Xe } from "vue";
2
2
  import { d as Le, B as _e } from "./typography.z9P0Ec3Q.js";
3
- import { a as ne, b as H, c as Ge, B as V, D as et } from "./dropdown-default-textbox.Bu4bpNGU.js";
3
+ import { g as V } from "./unique-id.XFfoKuc2.js";
4
+ import { u as Ge } from "./aria-label.CaUURpnB.js";
5
+ import { u as ye } from "./i18n.DL9GT2-k.js";
6
+ import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
7
+ import { B as tt } from "./directive.O3yEdalv.js";
8
+ import { B as T, a as lt } from "./keyboard-navigation.Clz1jOaA.js";
9
+ import { a as ne, b as H, c as at, B as J, D as ot } from "./dropdown-default-textbox.Bu4bpNGU.js";
10
+ import { a as u, B as pe, b as me, c as st, u as nt } from "./use-cached-selected-values.CS3gHOyI.js";
11
+ import { u as it } from "./use-has-slot.B7eQSabc.js";
12
+ import { F as rt, E as dt } from "./error-message.DblYEZ7E.js";
13
+ import { P as Se } from "./popper-container.DFpaesDm.js";
14
+ import { B as ut } from "./popover.pDk6zsak.js";
4
15
  import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
16
  import { s as ie } from "./events.CMzGybJJ.js";
6
- import { g as J } from "./unique-id.XFfoKuc2.js";
7
- import { u as tt } from "./aria-label.CaUURpnB.js";
8
- import { u as be } from "./i18n.DL9GT2-k.js";
9
- import { u as at } from "./use-form-layout-loading.D3lALhtC.js";
10
- import { B as lt } from "./directive.O3yEdalv.js";
11
- import { B as T, a as ot } from "./keyboard-navigation.Clz1jOaA.js";
12
- import { a as u, B as pe, b as me, c as st, u as nt } from "./use-cached-selected-values.ClVxNmUf.js";
13
- import { u as it } from "./use-has-slot.B7eQSabc.js";
14
- import { F as rt, E as dt } from "./error-message.D2Y99KjT.js";
15
- import { P as we } from "./popper-container.DFpaesDm.js";
16
- import { B as ut } from "./popover.DQP3ce2x.js";
17
17
  import "../assets/dropdown.css";
18
- const ye = {
18
+ const be = {
19
19
  "en-US": {
20
20
  apply: "Apply",
21
21
  cancel: "Cancel",
22
22
  noOptionsMatchThisSearch: "No options match this search"
23
+ },
24
+ "pt-BR": {
25
+ apply: "Aplicar",
26
+ cancel: "Cancelar"
27
+ },
28
+ "ja-JP": {
29
+ apply: "適用",
30
+ cancel: "キャンセル"
23
31
  }
24
- }, ct = (t, l, s, a) => {
25
- const n = $(t.value), { t: e } = be({ messages: ye });
32
+ }, ct = (t, a, s, l) => {
33
+ const n = $(t.value), { t: e } = ye({ messages: be });
26
34
  Oe(t, () => {
27
35
  n.value = t.value;
28
36
  });
29
37
  const i = c(
30
38
  () => JSON.stringify(n.value) === JSON.stringify(t.value)
31
- ), b = () => {
32
- a(u.SELECT, n.value), a(u.CLOSE_DROPDOWN);
39
+ ), m = () => {
40
+ l(u.SELECT, n.value), l(u.CLOSE_DROPDOWN);
33
41
  }, r = () => {
34
- n.value = t.value, a(u.CLOSE_DROPDOWN);
42
+ n.value = t.value, l(u.CLOSE_DROPDOWN);
35
43
  }, g = () => {
36
- s.value && l.value && (n.value = t.value);
44
+ s.value && a.value && (n.value = t.value);
37
45
  }, p = c(() => [
38
46
  {
39
47
  title: e("apply"),
40
- event: b,
48
+ event: m,
41
49
  disabled: i.value
42
50
  },
43
51
  {
@@ -45,22 +53,22 @@ const ye = {
45
53
  event: r
46
54
  }
47
55
  ]), d = (h) => {
48
- n.value = h, l.value || a(u.SELECT, h);
56
+ n.value = h, a.value || l(u.SELECT, h);
49
57
  }, f = (h) => {
50
- d(h), a(u.TAB);
58
+ d(h), l(u.TAB);
51
59
  }, O = (h) => {
52
- d(h), a(u.ENTER);
53
- }, C = (h) => {
54
- d(h), a(u.SPACE);
55
- }, B = () => {
56
- r(), a(u.ESCAPE);
57
- }, w = () => {
58
- a(u.SHOW_MORE);
60
+ d(h), l(u.ENTER);
61
+ }, B = (h) => {
62
+ d(h), l(u.SPACE);
63
+ }, I = () => {
64
+ r(), l(u.ESCAPE);
65
+ }, S = () => {
66
+ l(u.SHOW_MORE);
59
67
  }, E = {
60
68
  [u.SELECT]: d,
61
- [u.SHOW_MORE]: w,
69
+ [u.SHOW_MORE]: S,
62
70
  [u.TAB]: f,
63
- [u.SPACE]: C,
71
+ [u.SPACE]: B,
64
72
  [u.ENTER]: O
65
73
  };
66
74
  return {
@@ -69,11 +77,11 @@ const ye = {
69
77
  internalSelectedValue: n,
70
78
  // Methods
71
79
  listeners: E,
72
- onEscapeKey: B,
80
+ onEscapeKey: I,
73
81
  onOutsideDropdownClick: g
74
82
  };
75
83
  }, ft = z({
76
- i18n: { messages: ye },
84
+ i18n: { messages: be },
77
85
  name: "bento-dropdown-options-container"
78
86
  }), pt = /* @__PURE__ */ z({
79
87
  ...ft,
@@ -171,7 +179,7 @@ const ye = {
171
179
  * Reference to the DOM element or Vue component for positioning
172
180
  * the Dropdown container.
173
181
  */
174
- targetElement: { type: we.props.targetElement.type, required: !0 },
182
+ targetElement: { type: Se.props.targetElement.type, required: !0 },
175
183
  /**
176
184
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
177
185
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -181,23 +189,23 @@ const ye = {
181
189
  default: !1
182
190
  }
183
191
  },
184
- setup(t, { expose: l, emit: s }) {
185
- const a = Ee(), n = s, e = t, { selectedValue: i, multiple: b } = Ce(e), r = $(null), { t: g } = be({ messages: ye }), p = c(() => e.open && !e.disabled), d = c(() => g("noOptionsMatchThisSearch")), f = c(() => ({
192
+ setup(t, { expose: a, emit: s }) {
193
+ const l = Ee(), n = s, e = t, { selectedValue: i, multiple: m } = Ce(e), r = $(null), { t: g } = ye({ messages: be }), p = c(() => e.open && !e.disabled), d = c(() => g("noOptionsMatchThisSearch")), f = c(() => ({
186
194
  "b-dropdown-options-container--single": !(e != null && e.multiple)
187
195
  })), O = c(() => ({
188
196
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
189
- })), { actions: C, internalSelectedValue: B, listeners: w, onEscapeKey: E, onOutsideDropdownClick: h } = ct(i, b, p, n), m = c(() => e != null && e.multiple ? ut : we), y = c(() => {
190
- var S;
197
+ })), { actions: B, internalSelectedValue: I, listeners: S, onEscapeKey: E, onOutsideDropdownClick: h } = ct(i, m, p, n), v = c(() => e != null && e.multiple ? ut : Se), b = c(() => {
198
+ var w;
191
199
  const L = {
192
- "min-width": `${(S = e == null ? void 0 : e.targetElement) == null ? void 0 : S.clientWidth}px`,
200
+ "min-width": `${(w = e == null ? void 0 : e.targetElement) == null ? void 0 : w.clientWidth}px`,
193
201
  "max-width": "min(500px, 95%)"
194
202
  };
195
203
  return e != null && e.multiple ? {
196
204
  actionsLayout: "space-between",
197
- actions: C.value,
205
+ actions: B.value,
198
206
  divider: !0,
199
207
  fallbackPosition: ["top-start"],
200
- id: J(`dropdown-options-${e.id}`),
208
+ id: V(`dropdown-options-${e.id}`),
201
209
  open: e.open,
202
210
  position: "bottom-start",
203
211
  style: {
@@ -216,21 +224,21 @@ const ye = {
216
224
  targetElement: e.targetElement
217
225
  };
218
226
  });
219
- return l({
227
+ return a({
220
228
  onOutsideDropdownClick: h
221
- }), (L, S) => (x(), P(Be(m.value), M({
229
+ }), (L, w) => (x(), P(Be(v.value), N({
222
230
  class: ["b-dropdown-options-container", f.value],
223
231
  "aria-label": t.ariaLabel
224
- }, y.value), {
232
+ }, b.value), {
225
233
  default: F(() => [
226
234
  ee("div", {
227
- onKeydown: S[0] || (S[0] = Ye(
235
+ onKeydown: w[0] || (w[0] = Ye(
228
236
  //@ts-ignore
229
237
  (...W) => o(E) && o(E)(...W),
230
238
  ["esc"]
231
239
  ))
232
240
  }, [
233
- Q(o(me), M({
241
+ Q(o(me), N({
234
242
  id: t.id,
235
243
  ref_key: "dropdownOptionsListboxRef",
236
244
  ref: r,
@@ -239,8 +247,8 @@ const ye = {
239
247
  "empty-state": t.emptyState,
240
248
  "is-option-disabled": t.isOptionDisabled,
241
249
  items: t.items,
242
- "selected-value": o(B),
243
- multiple: o(b),
250
+ "selected-value": o(I),
251
+ multiple: o(m),
244
252
  "static-categories": t.staticCategories,
245
253
  "no-results-message": d.value,
246
254
  searching: t.searching,
@@ -248,8 +256,8 @@ const ye = {
248
256
  "lazy-load-type": t.lazyLoadType,
249
257
  "has-more-items": t.hasMoreItems,
250
258
  "virtual-scroll": t.virtualScroll
251
- }, _(o(w))), re({ _: 2 }, [
252
- de(o(a), (W, j) => ({
259
+ }, _(o(S))), re({ _: 2 }, [
260
+ de(o(l), (W, j) => ({
253
261
  name: j,
254
262
  fn: F((te) => [
255
263
  X(L.$slots, j, ue(ce(te)), void 0, !0)
@@ -262,36 +270,36 @@ const ye = {
262
270
  }, 16, ["aria-label", "class"]));
263
271
  }
264
272
  }), mt = /* @__PURE__ */ Y(pt, [["__scopeId", "data-v-cac3da66"]]);
265
- let Se = 0;
273
+ let we = 0;
266
274
  const vt = {
267
275
  beforeCreate() {
268
- this.uuid = Se.toString(), Se += 1;
276
+ this.uuid = we.toString(), we += 1;
269
277
  }
270
- }, bt = { key: 0 };
271
- function yt(t, l, s, a, n, e) {
272
- return x(), k("svg", M({ role: "img" }, t.$attrs, {
278
+ }, yt = { key: 0 };
279
+ function bt(t, a, s, l, n, e) {
280
+ return x(), k("svg", N({ role: "img" }, t.$attrs, {
273
281
  class: "ui-assets-icons-16",
274
282
  xmlns: "http://www.w3.org/2000/svg",
275
283
  width: "16",
276
284
  height: "16",
277
285
  fill: "none"
278
286
  }), [
279
- t.$attrs["svg-title"] ? (x(), k("title", bt, ve(t.$attrs["svg-title"]), 1)) : K("", !0),
280
- l[0] || (l[0] = ee("path", {
287
+ t.$attrs["svg-title"] ? (x(), k("title", yt, ve(t.$attrs["svg-title"]), 1)) : K("", !0),
288
+ a[0] || (a[0] = ee("path", {
281
289
  fill: "#00112C",
282
290
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
283
291
  }, null, -1))
284
292
  ], 16);
285
293
  }
286
- const gt = /* @__PURE__ */ Y(vt, [["render", yt]]);
294
+ const gt = /* @__PURE__ */ Y(vt, [["render", bt]]);
287
295
  let $e = 0;
288
296
  const ht = {
289
297
  beforeCreate() {
290
298
  this.uuid = $e.toString(), $e += 1;
291
299
  }
292
300
  }, xt = { key: 0 };
293
- function Lt(t, l, s, a, n, e) {
294
- return x(), k("svg", M({ role: "img" }, t.$attrs, {
301
+ function Lt(t, a, s, l, n, e) {
302
+ return x(), k("svg", N({ role: "img" }, t.$attrs, {
295
303
  class: "ui-assets-icons-16",
296
304
  xmlns: "http://www.w3.org/2000/svg",
297
305
  width: "16",
@@ -299,13 +307,13 @@ function Lt(t, l, s, a, n, e) {
299
307
  fill: "none"
300
308
  }), [
301
309
  t.$attrs["svg-title"] ? (x(), k("title", xt, ve(t.$attrs["svg-title"]), 1)) : K("", !0),
302
- l[0] || (l[0] = ee("path", {
310
+ a[0] || (a[0] = ee("path", {
303
311
  fill: "#00112C",
304
312
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
305
313
  }, null, -1))
306
314
  ], 16);
307
315
  }
308
- const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
316
+ const St = /* @__PURE__ */ Y(ht, [["render", Lt]]), wt = { class: "b-dropdown-small-textbox__chevron" }, $t = z({
309
317
  name: "dropdown-small-textbox",
310
318
  inheritAttrs: !1
311
319
  }), Ot = /* @__PURE__ */ z({
@@ -369,14 +377,14 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
369
377
  value: { type: String, default: "" }
370
378
  },
371
379
  emits: ["clear", "close", "input", "keydown", "open"],
372
- setup(t, { emit: l }) {
373
- const s = l, a = t, n = c(() => ({
374
- [`b-dropdown-small-textbox--${ne.DISABLED}`]: a.disabled,
375
- [`b-dropdown-small-textbox--${ne.READONLY}`]: a.readonly,
376
- [`b-dropdown-small-textbox--${ne.OPENED}`]: a.open
377
- })), e = c(() => a.open && !a.disabled && !a.readonly), i = (f) => {
380
+ setup(t, { emit: a }) {
381
+ const s = a, l = t, n = c(() => ({
382
+ [`b-dropdown-small-textbox--${ne.DISABLED}`]: l.disabled,
383
+ [`b-dropdown-small-textbox--${ne.READONLY}`]: l.readonly,
384
+ [`b-dropdown-small-textbox--${ne.OPENED}`]: l.open
385
+ })), e = c(() => l.open && !l.disabled && !l.readonly), i = (f) => {
378
386
  s("input", f);
379
- }, b = (f) => {
387
+ }, m = (f) => {
380
388
  s("keydown", f);
381
389
  }, r = (f) => {
382
390
  ie(f), s("open");
@@ -389,18 +397,18 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
389
397
  [H.OPEN]: r,
390
398
  [H.CLOSE]: g,
391
399
  [H.CLEAR]: p,
392
- [H.KEYDOWN]: b
400
+ [H.KEYDOWN]: m
393
401
  };
394
402
  return (f, O) => (x(), k("div", {
395
403
  class: fe(["b-dropdown-small-textbox", n.value])
396
404
  }, [
397
- Q(Ge, M({ ...f.$attrs, ...f.$props }, {
405
+ Q(at, N({ ...f.$attrs, ...f.$props }, {
398
406
  class: "b-dropdown-small-textbox__textbox",
399
- size: o(V).SMALL
407
+ size: o(J).SMALL
400
408
  }, _(d)), {
401
409
  icon: F(() => [
402
- ee("div", St, [
403
- G(Q(o(wt), { "svg-title": "opened" }, null, 512), [
410
+ ee("div", wt, [
411
+ G(Q(o(St), { "svg-title": "opened" }, null, 512), [
404
412
  [xe, e.value]
405
413
  ]),
406
414
  G(Q(o(gt), { "svg-title": "closed" }, null, 512), [
@@ -412,99 +420,101 @@ const wt = /* @__PURE__ */ Y(ht, [["render", Lt]]), St = { class: "b-dropdown-sm
412
420
  }, 16, ["size"])
413
421
  ], 2));
414
422
  }
415
- }), Et = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t, l) => l.value.reduce((s, a) => {
416
- if (a.items) {
417
- const n = a.items.filter(
418
- (i) => t.value.find((b) => b.value === i.value)
423
+ }), Et = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-2fa2d897"]]), Ct = (t, a) => a.value.reduce((s, l) => {
424
+ if (l.items) {
425
+ const n = l.items.filter(
426
+ (i) => t.value.find((m) => m.value === i.value)
419
427
  );
420
- n.length === a.items.length ? s.push(a.label) : n.forEach(({ label: i }) => s.push(i));
428
+ n.length === l.items.length ? s.push(l.label) : n.forEach(({ label: i }) => s.push(i));
421
429
  }
422
- return t.value.find((n) => n.value === a.value) && s.push(a.label), s;
423
- }, []).join(", "), Bt = ({ items: t, placeholder: l, selectedValues: s }) => {
424
- const a = c(() => t.value.find((e) => {
425
- var i;
426
- return (i = e.items) == null ? void 0 : i.length;
427
- }));
428
- return c(() => s.value.length ? a.value ? Ct(s, t) : s.value.map(({ label: e }) => e).join(", ") : l.value || null);
430
+ return t.value.find((n) => n.value === l.value) && s.push(l.label), s;
431
+ }, []).join(", "), Bt = ({ items: t, placeholder: a, selectedValues: s, isMultiSelect: l }) => {
432
+ const n = c(
433
+ () => l.value && t.value.find((i) => {
434
+ var m;
435
+ return (m = i.items) == null ? void 0 : m.length;
436
+ })
437
+ );
438
+ return c(() => s.value.length ? n.value ? Ct(s, t) : s.value.map(({ label: i }) => i).join(", ") : a.value || null);
429
439
  }, Ie = (t) => {
430
- var l;
431
- (l = t.value.$children) == null || l[0].$refs.textbox.focus();
440
+ var a;
441
+ (a = t.value.$children) == null || a[0].$refs.textbox.focus();
432
442
  }, It = ({
433
443
  inputContainerRef: t,
434
- optionsContainerRef: l,
444
+ optionsContainerRef: a,
435
445
  selectedValueIndex: s,
436
- isDropdownOpen: a,
446
+ isDropdownOpen: l,
437
447
  isDynamicFltering: n,
438
448
  items: e,
439
449
  isMultiple: i
440
- }, b, r, g) => {
441
- const p = ({ detail: m }) => {
442
- m.preventDefault(), a.value || r(), N(() => {
443
- var y;
444
- i ? (y = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || y[0].$el.focus() : (l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
450
+ }, m, r, g) => {
451
+ const p = ({ detail: v }) => {
452
+ v.preventDefault(), l.value || r(), M(() => {
453
+ var b;
454
+ i ? (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
445
455
  s.value
446
- ), l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus());
456
+ ), a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus());
447
457
  });
448
- }, d = ({ detail: m }) => {
449
- m.preventDefault(), a.value || r(), N(() => {
450
- l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
458
+ }, d = ({ detail: v }) => {
459
+ v.preventDefault(), l.value || r(), M(() => {
460
+ a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
451
461
  s.value
452
- ), l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus();
462
+ ), a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[s.value].$el.focus();
453
463
  });
454
464
  }, f = () => {
455
- a.value || (r(), N(() => {
456
- var m, y;
465
+ l.value || (r(), M(() => {
466
+ var v, b;
457
467
  if (i) {
458
- const L = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
459
- (m = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[L.length - 1].$children[e.length - 1].$el.focus();
468
+ const L = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
469
+ (v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[L.length - 1].$children[e.length - 1].$el.focus();
460
470
  } else
461
- (y = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || y[e.length - 1].$el.focus();
471
+ (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[e.length - 1].$el.focus();
462
472
  }));
463
473
  }, O = () => {
464
- a.value && (g(), Ie(t));
465
- }, C = () => {
466
- a.value && g();
474
+ l.value && (g(), Ie(t));
467
475
  }, B = () => {
468
- a.value || r(), N(() => {
469
- var m;
470
- (m = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus();
476
+ l.value && g();
477
+ }, I = () => {
478
+ l.value || r(), M(() => {
479
+ var v;
480
+ (v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus();
471
481
  });
472
- }, w = ({ detail: m }) => {
473
- m.preventDefault(), b(), a.value && N(() => {
474
- var y, L;
475
- i ? (y = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || y[0].$el.focus() : (L = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || L[s.value].$el.focus();
482
+ }, S = ({ detail: v }) => {
483
+ v.preventDefault(), m(), l.value && M(() => {
484
+ var b, L;
485
+ i ? (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[0].$el.focus() : (L = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || L[s.value].$el.focus();
476
486
  });
477
487
  }, E = () => {
478
- b(), a.value && N(() => {
479
- var m, y;
480
- i ? (m = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || m[0].$el.focus() : (y = l.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || y[s.value].$el.focus();
488
+ m(), l.value && M(() => {
489
+ var v, b;
490
+ i ? (v = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (b = a.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || b[s.value].$el.focus();
481
491
  });
482
492
  };
483
493
  return c(() => ({
484
- ...n.value ? {} : { [T.SPACE]: w },
494
+ ...n.value ? {} : { [T.SPACE]: S },
485
495
  [T.ENTER]: E,
486
496
  [T.ARROW_DOWN]: p,
487
497
  [T.ARROW_UP]: d,
488
498
  [T.END]: f,
489
499
  [T.ESCAPE]: O,
490
- [T.HOME]: B,
491
- [T.TAB]: C
500
+ [T.HOME]: I,
501
+ [T.TAB]: B
492
502
  }));
493
- }, Dt = ({ inputContainerRef: t, isDropdownOpen: l }, s) => {
494
- const a = () => {
495
- l.value && s(), N(() => {
503
+ }, Dt = ({ inputContainerRef: t, isDropdownOpen: a }, s) => {
504
+ const l = () => {
505
+ a.value && s(), M(() => {
496
506
  Ie(t);
497
507
  });
498
508
  };
499
509
  return {
500
- [u.ENTER]: a,
501
- [u.ESCAPE]: a,
502
- [u.TAB]: a,
503
- [u.SPACE]: a
510
+ [u.ENTER]: l,
511
+ [u.ESCAPE]: l,
512
+ [u.TAB]: l,
513
+ [u.SPACE]: l
504
514
  };
505
515
  };
506
- function Rt(t, l, s, a) {
507
- const n = $(t), e = $(l), i = (r, g = []) => g.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? a != null && a.value && p.items ? [...i(r, p.items)] : [p, ...i(r, p.items)] : p.items ? [...i(r, p.items)] : []);
516
+ function Rt(t, a, s, l) {
517
+ const n = $(t), e = $(a), i = (r, g = []) => g.flatMap((p) => p.label.toLocaleLowerCase().includes(r) ? l != null && l.value && p.items ? [...i(r, p.items)] : [p, ...i(r, p.items)] : p.items ? [...i(r, p.items)] : []);
508
518
  return Oe(n, () => {
509
519
  s !== void 0 && s(n.value);
510
520
  }), c(() => {
@@ -519,15 +529,23 @@ const De = {
519
529
  all: "All",
520
530
  clearSearch: "Clear filter",
521
531
  ariaLabelFallback: "Dropdown"
532
+ },
533
+ "pt-BR": {
534
+ all: "Todos",
535
+ clearFilter: "Limpar filtro"
536
+ },
537
+ "ja-JP": {
538
+ all: "すべて",
539
+ clearFilter: "フィルターをクリア"
522
540
  }
523
541
  }, Tt = Symbol("input field component injection key"), At = z({
524
542
  i18n: { messages: De },
525
543
  name: "b-dropdown",
526
544
  components: {
527
- DropdownInputDefault: et,
545
+ DropdownInputDefault: ot,
528
546
  DropdownInputSmall: Et
529
547
  }
530
- }), Nt = /* @__PURE__ */ z({
548
+ }), Mt = /* @__PURE__ */ z({
531
549
  ...At,
532
550
  props: {
533
551
  /**
@@ -656,7 +674,7 @@ const De = {
656
674
  size: {
657
675
  type: String,
658
676
  default: null,
659
- validator: (t) => Object.values(V).includes(t)
677
+ validator: (t) => Object.values(J).includes(t)
660
678
  },
661
679
  /**
662
680
  * If enabled, dropdown will display non-selectable, static categories
@@ -685,59 +703,60 @@ const De = {
685
703
  }
686
704
  },
687
705
  emits: ["input", "show-more"],
688
- setup(t, { emit: l }) {
706
+ setup(t, { emit: a }) {
689
707
  var he;
690
- const s = Ze(), a = Ee(), n = it(a), e = t, i = l, { t: b } = be({ messages: De }), r = $(null), g = $(null), p = $(null), d = $(!1), f = J("bento-dropdown-options-container"), O = J("dropdown-label"), C = J("dropdown-description"), B = J("dropdown-error"), { isReadOnly: w } = at(R(e, "readonly")), { cachedSelectedListboxOptions: E, cachedListboxSelectedValues: h, setCachedValues: m } = st(
691
- R(e, "items"),
692
- R(e, "value"),
693
- R(e, "multiple")
694
- ), y = $(s["aria-label"]), { ariaLabel: L, label: S } = Ce(e), W = tt({
708
+ const s = Ze(), l = Ee(), n = it(l), e = t, i = a, { t: m } = ye({ messages: De }), r = $(null), g = $(null), p = $(null), d = $(!1), f = V("bento-dropdown-options-container"), O = V("dropdown-label"), B = V("dropdown-description"), I = V("dropdown-error"), { isReadOnly: S } = et(C(e, "readonly")), { cachedSelectedListboxOptions: E, cachedListboxSelectedValues: h, setCachedValues: v } = st(
709
+ C(e, "items"),
710
+ C(e, "value"),
711
+ C(e, "multiple")
712
+ ), b = $(s["aria-label"]), { ariaLabel: L, label: w } = Ce(e), W = Ge({
695
713
  // TODO: take ariaLabel ref away when aria-label prop is removed
696
- ariaLabel: L || y,
697
- label: S,
698
- defaultFallback: b("ariaLabelFallback")
699
- }), j = e.size === V.SMALL || Qe(Tt, !1), te = c(() => j ? V.SMALL : V.DEFAULT), Re = c(() => ({
714
+ ariaLabel: L || b,
715
+ label: w,
716
+ defaultFallback: m("ariaLabelFallback")
717
+ }), j = e.size === J.SMALL || Qe(Tt, !1), te = c(() => j ? J.SMALL : J.DEFAULT), Re = c(() => ({
700
718
  "b-dropdown--condensed": e.condensed
701
719
  })), Te = c(() => ({
702
720
  "b-dropdown__description--error": !!e.errorMessage
703
- })), A = $(""), Z = R(e, "items"), ge = R(e, "staticCategories"), Ae = Rt(A, Z, (he = e == null ? void 0 : e.search) == null ? void 0 : he.searchEvent, ge), ae = c(() => e.dynamicFiltering && !!A.value), Ne = Bt({
721
+ })), A = $(""), Z = C(e, "items"), ge = C(e, "staticCategories"), Ae = Rt(A, Z, (he = e == null ? void 0 : e.search) == null ? void 0 : he.searchEvent, ge), le = c(() => e.dynamicFiltering && !!A.value), Me = Bt({
704
722
  items: Z,
705
- placeholder: R(e, "placeholder"),
723
+ placeholder: C(e, "placeholder"),
724
+ isMultiSelect: C(e, "multiple"),
706
725
  selectedValues: E
707
- }), Me = c(() => {
726
+ }), Ne = c(() => {
708
727
  if (e != null && e.multiple && Array.isArray(e.value))
709
728
  return e.items.filter(
710
- ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
729
+ ({ value: y }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(y)
711
730
  );
712
731
  if (!e.multiple && e.staticCategories) {
713
- const v = e.items.find(
714
- (D) => D.items.some((U) => U.value === e.value)
732
+ const y = e.items.find(
733
+ (R) => R.items.some((U) => U.value === e.value)
715
734
  );
716
- return v ? v.items.find((D) => D.value === e.value) : null;
735
+ return y ? y.items.find((R) => R.value === e.value) : null;
717
736
  }
718
- return e.items.find(({ value: v }) => v === (e == null ? void 0 : e.value));
737
+ return e.items.find(({ value: y }) => y === (e == null ? void 0 : e.value));
719
738
  }), ke = c(() => {
720
- const v = e.items.findIndex(({ value: I }) => e.value === I);
721
- return v > 0 ? v : 0;
739
+ const y = e.items.findIndex(({ value: D }) => e.value === D);
740
+ return y > 0 ? y : 0;
722
741
  }), { isMultiLevelSelect: Pe, flattenedItemsList: Ke } = nt(Z), Fe = c(() => {
723
- var v;
742
+ var y;
724
743
  if (e.multiple) {
725
- const I = (v = e == null ? void 0 : e.value) == null ? void 0 : v.length, D = Pe.value ? Ke.value.length : Z.value.length;
726
- return !e.hasMoreItems && D === I ? b("all") : I;
744
+ const D = (y = e == null ? void 0 : e.value) == null ? void 0 : y.length, R = Pe.value ? Ke.value.length : Z.value.length;
745
+ return !e.hasMoreItems && R === D ? m("all") : D;
727
746
  }
728
747
  return null;
729
748
  }), ze = c(
730
- () => `${e.description ? C : ""} ${e.errorMessage ? B : ""}`.trim() || null
749
+ () => `${e.description ? B : ""} ${e.errorMessage ? I : ""}`.trim() || null
731
750
  ), We = () => {
732
- w.value || (d.value = !0);
733
- }, le = () => {
751
+ S.value || (d.value = !0);
752
+ }, ae = () => {
734
753
  d.value = !1;
735
754
  }, oe = () => {
736
- w.value || (d.value = !d.value, ae.value && (A.value = ""));
755
+ S.value || (d.value = !d.value, le.value && (A.value = ""));
737
756
  }, je = () => {
738
- ae.value && (A.value = ""), d.value && (d.value = !1, p.value.onOutsideDropdownClick());
739
- }, Ue = (v) => {
740
- e.multiple || (A.value = "", d.value = !1), m(v), i("input", h.value);
757
+ le.value && (A.value = ""), d.value && (d.value = !1, p.value.onOutsideDropdownClick());
758
+ }, Ue = (y) => {
759
+ e.multiple || (A.value = "", d.value = !1), v(y), i("input", h.value);
741
760
  }, qe = () => {
742
761
  i(u.SHOW_MORE);
743
762
  }, He = It(
@@ -746,21 +765,21 @@ const De = {
746
765
  optionsContainerRef: p,
747
766
  selectedValueIndex: ke,
748
767
  isDropdownOpen: d,
749
- isDynamicFltering: R(e, "dynamicFiltering"),
768
+ isDynamicFltering: C(e, "dynamicFiltering"),
750
769
  items: e.items,
751
770
  isMultiple: e.multiple
752
771
  },
753
772
  oe,
754
773
  We,
755
- le
774
+ ae
756
775
  ), Ve = Dt(
757
776
  {
758
777
  inputContainerRef: r,
759
778
  isDropdownOpen: d
760
779
  },
761
- le
780
+ ae
762
781
  ), Je = {
763
- [u.CLOSE_DROPDOWN]: le,
782
+ [u.CLOSE_DROPDOWN]: ae,
764
783
  [u.SELECT]: Ue,
765
784
  [u.SHOW_MORE]: qe,
766
785
  ...Ve
@@ -771,21 +790,21 @@ const De = {
771
790
  Having the field as "undefined" will hide/remove the error.
772
791
  <bento-dropdown errorMessage="Error message text" />`,
773
792
  "2.0.0"
774
- ), e.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (v, I) => {
775
- var D;
793
+ ), e.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), (y, D) => {
794
+ var R;
776
795
  return G((x(), k("div", {
777
796
  class: fe(["b-dropdown", Re.value])
778
797
  }, [
779
- o(S) ? (x(), P(o(rt), {
798
+ o(w) ? (x(), P(o(rt), {
780
799
  key: 0,
781
800
  id: o(O),
782
801
  condensed: t.condensed,
783
- label: o(S),
802
+ label: o(w),
784
803
  "tooltip-text": t.tooltipText,
785
804
  optional: t.optional,
786
805
  required: t.required
787
806
  }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : K("", !0),
788
- G((x(), k("div", M({
807
+ G((x(), k("div", N({
789
808
  ref_key: "inputContainerRefWrapper",
790
809
  ref: g
791
810
  }, _(o(He), !0)), [
@@ -797,41 +816,41 @@ const De = {
797
816
  "additional-items-selected": Fe.value,
798
817
  ariaControls: o(f),
799
818
  ariaExpanded: d.value,
800
- "aria-labelledby": o(S) ? o(O) : null,
819
+ "aria-labelledby": o(w) ? o(O) : null,
801
820
  "aria-describedby": ze.value,
802
821
  "aria-label": o(W),
803
- "aria-readonly": o(w),
804
- readonly: o(w),
822
+ "aria-readonly": o(S),
823
+ readonly: o(S),
805
824
  disabled: t.disabled,
806
- "display-value": o(Ne),
825
+ "display-value": o(Me),
807
826
  "dynamic-filtering": t.dynamicFiltering,
808
827
  "is-invalid": !!t.errorMessage || t.error,
809
828
  multiple: t.multiple,
810
829
  open: d.value,
811
- "selected-value-item": o(j) ? void 0 : Me.value,
830
+ "selected-value-item": o(j) ? void 0 : Ne.value,
812
831
  "show-slot-content-in-multiple": t.showSlotContentInMultiple,
813
- onInput: I[0] || (I[0] = (U) => A.value = U),
832
+ onInput: D[0] || (D[0] = (U) => A.value = U),
814
833
  onOpen: oe,
815
834
  onClose: oe
816
835
  }, re({ _: 2 }, [
817
- de(o(a), (U, q) => ({
836
+ de(o(l), (U, q) => ({
818
837
  name: q,
819
838
  fn: F((se) => [
820
- X(v.$slots, q, ue(ce(se)), void 0, !0)
839
+ X(y.$slots, q, ue(ce(se)), void 0, !0)
821
840
  ])
822
841
  }))
823
842
  ]), 1064, ["condensed", "value", "additional-items-selected", "ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
824
843
  ], 16)), [
825
- [o(ot)]
844
+ [o(lt)]
826
845
  ]),
827
- r.value ? (x(), P(o(mt), M({
846
+ r.value ? (x(), P(o(mt), N({
828
847
  key: 1,
829
848
  id: o(f),
830
849
  ref_key: "optionsContainerRef",
831
850
  ref: p,
832
851
  "aria-label": o(W),
833
852
  "empty-state": t.emptyState,
834
- "debounce-time": (D = t.search) == null ? void 0 : D.debounceTime,
853
+ "debounce-time": (R = t.search) == null ? void 0 : R.debounceTime,
835
854
  disabled: t.disabled,
836
855
  "is-option-disabled": t.isOptionDisabled,
837
856
  items: o(Ae),
@@ -839,48 +858,48 @@ const De = {
839
858
  "static-categories": ge.value,
840
859
  open: d.value,
841
860
  "selected-value": o(E),
842
- searching: ae.value,
861
+ searching: le.value,
843
862
  "target-element": g.value,
844
863
  loading: t.loading,
845
864
  "has-more-items": t.hasMoreItems,
846
865
  "lazy-load-type": t.lazyLoadType,
847
866
  "virtual-scroll": t.virtualScroll
848
867
  }, _(Je)), re({ _: 2 }, [
849
- de(o(a), (U, q) => ({
868
+ de(o(l), (U, q) => ({
850
869
  name: q,
851
870
  fn: F((se) => [
852
- X(v.$slots, q, ue(ce(se)), void 0, !0)
871
+ X(y.$slots, q, ue(ce(se)), void 0, !0)
853
872
  ])
854
873
  }))
855
874
  ]), 1040, ["id", "aria-label", "empty-state", "debounce-time", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : K("", !0),
856
875
  t.errorMessage ? (x(), P(o(dt), {
857
876
  key: 2,
858
- id: o(B),
877
+ id: o(I),
859
878
  "error-message": t.errorMessage,
860
879
  class: "b-dropdown__error-message"
861
880
  }, null, 8, ["id", "error-message"])) : K("", !0),
862
881
  t.description || o(n)("description") ? (x(), P(o(_e), {
863
882
  key: 3,
864
- id: o(C),
883
+ id: o(B),
865
884
  class: fe(["b-dropdown__description", Te.value]),
866
885
  el: "span"
867
886
  }, {
868
887
  default: F(() => [
869
- X(v.$slots, "description", {}, () => [
888
+ X(y.$slots, "description", {}, () => [
870
889
  Xe(ve(t.description), 1)
871
890
  ], !0)
872
891
  ]),
873
892
  _: 3
874
893
  }, 8, ["id", "class"])) : K("", !0)
875
894
  ], 2)), [
876
- [o(lt), je]
895
+ [o(tt), je]
877
896
  ]);
878
897
  };
879
898
  }
880
- }), Xt = /* @__PURE__ */ Y(Nt, [["__scopeId", "data-v-37c4093f"]]);
899
+ }), Xt = /* @__PURE__ */ Y(Mt, [["__scopeId", "data-v-588a69e8"]]);
881
900
  export {
882
901
  Xt as B,
883
902
  Tt as I,
884
903
  Rt as u
885
904
  };
886
- //# sourceMappingURL=dropdown.ex87AZ7s.js.map
905
+ //# sourceMappingURL=dropdown.rFZp3hMb.js.map