@adyen/bento-vue3 1.89.2 → 1.90.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 (243) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +403 -298
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chip.js +1 -1
  26. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  27. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  28. package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
  29. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
  30. package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
  31. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
  32. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  33. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  34. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  35. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  36. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
  37. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
  38. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
  39. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
  40. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
  41. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
  42. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
  43. package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
  44. package/dist/chunks/card.BzCGCCzH.js +223 -0
  45. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
  47. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
  48. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
  49. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
  50. package/dist/chunks/chip.DFldnqfz.js +72 -0
  51. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  52. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
  53. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
  54. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
  55. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
  56. package/dist/chunks/copy.CL893i9-.js +114 -0
  57. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  58. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  59. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  60. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  61. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  62. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
  63. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
  64. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
  65. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
  66. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
  67. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
  68. package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
  69. package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
  70. package/dist/chunks/date-picker.DPjCROIP.js +238 -0
  71. package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
  72. package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
  73. package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
  74. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  75. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  76. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
  77. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
  78. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
  79. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
  80. package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
  81. package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
  82. package/dist/chunks/error-message.849uzpkq.js +157 -0
  83. package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
  84. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
  85. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
  86. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
  87. package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
  88. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  89. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  90. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
  91. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
  92. package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
  93. package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
  94. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
  95. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
  96. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
  97. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
  98. package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
  99. package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
  100. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  101. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  102. package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
  103. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
  104. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
  105. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
  106. package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
  107. package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
  108. package/dist/chunks/input-time.DeJ8lDio.js +103 -0
  109. package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
  110. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  111. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  112. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  113. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  116. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
  117. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
  118. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
  119. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
  120. package/dist/chunks/pagination.DL-h8OLF.js +413 -0
  121. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
  122. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  123. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  124. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
  125. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
  126. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
  127. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
  128. package/dist/chunks/search-bar.DfNwnjes.js +114 -0
  129. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
  130. package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
  131. package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
  132. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  133. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
  135. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
  137. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
  138. package/dist/chunks/step.AsX2jAeL.js +268 -0
  139. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  140. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  141. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  142. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
  143. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
  144. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  145. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  146. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  147. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  148. package/dist/chunks/textarea.C-sBemuo.js +256 -0
  149. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
  150. package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
  151. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
  152. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  153. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  154. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  155. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
  159. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
  160. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  161. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  162. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  163. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  164. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
  165. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
  166. package/dist/code-snippet.js +1 -1
  167. package/dist/country.js +3 -3
  168. package/dist/dashboard-template.js +1 -1
  169. package/dist/dashed-underline.js +1 -1
  170. package/dist/data-grid-template.js +1 -1
  171. package/dist/data-grid.js +1 -1
  172. package/dist/date-picker.js +2 -2
  173. package/dist/date-range-picker.js +2 -2
  174. package/dist/draggable-handle.js +51 -44
  175. package/dist/draggable-handle.js.map +1 -1
  176. package/dist/dropdown.js +4 -4
  177. package/dist/file-uploader.js +1 -1
  178. package/dist/filter-bar.js +1 -1
  179. package/dist/form-layout.js +1 -1
  180. package/dist/header-with-views.js +1 -1
  181. package/dist/header.js +1 -1
  182. package/dist/index.js +205 -203
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +1 -1
  185. package/dist/input-field-password.js +1 -1
  186. package/dist/input-field-phone-number.js +1 -1
  187. package/dist/input-field.js +1 -1
  188. package/dist/input-time.js +5 -0
  189. package/dist/input-time.js.map +1 -0
  190. package/dist/inspector.js +1 -1
  191. package/dist/internal.js +12 -12
  192. package/dist/list.js +1 -1
  193. package/dist/menu.js +1 -1
  194. package/dist/modal-fullscreen.js +1 -1
  195. package/dist/modal.js +2 -2
  196. package/dist/pagination.js +1 -1
  197. package/dist/popover.js +1 -1
  198. package/dist/promo-banner.js +1 -1
  199. package/dist/radio-group.js +1 -1
  200. package/dist/rich-text-editor.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/segmented-control.js +1 -1
  204. package/dist/selection-card.js +1 -1
  205. package/dist/sidepanel.js +1 -1
  206. package/dist/stepper.js +1 -1
  207. package/dist/structured-list.js +1 -1
  208. package/dist/summary-grid.js +1 -1
  209. package/dist/tabs.js +1 -1
  210. package/dist/tag.js +1 -1
  211. package/dist/textarea.js +1 -1
  212. package/dist/timeline.js +1 -1
  213. package/dist/toast.js +1 -1
  214. package/dist/tutorial.js +1 -1
  215. package/dist/web-types.json +1 -1
  216. package/package.json +4 -4
  217. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  218. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  219. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  220. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  221. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  222. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  223. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  224. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  225. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  226. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  227. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  228. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  229. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  230. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  231. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  232. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  233. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  234. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  235. package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
  236. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  237. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  238. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  239. package/dist/chunks/step.BlwoLfdw.js +0 -259
  240. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  241. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  242. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  243. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
@@ -1,38 +1,45 @@
1
- import { ref as w, watch as ye, computed as r, defineComponent as W, useSlots as Ae, toRefs as Ne, openBlock as S, createBlock as z, resolveDynamicComponent as Me, mergeProps as k, withCtx as V, createElementVNode as te, withKeys as at, unref as l, createVNode as Z, toHandlers as X, createSlots as ue, renderList as ce, renderSlot as G, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as R, createElementBlock as P, toDisplayString as be, normalizeClass as me, withDirectives as ee, vShow as Be, nextTick as O, useAttrs as lt, toRef as x, inject as nt, createTextVNode as st } from "vue";
1
+ import { ref as w, watch as be, computed as r, defineComponent as V, useSlots as Ie, toRefs as xe, openBlock as L, createBlock as z, resolveDynamicComponent as Ne, mergeProps as R, withCtx as q, createElementVNode as te, withKeys as ot, unref as l, createVNode as G, toHandlers as Q, createSlots as ue, renderList as ce, renderSlot as X, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as $, createElementBlock as F, toDisplayString as ye, normalizeClass as me, withDirectives as ee, vShow as Be, nextTick as O, useAttrs as lt, toRef as M, inject as nt, createTextVNode as st } from "vue";
2
2
  import { d as ie, B as it } from "./typography.B3J6_tYk.js";
3
- import { g as j } from "./generate-uid.DBWe4g6T.js";
4
- import { u as rt } from "./aria-label.CaUURpnB.js";
5
- import { u as ge } from "./index.B875RXHM.js";
6
- import { u as dt } from "./form-field.D_2g7vaP.js";
7
- import { B as m, b as ve, a as De, u as ut, c as ct, d as pt } from "./use-cached-selected-values.ClEJRFAd.js";
8
- import { u as ft } from "./use-form-layout-loading.CWbjZiwP.js";
9
- import { d as mt } from "./debounce.DUTu11PS.js";
10
- import { B as vt } from "./directive.Dpivxq_t.js";
11
- import { B as A, a as yt } from "./keyboard-navigation.DWmhelVv.js";
12
- import { a as re, b as U, c as bt, B as Q, D as gt } from "./dropdown-default-textbox.bq9AlGzJ.js";
13
- import { u as ht } from "./use-has-slot.CyMiImRQ.js";
14
- import { F as Lt, E as St } from "./error-message.DCgo8q20.js";
15
- import { P as Te } from "./popper-container.DMN8n5iC.js";
16
- import { h as wt } from "./button-actions.cMQWyZne.js";
17
- import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
3
+ import { a as re, b as U, c as rt, B as Z, D as dt } from "./dropdown-default-textbox.aYsTZDZ7.js";
18
4
  /* empty css */
5
+ import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
19
6
  import { s as de } from "./events.BQOQSSb7.js";
7
+ import { g as j } from "./generate-uid.DBWe4g6T.js";
8
+ import { u as ut } from "./aria-label.CaUURpnB.js";
9
+ import { u as he } from "./index.B875RXHM.js";
10
+ import { u as ct } from "./form-field.D_2g7vaP.js";
11
+ import { B as m, b as ve, a as De, u as pt, c as ft, d as mt } from "./use-cached-selected-values.DIbfa5F1.js";
12
+ import { u as vt } from "./use-form-layout-loading.CWbjZiwP.js";
13
+ import { d as bt } from "./debounce.DUTu11PS.js";
14
+ import { B as yt } from "./directive.Dpivxq_t.js";
15
+ import { B as I, a as ht } from "./keyboard-navigation.DWmhelVv.js";
16
+ import { u as gt } from "./use-has-slot.CyMiImRQ.js";
17
+ import { F as St, E as Lt } from "./error-message.849uzpkq.js";
18
+ import { P as Te } from "./popper-container.DMN8n5iC.js";
19
+ import { h as wt } from "./button-actions.Bh_PZ_fV.js";
20
20
  import "../assets/dropdown.css";
21
- const he = {
21
+ const ge = {
22
+ "de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
23
+ "en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
22
24
  "en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
23
- "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索条件に一致するオプションはありません" },
24
- "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "A busca não retornou nenhuma opção" }
25
- }, Et = (t, u, i, o) => {
26
- const n = w(t.value), { t: s } = ge({ messages: he });
27
- ye(t, () => {
25
+ "es-ES": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
26
+ "es-MX": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
27
+ "fr-FR": { apply: "Appliquer", cancel: "Annuler", noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche" },
28
+ "it-IT": { apply: "Applica", cancel: "Annulla", noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca" },
29
+ "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
30
+ "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
31
+ "zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
32
+ }, Et = (t, u, i, a) => {
33
+ const n = w(t.value), { t: s } = he({ messages: ge });
34
+ be(t, () => {
28
35
  n.value = t.value;
29
36
  });
30
37
  const e = r(
31
38
  () => JSON.stringify(n.value) === JSON.stringify(t.value)
32
39
  ), c = () => {
33
- o(m.SELECT, n.value), o(m.CLOSE_DROPDOWN);
34
- }, h = () => {
35
- n.value = t.value, o(m.CLOSE_DROPDOWN);
40
+ a(m.SELECT, n.value), a(m.CLOSE_DROPDOWN);
41
+ }, g = () => {
42
+ n.value = t.value, a(m.CLOSE_DROPDOWN);
36
43
  }, E = () => {
37
44
  i.value && u.value && (n.value = t.value);
38
45
  }, d = r(() => [
@@ -43,22 +50,22 @@ const he = {
43
50
  },
44
51
  {
45
52
  title: s("cancel"),
46
- event: h
53
+ event: g
47
54
  }
48
- ]), b = (g) => {
49
- n.value = g, u.value || o(m.SELECT, g);
50
- }, p = (g) => {
51
- b(g), o(m.TAB);
52
- }, f = (g) => {
53
- b(g), o(m.ENTER);
54
- }, C = (g) => {
55
- b(g), o(m.SPACE);
55
+ ]), y = (h) => {
56
+ n.value = h, u.value || a(m.SELECT, h);
57
+ }, p = (h) => {
58
+ y(h), a(m.TAB);
59
+ }, f = (h) => {
60
+ y(h), a(m.ENTER);
61
+ }, C = (h) => {
62
+ y(h), a(m.SPACE);
56
63
  }, v = () => {
57
- h(), o(m.ESCAPE);
64
+ g(), a(m.ESCAPE);
58
65
  }, B = () => {
59
- o(m.SHOW_MORE);
66
+ a(m.SHOW_MORE);
60
67
  }, D = {
61
- [m.SELECT]: b,
68
+ [m.SELECT]: y,
62
69
  [m.SHOW_MORE]: B,
63
70
  [m.TAB]: p,
64
71
  [m.SPACE]: C,
@@ -73,10 +80,10 @@ const he = {
73
80
  onEscapeKey: v,
74
81
  onOutsideDropdownClick: E
75
82
  };
76
- }, Ct = W({
77
- i18n: { messages: he },
83
+ }, Ct = V({
84
+ i18n: { messages: ge },
78
85
  name: "bento-dropdown-options-container"
79
- }), Ot = /* @__PURE__ */ W({
86
+ }), Ot = /* @__PURE__ */ V({
80
87
  ...Ct,
81
88
  props: {
82
89
  /**
@@ -187,12 +194,12 @@ const he = {
187
194
  }
188
195
  },
189
196
  setup(t, { expose: u, emit: i }) {
190
- const o = Ae(), n = i, s = t, { selectedValue: e, multiple: c } = Ne(s), h = w(null), { t: E } = ge({ messages: he }), d = r(() => s.open && !s.disabled), b = r(() => E("noOptionsMatchThisSearch")), p = r(() => ({
197
+ const a = Ie(), n = i, s = t, { selectedValue: e, multiple: c } = xe(s), g = w(null), { t: E } = he({ messages: ge }), d = r(() => s.open && !s.disabled), y = r(() => E("noOptionsMatchThisSearch")), p = r(() => ({
191
198
  "b-dropdown-options-container--single": !s?.multiple
192
199
  })), f = r(() => ({
193
200
  "b-dropdown-options-container__listbox--single": !s?.multiple
194
- })), { actions: C, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick: g } = Et(e, c, d, n), L = r(() => s?.multiple ? wt : Te), _ = r(() => {
195
- const I = {
201
+ })), { actions: C, internalSelectedValue: v, listeners: B, onEscapeKey: D, onOutsideDropdownClick: h } = Et(e, c, d, n), S = r(() => s?.multiple ? wt : Te), P = r(() => {
202
+ const A = {
196
203
  "min-width": `${s?.targetElement?.clientWidth}px`,
197
204
  "max-width": "min(500px, 95%)"
198
205
  };
@@ -207,7 +214,7 @@ const he = {
207
214
  position: "bottom-start",
208
215
  style: {
209
216
  width: "auto",
210
- ...I
217
+ ...A
211
218
  },
212
219
  targetElement: s.targetElement
213
220
  } : {
@@ -216,29 +223,29 @@ const he = {
216
223
  position: "bottom-start",
217
224
  style: {
218
225
  display: d.value ? "block" : "none",
219
- ...I
226
+ ...A
220
227
  },
221
228
  targetElement: s.targetElement
222
229
  };
223
230
  });
224
231
  return u({
225
- onOutsideDropdownClick: g
226
- }), (I, F) => d.value ? (S(), z(Me(L.value), k({
232
+ onOutsideDropdownClick: h
233
+ }), (A, _) => d.value ? (L(), z(Ne(S.value), R({
227
234
  key: 0,
228
235
  class: ["b-dropdown-options-container", p.value]
229
- }, _.value), {
230
- default: V(() => [
236
+ }, P.value), {
237
+ default: q(() => [
231
238
  te("div", {
232
- onKeydown: F[0] || (F[0] = at(
239
+ onKeydown: _[0] || (_[0] = ot(
233
240
  //@ts-ignore
234
- (...q) => l(D) && l(D)(...q),
241
+ (...W) => l(D) && l(D)(...W),
235
242
  ["esc"]
236
243
  ))
237
244
  }, [
238
- Z(l(ve), k({
245
+ G(l(ve), R({
239
246
  id: t.id,
240
247
  ref_key: "dropdownOptionsListboxRef",
241
- ref: h,
248
+ ref: g,
242
249
  "aria-label": t.ariaLabel,
243
250
  class: ["b-dropdown-options-container__listbox", f.value],
244
251
  "component-loading": t.componentLoading,
@@ -248,74 +255,74 @@ const he = {
248
255
  "selected-value": l(v),
249
256
  multiple: l(c),
250
257
  "static-categories": t.staticCategories,
251
- "no-results-message": b.value,
258
+ "no-results-message": y.value,
252
259
  searching: t.searching,
253
260
  loading: t.loading,
254
261
  "lazy-load-type": t.lazyLoadType,
255
262
  "has-more-items": t.hasMoreItems,
256
263
  "virtual-scroll": t.virtualScroll
257
- }, X(l(B))), ue({ _: 2 }, [
258
- ce(l(o), (q, y) => ({
259
- name: y,
260
- fn: V((K) => [
261
- G(I.$slots, y, pe(fe(K)), void 0, !0)
264
+ }, Q(l(B))), ue({ _: 2 }, [
265
+ ce(l(a), (W, b) => ({
266
+ name: b,
267
+ fn: q((K) => [
268
+ X(A.$slots, b, pe(fe(K)), void 0, !0)
262
269
  ])
263
270
  }))
264
271
  ]), 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"])
265
272
  ], 32)
266
273
  ]),
267
274
  _: 3
268
- }, 16, ["class"])) : R("", !0);
275
+ }, 16, ["class"])) : $("", !0);
269
276
  }
270
277
  }), Bt = /* @__PURE__ */ H(Ot, [["__scopeId", "data-v-abf92e14"]]);
271
- let xe = 0;
278
+ let Me = 0;
272
279
  const Dt = {
273
280
  beforeCreate() {
274
- this.uuid = xe.toString(), xe += 1;
281
+ this.uuid = Me.toString(), Me += 1;
275
282
  }
276
283
  }, Tt = { key: 0 };
277
- function xt(t, u, i, o, n, s) {
278
- return S(), P("svg", k({ role: "img" }, t.$attrs, {
284
+ function Mt(t, u, i, a, n, s) {
285
+ return L(), F("svg", R({ role: "img" }, t.$attrs, {
279
286
  class: "ui-assets-icons-16",
280
287
  xmlns: "http://www.w3.org/2000/svg",
281
288
  width: "16",
282
289
  height: "16",
283
290
  fill: "none"
284
291
  }), [
285
- t.$attrs["svg-title"] ? (S(), P("title", Tt, be(t.$attrs["svg-title"]), 1)) : R("", !0),
292
+ t.$attrs["svg-title"] ? (L(), F("title", Tt, ye(t.$attrs["svg-title"]), 1)) : $("", !0),
286
293
  u[0] || (u[0] = te("path", {
287
294
  fill: "#001222",
288
295
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
289
296
  }, null, -1))
290
297
  ], 16);
291
298
  }
292
- const It = /* @__PURE__ */ H(Dt, [["render", xt]]);
293
- let Ie = 0;
294
- const At = {
299
+ const At = /* @__PURE__ */ H(Dt, [["render", Mt]]);
300
+ let Ae = 0;
301
+ const It = {
295
302
  beforeCreate() {
296
- this.uuid = Ie.toString(), Ie += 1;
303
+ this.uuid = Ae.toString(), Ae += 1;
297
304
  }
298
- }, Nt = { key: 0 };
299
- function Mt(t, u, i, o, n, s) {
300
- return S(), P("svg", k({ role: "img" }, t.$attrs, {
305
+ }, xt = { key: 0 };
306
+ function Nt(t, u, i, a, n, s) {
307
+ return L(), F("svg", R({ role: "img" }, t.$attrs, {
301
308
  class: "ui-assets-icons-16",
302
309
  xmlns: "http://www.w3.org/2000/svg",
303
310
  width: "16",
304
311
  height: "16",
305
312
  fill: "none"
306
313
  }), [
307
- t.$attrs["svg-title"] ? (S(), P("title", Nt, be(t.$attrs["svg-title"]), 1)) : R("", !0),
314
+ t.$attrs["svg-title"] ? (L(), F("title", xt, ye(t.$attrs["svg-title"]), 1)) : $("", !0),
308
315
  u[0] || (u[0] = te("path", {
309
316
  fill: "#001222",
310
317
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
311
318
  }, null, -1))
312
319
  ], 16);
313
320
  }
314
- const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-small-textbox__chevron" }, kt = W({
321
+ const kt = /* @__PURE__ */ H(It, [["render", Nt]]), $t = { class: "b-dropdown-small-textbox__chevron" }, Rt = V({
315
322
  name: "dropdown-small-textbox",
316
323
  inheritAttrs: !1
317
- }), Pt = /* @__PURE__ */ W({
318
- ...kt,
324
+ }), Ft = /* @__PURE__ */ V({
325
+ ...Rt,
319
326
  props: {
320
327
  /**
321
328
  * The number of additional items that have been selected in the dropdown.
@@ -372,24 +379,24 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
372
379
  },
373
380
  emits: ["clear", "close", "input", "keydown", "open"],
374
381
  setup(t, { expose: u, emit: i }) {
375
- const o = i, n = t, s = w(null), e = r(() => ({
382
+ const a = i, n = t, s = w(null), e = r(() => ({
376
383
  [`b-dropdown-small-textbox--${re.DISABLED}`]: n.disabled,
377
384
  [`b-dropdown-small-textbox--${re.READONLY}`]: n.readonly,
378
385
  [`b-dropdown-small-textbox--${re.OPENED}`]: n.open
379
- })), c = r(() => n.open && !n.disabled && !n.readonly), h = (v) => {
380
- o("input", v);
386
+ })), c = r(() => n.open && !n.disabled && !n.readonly), g = (v) => {
387
+ a("input", v);
381
388
  }, E = (v) => {
382
- o("keydown", v);
389
+ a("keydown", v);
383
390
  }, d = (v) => {
384
- de(v), o("open");
385
- }, b = (v) => {
386
- de(v), o("close");
391
+ de(v), a("open");
392
+ }, y = (v) => {
393
+ de(v), a("close");
387
394
  }, p = (v) => {
388
- de(v), o("clear");
395
+ de(v), a("clear");
389
396
  }, f = {
390
- [U.INPUT]: h,
397
+ [U.INPUT]: g,
391
398
  [U.OPEN]: d,
392
- [U.CLOSE]: b,
399
+ [U.CLOSE]: y,
393
400
  [U.CLEAR]: p,
394
401
  [U.KEYDOWN]: E
395
402
  };
@@ -397,22 +404,22 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
397
404
  focus: () => {
398
405
  s.value.focus();
399
406
  }
400
- }), (v, B) => (S(), P("div", {
407
+ }), (v, B) => (L(), F("div", {
401
408
  class: me(["b-dropdown-small-textbox", e.value])
402
409
  }, [
403
- Z(bt, k({
410
+ G(rt, R({
404
411
  ref_key: "baseTextbox",
405
412
  ref: s
406
413
  }, { ...v.$attrs, ...v.$props }, {
407
414
  class: "b-dropdown-small-textbox__textbox",
408
- size: l(Q).SMALL
409
- }, X(f)), {
410
- icon: V(() => [
411
- te("div", Rt, [
412
- ee(Z(l($t), { "svg-title": "opened" }, null, 512), [
415
+ size: l(Z).SMALL
416
+ }, Q(f)), {
417
+ icon: q(() => [
418
+ te("div", $t, [
419
+ ee(G(l(kt), { "svg-title": "opened" }, null, 512), [
413
420
  [Be, c.value]
414
421
  ]),
415
- ee(Z(l(It), { "svg-title": "closed" }, null, 512), [
422
+ ee(G(l(At), { "svg-title": "closed" }, null, 512), [
416
423
  [Be, !c.value]
417
424
  ])
418
425
  ])
@@ -421,96 +428,96 @@ const $t = /* @__PURE__ */ H(At, [["render", Mt]]), Rt = { class: "b-dropdown-sm
421
428
  }, 16, ["size"])
422
429
  ], 2));
423
430
  }
424
- }), _t = /* @__PURE__ */ H(Pt, [["__scopeId", "data-v-39ce3ec8"]]), Ft = (t, u) => u.value.reduce((i, o) => {
425
- if (o.items) {
426
- const n = o.items.filter(
431
+ }), Pt = /* @__PURE__ */ H(Ft, [["__scopeId", "data-v-39ce3ec8"]]), _t = (t, u) => u.value.reduce((i, a) => {
432
+ if (a.items) {
433
+ const n = a.items.filter(
427
434
  (e) => t.value.find((c) => c.value === e.value)
428
435
  );
429
- n.length === o.items.length ? i.push(o.displayValue ?? o.label) : n.forEach(({ label: e, displayValue: c }) => i.push(c ?? e));
436
+ n.length === a.items.length ? i.push(a.displayValue ?? a.label) : n.forEach(({ label: e, displayValue: c }) => i.push(c ?? e));
430
437
  }
431
- return t.value.find((n) => n.value === o.value) && i.push(o.displayValue ?? o.label), i;
432
- }, []).join(", "), Kt = ({ items: t, placeholder: u, selectedValues: i, isMultiSelect: o }) => {
438
+ return t.value.find((n) => n.value === a.value) && i.push(a.displayValue ?? a.label), i;
439
+ }, []).join(", "), Kt = ({ items: t, placeholder: u, selectedValues: i, isMultiSelect: a }) => {
433
440
  const n = r(
434
- () => o.value && t.value.find((e) => e.items?.length)
441
+ () => a.value && t.value.find((e) => e.items?.length)
435
442
  );
436
- return r(() => i.value.length ? n.value ? Ft(i, t) : i.value.map(({ label: e, displayValue: c }) => c ?? e).join(", ") : u.value || null);
437
- }, $e = (t) => {
443
+ return r(() => i.value.length ? n.value ? _t(i, t) : i.value.map(({ label: e, displayValue: c }) => c ?? e).join(", ") : u.value || null);
444
+ }, ke = (t) => {
438
445
  t.value.$children?.[0].$refs.textbox.focus();
439
446
  }, zt = ({
440
447
  inputContainerRef: t,
441
448
  optionsContainerRef: u,
442
449
  selectedValueIndex: i,
443
- isDropdownOpen: o,
450
+ isDropdownOpen: a,
444
451
  isDynamicFltering: n,
445
452
  items: s,
446
453
  isMultiple: e
447
- }, c, h, E) => {
448
- const d = async (y) => {
449
- n.value && await O(), s.value[y]?.focus();
450
- }, b = async (y) => {
454
+ }, c, g, E) => {
455
+ const d = async (b) => {
456
+ n.value && await O(), s.value[b]?.focus();
457
+ }, y = async (b) => {
451
458
  n.value && await O();
452
459
  const K = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
453
460
  "button"
454
461
  );
455
- K.length ? K[y]?.focus() : d(y);
456
- }, p = (y) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
457
- y
462
+ K.length ? K[b]?.focus() : d(b);
463
+ }, p = (b) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
464
+ b
458
465
  ), f = () => {
459
- o.value || h(), O(() => {
466
+ a.value || g(), O(() => {
460
467
  p(0), d(0);
461
468
  });
462
469
  }, C = () => {
463
- o.value || h(), O(() => {
470
+ a.value || g(), O(() => {
464
471
  p(s.value.length - 1), d(s.value.length - 1);
465
472
  });
466
- }, v = ({ detail: y }) => {
467
- y.preventDefault(), f();
468
- }, B = ({ detail: y }) => {
469
- y.preventDefault(), C();
473
+ }, v = ({ detail: b }) => {
474
+ b.preventDefault(), f();
475
+ }, B = ({ detail: b }) => {
476
+ b.preventDefault(), C();
470
477
  }, D = () => {
471
478
  f();
472
- }, g = () => {
479
+ }, h = () => {
473
480
  C();
474
- }, L = ({ detail: y }) => {
475
- y.preventDefault(), c(), o.value && O(() => {
476
- e ? b(0) : (p(i.value), d(i.value));
481
+ }, S = ({ detail: b }) => {
482
+ b.preventDefault(), c(), a.value && O(() => {
483
+ e ? y(0) : (p(i.value), d(i.value));
477
484
  });
478
- }, _ = ({ detail: y }) => {
479
- y.preventDefault(), c(), o.value && O(() => {
480
- e ? b(0) : (p(i.value), d(i.value));
485
+ }, P = ({ detail: b }) => {
486
+ b.preventDefault(), c(), a.value && O(() => {
487
+ e ? y(0) : (p(i.value), d(i.value));
481
488
  });
482
- }, I = () => {
483
- o.value && E();
484
- }, F = () => {
485
- o.value && (E(), $e(t));
489
+ }, A = () => {
490
+ a.value && E();
491
+ }, _ = () => {
492
+ a.value && (E(), ke(t));
486
493
  };
487
494
  return r(() => ({
488
- [A.ARROW_DOWN]: v,
489
- [A.ARROW_UP]: B,
490
- [A.HOME]: D,
491
- [A.END]: g,
492
- ...n.value ? {} : { [A.SPACE]: L },
493
- [A.ENTER]: _,
494
- [A.TAB]: I,
495
- [A.ESCAPE]: F
495
+ [I.ARROW_DOWN]: v,
496
+ [I.ARROW_UP]: B,
497
+ [I.HOME]: D,
498
+ [I.END]: h,
499
+ ...n.value ? {} : { [I.SPACE]: S },
500
+ [I.ENTER]: P,
501
+ [I.TAB]: A,
502
+ [I.ESCAPE]: _
496
503
  }));
497
- }, Vt = ({ inputContainerRef: t, isDropdownOpen: u }, i) => {
498
- const o = () => {
504
+ }, qt = ({ inputContainerRef: t, isDropdownOpen: u }, i) => {
505
+ const a = () => {
499
506
  u.value && i(), O(() => {
500
- $e(t);
507
+ ke(t);
501
508
  });
502
509
  };
503
510
  return {
504
- [m.ENTER]: o,
505
- [m.ESCAPE]: o,
506
- [m.TAB]: o,
507
- [m.SPACE]: o
511
+ [m.ENTER]: a,
512
+ [m.ESCAPE]: a,
513
+ [m.TAB]: a,
514
+ [m.SPACE]: a
508
515
  };
509
516
  };
510
- function Wt(t, u, i, o, n) {
511
- const s = w(t), e = w(u), c = (d, b = []) => b.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? o?.value && p.items ? [...c(d, p.items)] : [p, ...c(d, p.items)] : p.items ? [...c(d, p.items)] : []), h = i !== void 0 ? mt(() => i(s.value), n ?? 300) : void 0;
512
- return ye(s, () => {
513
- h !== void 0 && h();
517
+ function Vt(t, u, i, a, n) {
518
+ const s = w(t), e = w(u), c = (d, y = []) => y.flatMap((p) => p.label.toLocaleLowerCase().includes(d) ? a?.value && p.items ? [...c(d, p.items)] : [p, ...c(d, p.items)] : p.items ? [...c(d, p.items)] : []), g = i !== void 0 ? bt(() => i(s.value), n ?? 300) : void 0;
519
+ return be(s, () => {
520
+ g !== void 0 && g();
514
521
  }), r(() => {
515
522
  if (!s.value || i !== void 0)
516
523
  return e.value;
@@ -518,19 +525,26 @@ function Wt(t, u, i, o, n) {
518
525
  return c(d, e.value);
519
526
  });
520
527
  }
521
- const Re = {
528
+ const $e = {
529
+ "de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
530
+ "en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
522
531
  "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
532
+ "es-ES": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
533
+ "es-MX": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
534
+ "fr-FR": { all: "Tous", ariaLabelFallback: "Menu déroulant", clearSearch: "Effacer le filtre" },
535
+ "it-IT": { all: "Tutti", ariaLabelFallback: "Menu a discesa", clearSearch: "Cancella filtro" },
523
536
  "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
524
- "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" }
525
- }, qt = /* @__PURE__ */ Symbol("input field component injection key"), fo = /* @__PURE__ */ Symbol("input field hint injection key"), mo = /* @__PURE__ */ Symbol("input field parent component injection key"), Ut = W({
526
- i18n: { messages: Re },
537
+ "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
538
+ "zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
539
+ }, Wt = /* @__PURE__ */ Symbol("input field component injection key"), pa = /* @__PURE__ */ Symbol("input field hint injection key"), fa = /* @__PURE__ */ Symbol("input field parent component injection key"), Ut = V({
540
+ i18n: { messages: $e },
527
541
  name: "b-dropdown",
528
542
  components: {
529
- DropdownInputDefault: gt,
530
- DropdownInputSmall: _t
543
+ DropdownInputDefault: dt,
544
+ DropdownInputSmall: Pt
531
545
  },
532
546
  model: { prop: "modelValue" }
533
- }), jt = /* @__PURE__ */ W({
547
+ }), jt = /* @__PURE__ */ V({
534
548
  ...Ut,
535
549
  props: {
536
550
  ariaLabel: { default: null },
@@ -565,101 +579,101 @@ const Re = {
565
579
  },
566
580
  emits: ["input", "update:model-value", "show-more", "open"],
567
581
  setup(t, { expose: u, emit: i }) {
568
- const o = lt(), n = Ae(), s = ht(n), e = t, c = i, { t: h } = ge({ messages: Re }), { emitValue: E } = dt(c), d = w(null), b = w(null), p = w(null), f = w(!1), C = j("bento-dropdown-options-container"), v = j("dropdown-label"), B = j("dropdown-description"), D = j("dropdown-error"), { isReadOnly: g } = ft(x(e, "readonly")), L = r(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: _, cachedListboxSelectedValues: I, setCachedValues: F } = ut(
569
- x(e, "items"),
570
- L,
571
- x(e, "multiple"),
572
- x(e, "enableValueLabelPair")
573
- ), q = w(o["aria-label"]), y = w(o["aria-describedby"]), { ariaLabel: K, label: J } = Ne(e), ke = r(() => h("ariaLabelFallback")), Le = rt({
582
+ const a = lt(), n = Ie(), s = gt(n), e = t, c = i, { t: g } = he({ messages: $e }), { emitValue: E } = ct(c), d = w(null), y = w(null), p = w(null), f = w(!1), C = j("bento-dropdown-options-container"), v = j("dropdown-label"), B = j("dropdown-description"), D = j("dropdown-error"), { isReadOnly: h } = vt(M(e, "readonly")), S = r(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: P, cachedListboxSelectedValues: A, setCachedValues: _ } = pt(
583
+ M(e, "items"),
584
+ S,
585
+ M(e, "multiple"),
586
+ M(e, "enableValueLabelPair")
587
+ ), W = w(a["aria-label"]), b = w(a["aria-describedby"]), { ariaLabel: K, label: J } = xe(e), Re = r(() => g("ariaLabelFallback")), Se = ut({
574
588
  // TODO: take ariaLabel ref away when aria-label prop is removed
575
- ariaLabel: K.value || q,
589
+ ariaLabel: K.value || W,
576
590
  label: J,
577
- defaultFallback: ke
578
- }), Se = e.size === Q.SMALL || nt(qt, !1), Pe = r(() => Se ? Q.SMALL : Q.DEFAULT), _e = r(() => ({
591
+ defaultFallback: Re
592
+ }), Le = e.size === Z.SMALL || nt(Wt, !1), Fe = r(() => Le ? Z.SMALL : Z.DEFAULT), Pe = r(() => ({
579
593
  "b-dropdown--condensed": e.condensed
580
- })), Fe = r(() => ({
594
+ })), _e = r(() => ({
581
595
  "b-dropdown__description--error": !!e.errorMessage
582
- })), N = w(""), Y = x(e, "items"), we = x(e, "staticCategories"), oe = Wt(
583
- N,
596
+ })), x = w(""), Y = M(e, "items"), we = M(e, "staticCategories"), ae = Vt(
597
+ x,
584
598
  Y,
585
599
  e?.search?.searchEvent,
586
600
  we,
587
601
  e?.search?.debounceTime
588
- ), ae = r(() => e.dynamicFiltering && !!N.value), Ke = Kt({
602
+ ), oe = r(() => e.dynamicFiltering && !!x.value), Ke = Kt({
589
603
  items: Y,
590
- placeholder: x(e, "placeholder"),
591
- isMultiSelect: x(e, "multiple"),
592
- selectedValues: _
604
+ placeholder: M(e, "placeholder"),
605
+ isMultiSelect: M(e, "multiple"),
606
+ selectedValues: P
593
607
  }), ze = r(() => {
594
- if (e?.multiple && Array.isArray(L.value))
608
+ if (e?.multiple && Array.isArray(S.value))
595
609
  return e.items.filter(
596
- ({ value: a }) => e?.value && (e?.value).includes(a)
610
+ ({ value: o }) => e?.value && (e?.value).includes(o)
597
611
  );
598
612
  if (!e.multiple && e.staticCategories) {
599
- const a = e.items.find(
600
- (M) => M.items.some(($) => $.value === L.value)
613
+ const o = e.items.find(
614
+ (N) => N.items.some((k) => k.value === S.value)
601
615
  );
602
- return a ? a.items.find((M) => M.value === L.value) : null;
616
+ return o ? o.items.find((N) => N.value === S.value) : null;
603
617
  }
604
- return e.items.find(({ value: a }) => a === L.value);
605
- }), Ve = r(() => {
606
- const a = oe.value.findIndex(({ value: T }) => e.enableValueLabelPair ? L.value.value === T : L.value === T);
607
- return a > -1 ? a : 0;
608
- }), { isMultiLevelSelect: Ee, flattenedItemsList: We } = ct(Y), qe = r(() => Ee.value && !e.staticCategories), Ue = r(() => qe.value ? "treeitem" : "option"), je = r(() => {
618
+ return e.items.find(({ value: o }) => o === S.value);
619
+ }), qe = r(() => {
620
+ const o = ae.value.findIndex(({ value: T }) => e.enableValueLabelPair ? S.value.value === T : S.value === T);
621
+ return o > -1 ? o : 0;
622
+ }), { isMultiLevelSelect: Ee, flattenedItemsList: Ve } = ft(Y), We = r(() => Ee.value && !e.staticCategories), Ue = r(() => We.value ? "treeitem" : "option"), je = r(() => {
609
623
  if (e.multiple) {
610
- const a = Array.isArray(L.value) ? L.value.length : 0, T = Ee.value ? We.value.length : Y.value.length;
611
- return a === 0 ? null : !e.hasMoreItems && T > 0 && T === a ? h("all") : a;
624
+ const o = Array.isArray(S.value) ? S.value.length : 0, T = Ee.value ? Ve.value.length : Y.value.length;
625
+ return o === 0 ? null : !e.hasMoreItems && T > 0 && T === o ? g("all") : o;
612
626
  }
613
627
  return null;
614
628
  }), He = r(
615
629
  () => [
616
630
  e.description ? B : null,
617
- y.value,
631
+ b.value,
618
632
  e.errorMessage ? D : null
619
633
  ].filter(Boolean).join(" ") || null
620
- ), Je = r(() => p.value?.$el), { visibleDomOptions: Ye, updateVisibleDomOptions: Ce } = pt(
634
+ ), Je = r(() => p.value?.$el), { visibleDomOptions: Ye, updateVisibleDomOptions: Ce } = mt(
621
635
  Je,
622
- oe,
636
+ ae,
623
637
  Ue
624
- ), Ze = () => {
625
- g.value || (f.value = !0, O(() => {
638
+ ), Ge = () => {
639
+ h.value || (f.value = !0, O(() => {
626
640
  Ce();
627
641
  }));
628
642
  }, le = () => {
629
643
  f.value = !1;
630
644
  }, ne = () => {
631
- g.value || (f.value = !f.value, O(() => {
645
+ h.value || (f.value = !f.value, O(() => {
632
646
  Ce();
633
- }), ae.value && (N.value = ""));
634
- }, Ge = () => {
635
- ae.value && (N.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
636
- }, Qe = async (a) => {
637
- e.multiple || (N.value = "", f.value = !1), F(a), E(I.value), e.multiple || (await O(), Oe());
647
+ }), oe.value && (x.value = ""));
638
648
  }, Xe = () => {
649
+ oe.value && (x.value = ""), f.value && (f.value = !1, p.value.onOutsideDropdownClick());
650
+ }, Ze = async (o) => {
651
+ e.multiple || (x.value = "", f.value = !1), _(o), E(A.value), e.multiple || (await O(), Oe());
652
+ }, Qe = () => {
639
653
  c(m.SHOW_MORE);
640
654
  }, et = zt(
641
655
  {
642
656
  inputContainerRef: d,
643
657
  optionsContainerRef: p,
644
- selectedValueIndex: Ve,
658
+ selectedValueIndex: qe,
645
659
  isDropdownOpen: f,
646
- isDynamicFltering: x(e, "dynamicFiltering"),
660
+ isDynamicFltering: M(e, "dynamicFiltering"),
647
661
  items: Ye,
648
662
  isMultiple: e.multiple
649
663
  },
650
664
  ne,
651
- Ze,
665
+ Ge,
652
666
  le
653
- ), tt = Vt(
667
+ ), tt = qt(
654
668
  {
655
669
  inputContainerRef: d,
656
670
  isDropdownOpen: f
657
671
  },
658
672
  le
659
- ), ot = {
673
+ ), at = {
660
674
  [m.CLOSE_DROPDOWN]: le,
661
- [m.SELECT]: Qe,
662
- [m.SHOW_MORE]: Xe,
675
+ [m.SELECT]: Ze,
676
+ [m.SHOW_MORE]: Qe,
663
677
  ...tt
664
678
  };
665
679
  e.error && ie(
@@ -677,123 +691,123 @@ const Re = {
677
691
  const Oe = () => {
678
692
  d.value.focus();
679
693
  };
680
- return ye(
694
+ return be(
681
695
  () => f.value,
682
- (a) => {
683
- a && c("open");
696
+ (o) => {
697
+ o && c("open");
684
698
  }
685
699
  ), u({
686
700
  focus: Oe
687
- }), (a, T) => ee((S(), P("div", {
688
- class: me(["b-dropdown", _e.value])
701
+ }), (o, T) => ee((L(), F("div", {
702
+ class: me(["b-dropdown", Pe.value])
689
703
  }, [
690
- l(J) ? (S(), z(l(Lt), {
704
+ l(J) ? (L(), z(l(St), {
691
705
  key: 0,
692
706
  id: l(v),
693
- condensed: a.condensed,
707
+ condensed: o.condensed,
694
708
  label: l(J),
695
- "tooltip-text": a.tooltipText,
696
- optional: a.optional,
697
- required: a.required
698
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : R("", !0),
699
- ee((S(), P("div", k({
709
+ "tooltip-text": o.tooltipText,
710
+ optional: o.optional,
711
+ required: o.required
712
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
713
+ ee((L(), F("div", R({
700
714
  ref_key: "inputContainerRefWrapper",
701
- ref: b
702
- }, X(l(et), !0)), [
703
- (S(), z(Me(Pe.value), {
715
+ ref: y
716
+ }, Q(l(et), !0)), [
717
+ (L(), z(Ne(Fe.value), {
704
718
  ref_key: "inputContainerRef",
705
719
  ref: d,
706
- condensed: a.condensed,
707
- value: N.value,
720
+ condensed: o.condensed,
721
+ value: x.value,
708
722
  "additional-items-selected": je.value,
709
723
  "aria-controls": l(C),
710
724
  ariaExpanded: f.value,
711
725
  "aria-labelledby": l(J) ? l(v) : null,
712
726
  "aria-describedby": He.value,
713
- "aria-label": l(Le),
714
- "aria-readonly": l(g),
715
- "aria-required": a.required,
716
- readonly: l(g),
717
- disabled: a.disabled,
727
+ "aria-label": l(Se),
728
+ "aria-readonly": l(h),
729
+ "aria-required": o.required,
730
+ readonly: l(h),
731
+ disabled: o.disabled,
718
732
  "display-value": l(Ke),
719
- "dynamic-filtering": a.dynamicFiltering,
720
- "is-invalid": !!a.errorMessage || a.error,
721
- multiple: a.multiple,
733
+ "dynamic-filtering": o.dynamicFiltering,
734
+ "is-invalid": !!o.errorMessage || o.error,
735
+ multiple: o.multiple,
722
736
  open: f.value,
723
- "selected-value-item": l(Se) ? void 0 : ze.value,
724
- "show-slot-content-in-multiple": a.showSlotContentInMultiple,
725
- onInput: T[0] || (T[0] = (M) => N.value = M),
737
+ "selected-value-item": l(Le) ? void 0 : ze.value,
738
+ "show-slot-content-in-multiple": o.showSlotContentInMultiple,
739
+ onInput: T[0] || (T[0] = (N) => x.value = N),
726
740
  onOpen: ne,
727
741
  onClose: ne
728
742
  }, ue({ _: 2 }, [
729
- ce(l(n), (M, $) => ({
730
- name: $,
731
- fn: V((se) => [
732
- G(a.$slots, $, pe(fe(se)), void 0, !0)
743
+ ce(l(n), (N, k) => ({
744
+ name: k,
745
+ fn: q((se) => [
746
+ X(o.$slots, k, pe(fe(se)), void 0, !0)
733
747
  ])
734
748
  }))
735
749
  ]), 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"]))
736
750
  ], 16)), [
737
- [l(yt)]
751
+ [l(ht)]
738
752
  ]),
739
- d.value ? (S(), z(l(Bt), k({
753
+ d.value ? (L(), z(l(Bt), R({
740
754
  key: 1,
741
755
  id: l(C),
742
756
  ref_key: "optionsContainerRef",
743
757
  ref: p,
744
- "aria-label": l(Le),
745
- "component-loading": a.componentLoading,
746
- "empty-state": a.emptyState,
747
- disabled: a.disabled,
748
- "is-option-disabled": a.isOptionDisabled,
749
- items: l(oe),
750
- multiple: a.multiple,
758
+ "aria-label": l(Se),
759
+ "component-loading": o.componentLoading,
760
+ "empty-state": o.emptyState,
761
+ disabled: o.disabled,
762
+ "is-option-disabled": o.isOptionDisabled,
763
+ items: l(ae),
764
+ multiple: o.multiple,
751
765
  "static-categories": we.value,
752
766
  open: f.value,
753
- "selected-value": l(_),
754
- searching: ae.value,
755
- "target-element": b.value,
756
- loading: a.loading,
757
- "has-more-items": a.hasMoreItems,
758
- "lazy-load-type": a.lazyLoadType,
759
- "virtual-scroll": a.virtualScroll
760
- }, X(ot)), ue({ _: 2 }, [
761
- ce(l(n), (M, $) => ({
762
- name: $,
763
- fn: V((se) => [
764
- G(a.$slots, $, pe(fe(se)), void 0, !0)
767
+ "selected-value": l(P),
768
+ searching: oe.value,
769
+ "target-element": y.value,
770
+ loading: o.loading,
771
+ "has-more-items": o.hasMoreItems,
772
+ "lazy-load-type": o.lazyLoadType,
773
+ "virtual-scroll": o.virtualScroll
774
+ }, Q(at)), ue({ _: 2 }, [
775
+ ce(l(n), (N, k) => ({
776
+ name: k,
777
+ fn: q((se) => [
778
+ X(o.$slots, k, pe(fe(se)), void 0, !0)
765
779
  ])
766
780
  }))
767
- ]), 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"])) : R("", !0),
768
- a.errorMessage ? (S(), z(l(St), {
781
+ ]), 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),
782
+ o.errorMessage ? (L(), z(l(Lt), {
769
783
  key: 2,
770
784
  id: l(D),
771
- "error-message": a.errorMessage,
785
+ "error-message": o.errorMessage,
772
786
  class: "b-dropdown__error-message"
773
- }, null, 8, ["id", "error-message"])) : R("", !0),
774
- a.description || l(s)("description") ? (S(), z(l(it), {
787
+ }, null, 8, ["id", "error-message"])) : $("", !0),
788
+ o.description || l(s)("description") ? (L(), z(l(it), {
775
789
  key: 3,
776
790
  id: l(B),
777
- class: me(["b-dropdown__description", Fe.value]),
791
+ class: me(["b-dropdown__description", _e.value]),
778
792
  el: "span"
779
793
  }, {
780
- default: V(() => [
781
- G(a.$slots, "description", {}, () => [
782
- st(be(a.description), 1)
794
+ default: q(() => [
795
+ X(o.$slots, "description", {}, () => [
796
+ st(ye(o.description), 1)
783
797
  ], !0)
784
798
  ]),
785
799
  _: 3
786
- }, 8, ["id", "class"])) : R("", !0)
800
+ }, 8, ["id", "class"])) : $("", !0)
787
801
  ], 2)), [
788
- [l(vt), Ge]
802
+ [l(yt), Xe]
789
803
  ]);
790
804
  }
791
- }), vo = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-06d3531c"]]);
805
+ }), ma = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-06d3531c"]]);
792
806
  export {
793
- vo as B,
794
- fo as I,
795
- qt as a,
796
- mo as b,
797
- Wt as u
807
+ ma as B,
808
+ pa as I,
809
+ Wt as a,
810
+ fa as b,
811
+ Vt as u
798
812
  };
799
- //# sourceMappingURL=dropdown.MhmX1P9o.js.map
813
+ //# sourceMappingURL=dropdown.Do-mZiI6.js.map