@adyen/bento-vue3 1.48.0 → 1.50.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 (223) hide show
  1. package/dist/@types/index.d.ts +107 -944
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid.css +1 -1
  9. package/dist/assets/dialog-page.css +1 -1
  10. package/dist/assets/dropdown.css +1 -1
  11. package/dist/assets/file-uploader.css +1 -1
  12. package/dist/assets/filter-bar.css +1 -1
  13. package/dist/assets/header.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/link.css +1 -1
  16. package/dist/assets/menu.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/payment-method.css +1 -1
  19. package/dist/assets/popover.css +1 -1
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/assets/toggle-button.css +1 -1
  22. package/dist/button.js +3 -3
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chunks/{action-bar.DWekSxPr.js → action-bar.DkGjsKiy.js} +6 -6
  26. package/dist/chunks/{action-bar.DWekSxPr.js.map → action-bar.DkGjsKiy.js.map} +1 -1
  27. package/dist/chunks/{alert.Dd2DYCZ1.js → alert.DGewBB2a.js} +2 -2
  28. package/dist/chunks/{alert.Dd2DYCZ1.js.map → alert.DGewBB2a.js.map} +1 -1
  29. package/dist/chunks/{base-modal.DOrcARK1.js → base-modal.gW2mkOwf.js} +5 -5
  30. package/dist/chunks/{base-modal.DOrcARK1.js.map → base-modal.gW2mkOwf.js.map} +1 -1
  31. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js → button-actions-with-menu.BXRKkFiw.js} +4 -4
  32. package/dist/chunks/{button-actions-with-menu.BRdRrr4J.js.map → button-actions-with-menu.BXRKkFiw.js.map} +1 -1
  33. package/dist/chunks/{button-actions.ncthaz2m.js → button-actions.BZEKcCbe.js} +2 -2
  34. package/dist/chunks/{button-actions.ncthaz2m.js.map → button-actions.BZEKcCbe.js.map} +1 -1
  35. package/dist/chunks/{button.Cneb6rPP.js → button.BXVKUuum.js} +2 -2
  36. package/dist/chunks/{button.Cneb6rPP.js.map → button.BXVKUuum.js.map} +1 -1
  37. package/dist/chunks/{calendar.BdLQOioy.js → calendar.DNQlLbkK.js} +2 -2
  38. package/dist/chunks/{calendar.BdLQOioy.js.map → calendar.DNQlLbkK.js.map} +1 -1
  39. package/dist/chunks/{card.BAg7yMMT.js → card.Ec-SR2qG.js} +2 -2
  40. package/dist/chunks/{card.BAg7yMMT.js.map → card.Ec-SR2qG.js.map} +1 -1
  41. package/dist/chunks/{checkbox-group.C-EmVp5t.js → checkbox-group.KeIRO8lx.js} +4 -4
  42. package/dist/chunks/{checkbox-group.C-EmVp5t.js.map → checkbox-group.KeIRO8lx.js.map} +1 -1
  43. package/dist/chunks/{checkbox.BOtqaTUl.js → checkbox.BllRk82F.js} +17 -17
  44. package/dist/chunks/{checkbox.BOtqaTUl.js.map → checkbox.BllRk82F.js.map} +1 -1
  45. package/dist/chunks/{code-snippet.C9fCiM5V.js → code-snippet.DfTfz3vU.js} +6 -6
  46. package/dist/chunks/{code-snippet.C9fCiM5V.js.map → code-snippet.DfTfz3vU.js.map} +1 -1
  47. package/dist/chunks/{controls-group.BeK9igGT.js → controls-group.BnbQO34k.js} +2 -2
  48. package/dist/chunks/{controls-group.BeK9igGT.js.map → controls-group.BnbQO34k.js.map} +1 -1
  49. package/dist/chunks/{copy.HpUjy6OL.js → copy.DAu8GrR9.js} +3 -3
  50. package/dist/chunks/{copy.HpUjy6OL.js.map → copy.DAu8GrR9.js.map} +1 -1
  51. package/dist/chunks/currency.DagWnTry.js.map +1 -1
  52. package/dist/chunks/{dashboard-section.DoGuJKz_.js → dashboard-section.pyg05_v_.js} +4 -4
  53. package/dist/chunks/{dashboard-section.DoGuJKz_.js.map → dashboard-section.pyg05_v_.js.map} +1 -1
  54. package/dist/chunks/{dashed-underline.DZuyR-N7.js → dashed-underline.DTZGLrPu.js} +3 -3
  55. package/dist/chunks/{dashed-underline.DZuyR-N7.js.map → dashed-underline.DTZGLrPu.js.map} +1 -1
  56. package/dist/chunks/{data-grid-template.BpJbblNT.js → data-grid-template.sUNqCvbt.js} +3 -3
  57. package/dist/chunks/{data-grid-template.BpJbblNT.js.map → data-grid-template.sUNqCvbt.js.map} +1 -1
  58. package/dist/chunks/{data-grid.CdTcZ3DP.js → data-grid.BNXoMZf9.js} +1028 -1022
  59. package/dist/chunks/data-grid.BNXoMZf9.js.map +1 -0
  60. package/dist/chunks/{date-picker.CjbhJWGH.js → date-picker.DgpHNnu_.js} +17 -17
  61. package/dist/chunks/{date-picker.CjbhJWGH.js.map → date-picker.DgpHNnu_.js.map} +1 -1
  62. package/dist/chunks/{date-range-picker.CoonfpYT.js → date-range-picker.CUIOfxjB.js} +26 -26
  63. package/dist/chunks/{date-range-picker.CoonfpYT.js.map → date-range-picker.CUIOfxjB.js.map} +1 -1
  64. package/dist/chunks/{dialog-page.D_r_CbyD.js → dialog-page.DK2UKGH8.js} +2 -2
  65. package/dist/chunks/{dialog-page.D_r_CbyD.js.map → dialog-page.DK2UKGH8.js.map} +1 -1
  66. package/dist/chunks/{dropdown-tag.B5QFkTl_.js → dropdown-tag.DqfoOcUU.js} +4 -4
  67. package/dist/chunks/{dropdown-tag.B5QFkTl_.js.map → dropdown-tag.DqfoOcUU.js.map} +1 -1
  68. package/dist/chunks/{dropdown.BN6DALZa.js → dropdown.a8OeeVAZ.js} +344 -344
  69. package/dist/chunks/dropdown.a8OeeVAZ.js.map +1 -0
  70. package/dist/chunks/{empty-state.C2ancCe6.js → empty-state.DkYtiTHG.js} +2 -2
  71. package/dist/chunks/{empty-state.C2ancCe6.js.map → empty-state.DkYtiTHG.js.map} +1 -1
  72. package/dist/chunks/{error-message.X-gxnQcx.js → error-message.B3z5WkLF.js} +2 -2
  73. package/dist/chunks/{error-message.X-gxnQcx.js.map → error-message.B3z5WkLF.js.map} +1 -1
  74. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  75. package/dist/chunks/{file-uploader.CLZ1rPz0.js → file-uploader.DV4I5Lvf.js} +475 -470
  76. package/dist/chunks/file-uploader.DV4I5Lvf.js.map +1 -0
  77. package/dist/chunks/{filter-bar.zvHeHs9B.js → filter-bar.BZkXUVLH.js} +20 -19
  78. package/dist/chunks/{filter-bar.zvHeHs9B.js.map → filter-bar.BZkXUVLH.js.map} +1 -1
  79. package/dist/chunks/{fixed-scroller.BZwgM5Io.js → fixed-scroller.B4Eag_Sd.js} +2 -2
  80. package/dist/chunks/{fixed-scroller.BZwgM5Io.js.map → fixed-scroller.B4Eag_Sd.js.map} +1 -1
  81. package/dist/chunks/{focus-trap.CnKbO3b1.js → focus-trap.DPJj05sV.js} +6 -3
  82. package/dist/chunks/{focus-trap.CnKbO3b1.js.map → focus-trap.DPJj05sV.js.map} +1 -1
  83. package/dist/chunks/{footer-actions.X_RokrtM.js → footer-actions.WvWwFKM8.js} +3 -3
  84. package/dist/chunks/{footer-actions.X_RokrtM.js.map → footer-actions.WvWwFKM8.js.map} +1 -1
  85. package/dist/chunks/{form-layout-title.xkALokzl.js → form-layout-title.BHL_MDqT.js} +2 -2
  86. package/dist/chunks/{form-layout-title.xkALokzl.js.map → form-layout-title.BHL_MDqT.js.map} +1 -1
  87. package/dist/chunks/{header.CUhyy9NL.js → header.CRC9X7v2.js} +20 -20
  88. package/dist/chunks/{header.CUhyy9NL.js.map → header.CRC9X7v2.js.map} +1 -1
  89. package/dist/chunks/{index.BMkVmbZj.js → index.BS3BeXQJ.js} +8 -7
  90. package/dist/chunks/{index.BMkVmbZj.js.map → index.BS3BeXQJ.js.map} +1 -1
  91. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js → info-icon-with-popover.BM0esxKN.js} +2 -2
  92. package/dist/chunks/{info-icon-with-popover.NzQciGvf.js.map → info-icon-with-popover.BM0esxKN.js.map} +1 -1
  93. package/dist/chunks/{info-icon.BCSBCH-5.js → info-icon.DQn8-VSp.js} +2 -2
  94. package/dist/chunks/{info-icon.BCSBCH-5.js.map → info-icon.DQn8-VSp.js.map} +1 -1
  95. package/dist/chunks/{input-field-password.B4HgGilX.js → input-field-password.Bo7FiAOq.js} +6 -6
  96. package/dist/chunks/{input-field-password.B4HgGilX.js.map → input-field-password.Bo7FiAOq.js.map} +1 -1
  97. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js → input-field-phone-number.DO2uU2XW.js} +2 -2
  98. package/dist/chunks/{input-field-phone-number.CpY2BLfO.js.map → input-field-phone-number.DO2uU2XW.js.map} +1 -1
  99. package/dist/chunks/{input-field.DQKiMtZo.js → input-field.rgA0t2sp.js} +3 -3
  100. package/dist/chunks/{input-field.DQKiMtZo.js.map → input-field.rgA0t2sp.js.map} +1 -1
  101. package/dist/chunks/inspector.types.Io6ONte7.js +184 -0
  102. package/dist/chunks/inspector.types.Io6ONte7.js.map +1 -0
  103. package/dist/chunks/{layout-row.9G7yVMVt.js → layout-row.BAz7JrXo.js} +2 -2
  104. package/dist/chunks/{layout-row.9G7yVMVt.js.map → layout-row.BAz7JrXo.js.map} +1 -1
  105. package/dist/chunks/{link.ClFi8uSm.js → link.CyGCtpse.js} +9 -9
  106. package/dist/chunks/link.CyGCtpse.js.map +1 -0
  107. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js → listbox-option-tag.DIk4F59J.js} +2 -2
  108. package/dist/chunks/{listbox-option-tag.CFNRfAtf.js.map → listbox-option-tag.DIk4F59J.js.map} +1 -1
  109. package/dist/chunks/{menu.DIKy_Pyt.js → menu.DKluB_Dn.js} +45 -44
  110. package/dist/chunks/menu.DKluB_Dn.js.map +1 -0
  111. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js → modal-fullscreen.D1gvJFag.js} +5 -5
  112. package/dist/chunks/{modal-fullscreen.Fqcd3B6-.js.map → modal-fullscreen.D1gvJFag.js.map} +1 -1
  113. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js} +5 -5
  114. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.PEGJemgc.js.map → modal.vue_vue_type_script_setup_true_lang.91_wyIIq.js.map} +1 -1
  115. package/dist/chunks/{pagination.DogGVwa2.js → pagination.CGS6fGUm.js} +3 -3
  116. package/dist/chunks/{pagination.DogGVwa2.js.map → pagination.CGS6fGUm.js.map} +1 -1
  117. package/dist/chunks/payment-method.CGNHCiy1.js +73 -0
  118. package/dist/chunks/payment-method.CGNHCiy1.js.map +1 -0
  119. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +1 -1
  120. package/dist/chunks/{popover.NEP6wuPa.js → popover.BNOfWuSb.js} +94 -93
  121. package/dist/chunks/popover.BNOfWuSb.js.map +1 -0
  122. package/dist/chunks/{popper-container.DKDjRvdv.js → popper-container.BvGYgqiE.js} +2 -2
  123. package/dist/chunks/{popper-container.DKDjRvdv.js.map → popper-container.BvGYgqiE.js.map} +1 -1
  124. package/dist/chunks/{promo-banner.DTH4CZ_2.js → promo-banner.BUtq-2iR.js} +3 -3
  125. package/dist/chunks/{promo-banner.DTH4CZ_2.js.map → promo-banner.BUtq-2iR.js.map} +1 -1
  126. package/dist/chunks/{radio-group.BLHcC22p.js → radio-group.CivaJaaQ.js} +4 -4
  127. package/dist/chunks/{radio-group.BLHcC22p.js.map → radio-group.CivaJaaQ.js.map} +1 -1
  128. package/dist/chunks/{search-bar.CatznIEM.js → search-bar.Zdai5UhB.js} +3 -3
  129. package/dist/chunks/{search-bar.CatznIEM.js.map → search-bar.Zdai5UhB.js.map} +1 -1
  130. package/dist/chunks/{secondary-nav.LIzkbQY1.js → secondary-nav.C6D6dcs6.js} +3 -3
  131. package/dist/chunks/{secondary-nav.LIzkbQY1.js.map → secondary-nav.C6D6dcs6.js.map} +1 -1
  132. package/dist/chunks/{segmented-control.DOxyrdMz.js → segmented-control.DKWpxDho.js} +2 -2
  133. package/dist/chunks/{segmented-control.DOxyrdMz.js.map → segmented-control.DKWpxDho.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.BKatprYB.js → selection-card-group.DzwIeKQC.js} +12 -12
  135. package/dist/chunks/{selection-card-group.BKatprYB.js.map → selection-card-group.DzwIeKQC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.Be3uyOVd.js → sidepanel.DzF1iCZM.js} +5 -5
  137. package/dist/chunks/{sidepanel.Be3uyOVd.js.map → sidepanel.DzF1iCZM.js.map} +1 -1
  138. package/dist/chunks/{structured-list-item.BwgEJywb.js → structured-list-item.DQHvIbQo.js} +5 -5
  139. package/dist/chunks/{structured-list-item.BwgEJywb.js.map → structured-list-item.DQHvIbQo.js.map} +1 -1
  140. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js → summary-grid-item-custom.D6s8sw36.js} +4 -4
  141. package/dist/chunks/{summary-grid-item-custom.Vx_YxH7S.js.map → summary-grid-item-custom.D6s8sw36.js.map} +1 -1
  142. package/dist/chunks/{tabs.CR2tWuz3.js → tabs.CiTn85aw.js} +2 -2
  143. package/dist/chunks/{tabs.CR2tWuz3.js.map → tabs.CiTn85aw.js.map} +1 -1
  144. package/dist/chunks/{tag.Chr4TP7d.js → tag.Bmw9RaOG.js} +2 -2
  145. package/dist/chunks/{tag.Chr4TP7d.js.map → tag.Bmw9RaOG.js.map} +1 -1
  146. package/dist/chunks/{textarea.BLhKC_iw.js → textarea.CzuRg2pM.js} +3 -3
  147. package/dist/chunks/{textarea.BLhKC_iw.js.map → textarea.CzuRg2pM.js.map} +1 -1
  148. package/dist/chunks/{timeline-item.BVm2YscV.js → timeline-item.CjltBKy0.js} +7 -7
  149. package/dist/chunks/{timeline-item.BVm2YscV.js.map → timeline-item.CjltBKy0.js.map} +1 -1
  150. package/dist/chunks/{toast.A5f1_NqV.js → toast.BWxPbCOy.js} +2 -2
  151. package/dist/chunks/{toast.A5f1_NqV.js.map → toast.BWxPbCOy.js.map} +1 -1
  152. package/dist/chunks/{toggle-button.CCgvi7TQ.js → toggle-button.B9LWddx9.js} +23 -22
  153. package/dist/chunks/toggle-button.B9LWddx9.js.map +1 -0
  154. package/dist/chunks/{tooltip.2MOlGHD9.js → tooltip.DS1ok8gh.js} +2 -2
  155. package/dist/chunks/{tooltip.2MOlGHD9.js.map → tooltip.DS1ok8gh.js.map} +1 -1
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js} +5 -5
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4ifiOTn.js.map → tutorial.vue_vue_type_script_setup_true_lang.CxTHd8yr.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.CoelUIEy.js → use-cached-selected-values.CxAhnNa6.js} +483 -479
  159. package/dist/chunks/use-cached-selected-values.CxAhnNa6.js.map +1 -0
  160. package/dist/code-snippet.js +1 -1
  161. package/dist/dashboard-template.js +1 -1
  162. package/dist/dashed-underline.js +1 -1
  163. package/dist/data-grid-template.js +1 -1
  164. package/dist/data-grid.js +1 -1
  165. package/dist/date-picker.js +2 -2
  166. package/dist/date-range-picker.js +2 -2
  167. package/dist/dropdown.js +3 -3
  168. package/dist/empty-state.js +1 -1
  169. package/dist/file-uploader.js +1 -1
  170. package/dist/filter-bar.js +1 -1
  171. package/dist/focus-trap.js +1 -1
  172. package/dist/form-layout.js +1 -1
  173. package/dist/header.js +1 -1
  174. package/dist/index.js +54 -54
  175. package/dist/info-icon.js +1 -1
  176. package/dist/input-field-password.js +1 -1
  177. package/dist/input-field-phone-number.js +1 -1
  178. package/dist/input-field.js +1 -1
  179. package/dist/inspector.js +1 -1
  180. package/dist/internal.js +12 -12
  181. package/dist/layout.js +1 -1
  182. package/dist/link.js +1 -1
  183. package/dist/menu.js +1 -1
  184. package/dist/modal-fullscreen.js +1 -1
  185. package/dist/modal.js +2 -2
  186. package/dist/pagination.js +1 -1
  187. package/dist/payment-method.js +1 -1
  188. package/dist/popover.js +1 -1
  189. package/dist/popper-container.js +1 -1
  190. package/dist/promo-banner.js +1 -1
  191. package/dist/radio-group.js +1 -1
  192. package/dist/search-bar.js +2 -2
  193. package/dist/secondary-nav.js +1 -1
  194. package/dist/segmented-control.js +1 -1
  195. package/dist/selection-card.js +1 -1
  196. package/dist/sidepanel.js +1 -1
  197. package/dist/structured-list.js +1 -1
  198. package/dist/styles/bento-dark.css +2 -1
  199. package/dist/styles/bento-light.css +2 -1
  200. package/dist/styles/bento.css +2 -1
  201. package/dist/styles/legacy.css +3 -0
  202. package/dist/styles/styleguide.css +2 -1
  203. package/dist/summary-grid.js +1 -1
  204. package/dist/tabs.js +1 -1
  205. package/dist/tag.js +1 -1
  206. package/dist/textarea.js +1 -1
  207. package/dist/timeline.js +1 -1
  208. package/dist/toast.js +1 -1
  209. package/dist/tutorial.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +4 -4
  212. package/dist/chunks/data-grid.CdTcZ3DP.js.map +0 -1
  213. package/dist/chunks/dropdown.BN6DALZa.js.map +0 -1
  214. package/dist/chunks/file-uploader.CLZ1rPz0.js.map +0 -1
  215. package/dist/chunks/inspector.types.C-Qos3dV.js +0 -124
  216. package/dist/chunks/inspector.types.C-Qos3dV.js.map +0 -1
  217. package/dist/chunks/link.ClFi8uSm.js.map +0 -1
  218. package/dist/chunks/menu.DIKy_Pyt.js.map +0 -1
  219. package/dist/chunks/payment-method.NguqkTwG.js +0 -103
  220. package/dist/chunks/payment-method.NguqkTwG.js.map +0 -1
  221. package/dist/chunks/popover.NEP6wuPa.js.map +0 -1
  222. package/dist/chunks/toggle-button.CCgvi7TQ.js.map +0 -1
  223. package/dist/chunks/use-cached-selected-values.CoelUIEy.js.map +0 -1
@@ -1,22 +1,22 @@
1
- import { ref as $, watch as Ee, computed as u, defineComponent as j, useSlots as Oe, toRefs as Ce, createBlock as K, openBlock as L, resolveDynamicComponent as Be, mergeProps as k, withCtx as z, createElementVNode as te, withKeys as _e, unref as n, createVNode as Q, toHandlers as G, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as P, createCommentVNode as F, toDisplayString as ve, normalizeClass as fe, withDirectives as ee, vShow as xe, nextTick as M, useAttrs as Ze, toRef as B, inject as Qe, createTextVNode as Xe } from "vue";
2
- import { d as Le, B as Ge } from "./typography.DN5eC5ch.js";
3
- import { a as ne, b as q, c as et, B as V, D as tt } from "./dropdown-default-textbox.BpvVMlcX.js";
4
- import { _ as Y } from "./_plugin-vue_export-helper.CHgC5LLL.js";
5
- import { s as ie } from "./events.FNmSWp_P.js";
6
- import { g as J } from "./generate-uid.NJ8tVoha.js";
7
- import { u as lt } from "./aria-label.CaUURpnB.js";
8
- import { u as be } from "./i18n.D9azDLPe.js";
9
- import { u as at } from "./use-form-layout-loading.D3lALhtC.js";
10
- import { B as ot } from "./directive.O3yEdalv.js";
11
- import { B as R, a as st } from "./keyboard-navigation.CqgGzfZQ.js";
12
- import { a as d, b as pe, B as me, c as nt, u as it } from "./use-cached-selected-values.CoelUIEy.js";
1
+ import { ref as C, watch as Oe, computed as c, defineComponent as F, useSlots as Be, toRefs as De, createBlock as k, openBlock as L, resolveDynamicComponent as $e, mergeProps as M, withCtx as K, createElementVNode as te, withKeys as _e, unref as n, createVNode as Q, toHandlers as G, createSlots as re, renderList as de, renderSlot as X, normalizeProps as ue, guardReactiveProps as ce, createElementBlock as R, createCommentVNode as P, toDisplayString as ve, normalizeClass as pe, withDirectives as ee, vShow as Le, nextTick as A, useAttrs as Ze, toRef as D, inject as Qe, createTextVNode as Xe } from "vue";
2
+ import { d as we, B as Ge } from "./typography.DN5eC5ch.js";
3
+ import { g as H } from "./generate-uid.NJ8tVoha.js";
4
+ import { u as et } from "./aria-label.CaUURpnB.js";
5
+ import { u as ye } from "./i18n.D9azDLPe.js";
6
+ import { u as tt } from "./use-form-layout-loading.D3lALhtC.js";
7
+ import { B as at } from "./directive.O3yEdalv.js";
8
+ import { s as se } from "./events.FNmSWp_P.js";
9
+ import { B as I, a as lt } from "./keyboard-navigation.CqgGzfZQ.js";
10
+ import { a as ie, b as U, c as ot, B as J, D as nt } from "./dropdown-default-textbox.BpvVMlcX.js";
11
+ import { a as u, b as fe, B as me, c as st, u as it } from "./use-cached-selected-values.CxAhnNa6.js";
13
12
  import { u as rt } from "./use-has-slot.B7eQSabc.js";
14
- import { F as dt, E as ut } from "./error-message.X-gxnQcx.js";
15
- import { P as Se } from "./popper-container.DKDjRvdv.js";
13
+ import { F as dt, E as ut } from "./error-message.B3z5WkLF.js";
14
+ import { P as Ce } from "./popper-container.BvGYgqiE.js";
16
15
  import "./popper-container.types.BCZMbVFD.js";
17
- import { B as ct } from "./popover.NEP6wuPa.js";
16
+ import { B as ct } from "./popover.BNOfWuSb.js";
17
+ import { _ as V } from "./_plugin-vue_export-helper.CHgC5LLL.js";
18
18
  import "../assets/dropdown.css";
19
- const ye = {
19
+ const be = {
20
20
  "en-US": {
21
21
  apply: "Apply",
22
22
  cancel: "Cancel",
@@ -30,62 +30,62 @@ const ye = {
30
30
  apply: "Aplicar",
31
31
  cancel: "Cancelar"
32
32
  }
33
- }, ft = (e, o, i, l) => {
34
- const s = $(e.value), { t: a } = be({ messages: ye });
35
- Ee(e, () => {
36
- s.value = e.value;
33
+ }, pt = (e, i, s, a) => {
34
+ const o = C(e.value), { t: l } = ye({ messages: be });
35
+ Oe(e, () => {
36
+ o.value = e.value;
37
37
  });
38
- const t = u(
39
- () => JSON.stringify(s.value) === JSON.stringify(e.value)
40
- ), r = () => {
41
- l(d.SELECT, s.value), l(d.CLOSE_DROPDOWN);
42
- }, c = () => {
43
- s.value = e.value, l(d.CLOSE_DROPDOWN);
44
- }, y = () => {
45
- i.value && o.value && (s.value = e.value);
46
- }, m = u(() => [
38
+ const t = c(
39
+ () => JSON.stringify(o.value) === JSON.stringify(e.value)
40
+ ), d = () => {
41
+ a(u.SELECT, o.value), a(u.CLOSE_DROPDOWN);
42
+ }, p = () => {
43
+ o.value = e.value, a(u.CLOSE_DROPDOWN);
44
+ }, h = () => {
45
+ s.value && i.value && (o.value = e.value);
46
+ }, r = c(() => [
47
47
  {
48
- title: a("apply"),
49
- event: r,
48
+ title: l("apply"),
49
+ event: d,
50
50
  disabled: t.value
51
51
  },
52
52
  {
53
- title: a("cancel"),
54
- event: c
53
+ title: l("cancel"),
54
+ event: p
55
55
  }
56
- ]), h = (x) => {
57
- s.value = x, o.value || l(d.SELECT, x);
58
- }, p = (x) => {
59
- h(x), l(d.TAB);
60
- }, E = (x) => {
61
- h(x), l(d.ENTER);
62
- }, O = (x) => {
63
- h(x), l(d.SPACE);
56
+ ]), y = (S) => {
57
+ o.value = S, i.value || a(u.SELECT, S);
58
+ }, m = (S) => {
59
+ y(S), a(u.TAB);
60
+ }, E = (S) => {
61
+ y(S), a(u.ENTER);
62
+ }, O = (S) => {
63
+ y(S), a(u.SPACE);
64
64
  }, f = () => {
65
- c(), l(d.ESCAPE);
66
- }, C = () => {
67
- l(d.SHOW_MORE);
68
- }, S = {
69
- [d.SELECT]: h,
70
- [d.SHOW_MORE]: C,
71
- [d.TAB]: p,
72
- [d.SPACE]: O,
73
- [d.ENTER]: E
65
+ p(), a(u.ESCAPE);
66
+ }, B = () => {
67
+ a(u.SHOW_MORE);
68
+ }, w = {
69
+ [u.SELECT]: y,
70
+ [u.SHOW_MORE]: B,
71
+ [u.TAB]: m,
72
+ [u.SPACE]: O,
73
+ [u.ENTER]: E
74
74
  };
75
75
  return {
76
76
  // Values
77
- actions: m,
78
- internalSelectedValue: s,
77
+ actions: r,
78
+ internalSelectedValue: o,
79
79
  // Methods
80
- listeners: S,
80
+ listeners: w,
81
81
  onEscapeKey: f,
82
- onOutsideDropdownClick: y
82
+ onOutsideDropdownClick: h
83
83
  };
84
- }, pt = j({
85
- i18n: { messages: ye },
84
+ }, ft = F({
85
+ i18n: { messages: be },
86
86
  name: "bento-dropdown-options-container"
87
- }), mt = /* @__PURE__ */ j({
88
- ...pt,
87
+ }), mt = /* @__PURE__ */ F({
88
+ ...ft,
89
89
  props: {
90
90
  /**
91
91
  * Defines a string value that labels an interactive element.
@@ -171,7 +171,7 @@ const ye = {
171
171
  *
172
172
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
173
173
  */
174
- searching: pe.props.searching,
174
+ searching: fe.props.searching,
175
175
  /**
176
176
  * If enabled, dropdown will display non-selectable, static categories
177
177
  */
@@ -180,7 +180,7 @@ const ye = {
180
180
  * Reference to the DOM element or Vue component for positioning
181
181
  * the Dropdown container.
182
182
  */
183
- targetElement: { type: Se.props.targetElement.type, required: !0 },
183
+ targetElement: { type: Ce.props.targetElement.type, required: !0 },
184
184
  /**
185
185
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
186
186
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -190,78 +190,78 @@ const ye = {
190
190
  default: !1
191
191
  }
192
192
  },
193
- setup(e, { expose: o, emit: i }) {
194
- const l = Oe(), s = i, a = e, { selectedValue: t, multiple: r } = Ce(a), c = $(null), { t: y } = be({ messages: ye }), m = u(() => a.open && !a.disabled), h = u(() => y("noOptionsMatchThisSearch")), p = u(() => ({
195
- "b-dropdown-options-container--single": !(a != null && a.multiple)
196
- })), E = u(() => ({
197
- "b-dropdown-options-container__listbox--single": !(a != null && a.multiple)
198
- })), { actions: O, internalSelectedValue: f, listeners: C, onEscapeKey: S, onOutsideDropdownClick: x } = ft(t, r, m, s), v = u(() => a != null && a.multiple ? ct : Se), g = u(() => {
199
- var T;
200
- const w = {
201
- "min-width": `${(T = a == null ? void 0 : a.targetElement) == null ? void 0 : T.clientWidth}px`,
193
+ setup(e, { expose: i, emit: s }) {
194
+ const a = Be(), o = s, l = e, { selectedValue: t, multiple: d } = De(l), p = C(null), { t: h } = ye({ messages: be }), r = c(() => l.open && !l.disabled), y = c(() => h("noOptionsMatchThisSearch")), m = c(() => ({
195
+ "b-dropdown-options-container--single": !(l != null && l.multiple)
196
+ })), E = c(() => ({
197
+ "b-dropdown-options-container__listbox--single": !(l != null && l.multiple)
198
+ })), { actions: O, internalSelectedValue: f, listeners: B, onEscapeKey: w, onOutsideDropdownClick: S } = pt(t, d, r, o), z = c(() => l != null && l.multiple ? ct : Ce), Y = c(() => {
199
+ var b;
200
+ const v = {
201
+ "min-width": `${(b = l == null ? void 0 : l.targetElement) == null ? void 0 : b.clientWidth}px`,
202
202
  "max-width": "min(500px, 95%)"
203
203
  };
204
- return a != null && a.multiple ? {
204
+ return l != null && l.multiple ? {
205
205
  actionsLayout: "space-between",
206
206
  actions: O.value,
207
207
  divider: !0,
208
208
  fallbackPosition: ["top-start"],
209
- id: J(`dropdown-options-${a.id}`),
210
- open: a.open,
209
+ id: H(`dropdown-options-${l.id}`),
210
+ open: l.open,
211
211
  position: "bottom-start",
212
212
  style: {
213
213
  width: "auto",
214
- ...w
214
+ ...v
215
215
  },
216
- targetElement: a.targetElement
216
+ targetElement: l.targetElement
217
217
  } : {
218
218
  fallbackPosition: ["top-start"],
219
219
  offset: [0, 8],
220
220
  position: "bottom-start",
221
221
  style: {
222
- display: m.value ? "block" : "none",
223
- ...w
222
+ display: r.value ? "block" : "none",
223
+ ...v
224
224
  },
225
- targetElement: a.targetElement
225
+ targetElement: l.targetElement
226
226
  };
227
227
  });
228
- return o({
229
- onOutsideDropdownClick: x
230
- }), (w, T) => (L(), K(Be(v.value), k({
231
- class: ["b-dropdown-options-container", p.value],
228
+ return i({
229
+ onOutsideDropdownClick: S
230
+ }), (v, b) => (L(), k($e(z.value), M({
231
+ class: ["b-dropdown-options-container", m.value],
232
232
  "aria-label": e.ariaLabel
233
- }, g.value), {
234
- default: z(() => [
233
+ }, Y.value), {
234
+ default: K(() => [
235
235
  te("div", {
236
- onKeydown: T[0] || (T[0] = _e(
236
+ onKeydown: b[0] || (b[0] = _e(
237
237
  //@ts-ignore
238
- (...N) => n(S) && n(S)(...N),
238
+ (...x) => n(w) && n(w)(...x),
239
239
  ["esc"]
240
240
  ))
241
241
  }, [
242
- Q(n(pe), k({
242
+ Q(n(fe), M({
243
243
  id: e.id,
244
244
  ref_key: "dropdownOptionsListboxRef",
245
- ref: c,
245
+ ref: p,
246
246
  "aria-label": e.ariaLabel,
247
247
  class: ["b-dropdown-options-container__listbox", E.value],
248
248
  "empty-state": e.emptyState,
249
249
  "is-option-disabled": e.isOptionDisabled,
250
250
  items: e.items,
251
251
  "selected-value": n(f),
252
- multiple: n(r),
252
+ multiple: n(d),
253
253
  "static-categories": e.staticCategories,
254
- "no-results-message": h.value,
254
+ "no-results-message": y.value,
255
255
  searching: e.searching,
256
256
  loading: e.loading,
257
257
  "lazy-load-type": e.lazyLoadType,
258
258
  "has-more-items": e.hasMoreItems,
259
259
  "virtual-scroll": e.virtualScroll
260
- }, G(n(C))), re({ _: 2 }, [
261
- de(n(l), (N, W) => ({
262
- name: W,
263
- fn: z((_) => [
264
- X(w.$slots, W, ue(ce(_)), void 0, !0)
260
+ }, G(n(B))), re({ _: 2 }, [
261
+ de(n(a), (x, j) => ({
262
+ name: j,
263
+ fn: K((_) => [
264
+ X(v.$slots, j, ue(ce(_)), void 0, !0)
265
265
  ])
266
266
  }))
267
267
  ]), 1040, ["id", "aria-label", "class", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
@@ -270,55 +270,55 @@ const ye = {
270
270
  _: 3
271
271
  }, 16, ["aria-label", "class"]));
272
272
  }
273
- }), vt = /* @__PURE__ */ Y(mt, [["__scopeId", "data-v-9390dd46"]]);
274
- let we = 0;
275
- const bt = {
273
+ }), vt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-9390dd46"]]);
274
+ let Ee = 0;
275
+ const yt = {
276
276
  beforeCreate() {
277
- this.uuid = we.toString(), we += 1;
277
+ this.uuid = Ee.toString(), Ee += 1;
278
278
  }
279
- }, yt = { key: 0 };
280
- function gt(e, o, i, l, s, a) {
281
- return L(), P("svg", k({ role: "img" }, e.$attrs, {
279
+ }, bt = { key: 0 };
280
+ function gt(e, i, s, a, o, l) {
281
+ return L(), R("svg", M({ role: "img" }, e.$attrs, {
282
282
  class: "ui-assets-icons-16",
283
283
  xmlns: "http://www.w3.org/2000/svg",
284
284
  width: "16",
285
285
  height: "16",
286
286
  fill: "none"
287
287
  }), [
288
- e.$attrs["svg-title"] ? (L(), P("title", yt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
289
- o[0] || (o[0] = te("path", {
288
+ e.$attrs["svg-title"] ? (L(), R("title", bt, ve(e.$attrs["svg-title"]), 1)) : P("", !0),
289
+ i[0] || (i[0] = te("path", {
290
290
  fill: "#00112C",
291
291
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
292
292
  }, null, -1))
293
293
  ], 16);
294
294
  }
295
- const ht = /* @__PURE__ */ Y(bt, [["render", gt]]);
296
- let $e = 0;
297
- const xt = {
295
+ const ht = /* @__PURE__ */ V(yt, [["render", gt]]);
296
+ let xe = 0;
297
+ const St = {
298
298
  beforeCreate() {
299
- this.uuid = $e.toString(), $e += 1;
299
+ this.uuid = xe.toString(), xe += 1;
300
300
  }
301
301
  }, Lt = { key: 0 };
302
- function St(e, o, i, l, s, a) {
303
- return L(), P("svg", k({ role: "img" }, e.$attrs, {
302
+ function wt(e, i, s, a, o, l) {
303
+ return L(), R("svg", M({ role: "img" }, e.$attrs, {
304
304
  class: "ui-assets-icons-16",
305
305
  xmlns: "http://www.w3.org/2000/svg",
306
306
  width: "16",
307
307
  height: "16",
308
308
  fill: "none"
309
309
  }), [
310
- e.$attrs["svg-title"] ? (L(), P("title", Lt, ve(e.$attrs["svg-title"]), 1)) : F("", !0),
311
- o[0] || (o[0] = te("path", {
310
+ e.$attrs["svg-title"] ? (L(), R("title", Lt, ve(e.$attrs["svg-title"]), 1)) : P("", !0),
311
+ i[0] || (i[0] = te("path", {
312
312
  fill: "#00112C",
313
313
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
314
314
  }, null, -1))
315
315
  ], 16);
316
316
  }
317
- const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-small-textbox__chevron" }, Et = j({
317
+ const Ct = /* @__PURE__ */ V(St, [["render", wt]]), Et = { class: "b-dropdown-small-textbox__chevron" }, xt = F({
318
318
  name: "dropdown-small-textbox",
319
319
  inheritAttrs: !1
320
- }), Ot = /* @__PURE__ */ j({
321
- ...Et,
320
+ }), Ot = /* @__PURE__ */ F({
321
+ ...xt,
322
322
  props: {
323
323
  /**
324
324
  * The number of additional items that have been selected in the dropdown.
@@ -378,49 +378,49 @@ const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-sm
378
378
  value: { type: String, default: "" }
379
379
  },
380
380
  emits: ["clear", "close", "input", "keydown", "open"],
381
- setup(e, { expose: o, emit: i }) {
382
- const l = i, s = e, a = $(null), t = u(() => ({
383
- [`b-dropdown-small-textbox--${ne.DISABLED}`]: s.disabled,
384
- [`b-dropdown-small-textbox--${ne.READONLY}`]: s.readonly,
385
- [`b-dropdown-small-textbox--${ne.OPENED}`]: s.open
386
- })), r = u(() => s.open && !s.disabled && !s.readonly), c = (f) => {
387
- l("input", f);
381
+ setup(e, { expose: i, emit: s }) {
382
+ const a = s, o = e, l = C(null), t = c(() => ({
383
+ [`b-dropdown-small-textbox--${ie.DISABLED}`]: o.disabled,
384
+ [`b-dropdown-small-textbox--${ie.READONLY}`]: o.readonly,
385
+ [`b-dropdown-small-textbox--${ie.OPENED}`]: o.open
386
+ })), d = c(() => o.open && !o.disabled && !o.readonly), p = (f) => {
387
+ a("input", f);
388
+ }, h = (f) => {
389
+ a("keydown", f);
390
+ }, r = (f) => {
391
+ se(f), a("open");
388
392
  }, y = (f) => {
389
- l("keydown", f);
393
+ se(f), a("close");
390
394
  }, m = (f) => {
391
- ie(f), l("open");
392
- }, h = (f) => {
393
- ie(f), l("close");
394
- }, p = (f) => {
395
- ie(f), l("clear");
395
+ se(f), a("clear");
396
396
  }, E = {
397
- [q.INPUT]: c,
398
- [q.OPEN]: m,
399
- [q.CLOSE]: h,
400
- [q.CLEAR]: p,
401
- [q.KEYDOWN]: y
397
+ [U.INPUT]: p,
398
+ [U.OPEN]: r,
399
+ [U.CLOSE]: y,
400
+ [U.CLEAR]: m,
401
+ [U.KEYDOWN]: h
402
402
  };
403
- return o({
403
+ return i({
404
404
  focus: () => {
405
- a.value.focus();
405
+ l.value.focus();
406
406
  }
407
- }), (f, C) => (L(), P("div", {
408
- class: fe(["b-dropdown-small-textbox", t.value])
407
+ }), (f, B) => (L(), R("div", {
408
+ class: pe(["b-dropdown-small-textbox", t.value])
409
409
  }, [
410
- Q(et, k({
410
+ Q(ot, M({
411
411
  ref_key: "baseTextbox",
412
- ref: a
412
+ ref: l
413
413
  }, { ...f.$attrs, ...f.$props }, {
414
414
  class: "b-dropdown-small-textbox__textbox",
415
- size: n(V).SMALL
415
+ size: n(J).SMALL
416
416
  }, G(E)), {
417
- icon: z(() => [
418
- te("div", $t, [
419
- ee(Q(n(wt), { "svg-title": "opened" }, null, 512), [
420
- [xe, r.value]
417
+ icon: K(() => [
418
+ te("div", Et, [
419
+ ee(Q(n(Ct), { "svg-title": "opened" }, null, 512), [
420
+ [Le, d.value]
421
421
  ]),
422
422
  ee(Q(n(ht), { "svg-title": "closed" }, null, 512), [
423
- [xe, !r.value]
423
+ [Le, !d.value]
424
424
  ])
425
425
  ])
426
426
  ]),
@@ -428,111 +428,111 @@ const wt = /* @__PURE__ */ Y(xt, [["render", St]]), $t = { class: "b-dropdown-sm
428
428
  }, 16, ["size"])
429
429
  ], 2));
430
430
  }
431
- }), Ct = /* @__PURE__ */ Y(Ot, [["__scopeId", "data-v-66b5eaa5"]]), Bt = (e, o) => o.value.reduce((i, l) => {
432
- if (l.items) {
433
- const s = l.items.filter(
434
- (t) => e.value.find((r) => r.value === t.value)
431
+ }), Bt = /* @__PURE__ */ V(Ot, [["__scopeId", "data-v-66b5eaa5"]]), Dt = (e, i) => i.value.reduce((s, a) => {
432
+ if (a.items) {
433
+ const o = a.items.filter(
434
+ (t) => e.value.find((d) => d.value === t.value)
435
435
  );
436
- s.length === l.items.length ? i.push(l.displayValue ?? l.label) : s.forEach(({ label: t, displayValue: r }) => i.push(r ?? t));
436
+ o.length === a.items.length ? s.push(a.displayValue ?? a.label) : o.forEach(({ label: t, displayValue: d }) => s.push(d ?? t));
437
437
  }
438
- return e.value.find((s) => s.value === l.value) && i.push(l.displayValue ?? l.label), i;
439
- }, []).join(", "), It = ({ items: e, placeholder: o, selectedValues: i, isMultiSelect: l }) => {
440
- const s = u(
441
- () => l.value && e.value.find((t) => {
442
- var r;
443
- return (r = t.items) == null ? void 0 : r.length;
438
+ return e.value.find((o) => o.value === a.value) && s.push(a.displayValue ?? a.label), s;
439
+ }, []).join(", "), $t = ({ items: e, placeholder: i, selectedValues: s, isMultiSelect: a }) => {
440
+ const o = c(
441
+ () => a.value && e.value.find((t) => {
442
+ var d;
443
+ return (d = t.items) == null ? void 0 : d.length;
444
444
  })
445
445
  );
446
- return u(() => i.value.length ? s.value ? Bt(i, e) : i.value.map(({ label: t, displayValue: r }) => r ?? t).join(", ") : o.value || null);
447
- }, Ie = (e) => {
448
- var o;
449
- (o = e.value.$children) == null || o[0].$refs.textbox.focus();
450
- }, Dt = ({
446
+ return c(() => s.value.length ? o.value ? Dt(s, e) : s.value.map(({ label: t, displayValue: d }) => d ?? t).join(", ") : i.value || null);
447
+ }, Te = (e) => {
448
+ var i;
449
+ (i = e.value.$children) == null || i[0].$refs.textbox.focus();
450
+ }, Tt = ({
451
451
  inputContainerRef: e,
452
- optionsContainerRef: o,
453
- selectedValueIndex: i,
454
- isDropdownOpen: l,
455
- isDynamicFltering: s,
456
- items: a,
452
+ optionsContainerRef: i,
453
+ selectedValueIndex: s,
454
+ isDropdownOpen: a,
455
+ isDynamicFltering: o,
456
+ items: l,
457
457
  isMultiple: t
458
- }, r, c, y) => {
459
- const m = ({ detail: v }) => {
460
- v.preventDefault(), l.value || c(), M(() => {
461
- var g;
462
- t ? (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[0].$el.focus() : (o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
463
- i.value
464
- ), o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[i.value].$el.focus());
458
+ }, d, p, h) => {
459
+ const r = async (v) => {
460
+ var b, x;
461
+ o.value && await A(), (x = (b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.$el.querySelectorAll('[role="option"]')[v]) == null || x.focus();
462
+ }, y = (v) => {
463
+ var b;
464
+ return (b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : b.setListboxFocusedIndex(
465
+ v
466
+ );
467
+ }, m = ({ detail: v }) => {
468
+ v.preventDefault(), a.value || p(), A(() => {
469
+ t ? r(0) : (y(s.value), r(s.value));
465
470
  });
466
- }, h = ({ detail: v }) => {
467
- v.preventDefault(), l.value || c(), M(() => {
468
- o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.setListboxFocusedIndex(
469
- i.value
470
- ), o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.listboxItemRef[i.value].$el.focus();
471
+ }, E = ({ detail: v }) => {
472
+ v.preventDefault(), a.value || p(), A(() => {
473
+ y(s.value), r(s.value);
471
474
  });
472
- }, p = () => {
473
- l.value || (c(), M(() => {
474
- var v, g;
475
+ }, O = () => {
476
+ a.value || (p(), A(() => {
477
+ var v;
475
478
  if (t) {
476
- const w = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
477
- (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[w.length - 1].$children[a.length - 1].$el.focus();
479
+ const b = i.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children;
480
+ (v = b == null ? void 0 : b[b.length - 1].$el.querySelectorAll('[role="option"]')[l.length - 1]) == null || v.focus();
478
481
  } else
479
- (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[a.length - 1].$el.focus();
482
+ y(l.length - 1), r(l.length - 1);
480
483
  }));
481
- }, E = () => {
482
- l.value && (y(), Ie(e));
483
- }, O = () => {
484
- l.value && y();
485
484
  }, f = () => {
486
- l.value || c(), M(() => {
487
- var v;
488
- (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus();
485
+ a.value && (h(), Te(e));
486
+ }, B = () => {
487
+ a.value && h();
488
+ }, w = () => {
489
+ a.value || p(), A(() => {
490
+ r(0);
489
491
  });
490
- }, C = ({ detail: v }) => {
491
- v.preventDefault(), r(), l.value && M(() => {
492
- var g, w;
493
- t ? (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[0].$el.focus() : (w = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || w[i.value].$el.focus();
492
+ }, S = ({ detail: v }) => {
493
+ v.preventDefault(), d(), a.value && A(() => {
494
+ t ? r(0) : (y(s.value), r(s.value));
494
495
  });
495
- }, S = () => {
496
- r(), l.value && M(() => {
497
- var v, g;
498
- t ? (v = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || v[0].$el.focus() : (g = o.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef.$children) == null || g[i.value].$el.focus();
496
+ }, z = () => {
497
+ d(), a.value && A(() => {
498
+ t ? r(0) : (y(s.value), r(s.value));
499
499
  });
500
500
  };
501
- return u(() => ({
502
- ...s.value ? {} : { [R.SPACE]: C },
503
- [R.ENTER]: S,
504
- [R.ARROW_DOWN]: m,
505
- [R.ARROW_UP]: h,
506
- [R.END]: p,
507
- [R.ESCAPE]: E,
508
- [R.HOME]: f,
509
- [R.TAB]: O
501
+ return c(() => ({
502
+ ...o.value ? {} : { [I.SPACE]: S },
503
+ [I.ENTER]: z,
504
+ [I.ARROW_DOWN]: m,
505
+ [I.ARROW_UP]: E,
506
+ [I.END]: O,
507
+ [I.ESCAPE]: f,
508
+ [I.HOME]: w,
509
+ [I.TAB]: B
510
510
  }));
511
- }, Rt = ({ inputContainerRef: e, isDropdownOpen: o }, i) => {
512
- const l = () => {
513
- o.value && i(), M(() => {
514
- Ie(e);
511
+ }, It = ({ inputContainerRef: e, isDropdownOpen: i }, s) => {
512
+ const a = () => {
513
+ i.value && s(), A(() => {
514
+ Te(e);
515
515
  });
516
516
  };
517
517
  return {
518
- [d.ENTER]: l,
519
- [d.ESCAPE]: l,
520
- [d.TAB]: l,
521
- [d.SPACE]: l
518
+ [u.ENTER]: a,
519
+ [u.ESCAPE]: a,
520
+ [u.TAB]: a,
521
+ [u.SPACE]: a
522
522
  };
523
523
  };
524
- function Tt(e, o, i, l) {
525
- const s = $(e), a = $(o), t = (c, y = []) => y.flatMap((m) => m.label.toLocaleLowerCase().includes(c) ? l != null && l.value && m.items ? [...t(c, m.items)] : [m, ...t(c, m.items)] : m.items ? [...t(c, m.items)] : []);
526
- return Ee(s, () => {
527
- i !== void 0 && i(s.value);
528
- }), u(() => {
529
- if (!s.value || i !== void 0)
530
- return a.value;
531
- const c = s.value.toLocaleLowerCase();
532
- return t(c, a.value);
524
+ function At(e, i, s, a) {
525
+ const o = C(e), l = C(i), t = (p, h = []) => h.flatMap((r) => r.label.toLocaleLowerCase().includes(p) ? a != null && a.value && r.items ? [...t(p, r.items)] : [r, ...t(p, r.items)] : r.items ? [...t(p, r.items)] : []);
526
+ return Oe(o, () => {
527
+ s !== void 0 && s(o.value);
528
+ }), c(() => {
529
+ if (!o.value || s !== void 0)
530
+ return l.value;
531
+ const p = o.value.toLocaleLowerCase();
532
+ return t(p, l.value);
533
533
  });
534
534
  }
535
- const De = {
535
+ const Ie = {
536
536
  "en-US": {
537
537
  all: "All",
538
538
  ariaLabelFallback: "Dropdown",
@@ -546,15 +546,15 @@ const De = {
546
546
  all: "Todos",
547
547
  clearFilter: "Limpar filtro"
548
548
  }
549
- }, Nt = Symbol("input field component injection key"), el = Symbol("input field hint injection key"), At = j({
550
- i18n: { messages: De },
549
+ }, Nt = Symbol("input field component injection key"), ea = Symbol("input field hint injection key"), Mt = F({
550
+ i18n: { messages: Ie },
551
551
  name: "b-dropdown",
552
552
  components: {
553
- DropdownInputDefault: tt,
554
- DropdownInputSmall: Ct
553
+ DropdownInputDefault: nt,
554
+ DropdownInputSmall: Bt
555
555
  }
556
- }), Mt = /* @__PURE__ */ j({
557
- ...At,
556
+ }), Rt = /* @__PURE__ */ F({
557
+ ...Mt,
558
558
  props: {
559
559
  /**
560
560
  * @deprecated from version 2.0.0. Use the aria-label attribute instead.
@@ -641,7 +641,7 @@ const De = {
641
641
  */
642
642
  lazyLoadType: {
643
643
  type: String,
644
- default: pe.props.lazyLoadType.default,
644
+ default: fe.props.lazyLoadType.default,
645
645
  validator: (e) => Object.values(me).includes(e)
646
646
  },
647
647
  /*
@@ -682,7 +682,7 @@ const De = {
682
682
  size: {
683
683
  type: String,
684
684
  default: null,
685
- validator: (e) => Object.values(V).includes(e)
685
+ validator: (e) => Object.values(J).includes(e)
686
686
  },
687
687
  /**
688
688
  * If enabled, dropdown will display non-selectable, static categories
@@ -711,208 +711,208 @@ const De = {
711
711
  }
712
712
  },
713
713
  emits: ["input", "show-more"],
714
- setup(e, { expose: o, emit: i }) {
715
- var he;
716
- const l = Ze(), s = Oe(), a = rt(s), t = e, r = i, { t: c } = be({ messages: De }), y = $(null), m = $(null), h = $(null), p = $(!1), E = J("bento-dropdown-options-container"), O = J("dropdown-label"), f = J("dropdown-description"), C = J("dropdown-error"), { isReadOnly: S } = at(B(t, "readonly")), { cachedSelectedListboxOptions: x, cachedListboxSelectedValues: v, setCachedValues: g } = nt(
717
- B(t, "items"),
718
- B(t, "value"),
719
- B(t, "multiple")
720
- ), w = $(l["aria-label"]), { ariaLabel: T, label: N } = Ce(t), W = lt({
714
+ setup(e, { expose: i, emit: s }) {
715
+ var Se;
716
+ const a = Ze(), o = Be(), l = rt(o), t = e, d = s, { t: p } = ye({ messages: Ie }), h = C(null), r = C(null), y = C(null), m = C(!1), E = H("bento-dropdown-options-container"), O = H("dropdown-label"), f = H("dropdown-description"), B = H("dropdown-error"), { isReadOnly: w } = tt(D(t, "readonly")), { cachedSelectedListboxOptions: S, cachedListboxSelectedValues: z, setCachedValues: Y } = st(
717
+ D(t, "items"),
718
+ D(t, "value"),
719
+ D(t, "multiple")
720
+ ), v = C(a["aria-label"]), { ariaLabel: b, label: x } = De(t), j = et({
721
721
  // TODO: take ariaLabel ref away when aria-label prop is removed
722
- ariaLabel: T || w,
723
- label: N,
724
- defaultFallback: c("ariaLabelFallback")
725
- }), _ = t.size === V.SMALL || Qe(Nt, !1), Re = u(() => _ ? V.SMALL : V.DEFAULT), Te = u(() => ({
722
+ ariaLabel: b || v,
723
+ label: x,
724
+ defaultFallback: p("ariaLabelFallback")
725
+ }), _ = t.size === J.SMALL || Qe(Nt, !1), Ae = c(() => _ ? J.SMALL : J.DEFAULT), Ne = c(() => ({
726
726
  "b-dropdown--condensed": t.condensed
727
- })), Ne = u(() => ({
727
+ })), Me = c(() => ({
728
728
  "b-dropdown__description--error": !!t.errorMessage
729
- })), A = $(""), Z = B(t, "items"), ge = B(t, "staticCategories"), Ae = Tt(A, Z, (he = t == null ? void 0 : t.search) == null ? void 0 : he.searchEvent, ge), le = u(() => t.dynamicFiltering && !!A.value), Me = It({
729
+ })), N = C(""), Z = D(t, "items"), ge = D(t, "staticCategories"), he = At(N, Z, (Se = t == null ? void 0 : t.search) == null ? void 0 : Se.searchEvent, ge), ae = c(() => t.dynamicFiltering && !!N.value), Re = $t({
730
730
  items: Z,
731
- placeholder: B(t, "placeholder"),
732
- isMultiSelect: B(t, "multiple"),
733
- selectedValues: x
734
- }), ke = u(() => {
731
+ placeholder: D(t, "placeholder"),
732
+ isMultiSelect: D(t, "multiple"),
733
+ selectedValues: S
734
+ }), ke = c(() => {
735
735
  if (t != null && t.multiple && Array.isArray(t.value))
736
736
  return t.items.filter(
737
- ({ value: b }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(b)
737
+ ({ value: g }) => (t == null ? void 0 : t.value) && (t == null ? void 0 : t.value).includes(g)
738
738
  );
739
739
  if (!t.multiple && t.staticCategories) {
740
- const b = t.items.find(
741
- (D) => D.items.some((U) => U.value === t.value)
740
+ const g = t.items.find(
741
+ (T) => T.items.some((W) => W.value === t.value)
742
742
  );
743
- return b ? b.items.find((D) => D.value === t.value) : null;
743
+ return g ? g.items.find((T) => T.value === t.value) : null;
744
744
  }
745
- return t.items.find(({ value: b }) => b === (t == null ? void 0 : t.value));
746
- }), Pe = u(() => {
747
- const b = t.items.findIndex(({ value: I }) => t.value === I);
748
- return b > 0 ? b : 0;
749
- }), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze = u(() => {
750
- var b;
745
+ return t.items.find(({ value: g }) => g === (t == null ? void 0 : t.value));
746
+ }), Pe = c(() => {
747
+ const g = he.value.findIndex(({ value: $ }) => t.value === $);
748
+ return g > 0 ? g : 0;
749
+ }), { isMultiLevelSelect: Ke, flattenedItemsList: Fe } = it(Z), ze = c(() => {
750
+ var g;
751
751
  if (t.multiple) {
752
- const I = (b = t == null ? void 0 : t.value) == null ? void 0 : b.length, D = Ke.value ? Fe.value.length : Z.value.length;
753
- return !t.hasMoreItems && D === I ? c("all") : I;
752
+ const $ = (g = t == null ? void 0 : t.value) == null ? void 0 : g.length, T = Ke.value ? Fe.value.length : Z.value.length;
753
+ return !t.hasMoreItems && T === $ ? p("all") : $;
754
754
  }
755
755
  return null;
756
- }), je = u(
757
- () => `${t.description ? f : ""} ${t.errorMessage ? C : ""}`.trim() || null
756
+ }), je = c(
757
+ () => `${t.description ? f : ""} ${t.errorMessage ? B : ""}`.trim() || null
758
758
  ), We = () => {
759
- S.value || (p.value = !0);
760
- }, ae = () => {
761
- p.value = !1;
759
+ w.value || (m.value = !0);
760
+ }, le = () => {
761
+ m.value = !1;
762
762
  }, oe = () => {
763
- S.value || (p.value = !p.value, le.value && (A.value = ""));
764
- }, Ue = () => {
765
- le.value && (A.value = ""), p.value && (p.value = !1, h.value.onOutsideDropdownClick());
766
- }, He = (b) => {
767
- t.multiple || (A.value = "", p.value = !1), g(b), r("input", v.value);
763
+ w.value || (m.value = !m.value, ae.value && (N.value = ""));
768
764
  }, qe = () => {
769
- r(d.SHOW_MORE);
770
- }, Ve = Dt(
765
+ ae.value && (N.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
766
+ }, Ue = (g) => {
767
+ t.multiple || (N.value = "", m.value = !1), Y(g), d("input", z.value);
768
+ }, He = () => {
769
+ d(u.SHOW_MORE);
770
+ }, Je = Tt(
771
771
  {
772
- inputContainerRef: y,
773
- optionsContainerRef: h,
772
+ inputContainerRef: h,
773
+ optionsContainerRef: y,
774
774
  selectedValueIndex: Pe,
775
- isDropdownOpen: p,
776
- isDynamicFltering: B(t, "dynamicFiltering"),
775
+ isDropdownOpen: m,
776
+ isDynamicFltering: D(t, "dynamicFiltering"),
777
777
  items: t.items,
778
778
  isMultiple: t.multiple
779
779
  },
780
780
  oe,
781
781
  We,
782
- ae
783
- ), Je = Rt(
782
+ le
783
+ ), Ve = It(
784
784
  {
785
- inputContainerRef: y,
786
- isDropdownOpen: p
785
+ inputContainerRef: h,
786
+ isDropdownOpen: m
787
787
  },
788
- ae
788
+ le
789
789
  ), Ye = {
790
- [d.CLOSE_DROPDOWN]: ae,
791
- [d.SELECT]: He,
792
- [d.SHOW_MORE]: qe,
793
- ...Je
790
+ [u.CLOSE_DROPDOWN]: le,
791
+ [u.SELECT]: Ue,
792
+ [u.SHOW_MORE]: He,
793
+ ...Ve
794
794
  };
795
- return t.error && Le(
795
+ return t.error && we(
796
796
  'BentoDropdown "error" property',
797
797
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
798
798
  Having the field as "undefined" will hide/remove the error.
799
799
  <bento-dropdown errorMessage="Error message text" />`,
800
800
  "2.0.0"
801
- ), t.size && Le('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), o({
801
+ ), t.size && we('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), i({
802
802
  focus: () => {
803
- y.value.focus();
803
+ h.value.focus();
804
804
  }
805
- }), (b, I) => {
806
- var D;
807
- return ee((L(), P("div", {
808
- class: fe(["b-dropdown", Te.value])
805
+ }), (g, $) => {
806
+ var T;
807
+ return ee((L(), R("div", {
808
+ class: pe(["b-dropdown", Ne.value])
809
809
  }, [
810
- n(N) ? (L(), K(n(dt), {
810
+ n(x) ? (L(), k(n(dt), {
811
811
  key: 0,
812
812
  id: n(O),
813
813
  condensed: e.condensed,
814
- label: n(N),
814
+ label: n(x),
815
815
  "tooltip-text": e.tooltipText,
816
816
  optional: e.optional,
817
817
  required: e.required
818
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : F("", !0),
819
- ee((L(), P("div", k({
818
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : P("", !0),
819
+ ee((L(), R("div", M({
820
820
  ref_key: "inputContainerRefWrapper",
821
- ref: m
822
- }, G(n(Ve), !0)), [
823
- (L(), K(Be(Re.value), {
821
+ ref: r
822
+ }, G(n(Je), !0)), [
823
+ (L(), k($e(Ae.value), {
824
824
  ref_key: "inputContainerRef",
825
- ref: y,
825
+ ref: h,
826
826
  condensed: e.condensed,
827
- value: A.value,
827
+ value: N.value,
828
828
  "additional-items-selected": ze.value,
829
829
  ariaControls: n(E),
830
- ariaExpanded: p.value,
831
- "aria-labelledby": n(N) ? n(O) : null,
830
+ ariaExpanded: m.value,
831
+ "aria-labelledby": n(x) ? n(O) : null,
832
832
  "aria-describedby": je.value,
833
- "aria-label": n(W),
834
- "aria-readonly": n(S),
835
- readonly: n(S),
833
+ "aria-label": n(j),
834
+ "aria-readonly": n(w),
835
+ readonly: n(w),
836
836
  disabled: e.disabled,
837
- "display-value": n(Me),
837
+ "display-value": n(Re),
838
838
  "dynamic-filtering": e.dynamicFiltering,
839
839
  "is-invalid": !!e.errorMessage || e.error,
840
840
  multiple: e.multiple,
841
- open: p.value,
841
+ open: m.value,
842
842
  "selected-value-item": n(_) ? void 0 : ke.value,
843
843
  "show-slot-content-in-multiple": e.showSlotContentInMultiple,
844
- onInput: I[0] || (I[0] = (U) => A.value = U),
844
+ onInput: $[0] || ($[0] = (W) => N.value = W),
845
845
  onOpen: oe,
846
846
  onClose: oe
847
847
  }, re({ _: 2 }, [
848
- de(n(s), (U, H) => ({
849
- name: H,
850
- fn: z((se) => [
851
- X(b.$slots, H, ue(ce(se)), void 0, !0)
848
+ de(n(o), (W, q) => ({
849
+ name: q,
850
+ fn: K((ne) => [
851
+ X(g.$slots, q, ue(ce(ne)), void 0, !0)
852
852
  ])
853
853
  }))
854
854
  ]), 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"]))
855
855
  ], 16)), [
856
- [n(st)]
856
+ [n(lt)]
857
857
  ]),
858
- y.value ? (L(), K(n(vt), k({
858
+ h.value ? (L(), k(n(vt), M({
859
859
  key: 1,
860
860
  id: n(E),
861
861
  ref_key: "optionsContainerRef",
862
- ref: h,
863
- "aria-label": n(W),
862
+ ref: y,
863
+ "aria-label": n(j),
864
864
  "empty-state": e.emptyState,
865
- "debounce-time": (D = e.search) == null ? void 0 : D.debounceTime,
865
+ "debounce-time": (T = e.search) == null ? void 0 : T.debounceTime,
866
866
  disabled: e.disabled,
867
867
  "is-option-disabled": e.isOptionDisabled,
868
- items: n(Ae),
868
+ items: n(he),
869
869
  multiple: e.multiple,
870
870
  "static-categories": ge.value,
871
- open: p.value,
872
- "selected-value": n(x),
873
- searching: le.value,
874
- "target-element": m.value,
871
+ open: m.value,
872
+ "selected-value": n(S),
873
+ searching: ae.value,
874
+ "target-element": r.value,
875
875
  loading: e.loading,
876
876
  "has-more-items": e.hasMoreItems,
877
877
  "lazy-load-type": e.lazyLoadType,
878
878
  "virtual-scroll": e.virtualScroll
879
879
  }, G(Ye)), re({ _: 2 }, [
880
- de(n(s), (U, H) => ({
881
- name: H,
882
- fn: z((se) => [
883
- X(b.$slots, H, ue(ce(se)), void 0, !0)
880
+ de(n(o), (W, q) => ({
881
+ name: q,
882
+ fn: K((ne) => [
883
+ X(g.$slots, q, ue(ce(ne)), void 0, !0)
884
884
  ])
885
885
  }))
886
- ]), 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"])) : F("", !0),
887
- e.errorMessage ? (L(), K(n(ut), {
886
+ ]), 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"])) : P("", !0),
887
+ e.errorMessage ? (L(), k(n(ut), {
888
888
  key: 2,
889
- id: n(C),
889
+ id: n(B),
890
890
  "error-message": e.errorMessage,
891
891
  class: "b-dropdown__error-message"
892
- }, null, 8, ["id", "error-message"])) : F("", !0),
893
- e.description || n(a)("description") ? (L(), K(n(Ge), {
892
+ }, null, 8, ["id", "error-message"])) : P("", !0),
893
+ e.description || n(l)("description") ? (L(), k(n(Ge), {
894
894
  key: 3,
895
895
  id: n(f),
896
- class: fe(["b-dropdown__description", Ne.value]),
896
+ class: pe(["b-dropdown__description", Me.value]),
897
897
  el: "span"
898
898
  }, {
899
- default: z(() => [
900
- X(b.$slots, "description", {}, () => [
899
+ default: K(() => [
900
+ X(g.$slots, "description", {}, () => [
901
901
  Xe(ve(e.description), 1)
902
902
  ], !0)
903
903
  ]),
904
904
  _: 3
905
- }, 8, ["id", "class"])) : F("", !0)
905
+ }, 8, ["id", "class"])) : P("", !0)
906
906
  ], 2)), [
907
- [n(ot), Ue]
907
+ [n(at), qe]
908
908
  ]);
909
909
  };
910
910
  }
911
- }), tl = /* @__PURE__ */ Y(Mt, [["__scopeId", "data-v-3adaf83b"]]);
911
+ }), ta = /* @__PURE__ */ V(Rt, [["__scopeId", "data-v-c2f2009c"]]);
912
912
  export {
913
- tl as B,
914
- el as I,
913
+ ta as B,
914
+ ea as I,
915
915
  Nt as a,
916
- Tt as u
916
+ At as u
917
917
  };
918
- //# sourceMappingURL=dropdown.BN6DALZa.js.map
918
+ //# sourceMappingURL=dropdown.a8OeeVAZ.js.map