@adyen/bento-vue3 1.89.2 → 1.91.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 (283) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +767 -522
  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-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  36. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  37. package/dist/chunks/action-bar.BPS3wPde.js +336 -0
  38. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
  39. package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
  40. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
  41. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  42. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  43. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  44. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  45. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
  46. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
  49. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
  50. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
  51. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
  52. package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
  53. package/dist/chunks/card.BEChcEqg.js +223 -0
  54. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
  56. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
  57. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
  58. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
  59. package/dist/chunks/chip.DFldnqfz.js +72 -0
  60. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
  64. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
  65. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
  66. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  67. package/dist/chunks/copy.CL893i9-.js +114 -0
  68. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  69. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  70. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  71. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  72. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
  74. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
  76. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
  78. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
  79. package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
  80. package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
  81. package/dist/chunks/date-picker.CidHad1p.js +269 -0
  82. package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
  83. package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
  84. package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
  85. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  86. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  87. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  88. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  89. package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
  90. package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
  91. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
  92. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
  93. package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
  94. package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
  95. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  96. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  97. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  98. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  99. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
  100. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
  102. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
  103. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  104. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
  106. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
  107. package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
  108. package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
  110. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
  112. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
  113. package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
  114. package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
  115. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  116. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  117. package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
  118. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
  119. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
  120. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
  121. package/dist/chunks/input-field.DkUFvIWt.js +326 -0
  122. package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
  123. package/dist/chunks/input-time.WI_qdwJc.js +122 -0
  124. package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
  125. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  126. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  127. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  128. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  130. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  131. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
  132. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
  133. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
  134. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
  135. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  136. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  137. package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
  138. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
  139. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  140. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  141. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
  142. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
  143. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
  144. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
  145. package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
  146. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
  147. package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
  148. package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
  149. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  150. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  151. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
  152. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  153. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
  154. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
  155. package/dist/chunks/step.AsX2jAeL.js +268 -0
  156. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  157. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  158. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  159. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
  160. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
  161. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  162. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  163. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  164. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  165. package/dist/chunks/textarea.JGXAlpx9.js +257 -0
  166. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
  167. package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
  168. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
  169. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  170. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  171. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  172. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
  176. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
  177. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  178. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  179. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  180. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  181. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
  182. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
  183. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/country.js +3 -3
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable.js +1383 -0
  195. package/dist/draggable.js.map +1 -0
  196. package/dist/dropdown.js +10 -11
  197. package/dist/dropdown.js.map +1 -1
  198. package/dist/file-uploader.js +1 -1
  199. package/dist/filter-bar.js +1 -1
  200. package/dist/form-layout.js +1 -1
  201. package/dist/header-with-views.js +1 -1
  202. package/dist/header.js +1 -1
  203. package/dist/index.js +284 -279
  204. package/dist/index.js.map +1 -1
  205. package/dist/info-icon.js +1 -1
  206. package/dist/input-field-password.js +1 -1
  207. package/dist/input-field-phone-number.js +1 -1
  208. package/dist/input-field.js +1 -1
  209. package/dist/input-time.js +5 -0
  210. package/dist/input-time.js.map +1 -0
  211. package/dist/inspector.js +1 -1
  212. package/dist/internal.js +26 -25
  213. package/dist/internal.js.map +1 -1
  214. package/dist/list.js +1 -1
  215. package/dist/menu.js +1 -1
  216. package/dist/modal-fullscreen.js +1 -1
  217. package/dist/modal.js +2 -2
  218. package/dist/pagination.js +1 -1
  219. package/dist/popover.js +1 -1
  220. package/dist/promo-banner.js +1 -1
  221. package/dist/radio-group.js +1 -1
  222. package/dist/rich-text-editor.js +1 -1
  223. package/dist/search-bar.js +2 -2
  224. package/dist/secondary-nav.js +1 -1
  225. package/dist/segmented-control.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/summary-grid.js +1 -1
  231. package/dist/tabs.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/toast.js +1 -1
  236. package/dist/tutorial.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +7 -10
  239. package/dist/assets/dropdown-default-textbox.css +0 -1
  240. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  241. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  242. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  243. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  244. package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
  245. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  246. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  247. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  248. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  249. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  250. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  251. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  252. package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
  253. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  254. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  255. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  256. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  257. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  258. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
  259. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
  260. package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
  261. package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
  262. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  263. package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
  264. package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
  265. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  266. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  267. package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
  268. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  269. package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
  270. package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
  271. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  272. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  273. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  274. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  275. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  276. package/dist/chunks/step.BlwoLfdw.js +0 -259
  277. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  278. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  279. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  280. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
  282. package/dist/draggable-handle.js +0 -155
  283. package/dist/draggable-handle.js.map +0 -1
@@ -0,0 +1,1214 @@
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";
5
+ import { u as Ve } from "./use-has-slot.CyMiImRQ.js";
6
+ import { C as ft } from "./cross-circle-fill.BWCKKn0E.js";
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";
12
+ /* empty css */
13
+ import { u as vt } from "./aria-label.CaUURpnB.js";
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";
16
+ import { u as Ct } from "./use-form-layout-loading.CWbjZiwP.js";
17
+ import { B as Et } from "./directive.C8kY-ZW-.js";
18
+ import { B as z, a as xt } from "./keyboard-navigation.DWmhelVv.js";
19
+ import { F as It } from "./field-label.DZYFjFgr.js";
20
+ import { P as Me } from "./popper-container.DMN8n5iC.js";
21
+ import { h as Ot } from "./button-actions.DLiM8KZL.js";
22
+ import { E as Dt } from "./error-message.Dyvrw6ZB.js";
23
+ import "../assets/dropdown.css";
24
+ var te = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(te || {});
25
+ const Ie = {
26
+ "de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
27
+ "en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
28
+ "en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
29
+ "es-ES": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
30
+ "es-MX": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda" },
31
+ "fr-FR": { apply: "Appliquer", cancel: "Annuler", noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche" },
32
+ "it-IT": { apply: "Applica", cancel: "Annulla", noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca" },
33
+ "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
34
+ "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
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, () => {
39
+ i.value = e.value;
40
+ });
41
+ const t = r(
42
+ () => JSON.stringify(i.value) === JSON.stringify(e.value)
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(() => [
50
+ {
51
+ title: n("apply"),
52
+ event: a,
53
+ disabled: t.value
54
+ },
55
+ {
56
+ title: n("cancel"),
57
+ event: v
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
77
+ };
78
+ return {
79
+ // Values
80
+ actions: u,
81
+ internalSelectedValue: i,
82
+ // Methods
83
+ listeners: D,
84
+ onEscapeKey: m,
85
+ onOutsideDropdownClick: g
86
+ };
87
+ }, At = R({
88
+ i18n: { messages: Ie },
89
+ name: "bento-dropdown-options-container"
90
+ }), Nt = /* @__PURE__ */ R({
91
+ ...At,
92
+ props: {
93
+ /**
94
+ * Defines a string value that labels an interactive element.
95
+ */
96
+ ariaLabel: { type: String, default: null },
97
+ /**
98
+ * Indicates that dropdown items are loading
99
+ */
100
+ componentLoading: { type: Boolean, default: !1 },
101
+ /**
102
+ * Empty state props used with the inner empty state component which is displayed when no search results are found.
103
+ */
104
+ emptyState: {
105
+ type: Object,
106
+ default: void 0
107
+ },
108
+ /**
109
+ * Disables dropdown functionality
110
+ */
111
+ disabled: { type: Boolean, default: !1 },
112
+ /**
113
+ * Indicates whether there are more items to load
114
+ */
115
+ hasMoreItems: { type: Boolean, default: !1 },
116
+ /**
117
+ * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
118
+ */
119
+ id: { type: String, required: !0 },
120
+ /**
121
+ * Function that allows the options to be disabled
122
+ *
123
+ * @type {BentoDropdownIsOptionDisabled}
124
+ * @param {BentoDropdownOptionItem} option - Dropdown option object
125
+ * @param {string} option.label - Option's label text
126
+ * @param {string|number} option.value - Option's value
127
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
128
+ */
129
+ isOptionDisabled: {
130
+ type: Function,
131
+ default: void 0
132
+ },
133
+ /**
134
+ * The option elements to populate the dropdown with.
135
+ * It must be an array of {@see BentoDropdownOptionItem }
136
+ * * @property {string} value.label - Text to be displayed in the option
137
+ * * @property {string,number} value.value - Value of the option
138
+ */
139
+ items: {
140
+ type: Array,
141
+ required: !0
142
+ },
143
+ /**
144
+ * The type of `Lazy Load`.
145
+ * Type "automatic" will enable infinite scrolling
146
+ * Type "button" will enable lazy loading with "Show more" button
147
+ */
148
+ lazyLoadType: {
149
+ type: String,
150
+ default: ke.AUTOMATIC,
151
+ validator: (e) => Object.values(ke).includes(e)
152
+ },
153
+ /**
154
+ * Indicates if new options are lazy loading.
155
+ */
156
+ loading: { type: Boolean, default: !1 },
157
+ /**
158
+ * If enabled, the user will be able to select multiple items.
159
+ */
160
+ multiple: { type: Boolean, default: !1 },
161
+ /**
162
+ * Indicates if the dropdown is open so that
163
+ * the container can be displayed.
164
+ */
165
+ open: { type: Boolean, required: !0 },
166
+ /**
167
+ * The `input` value.
168
+ * Providing an empty string or empty array will select no options.
169
+ * Set to an empty string `''` if you don't want any of the available options to be selected for single select
170
+ */
171
+ selectedValue: {
172
+ type: Array,
173
+ default: null
174
+ },
175
+ /**
176
+ * Flag that indicates that an external search it's being made
177
+ * to filter out the items inside the the multi-select listbox
178
+ *
179
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
180
+ */
181
+ searching: xe.props.searching,
182
+ /**
183
+ * If enabled, dropdown will display non-selectable, static categories
184
+ */
185
+ staticCategories: { type: Boolean, default: !1 },
186
+ /**
187
+ * Reference to the DOM element or Vue component for positioning
188
+ * the Dropdown container.
189
+ */
190
+ targetElement: { type: Me.props.targetElement.type, required: !0 },
191
+ /**
192
+ * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
193
+ * The itemHeight function is used to calculate the height of rendered item given it's index.
194
+ */
195
+ virtualScroll: {
196
+ type: [Boolean, Object],
197
+ default: !1
198
+ }
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(() => ({
202
+ "b-dropdown-options-container--single": !n?.multiple
203
+ })), b = r(() => ({
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(() => {
206
+ const T = {
207
+ "min-width": `${n?.targetElement?.clientWidth}px`,
208
+ "max-width": "min(500px, 95%)"
209
+ };
210
+ return n?.multiple ? {
211
+ actionsLayout: "space-between",
212
+ ariaLabel: n.ariaLabel,
213
+ actions: O.value,
214
+ divider: !0,
215
+ fallbackPosition: ["top-start"],
216
+ id: Q(`dropdown-options-${n.id}`),
217
+ open: n.open,
218
+ position: "bottom-start",
219
+ style: {
220
+ width: "auto",
221
+ ...T
222
+ },
223
+ targetElement: n.targetElement
224
+ } : {
225
+ fallbackPosition: ["top-start"],
226
+ offset: [0, 8],
227
+ position: "bottom-start",
228
+ style: {
229
+ display: u.value ? "block" : "none",
230
+ ...T
231
+ },
232
+ targetElement: n.targetElement
233
+ };
234
+ });
235
+ return c({
236
+ onOutsideDropdownClick: L
237
+ }), (T, F) => u.value ? (f(), U(_e(E.value), A({
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(
244
+ //@ts-ignore
245
+ (..._) => o(D) && o(D)(..._),
246
+ ["esc"]
247
+ ))
248
+ }, [
249
+ W(o(xe), A({
250
+ id: e.id,
251
+ ref_key: "dropdownOptionsListboxRef",
252
+ ref: v,
253
+ "aria-label": e.ariaLabel,
254
+ class: ["b-dropdown-options-container__listbox", b.value],
255
+ "component-loading": e.componentLoading,
256
+ "empty-state": e.emptyState,
257
+ "is-option-disabled": e.isOptionDisabled,
258
+ items: e.items,
259
+ "selected-value": o(m),
260
+ multiple: o(a),
261
+ "static-categories": e.staticCategories,
262
+ "no-results-message": S.value,
263
+ searching: e.searching,
264
+ loading: e.loading,
265
+ "lazy-load-type": e.lazyLoadType,
266
+ "has-more-items": e.hasMoreItems,
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)
273
+ ])
274
+ }))
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"])
276
+ ], 32)
277
+ ]),
278
+ _: 3
279
+ }, 16, ["class"])) : $("", !0);
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 || {});
283
+ const qe = {
284
+ "de-DE": { clearSearch: "Suche löschen" },
285
+ "en-GB": { clearSearch: "Clear search" },
286
+ "en-US": { clearSearch: "Clear search" },
287
+ "es-ES": { clearSearch: "Borrar búsqueda" },
288
+ "es-MX": { clearSearch: "Borrar búsqueda" },
289
+ "fr-FR": { clearSearch: "Effacer la recherche" },
290
+ "it-IT": { clearSearch: "Cancella ricerca" },
291
+ "ja-JP": { clearSearch: "検索をクリア" },
292
+ "pt-BR": { clearSearch: "Limpar busca" },
293
+ "zh-CN": { clearSearch: "清除搜索" }
294
+ }, kt = ["id", "value", "disabled", "readonly", "required"], Mt = ["id", "aria-readonly", "tabindex"], $t = {
295
+ key: 1,
296
+ class: "b-dropdown-base-textbox__input-multiple-selected"
297
+ }, Rt = { class: "b-dropdown-base-textbox__input-selected-element" }, Ft = {
298
+ key: 2,
299
+ class: "b-dropdown-base-textbox__additional-items"
300
+ }, _t = {
301
+ key: 3,
302
+ class: "b-dropdown-base-textbox__icon",
303
+ "aria-hidden": "true"
304
+ }, Pt = ["tabindex", "onKeydown"], Kt = R({
305
+ i18n: { messages: qe },
306
+ name: "dropdown-base-textbox",
307
+ inheritAttrs: !1
308
+ }), Vt = /* @__PURE__ */ R({
309
+ ...Kt,
310
+ props: {
311
+ /**
312
+ * The number of additional items that have been selected in the dropdown.
313
+ */
314
+ additionalItemsSelected: { type: [Number, String], default: 0 },
315
+ /**
316
+ * If the combobox DOM element should be an `input` element.
317
+ */
318
+ alwaysComboboxIsInput: {
319
+ type: Boolean,
320
+ default: !1
321
+ },
322
+ /**
323
+ * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
324
+ */
325
+ ariaControls: { type: String, required: !0 },
326
+ /**
327
+ * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
328
+ */
329
+ ariaExpanded: {
330
+ type: [String, Boolean],
331
+ required: !0
332
+ },
333
+ /**
334
+ * If no label element is used then the aria-label is be set should be set.
335
+ */
336
+ ariaLabel: { type: String, default: null },
337
+ /**
338
+ * Corresponds to the label's id that labels the textbox element.
339
+ */
340
+ ariaLabelledby: { type: String, default: null },
341
+ /**
342
+ * Disables any textbox functionality
343
+ */
344
+ disabled: { type: Boolean, default: !1 },
345
+ /**
346
+ * Selected option's label
347
+ */
348
+ displayValue: { type: String, default: null },
349
+ /**
350
+ * Sets the possibility to type into the textbox.
351
+ */
352
+ dynamicFiltering: { type: Boolean, default: !1 },
353
+ /**
354
+ * Marks the textbox as invalid, rendering an error state
355
+ */
356
+ isInvalid: { type: Boolean, default: !1 },
357
+ /*
358
+ * If enabled, the user will be able to select multiple items.
359
+ */
360
+ multiple: { type: Boolean, default: !1 },
361
+ /**
362
+ * Indicates if the dropdown is open so that
363
+ * the respective event can be emitted
364
+ */
365
+ open: { type: Boolean, default: !1 },
366
+ /**
367
+ * Sets the dropdown to readonly state
368
+ */
369
+ readonly: { type: Boolean, default: !1 },
370
+ /**
371
+ * The input value
372
+ */
373
+ value: { type: String, default: "" },
374
+ /**
375
+ * The selected value's list box item.
376
+ */
377
+ selectedValueItem: {
378
+ type: [Object, Array],
379
+ default: void 0
380
+ },
381
+ /**
382
+ * Toggles whether to use the slot content select items shown in the textbox in multiple mode.
383
+ */
384
+ showSlotContentInMultiple: { type: Boolean, default: !1 },
385
+ /**
386
+ * Dropdown size
387
+ */
388
+ size: {
389
+ type: String,
390
+ default: null
391
+ }
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(() => ({
401
+ "b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
402
+ })), O = r(() => a.dynamicFiltering && !!a.value && a.open), m = r(
403
+ () => ({
404
+ "aria-haspopup": "listbox",
405
+ "aria-controls": a.ariaControls,
406
+ "aria-describedby": i["aria-describedby"]?.toString(),
407
+ "aria-expanded": a.ariaExpanded ? "true" : "false",
408
+ "aria-labelledby": a.ariaLabelledby,
409
+ "aria-label": a.ariaLabelledby ? null : a.ariaLabel,
410
+ "aria-invalid": a.isInvalid,
411
+ "aria-disabled": a.disabled ? !0 : null,
412
+ "aria-required": i["aria-required"]
413
+ })
414
+ ), y = r(
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
418
+ );
419
+ ye(
420
+ () => D.value,
421
+ () => {
422
+ D.value && !a.alwaysComboboxIsInput && N(() => {
423
+ g.value.focus();
424
+ });
425
+ }
426
+ );
427
+ const M = async () => {
428
+ !a.disabled && !a.readonly && (v(I.OPEN), await N(), g.value.focus());
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());
435
+ };
436
+ return c({
437
+ focus: () => {
438
+ g.value.focus();
439
+ }
440
+ }), (x, se) => (f(), C("div", {
441
+ class: le(x.$attrs.class),
442
+ "data-testid": "textbox-wrapper",
443
+ onClick: F,
444
+ onKeydown: ie(T, ["escape"])
445
+ }, [
446
+ W(o(Ke), {
447
+ class: le(["b-dropdown-base-textbox", S.value]),
448
+ el: "div",
449
+ "data-testid": "base-textbox"
450
+ }, {
451
+ default: q(() => [
452
+ D.value ? (f(), C("input", A({ key: 0 }, m.value, {
453
+ id: o(u),
454
+ ref_key: "textbox",
455
+ ref: g,
456
+ class: "b-dropdown-base-textbox__input",
457
+ role: "combobox",
458
+ type: "text",
459
+ "aria-autocomplete": "list",
460
+ size: "1",
461
+ value: e.open ? e.value : e.displayValue,
462
+ disabled: e.disabled ? !0 : null,
463
+ readonly: e.readonly,
464
+ required: p.value,
465
+ onKeydown: [
466
+ se[0] || (se[0] = (H) => x.$emit(o(I).KEYDOWN, H)),
467
+ ie(F, ["enter"])
468
+ ],
469
+ onInput: w
470
+ }), null, 16, kt)) : (f(), C("div", A({
471
+ key: 1,
472
+ id: o(u)
473
+ }, m.value, {
474
+ ref_key: "textbox",
475
+ ref: g,
476
+ class: ["b-dropdown-base-textbox__input", b.value],
477
+ "aria-readonly": e.readonly ? "true" : null,
478
+ role: "combobox",
479
+ tabindex: e.disabled ? -1 : 0
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)
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
488
+ }, [
489
+ ne("div", Rt, [
490
+ V(x.$slots, "default", A({ ref_for: !0 }, H), () => [
491
+ ce(X(e.displayValue), 1)
492
+ ], !0)
493
+ ])
494
+ ]))), 128))
495
+ ])) : (f(), C(Ce, { key: 2 }, [
496
+ ce(X(e.displayValue), 1)
497
+ ], 64))
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)
502
+ ])) : $("", !0),
503
+ O.value ? (f(), C("span", {
504
+ key: 4,
505
+ class: "b-dropdown-base-textbox__clear-search",
506
+ tabindex: e.disabled ? -1 : 0,
507
+ "data-testid": "clear-search-button",
508
+ onClick: Te(_, ["stop"]),
509
+ onKeydown: ie(Te(_, ["stop"]), ["enter"]),
510
+ onKeyup: ie(_, ["space"])
511
+ }, [
512
+ e.size === o(te).SMALL ? (f(), U(o(bt), {
513
+ key: 0,
514
+ "svg-title": o(l)("clearSearch")
515
+ }, null, 8, ["svg-title"])) : (f(), U(o(ft), {
516
+ key: 1,
517
+ "svg-title": o(l)("clearSearch")
518
+ }, null, 8, ["svg-title"]))
519
+ ], 40, Pt)) : $("", !0)
520
+ ]),
521
+ _: 3
522
+ }, 8, ["class"])
523
+ ], 34));
524
+ }
525
+ }), ze = /* @__PURE__ */ Z(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = R({
526
+ name: "dropdown-default-textbox",
527
+ inheritAttrs: !1
528
+ }), Ut = /* @__PURE__ */ R({
529
+ ...zt,
530
+ props: {
531
+ /**
532
+ * The number of additional items that have been selected in the dropdown.
533
+ */
534
+ additionalItemsSelected: { type: [Number, String], default: 0 },
535
+ /**
536
+ * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
537
+ */
538
+ ariaControls: {
539
+ type: String,
540
+ required: !0
541
+ },
542
+ /**
543
+ * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
544
+ */
545
+ ariaExpanded: {
546
+ type: [String, Boolean],
547
+ required: !0
548
+ },
549
+ /**
550
+ * If no label element is used then the aria-label is be set should be set.
551
+ */
552
+ ariaLabel: {
553
+ type: String,
554
+ default: null
555
+ },
556
+ /**
557
+ * Corresponds to the label's id that labels the textbox element.
558
+ */
559
+ ariaLabelledby: {
560
+ type: String,
561
+ default: null
562
+ },
563
+ /**
564
+ * Renders the dropdown with a condensed style.
565
+ */
566
+ condensed: { type: Boolean, default: !1 },
567
+ /**
568
+ * Disables any textbox functionality
569
+ */
570
+ disabled: { type: Boolean, default: !1 },
571
+ /**
572
+ * Selected option's label
573
+ */
574
+ displayValue: { type: String, default: null },
575
+ /**
576
+ * Sets the possibility to type into the textbox
577
+ */
578
+ dynamicFiltering: {
579
+ type: Boolean,
580
+ default: !1
581
+ },
582
+ /**
583
+ * Marks the textbox as invalid, rendering an error state
584
+ */
585
+ isInvalid: { type: Boolean, default: !1 },
586
+ /**
587
+ * Indicates if the dropdown is open so that
588
+ * the respective event can be emitted
589
+ */
590
+ open: { type: Boolean, default: !1 },
591
+ /**
592
+ * Sets the dropdown to readonly state
593
+ */
594
+ readonly: { type: Boolean, default: !1 },
595
+ /**
596
+ * The selected value's list box item.
597
+ */
598
+ selectedValueItem: {
599
+ type: [Object, Array],
600
+ default: void 0
601
+ },
602
+ /**
603
+ * Toggles whether to use the slot content select items shown in the textbox in multiple mode.
604
+ */
605
+ showSlotContentInMultiple: { type: Boolean, default: !1 },
606
+ /**
607
+ * The input value
608
+ */
609
+ value: { type: String, default: "" },
610
+ /*
611
+ * If enabled, the user will be able to select multiple items.
612
+ */
613
+ multiple: { type: Boolean, default: !1 }
614
+ },
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,
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
639
+ };
640
+ return c({
641
+ focus: () => {
642
+ t.value.focus();
643
+ }
644
+ }), (y, D) => (f(), C("div", {
645
+ class: le(["b-dropdown-default-textbox", a.value]),
646
+ "data-testid": "default-textbox"
647
+ }, [
648
+ W(ze, A({
649
+ ref_key: "baseTextbox",
650
+ ref: t
651
+ }, { ...y.$attrs, ...y.$props }, {
652
+ class: "b-dropdown-default-textbox__textbox",
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]
659
+ ]),
660
+ oe(W(o(yt), { "svg-title": "closed" }, null, 512), [
661
+ [be, !v.value]
662
+ ])
663
+ ])
664
+ ]),
665
+ _: 2
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)
671
+ ])
672
+ }))
673
+ ]), 1040, ["value"])
674
+ ], 2));
675
+ }
676
+ }), Wt = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-c3e3ce21"]]);
677
+ let $e = 0;
678
+ const jt = {
679
+ beforeCreate() {
680
+ this.uuid = $e.toString(), $e += 1;
681
+ }
682
+ }, Ht = { key: 0 };
683
+ function Yt(e, c, d, l, i, n) {
684
+ return f(), C("svg", A({ role: "img" }, e.$attrs, {
685
+ class: "ui-assets-icons-16",
686
+ xmlns: "http://www.w3.org/2000/svg",
687
+ width: "16",
688
+ height: "16",
689
+ fill: "none"
690
+ }), [
691
+ e.$attrs["svg-title"] ? (f(), C("title", Ht, X(e.$attrs["svg-title"]), 1)) : $("", !0),
692
+ c[0] || (c[0] = ne("path", {
693
+ fill: "#001222",
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
+ }, null, -1))
696
+ ], 16);
697
+ }
698
+ const Jt = /* @__PURE__ */ Z(jt, [["render", Yt]]);
699
+ let Re = 0;
700
+ const Gt = {
701
+ beforeCreate() {
702
+ this.uuid = Re.toString(), Re += 1;
703
+ }
704
+ }, Xt = { key: 0 };
705
+ function Zt(e, c, d, l, i, n) {
706
+ return f(), C("svg", A({ role: "img" }, e.$attrs, {
707
+ class: "ui-assets-icons-16",
708
+ xmlns: "http://www.w3.org/2000/svg",
709
+ width: "16",
710
+ height: "16",
711
+ fill: "none"
712
+ }), [
713
+ e.$attrs["svg-title"] ? (f(), C("title", Xt, X(e.$attrs["svg-title"]), 1)) : $("", !0),
714
+ c[0] || (c[0] = ne("path", {
715
+ fill: "#001222",
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
+ }, null, -1))
718
+ ], 16);
719
+ }
720
+ const Qt = /* @__PURE__ */ Z(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = R({
721
+ name: "dropdown-small-textbox",
722
+ inheritAttrs: !1
723
+ }), aa = /* @__PURE__ */ R({
724
+ ...ta,
725
+ props: {
726
+ /**
727
+ * The number of additional items that have been selected in the dropdown.
728
+ */
729
+ additionalItemsSelected: { type: [Number, String], default: 0 },
730
+ /**
731
+ * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.
732
+ */
733
+ ariaControls: { type: String, required: !0 },
734
+ /**
735
+ * Indicates whether the content the textbox triggers is visible or not. Needs to be set accordingly when the textbox is used and changed every time the popover is shown/hidden.
736
+ */
737
+ ariaExpanded: {
738
+ type: [String, Boolean],
739
+ required: !0
740
+ },
741
+ /**
742
+ * If no label element is used then the aria-label is be set should be set.
743
+ */
744
+ ariaLabel: { type: String, default: null },
745
+ /**
746
+ * Corresponds to the label's id that labels the textbox element.
747
+ */
748
+ ariaLabelledby: { type: String, default: null },
749
+ /**
750
+ * Disables any textbox functionality
751
+ */
752
+ disabled: { type: Boolean, default: !1 },
753
+ /**
754
+ * Selected option's label
755
+ */
756
+ displayValue: { type: String, default: null },
757
+ /**
758
+ * Sets the possibility to type into the textbox
759
+ */
760
+ dynamicFiltering: { type: Boolean, default: !1 },
761
+ /**
762
+ * Marks the textbox as invalid, rendering an error state
763
+ */
764
+ isInvalid: { type: Boolean, default: !1 },
765
+ /**
766
+ * Indicates if the dropdown is open so that
767
+ * the respective event can be emitted
768
+ */
769
+ open: { type: Boolean, default: !1 },
770
+ /**
771
+ * Sets the dropdown to readonly state
772
+ */
773
+ readonly: { type: Boolean, default: !1 },
774
+ /**
775
+ * The input value
776
+ */
777
+ value: { type: String, default: "" }
778
+ },
779
+ emits: ["clear", "close", "input", "keydown", "open"],
780
+ setup(e, { expose: c, emit: d }) {
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
801
+ };
802
+ return c({
803
+ focus: () => {
804
+ n.value.focus();
805
+ }
806
+ }), (m, y) => (f(), C("div", {
807
+ class: le(["b-dropdown-small-textbox", t.value])
808
+ }, [
809
+ W(ze, A({
810
+ ref_key: "baseTextbox",
811
+ ref: n
812
+ }, { ...m.$attrs, ...m.$props }, {
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]
820
+ ]),
821
+ oe(W(o(Jt), { "svg-title": "closed" }, null, 512), [
822
+ [be, !a.value]
823
+ ])
824
+ ])
825
+ ]),
826
+ _: 1
827
+ }, 16, ["size"])
828
+ ], 2));
829
+ }
830
+ }), la = /* @__PURE__ */ Z(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, c) => c.value.reduce((d, l) => {
831
+ if (l.items) {
832
+ const i = l.items.filter(
833
+ (t) => e.value.find((a) => a.value === t.value)
834
+ );
835
+ i.length === l.items.length ? d.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => d.push(a ?? t));
836
+ }
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 }) => {
839
+ const i = r(
840
+ () => l.value && e.value.find((t) => t.items?.length)
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);
843
+ }, Ue = (e) => {
844
+ e.value.$children?.[0].$refs.textbox.focus();
845
+ }, sa = ({
846
+ inputContainerRef: e,
847
+ optionsContainerRef: c,
848
+ selectedValueIndex: d,
849
+ isDropdownOpen: l,
850
+ isDynamicFltering: i,
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(
859
+ "button"
860
+ );
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);
867
+ });
868
+ }, 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();
878
+ }, 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));
887
+ });
888
+ }, T = () => {
889
+ l.value && g();
890
+ }, F = () => {
891
+ l.value && (g(), Ue(e));
892
+ };
893
+ 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
902
+ }));
903
+ }, ia = ({ inputContainerRef: e, isDropdownOpen: c }, d) => {
904
+ const l = () => {
905
+ c.value && d(), N(() => {
906
+ Ue(e);
907
+ });
908
+ };
909
+ return {
910
+ [h.ENTER]: l,
911
+ [h.ESCAPE]: l,
912
+ [h.TAB]: l,
913
+ [h.SPACE]: l
914
+ };
915
+ };
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();
920
+ }), r(() => {
921
+ if (!n.value || d !== void 0)
922
+ return t.value;
923
+ const u = n.value.toLocaleLowerCase();
924
+ return a(u, t.value);
925
+ });
926
+ }
927
+ const We = {
928
+ "de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
929
+ "en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
930
+ "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
931
+ "es-ES": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
932
+ "es-MX": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
933
+ "fr-FR": { all: "Tous", ariaLabelFallback: "Menu déroulant", clearSearch: "Effacer le filtre" },
934
+ "it-IT": { all: "Tutti", ariaLabelFallback: "Menu a discesa", clearSearch: "Cancella filtro" },
935
+ "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
936
+ "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
937
+ "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({
939
+ i18n: { messages: We },
940
+ name: "b-dropdown",
941
+ components: {
942
+ DropdownInputDefault: Wt,
943
+ DropdownInputSmall: la
944
+ },
945
+ model: { prop: "modelValue" }
946
+ }), ca = /* @__PURE__ */ R({
947
+ ...ua,
948
+ props: {
949
+ ariaLabel: { default: null },
950
+ condensed: { type: Boolean, default: !1 },
951
+ emptyState: { default: void 0 },
952
+ dynamicFiltering: { type: Boolean, default: !1 },
953
+ error: { type: Boolean, default: !1 },
954
+ hasMoreItems: { type: Boolean, default: !1 },
955
+ isOptionDisabled: { type: Function, default: void 0 },
956
+ items: { default: () => [] },
957
+ loading: { type: Boolean, default: !1 },
958
+ componentLoading: { type: Boolean, default: !1 },
959
+ lazyLoadType: { default: xe.props.lazyLoadType.default },
960
+ multiple: { type: Boolean, default: !1 },
961
+ search: { default: void 0 },
962
+ showSlotContentInMultiple: { type: Boolean, default: !1 },
963
+ size: { default: null },
964
+ staticCategories: { type: Boolean, default: !1 },
965
+ value: { default: null },
966
+ modelValue: { default: null },
967
+ virtualScroll: { type: [Boolean, Object], default: !1 },
968
+ enableValueLabelPair: { type: Boolean, default: !1 },
969
+ description: { default: null },
970
+ disabled: { type: Boolean, default: !1 },
971
+ errorMessage: { default: null },
972
+ label: { default: null },
973
+ optional: { type: Boolean, default: !1 },
974
+ placeholder: { default: null },
975
+ readonly: { type: Boolean, default: !1 },
976
+ required: { type: Boolean, default: !1 },
977
+ tooltipText: { default: null }
978
+ },
979
+ 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({
987
+ // 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(() => ({
992
+ "b-dropdown--condensed": t.condensed
993
+ })), Ye = r(() => ({
994
+ "b-dropdown__description--error": !!t.errorMessage
995
+ })), Y = B(""), ue = K(t, "items"), De = K(t, "staticCategories"), he = ra(
996
+ Y,
997
+ ue,
998
+ t?.search?.searchEvent,
999
+ De,
1000
+ 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
1006
+ }), Ge = r(() => {
1007
+ if (t?.multiple && Array.isArray(E.value))
1008
+ return t.items.filter(
1009
+ ({ value: s }) => t?.value && (t?.value).includes(s)
1010
+ );
1011
+ if (!t.multiple && t.staticCategories) {
1012
+ const s = t.items.find(
1013
+ (J) => J.items.some((G) => G.value === E.value)
1014
+ );
1015
+ return s ? s.items.find((J) => J.value === E.value) : null;
1016
+ }
1017
+ return t.items.find(({ value: s }) => s === E.value);
1018
+ }), Xe = r(() => {
1019
+ const s = he.value.findIndex(({ value: P }) => t.enableValueLabelPair ? E.value.value === P : E.value === P);
1020
+ 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(() => {
1022
+ 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
+ }
1026
+ return null;
1027
+ }), at = r(
1028
+ () => [
1029
+ t.description ? y : null,
1030
+ w.value,
1031
+ t.errorMessage ? D : null
1032
+ ].filter(Boolean).join(" ") || null
1033
+ ), lt = r(() => p.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
1034
+ lt,
1035
+ he,
1036
+ et
1037
+ ), nt = () => {
1038
+ L.value || (b.value = !0, N(() => {
1039
+ Ae();
1040
+ }));
1041
+ }, Se = () => {
1042
+ b.value = !1;
1043
+ }, we = () => {
1044
+ L.value || (b.value = !b.value, N(() => {
1045
+ Ae();
1046
+ }), ge.value && (Y.value = ""));
1047
+ }, st = () => {
1048
+ ge.value && (Y.value = ""), b.value && (b.value = !1, p.value.onOutsideDropdownClick());
1049
+ }, it = async (s) => {
1050
+ t.multiple || (Y.value = "", b.value = !1), F(s), g(T.value), t.multiple || (await N(), Ne());
1051
+ }, rt = () => {
1052
+ a(h.SHOW_MORE);
1053
+ }, dt = sa(
1054
+ {
1055
+ inputContainerRef: u,
1056
+ optionsContainerRef: p,
1057
+ selectedValueIndex: Xe,
1058
+ isDropdownOpen: b,
1059
+ isDynamicFltering: K(t, "dynamicFiltering"),
1060
+ items: ot,
1061
+ isMultiple: t.multiple
1062
+ },
1063
+ we,
1064
+ nt,
1065
+ Se
1066
+ ), ut = ia(
1067
+ {
1068
+ inputContainerRef: u,
1069
+ isDropdownOpen: b
1070
+ },
1071
+ Se
1072
+ ), ct = {
1073
+ [h.CLOSE_DROPDOWN]: Se,
1074
+ [h.SELECT]: it,
1075
+ [h.SHOW_MORE]: rt,
1076
+ ...ut
1077
+ };
1078
+ t.error && Ee(
1079
+ 'BentoDropdown "error" property',
1080
+ `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
1081
+ Having the field as "undefined" will hide/remove the error.
1082
+ <bento-dropdown errorMessage="Error message text" />`,
1083
+ "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(
1085
+ 'BentoDropdown "value" property',
1086
+ `The use of "value" prop in "BentoDropdown" is no longer supported.
1087
+ Use the "v-model" or "model-value" property instead.`,
1088
+ "2.0.0"
1089
+ );
1090
+ const Ne = () => {
1091
+ u.value.focus();
1092
+ };
1093
+ return ye(
1094
+ () => b.value,
1095
+ (s) => {
1096
+ s && a("open");
1097
+ }
1098
+ ), c({
1099
+ focus: Ne
1100
+ }), (s, P) => oe((f(), C("div", {
1101
+ class: le(["b-dropdown", He.value])
1102
+ }, [
1103
+ o(x) ? (f(), U(o(It), {
1104
+ key: 0,
1105
+ id: o(m),
1106
+ condensed: s.condensed,
1107
+ label: o(x),
1108
+ "tooltip-text": s.tooltipText,
1109
+ optional: s.optional,
1110
+ required: s.required
1111
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
1112
+ oe((f(), C("div", A({
1113
+ ref_key: "inputContainerRefWrapper",
1114
+ ref: S
1115
+ }, re(o(dt), !0)), [
1116
+ (f(), U(_e(je.value), {
1117
+ ref_key: "inputContainerRef",
1118
+ ref: u,
1119
+ condensed: s.condensed,
1120
+ value: Y.value,
1121
+ "additional-items-selected": tt.value,
1122
+ "aria-controls": o(O),
1123
+ ariaExpanded: b.value,
1124
+ "aria-labelledby": o(x) ? o(m) : null,
1125
+ "aria-describedby": at.value,
1126
+ "aria-label": o(H),
1127
+ "aria-readonly": o(L),
1128
+ "aria-required": s.required,
1129
+ readonly: o(L),
1130
+ disabled: s.disabled,
1131
+ "display-value": o(Je),
1132
+ "dynamic-filtering": s.dynamicFiltering,
1133
+ "is-invalid": !!s.errorMessage || s.error,
1134
+ multiple: s.multiple,
1135
+ open: b.value,
1136
+ "selected-value-item": o(Oe) ? void 0 : Ge.value,
1137
+ "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)
1146
+ ])
1147
+ }))
1148
+ ]), 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
+ ], 16)), [
1150
+ [o(xt)]
1151
+ ]),
1152
+ u.value ? (f(), U(o(Tt), A({
1153
+ key: 1,
1154
+ id: o(O),
1155
+ ref_key: "optionsContainerRef",
1156
+ ref: p,
1157
+ "aria-label": o(H),
1158
+ "component-loading": s.componentLoading,
1159
+ "empty-state": s.emptyState,
1160
+ disabled: s.disabled,
1161
+ "is-option-disabled": s.isOptionDisabled,
1162
+ items: o(he),
1163
+ multiple: s.multiple,
1164
+ "static-categories": De.value,
1165
+ open: b.value,
1166
+ "selected-value": o(M),
1167
+ searching: ge.value,
1168
+ "target-element": S.value,
1169
+ loading: s.loading,
1170
+ "has-more-items": s.hasMoreItems,
1171
+ "lazy-load-type": s.lazyLoadType,
1172
+ "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)
1178
+ ])
1179
+ }))
1180
+ ]), 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), {
1182
+ key: 2,
1183
+ id: o(D),
1184
+ "error-message": s.errorMessage,
1185
+ class: "b-dropdown__error-message"
1186
+ }, null, 8, ["id", "error-message"])) : $("", !0),
1187
+ s.description || o(n)("description") ? (f(), U(o(Ke), {
1188
+ key: 3,
1189
+ id: o(y),
1190
+ class: le(["b-dropdown__description", Ye.value]),
1191
+ el: "span"
1192
+ }, {
1193
+ default: q(() => [
1194
+ V(s.$slots, "description", {}, () => [
1195
+ ce(X(s.description), 1)
1196
+ ], !0)
1197
+ ]),
1198
+ _: 3
1199
+ }, 8, ["id", "class"])) : $("", !0)
1200
+ ], 2)), [
1201
+ [o(Et), st]
1202
+ ]);
1203
+ }
1204
+ }), Ra = /* @__PURE__ */ Z(ca, [["__scopeId", "data-v-06d3531c"]]);
1205
+ export {
1206
+ Ra as B,
1207
+ Wt as D,
1208
+ Ma as I,
1209
+ te as a,
1210
+ da as b,
1211
+ $a as c,
1212
+ ra as u
1213
+ };
1214
+ //# sourceMappingURL=dropdown.DHoL50gV.js.map