@adyen/bento-vue3 1.65.0 → 1.67.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 (233) hide show
  1. package/dist/@types/index.d.ts +499 -250
  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/button-actions.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/copy.css +1 -1
  10. package/dist/assets/data-grid-template.css +1 -1
  11. package/dist/assets/data-grid.css +1 -1
  12. package/dist/assets/date-range-picker.css +1 -1
  13. package/dist/assets/date.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-default-textbox.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/footer-actions.css +1 -1
  20. package/dist/assets/header-with-views.css +1 -1
  21. package/dist/assets/header.css +1 -1
  22. package/dist/assets/info-icon.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/inspector.css +1 -1
  26. package/dist/assets/menu.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/pagination.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/step.css +1 -1
  32. package/dist/assets/summary-grid.css +1 -1
  33. package/dist/assets/tab.css +1 -0
  34. package/dist/assets/textarea.css +1 -1
  35. package/dist/assets/use-cached-selected-values.css +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/card.js +1 -1
  38. package/dist/checkbox.js +2 -2
  39. package/dist/chunks/{action-bar.BAfqAQjP.js → action-bar.ComuZPet.js} +38 -38
  40. package/dist/chunks/action-bar.ComuZPet.js.map +1 -0
  41. package/dist/chunks/{base-modal.CCwWuH6k.js → base-modal.DzJrvis_.js} +2 -2
  42. package/dist/chunks/{base-modal.CCwWuH6k.js.map → base-modal.DzJrvis_.js.map} +1 -1
  43. package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js +91 -0
  44. package/dist/chunks/button-actions-with-menu.B0nWCTwZ.js.map +1 -0
  45. package/dist/chunks/{button-actions.D1pXI1AJ.js → button-actions.BwpznQ6c.js} +2 -2
  46. package/dist/chunks/button-actions.BwpznQ6c.js.map +1 -0
  47. package/dist/chunks/calendar._oPk_A1C.js +2209 -0
  48. package/dist/chunks/calendar._oPk_A1C.js.map +1 -0
  49. package/dist/chunks/{card.DiBtLuRU.js → card.JBOvn2BO.js} +2 -2
  50. package/dist/chunks/{card.DiBtLuRU.js.map → card.JBOvn2BO.js.map} +1 -1
  51. package/dist/chunks/{checkbox-group.BKsddn67.js → checkbox-group.Dc5Olq0c.js} +4 -4
  52. package/dist/chunks/{checkbox-group.BKsddn67.js.map → checkbox-group.Dc5Olq0c.js.map} +1 -1
  53. package/dist/chunks/{checkbox.C1y3Ad4Z.js → checkbox.fkPJvdUo.js} +2 -2
  54. package/dist/chunks/{checkbox.C1y3Ad4Z.js.map → checkbox.fkPJvdUo.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.Bj5SAyT-.js → code-snippet.vrlSqi9k.js} +4 -4
  56. package/dist/chunks/{code-snippet.Bj5SAyT-.js.map → code-snippet.vrlSqi9k.js.map} +1 -1
  57. package/dist/chunks/{controls-group.DD1m4EKn.js → controls-group.CrzkSu0U.js} +2 -2
  58. package/dist/chunks/{controls-group.DD1m4EKn.js.map → controls-group.CrzkSu0U.js.map} +1 -1
  59. package/dist/chunks/copy.RUoQOydT.js +118 -0
  60. package/dist/chunks/copy.RUoQOydT.js.map +1 -0
  61. package/dist/chunks/{dashboard-section.C6FNJuEz.js → dashboard-section.Bg0dfNs-.js} +3 -3
  62. package/dist/chunks/{dashboard-section.C6FNJuEz.js.map → dashboard-section.Bg0dfNs-.js.map} +1 -1
  63. package/dist/chunks/{dashed-underline.ywc0ydgS.js → dashed-underline.DgE-UB-x.js} +2 -2
  64. package/dist/chunks/{dashed-underline.ywc0ydgS.js.map → dashed-underline.DgE-UB-x.js.map} +1 -1
  65. package/dist/chunks/data-grid-template.Df7j2oxe.js +144 -0
  66. package/dist/chunks/data-grid-template.Df7j2oxe.js.map +1 -0
  67. package/dist/chunks/{data-grid.DroQMKSc.js → data-grid.rDZadZwc.js} +370 -368
  68. package/dist/chunks/data-grid.rDZadZwc.js.map +1 -0
  69. package/dist/chunks/{date-picker.BuX2J2OW.js → date-picker.CZ6zU-NJ.js} +24 -25
  70. package/dist/chunks/{date-picker.BuX2J2OW.js.map → date-picker.CZ6zU-NJ.js.map} +1 -1
  71. package/dist/chunks/date-range-picker.Dw4R9bIs.js +1225 -0
  72. package/dist/chunks/date-range-picker.Dw4R9bIs.js.map +1 -0
  73. package/dist/chunks/date.DSjCnSgL.js +163 -0
  74. package/dist/chunks/date.DSjCnSgL.js.map +1 -0
  75. package/dist/chunks/{dropdown-default-textbox.B05elQig.js → dropdown-default-textbox.Ce5D3ipi.js} +40 -39
  76. package/dist/chunks/dropdown-default-textbox.Ce5D3ipi.js.map +1 -0
  77. package/dist/chunks/{dropdown-tag.Dm-1VD3B.js → dropdown-tag.BlHovDol.js} +2 -2
  78. package/dist/chunks/{dropdown-tag.Dm-1VD3B.js.map → dropdown-tag.BlHovDol.js.map} +1 -1
  79. package/dist/chunks/{dropdown.Bj6DK-2v.js → dropdown.B5ZaFDn_.js} +308 -313
  80. package/dist/chunks/{dropdown.Bj6DK-2v.js.map → dropdown.B5ZaFDn_.js.map} +1 -1
  81. package/dist/chunks/{error-message.DZWphzoT.js → error-message.DHMHq9bR.js} +2 -2
  82. package/dist/chunks/{error-message.DZWphzoT.js.map → error-message.DHMHq9bR.js.map} +1 -1
  83. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  84. package/dist/chunks/{file-uploader.C8DwUCMp.js → file-uploader.B_EI2fAc.js} +523 -523
  85. package/dist/chunks/file-uploader.B_EI2fAc.js.map +1 -0
  86. package/dist/chunks/{filter-bar.BvInaVGL.js → filter-bar.XonJn7ao.js} +1007 -992
  87. package/dist/chunks/{filter-bar.BvInaVGL.js.map → filter-bar.XonJn7ao.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.vQ4flLqU.js → footer-actions.CdJLLWNR.js} +2 -2
  89. package/dist/chunks/{footer-actions.vQ4flLqU.js.map → footer-actions.CdJLLWNR.js.map} +1 -1
  90. package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
  91. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
  92. package/dist/chunks/{header-with-views.De0oVJXS.js → header-with-views.CHbH1_1V.js} +680 -663
  93. package/dist/chunks/header-with-views.CHbH1_1V.js.map +1 -0
  94. package/dist/chunks/{header.Ckjp7n9t.js → header.CJJWPB5Z.js} +63 -62
  95. package/dist/chunks/{header.Ckjp7n9t.js.map → header.CJJWPB5Z.js.map} +1 -1
  96. package/dist/chunks/index.BrH1t1iu.js +407 -0
  97. package/dist/chunks/index.BrH1t1iu.js.map +1 -0
  98. package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js → info-icon-with-popover.DVH46dPy.js} +2 -2
  99. package/dist/chunks/{info-icon-with-popover.Duk1tj5G.js.map → info-icon-with-popover.DVH46dPy.js.map} +1 -1
  100. package/dist/chunks/info-icon.DprUQ9fj.js +36 -0
  101. package/dist/chunks/info-icon.DprUQ9fj.js.map +1 -0
  102. package/dist/chunks/input-field-password.DWZAf1Oh.js +370 -0
  103. package/dist/chunks/input-field-password.DWZAf1Oh.js.map +1 -0
  104. package/dist/chunks/{input-field-phone-number.DVliTkE3.js → input-field-phone-number.CbpRItYf.js} +3 -3
  105. package/dist/chunks/{input-field-phone-number.DVliTkE3.js.map → input-field-phone-number.CbpRItYf.js.map} +1 -1
  106. package/dist/chunks/input-field.DExw_Cow.js +303 -0
  107. package/dist/chunks/input-field.DExw_Cow.js.map +1 -0
  108. package/dist/chunks/{menu.CiyYOoKd.js → menu.CeLJ1gIz.js} +2 -2
  109. package/dist/chunks/{menu.CiyYOoKd.js.map → menu.CeLJ1gIz.js.map} +1 -1
  110. package/dist/chunks/{modal-fullscreen.CuL9oSAq.js → modal-fullscreen.CZnLS-fQ.js} +2 -2
  111. package/dist/chunks/{modal-fullscreen.CuL9oSAq.js.map → modal-fullscreen.CZnLS-fQ.js.map} +1 -1
  112. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js} +4 -4
  113. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.LnD61fHp.js.map → modal.vue_vue_type_script_setup_true_lang.CP7dV1Yy.js.map} +1 -1
  114. package/dist/chunks/{pagination.D6A7TX6J.js → pagination.DL9LmFMJ.js} +168 -168
  115. package/dist/chunks/pagination.DL9LmFMJ.js.map +1 -0
  116. package/dist/chunks/{popover.maCMPyz8.js → popover.VI3TrUkL.js} +2 -2
  117. package/dist/chunks/{popover.maCMPyz8.js.map → popover.VI3TrUkL.js.map} +1 -1
  118. package/dist/chunks/promo-banner.CQp3z2CP.js.map +1 -1
  119. package/dist/chunks/{radio-group.435rdgzm.js → radio-group.H9A5QcNu.js} +3 -3
  120. package/dist/chunks/{radio-group.435rdgzm.js.map → radio-group.H9A5QcNu.js.map} +1 -1
  121. package/dist/chunks/{rich-text-editor.BDLncrV5.js → rich-text-editor.Dl9PsYbk.js} +6 -5
  122. package/dist/chunks/{rich-text-editor.BDLncrV5.js.map → rich-text-editor.Dl9PsYbk.js.map} +1 -1
  123. package/dist/chunks/{search-bar.Cngs3uYZ.js → search-bar.a-jzP1UA.js} +3 -3
  124. package/dist/chunks/{search-bar.Cngs3uYZ.js.map → search-bar.a-jzP1UA.js.map} +1 -1
  125. package/dist/chunks/{secondary-nav.ByCa4wiA.js → secondary-nav.UrmIAVGD.js} +2 -2
  126. package/dist/chunks/{secondary-nav.ByCa4wiA.js.map → secondary-nav.UrmIAVGD.js.map} +1 -1
  127. package/dist/chunks/{selection-card-group.9wJy7FC2.js → selection-card-group.B4xpnd-z.js} +3 -3
  128. package/dist/chunks/{selection-card-group.9wJy7FC2.js.map → selection-card-group.B4xpnd-z.js.map} +1 -1
  129. package/dist/chunks/{sidepanel.CTIjklfG.js → sidepanel.BuNmgmpj.js} +2 -2
  130. package/dist/chunks/{sidepanel.CTIjklfG.js.map → sidepanel.BuNmgmpj.js.map} +1 -1
  131. package/dist/chunks/step.BtNhPZAf.js +268 -0
  132. package/dist/chunks/step.BtNhPZAf.js.map +1 -0
  133. package/dist/chunks/{structured-list-item.DQzxNb_M.js → structured-list-item.BQbEDKhg.js} +3 -3
  134. package/dist/chunks/{structured-list-item.DQzxNb_M.js.map → structured-list-item.BQbEDKhg.js.map} +1 -1
  135. package/dist/chunks/summary-grid.types.CoSCUI1V.js +490 -0
  136. package/dist/chunks/summary-grid.types.CoSCUI1V.js.map +1 -0
  137. package/dist/chunks/tab.CAt51ksU.js +252 -0
  138. package/dist/chunks/tab.CAt51ksU.js.map +1 -0
  139. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
  140. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
  141. package/dist/chunks/{textarea.CV1HjB0x.js → textarea.DXSe9MHH.js} +83 -80
  142. package/dist/chunks/textarea.DXSe9MHH.js.map +1 -0
  143. package/dist/chunks/{timeline-item.DUp8MmgZ.js → timeline-item.BRHwCA1F.js} +11 -12
  144. package/dist/chunks/timeline-item.BRHwCA1F.js.map +1 -0
  145. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js} +4 -4
  146. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.E8oBlhrC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CAf69UYO.js.map} +1 -1
  147. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js +1653 -0
  148. package/dist/chunks/use-cached-selected-values.D7dOPJSO.js.map +1 -0
  149. package/dist/code-snippet.js +1 -1
  150. package/dist/dashboard-template.js +1 -1
  151. package/dist/dashed-underline.js +1 -1
  152. package/dist/data-grid-template.js +1 -1
  153. package/dist/data-grid.js +1 -1
  154. package/dist/date-picker.js +2 -2
  155. package/dist/date-range-picker.js +2 -2
  156. package/dist/date.js +1 -1
  157. package/dist/dropdown.js +4 -4
  158. package/dist/file-uploader.js +1 -1
  159. package/dist/filter-bar.js +1 -1
  160. package/dist/header-with-views.js +1 -1
  161. package/dist/header.js +1 -1
  162. package/dist/index.js +45 -45
  163. package/dist/info-icon.js +1 -1
  164. package/dist/input-field-password.js +1 -1
  165. package/dist/input-field-phone-number.js +1 -1
  166. package/dist/input-field.js +1 -1
  167. package/dist/internal.js +8 -8
  168. package/dist/menu.js +1 -1
  169. package/dist/modal-fullscreen.js +1 -1
  170. package/dist/modal.js +2 -2
  171. package/dist/pagination.js +1 -1
  172. package/dist/popover.js +1 -1
  173. package/dist/radio-group.js +1 -1
  174. package/dist/rich-text-editor.js +1 -1
  175. package/dist/search-bar.js +2 -2
  176. package/dist/secondary-nav.js +1 -1
  177. package/dist/selection-card.js +1 -1
  178. package/dist/sidepanel.js +1 -1
  179. package/dist/stepper.js +1 -1
  180. package/dist/structured-list.js +1 -1
  181. package/dist/styles/bento-dark.css +1 -0
  182. package/dist/styles/bento-light.css +1 -0
  183. package/dist/styles/bento.css +1 -0
  184. package/dist/styles/legacy.css +1 -0
  185. package/dist/styles/styleguide.css +1 -0
  186. package/dist/summary-grid.js +1 -1
  187. package/dist/tabs.js +1 -1
  188. package/dist/textarea.js +1 -1
  189. package/dist/timeline.js +1 -1
  190. package/dist/tutorial.js +1 -1
  191. package/dist/web-types.json +1 -1
  192. package/package.json +6 -6
  193. package/dist/assets/tabs.css +0 -1
  194. package/dist/chunks/action-bar.BAfqAQjP.js.map +0 -1
  195. package/dist/chunks/button-actions-with-menu.D50ABuSV.js +0 -174
  196. package/dist/chunks/button-actions-with-menu.D50ABuSV.js.map +0 -1
  197. package/dist/chunks/button-actions.D1pXI1AJ.js.map +0 -1
  198. package/dist/chunks/calendar.CLpwW_-k.js +0 -1290
  199. package/dist/chunks/calendar.CLpwW_-k.js.map +0 -1
  200. package/dist/chunks/copy.DqckFHHS.js +0 -156
  201. package/dist/chunks/copy.DqckFHHS.js.map +0 -1
  202. package/dist/chunks/data-grid-template.DzIpssxc.js +0 -143
  203. package/dist/chunks/data-grid-template.DzIpssxc.js.map +0 -1
  204. package/dist/chunks/data-grid.DroQMKSc.js.map +0 -1
  205. package/dist/chunks/date-range-picker.C2x1_xoz.js +0 -1209
  206. package/dist/chunks/date-range-picker.C2x1_xoz.js.map +0 -1
  207. package/dist/chunks/date.CKXySBQv.js +0 -995
  208. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  209. package/dist/chunks/dropdown-default-textbox.B05elQig.js.map +0 -1
  210. package/dist/chunks/file-uploader.C8DwUCMp.js.map +0 -1
  211. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  212. package/dist/chunks/header-with-views.De0oVJXS.js.map +0 -1
  213. package/dist/chunks/index.BDuTpjD8.js +0 -40
  214. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  215. package/dist/chunks/index.DD7TppDb.js +0 -10
  216. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  217. package/dist/chunks/info-icon.CpGwbhZQ.js +0 -45
  218. package/dist/chunks/info-icon.CpGwbhZQ.js.map +0 -1
  219. package/dist/chunks/input-field-password.CJOf1GlS.js +0 -369
  220. package/dist/chunks/input-field-password.CJOf1GlS.js.map +0 -1
  221. package/dist/chunks/input-field.xUQT0LXI.js +0 -298
  222. package/dist/chunks/input-field.xUQT0LXI.js.map +0 -1
  223. package/dist/chunks/pagination.D6A7TX6J.js.map +0 -1
  224. package/dist/chunks/step.CpSPMvdW.js +0 -264
  225. package/dist/chunks/step.CpSPMvdW.js.map +0 -1
  226. package/dist/chunks/summary-grid.types.BpS1z1-W.js +0 -466
  227. package/dist/chunks/summary-grid.types.BpS1z1-W.js.map +0 -1
  228. package/dist/chunks/tabs.Cq1fdzVh.js +0 -266
  229. package/dist/chunks/tabs.Cq1fdzVh.js.map +0 -1
  230. package/dist/chunks/textarea.CV1HjB0x.js.map +0 -1
  231. package/dist/chunks/timeline-item.DUp8MmgZ.js.map +0 -1
  232. package/dist/chunks/use-cached-selected-values.CEwKqYIe.js +0 -1600
  233. package/dist/chunks/use-cached-selected-values.CEwKqYIe.js.map +0 -1
@@ -1,23 +1,23 @@
1
- import { ref as w, watch as be, computed as p, defineComponent as j, useSlots as Ne, toRefs as Ie, createBlock as K, openBlock as L, resolveDynamicComponent as Ae, mergeProps as P, withCtx as z, createElementVNode as te, withKeys as Xe, unref as n, createVNode as Q, toHandlers as G, createSlots as ue, renderList as ce, renderSlot as X, normalizeProps as pe, guardReactiveProps as fe, createElementBlock as k, createCommentVNode as F, toDisplayString as ge, normalizeClass as me, withDirectives as ee, vShow as Oe, nextTick as E, useAttrs as Ge, toRef as B, inject as et, createTextVNode as tt } from "vue";
2
- import { d as xe, B as at } from "./typography.DN5eC5ch.js";
3
- import { a as re, b as V, c as lt, B as _, D as ot } from "./dropdown-default-textbox.B05elQig.js";
1
+ import { ref as C, watch as Te, computed as r, defineComponent as j, useSlots as Ie, toRefs as Ne, createBlock as K, openBlock as L, resolveDynamicComponent as Ae, mergeProps as R, withCtx as z, createElementVNode as te, withKeys as tt, unref as n, createVNode as Q, toHandlers as G, createSlots as de, renderList as ue, renderSlot as X, normalizeProps as ce, guardReactiveProps as pe, createElementBlock as P, createCommentVNode as F, toDisplayString as ye, normalizeClass as fe, withDirectives as ee, vShow as Ce, nextTick as w, useAttrs as at, toRef as x, inject as ot, createTextVNode as lt } from "vue";
2
+ import { d as Oe, B as nt } from "./typography.DN5eC5ch.js";
3
+ import { a as ie, b as V, c as st, B as J, D as it } from "./dropdown-default-textbox.Ce5D3ipi.js";
4
4
  /* empty css */
5
5
  import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { s as de } from "./events.FNmSWp_P.js";
7
- import { g as J } from "./generate-uid.NJ8tVoha.js";
8
- import { u as nt } from "./aria-label.CaUURpnB.js";
9
- import { u as he } from "./i18n.B6g5VX0q.js";
10
- import { u as st } from "./use-form-layout-loading.D3lALhtC.js";
11
- import { B as it } from "./directive.Cbdox5VL.js";
12
- import { B as I, a as rt } from "./keyboard-navigation.CqgGzfZQ.js";
13
- import { a as m, b as ve, B as ye, c as dt, u as ut } from "./use-cached-selected-values.CEwKqYIe.js";
14
- import { u as ct } from "./use-has-slot.B7eQSabc.js";
15
- import { F as pt, E as ft } from "./error-message.DZWphzoT.js";
16
- import { P as Be } from "./popper-container.b5h4zYgT.js";
6
+ import { s as re } from "./events.FNmSWp_P.js";
7
+ import { g as _ } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as rt } from "./aria-label.CaUURpnB.js";
9
+ import { u as be } from "./i18n.B6g5VX0q.js";
10
+ import { a as m, b as me, B as ve, c as dt, u as ut, d as ct } from "./use-cached-selected-values.D7dOPJSO.js";
11
+ import { u as pt } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { B as ft } from "./directive.Cbdox5VL.js";
13
+ import { B as I, a as mt } from "./keyboard-navigation.CqgGzfZQ.js";
14
+ import { u as vt } from "./use-has-slot.B7eQSabc.js";
15
+ import { F as yt, E as bt } from "./error-message.DHMHq9bR.js";
16
+ import { P as xe } from "./popper-container.b5h4zYgT.js";
17
17
  import "./popper-container.types.BCZMbVFD.js";
18
- import { B as mt } from "./popover.maCMPyz8.js";
18
+ import { B as gt } from "./popover.VI3TrUkL.js";
19
19
  import "../assets/dropdown.css";
20
- const Se = {
20
+ const ge = {
21
21
  "en-US": {
22
22
  apply: "Apply",
23
23
  cancel: "Cancel",
@@ -31,62 +31,62 @@ const Se = {
31
31
  apply: "Aplicar",
32
32
  cancel: "Cancelar"
33
33
  }
34
- }, vt = (e, i, s, a) => {
35
- const o = w(e.value), { t: l } = he({ messages: Se });
36
- be(e, () => {
37
- o.value = e.value;
34
+ }, ht = (e, i, s, a) => {
35
+ const l = C(e.value), { t: o } = be({ messages: ge });
36
+ Te(e, () => {
37
+ l.value = e.value;
38
38
  });
39
- const t = p(
40
- () => JSON.stringify(o.value) === JSON.stringify(e.value)
41
- ), u = () => {
42
- a(m.SELECT, o.value), a(m.CLOSE_DROPDOWN);
39
+ const t = r(
40
+ () => JSON.stringify(l.value) === JSON.stringify(e.value)
41
+ ), c = () => {
42
+ a(m.SELECT, l.value), a(m.CLOSE_DROPDOWN);
43
43
  }, v = () => {
44
- o.value = e.value, a(m.CLOSE_DROPDOWN);
44
+ l.value = e.value, a(m.CLOSE_DROPDOWN);
45
45
  }, g = () => {
46
- s.value && i.value && (o.value = e.value);
47
- }, r = p(() => [
46
+ s.value && i.value && (l.value = e.value);
47
+ }, d = r(() => [
48
48
  {
49
- title: l("apply"),
50
- event: u,
49
+ title: o("apply"),
50
+ event: c,
51
51
  disabled: t.value
52
52
  },
53
53
  {
54
- title: l("cancel"),
54
+ title: o("cancel"),
55
55
  event: v
56
56
  }
57
57
  ]), b = (S) => {
58
- o.value = S, i.value || a(m.SELECT, S);
59
- }, d = (S) => {
58
+ l.value = S, i.value || a(m.SELECT, S);
59
+ }, u = (S) => {
60
60
  b(S), a(m.TAB);
61
- }, x = (S) => {
61
+ }, O = (S) => {
62
62
  b(S), a(m.ENTER);
63
- }, D = (S) => {
63
+ }, B = (S) => {
64
64
  b(S), a(m.SPACE);
65
65
  }, y = () => {
66
66
  v(), a(m.ESCAPE);
67
- }, T = () => {
67
+ }, D = () => {
68
68
  a(m.SHOW_MORE);
69
- }, C = {
69
+ }, E = {
70
70
  [m.SELECT]: b,
71
- [m.SHOW_MORE]: T,
72
- [m.TAB]: d,
73
- [m.SPACE]: D,
74
- [m.ENTER]: x
71
+ [m.SHOW_MORE]: D,
72
+ [m.TAB]: u,
73
+ [m.SPACE]: B,
74
+ [m.ENTER]: O
75
75
  };
76
76
  return {
77
77
  // Values
78
- actions: r,
79
- internalSelectedValue: o,
78
+ actions: d,
79
+ internalSelectedValue: l,
80
80
  // Methods
81
- listeners: C,
81
+ listeners: E,
82
82
  onEscapeKey: y,
83
83
  onOutsideDropdownClick: g
84
84
  };
85
- }, yt = j({
86
- i18n: { messages: Se },
85
+ }, St = j({
86
+ i18n: { messages: ge },
87
87
  name: "bento-dropdown-options-container"
88
- }), bt = /* @__PURE__ */ j({
89
- ...yt,
88
+ }), Lt = /* @__PURE__ */ j({
89
+ ...St,
90
90
  props: {
91
91
  /**
92
92
  * Defines a string value that labels an interactive element.
@@ -145,8 +145,8 @@ const Se = {
145
145
  */
146
146
  lazyLoadType: {
147
147
  type: String,
148
- default: ye.AUTOMATIC,
149
- validator: (e) => Object.values(ye).includes(e)
148
+ default: ve.AUTOMATIC,
149
+ validator: (e) => Object.values(ve).includes(e)
150
150
  },
151
151
  /**
152
152
  * Indicates if new options are lazy loading.
@@ -176,7 +176,7 @@ const Se = {
176
176
  *
177
177
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
178
178
  */
179
- searching: ve.props.searching,
179
+ searching: me.props.searching,
180
180
  /**
181
181
  * If enabled, dropdown will display non-selectable, static categories
182
182
  */
@@ -185,7 +185,7 @@ const Se = {
185
185
  * Reference to the DOM element or Vue component for positioning
186
186
  * the Dropdown container.
187
187
  */
188
- targetElement: { type: Be.props.targetElement.type, required: !0 },
188
+ targetElement: { type: xe.props.targetElement.type, required: !0 },
189
189
  /**
190
190
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
191
191
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -196,66 +196,66 @@ const Se = {
196
196
  }
197
197
  },
198
198
  setup(e, { expose: i, emit: s }) {
199
- const a = Ne(), o = s, l = e, { selectedValue: t, multiple: u } = Ie(l), v = w(null), { t: g } = he({ messages: Se }), r = p(() => l.open && !l.disabled), b = p(() => g("noOptionsMatchThisSearch")), d = p(() => ({
200
- "b-dropdown-options-container--single": !(l != null && l.multiple)
201
- })), x = p(() => ({
202
- "b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
203
- })), { actions: D, internalSelectedValue: y, listeners: T, onEscapeKey: C, onOutsideDropdownClick: S } = vt(t, u, r, o), W = p(() => l != null && l.multiple ? mt : Be), U = p(() => {
204
- var f;
205
- const A = {
206
- "min-width": `${(f = l == null ? void 0 : l.targetElement) == null ? void 0 : f.clientWidth}px`,
199
+ const a = Ie(), l = s, o = e, { selectedValue: t, multiple: c } = Ne(o), v = C(null), { t: g } = be({ messages: ge }), d = r(() => o.open && !o.disabled), b = r(() => g("noOptionsMatchThisSearch")), u = r(() => ({
200
+ "b-dropdown-options-container--single": !(o != null && o.multiple)
201
+ })), O = r(() => ({
202
+ "b-dropdown-options-container__listbox--single": !(o != null && o.multiple)
203
+ })), { actions: B, internalSelectedValue: y, listeners: D, onEscapeKey: E, onOutsideDropdownClick: S } = ht(t, c, d, l), W = r(() => o != null && o.multiple ? gt : xe), U = r(() => {
204
+ var p;
205
+ const N = {
206
+ "min-width": `${(p = o == null ? void 0 : o.targetElement) == null ? void 0 : p.clientWidth}px`,
207
207
  "max-width": "min(500px, 95%)"
208
208
  };
209
- return l != null && l.multiple ? {
209
+ return o != null && o.multiple ? {
210
210
  actionsLayout: "space-between",
211
- ariaLabel: l.ariaLabel,
212
- actions: D.value,
211
+ ariaLabel: o.ariaLabel,
212
+ actions: B.value,
213
213
  divider: !0,
214
214
  fallbackPosition: ["top-start"],
215
- id: J(`dropdown-options-${l.id}`),
216
- open: l.open,
215
+ id: _(`dropdown-options-${o.id}`),
216
+ open: o.open,
217
217
  position: "bottom-start",
218
218
  style: {
219
219
  width: "auto",
220
- ...A
220
+ ...N
221
221
  },
222
- targetElement: l.targetElement
222
+ targetElement: o.targetElement
223
223
  } : {
224
224
  fallbackPosition: ["top-start"],
225
225
  offset: [0, 8],
226
226
  position: "bottom-start",
227
227
  style: {
228
- display: r.value ? "block" : "none",
229
- ...A
228
+ display: d.value ? "block" : "none",
229
+ ...N
230
230
  },
231
- targetElement: l.targetElement
231
+ targetElement: o.targetElement
232
232
  };
233
233
  });
234
234
  return i({
235
235
  onOutsideDropdownClick: S
236
- }), (A, f) => (L(), K(Ae(W.value), P({
237
- class: ["b-dropdown-options-container", d.value]
236
+ }), (N, p) => (L(), K(Ae(W.value), R({
237
+ class: ["b-dropdown-options-container", u.value]
238
238
  }, U.value), {
239
239
  default: z(() => [
240
240
  te("div", {
241
- onKeydown: f[0] || (f[0] = Xe(
241
+ onKeydown: p[0] || (p[0] = tt(
242
242
  //@ts-ignore
243
- (...h) => n(C) && n(C)(...h),
243
+ (...h) => n(E) && n(E)(...h),
244
244
  ["esc"]
245
245
  ))
246
246
  }, [
247
- Q(n(ve), P({
247
+ Q(n(me), R({
248
248
  id: e.id,
249
249
  ref_key: "dropdownOptionsListboxRef",
250
250
  ref: v,
251
251
  "aria-label": e.ariaLabel,
252
- class: ["b-dropdown-options-container__listbox", x.value],
252
+ class: ["b-dropdown-options-container__listbox", O.value],
253
253
  "component-loading": e.componentLoading,
254
254
  "empty-state": e.emptyState,
255
255
  "is-option-disabled": e.isOptionDisabled,
256
256
  items: e.items,
257
257
  "selected-value": n(y),
258
- multiple: n(u),
258
+ multiple: n(c),
259
259
  "static-categories": e.staticCategories,
260
260
  "no-results-message": b.value,
261
261
  searching: e.searching,
@@ -263,11 +263,11 @@ const Se = {
263
263
  "lazy-load-type": e.lazyLoadType,
264
264
  "has-more-items": e.hasMoreItems,
265
265
  "virtual-scroll": e.virtualScroll
266
- }, G(n(T))), ue({ _: 2 }, [
267
- ce(n(a), (h, $) => ({
268
- name: $,
269
- fn: z((M) => [
270
- X(A.$slots, $, pe(fe(M)), void 0, !0)
266
+ }, G(n(D))), de({ _: 2 }, [
267
+ ue(n(a), (h, A) => ({
268
+ name: A,
269
+ fn: z(($) => [
270
+ X(N.$slots, A, ce(pe($)), void 0, !0)
271
271
  ])
272
272
  }))
273
273
  ]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
@@ -276,55 +276,55 @@ const Se = {
276
276
  _: 3
277
277
  }, 16, ["class"]));
278
278
  }
279
- }), gt = /* @__PURE__ */ Y(bt, [["__scopeId", "data-v-aa806d62"]]);
280
- let De = 0;
281
- const ht = {
279
+ }), Et = /* @__PURE__ */ Y(Lt, [["__scopeId", "data-v-aa806d62"]]);
280
+ let Be = 0;
281
+ const wt = {
282
282
  beforeCreate() {
283
- this.uuid = De.toString(), De += 1;
283
+ this.uuid = Be.toString(), Be += 1;
284
284
  }
285
- }, St = { key: 0 };
286
- function Lt(e, i, s, a, o, l) {
287
- return L(), k("svg", P({ role: "img" }, e.$attrs, {
285
+ }, Ct = { key: 0 };
286
+ function Ot(e, i, s, a, l, o) {
287
+ return L(), P("svg", R({ role: "img" }, e.$attrs, {
288
288
  class: "ui-assets-icons-16",
289
289
  xmlns: "http://www.w3.org/2000/svg",
290
290
  width: "16",
291
291
  height: "16",
292
292
  fill: "none"
293
293
  }), [
294
- e.$attrs["svg-title"] ? (L(), k("title", St, ge(e.$attrs["svg-title"]), 1)) : F("", !0),
294
+ e.$attrs["svg-title"] ? (L(), P("title", Ct, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
295
295
  i[0] || (i[0] = te("path", {
296
296
  fill: "#001222",
297
297
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
298
298
  }, null, -1))
299
299
  ], 16);
300
300
  }
301
- const Et = /* @__PURE__ */ Y(ht, [["render", Lt]]);
302
- let Te = 0;
303
- const wt = {
301
+ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]);
302
+ let De = 0;
303
+ const Bt = {
304
304
  beforeCreate() {
305
- this.uuid = Te.toString(), Te += 1;
305
+ this.uuid = De.toString(), De += 1;
306
306
  }
307
- }, Ct = { key: 0 };
308
- function Ot(e, i, s, a, o, l) {
309
- return L(), k("svg", P({ role: "img" }, e.$attrs, {
307
+ }, Dt = { key: 0 };
308
+ function Tt(e, i, s, a, l, o) {
309
+ return L(), P("svg", R({ role: "img" }, e.$attrs, {
310
310
  class: "ui-assets-icons-16",
311
311
  xmlns: "http://www.w3.org/2000/svg",
312
312
  width: "16",
313
313
  height: "16",
314
314
  fill: "none"
315
315
  }), [
316
- e.$attrs["svg-title"] ? (L(), k("title", Ct, ge(e.$attrs["svg-title"]), 1)) : F("", !0),
316
+ e.$attrs["svg-title"] ? (L(), P("title", Dt, ye(e.$attrs["svg-title"]), 1)) : F("", !0),
317
317
  i[0] || (i[0] = te("path", {
318
318
  fill: "#001222",
319
319
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
320
320
  }, null, -1))
321
321
  ], 16);
322
322
  }
323
- const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-small-textbox__chevron" }, Dt = j({
323
+ const It = /* @__PURE__ */ Y(Bt, [["render", Tt]]), Nt = { class: "b-dropdown-small-textbox__chevron" }, At = j({
324
324
  name: "dropdown-small-textbox",
325
325
  inheritAttrs: !1
326
- }), Tt = /* @__PURE__ */ j({
327
- ...Dt,
326
+ }), $t = /* @__PURE__ */ j({
327
+ ...At,
328
328
  props: {
329
329
  /**
330
330
  * The number of additional items that have been selected in the dropdown.
@@ -385,48 +385,48 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
385
385
  },
386
386
  emits: ["clear", "close", "input", "keydown", "open"],
387
387
  setup(e, { expose: i, emit: s }) {
388
- const a = s, o = e, l = w(null), t = p(() => ({
389
- [`b-dropdown-small-textbox--${re.DISABLED}`]: o.disabled,
390
- [`b-dropdown-small-textbox--${re.READONLY}`]: o.readonly,
391
- [`b-dropdown-small-textbox--${re.OPENED}`]: o.open
392
- })), u = p(() => o.open && !o.disabled && !o.readonly), v = (y) => {
388
+ const a = s, l = e, o = C(null), t = r(() => ({
389
+ [`b-dropdown-small-textbox--${ie.DISABLED}`]: l.disabled,
390
+ [`b-dropdown-small-textbox--${ie.READONLY}`]: l.readonly,
391
+ [`b-dropdown-small-textbox--${ie.OPENED}`]: l.open
392
+ })), c = r(() => l.open && !l.disabled && !l.readonly), v = (y) => {
393
393
  a("input", y);
394
394
  }, g = (y) => {
395
395
  a("keydown", y);
396
- }, r = (y) => {
397
- de(y), a("open");
398
- }, b = (y) => {
399
- de(y), a("close");
400
396
  }, d = (y) => {
401
- de(y), a("clear");
402
- }, x = {
397
+ re(y), a("open");
398
+ }, b = (y) => {
399
+ re(y), a("close");
400
+ }, u = (y) => {
401
+ re(y), a("clear");
402
+ }, O = {
403
403
  [V.INPUT]: v,
404
- [V.OPEN]: r,
404
+ [V.OPEN]: d,
405
405
  [V.CLOSE]: b,
406
- [V.CLEAR]: d,
406
+ [V.CLEAR]: u,
407
407
  [V.KEYDOWN]: g
408
408
  };
409
409
  return i({
410
410
  focus: () => {
411
- l.value.focus();
411
+ o.value.focus();
412
412
  }
413
- }), (y, T) => (L(), k("div", {
414
- class: me(["b-dropdown-small-textbox", t.value])
413
+ }), (y, D) => (L(), P("div", {
414
+ class: fe(["b-dropdown-small-textbox", t.value])
415
415
  }, [
416
- Q(lt, P({
416
+ Q(st, R({
417
417
  ref_key: "baseTextbox",
418
- ref: l
418
+ ref: o
419
419
  }, { ...y.$attrs, ...y.$props }, {
420
420
  class: "b-dropdown-small-textbox__textbox",
421
- size: n(_).SMALL
422
- }, G(x)), {
421
+ size: n(J).SMALL
422
+ }, G(O)), {
423
423
  icon: z(() => [
424
- te("div", Bt, [
425
- ee(Q(n(xt), { "svg-title": "opened" }, null, 512), [
426
- [Oe, u.value]
424
+ te("div", Nt, [
425
+ ee(Q(n(It), { "svg-title": "opened" }, null, 512), [
426
+ [Ce, c.value]
427
427
  ]),
428
- ee(Q(n(Et), { "svg-title": "closed" }, null, 512), [
429
- [Oe, !u.value]
428
+ ee(Q(n(xt), { "svg-title": "closed" }, null, 512), [
429
+ [Ce, !c.value]
430
430
  ])
431
431
  ])
432
432
  ]),
@@ -434,91 +434,91 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
434
434
  }, 16, ["size"])
435
435
  ], 2));
436
436
  }
437
- }), Nt = /* @__PURE__ */ Y(Tt, [["__scopeId", "data-v-66b5eaa5"]]), It = (e, i) => i.value.reduce((s, a) => {
437
+ }), Mt = /* @__PURE__ */ Y($t, [["__scopeId", "data-v-66b5eaa5"]]), Rt = (e, i) => i.value.reduce((s, a) => {
438
438
  if (a.items) {
439
- const o = a.items.filter(
440
- (t) => e.value.find((u) => u.value === t.value)
439
+ const l = a.items.filter(
440
+ (t) => e.value.find((c) => c.value === t.value)
441
441
  );
442
- o.length === a.items.length ? s.push(a.displayValue ?? a.label) : o.forEach(({ label: t, displayValue: u }) => s.push(u ?? t));
442
+ l.length === a.items.length ? s.push(a.displayValue ?? a.label) : l.forEach(({ label: t, displayValue: c }) => s.push(c ?? t));
443
443
  }
444
- return e.value.find((o) => o.value === a.value) && s.push(a.displayValue ?? a.label), s;
445
- }, []).join(", "), At = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
446
- const o = p(
444
+ return e.value.find((l) => l.value === a.value) && s.push(a.displayValue ?? a.label), s;
445
+ }, []).join(", "), Pt = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
446
+ const l = r(
447
447
  () => a.value && e.value.find((t) => {
448
- var u;
449
- return (u = t.items) == null ? void 0 : u.length;
448
+ var c;
449
+ return (c = t.items) == null ? void 0 : c.length;
450
450
  })
451
451
  );
452
- return p(() => s.value.length ? o.value ? It(s, e) : s.value.map(({ label: t, displayValue: u }) => u ?? t).join(", ") : i.value || null);
452
+ return r(() => s.value.length ? l.value ? Rt(s, e) : s.value.map(({ label: t, displayValue: c }) => c ?? t).join(", ") : i.value || null);
453
453
  }, $e = (e) => {
454
454
  var i;
455
455
  (i = e.value.$children) == null || i[0].$refs.textbox.focus();
456
- }, $t = ({
456
+ }, kt = ({
457
457
  inputContainerRef: e,
458
458
  optionsContainerRef: i,
459
459
  selectedValueIndex: s,
460
460
  isDropdownOpen: a,
461
- isDynamicFltering: o,
462
- items: l,
461
+ isDynamicFltering: l,
462
+ items: o,
463
463
  isMultiple: t
464
- }, u, v, g) => {
465
- const r = async (f) => {
464
+ }, c, v, g) => {
465
+ const d = async (p) => {
466
466
  var h;
467
- o.value && await E(), (h = l.value[f]) == null || h.focus();
468
- }, b = async (f) => {
469
- var $, M;
470
- o.value && await E();
471
- const h = ($ = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : $.$el.querySelectorAll(
467
+ l.value && await w(), (h = o.value[p]) == null || h.focus();
468
+ }, b = async (p) => {
469
+ var A, $;
470
+ l.value && await w();
471
+ const h = (A = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : A.$el.querySelectorAll(
472
472
  "button"
473
473
  );
474
- h.length ? (M = h[f]) == null || M.focus() : r(f);
475
- }, d = (f) => {
474
+ h.length ? ($ = h[p]) == null || $.focus() : d(p);
475
+ }, u = (p) => {
476
476
  var h;
477
477
  return (h = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : h.setListboxFocusedIndex(
478
- f
478
+ p
479
479
  );
480
- }, x = ({ detail: f }) => {
481
- f.preventDefault(), a.value || v(), E(() => {
482
- t ? b(0) : (d(s.value), r(s.value));
480
+ }, O = ({ detail: p }) => {
481
+ p.preventDefault(), a.value || v(), w(() => {
482
+ t ? b(0) : (u(s.value), d(s.value));
483
483
  });
484
- }, D = ({ detail: f }) => {
485
- f.preventDefault(), a.value || v(), E(() => {
486
- t ? b(0) : (d(s.value), r(s.value));
484
+ }, B = ({ detail: p }) => {
485
+ p.preventDefault(), a.value || v(), w(() => {
486
+ t ? b(0) : (u(s.value), d(s.value));
487
487
  });
488
488
  }, y = () => {
489
- a.value || (v(), E(() => {
490
- d(l.value.length - 1), r(l.value.length - 1);
489
+ a.value || (v(), w(() => {
490
+ u(o.value.length - 1), d(o.value.length - 1);
491
491
  }));
492
- }, T = () => {
492
+ }, D = () => {
493
493
  a.value && (g(), $e(e));
494
- }, C = () => {
494
+ }, E = () => {
495
495
  a.value && g();
496
496
  }, S = () => {
497
- a.value || v(), E(() => {
498
- r(0);
497
+ a.value || v(), w(() => {
498
+ d(0);
499
499
  });
500
- }, W = ({ detail: f }) => {
501
- f.preventDefault(), u(), a.value && E(() => {
502
- t ? b(0) : (d(s.value), r(s.value));
500
+ }, W = ({ detail: p }) => {
501
+ p.preventDefault(), c(), a.value && w(() => {
502
+ t ? b(0) : (u(s.value), d(s.value));
503
503
  });
504
- }, U = ({ detail: f }) => {
505
- f.preventDefault(), u(), a.value && E(() => {
506
- t ? b(0) : (d(s.value), r(s.value));
504
+ }, U = ({ detail: p }) => {
505
+ p.preventDefault(), c(), a.value && w(() => {
506
+ t ? b(0) : (u(s.value), d(s.value));
507
507
  });
508
508
  };
509
- return p(() => ({
510
- ...o.value ? {} : { [I.SPACE]: W },
509
+ return r(() => ({
510
+ ...l.value ? {} : { [I.SPACE]: W },
511
511
  [I.ENTER]: U,
512
- [I.ARROW_DOWN]: x,
513
- [I.ARROW_UP]: D,
512
+ [I.ARROW_DOWN]: O,
513
+ [I.ARROW_UP]: B,
514
514
  [I.END]: y,
515
- [I.ESCAPE]: T,
515
+ [I.ESCAPE]: D,
516
516
  [I.HOME]: S,
517
- [I.TAB]: C
517
+ [I.TAB]: E
518
518
  }));
519
- }, Mt = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
519
+ }, Kt = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
520
520
  const a = () => {
521
- i.value && s(), E(() => {
521
+ i.value && s(), w(() => {
522
522
  $e(e);
523
523
  });
524
524
  };
@@ -529,15 +529,15 @@ const xt = /* @__PURE__ */ Y(wt, [["render", Ot]]), Bt = { class: "b-dropdown-sm
529
529
  [m.SPACE]: a
530
530
  };
531
531
  };
532
- function Rt(e, i, s, a) {
533
- const o = w(e), l = w(i), t = (v, g = []) => g.flatMap((r) => r.label.toLocaleLowerCase().includes(v) ? a != null && a.value && r.items ? [...t(v, r.items)] : [r, ...t(v, r.items)] : r.items ? [...t(v, r.items)] : []);
534
- return be(o, () => {
535
- s !== void 0 && s(o.value);
536
- }), p(() => {
537
- if (!o.value || s !== void 0)
538
- return l.value;
539
- const v = o.value.toLocaleLowerCase();
540
- return t(v, l.value);
532
+ function Ft(e, i, s, a) {
533
+ const l = C(e), o = C(i), t = (v, g = []) => g.flatMap((d) => d.label.toLocaleLowerCase().includes(v) ? a != null && a.value && d.items ? [...t(v, d.items)] : [d, ...t(v, d.items)] : d.items ? [...t(v, d.items)] : []);
534
+ return Te(l, () => {
535
+ s !== void 0 && s(l.value);
536
+ }), r(() => {
537
+ if (!l.value || s !== void 0)
538
+ return o.value;
539
+ const v = l.value.toLocaleLowerCase();
540
+ return t(v, o.value);
541
541
  });
542
542
  }
543
543
  const Me = {
@@ -554,15 +554,15 @@ const Me = {
554
554
  all: "Todos",
555
555
  clearFilter: "Limpar filtro"
556
556
  }
557
- }, Pt = Symbol("input field component injection key"), oa = Symbol("input field hint injection key"), na = Symbol("input field parent component injection key"), kt = j({
557
+ }, zt = Symbol("input field component injection key"), ra = Symbol("input field hint injection key"), da = Symbol("input field parent component injection key"), jt = j({
558
558
  i18n: { messages: Me },
559
559
  name: "b-dropdown",
560
560
  components: {
561
- DropdownInputDefault: ot,
562
- DropdownInputSmall: Nt
561
+ DropdownInputDefault: it,
562
+ DropdownInputSmall: Mt
563
563
  }
564
- }), Kt = /* @__PURE__ */ j({
565
- ...kt,
564
+ }), Wt = /* @__PURE__ */ j({
565
+ ...jt,
566
566
  props: {
567
567
  /**
568
568
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -653,8 +653,8 @@ const Me = {
653
653
  */
654
654
  lazyLoadType: {
655
655
  type: String,
656
- default: ve.props.lazyLoadType.default,
657
- validator: (e) => Object.values(ye).includes(e)
656
+ default: me.props.lazyLoadType.default,
657
+ validator: (e) => Object.values(ve).includes(e)
658
658
  },
659
659
  /*
660
660
  * If enabled, the user will be able to select multiple items.
@@ -694,7 +694,7 @@ const Me = {
694
694
  size: {
695
695
  type: String,
696
696
  default: null,
697
- validator: (e) => Object.values(_).includes(e)
697
+ validator: (e) => Object.values(J).includes(e)
698
698
  },
699
699
  /**
700
700
  * If enabled, dropdown will display non-selectable, static categories
@@ -738,225 +738,220 @@ const Me = {
738
738
  },
739
739
  emits: ["input", "show-more"],
740
740
  setup(e, { expose: i, emit: s }) {
741
- var Ce;
742
- const a = Ge(), o = Ne(), l = ct(o), t = e, u = s, { t: v } = he({ messages: Me }), g = w(null), r = w(null), b = w(null), d = w(!1), x = J("bento-dropdown-options-container"), D = J("dropdown-label"), y = J("dropdown-description"), T = J("dropdown-error"), { isReadOnly: C } = st(B(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: U } = dt(
743
- B(t, "items"),
744
- B(t, "value"),
745
- B(t, "multiple"),
746
- B(t, "enableValueLabelPair")
747
- ), A = w(a["aria-label"]), { ariaLabel: f, label: h } = Ie(t), $ = p(() => v("ariaLabelFallback")), M = nt({
741
+ var we;
742
+ const a = at(), l = Ie(), o = vt(l), t = e, c = s, { t: v } = be({ messages: Me }), g = C(null), d = C(null), b = C(null), u = C(!1), O = _("bento-dropdown-options-container"), B = _("dropdown-label"), y = _("dropdown-description"), D = _("dropdown-error"), { isReadOnly: E } = pt(x(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: W, setCachedValues: U } = dt(
743
+ x(t, "items"),
744
+ x(t, "value"),
745
+ x(t, "multiple"),
746
+ x(t, "enableValueLabelPair")
747
+ ), N = C(a["aria-label"]), { ariaLabel: p, label: h } = Ne(t), A = r(() => v("ariaLabelFallback")), $ = rt({
748
748
  // TODO: take ariaLabel ref away when aria-label prop is removed
749
- ariaLabel: f.value || A,
749
+ ariaLabel: p.value || N,
750
750
  label: h,
751
- defaultFallback: $
752
- }), Le = t.size === _.SMALL || et(Pt, !1), Re = p(() => Le ? _.SMALL : _.DEFAULT), Pe = p(() => ({
751
+ defaultFallback: A
752
+ }), he = t.size === J.SMALL || ot(zt, !1), Re = r(() => he ? J.SMALL : J.DEFAULT), Pe = r(() => ({
753
753
  "b-dropdown--condensed": t.condensed
754
- })), ke = p(() => ({
754
+ })), ke = r(() => ({
755
755
  "b-dropdown__description--error": !!t.errorMessage
756
- })), R = w(""), Z = B(t, "items"), Ee = B(t, "staticCategories"), ae = Rt(R, Z, (Ce = t == null ? void 0 : t.search) == null ? void 0 : Ce.searchEvent, Ee), le = p(() => t.dynamicFiltering && !!R.value), Ke = At({
756
+ })), M = C(""), Z = x(t, "items"), Se = x(t, "staticCategories"), ae = Ft(M, Z, (we = t == null ? void 0 : t.search) == null ? void 0 : we.searchEvent, Se), oe = r(() => t.dynamicFiltering && !!M.value), Ke = Pt({
757
757
  items: Z,
758
- placeholder: B(t, "placeholder"),
759
- isMultiSelect: B(t, "multiple"),
758
+ placeholder: x(t, "placeholder"),
759
+ isMultiSelect: x(t, "multiple"),
760
760
  selectedValues: S
761
- }), Fe = p(() => {
761
+ }), Fe = r(() => {
762
762
  if (t != null && t.multiple && Array.isArray(t.value))
763
763
  return t.items.filter(
764
- ({ value: c }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(c)
764
+ ({ value: f }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(f)
765
765
  );
766
766
  if (!t.multiple && t.staticCategories) {
767
- const c = t.items.find(
768
- (N) => N.items.some((q) => q.value === t.value)
767
+ const f = t.items.find(
768
+ (k) => k.items.some((q) => q.value === t.value)
769
769
  );
770
- return c ? c.items.find((N) => N.value === t.value) : null;
770
+ return f ? f.items.find((k) => k.value === t.value) : null;
771
771
  }
772
- return t.items.find(({ value: c }) => c === (t == null ? void 0 : t.value));
773
- }), ze = p(() => {
774
- const c = ae.value.findIndex(({ value: O }) => t.value === O);
775
- return c > -1 ? c : 0;
776
- }), { isMultiLevelSelect: je, flattenedItemsList: We } = ut(Z), Ue = p(() => {
772
+ return t.items.find(({ value: f }) => f === (t == null ? void 0 : t.value));
773
+ }), ze = r(() => {
774
+ const f = ae.value.findIndex(({ value: T }) => t.value === T);
775
+ return f > -1 ? f : 0;
776
+ }), { isMultiLevelSelect: Le, flattenedItemsList: je } = ut(Z), We = r(() => Le.value && !t.staticCategories), Ue = r(() => We.value ? "treeitem" : "option"), qe = r(() => {
777
777
  if (t.multiple) {
778
- const c = Array.isArray(t.value) ? t.value.length : 0, O = je.value ? We.value.length : Z.value.length;
779
- return c === 0 ? null : !t.hasMoreItems && O > 0 && O === c ? v("all") : c;
778
+ const f = Array.isArray(t.value) ? t.value.length : 0, T = Le.value ? je.value.length : Z.value.length;
779
+ return f === 0 ? null : !t.hasMoreItems && T > 0 && T === f ? v("all") : f;
780
780
  }
781
781
  return null;
782
- }), qe = p(
783
- () => `${t.description ? y : ""} ${t.errorMessage ? T : ""}`.trim() || null
784
- ), He = () => {
785
- C.value || (d.value = !0, E(() => {
786
- se();
782
+ }), He = r(
783
+ () => `${t.description ? y : ""} ${t.errorMessage ? D : ""}`.trim() || null
784
+ ), Ve = r(() => {
785
+ var f;
786
+ return (f = b.value) == null ? void 0 : f.$el;
787
+ }), { visibleDomOptions: Je, updateVisibleDomOptions: Ee } = ct(
788
+ Ve,
789
+ ae,
790
+ Ue
791
+ ), _e = () => {
792
+ E.value || (u.value = !0, w(() => {
793
+ Ee();
787
794
  }));
788
- }, oe = () => {
789
- d.value = !1;
795
+ }, le = () => {
796
+ u.value = !1;
790
797
  }, ne = () => {
791
- C.value || (d.value = !d.value, E(() => {
792
- se();
793
- }), le.value && (R.value = ""));
794
- }, Ve = () => {
795
- le.value && (R.value = ""), d.value && (d.value = !1, b.value.onOutsideDropdownClick());
796
- }, _e = (c) => {
797
- t.multiple || (R.value = "", d.value = !1), U(c), u("input", W.value);
798
- }, Je = () => {
799
- u(m.SHOW_MORE);
800
- }, we = w([]), se = () => {
801
- var O;
802
- const c = (O = b.value) == null ? void 0 : O.$el;
803
- !c || c.nodeType === Node.COMMENT_NODE || (we.value = Array.from(
804
- c.querySelectorAll('[role="option"]')
805
- ).filter((N) => N.checkVisibility()));
806
- };
807
- be(ae, () => {
808
- E(() => {
809
- se();
810
- });
811
- });
812
- const Ye = $t(
798
+ E.value || (u.value = !u.value, w(() => {
799
+ Ee();
800
+ }), oe.value && (M.value = ""));
801
+ }, Ye = () => {
802
+ oe.value && (M.value = ""), u.value && (u.value = !1, b.value.onOutsideDropdownClick());
803
+ }, Ze = (f) => {
804
+ t.multiple || (M.value = "", u.value = !1), U(f), c("input", W.value);
805
+ }, Qe = () => {
806
+ c(m.SHOW_MORE);
807
+ }, Xe = kt(
813
808
  {
814
809
  inputContainerRef: g,
815
810
  optionsContainerRef: b,
816
811
  selectedValueIndex: ze,
817
- isDropdownOpen: d,
818
- isDynamicFltering: B(t, "dynamicFiltering"),
819
- items: we,
812
+ isDropdownOpen: u,
813
+ isDynamicFltering: x(t, "dynamicFiltering"),
814
+ items: Je,
820
815
  isMultiple: t.multiple
821
816
  },
822
817
  ne,
823
- He,
824
- oe
825
- ), Ze = Mt(
818
+ _e,
819
+ le
820
+ ), Ge = Kt(
826
821
  {
827
822
  inputContainerRef: g,
828
- isDropdownOpen: d
823
+ isDropdownOpen: u
829
824
  },
830
- oe
831
- ), Qe = {
832
- [m.CLOSE_DROPDOWN]: oe,
833
- [m.SELECT]: _e,
834
- [m.SHOW_MORE]: Je,
835
- ...Ze
825
+ le
826
+ ), et = {
827
+ [m.CLOSE_DROPDOWN]: le,
828
+ [m.SELECT]: Ze,
829
+ [m.SHOW_MORE]: Qe,
830
+ ...Ge
836
831
  };
837
- return t.error && xe(
832
+ return t.error && Oe(
838
833
  'BentoDropdown "error" property',
839
834
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
840
835
  Having the field as "undefined" will hide/remove the error.
841
836
  <bento-dropdown errorMessage="Error message text" />`,
842
837
  "2.0.0"
843
- ), t.size && xe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
838
+ ), t.size && Oe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
844
839
  focus: () => {
845
840
  g.value.focus();
846
841
  }
847
- }), (c, O) => {
848
- var N;
849
- return ee((L(), k("div", {
850
- class: me(["b-dropdown", Pe.value])
842
+ }), (f, T) => {
843
+ var k;
844
+ return ee((L(), P("div", {
845
+ class: fe(["b-dropdown", Pe.value])
851
846
  }, [
852
- n(h) ? (L(), K(n(pt), {
847
+ n(h) ? (L(), K(n(yt), {
853
848
  key: 0,
854
- id: n(D),
849
+ id: n(B),
855
850
  condensed: e.condensed,
856
851
  label: n(h),
857
852
  "tooltip-text": e.tooltipText,
858
853
  optional: e.optional,
859
854
  required: e.required
860
855
  }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
861
- ee((L(), k("div", P({
856
+ ee((L(), P("div", R({
862
857
  ref_key: "inputContainerRefWrapper",
863
- ref: r
864
- }, G(n(Ye), !0)), [
858
+ ref: d
859
+ }, G(n(Xe), !0)), [
865
860
  (L(), K(Ae(Re.value), {
866
861
  ref_key: "inputContainerRef",
867
862
  ref: g,
868
863
  condensed: e.condensed,
869
- value: R.value,
870
- "additional-items-selected": Ue.value,
871
- "aria-controls": n(x),
872
- ariaExpanded: d.value,
873
- "aria-labelledby": n(h) ? n(D) : null,
874
- "aria-describedby": qe.value,
875
- "aria-label": n(M),
876
- "aria-readonly": n(C),
877
- readonly: n(C),
864
+ value: M.value,
865
+ "additional-items-selected": qe.value,
866
+ "aria-controls": n(O),
867
+ ariaExpanded: u.value,
868
+ "aria-labelledby": n(h) ? n(B) : null,
869
+ "aria-describedby": He.value,
870
+ "aria-label": n($),
871
+ "aria-readonly": n(E),
872
+ readonly: n(E),
878
873
  disabled: e.disabled,
879
874
  "display-value": n(Ke),
880
875
  "dynamic-filtering": e.dynamicFiltering,
881
876
  "is-invalid": !!e.errorMessage || e.error,
882
877
  multiple: e.multiple,
883
- open: d.value,
884
- "selected-value-item": n(Le) ? void 0 : Fe.value,
878
+ open: u.value,
879
+ "selected-value-item": n(he) ? void 0 : Fe.value,
885
880
  "show-slot-content-in-multiple": e.showSlotContentInMultiple,
886
- onInput: O[0] || (O[0] = (q) => R.value = q),
881
+ onInput: T[0] || (T[0] = (q) => M.value = q),
887
882
  onOpen: ne,
888
883
  onClose: ne
889
- }, ue({ _: 2 }, [
890
- ce(n(o), (q, H) => ({
884
+ }, de({ _: 2 }, [
885
+ ue(n(l), (q, H) => ({
891
886
  name: H,
892
- fn: z((ie) => [
893
- X(c.$slots, H, pe(fe(ie)), void 0, !0)
887
+ fn: z((se) => [
888
+ X(f.$slots, H, ce(pe(se)), void 0, !0)
894
889
  ])
895
890
  }))
896
891
  ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "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"]))
897
892
  ], 16)), [
898
- [n(rt)]
893
+ [n(mt)]
899
894
  ]),
900
- g.value ? (L(), K(n(gt), P({
895
+ g.value ? (L(), K(n(Et), R({
901
896
  key: 1,
902
- id: n(x),
897
+ id: n(O),
903
898
  ref_key: "optionsContainerRef",
904
899
  ref: b,
905
- "aria-label": n(M),
900
+ "aria-label": n($),
906
901
  "component-loading": e.componentLoading,
907
902
  "empty-state": e.emptyState,
908
- "debounce-time": (N = e.search) == null ? void 0 : N.debounceTime,
903
+ "debounce-time": (k = e.search) == null ? void 0 : k.debounceTime,
909
904
  disabled: e.disabled,
910
905
  "is-option-disabled": e.isOptionDisabled,
911
906
  items: n(ae),
912
907
  multiple: e.multiple,
913
- "static-categories": Ee.value,
914
- open: d.value,
908
+ "static-categories": Se.value,
909
+ open: u.value,
915
910
  "selected-value": n(S),
916
- searching: le.value,
917
- "target-element": r.value,
911
+ searching: oe.value,
912
+ "target-element": d.value,
918
913
  loading: e.loading,
919
914
  "has-more-items": e.hasMoreItems,
920
915
  "lazy-load-type": e.lazyLoadType,
921
916
  "virtual-scroll": e.virtualScroll
922
- }, G(Qe)), ue({ _: 2 }, [
923
- ce(n(o), (q, H) => ({
917
+ }, G(et)), de({ _: 2 }, [
918
+ ue(n(l), (q, H) => ({
924
919
  name: H,
925
- fn: z((ie) => [
926
- X(c.$slots, H, pe(fe(ie)), void 0, !0)
920
+ fn: z((se) => [
921
+ X(f.$slots, H, ce(pe(se)), void 0, !0)
927
922
  ])
928
923
  }))
929
924
  ]), 1040, ["id", "aria-label", "component-loading", "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"])) : F("", !0),
930
- e.errorMessage ? (L(), K(n(ft), {
925
+ e.errorMessage ? (L(), K(n(bt), {
931
926
  key: 2,
932
- id: n(T),
927
+ id: n(D),
933
928
  "error-message": e.errorMessage,
934
929
  class: "b-dropdown__error-message"
935
930
  }, null, 8, ["id", "error-message"])) : F("", !0),
936
- e.description || n(l)("description") ? (L(), K(n(at), {
931
+ e.description || n(o)("description") ? (L(), K(n(nt), {
937
932
  key: 3,
938
933
  id: n(y),
939
- class: me(["b-dropdown__description", ke.value]),
934
+ class: fe(["b-dropdown__description", ke.value]),
940
935
  el: "span"
941
936
  }, {
942
937
  default: z(() => [
943
- X(c.$slots, "description", {}, () => [
944
- tt(ge(e.description), 1)
938
+ X(f.$slots, "description", {}, () => [
939
+ lt(ye(e.description), 1)
945
940
  ], !0)
946
941
  ]),
947
942
  _: 3
948
943
  }, 8, ["id", "class"])) : F("", !0)
949
944
  ], 2)), [
950
- [n(it), Ve]
945
+ [n(ft), Ye]
951
946
  ]);
952
947
  };
953
948
  }
954
- }), sa = /* @__PURE__ */ Y(Kt, [["__scopeId", "data-v-a3c2e9cb"]]);
949
+ }), ua = /* @__PURE__ */ Y(Wt, [["__scopeId", "data-v-288c1407"]]);
955
950
  export {
956
- sa as B,
957
- oa as I,
958
- Pt as a,
959
- na as b,
960
- Rt as u
951
+ ua as B,
952
+ ra as I,
953
+ zt as a,
954
+ da as b,
955
+ Ft as u
961
956
  };
962
- //# sourceMappingURL=dropdown.Bj6DK-2v.js.map
957
+ //# sourceMappingURL=dropdown.B5ZaFDn_.js.map