@adyen/bento-vue3 1.91.0 → 1.92.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 (229) hide show
  1. package/dist/@types/index.d.ts +128 -137
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox-group.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-range-picker.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-tag.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/input-field-password.css +1 -1
  20. package/dist/assets/input-field-phone-number.css +1 -1
  21. package/dist/assets/input-field.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/modal-fullscreen.css +1 -1
  24. package/dist/assets/secondary-nav.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/assets/textarea.css +1 -1
  27. package/dist/assets/toggle.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/button.js +1 -1
  30. package/dist/card.js +1 -1
  31. package/dist/checkbox.js +2 -2
  32. package/dist/chunks/{action-bar.BPS3wPde.js → action-bar.BxyRAZn1.js} +3 -3
  33. package/dist/chunks/{action-bar.BPS3wPde.js.map → action-bar.BxyRAZn1.js.map} +1 -1
  34. package/dist/chunks/{ai-tag.D7shWB_x.js → ai-tag.CpeZm2Yf.js} +2 -2
  35. package/dist/chunks/{ai-tag.D7shWB_x.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
  36. package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
  37. package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
  38. package/dist/chunks/{base-modal.BxcS7Pao.js → base-modal.C8Rsc2oO.js} +3 -3
  39. package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
  40. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js → button-actions-with-menu.KaWdHibo.js} +2 -2
  41. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
  42. package/dist/chunks/{button-actions.DLiM8KZL.js → button-actions.7Oi2Ra4p.js} +87 -93
  43. package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
  44. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  45. package/dist/chunks/button.DWF7FSIw.js.map +1 -1
  46. package/dist/chunks/{calendar.qm-kFNQv.js → calendar.DfMwuOIR.js} +516 -456
  47. package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
  48. package/dist/chunks/{card.BEChcEqg.js → card.7q8tTfjG.js} +2 -2
  49. package/dist/chunks/card.7q8tTfjG.js.map +1 -0
  50. package/dist/chunks/{checkbox-group.i3W8WO-7.js → checkbox-group.DawPC5Go.js} +4 -4
  51. package/dist/chunks/checkbox-group.DawPC5Go.js.map +1 -0
  52. package/dist/chunks/{checkbox.BPrymcRl.js → checkbox.CDjMTuJk.js} +20 -22
  53. package/dist/chunks/checkbox.CDjMTuJk.js.map +1 -0
  54. package/dist/chunks/{code-snippet.BG5ZmCrb.js → code-snippet.Dtb7CDv9.js} +3 -3
  55. package/dist/chunks/code-snippet.Dtb7CDv9.js.map +1 -0
  56. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  57. package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  58. package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
  59. package/dist/chunks/{dashboard-section.C7mfUXOl.js → dashboard-section.kwKlujP-.js} +2 -2
  60. package/dist/chunks/{dashboard-section.C7mfUXOl.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
  61. package/dist/chunks/{dashed-underline.B50DIXjK.js → dashed-underline.ADDEdamG.js} +2 -2
  62. package/dist/chunks/{dashed-underline.B50DIXjK.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
  63. package/dist/chunks/{data-grid-template.CKdZb6EN.js → data-grid-template.C69yN3ZR.js} +2 -2
  64. package/dist/chunks/{data-grid-template.CKdZb6EN.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
  65. package/dist/chunks/{data-grid.DvMe72LK.js → data-grid._kCZlpR4.js} +464 -465
  66. package/dist/chunks/data-grid._kCZlpR4.js.map +1 -0
  67. package/dist/chunks/{date-picker.CidHad1p.js → date-picker.D08qIp2A.js} +7 -7
  68. package/dist/chunks/{date-picker.CidHad1p.js.map → date-picker.D08qIp2A.js.map} +1 -1
  69. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  70. package/dist/chunks/date-range-picker.BXzTT4AF.js +1038 -0
  71. package/dist/chunks/date-range-picker.BXzTT4AF.js.map +1 -0
  72. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  73. package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
  74. package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
  75. package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
  76. package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  77. package/dist/chunks/{draggable-handle.CySRx1tb.js → draggable-handle.BWHOlabB.js} +2 -2
  78. package/dist/chunks/{draggable-handle.CySRx1tb.js.map → draggable-handle.BWHOlabB.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.wcJ6Mgqe.js → dropdown-tag.Sk2n9gbl.js} +6 -6
  80. package/dist/chunks/dropdown-tag.Sk2n9gbl.js.map +1 -0
  81. package/dist/chunks/{dropdown.DHoL50gV.js → dropdown.CuIBYLdy.js} +400 -396
  82. package/dist/chunks/dropdown.CuIBYLdy.js.map +1 -0
  83. package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
  84. package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  85. package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
  86. package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
  87. package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
  88. package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
  89. package/dist/chunks/{file-uploader.Dbg3vfZ_.js → file-uploader.B5_l2uQO.js} +4 -5
  90. package/dist/chunks/{file-uploader.Dbg3vfZ_.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
  91. package/dist/chunks/{filter-bar.Dt-cU3zy.js → filter-bar.gwDFNkp5.js} +22 -22
  92. package/dist/chunks/filter-bar.gwDFNkp5.js.map +1 -0
  93. package/dist/chunks/{footer-actions.CYBdKDPo.js → footer-actions.4Qj_I3cd.js} +2 -2
  94. package/dist/chunks/{footer-actions.CYBdKDPo.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
  95. package/dist/chunks/{form-layout-title.B3ePK3yi.js → form-layout-title.B712PesH.js} +2 -2
  96. package/dist/chunks/{form-layout-title.B3ePK3yi.js.map → form-layout-title.B712PesH.js.map} +1 -1
  97. package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
  98. package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
  99. package/dist/chunks/{header-meta.COak4D8-.js → header-meta.BJjFOcxY.js} +14 -14
  100. package/dist/chunks/{header-meta.COak4D8-.js.map → header-meta.BJjFOcxY.js.map} +1 -1
  101. package/dist/chunks/{header-with-views.DqioajcO.js → header-with-views.CMO5q6g5.js} +8 -8
  102. package/dist/chunks/{header-with-views.DqioajcO.js.map → header-with-views.CMO5q6g5.js.map} +1 -1
  103. package/dist/chunks/{header.C21yzWrk.js → header.5RQulwlL.js} +3 -3
  104. package/dist/chunks/header.5RQulwlL.js.map +1 -0
  105. package/dist/chunks/{input-field-password.DyUphhxB.js → input-field-password.DWR0liBW.js} +5 -5
  106. package/dist/chunks/input-field-password.DWR0liBW.js.map +1 -0
  107. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js → input-field-phone-number.ByjukCrO.js} +4 -4
  108. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js.map → input-field-phone-number.ByjukCrO.js.map} +1 -1
  109. package/dist/chunks/{input-field.DkUFvIWt.js → input-field.FkzBZDWS.js} +141 -130
  110. package/dist/chunks/input-field.FkzBZDWS.js.map +1 -0
  111. package/dist/chunks/{input-time.WI_qdwJc.js → input-time.DlvANG4O.js} +4 -4
  112. package/dist/chunks/{input-time.WI_qdwJc.js.map → input-time.DlvANG4O.js.map} +1 -1
  113. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  114. package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  115. package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
  116. package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
  117. package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
  118. package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
  119. package/dist/chunks/link.D6D6YGsN.js.map +1 -1
  120. package/dist/chunks/{modal-fullscreen.c6QphYQo.js → modal-fullscreen.CepaWyoi.js} +2 -2
  121. package/dist/chunks/{modal-fullscreen.c6QphYQo.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
  122. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
  123. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
  124. package/dist/chunks/{pagination.Cu85Lqms.js → pagination.Ch_Occwt.js} +2 -2
  125. package/dist/chunks/{pagination.Cu85Lqms.js.map → pagination.Ch_Occwt.js.map} +1 -1
  126. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  127. package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
  128. package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
  129. package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
  130. package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
  131. package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  132. package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -1
  133. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js → rich-text-editor.mxbLaG6q.js} +3 -3
  134. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js.map → rich-text-editor.mxbLaG6q.js.map} +1 -1
  135. package/dist/chunks/{search-bar.p6kHCCvT.js → search-bar.JDkxJGjF.js} +4 -4
  136. package/dist/chunks/{search-bar.p6kHCCvT.js.map → search-bar.JDkxJGjF.js.map} +1 -1
  137. package/dist/chunks/{secondary-nav.CaxiyVaO.js → secondary-nav.CROQNbYk.js} +2 -2
  138. package/dist/chunks/{secondary-nav.CaxiyVaO.js.map → secondary-nav.CROQNbYk.js.map} +1 -1
  139. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  140. package/dist/chunks/{selection-card-group.58XZj_SJ.js → selection-card-group.DJ6FFvsA.js} +9 -9
  141. package/dist/chunks/{selection-card-group.58XZj_SJ.js.map → selection-card-group.DJ6FFvsA.js.map} +1 -1
  142. package/dist/chunks/{sidepanel.CAVhSs-O.js → sidepanel.S037xghX.js} +3 -3
  143. package/dist/chunks/{sidepanel.CAVhSs-O.js.map → sidepanel.S037xghX.js.map} +1 -1
  144. package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
  145. package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  146. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  147. package/dist/chunks/{summary-grid.types.CDithi8M.js → summary-grid.types.D1JQ_jtv.js} +2 -2
  148. package/dist/chunks/{summary-grid.types.CDithi8M.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
  149. package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
  150. package/dist/chunks/{textarea.JGXAlpx9.js → textarea.-6FHesSp.js} +2 -2
  151. package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
  152. package/dist/chunks/{timeline-item.BNFPpQz1.js → timeline-item.BJaFr2_Y.js} +5 -5
  153. package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
  154. package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
  155. package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
  156. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
  158. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
  159. package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
  160. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
  161. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
  162. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
  163. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
  164. package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
  165. package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  166. package/dist/code-snippet.js +1 -1
  167. package/dist/dashboard-template.js +1 -1
  168. package/dist/dashed-underline.js +1 -1
  169. package/dist/data-grid-template.js +1 -1
  170. package/dist/data-grid.js +1 -1
  171. package/dist/date-picker.js +2 -2
  172. package/dist/date-range-picker.js +2 -2
  173. package/dist/draggable.js +1 -1
  174. package/dist/dropdown.js +3 -3
  175. package/dist/file-uploader.js +1 -1
  176. package/dist/filter-bar.js +1 -1
  177. package/dist/form-layout.js +1 -1
  178. package/dist/header-with-views.js +1 -1
  179. package/dist/header.js +1 -1
  180. package/dist/index.js +42 -42
  181. package/dist/index.js.map +1 -1
  182. package/dist/input-field-password.js +1 -1
  183. package/dist/input-field-phone-number.js +1 -1
  184. package/dist/input-field.js +1 -1
  185. package/dist/input-time.js +1 -1
  186. package/dist/internal.js +5 -5
  187. package/dist/menu.js +1 -1
  188. package/dist/modal-fullscreen.js +1 -1
  189. package/dist/modal.js +2 -2
  190. package/dist/pagination.js +1 -1
  191. package/dist/popover.js +1 -1
  192. package/dist/rich-text-editor.js +1 -1
  193. package/dist/search-bar.js +2 -2
  194. package/dist/secondary-nav.js +1 -1
  195. package/dist/selection-card.js +1 -1
  196. package/dist/sidepanel.js +1 -1
  197. package/dist/summary-grid.js +1 -1
  198. package/dist/textarea.js +1 -1
  199. package/dist/timeline.js +1 -1
  200. package/dist/toggle.js +1 -1
  201. package/dist/tutorial.js +1 -1
  202. package/dist/web-types.json +1 -1
  203. package/package.json +5 -5
  204. package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
  205. package/dist/chunks/base-modal.BxcS7Pao.js.map +0 -1
  206. package/dist/chunks/button-actions.DLiM8KZL.js.map +0 -1
  207. package/dist/chunks/calendar.qm-kFNQv.js.map +0 -1
  208. package/dist/chunks/card.BEChcEqg.js.map +0 -1
  209. package/dist/chunks/checkbox-group.i3W8WO-7.js.map +0 -1
  210. package/dist/chunks/checkbox.BPrymcRl.js.map +0 -1
  211. package/dist/chunks/code-snippet.BG5ZmCrb.js.map +0 -1
  212. package/dist/chunks/constructNow.D9uRk678.js +0 -8
  213. package/dist/chunks/data-grid.DvMe72LK.js.map +0 -1
  214. package/dist/chunks/date-range-picker.c5OwESTS.js +0 -1027
  215. package/dist/chunks/date-range-picker.c5OwESTS.js.map +0 -1
  216. package/dist/chunks/dropdown-tag.wcJ6Mgqe.js.map +0 -1
  217. package/dist/chunks/dropdown.DHoL50gV.js.map +0 -1
  218. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +0 -1
  219. package/dist/chunks/header.C21yzWrk.js.map +0 -1
  220. package/dist/chunks/input-field-password.DyUphhxB.js.map +0 -1
  221. package/dist/chunks/input-field.DkUFvIWt.js.map +0 -1
  222. package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
  223. package/dist/chunks/textarea.JGXAlpx9.js.map +0 -1
  224. package/dist/chunks/timeline-item.BNFPpQz1.js.map +0 -1
  225. package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
  226. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js +0 -1657
  227. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +0 -1
  228. package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
  229. package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
@@ -1,28 +1,28 @@
1
- import { ref as B, watch as ye, computed as r, defineComponent as R, useSlots as me, toRefs as Fe, openBlock as f, createBlock as U, resolveDynamicComponent as _e, mergeProps as A, withCtx as q, createElementVNode as ne, withKeys as ie, unref as o, createVNode as W, toHandlers as re, createSlots as pe, renderList as de, renderSlot as V, normalizeProps as ae, guardReactiveProps as fe, createCommentVNode as $, useAttrs as Pe, nextTick as N, createElementBlock as C, normalizeClass as le, Fragment as Ce, createTextVNode as ce, toDisplayString as X, withModifiers as Te, withDirectives as oe, vShow as be, toRef as K, inject as pt } from "vue";
2
- import { B as Ke, d as Ee } from "./typography.B3J6_tYk.js";
3
- import { g as Q } from "./generate-uid.DBWe4g6T.js";
4
- import { u as ve } from "./index.B875RXHM.js";
1
+ import { ref as B, watch as ve, computed as r, defineComponent as F, useSlots as he, toRefs as Fe, openBlock as b, createBlock as j, resolveDynamicComponent as _e, mergeProps as A, withCtx as z, createElementVNode as se, withKeys as re, unref as o, createVNode as H, toHandlers as de, createSlots as be, renderList as ue, renderSlot as q, normalizeProps as le, guardReactiveProps as me, createCommentVNode as $, useAttrs as Pe, nextTick as R, createElementBlock as x, normalizeClass as oe, Fragment as Ee, createTextVNode as fe, toDisplayString as G, withModifiers as Ne, withDirectives as ne, vShow as ye, toRef as V, inject as pt } from "vue";
2
+ import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
3
+ import { g as ee } from "./generate-uid.DBWe4g6T.js";
4
+ import { u as ge } from "./index.B875RXHM.js";
5
5
  import { u as Ve } from "./use-has-slot.CyMiImRQ.js";
6
6
  import { C as ft } from "./cross-circle-fill.BWCKKn0E.js";
7
7
  import { C as bt } from "./cross-circle-fill-small.H1wH-vcZ.js";
8
- import { _ as Z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { s as ee } from "./events.BQOQSSb7.js";
10
- import { C as yt } from "./chevron-down.XeE-LBV_.js";
11
- import { C as mt } from "./chevron-up.Cmgl2a3x.js";
8
+ import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import { s as te } from "./events.BQOQSSb7.js";
10
+ import { C as mt } from "./chevron-down.XeE-LBV_.js";
11
+ import { C as yt } from "./chevron-up.Cmgl2a3x.js";
12
12
  /* empty css */
13
13
  import { u as vt } from "./aria-label.CaUURpnB.js";
14
14
  import { u as ht } from "./form-field.D_2g7vaP.js";
15
- import { B as h, b as xe, a as ke, d as gt, u as St, c as wt, e as Lt } from "./use-cached-selected-values.Bx8uuky9.js";
15
+ import { B as g, b as Ie, a as ke, d as gt, u as St, c as wt, e as Lt } from "./use-cached-selected-values.DUWGSMvO.js";
16
16
  import { u as Ct } from "./use-form-layout-loading.CWbjZiwP.js";
17
17
  import { B as Et } from "./directive.C8kY-ZW-.js";
18
- import { B as z, a as xt } from "./keyboard-navigation.DWmhelVv.js";
18
+ import { B as W, a as xt } from "./keyboard-navigation.DWmhelVv.js";
19
19
  import { F as It } from "./field-label.DZYFjFgr.js";
20
20
  import { P as Me } from "./popper-container.DMN8n5iC.js";
21
- import { h as Ot } from "./button-actions.DLiM8KZL.js";
21
+ import { h as Ot } from "./button-actions.7Oi2Ra4p.js";
22
22
  import { E as Dt } from "./error-message.Dyvrw6ZB.js";
23
23
  import "../assets/dropdown.css";
24
- var te = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(te || {});
25
- const Ie = {
24
+ var ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(ae || {});
25
+ const Oe = {
26
26
  "de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
27
27
  "en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
28
28
  "en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
@@ -33,20 +33,20 @@ const Ie = {
33
33
  "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
34
34
  "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
35
35
  "zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
36
- }, Bt = (e, c, d, l) => {
37
- const i = B(e.value), { t: n } = ve({ messages: Ie });
38
- ye(e, () => {
36
+ }, Bt = (e, u, d, l) => {
37
+ const i = B(e.value), { t: n } = ge({ messages: Oe });
38
+ ve(e, () => {
39
39
  i.value = e.value;
40
40
  });
41
41
  const t = r(
42
42
  () => JSON.stringify(i.value) === JSON.stringify(e.value)
43
43
  ), a = () => {
44
- l(h.SELECT, i.value), l(h.CLOSE_DROPDOWN);
45
- }, v = () => {
46
- i.value = e.value, l(h.CLOSE_DROPDOWN);
47
- }, g = () => {
48
- d.value && c.value && (i.value = e.value);
49
- }, u = r(() => [
44
+ l(g.SELECT, i.value), l(g.CLOSE_DROPDOWN);
45
+ }, h = () => {
46
+ i.value = e.value, l(g.CLOSE_DROPDOWN);
47
+ }, S = () => {
48
+ d.value && u.value && (i.value = e.value);
49
+ }, p = r(() => [
50
50
  {
51
51
  title: n("apply"),
52
52
  event: a,
@@ -54,40 +54,40 @@ const Ie = {
54
54
  },
55
55
  {
56
56
  title: n("cancel"),
57
- event: v
57
+ event: h
58
58
  }
59
- ]), S = (L) => {
60
- i.value = L, c.value || l(h.SELECT, L);
61
- }, p = (L) => {
62
- S(L), l(h.TAB);
63
- }, b = (L) => {
64
- S(L), l(h.ENTER);
65
- }, O = (L) => {
66
- S(L), l(h.SPACE);
67
- }, m = () => {
68
- v(), l(h.ESCAPE);
69
- }, y = () => {
70
- l(h.SHOW_MORE);
71
- }, D = {
72
- [h.SELECT]: S,
73
- [h.SHOW_MORE]: y,
74
- [h.TAB]: p,
75
- [h.SPACE]: O,
76
- [h.ENTER]: b
59
+ ]), w = (L) => {
60
+ i.value = L, u.value || l(g.SELECT, L);
61
+ }, y = (L) => {
62
+ w(L), l(g.TAB);
63
+ }, m = (L) => {
64
+ w(L), l(g.ENTER);
65
+ }, D = (L) => {
66
+ w(L), l(g.SPACE);
67
+ }, v = () => {
68
+ h(), l(g.ESCAPE);
69
+ }, c = () => {
70
+ l(g.SHOW_MORE);
71
+ }, O = {
72
+ [g.SELECT]: w,
73
+ [g.SHOW_MORE]: c,
74
+ [g.TAB]: y,
75
+ [g.SPACE]: D,
76
+ [g.ENTER]: m
77
77
  };
78
78
  return {
79
79
  // Values
80
- actions: u,
80
+ actions: p,
81
81
  internalSelectedValue: i,
82
82
  // Methods
83
- listeners: D,
84
- onEscapeKey: m,
85
- onOutsideDropdownClick: g
83
+ listeners: O,
84
+ onEscapeKey: v,
85
+ onOutsideDropdownClick: S
86
86
  };
87
- }, At = R({
88
- i18n: { messages: Ie },
87
+ }, At = F({
88
+ i18n: { messages: Oe },
89
89
  name: "bento-dropdown-options-container"
90
- }), Nt = /* @__PURE__ */ R({
90
+ }), Tt = /* @__PURE__ */ F({
91
91
  ...At,
92
92
  props: {
93
93
  /**
@@ -178,7 +178,7 @@ const Ie = {
178
178
  *
179
179
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
180
180
  */
181
- searching: xe.props.searching,
181
+ searching: Ie.props.searching,
182
182
  /**
183
183
  * If enabled, dropdown will display non-selectable, static categories
184
184
  */
@@ -197,12 +197,12 @@ const Ie = {
197
197
  default: !1
198
198
  }
199
199
  },
200
- setup(e, { expose: c, emit: d }) {
201
- const l = me(), i = d, n = e, { selectedValue: t, multiple: a } = Fe(n), v = B(null), { t: g } = ve({ messages: Ie }), u = r(() => n.open && !n.disabled), S = r(() => g("noOptionsMatchThisSearch")), p = r(() => ({
200
+ setup(e, { expose: u, emit: d }) {
201
+ const l = he(), i = d, n = e, { selectedValue: t, multiple: a } = Fe(n), h = B(null), { t: S } = ge({ messages: Oe }), p = r(() => n.open && !n.disabled), w = r(() => S("noOptionsMatchThisSearch")), y = r(() => ({
202
202
  "b-dropdown-options-container--single": !n?.multiple
203
- })), b = r(() => ({
203
+ })), m = r(() => ({
204
204
  "b-dropdown-options-container__listbox--single": !n?.multiple
205
- })), { actions: O, internalSelectedValue: m, listeners: y, onEscapeKey: D, onOutsideDropdownClick: L } = Bt(t, a, u, i), E = r(() => n?.multiple ? Ot : Me), M = r(() => {
205
+ })), { actions: D, internalSelectedValue: v, listeners: c, onEscapeKey: O, onOutsideDropdownClick: L } = Bt(t, a, p, i), C = r(() => n?.multiple ? Ot : Me), k = r(() => {
206
206
  const T = {
207
207
  "min-width": `${n?.targetElement?.clientWidth}px`,
208
208
  "max-width": "min(500px, 95%)"
@@ -210,10 +210,10 @@ const Ie = {
210
210
  return n?.multiple ? {
211
211
  actionsLayout: "space-between",
212
212
  ariaLabel: n.ariaLabel,
213
- actions: O.value,
213
+ actions: D.value,
214
214
  divider: !0,
215
215
  fallbackPosition: ["top-start"],
216
- id: Q(`dropdown-options-${n.id}`),
216
+ id: ee(`dropdown-options-${n.id}`),
217
217
  open: n.open,
218
218
  position: "bottom-start",
219
219
  style: {
@@ -226,50 +226,50 @@ const Ie = {
226
226
  offset: [0, 8],
227
227
  position: "bottom-start",
228
228
  style: {
229
- display: u.value ? "block" : "none",
229
+ display: p.value ? "block" : "none",
230
230
  ...T
231
231
  },
232
232
  targetElement: n.targetElement
233
233
  };
234
234
  });
235
- return c({
235
+ return u({
236
236
  onOutsideDropdownClick: L
237
- }), (T, F) => u.value ? (f(), U(_e(E.value), A({
237
+ }), (T, _) => p.value ? (b(), j(_e(C.value), A({
238
238
  key: 0,
239
- class: ["b-dropdown-options-container", p.value]
240
- }, M.value), {
241
- default: q(() => [
242
- ne("div", {
243
- onKeydown: F[0] || (F[0] = ie(
239
+ class: ["b-dropdown-options-container", y.value]
240
+ }, k.value), {
241
+ default: z(() => [
242
+ se("div", {
243
+ onKeydown: _[0] || (_[0] = re(
244
244
  //@ts-ignore
245
- (..._) => o(D) && o(D)(..._),
245
+ (...M) => o(O) && o(O)(...M),
246
246
  ["esc"]
247
247
  ))
248
248
  }, [
249
- W(o(xe), A({
249
+ H(o(Ie), A({
250
250
  id: e.id,
251
251
  ref_key: "dropdownOptionsListboxRef",
252
- ref: v,
252
+ ref: h,
253
253
  "aria-label": e.ariaLabel,
254
- class: ["b-dropdown-options-container__listbox", b.value],
254
+ class: ["b-dropdown-options-container__listbox", m.value],
255
255
  "component-loading": e.componentLoading,
256
256
  "empty-state": e.emptyState,
257
257
  "is-option-disabled": e.isOptionDisabled,
258
258
  items: e.items,
259
- "selected-value": o(m),
259
+ "selected-value": o(v),
260
260
  multiple: o(a),
261
261
  "static-categories": e.staticCategories,
262
- "no-results-message": S.value,
262
+ "no-results-message": w.value,
263
263
  searching: e.searching,
264
264
  loading: e.loading,
265
265
  "lazy-load-type": e.lazyLoadType,
266
266
  "has-more-items": e.hasMoreItems,
267
267
  "virtual-scroll": e.virtualScroll
268
- }, re(o(y))), pe({ _: 2 }, [
269
- de(o(l), (_, w) => ({
270
- name: w,
271
- fn: q((j) => [
272
- V(T.$slots, w, ae(fe(j)), void 0, !0)
268
+ }, de(o(c))), be({ _: 2 }, [
269
+ ue(o(l), (M, U) => ({
270
+ name: U,
271
+ fn: z((Z) => [
272
+ q(T.$slots, U, le(me(Z)), void 0, !0)
273
273
  ])
274
274
  }))
275
275
  ]), 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"])
@@ -278,8 +278,8 @@ const Ie = {
278
278
  _: 3
279
279
  }, 16, ["class"])) : $("", !0);
280
280
  }
281
- }), Tt = /* @__PURE__ */ Z(Nt, [["__scopeId", "data-v-abf92e14"]]);
282
- var k = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(k || {}), I = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(I || {});
281
+ }), Nt = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-abf92e14"]]);
282
+ var N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(N || {}), I = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(I || {});
283
283
  const qe = {
284
284
  "de-DE": { clearSearch: "Suche löschen" },
285
285
  "en-GB": { clearSearch: "Clear search" },
@@ -301,11 +301,11 @@ const qe = {
301
301
  key: 3,
302
302
  class: "b-dropdown-base-textbox__icon",
303
303
  "aria-hidden": "true"
304
- }, Pt = ["tabindex", "onKeydown"], Kt = R({
304
+ }, Pt = ["tabindex", "onKeydown"], Kt = F({
305
305
  i18n: { messages: qe },
306
306
  name: "dropdown-base-textbox",
307
307
  inheritAttrs: !1
308
- }), Vt = /* @__PURE__ */ R({
308
+ }), Vt = /* @__PURE__ */ F({
309
309
  ...Kt,
310
310
  props: {
311
311
  /**
@@ -390,16 +390,16 @@ const qe = {
390
390
  default: null
391
391
  }
392
392
  },
393
- setup(e, { expose: c, emit: d }) {
394
- const { t: l } = ve({ messages: qe }), i = Pe(), n = me(), t = Ve(n), a = e, v = d, g = B(null), u = Q("textbox"), S = r(() => ({
395
- [`b-dropdown-base-textbox--${k.DISABLED}`]: a.disabled,
396
- [`b-dropdown-base-textbox--${k.READONLY}`]: a.readonly,
397
- [`b-dropdown-base-textbox--${k.HAS_ITEMS}`]: !!a.additionalItemsSelected
398
- })), p = r(
399
- () => D.value && i["aria-required"] ? "true" : null
400
- ), b = r(() => ({
393
+ setup(e, { expose: u, emit: d }) {
394
+ const { t: l } = ge({ messages: qe }), i = Pe(), n = he(), t = Ve(n), a = e, h = d, S = B(null), p = ee("textbox"), w = r(() => ({
395
+ [`b-dropdown-base-textbox--${N.DISABLED}`]: a.disabled,
396
+ [`b-dropdown-base-textbox--${N.READONLY}`]: a.readonly,
397
+ [`b-dropdown-base-textbox--${N.HAS_ITEMS}`]: !!a.additionalItemsSelected
398
+ })), y = r(
399
+ () => O.value && i["aria-required"] ? "true" : null
400
+ ), m = r(() => ({
401
401
  "b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
402
- })), O = r(() => a.dynamicFiltering && !!a.value && a.open), m = r(
402
+ })), D = r(() => a.dynamicFiltering && !!a.value && a.open), v = r(
403
403
  () => ({
404
404
  "aria-haspopup": "listbox",
405
405
  "aria-controls": a.ariaControls,
@@ -411,48 +411,48 @@ const qe = {
411
411
  "aria-disabled": a.disabled ? !0 : null,
412
412
  "aria-required": i["aria-required"]
413
413
  })
414
- ), y = r(
414
+ ), c = r(
415
415
  () => a.multiple ? a.selectedValueItem : []
416
- ), D = r(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = r(() => a.selectedValueItem && !a.multiple), E = r(
417
- () => a.multiple && a.selectedValueItem && y.value.length > 0 && a.showSlotContentInMultiple
416
+ ), O = r(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = r(() => a.selectedValueItem && !a.multiple), C = r(
417
+ () => a.multiple && a.selectedValueItem && c.value.length > 0 && a.showSlotContentInMultiple
418
418
  );
419
- ye(
420
- () => D.value,
419
+ ve(
420
+ () => O.value,
421
421
  () => {
422
- D.value && !a.alwaysComboboxIsInput && N(() => {
423
- g.value.focus();
422
+ O.value && !a.alwaysComboboxIsInput && R(() => {
423
+ S.value.focus();
424
424
  });
425
425
  }
426
426
  );
427
- const M = async () => {
428
- !a.disabled && !a.readonly && (v(I.OPEN), await N(), g.value.focus());
427
+ const k = async () => {
428
+ !a.disabled && !a.readonly && (h(I.OPEN), await R(), S.value.focus());
429
429
  }, T = () => {
430
- a.open && (g.value.focus(), v(I.CLOSE));
431
- }, F = (x) => a.open && x.target.tagName === "INPUT" ? null : a.open ? T() : M(), _ = () => {
432
- v(I.CLEAR), v(I.INPUT, ""), g.value.focus();
433
- }, w = (x) => {
434
- !a.readonly && !a.disabled ? v(I.INPUT, x.target.value) : (x.preventDefault(), x.stopPropagation());
430
+ a.open && (S.value.focus(), h(I.CLOSE));
431
+ }, _ = (E) => a.open && E.target.tagName === "INPUT" ? null : a.open ? T() : k(), M = () => {
432
+ h(I.CLEAR), h(I.INPUT, ""), S.value.focus();
433
+ }, U = (E) => {
434
+ !a.readonly && !a.disabled ? h(I.INPUT, E.target.value) : (E.preventDefault(), E.stopPropagation());
435
435
  };
436
- return c({
436
+ return u({
437
437
  focus: () => {
438
- g.value.focus();
438
+ S.value.focus();
439
439
  }
440
- }), (x, se) => (f(), C("div", {
441
- class: le(x.$attrs.class),
440
+ }), (E, Q) => (b(), x("div", {
441
+ class: oe(E.$attrs.class),
442
442
  "data-testid": "textbox-wrapper",
443
- onClick: F,
444
- onKeydown: ie(T, ["escape"])
443
+ onClick: _,
444
+ onKeydown: re(T, ["escape"])
445
445
  }, [
446
- W(o(Ke), {
447
- class: le(["b-dropdown-base-textbox", S.value]),
446
+ H(o(Ke), {
447
+ class: oe(["b-dropdown-base-textbox", w.value]),
448
448
  el: "div",
449
449
  "data-testid": "base-textbox"
450
450
  }, {
451
- default: q(() => [
452
- D.value ? (f(), C("input", A({ key: 0 }, m.value, {
453
- id: o(u),
451
+ default: z(() => [
452
+ O.value ? (b(), x("input", A({ key: 0 }, v.value, {
453
+ id: o(p),
454
454
  ref_key: "textbox",
455
- ref: g,
455
+ ref: S,
456
456
  class: "b-dropdown-base-textbox__input",
457
457
  role: "combobox",
458
458
  type: "text",
@@ -461,58 +461,58 @@ const qe = {
461
461
  value: e.open ? e.value : e.displayValue,
462
462
  disabled: e.disabled ? !0 : null,
463
463
  readonly: e.readonly,
464
- required: p.value,
464
+ required: y.value,
465
465
  onKeydown: [
466
- se[0] || (se[0] = (H) => x.$emit(o(I).KEYDOWN, H)),
467
- ie(F, ["enter"])
466
+ Q[0] || (Q[0] = (f) => E.$emit(o(I).KEYDOWN, f)),
467
+ re(_, ["enter"])
468
468
  ],
469
- onInput: w
470
- }), null, 16, kt)) : (f(), C("div", A({
469
+ onInput: U
470
+ }), null, 16, kt)) : (b(), x("div", A({
471
471
  key: 1,
472
- id: o(u)
473
- }, m.value, {
472
+ id: o(p)
473
+ }, v.value, {
474
474
  ref_key: "textbox",
475
- ref: g,
476
- class: ["b-dropdown-base-textbox__input", b.value],
475
+ ref: S,
476
+ class: ["b-dropdown-base-textbox__input", m.value],
477
477
  "aria-readonly": e.readonly ? "true" : null,
478
478
  role: "combobox",
479
479
  tabindex: e.disabled ? -1 : 0
480
480
  }), [
481
- L.value ? (f(), C(Ce, { key: 0 }, [
482
- o(t)("display-value") ? V(x.$slots, "display-value", ae(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : V(x.$slots, "default", ae(A({ key: 1 }, e.selectedValueItem)), () => [
483
- ce(X(e.displayValue), 1)
481
+ L.value ? (b(), x(Ee, { key: 0 }, [
482
+ o(t)("display-value") ? q(E.$slots, "display-value", le(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : q(E.$slots, "default", le(A({ key: 1 }, e.selectedValueItem)), () => [
483
+ fe(G(e.displayValue), 1)
484
484
  ], !0)
485
- ], 64)) : E.value ? (f(), C("div", $t, [
486
- (f(!0), C(Ce, null, de(y.value, (H) => (f(), C("div", {
487
- key: H.value
485
+ ], 64)) : C.value ? (b(), x("div", $t, [
486
+ (b(!0), x(Ee, null, ue(c.value, (f) => (b(), x("div", {
487
+ key: f.value
488
488
  }, [
489
- ne("div", Rt, [
490
- V(x.$slots, "default", A({ ref_for: !0 }, H), () => [
491
- ce(X(e.displayValue), 1)
489
+ se("div", Rt, [
490
+ q(E.$slots, "default", A({ ref_for: !0 }, f), () => [
491
+ fe(G(e.displayValue), 1)
492
492
  ], !0)
493
493
  ])
494
494
  ]))), 128))
495
- ])) : (f(), C(Ce, { key: 2 }, [
496
- ce(X(e.displayValue), 1)
495
+ ])) : (b(), x(Ee, { key: 2 }, [
496
+ fe(G(e.displayValue), 1)
497
497
  ], 64))
498
498
  ], 16, Mt)),
499
- e.additionalItemsSelected ? (f(), C("span", Ft, X(e.additionalItemsSelected), 1)) : $("", !0),
500
- o(t)("icon") && !O.value ? (f(), C("span", _t, [
501
- V(x.$slots, "icon", {}, void 0, !0)
499
+ e.additionalItemsSelected ? (b(), x("span", Ft, G(e.additionalItemsSelected), 1)) : $("", !0),
500
+ o(t)("icon") && !D.value ? (b(), x("span", _t, [
501
+ q(E.$slots, "icon", {}, void 0, !0)
502
502
  ])) : $("", !0),
503
- O.value ? (f(), C("span", {
503
+ D.value ? (b(), x("span", {
504
504
  key: 4,
505
505
  class: "b-dropdown-base-textbox__clear-search",
506
506
  tabindex: e.disabled ? -1 : 0,
507
507
  "data-testid": "clear-search-button",
508
- onClick: Te(_, ["stop"]),
509
- onKeydown: ie(Te(_, ["stop"]), ["enter"]),
510
- onKeyup: ie(_, ["space"])
508
+ onClick: Ne(M, ["stop"]),
509
+ onKeydown: re(Ne(M, ["stop"]), ["enter"]),
510
+ onKeyup: re(M, ["space"])
511
511
  }, [
512
- e.size === o(te).SMALL ? (f(), U(o(bt), {
512
+ e.size === o(ae).SMALL ? (b(), j(o(bt), {
513
513
  key: 0,
514
514
  "svg-title": o(l)("clearSearch")
515
- }, null, 8, ["svg-title"])) : (f(), U(o(ft), {
515
+ }, null, 8, ["svg-title"])) : (b(), j(o(ft), {
516
516
  key: 1,
517
517
  "svg-title": o(l)("clearSearch")
518
518
  }, null, 8, ["svg-title"]))
@@ -522,10 +522,10 @@ const qe = {
522
522
  }, 8, ["class"])
523
523
  ], 34));
524
524
  }
525
- }), ze = /* @__PURE__ */ Z(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = R({
525
+ }), ze = /* @__PURE__ */ X(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = F({
526
526
  name: "dropdown-default-textbox",
527
527
  inheritAttrs: !1
528
- }), Ut = /* @__PURE__ */ R({
528
+ }), Ut = /* @__PURE__ */ F({
529
529
  ...zt,
530
530
  props: {
531
531
  /**
@@ -613,114 +613,114 @@ const qe = {
613
613
  multiple: { type: Boolean, default: !1 }
614
614
  },
615
615
  emits: ["clear", "close", "input", "keydown", "open"],
616
- setup(e, { expose: c, emit: d }) {
617
- const l = d, i = me(), n = e, t = B(null), a = r(() => ({
618
- [`b-dropdown-default-textbox--${k.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
619
- [`b-dropdown-default-textbox--${k.DISABLED}`]: n.disabled,
620
- [`b-dropdown-default-textbox--${k.READONLY}`]: n.readonly,
621
- [`b-dropdown-default-textbox--${k.OPENED}`]: n.open,
616
+ setup(e, { expose: u, emit: d }) {
617
+ const l = d, i = he(), n = e, t = B(null), a = r(() => ({
618
+ [`b-dropdown-default-textbox--${N.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
619
+ [`b-dropdown-default-textbox--${N.DISABLED}`]: n.disabled,
620
+ [`b-dropdown-default-textbox--${N.READONLY}`]: n.readonly,
621
+ [`b-dropdown-default-textbox--${N.OPENED}`]: n.open,
622
622
  "b-dropdown-default-textbox--condensed": n.condensed
623
- })), v = r(() => n.open && !n.disabled && !n.readonly), g = (y) => {
624
- l("input", y);
625
- }, u = (y) => {
626
- l("keydown", y);
627
- }, S = (y) => {
628
- ee(y), l("open");
629
- }, p = (y) => {
630
- ee(y), l("close");
631
- }, b = (y) => {
632
- ee(y), l("clear");
633
- }, O = {
634
- [I.INPUT]: g,
635
- [I.OPEN]: S,
636
- [I.CLOSE]: p,
637
- [I.CLEAR]: b,
638
- [I.KEYDOWN]: u
623
+ })), h = r(() => n.open && !n.disabled && !n.readonly), S = (c) => {
624
+ l("input", c);
625
+ }, p = (c) => {
626
+ l("keydown", c);
627
+ }, w = (c) => {
628
+ te(c), l("open");
629
+ }, y = (c) => {
630
+ te(c), l("close");
631
+ }, m = (c) => {
632
+ te(c), l("clear");
633
+ }, D = {
634
+ [I.INPUT]: S,
635
+ [I.OPEN]: w,
636
+ [I.CLOSE]: y,
637
+ [I.CLEAR]: m,
638
+ [I.KEYDOWN]: p
639
639
  };
640
- return c({
640
+ return u({
641
641
  focus: () => {
642
642
  t.value.focus();
643
643
  }
644
- }), (y, D) => (f(), C("div", {
645
- class: le(["b-dropdown-default-textbox", a.value]),
644
+ }), (c, O) => (b(), x("div", {
645
+ class: oe(["b-dropdown-default-textbox", a.value]),
646
646
  "data-testid": "default-textbox"
647
647
  }, [
648
- W(ze, A({
648
+ H(ze, A({
649
649
  ref_key: "baseTextbox",
650
650
  ref: t
651
- }, { ...y.$attrs, ...y.$props }, {
651
+ }, { ...c.$attrs, ...c.$props }, {
652
652
  class: "b-dropdown-default-textbox__textbox",
653
653
  value: e.value
654
- }, re(O)), pe({
655
- icon: q(() => [
656
- ne("div", qt, [
657
- oe(W(o(mt), { "svg-title": "opened" }, null, 512), [
658
- [be, v.value]
654
+ }, de(D)), be({
655
+ icon: z(() => [
656
+ se("div", qt, [
657
+ ne(H(o(yt), { "svg-title": "opened" }, null, 512), [
658
+ [ye, h.value]
659
659
  ]),
660
- oe(W(o(yt), { "svg-title": "closed" }, null, 512), [
661
- [be, !v.value]
660
+ ne(H(o(mt), { "svg-title": "closed" }, null, 512), [
661
+ [ye, !h.value]
662
662
  ])
663
663
  ])
664
664
  ]),
665
665
  _: 2
666
666
  }, [
667
- de(o(i), (L, E) => ({
668
- name: E,
669
- fn: q((M) => [
670
- V(y.$slots, E, ae(fe(M ?? {})), void 0, !0)
667
+ ue(o(i), (L, C) => ({
668
+ name: C,
669
+ fn: z((k) => [
670
+ q(c.$slots, C, le(me(k ?? {})), void 0, !0)
671
671
  ])
672
672
  }))
673
673
  ]), 1040, ["value"])
674
674
  ], 2));
675
675
  }
676
- }), Wt = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-c3e3ce21"]]);
676
+ }), Wt = /* @__PURE__ */ X(Ut, [["__scopeId", "data-v-c3e3ce21"]]);
677
677
  let $e = 0;
678
678
  const jt = {
679
679
  beforeCreate() {
680
680
  this.uuid = $e.toString(), $e += 1;
681
681
  }
682
682
  }, Ht = { key: 0 };
683
- function Yt(e, c, d, l, i, n) {
684
- return f(), C("svg", A({ role: "img" }, e.$attrs, {
683
+ function Yt(e, u, d, l, i, n) {
684
+ return b(), x("svg", A({ role: "img" }, e.$attrs, {
685
685
  class: "ui-assets-icons-16",
686
686
  xmlns: "http://www.w3.org/2000/svg",
687
687
  width: "16",
688
688
  height: "16",
689
689
  fill: "none"
690
690
  }), [
691
- e.$attrs["svg-title"] ? (f(), C("title", Ht, X(e.$attrs["svg-title"]), 1)) : $("", !0),
692
- c[0] || (c[0] = ne("path", {
691
+ e.$attrs["svg-title"] ? (b(), x("title", Ht, G(e.$attrs["svg-title"]), 1)) : $("", !0),
692
+ u[0] || (u[0] = se("path", {
693
693
  fill: "#001222",
694
694
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
695
695
  }, null, -1))
696
696
  ], 16);
697
697
  }
698
- const Jt = /* @__PURE__ */ Z(jt, [["render", Yt]]);
698
+ const Jt = /* @__PURE__ */ X(jt, [["render", Yt]]);
699
699
  let Re = 0;
700
700
  const Gt = {
701
701
  beforeCreate() {
702
702
  this.uuid = Re.toString(), Re += 1;
703
703
  }
704
704
  }, Xt = { key: 0 };
705
- function Zt(e, c, d, l, i, n) {
706
- return f(), C("svg", A({ role: "img" }, e.$attrs, {
705
+ function Zt(e, u, d, l, i, n) {
706
+ return b(), x("svg", A({ role: "img" }, e.$attrs, {
707
707
  class: "ui-assets-icons-16",
708
708
  xmlns: "http://www.w3.org/2000/svg",
709
709
  width: "16",
710
710
  height: "16",
711
711
  fill: "none"
712
712
  }), [
713
- e.$attrs["svg-title"] ? (f(), C("title", Xt, X(e.$attrs["svg-title"]), 1)) : $("", !0),
714
- c[0] || (c[0] = ne("path", {
713
+ e.$attrs["svg-title"] ? (b(), x("title", Xt, G(e.$attrs["svg-title"]), 1)) : $("", !0),
714
+ u[0] || (u[0] = se("path", {
715
715
  fill: "#001222",
716
716
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
717
717
  }, null, -1))
718
718
  ], 16);
719
719
  }
720
- const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = R({
720
+ const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = F({
721
721
  name: "dropdown-small-textbox",
722
722
  inheritAttrs: !1
723
- }), aa = /* @__PURE__ */ R({
723
+ }), aa = /* @__PURE__ */ F({
724
724
  ...ta,
725
725
  props: {
726
726
  /**
@@ -777,49 +777,49 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
777
777
  value: { type: String, default: "" }
778
778
  },
779
779
  emits: ["clear", "close", "input", "keydown", "open"],
780
- setup(e, { expose: c, emit: d }) {
780
+ setup(e, { expose: u, emit: d }) {
781
781
  const l = d, i = e, n = B(null), t = r(() => ({
782
- [`b-dropdown-small-textbox--${k.DISABLED}`]: i.disabled,
783
- [`b-dropdown-small-textbox--${k.READONLY}`]: i.readonly,
784
- [`b-dropdown-small-textbox--${k.OPENED}`]: i.open
785
- })), a = r(() => i.open && !i.disabled && !i.readonly), v = (m) => {
786
- l("input", m);
787
- }, g = (m) => {
788
- l("keydown", m);
789
- }, u = (m) => {
790
- ee(m), l("open");
791
- }, S = (m) => {
792
- ee(m), l("close");
793
- }, p = (m) => {
794
- ee(m), l("clear");
795
- }, b = {
796
- [I.INPUT]: v,
797
- [I.OPEN]: u,
798
- [I.CLOSE]: S,
799
- [I.CLEAR]: p,
800
- [I.KEYDOWN]: g
782
+ [`b-dropdown-small-textbox--${N.DISABLED}`]: i.disabled,
783
+ [`b-dropdown-small-textbox--${N.READONLY}`]: i.readonly,
784
+ [`b-dropdown-small-textbox--${N.OPENED}`]: i.open
785
+ })), a = r(() => i.open && !i.disabled && !i.readonly), h = (v) => {
786
+ l("input", v);
787
+ }, S = (v) => {
788
+ l("keydown", v);
789
+ }, p = (v) => {
790
+ te(v), l("open");
791
+ }, w = (v) => {
792
+ te(v), l("close");
793
+ }, y = (v) => {
794
+ te(v), l("clear");
795
+ }, m = {
796
+ [I.INPUT]: h,
797
+ [I.OPEN]: p,
798
+ [I.CLOSE]: w,
799
+ [I.CLEAR]: y,
800
+ [I.KEYDOWN]: S
801
801
  };
802
- return c({
802
+ return u({
803
803
  focus: () => {
804
804
  n.value.focus();
805
805
  }
806
- }), (m, y) => (f(), C("div", {
807
- class: le(["b-dropdown-small-textbox", t.value])
806
+ }), (v, c) => (b(), x("div", {
807
+ class: oe(["b-dropdown-small-textbox", t.value])
808
808
  }, [
809
- W(ze, A({
809
+ H(ze, A({
810
810
  ref_key: "baseTextbox",
811
811
  ref: n
812
- }, { ...m.$attrs, ...m.$props }, {
812
+ }, { ...v.$attrs, ...v.$props }, {
813
813
  class: "b-dropdown-small-textbox__textbox",
814
- size: o(te).SMALL
815
- }, re(b)), {
816
- icon: q(() => [
817
- ne("div", ea, [
818
- oe(W(o(Qt), { "svg-title": "opened" }, null, 512), [
819
- [be, a.value]
814
+ size: o(ae).SMALL
815
+ }, de(m)), {
816
+ icon: z(() => [
817
+ se("div", ea, [
818
+ ne(H(o(Qt), { "svg-title": "opened" }, null, 512), [
819
+ [ye, a.value]
820
820
  ]),
821
- oe(W(o(Jt), { "svg-title": "closed" }, null, 512), [
822
- [be, !a.value]
821
+ ne(H(o(Jt), { "svg-title": "closed" }, null, 512), [
822
+ [ye, !a.value]
823
823
  ])
824
824
  ])
825
825
  ]),
@@ -827,7 +827,7 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
827
827
  }, 16, ["size"])
828
828
  ], 2));
829
829
  }
830
- }), la = /* @__PURE__ */ Z(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, c) => c.value.reduce((d, l) => {
830
+ }), la = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, u) => u.value.reduce((d, l) => {
831
831
  if (l.items) {
832
832
  const i = l.items.filter(
833
833
  (t) => e.value.find((a) => a.value === t.value)
@@ -835,93 +835,95 @@ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
835
835
  i.length === l.items.length ? d.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => d.push(a ?? t));
836
836
  }
837
837
  return e.value.find((i) => i.value === l.value) && d.push(l.displayValue ?? l.label), d;
838
- }, []).join(", "), na = ({ items: e, placeholder: c, selectedValues: d, isMultiSelect: l }) => {
838
+ }, []).join(", "), na = ({ items: e, placeholder: u, selectedValues: d, isMultiSelect: l }) => {
839
839
  const i = r(
840
840
  () => l.value && e.value.find((t) => t.items?.length)
841
841
  );
842
- return r(() => d.value.length ? i.value ? oa(d, e) : d.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : c.value || null);
842
+ return r(() => d.value.length ? i.value ? oa(d, e) : d.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : u.value || null);
843
843
  }, Ue = (e) => {
844
844
  e.value.$children?.[0].$refs.textbox.focus();
845
845
  }, sa = ({
846
846
  inputContainerRef: e,
847
- optionsContainerRef: c,
847
+ optionsContainerRef: u,
848
848
  selectedValueIndex: d,
849
849
  isDropdownOpen: l,
850
850
  isDynamicFltering: i,
851
851
  items: n,
852
- isMultiple: t
853
- }, a, v, g) => {
854
- const u = async (w) => {
855
- i.value && await N(), n.value[w]?.focus();
856
- }, S = async (w) => {
857
- i.value && await N();
858
- const j = c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
852
+ isMultiple: t,
853
+ totalItemCount: a,
854
+ isVirtualScroll: h
855
+ }, S, p, w) => {
856
+ const y = async (f) => {
857
+ i.value && await R(), n.value[f]?.focus();
858
+ }, m = async (f) => {
859
+ i.value && await R();
860
+ const ie = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
859
861
  "button"
860
862
  );
861
- j?.length ? j[w]?.focus() : u(w);
862
- }, p = (w) => c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
863
- w
864
- ), b = () => {
865
- l.value || v(), N(() => {
866
- p(0), u(0);
863
+ ie?.length ? ie[f]?.focus() : y(f);
864
+ }, D = (f) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
865
+ f
866
+ ), v = async (f) => {
867
+ await u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
868
+ }, c = (f) => {
869
+ R(() => {
870
+ h ? v(f) : (D(f), y(f));
867
871
  });
868
872
  }, O = () => {
869
- l.value || v(), N(() => {
870
- p(n.value.length - 1), u(n.value.length - 1);
871
- });
872
- }, m = ({ detail: w }) => {
873
- w.preventDefault(), b();
874
- }, y = ({ detail: w }) => {
875
- w.preventDefault(), O();
876
- }, D = () => {
877
- b();
873
+ l.value || p(), c(0);
878
874
  }, L = () => {
879
- O();
880
- }, E = ({ detail: w }) => {
881
- w.preventDefault(), a(), l.value && N(() => {
882
- t ? S(0) : (p(d.value), u(d.value));
883
- });
884
- }, M = ({ detail: w }) => {
885
- w.preventDefault(), a(), l.value && N(() => {
886
- t ? S(0) : (p(d.value), u(d.value));
875
+ l.value || p(), R(() => {
876
+ c(h ? a.value - 1 : n.value.length - 1);
887
877
  });
878
+ }, C = ({ detail: f }) => {
879
+ f.preventDefault(), O();
880
+ }, k = ({ detail: f }) => {
881
+ f.preventDefault(), L();
888
882
  }, T = () => {
889
- l.value && g();
890
- }, F = () => {
891
- l.value && (g(), Ue(e));
883
+ O();
884
+ }, _ = () => {
885
+ L();
886
+ }, M = ({ detail: f }) => {
887
+ f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
888
+ }, U = ({ detail: f }) => {
889
+ f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
890
+ }, Z = () => {
891
+ l.value && w();
892
+ }, E = () => {
893
+ l.value && (w(), Ue(e));
892
894
  };
893
895
  return r(() => ({
894
- [z.ARROW_DOWN]: m,
895
- [z.ARROW_UP]: y,
896
- [z.HOME]: D,
897
- [z.END]: L,
898
- ...i.value ? {} : { [z.SPACE]: E },
899
- [z.ENTER]: M,
900
- ...i.value ? {} : { [z.TAB]: T },
901
- [z.ESCAPE]: F
896
+ [W.ARROW_DOWN]: C,
897
+ [W.ARROW_UP]: k,
898
+ [W.HOME]: T,
899
+ [W.END]: _,
900
+ ...i.value ? {} : { [W.SPACE]: M },
901
+ [W.ENTER]: U,
902
+ ...i.value ? {} : { [W.TAB]: Z },
903
+ [W.ESCAPE]: E
902
904
  }));
903
- }, ia = ({ inputContainerRef: e, isDropdownOpen: c }, d) => {
905
+ }, ia = ({ inputContainerRef: e, isDropdownOpen: u }, d) => {
904
906
  const l = () => {
905
- c.value && d(), N(() => {
907
+ u.value && d(), R(() => {
906
908
  Ue(e);
907
909
  });
908
910
  };
909
911
  return {
910
- [h.ENTER]: l,
911
- [h.ESCAPE]: l,
912
- [h.TAB]: l,
913
- [h.SPACE]: l
912
+ [g.ENTER]: l,
913
+ [g.ESCAPE]: l,
914
+ [g.TAB]: l,
915
+ [g.SPACE]: l
914
916
  };
915
917
  };
916
- function ra(e, c, d, l, i) {
917
- const n = B(e), t = B(c), a = (u, S = []) => S.flatMap((p) => p.label.toLocaleLowerCase().includes(u) ? l?.value && p.items ? [...a(u, p.items)] : [p, ...a(u, p.items)] : p.items ? [...a(u, p.items)] : []), v = d !== void 0 ? gt(() => d(n.value), i ?? 300) : void 0;
918
- return ye(n, () => {
919
- v !== void 0 && v();
918
+ function ra(e, u, d, l, i) {
919
+ const n = B(e), t = B(u), a = (p, w = []) => w.flatMap((y) => y.label.toLocaleLowerCase().includes(p) ? l?.value && y.items ? [...a(p, y.items)] : [y, ...a(p, y.items)] : y.items ? [...a(p, y.items)] : []), h = d !== void 0 ? gt(() => d(n.value), i ?? 300) : void 0;
920
+ return ve(n, () => {
921
+ h !== void 0 && h();
920
922
  }), r(() => {
921
923
  if (!n.value || d !== void 0)
922
924
  return t.value;
923
- const u = n.value.toLocaleLowerCase();
924
- return a(u, t.value);
925
+ const p = n.value.toLocaleLowerCase();
926
+ return a(p, t.value);
925
927
  });
926
928
  }
927
929
  const We = {
@@ -935,7 +937,7 @@ const We = {
935
937
  "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
936
938
  "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
937
939
  "zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
938
- }, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua = R({
940
+ }, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua = F({
939
941
  i18n: { messages: We },
940
942
  name: "b-dropdown",
941
943
  components: {
@@ -943,7 +945,7 @@ const We = {
943
945
  DropdownInputSmall: la
944
946
  },
945
947
  model: { prop: "modelValue" }
946
- }), ca = /* @__PURE__ */ R({
948
+ }), ca = /* @__PURE__ */ F({
947
949
  ...ua,
948
950
  props: {
949
951
  ariaLabel: { default: null },
@@ -956,7 +958,7 @@ const We = {
956
958
  items: { default: () => [] },
957
959
  loading: { type: Boolean, default: !1 },
958
960
  componentLoading: { type: Boolean, default: !1 },
959
- lazyLoadType: { default: xe.props.lazyLoadType.default },
961
+ lazyLoadType: { default: Ie.props.lazyLoadType.default },
960
962
  multiple: { type: Boolean, default: !1 },
961
963
  search: { default: void 0 },
962
964
  showSlotContentInMultiple: { type: Boolean, default: !1 },
@@ -977,153 +979,155 @@ const We = {
977
979
  tooltipText: { default: null }
978
980
  },
979
981
  emits: ["input", "update:model-value", "show-more", "open"],
980
- setup(e, { expose: c, emit: d }) {
981
- const l = Pe(), i = me(), n = Ve(i), t = e, a = d, { t: v } = ve({ messages: We }), { emitValue: g } = ht(a), u = B(null), S = B(null), p = B(null), b = B(!1), O = Q("bento-dropdown-options-container"), m = Q("dropdown-label"), y = Q("dropdown-description"), D = Q("dropdown-error"), { isReadOnly: L } = Ct(K(t, "readonly")), E = r(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: M, cachedListboxSelectedValues: T, setCachedValues: F } = St(
982
- K(t, "items"),
983
- E,
984
- K(t, "multiple"),
985
- K(t, "enableValueLabelPair")
986
- ), _ = B(l["aria-label"]), w = B(l["aria-describedby"]), { ariaLabel: j, label: x } = Fe(t), se = r(() => v("ariaLabelFallback")), H = vt({
982
+ setup(e, { expose: u, emit: d }) {
983
+ const l = Pe(), i = he(), n = Ve(i), t = e, a = d, { t: h } = ge({ messages: We }), { emitValue: S } = ht(a), p = B(null), w = B(null), y = B(null), m = B(!1), D = ee("bento-dropdown-options-container"), v = ee("dropdown-label"), c = ee("dropdown-description"), O = ee("dropdown-error"), { isReadOnly: L } = Ct(V(t, "readonly")), C = r(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: k, cachedListboxSelectedValues: T, setCachedValues: _ } = St(
984
+ V(t, "items"),
985
+ C,
986
+ V(t, "multiple"),
987
+ V(t, "enableValueLabelPair")
988
+ ), M = B(l["aria-label"]), U = B(l["aria-describedby"]), { ariaLabel: Z, label: E } = Fe(t), Q = r(() => h("ariaLabelFallback")), f = vt({
987
989
  // TODO: take ariaLabel ref away when aria-label prop is removed
988
- ariaLabel: j.value || _,
989
- label: x,
990
- defaultFallback: se
991
- }), Oe = t.size === te.SMALL || pt(da, !1), je = r(() => Oe ? te.SMALL : te.DEFAULT), He = r(() => ({
990
+ ariaLabel: Z.value || M,
991
+ label: E,
992
+ defaultFallback: Q
993
+ }), ie = t.size === ae.SMALL || pt(da, !1), je = r(() => ie ? ae.SMALL : ae.DEFAULT), He = r(() => ({
992
994
  "b-dropdown--condensed": t.condensed
993
995
  })), Ye = r(() => ({
994
996
  "b-dropdown__description--error": !!t.errorMessage
995
- })), Y = B(""), ue = K(t, "items"), De = K(t, "staticCategories"), he = ra(
997
+ })), Y = B(""), ce = V(t, "items"), De = V(t, "staticCategories"), pe = ra(
996
998
  Y,
997
- ue,
999
+ ce,
998
1000
  t?.search?.searchEvent,
999
1001
  De,
1000
1002
  t?.search?.debounceTime
1001
- ), ge = r(() => t.dynamicFiltering && !!Y.value), Je = na({
1002
- items: ue,
1003
- placeholder: K(t, "placeholder"),
1004
- isMultiSelect: K(t, "multiple"),
1005
- selectedValues: M
1003
+ ), Se = r(() => t.dynamicFiltering && !!Y.value), Je = na({
1004
+ items: ce,
1005
+ placeholder: V(t, "placeholder"),
1006
+ isMultiSelect: V(t, "multiple"),
1007
+ selectedValues: k
1006
1008
  }), Ge = r(() => {
1007
- if (t?.multiple && Array.isArray(E.value))
1009
+ if (t?.multiple && Array.isArray(C.value))
1008
1010
  return t.items.filter(
1009
1011
  ({ value: s }) => t?.value && (t?.value).includes(s)
1010
1012
  );
1011
1013
  if (!t.multiple && t.staticCategories) {
1012
1014
  const s = t.items.find(
1013
- (J) => J.items.some((G) => G.value === E.value)
1015
+ (K) => K.items?.some((J) => J.value === C.value)
1014
1016
  );
1015
- return s ? s.items.find((J) => J.value === E.value) : null;
1017
+ return (s ? s.items.find((K) => K.value === C.value) : t.items.find(({ value: K }) => K === C.value)) ?? null;
1016
1018
  }
1017
- return t.items.find(({ value: s }) => s === E.value);
1019
+ return t.items.find(({ value: s }) => s === C.value);
1018
1020
  }), Xe = r(() => {
1019
- const s = he.value.findIndex(({ value: P }) => t.enableValueLabelPair ? E.value.value === P : E.value === P);
1021
+ const s = pe.value.findIndex(({ value: P }) => t.enableValueLabelPair ? C.value.value === P : C.value === P);
1020
1022
  return s > -1 ? s : 0;
1021
- }), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(ue), Qe = r(() => Be.value && !t.staticCategories), et = r(() => Qe.value ? "treeitem" : "option"), tt = r(() => {
1023
+ }), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(ce), Qe = r(() => Be.value && !t.staticCategories), et = r(() => Qe.value ? "treeitem" : "option"), tt = r(() => {
1022
1024
  if (t.multiple) {
1023
- const s = Array.isArray(E.value) ? E.value.length : 0, P = Be.value ? Ze.value.length : ue.value.length;
1024
- return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ? v("all") : s;
1025
+ const s = Array.isArray(C.value) ? C.value.length : 0, P = Be.value ? Ze.value.length : ce.value.length;
1026
+ return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ? h("all") : s;
1025
1027
  }
1026
1028
  return null;
1027
1029
  }), at = r(
1028
1030
  () => [
1029
- t.description ? y : null,
1030
- w.value,
1031
- t.errorMessage ? D : null
1031
+ t.description ? c : null,
1032
+ U.value,
1033
+ t.errorMessage ? O : null
1032
1034
  ].filter(Boolean).join(" ") || null
1033
- ), lt = r(() => p.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
1035
+ ), lt = r(() => y.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
1034
1036
  lt,
1035
- he,
1037
+ pe,
1036
1038
  et
1037
1039
  ), nt = () => {
1038
- L.value || (b.value = !0, N(() => {
1040
+ L.value || (m.value = !0, R(() => {
1039
1041
  Ae();
1040
1042
  }));
1041
- }, Se = () => {
1042
- b.value = !1;
1043
1043
  }, we = () => {
1044
- L.value || (b.value = !b.value, N(() => {
1044
+ m.value = !1;
1045
+ }, Le = () => {
1046
+ L.value || (m.value = !m.value, R(() => {
1045
1047
  Ae();
1046
- }), ge.value && (Y.value = ""));
1048
+ }), Se.value && (Y.value = ""));
1047
1049
  }, st = () => {
1048
- ge.value && (Y.value = ""), b.value && (b.value = !1, p.value.onOutsideDropdownClick());
1050
+ Se.value && (Y.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
1049
1051
  }, it = async (s) => {
1050
- t.multiple || (Y.value = "", b.value = !1), F(s), g(T.value), t.multiple || (await N(), Ne());
1052
+ t.multiple || (Y.value = "", m.value = !1), _(s), S(T.value), t.multiple || (await R(), Te());
1051
1053
  }, rt = () => {
1052
- a(h.SHOW_MORE);
1054
+ a(g.SHOW_MORE);
1053
1055
  }, dt = sa(
1054
1056
  {
1055
- inputContainerRef: u,
1056
- optionsContainerRef: p,
1057
+ inputContainerRef: p,
1058
+ optionsContainerRef: y,
1057
1059
  selectedValueIndex: Xe,
1058
- isDropdownOpen: b,
1059
- isDynamicFltering: K(t, "dynamicFiltering"),
1060
+ isDropdownOpen: m,
1061
+ isDynamicFltering: V(t, "dynamicFiltering"),
1060
1062
  items: ot,
1061
- isMultiple: t.multiple
1063
+ isMultiple: t.multiple,
1064
+ totalItemCount: r(() => pe.value.length),
1065
+ isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
1062
1066
  },
1063
- we,
1067
+ Le,
1064
1068
  nt,
1065
- Se
1069
+ we
1066
1070
  ), ut = ia(
1067
1071
  {
1068
- inputContainerRef: u,
1069
- isDropdownOpen: b
1072
+ inputContainerRef: p,
1073
+ isDropdownOpen: m
1070
1074
  },
1071
- Se
1075
+ we
1072
1076
  ), ct = {
1073
- [h.CLOSE_DROPDOWN]: Se,
1074
- [h.SELECT]: it,
1075
- [h.SHOW_MORE]: rt,
1077
+ [g.CLOSE_DROPDOWN]: we,
1078
+ [g.SELECT]: it,
1079
+ [g.SHOW_MORE]: rt,
1076
1080
  ...ut
1077
1081
  };
1078
- t.error && Ee(
1082
+ t.error && xe(
1079
1083
  'BentoDropdown "error" property',
1080
1084
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
1081
1085
  Having the field as "undefined" will hide/remove the error.
1082
1086
  <bento-dropdown errorMessage="Error message text" />`,
1083
1087
  "2.0.0"
1084
- ), t.size && Ee('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && Ee(
1088
+ ), t.size && xe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && xe(
1085
1089
  'BentoDropdown "value" property',
1086
1090
  `The use of "value" prop in "BentoDropdown" is no longer supported.
1087
1091
  Use the "v-model" or "model-value" property instead.`,
1088
1092
  "2.0.0"
1089
1093
  );
1090
- const Ne = () => {
1091
- u.value.focus();
1094
+ const Te = () => {
1095
+ p.value.focus();
1092
1096
  };
1093
- return ye(
1094
- () => b.value,
1097
+ return ve(
1098
+ () => m.value,
1095
1099
  (s) => {
1096
1100
  s && a("open");
1097
1101
  }
1098
- ), c({
1099
- focus: Ne
1100
- }), (s, P) => oe((f(), C("div", {
1101
- class: le(["b-dropdown", He.value])
1102
+ ), u({
1103
+ focus: Te
1104
+ }), (s, P) => ne((b(), x("div", {
1105
+ class: oe(["b-dropdown", He.value])
1102
1106
  }, [
1103
- o(x) ? (f(), U(o(It), {
1107
+ o(E) ? (b(), j(o(It), {
1104
1108
  key: 0,
1105
- id: o(m),
1109
+ id: o(v),
1106
1110
  condensed: s.condensed,
1107
- label: o(x),
1111
+ label: o(E),
1108
1112
  "tooltip-text": s.tooltipText,
1109
1113
  optional: s.optional,
1110
1114
  required: s.required
1111
1115
  }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
1112
- oe((f(), C("div", A({
1116
+ ne((b(), x("div", A({
1113
1117
  ref_key: "inputContainerRefWrapper",
1114
- ref: S
1115
- }, re(o(dt), !0)), [
1116
- (f(), U(_e(je.value), {
1118
+ ref: w
1119
+ }, de(o(dt), !0)), [
1120
+ (b(), j(_e(je.value), {
1117
1121
  ref_key: "inputContainerRef",
1118
- ref: u,
1122
+ ref: p,
1119
1123
  condensed: s.condensed,
1120
1124
  value: Y.value,
1121
1125
  "additional-items-selected": tt.value,
1122
- "aria-controls": o(O),
1123
- ariaExpanded: b.value,
1124
- "aria-labelledby": o(x) ? o(m) : null,
1126
+ "aria-controls": o(D),
1127
+ ariaExpanded: m.value,
1128
+ "aria-labelledby": o(E) ? o(v) : null,
1125
1129
  "aria-describedby": at.value,
1126
- "aria-label": o(H),
1130
+ "aria-label": o(f),
1127
1131
  "aria-readonly": o(L),
1128
1132
  "aria-required": s.required,
1129
1133
  readonly: o(L),
@@ -1132,67 +1136,67 @@ const We = {
1132
1136
  "dynamic-filtering": s.dynamicFiltering,
1133
1137
  "is-invalid": !!s.errorMessage || s.error,
1134
1138
  multiple: s.multiple,
1135
- open: b.value,
1136
- "selected-value-item": o(Oe) ? void 0 : Ge.value,
1139
+ open: m.value,
1140
+ "selected-value-item": o(ie) ? void 0 : Ge.value,
1137
1141
  "show-slot-content-in-multiple": s.showSlotContentInMultiple,
1138
- onInput: P[0] || (P[0] = (J) => Y.value = J),
1139
- onOpen: we,
1140
- onClose: we
1141
- }, pe({ _: 2 }, [
1142
- de(o(i), (J, G) => ({
1143
- name: G,
1144
- fn: q((Le) => [
1145
- V(s.$slots, G, ae(fe(Le)), void 0, !0)
1142
+ onInput: P[0] || (P[0] = (K) => Y.value = K),
1143
+ onOpen: Le,
1144
+ onClose: Le
1145
+ }, be({ _: 2 }, [
1146
+ ue(o(i), (K, J) => ({
1147
+ name: J,
1148
+ fn: z((Ce) => [
1149
+ q(s.$slots, J, le(me(Ce)), void 0, !0)
1146
1150
  ])
1147
1151
  }))
1148
1152
  ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
1149
1153
  ], 16)), [
1150
1154
  [o(xt)]
1151
1155
  ]),
1152
- u.value ? (f(), U(o(Tt), A({
1156
+ p.value ? (b(), j(o(Nt), A({
1153
1157
  key: 1,
1154
- id: o(O),
1158
+ id: o(D),
1155
1159
  ref_key: "optionsContainerRef",
1156
- ref: p,
1157
- "aria-label": o(H),
1160
+ ref: y,
1161
+ "aria-label": o(f),
1158
1162
  "component-loading": s.componentLoading,
1159
1163
  "empty-state": s.emptyState,
1160
1164
  disabled: s.disabled,
1161
1165
  "is-option-disabled": s.isOptionDisabled,
1162
- items: o(he),
1166
+ items: o(pe),
1163
1167
  multiple: s.multiple,
1164
1168
  "static-categories": De.value,
1165
- open: b.value,
1166
- "selected-value": o(M),
1167
- searching: ge.value,
1168
- "target-element": S.value,
1169
+ open: m.value,
1170
+ "selected-value": o(k),
1171
+ searching: Se.value,
1172
+ "target-element": w.value,
1169
1173
  loading: s.loading,
1170
1174
  "has-more-items": s.hasMoreItems,
1171
1175
  "lazy-load-type": s.lazyLoadType,
1172
1176
  "virtual-scroll": s.virtualScroll
1173
- }, re(ct)), pe({ _: 2 }, [
1174
- de(o(i), (J, G) => ({
1175
- name: G,
1176
- fn: q((Le) => [
1177
- V(s.$slots, G, ae(fe(Le)), void 0, !0)
1177
+ }, de(ct)), be({ _: 2 }, [
1178
+ ue(o(i), (K, J) => ({
1179
+ name: J,
1180
+ fn: z((Ce) => [
1181
+ q(s.$slots, J, le(me(Ce)), void 0, !0)
1178
1182
  ])
1179
1183
  }))
1180
1184
  ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : $("", !0),
1181
- s.errorMessage ? (f(), U(o(Dt), {
1185
+ s.errorMessage ? (b(), j(o(Dt), {
1182
1186
  key: 2,
1183
- id: o(D),
1187
+ id: o(O),
1184
1188
  "error-message": s.errorMessage,
1185
1189
  class: "b-dropdown__error-message"
1186
1190
  }, null, 8, ["id", "error-message"])) : $("", !0),
1187
- s.description || o(n)("description") ? (f(), U(o(Ke), {
1191
+ s.description || o(n)("description") ? (b(), j(o(Ke), {
1188
1192
  key: 3,
1189
- id: o(y),
1190
- class: le(["b-dropdown__description", Ye.value]),
1193
+ id: o(c),
1194
+ class: oe(["b-dropdown__description", Ye.value]),
1191
1195
  el: "span"
1192
1196
  }, {
1193
- default: q(() => [
1194
- V(s.$slots, "description", {}, () => [
1195
- ce(X(s.description), 1)
1197
+ default: z(() => [
1198
+ q(s.$slots, "description", {}, () => [
1199
+ fe(G(s.description), 1)
1196
1200
  ], !0)
1197
1201
  ]),
1198
1202
  _: 3
@@ -1201,14 +1205,14 @@ const We = {
1201
1205
  [o(Et), st]
1202
1206
  ]);
1203
1207
  }
1204
- }), Ra = /* @__PURE__ */ Z(ca, [["__scopeId", "data-v-06d3531c"]]);
1208
+ }), Ra = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-5edc4069"]]);
1205
1209
  export {
1206
1210
  Ra as B,
1207
1211
  Wt as D,
1208
1212
  Ma as I,
1209
- te as a,
1213
+ ae as a,
1210
1214
  da as b,
1211
1215
  $a as c,
1212
1216
  ra as u
1213
1217
  };
1214
- //# sourceMappingURL=dropdown.DHoL50gV.js.map
1218
+ //# sourceMappingURL=dropdown.CuIBYLdy.js.map