@adyen/bento-vue2 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 (255) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +198 -80
  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 +3 -3
  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.D0WVCLec.js +145 -0
  27. package/dist/chunks/{accordion-item.BZDSJamR.js.map → accordion-item.D0WVCLec.js.map} +1 -1
  28. package/dist/chunks/action-bar.B63qIiiH.js +334 -0
  29. package/dist/chunks/{action-bar.CYGUYI0V.js.map → action-bar.B63qIiiH.js.map} +1 -1
  30. package/dist/chunks/{ai-button.CR_ePQRR.js → ai-button.7L9bANlk.js} +2 -2
  31. package/dist/chunks/{ai-button.CR_ePQRR.js.map → ai-button.7L9bANlk.js.map} +1 -1
  32. package/dist/chunks/ai-tag.CCJCOdXu.js +110 -0
  33. package/dist/chunks/{ai-tag.Cjf38mjR.js.map → ai-tag.CCJCOdXu.js.map} +1 -1
  34. package/dist/chunks/alert.CXRb-Smf.js +160 -0
  35. package/dist/chunks/{alert.QVQ6Zjbm.js.map → alert.CXRb-Smf.js.map} +1 -1
  36. package/dist/chunks/{anchor-scroller.CjJ26PJS.js → anchor-scroller.DWaykZQj.js} +66 -39
  37. package/dist/chunks/{anchor-scroller.CjJ26PJS.js.map → anchor-scroller.DWaykZQj.js.map} +1 -1
  38. package/dist/chunks/{base-modal.DmWkavtf.js → base-modal.DpmeDmq-.js} +103 -66
  39. package/dist/chunks/{base-modal.DmWkavtf.js.map → base-modal.DpmeDmq-.js.map} +1 -1
  40. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js → button-actions-with-menu.ChTUOsZl.js} +2 -2
  41. package/dist/chunks/{button-actions-with-menu.Bi_HXopk.js.map → button-actions-with-menu.ChTUOsZl.js.map} +1 -1
  42. package/dist/chunks/{button-actions.BLk114As.js → button-actions.BmU1DngD.js} +221 -147
  43. package/dist/chunks/{button-actions.BLk114As.js.map → button-actions.BmU1DngD.js.map} +1 -1
  44. package/dist/chunks/{button.DxhJNOtr.js → button.C9b2AC9w.js} +2 -2
  45. package/dist/chunks/{button.DxhJNOtr.js.map → button.C9b2AC9w.js.map} +1 -1
  46. package/dist/chunks/{calendar.CXKhBF2f.js → calendar.uvIGF_jU.js} +283 -209
  47. package/dist/chunks/{calendar.CXKhBF2f.js.map → calendar.uvIGF_jU.js.map} +1 -1
  48. package/dist/chunks/card.WWUfBkqf.js +165 -0
  49. package/dist/chunks/{card.GjhsXOT0.js.map → card.WWUfBkqf.js.map} +1 -1
  50. package/dist/chunks/{checkbox-group.B2BjU3ZN.js → checkbox-group.CI0xDnql.js} +4 -4
  51. package/dist/chunks/{checkbox-group.B2BjU3ZN.js.map → checkbox-group.CI0xDnql.js.map} +1 -1
  52. package/dist/chunks/{checkbox.CIv8WgGp.js → checkbox.TsWA6O3Z.js} +93 -56
  53. package/dist/chunks/{checkbox.CIv8WgGp.js.map → checkbox.TsWA6O3Z.js.map} +1 -1
  54. package/dist/chunks/chip.BFY_-VCz.js +84 -0
  55. package/dist/chunks/{chip.DTpENaGC.js.map → chip.BFY_-VCz.js.map} +1 -1
  56. package/dist/chunks/{code-snippet.YIm2oO_o.js → code-snippet.4DX9iUV8.js} +133 -76
  57. package/dist/chunks/{code-snippet.YIm2oO_o.js.map → code-snippet.4DX9iUV8.js.map} +1 -1
  58. package/dist/chunks/{controls-group.CqotnNEF.js → controls-group.D_KE99mg.js} +2 -2
  59. package/dist/chunks/{controls-group.CqotnNEF.js.map → controls-group.D_KE99mg.js.map} +1 -1
  60. package/dist/chunks/copy.qqGYFbKJ.js +133 -0
  61. package/dist/chunks/{copy.BVGQcf22.js.map → copy.qqGYFbKJ.js.map} +1 -1
  62. package/dist/chunks/{country.D20NCLLG.js → country.BEwW8TQo.js} +3 -3
  63. package/dist/chunks/{country.D20NCLLG.js.map → country.BEwW8TQo.js.map} +1 -1
  64. package/dist/chunks/country.types.jjXwaoMl.js +2537 -0
  65. package/dist/chunks/country.types.jjXwaoMl.js.map +1 -0
  66. package/dist/chunks/{dashboard-section.BubZyu8i.js → dashboard-section.TWlLdQHG.js} +3 -3
  67. package/dist/chunks/{dashboard-section.BubZyu8i.js.map → dashboard-section.TWlLdQHG.js.map} +1 -1
  68. package/dist/chunks/{dashed-underline.pjYTS0m1.js → dashed-underline.CpDuQ3Fo.js} +3 -3
  69. package/dist/chunks/{dashed-underline.pjYTS0m1.js.map → dashed-underline.CpDuQ3Fo.js.map} +1 -1
  70. package/dist/chunks/{data-grid-template.D8RhngPj.js → data-grid-template.DZaE-kOS.js} +4 -4
  71. package/dist/chunks/{data-grid-template.D8RhngPj.js.map → data-grid-template.DZaE-kOS.js.map} +1 -1
  72. package/dist/chunks/data-grid.x6cEW0az.js +4069 -0
  73. package/dist/chunks/data-grid.x6cEW0az.js.map +1 -0
  74. package/dist/chunks/date-picker.Dln8ocL4.js +222 -0
  75. package/dist/chunks/{date-picker.CnazYcSX.js.map → date-picker.Dln8ocL4.js.map} +1 -1
  76. package/dist/chunks/date-range-picker.DPGy2h-9.js +1068 -0
  77. package/dist/chunks/date-range-picker.DPGy2h-9.js.map +1 -0
  78. package/dist/chunks/dialog-page.EdejG53a.js +143 -0
  79. package/dist/chunks/{dialog-page.oyG153fC.js.map → dialog-page.EdejG53a.js.map} +1 -1
  80. package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js → dropdown-default-textbox.CjhLIxVq.js} +63 -36
  81. package/dist/chunks/{dropdown-default-textbox.Dvzg0StF.js.map → dropdown-default-textbox.CjhLIxVq.js.map} +1 -1
  82. package/dist/chunks/{dropdown-tag.BRB-emd1.js → dropdown-tag.t3FlJUSy.js} +5 -5
  83. package/dist/chunks/{dropdown-tag.BRB-emd1.js.map → dropdown-tag.t3FlJUSy.js.map} +1 -1
  84. package/dist/chunks/{dropdown.Ct7uhPr6.js → dropdown.CvNI2V33.js} +329 -235
  85. package/dist/chunks/{dropdown.Ct7uhPr6.js.map → dropdown.CvNI2V33.js.map} +1 -1
  86. package/dist/chunks/{empty-state.D_Ac-XXH.js → empty-state.DMV23IZy.js} +2 -2
  87. package/dist/chunks/{empty-state.D_Ac-XXH.js.map → empty-state.DMV23IZy.js.map} +1 -1
  88. package/dist/chunks/error-message.BUNKRa_w.js +160 -0
  89. package/dist/chunks/{error-message.RxdStT3S.js.map → error-message.BUNKRa_w.js.map} +1 -1
  90. package/dist/chunks/{file-uploader.D5Rjsx4k.js → file-uploader.Cig5gDXT.js} +749 -468
  91. package/dist/chunks/{file-uploader.D5Rjsx4k.js.map → file-uploader.Cig5gDXT.js.map} +1 -1
  92. package/dist/chunks/{filter-bar.zD_ctViU.js → filter-bar.x445KK3y.js} +1301 -761
  93. package/dist/chunks/{filter-bar.zD_ctViU.js.map → filter-bar.x445KK3y.js.map} +1 -1
  94. package/dist/chunks/fixed-scroller.DR2E_No4.js +148 -0
  95. package/dist/chunks/{fixed-scroller.MerESbd_.js.map → fixed-scroller.DR2E_No4.js.map} +1 -1
  96. package/dist/chunks/{footer-actions.CiPj7hZG.js → footer-actions.CIkul1OD.js} +3 -3
  97. package/dist/chunks/{footer-actions.CiPj7hZG.js.map → footer-actions.CIkul1OD.js.map} +1 -1
  98. package/dist/chunks/{form-layout-title.Bw7VgOO5.js → form-layout-title.DR5M7GP3.js} +77 -48
  99. package/dist/chunks/{form-layout-title.Bw7VgOO5.js.map → form-layout-title.DR5M7GP3.js.map} +1 -1
  100. package/dist/chunks/{header-meta.Dq6TlNPw.js → header-meta.BC5fdpD1.js} +127 -73
  101. package/dist/chunks/{header-meta.Dq6TlNPw.js.map → header-meta.BC5fdpD1.js.map} +1 -1
  102. package/dist/chunks/{header-with-views.DaEhkSS8.js → header-with-views.-cvdi9-L.js} +1120 -679
  103. package/dist/chunks/{header-with-views.DaEhkSS8.js.map → header-with-views.-cvdi9-L.js.map} +1 -1
  104. package/dist/chunks/{header.DkC-KKWa.js → header.DtmZjxiU.js} +3 -3
  105. package/dist/chunks/{header.DkC-KKWa.js.map → header.DtmZjxiU.js.map} +1 -1
  106. package/dist/chunks/{info-icon.BF8KxU-k.js → info-icon.DCR42Kvm.js} +2 -2
  107. package/dist/chunks/{info-icon.BF8KxU-k.js.map → info-icon.DCR42Kvm.js.map} +1 -1
  108. package/dist/chunks/input-field-password.Bdlw4dzr.js +381 -0
  109. package/dist/chunks/{input-field-password.BKT1mYUw.js.map → input-field-password.Bdlw4dzr.js.map} +1 -1
  110. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js → input-field-phone-number.DPuWxBBz.js} +98 -71
  111. package/dist/chunks/{input-field-phone-number.BjRKjQOQ.js.map → input-field-phone-number.DPuWxBBz.js.map} +1 -1
  112. package/dist/chunks/input-field.DH25CU_G.js +207 -0
  113. package/dist/chunks/{input-field.m1PMwa4C.js.map → input-field.DH25CU_G.js.map} +1 -1
  114. package/dist/chunks/input-time.6eJ4-QdU.js +92 -0
  115. package/dist/chunks/input-time.6eJ4-QdU.js.map +1 -0
  116. package/dist/chunks/inspector.BzBPlz-5.js +172 -0
  117. package/dist/chunks/{inspector.Bnm0hl_D.js.map → inspector.BzBPlz-5.js.map} +1 -1
  118. package/dist/chunks/{link.MhoM3zQj.js → link.DB5g6d48.js} +56 -29
  119. package/dist/chunks/{link.MhoM3zQj.js.map → link.DB5g6d48.js.map} +1 -1
  120. package/dist/chunks/{list-item.BnzU1LIu.js → list-item.DqTHh8-Z.js} +2 -2
  121. package/dist/chunks/{list-item.BnzU1LIu.js.map → list-item.DqTHh8-Z.js.map} +1 -1
  122. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js → listbox-option-tag.CvbE-EuG.js} +2 -2
  123. package/dist/chunks/{listbox-option-tag.BhPVuAjJ.js.map → listbox-option-tag.CvbE-EuG.js.map} +1 -1
  124. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js → modal-fullscreen.CaxuXW-H.js} +63 -36
  125. package/dist/chunks/{modal-fullscreen.CXOq6_Cv.js.map → modal-fullscreen.CaxuXW-H.js.map} +1 -1
  126. package/dist/chunks/{modal.o0KddMiG.js → modal.Brif0vAy.js} +63 -36
  127. package/dist/chunks/{modal.o0KddMiG.js.map → modal.Brif0vAy.js.map} +1 -1
  128. package/dist/chunks/{pagination.ZISqB4M_.js → pagination.BmrU_sn_.js} +221 -99
  129. package/dist/chunks/{pagination.ZISqB4M_.js.map → pagination.BmrU_sn_.js.map} +1 -1
  130. package/dist/chunks/promo-banner.Dc_kK1x9.js +91 -0
  131. package/dist/chunks/{promo-banner.Db2kh2qK.js.map → promo-banner.Dc_kK1x9.js.map} +1 -1
  132. package/dist/chunks/{radio-group.DnMy7brs.js → radio-group.5oS-AeYN.js} +4 -4
  133. package/dist/chunks/{radio-group.DnMy7brs.js.map → radio-group.5oS-AeYN.js.map} +1 -1
  134. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js → rich-text-editor.DSGTe8Zt.js} +1781 -1731
  135. package/dist/chunks/{rich-text-editor.Cbv1DxXn.js.map → rich-text-editor.DSGTe8Zt.js.map} +1 -1
  136. package/dist/chunks/search-bar.CNfoeLLt.js +126 -0
  137. package/dist/chunks/{search-bar.DPjYDhja.js.map → search-bar.CNfoeLLt.js.map} +1 -1
  138. package/dist/chunks/secondary-nav.IF5CgeIP.js +226 -0
  139. package/dist/chunks/secondary-nav.IF5CgeIP.js.map +1 -0
  140. package/dist/chunks/{segmented-control.BqIiX9hv.js → segmented-control.DDtjX-V5.js} +2 -2
  141. package/dist/chunks/{segmented-control.BqIiX9hv.js.map → segmented-control.DDtjX-V5.js.map} +1 -1
  142. package/dist/chunks/{selection-card-group.IPiouuot.js → selection-card-group.DZjFeQKR.js} +10 -10
  143. package/dist/chunks/{selection-card-group.IPiouuot.js.map → selection-card-group.DZjFeQKR.js.map} +1 -1
  144. package/dist/chunks/{sidepanel.BGMjjB3F.js → sidepanel.DZDXuyzg.js} +66 -39
  145. package/dist/chunks/{sidepanel.BGMjjB3F.js.map → sidepanel.DZDXuyzg.js.map} +1 -1
  146. package/dist/chunks/{step.QFER3tSj.js → step.TDm_ts1S.js} +92 -63
  147. package/dist/chunks/{step.QFER3tSj.js.map → step.TDm_ts1S.js.map} +1 -1
  148. package/dist/chunks/{structured-list-item.BDJKRC_8.js → structured-list-item.BBBtie1s.js} +58 -31
  149. package/dist/chunks/{structured-list-item.BDJKRC_8.js.map → structured-list-item.BBBtie1s.js.map} +1 -1
  150. package/dist/chunks/{summary-grid.types.CIkArZf5.js → summary-grid.types.CrPNQbX0.js} +5 -5
  151. package/dist/chunks/{summary-grid.types.CIkArZf5.js.map → summary-grid.types.CrPNQbX0.js.map} +1 -1
  152. package/dist/chunks/{tab.CaXF0dho.js → tab.CNIZyfZt.js} +2 -2
  153. package/dist/chunks/{tab.CaXF0dho.js.map → tab.CNIZyfZt.js.map} +1 -1
  154. package/dist/chunks/{tag.CocLKztJ.js → tag.D2xagTJv.js} +2 -2
  155. package/dist/chunks/{tag.CocLKztJ.js.map → tag.D2xagTJv.js.map} +1 -1
  156. package/dist/chunks/textarea.Bi53QF5Q.js +218 -0
  157. package/dist/chunks/{textarea.D4X6Ss9q.js.map → textarea.Bi53QF5Q.js.map} +1 -1
  158. package/dist/chunks/timeline-item.C6Bi0eam.js +322 -0
  159. package/dist/chunks/{timeline-item.C8BxWdy1.js.map → timeline-item.C6Bi0eam.js.map} +1 -1
  160. package/dist/chunks/{toast.BRI3G7TL.js → toast.d8vg71CB.js} +81 -54
  161. package/dist/chunks/{toast.BRI3G7TL.js.map → toast.d8vg71CB.js.map} +1 -1
  162. package/dist/chunks/{tooltip.CbsNGnhw.js → tooltip.BxtnF3is.js} +38 -36
  163. package/dist/chunks/tooltip.BxtnF3is.js.map +1 -0
  164. package/dist/chunks/{tutorial.BzV6bHQJ.js → tutorial.BCiZMLJE.js} +190 -103
  165. package/dist/chunks/{tutorial.BzV6bHQJ.js.map → tutorial.BCiZMLJE.js.map} +1 -1
  166. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js → use-cached-selected-values.Bn3Y8Iuq.js} +490 -359
  167. package/dist/chunks/{use-cached-selected-values.DqX2qsMC.js.map → use-cached-selected-values.Bn3Y8Iuq.js.map} +1 -1
  168. package/dist/chunks/{use-country-items.CI8C7MLU.js → use-country-items.B4j8pAvW.js} +3 -3
  169. package/dist/chunks/{use-country-items.CI8C7MLU.js.map → use-country-items.B4j8pAvW.js.map} +1 -1
  170. package/dist/chunks/use-country-phon-code.ByqnuIni.js +6386 -0
  171. package/dist/chunks/use-country-phon-code.ByqnuIni.js.map +1 -0
  172. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js → use-date-input-formatter.DRMt9yR2.js} +2 -2
  173. package/dist/chunks/{use-date-input-formatter.BYaTO3vz.js.map → use-date-input-formatter.DRMt9yR2.js.map} +1 -1
  174. package/dist/code-snippet.js +1 -1
  175. package/dist/country.js +3 -3
  176. package/dist/dashboard-template.js +1 -1
  177. package/dist/dashed-underline.js +1 -1
  178. package/dist/data-grid-template.js +1 -1
  179. package/dist/data-grid.js +1 -1
  180. package/dist/date-picker.js +2 -2
  181. package/dist/date-range-picker.js +2 -2
  182. package/dist/draggable-handle.js +160 -73
  183. package/dist/draggable-handle.js.map +1 -1
  184. package/dist/dropdown.js +4 -4
  185. package/dist/empty-state.js +1 -1
  186. package/dist/file-uploader.js +1 -1
  187. package/dist/filter-bar.js +1 -1
  188. package/dist/form-layout.js +1 -1
  189. package/dist/header-with-views.js +1 -1
  190. package/dist/header.js +1 -1
  191. package/dist/index.js +215 -213
  192. package/dist/index.js.map +1 -1
  193. package/dist/info-icon.js +1 -1
  194. package/dist/input-field-password.js +1 -1
  195. package/dist/input-field-phone-number.js +1 -1
  196. package/dist/input-field.js +1 -1
  197. package/dist/input-time.js +5 -0
  198. package/dist/input-time.js.map +1 -0
  199. package/dist/inspector.js +1 -1
  200. package/dist/internal.js +12 -12
  201. package/dist/link.js +1 -1
  202. package/dist/list.js +1 -1
  203. package/dist/menu.js +1 -1
  204. package/dist/modal-fullscreen.js +1 -1
  205. package/dist/modal.js +2 -2
  206. package/dist/pagination.js +1 -1
  207. package/dist/popover.js +1 -1
  208. package/dist/promo-banner.js +1 -1
  209. package/dist/radio-group.js +1 -1
  210. package/dist/rich-text-editor.js +1 -1
  211. package/dist/search-bar.js +2 -2
  212. package/dist/secondary-nav.js +1 -1
  213. package/dist/segmented-control.js +1 -1
  214. package/dist/selection-card.js +1 -1
  215. package/dist/sidepanel.js +1 -1
  216. package/dist/stepper.js +1 -1
  217. package/dist/structured-list.js +1 -1
  218. package/dist/summary-grid.js +1 -1
  219. package/dist/tabs.js +1 -1
  220. package/dist/tag.js +1 -1
  221. package/dist/textarea.js +1 -1
  222. package/dist/timeline.js +1 -1
  223. package/dist/toast.js +1 -1
  224. package/dist/tutorial.js +1 -1
  225. package/dist/web-types.json +198 -1
  226. package/package.json +9 -9
  227. package/dist/chunks/accordion-item.BZDSJamR.js +0 -108
  228. package/dist/chunks/action-bar.CYGUYI0V.js +0 -207
  229. package/dist/chunks/ai-tag.Cjf38mjR.js +0 -73
  230. package/dist/chunks/alert.QVQ6Zjbm.js +0 -93
  231. package/dist/chunks/card.GjhsXOT0.js +0 -128
  232. package/dist/chunks/chip.DTpENaGC.js +0 -57
  233. package/dist/chunks/copy.BVGQcf22.js +0 -86
  234. package/dist/chunks/country.types.DxKjyd0S.js +0 -20
  235. package/dist/chunks/country.types.DxKjyd0S.js.map +0 -1
  236. package/dist/chunks/data-grid.DJG8Ty0A.js +0 -3194
  237. package/dist/chunks/data-grid.DJG8Ty0A.js.map +0 -1
  238. package/dist/chunks/date-picker.CnazYcSX.js +0 -155
  239. package/dist/chunks/date-range-picker.Bf9pRNL7.js +0 -811
  240. package/dist/chunks/date-range-picker.Bf9pRNL7.js.map +0 -1
  241. package/dist/chunks/dialog-page.oyG153fC.js +0 -116
  242. package/dist/chunks/error-message.RxdStT3S.js +0 -106
  243. package/dist/chunks/fixed-scroller.MerESbd_.js +0 -111
  244. package/dist/chunks/input-field-password.BKT1mYUw.js +0 -234
  245. package/dist/chunks/input-field.m1PMwa4C.js +0 -170
  246. package/dist/chunks/inspector.Bnm0hl_D.js +0 -105
  247. package/dist/chunks/promo-banner.Db2kh2qK.js +0 -64
  248. package/dist/chunks/search-bar.DPjYDhja.js +0 -89
  249. package/dist/chunks/secondary-nav.CwJjkJkj.js +0 -112
  250. package/dist/chunks/secondary-nav.CwJjkJkj.js.map +0 -1
  251. package/dist/chunks/textarea.D4X6Ss9q.js +0 -169
  252. package/dist/chunks/timeline-item.C8BxWdy1.js +0 -238
  253. package/dist/chunks/tooltip.CbsNGnhw.js.map +0 -1
  254. package/dist/chunks/use-country-phon-code.C6orQNnM.js +0 -291
  255. package/dist/chunks/use-country-phon-code.C6orQNnM.js.map +0 -1
@@ -1,41 +1,88 @@
1
- import { ref as h, watch as ee, computed as d, defineComponent as N, useSlots as we, toRefs as Ce, nextTick as L, useAttrs as Me, toRef as x, inject as Pe } from "vue";
2
- import { d as Z, B as ke } from "./typography.C8lPlsbD.js";
3
- import { a as Q, b as P, c as $e, B as V, D as Fe } from "./dropdown-default-textbox.Dvzg0StF.js";
1
+ import { ref as g, watch as ee, computed as c, defineComponent as A, useSlots as Se, toRefs as we, nextTick as C, useAttrs as Re, toRef as L, inject as ke } from "vue";
2
+ import { d as X, B as Fe } from "./typography.C8lPlsbD.js";
3
+ import { a as Z, b as k, c as Pe, B as V, D as $e } from "./dropdown-default-textbox.CjhLIxVq.js";
4
4
  /* empty css */
5
- import { n as $ } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
- import { s as X } from "./events.BQOQSSb7.js";
7
- import { g as k } from "./generate-uid.NJ8tVoha.js";
5
+ import { n as P } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
6
+ import { s as Q } from "./events.BQOQSSb7.js";
7
+ import { g as F } from "./generate-uid.NJ8tVoha.js";
8
8
  import { u as Ke } from "./aria-label.CaUURpnB.js";
9
9
  import { u as te } from "./index.B6WW_F-J.js";
10
10
  import { u as ze } from "./form-field.D_2g7vaP.js";
11
- import { B as c, b as G, a as ye, u as Ve, c as We, d as Ue } from "./use-cached-selected-values.DqX2qsMC.js";
12
- import { u as je } from "./use-form-layout-loading.CWbjZiwP.js";
13
- import { d as qe } from "./debounce.DUTu11PS.js";
11
+ import { B as u, b as G, a as ye, u as Ve, c as qe, d as We } from "./use-cached-selected-values.Bn3Y8Iuq.js";
12
+ import { u as Ue } from "./use-form-layout-loading.CWbjZiwP.js";
13
+ import { d as je } from "./debounce.DUTu11PS.js";
14
14
  import { u as He } from "./use-has-slot.C9lQZ6nz.js";
15
15
  import { B as E, a as Je } from "./keyboard-navigation.DWmhelVv.js";
16
16
  import { B as Ye } from "./directive.rXUeDb8p.js";
17
- import { F as Ze, E as Qe } from "./error-message.RxdStT3S.js";
17
+ import { F as Xe, E as Ze } from "./error-message.BUNKRa_w.js";
18
18
  import { P as _e } from "./popper-container.C_n9Ds1W.js";
19
- import { h as Xe } from "./button-actions.BLk114As.js";
19
+ import { h as Qe } from "./button-actions.BmU1DngD.js";
20
20
  import "../assets/dropdown.css";
21
21
  const Ge = {
22
- "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 = (n, t, o, e) => {
26
- const a = h(n.value), { t: l } = te();
22
+ "de-DE": {
23
+ apply: "Anwenden",
24
+ cancel: "Abbrechen",
25
+ noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden."
26
+ },
27
+ "en-GB": {
28
+ apply: "Apply",
29
+ cancel: "Cancel",
30
+ noOptionsMatchThisSearch: "No options match this search"
31
+ },
32
+ "en-US": {
33
+ apply: "Apply",
34
+ cancel: "Cancel",
35
+ noOptionsMatchThisSearch: "No options match this search"
36
+ },
37
+ "es-ES": {
38
+ apply: "Aplicar",
39
+ cancel: "Cancelar",
40
+ noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
41
+ },
42
+ "es-MX": {
43
+ apply: "Aplicar",
44
+ cancel: "Cancelar",
45
+ noOptionsMatchThisSearch: "No hay opciones que coincidan con esta búsqueda"
46
+ },
47
+ "fr-FR": {
48
+ apply: "Appliquer",
49
+ cancel: "Annuler",
50
+ noOptionsMatchThisSearch: "Aucune option ne correspond à cette recherche"
51
+ },
52
+ "it-IT": {
53
+ apply: "Applica",
54
+ cancel: "Annulla",
55
+ noOptionsMatchThisSearch: "Nessun risultato corrispondente a questa ricerca"
56
+ },
57
+ "ja-JP": {
58
+ apply: "適用",
59
+ cancel: "キャンセル",
60
+ noOptionsMatchThisSearch: "この検索に一致するオプションはありません"
61
+ },
62
+ "pt-BR": {
63
+ apply: "Aplicar",
64
+ cancel: "Cancelar",
65
+ noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca"
66
+ },
67
+ "zh-CN": {
68
+ apply: "应用",
69
+ cancel: "取消",
70
+ noOptionsMatchThisSearch: "没有符合此搜索条件的选项"
71
+ }
72
+ }, et = (n, t, a, e) => {
73
+ const o = g(n.value), { t: l } = te();
27
74
  ee(n, () => {
28
- a.value = n.value;
75
+ o.value = n.value;
29
76
  });
30
- const i = d(
31
- () => JSON.stringify(a.value) === JSON.stringify(n.value)
77
+ const i = c(
78
+ () => JSON.stringify(o.value) === JSON.stringify(n.value)
32
79
  ), r = () => {
33
- e(c.SELECT, a.value), e(c.CLOSE_DROPDOWN);
80
+ e(u.SELECT, o.value), e(u.CLOSE_DROPDOWN);
34
81
  }, b = () => {
35
- a.value = n.value, e(c.CLOSE_DROPDOWN);
82
+ o.value = n.value, e(u.CLOSE_DROPDOWN);
36
83
  }, y = () => {
37
- o.value && t.value && (a.value = n.value);
38
- }, p = d(() => [
84
+ a.value && t.value && (o.value = n.value);
85
+ }, p = c(() => [
39
86
  {
40
87
  title: l("apply"),
41
88
  event: r,
@@ -45,38 +92,38 @@ const Ge = {
45
92
  title: l("cancel"),
46
93
  event: b
47
94
  }
48
- ]), f = (u) => {
49
- a.value = u, t.value || e(c.SELECT, u);
50
- }, s = (u) => {
51
- f(u), e(c.TAB);
52
- }, g = (u) => {
53
- f(u), e(c.ENTER);
54
- }, m = (u) => {
55
- f(u), e(c.SPACE);
56
- }, S = () => {
57
- b(), e(c.ESCAPE);
95
+ ]), f = (d) => {
96
+ o.value = d, t.value || e(u.SELECT, d);
97
+ }, s = (d) => {
98
+ f(d), e(u.TAB);
99
+ }, h = (d) => {
100
+ f(d), e(u.ENTER);
101
+ }, m = (d) => {
102
+ f(d), e(u.SPACE);
58
103
  }, O = () => {
59
- e(c.SHOW_MORE);
60
- }, C = {
61
- [c.SELECT]: f,
62
- [c.SHOW_MORE]: O,
63
- [c.TAB]: s,
64
- [c.SPACE]: m,
65
- [c.ENTER]: g
104
+ b(), e(u.ESCAPE);
105
+ }, x = () => {
106
+ e(u.SHOW_MORE);
107
+ }, w = {
108
+ [u.SELECT]: f,
109
+ [u.SHOW_MORE]: x,
110
+ [u.TAB]: s,
111
+ [u.SPACE]: m,
112
+ [u.ENTER]: h
66
113
  };
67
114
  return {
68
115
  // Values
69
116
  actions: p,
70
- internalSelectedValue: a,
117
+ internalSelectedValue: o,
71
118
  // Methods
72
- listeners: C,
73
- onEscapeKey: S,
119
+ listeners: w,
120
+ onEscapeKey: O,
74
121
  onOutsideDropdownClick: y
75
122
  };
76
- }, tt = N({
123
+ }, tt = A({
77
124
  i18n: { messages: Ge },
78
125
  name: "bento-dropdown-options-container"
79
- }), ot = /* @__PURE__ */ N({
126
+ }), at = /* @__PURE__ */ A({
80
127
  ...tt,
81
128
  props: {
82
129
  /**
@@ -187,12 +234,12 @@ const Ge = {
187
234
  }
188
235
  },
189
236
  emits: [],
190
- setup(n, { expose: t, emit: o }) {
191
- const e = n, a = we(), { selectedValue: l, multiple: i } = Ce(e), r = h(null), { t: b } = te(), y = d(() => e.open && !e.disabled), p = d(() => b("noOptionsMatchThisSearch")), f = d(() => ({
237
+ setup(n, { expose: t, emit: a }) {
238
+ const e = n, o = Se(), { selectedValue: l, multiple: i } = we(e), r = g(null), { t: b } = te(), y = c(() => e.open && !e.disabled), p = c(() => b("noOptionsMatchThisSearch")), f = c(() => ({
192
239
  "b-dropdown-options-container--single": !(e != null && e.multiple)
193
- })), s = d(() => ({
240
+ })), s = c(() => ({
194
241
  "b-dropdown-options-container__listbox--single": !(e != null && e.multiple)
195
- })), { actions: g, internalSelectedValue: m, listeners: S, onEscapeKey: O, onOutsideDropdownClick: C } = et(l, i, y, o), u = d(() => e != null && e.multiple ? Xe : _e), I = d(() => {
242
+ })), { actions: h, internalSelectedValue: m, listeners: O, onEscapeKey: x, onOutsideDropdownClick: w } = et(l, i, y, a), d = c(() => e != null && e.multiple ? Qe : _e), T = c(() => {
196
243
  var B;
197
244
  const D = {
198
245
  "min-width": `${(B = e == null ? void 0 : e.targetElement) == null ? void 0 : B.clientWidth}px`,
@@ -201,10 +248,10 @@ const Ge = {
201
248
  return e != null && e.multiple ? {
202
249
  actionsLayout: "space-between",
203
250
  ariaLabel: e.ariaLabel,
204
- actions: g.value,
251
+ actions: h.value,
205
252
  divider: !0,
206
253
  fallbackPosition: ["top-start"],
207
- id: k(`dropdown-options-${e.id}`),
254
+ id: F(`dropdown-options-${e.id}`),
208
255
  open: e.open,
209
256
  position: "bottom-start",
210
257
  style: {
@@ -224,56 +271,56 @@ const Ge = {
224
271
  };
225
272
  });
226
273
  return t({
227
- onOutsideDropdownClick: C
228
- }), { __sfc: !0, slots: a, emit: o, props: e, selectedValue: l, multiple: i, dropdownOptionsListboxRef: r, t: b, isDropdownOpen: y, noResultsMessage: p, conditionalClasses: f, conditionalListboxClasses: s, actions: g, internalSelectedValue: m, listeners: S, onEscapeKey: O, onOutsideDropdownClick: C, popperContainerOrPopoverComponent: u, popperContainerOrPopoverProps: I, BentoListbox: G };
274
+ onOutsideDropdownClick: w
275
+ }), { __sfc: !0, slots: o, emit: a, props: e, selectedValue: l, multiple: i, dropdownOptionsListboxRef: r, t: b, isDropdownOpen: y, noResultsMessage: p, conditionalClasses: f, conditionalListboxClasses: s, actions: h, internalSelectedValue: m, listeners: O, onEscapeKey: x, onOutsideDropdownClick: w, popperContainerOrPopoverComponent: d, popperContainerOrPopoverProps: T, BentoListbox: G };
229
276
  }
230
277
  });
231
- var at = function() {
232
- var t = this, o = t._self._c, e = t._self._setupProxy;
233
- return e.isDropdownOpen ? o(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [o("div", { on: { keydown: function(a) {
234
- return !a.type.indexOf("key") && t._k(a.keyCode, "esc", 27, a.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
235
- } } }, [o(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
278
+ var ot = function() {
279
+ var t = this, a = t._self._c, e = t._self._setupProxy;
280
+ return e.isDropdownOpen ? a(e.popperContainerOrPopoverComponent, t._b({ tag: "component", staticClass: "b-dropdown-options-container", class: e.conditionalClasses }, "component", e.popperContainerOrPopoverProps, !1), [a("div", { on: { keydown: function(o) {
281
+ return !o.type.indexOf("key") && t._k(o.keyCode, "esc", 27, o.key, ["Esc", "Escape"]) ? null : e.onEscapeKey.apply(null, arguments);
282
+ } } }, [a(e.BentoListbox, t._g({ ref: "dropdownOptionsListboxRef", staticClass: "b-dropdown-options-container__listbox", class: e.conditionalListboxClasses, attrs: { id: t.id, "aria-label": t.ariaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, "is-option-disabled": t.isOptionDisabled, items: t.items, "selected-value": e.internalSelectedValue, multiple: e.multiple, "static-categories": t.staticCategories, "no-results-message": e.noResultsMessage, searching: t.searching, loading: t.loading, "lazy-load-type": t.lazyLoadType, "has-more-items": t.hasMoreItems, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(o, l) {
236
283
  return { key: l, fn: function(i) {
237
284
  return [t._t(l, null, null, i)];
238
285
  } };
239
286
  })], null, !0) }, e.listeners))], 1)]) : t._e();
240
- }, nt = [], lt = /* @__PURE__ */ $(
241
- ot,
287
+ }, nt = [], lt = /* @__PURE__ */ P(
242
288
  at,
289
+ ot,
243
290
  nt,
244
291
  !1,
245
292
  null,
246
293
  "eb9fd4be"
247
294
  );
248
295
  const st = lt.exports;
249
- let ge = 0;
296
+ let he = 0;
250
297
  const it = {
251
298
  beforeCreate() {
252
- this.uuid = ge.toString(), ge += 1;
299
+ this.uuid = he.toString(), he += 1;
253
300
  }
254
301
  };
255
302
  var rt = function() {
256
- var t = this, o = t._self._c;
257
- return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
258
- }, dt = [], ut = /* @__PURE__ */ $(
303
+ var t = this, a = t._self._c;
304
+ return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z" } })]);
305
+ }, ct = [], dt = /* @__PURE__ */ P(
259
306
  it,
260
307
  rt,
261
- dt,
308
+ ct,
262
309
  !1,
263
310
  null,
264
311
  null
265
312
  );
266
- const ct = ut.exports;
267
- let he = 0;
313
+ const ut = dt.exports;
314
+ let ge = 0;
268
315
  const pt = {
269
316
  beforeCreate() {
270
- this.uuid = he.toString(), he += 1;
317
+ this.uuid = ge.toString(), ge += 1;
271
318
  }
272
319
  };
273
320
  var ft = function() {
274
- var t = this, o = t._self._c;
275
- return o("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? o("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), o("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
276
- }, vt = [], mt = /* @__PURE__ */ $(
321
+ var t = this, a = t._self._c;
322
+ return a("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? a("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), a("path", { attrs: { fill: "#001222", d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z" } })]);
323
+ }, vt = [], mt = /* @__PURE__ */ P(
277
324
  pt,
278
325
  ft,
279
326
  vt,
@@ -281,10 +328,10 @@ var ft = function() {
281
328
  null,
282
329
  null
283
330
  );
284
- const bt = mt.exports, yt = N({
331
+ const bt = mt.exports, yt = A({
285
332
  name: "dropdown-small-textbox",
286
333
  inheritAttrs: !1
287
- }), _t = /* @__PURE__ */ N({
334
+ }), _t = /* @__PURE__ */ A({
288
335
  ...yt,
289
336
  props: {
290
337
  /**
@@ -341,168 +388,215 @@ const bt = mt.exports, yt = N({
341
388
  value: { type: String, default: "" }
342
389
  },
343
390
  emits: ["clear", "close", "input", "keydown", "open"],
344
- setup(n, { expose: t, emit: o }) {
345
- const e = n, a = h(null), l = d(() => ({
346
- [`b-dropdown-small-textbox--${Q.DISABLED}`]: e.disabled,
347
- [`b-dropdown-small-textbox--${Q.READONLY}`]: e.readonly,
348
- [`b-dropdown-small-textbox--${Q.OPENED}`]: e.open
349
- })), i = d(() => e.open && !e.disabled && !e.readonly), r = (m) => {
350
- o("input", m);
391
+ setup(n, { expose: t, emit: a }) {
392
+ const e = n, o = g(null), l = c(() => ({
393
+ [`b-dropdown-small-textbox--${Z.DISABLED}`]: e.disabled,
394
+ [`b-dropdown-small-textbox--${Z.READONLY}`]: e.readonly,
395
+ [`b-dropdown-small-textbox--${Z.OPENED}`]: e.open
396
+ })), i = c(() => e.open && !e.disabled && !e.readonly), r = (m) => {
397
+ a("input", m);
351
398
  }, b = (m) => {
352
- o("keydown", m);
399
+ a("keydown", m);
353
400
  }, y = (m) => {
354
- X(m), o("open");
401
+ Q(m), a("open");
355
402
  }, p = (m) => {
356
- X(m), o("close");
403
+ Q(m), a("close");
357
404
  }, f = (m) => {
358
- X(m), o("clear");
405
+ Q(m), a("clear");
359
406
  }, s = {
360
- [P.INPUT]: r,
361
- [P.OPEN]: y,
362
- [P.CLOSE]: p,
363
- [P.CLEAR]: f,
364
- [P.KEYDOWN]: b
365
- }, g = () => {
366
- a.value.focus();
407
+ [k.INPUT]: r,
408
+ [k.OPEN]: y,
409
+ [k.CLOSE]: p,
410
+ [k.CLEAR]: f,
411
+ [k.KEYDOWN]: b
412
+ }, h = () => {
413
+ o.value.focus();
367
414
  };
368
415
  return t({
369
- focus: g
370
- }), { __sfc: !0, emit: o, props: e, baseTextbox: a, conditionalClasses: l, isDropdownOpen: i, onInput: r, onKeyDown: b, openDropdown: y, closeDropdown: p, clearValue: f, listeners: s, focus: g, BentoDropdownSize: V, DropdownBaseTextbox: $e, ChevronDownSmallIcon: ct, ChevronUpSmallIcon: bt };
416
+ focus: h
417
+ }), { __sfc: !0, emit: a, props: e, baseTextbox: o, conditionalClasses: l, isDropdownOpen: i, onInput: r, onKeyDown: b, openDropdown: y, closeDropdown: p, clearValue: f, listeners: s, focus: h, BentoDropdownSize: V, DropdownBaseTextbox: Pe, ChevronDownSmallIcon: ut, ChevronUpSmallIcon: bt };
371
418
  }
372
419
  });
373
- var gt = function() {
374
- var t = this, o = t._self._c, e = t._self._setupProxy;
375
- return o("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [o(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
376
- return [o("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [o(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), o(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
420
+ var ht = function() {
421
+ var t = this, a = t._self._c, e = t._self._setupProxy;
422
+ return a("div", { staticClass: "b-dropdown-small-textbox", class: e.conditionalClasses }, [a(e.DropdownBaseTextbox, t._g(t._b({ ref: "baseTextbox", staticClass: "b-dropdown-small-textbox__textbox", attrs: { size: e.BentoDropdownSize.SMALL }, scopedSlots: t._u([{ key: "icon", fn: function() {
423
+ return [a("div", { staticClass: "b-dropdown-small-textbox__chevron" }, [a(e.ChevronUpSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: e.isDropdownOpen, expression: "isDropdownOpen" }], attrs: { "svg-title": "opened" } }), a(e.ChevronDownSmallIcon, { directives: [{ name: "show", rawName: "v-show", value: !e.isDropdownOpen, expression: "!isDropdownOpen" }], attrs: { "svg-title": "closed" } })], 1)];
377
424
  }, proxy: !0 }]) }, "dropdown-base-textbox", { ...t.$attrs, ...t.$props }, !1), e.listeners))], 1);
378
- }, ht = [], wt = /* @__PURE__ */ $(
425
+ }, gt = [], St = /* @__PURE__ */ P(
379
426
  _t,
380
- gt,
381
427
  ht,
428
+ gt,
382
429
  !1,
383
430
  null,
384
431
  "faba160c"
385
432
  );
386
- const Ct = wt.exports, Lt = (n, t) => t.value.reduce((o, e) => {
433
+ const wt = St.exports, Ct = (n, t) => t.value.reduce((a, e) => {
387
434
  if (e.items) {
388
- const a = e.items.filter(
435
+ const o = e.items.filter(
389
436
  (i) => n.value.find((r) => r.value === i.value)
390
437
  );
391
- a.length === e.items.length ? o.push(e.displayValue ?? e.label) : a.forEach(({ label: i, displayValue: r }) => o.push(r ?? i));
438
+ o.length === e.items.length ? a.push(e.displayValue ?? e.label) : o.forEach(({ label: i, displayValue: r }) => a.push(r ?? i));
392
439
  }
393
- return n.value.find((a) => a.value === e.value) && o.push(e.displayValue ?? e.label), o;
394
- }, []).join(", "), xt = ({ items: n, placeholder: t, selectedValues: o, isMultiSelect: e }) => {
395
- const a = d(
440
+ return n.value.find((o) => o.value === e.value) && a.push(e.displayValue ?? e.label), a;
441
+ }, []).join(", "), Lt = ({ items: n, placeholder: t, selectedValues: a, isMultiSelect: e }) => {
442
+ const o = c(
396
443
  () => e.value && n.value.find((i) => {
397
444
  var r;
398
445
  return (r = i.items) == null ? void 0 : r.length;
399
446
  })
400
447
  );
401
- return d(() => o.value.length ? a.value ? Lt(o, n) : o.value.map(({ label: i, displayValue: r }) => r ?? i).join(", ") : t.value || null);
402
- }, Le = (n) => {
448
+ return c(() => a.value.length ? o.value ? Ct(a, n) : a.value.map(({ label: i, displayValue: r }) => r ?? i).join(", ") : t.value || null);
449
+ }, Ce = (n) => {
403
450
  var t;
404
451
  (t = n.value.$children) == null || t[0].$refs.textbox.focus();
405
- }, St = ({
452
+ }, Ot = ({
406
453
  inputContainerRef: n,
407
454
  optionsContainerRef: t,
408
- selectedValueIndex: o,
455
+ selectedValueIndex: a,
409
456
  isDropdownOpen: e,
410
- isDynamicFltering: a,
457
+ isDynamicFltering: o,
411
458
  items: l,
412
459
  isMultiple: i
413
460
  }, r, b, y) => {
414
461
  const p = async (_) => {
415
- var w;
416
- a.value && await L(), (w = l.value[_]) == null || w.focus();
462
+ var S;
463
+ o.value && await C(), (S = l.value[_]) == null || S.focus();
417
464
  }, f = async (_) => {
418
- var R, K;
419
- a.value && await L();
420
- const w = (R = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : R.$el.querySelectorAll(
465
+ var N, K;
466
+ o.value && await C();
467
+ const S = (N = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : N.$el.querySelectorAll(
421
468
  "button"
422
469
  );
423
- w.length ? (K = w[_]) == null || K.focus() : p(_);
470
+ S.length ? (K = S[_]) == null || K.focus() : p(_);
424
471
  }, s = (_) => {
425
- var w;
426
- return (w = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : w.setListboxFocusedIndex(
472
+ var S;
473
+ return (S = t.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef) == null ? void 0 : S.setListboxFocusedIndex(
427
474
  _
428
475
  );
429
- }, g = () => {
430
- e.value || b(), L(() => {
476
+ }, h = () => {
477
+ e.value || b(), C(() => {
431
478
  s(0), p(0);
432
479
  });
433
480
  }, m = () => {
434
- e.value || b(), L(() => {
481
+ e.value || b(), C(() => {
435
482
  s(l.value.length - 1), p(l.value.length - 1);
436
483
  });
437
- }, S = ({ detail: _ }) => {
438
- _.preventDefault(), g();
439
484
  }, O = ({ detail: _ }) => {
485
+ _.preventDefault(), h();
486
+ }, x = ({ detail: _ }) => {
440
487
  _.preventDefault(), m();
441
- }, C = () => {
442
- g();
443
- }, u = () => {
488
+ }, w = () => {
489
+ h();
490
+ }, d = () => {
444
491
  m();
445
- }, I = ({ detail: _ }) => {
446
- _.preventDefault(), r(), e.value && L(() => {
447
- i ? f(0) : (s(o.value), p(o.value));
492
+ }, T = ({ detail: _ }) => {
493
+ _.preventDefault(), r(), e.value && C(() => {
494
+ i ? f(0) : (s(a.value), p(a.value));
448
495
  });
449
496
  }, D = ({ detail: _ }) => {
450
- _.preventDefault(), r(), e.value && L(() => {
451
- i ? f(0) : (s(o.value), p(o.value));
497
+ _.preventDefault(), r(), e.value && C(() => {
498
+ i ? f(0) : (s(a.value), p(a.value));
452
499
  });
453
500
  }, B = () => {
454
501
  e.value && y();
455
- }, F = () => {
456
- e.value && (y(), Le(n));
502
+ }, $ = () => {
503
+ e.value && (y(), Ce(n));
457
504
  };
458
- return d(() => ({
459
- [E.ARROW_DOWN]: S,
460
- [E.ARROW_UP]: O,
461
- [E.HOME]: C,
462
- [E.END]: u,
463
- ...a.value ? {} : { [E.SPACE]: I },
505
+ return c(() => ({
506
+ [E.ARROW_DOWN]: O,
507
+ [E.ARROW_UP]: x,
508
+ [E.HOME]: w,
509
+ [E.END]: d,
510
+ ...o.value ? {} : { [E.SPACE]: T },
464
511
  [E.ENTER]: D,
465
512
  [E.TAB]: B,
466
- [E.ESCAPE]: F
513
+ [E.ESCAPE]: $
467
514
  }));
468
- }, Ot = ({ inputContainerRef: n, isDropdownOpen: t }, o) => {
515
+ }, xt = ({ inputContainerRef: n, isDropdownOpen: t }, a) => {
469
516
  const e = () => {
470
- t.value && o(), L(() => {
471
- Le(n);
517
+ t.value && a(), C(() => {
518
+ Ce(n);
472
519
  });
473
520
  };
474
521
  return {
475
- [c.ENTER]: e,
476
- [c.ESCAPE]: e,
477
- [c.TAB]: e,
478
- [c.SPACE]: e
522
+ [u.ENTER]: e,
523
+ [u.ESCAPE]: e,
524
+ [u.TAB]: e,
525
+ [u.SPACE]: e
479
526
  };
480
527
  };
481
- function Et(n, t, o, e, a) {
482
- const l = h(n), i = h(t), r = (p, f = []) => f.flatMap((s) => s.label.toLocaleLowerCase().includes(p) ? e != null && e.value && s.items ? [...r(p, s.items)] : [s, ...r(p, s.items)] : s.items ? [...r(p, s.items)] : []), b = o !== void 0 ? qe(() => o(l.value), a ?? 300) : void 0;
528
+ function Et(n, t, a, e, o) {
529
+ const l = g(n), i = g(t), r = (p, f = []) => f.flatMap((s) => s.label.toLocaleLowerCase().includes(p) ? e != null && e.value && s.items ? [...r(p, s.items)] : [s, ...r(p, s.items)] : s.items ? [...r(p, s.items)] : []), b = a !== void 0 ? je(() => a(l.value), o ?? 300) : void 0;
483
530
  return ee(l, () => {
484
531
  b !== void 0 && b();
485
- }), d(() => {
486
- if (!l.value || o !== void 0)
532
+ }), c(() => {
533
+ if (!l.value || a !== void 0)
487
534
  return i.value;
488
535
  const p = l.value.toLocaleLowerCase();
489
536
  return r(p, i.value);
490
537
  });
491
538
  }
492
539
  const Dt = {
493
- "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
494
- "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
495
- "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" }
496
- }, Bt = /* @__PURE__ */ Symbol("input field component injection key"), eo = /* @__PURE__ */ Symbol("input field hint injection key"), to = /* @__PURE__ */ Symbol("input field parent component injection key"), It = N({
540
+ "de-DE": {
541
+ all: "Alle",
542
+ ariaLabelFallback: "Dropdown",
543
+ clearSearch: "Filter löschen"
544
+ },
545
+ "en-GB": {
546
+ all: "All",
547
+ ariaLabelFallback: "Dropdown",
548
+ clearSearch: "Clear filter"
549
+ },
550
+ "en-US": {
551
+ all: "All",
552
+ ariaLabelFallback: "Dropdown",
553
+ clearSearch: "Clear filter"
554
+ },
555
+ "es-ES": {
556
+ all: "Todos",
557
+ ariaLabelFallback: "Menú desplegable",
558
+ clearSearch: "Limpiar filtro"
559
+ },
560
+ "es-MX": {
561
+ all: "Todos",
562
+ ariaLabelFallback: "Menú desplegable",
563
+ clearSearch: "Limpiar filtro"
564
+ },
565
+ "fr-FR": {
566
+ all: "Tous",
567
+ ariaLabelFallback: "Menu déroulant",
568
+ clearSearch: "Effacer le filtre"
569
+ },
570
+ "it-IT": {
571
+ all: "Tutti",
572
+ ariaLabelFallback: "Menu a discesa",
573
+ clearSearch: "Cancella filtro"
574
+ },
575
+ "ja-JP": {
576
+ all: "すべて",
577
+ ariaLabelFallback: "ドロップダウン",
578
+ clearSearch: "フィルターをクリア"
579
+ },
580
+ "pt-BR": {
581
+ all: "Todos",
582
+ ariaLabelFallback: "Menu suspenso",
583
+ clearSearch: "Limpar filtro"
584
+ },
585
+ "zh-CN": {
586
+ all: "全部",
587
+ ariaLabelFallback: "下拉菜单",
588
+ clearSearch: "清除筛选器"
589
+ }
590
+ }, Bt = /* @__PURE__ */ Symbol("input field component injection key"), ea = /* @__PURE__ */ Symbol("input field hint injection key"), ta = /* @__PURE__ */ Symbol("input field parent component injection key"), Tt = A({
497
591
  i18n: { messages: Dt },
498
592
  name: "b-dropdown",
499
593
  components: {
500
- DropdownInputDefault: Fe,
501
- DropdownInputSmall: Ct
594
+ DropdownInputDefault: $e,
595
+ DropdownInputSmall: wt
502
596
  },
503
597
  model: { prop: "modelValue" }
504
- }), Tt = /* @__PURE__ */ N({
505
- ...It,
598
+ }), It = /* @__PURE__ */ A({
599
+ ...Tt,
506
600
  props: {
507
601
  description: { default: null },
508
602
  disabled: { type: Boolean, default: !1 },
@@ -535,115 +629,115 @@ const Dt = {
535
629
  enableValueLabelPair: { type: Boolean, default: !1 }
536
630
  },
537
631
  emits: ["input", "update:model-value", "show-more", "open"],
538
- setup(n, { expose: t, emit: o }) {
632
+ setup(n, { expose: t, emit: a }) {
539
633
  var me, be;
540
- const e = n, a = Me(), l = we(), i = He(l), { t: r } = te(), { emitValue: b } = ze(o), y = h(null), p = h(null), f = h(null), s = h(!1), g = k("bento-dropdown-options-container"), m = k("dropdown-label"), S = k("dropdown-description"), O = k("dropdown-error"), { isReadOnly: C } = je(x(e, "readonly")), u = d(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: B } = Ve(
541
- x(e, "items"),
542
- u,
543
- x(e, "multiple"),
544
- x(e, "enableValueLabelPair")
545
- ), F = h(a["aria-label"]), W = h(a["aria-describedby"]), { ariaLabel: _, label: w } = Ce(e), R = d(() => r("ariaLabelFallback")), K = Ke({
634
+ const e = n, o = Re(), l = Se(), i = He(l), { t: r } = te(), { emitValue: b } = ze(a), y = g(null), p = g(null), f = g(null), s = g(!1), h = F("bento-dropdown-options-container"), m = F("dropdown-label"), O = F("dropdown-description"), x = F("dropdown-error"), { isReadOnly: w } = Ue(L(e, "readonly")), d = c(() => e.modelValue ?? e.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: D, setCachedValues: B } = Ve(
635
+ L(e, "items"),
636
+ d,
637
+ L(e, "multiple"),
638
+ L(e, "enableValueLabelPair")
639
+ ), $ = g(o["aria-label"]), q = g(o["aria-describedby"]), { ariaLabel: _, label: S } = we(e), N = c(() => r("ariaLabelFallback")), K = Ke({
546
640
  // TODO: take ariaLabel ref away when aria-label prop is removed
547
- ariaLabel: _.value || F,
548
- label: w,
549
- defaultFallback: R
550
- }), oe = e.size === V.SMALL || Pe(Bt, !1), xe = d(() => oe ? V.SMALL : V.DEFAULT), Se = d(() => ({
641
+ ariaLabel: _.value || $,
642
+ label: S,
643
+ defaultFallback: N
644
+ }), ae = e.size === V.SMALL || ke(Bt, !1), Le = c(() => ae ? V.SMALL : V.DEFAULT), Oe = c(() => ({
551
645
  "b-dropdown--condensed": e.condensed
552
- })), Oe = d(() => ({
646
+ })), xe = c(() => ({
553
647
  "b-dropdown__description--error": !!e.errorMessage
554
- })), T = h(""), M = x(e, "items"), ae = x(e, "staticCategories"), U = Et(
555
- T,
556
- M,
648
+ })), I = g(""), R = L(e, "items"), oe = L(e, "staticCategories"), W = Et(
649
+ I,
650
+ R,
557
651
  (me = e == null ? void 0 : e.search) == null ? void 0 : me.searchEvent,
558
- ae,
652
+ oe,
559
653
  (be = e == null ? void 0 : e.search) == null ? void 0 : be.debounceTime
560
- ), j = d(() => e.dynamicFiltering && !!T.value), Ee = xt({
561
- items: M,
562
- placeholder: x(e, "placeholder"),
563
- isMultiSelect: x(e, "multiple"),
564
- selectedValues: I
565
- }), De = d(() => {
566
- if (e != null && e.multiple && Array.isArray(u.value))
654
+ ), U = c(() => e.dynamicFiltering && !!I.value), Ee = Lt({
655
+ items: R,
656
+ placeholder: L(e, "placeholder"),
657
+ isMultiSelect: L(e, "multiple"),
658
+ selectedValues: T
659
+ }), De = c(() => {
660
+ if (e != null && e.multiple && Array.isArray(d.value))
567
661
  return e.items.filter(
568
662
  ({ value: v }) => (e == null ? void 0 : e.value) && (e == null ? void 0 : e.value).includes(v)
569
663
  );
570
664
  if (!e.multiple && e.staticCategories) {
571
665
  const v = e.items.find(
572
- (Y) => Y.items.some((Re) => Re.value === u.value)
666
+ (Y) => Y.items.some((Ne) => Ne.value === d.value)
573
667
  );
574
- return v ? v.items.find((Y) => Y.value === u.value) : null;
668
+ return v ? v.items.find((Y) => Y.value === d.value) : null;
575
669
  }
576
- return e.items.find(({ value: v }) => v === u.value);
577
- }), ne = d(() => {
578
- const v = U.value.findIndex(({ value: A }) => e.enableValueLabelPair ? u.value.value === A : u.value === A);
670
+ return e.items.find(({ value: v }) => v === d.value);
671
+ }), ne = c(() => {
672
+ const v = W.value.findIndex(({ value: M }) => e.enableValueLabelPair ? d.value.value === M : d.value === M);
579
673
  return v > -1 ? v : 0;
580
- }), { isMultiLevelSelect: q, flattenedItemsList: le } = We(M), se = d(() => q.value && !e.staticCategories), ie = d(() => se.value ? "treeitem" : "option"), Be = d(() => {
674
+ }), { isMultiLevelSelect: j, flattenedItemsList: le } = qe(R), se = c(() => j.value && !e.staticCategories), ie = c(() => se.value ? "treeitem" : "option"), Be = c(() => {
581
675
  if (e.multiple) {
582
- const v = Array.isArray(u.value) ? u.value.length : 0, A = q.value ? le.value.length : M.value.length;
583
- return v === 0 ? null : !e.hasMoreItems && A > 0 && A === v ? r("all") : v;
676
+ const v = Array.isArray(d.value) ? d.value.length : 0, M = j.value ? le.value.length : R.value.length;
677
+ return v === 0 ? null : !e.hasMoreItems && M > 0 && M === v ? r("all") : v;
584
678
  }
585
679
  return null;
586
- }), Ie = d(
680
+ }), Te = c(
587
681
  () => [
588
- e.description ? S : null,
589
- W.value,
590
- e.errorMessage ? O : null
682
+ e.description ? O : null,
683
+ q.value,
684
+ e.errorMessage ? x : null
591
685
  ].filter(Boolean).join(" ") || null
592
- ), re = d(() => {
686
+ ), re = c(() => {
593
687
  var v;
594
688
  return (v = f.value) == null ? void 0 : v.$el;
595
- }), { visibleDomOptions: de, updateVisibleDomOptions: H } = Ue(
689
+ }), { visibleDomOptions: ce, updateVisibleDomOptions: H } = We(
596
690
  re,
597
- U,
691
+ W,
598
692
  ie
599
- ), ue = () => {
600
- C.value || (s.value = !0, L(() => {
693
+ ), de = () => {
694
+ w.value || (s.value = !0, C(() => {
601
695
  H();
602
696
  }));
603
697
  }, z = () => {
604
698
  s.value = !1;
605
- }, ce = () => {
606
- C.value || (s.value = !s.value, L(() => {
699
+ }, ue = () => {
700
+ w.value || (s.value = !s.value, C(() => {
607
701
  H();
608
- }), j.value && (T.value = ""));
609
- }, Te = () => {
610
- j.value && (T.value = ""), s.value && (s.value = !1, f.value.onOutsideDropdownClick());
702
+ }), U.value && (I.value = ""));
703
+ }, Ie = () => {
704
+ U.value && (I.value = ""), s.value && (s.value = !1, f.value.onOutsideDropdownClick());
611
705
  }, pe = async (v) => {
612
- e.multiple || (T.value = "", s.value = !1), B(v), b(D.value), e.multiple || (await L(), J());
706
+ e.multiple || (I.value = "", s.value = !1), B(v), b(D.value), e.multiple || (await C(), J());
613
707
  }, fe = () => {
614
- o(c.SHOW_MORE);
615
- }, Ae = St(
708
+ a(u.SHOW_MORE);
709
+ }, Me = Ot(
616
710
  {
617
711
  inputContainerRef: y,
618
712
  optionsContainerRef: f,
619
713
  selectedValueIndex: ne,
620
714
  isDropdownOpen: s,
621
- isDynamicFltering: x(e, "dynamicFiltering"),
622
- items: de,
715
+ isDynamicFltering: L(e, "dynamicFiltering"),
716
+ items: ce,
623
717
  isMultiple: e.multiple
624
718
  },
625
- ce,
626
719
  ue,
720
+ de,
627
721
  z
628
- ), ve = Ot(
722
+ ), ve = xt(
629
723
  {
630
724
  inputContainerRef: y,
631
725
  isDropdownOpen: s
632
726
  },
633
727
  z
634
- ), Ne = {
635
- [c.CLOSE_DROPDOWN]: z,
636
- [c.SELECT]: pe,
637
- [c.SHOW_MORE]: fe,
728
+ ), Ae = {
729
+ [u.CLOSE_DROPDOWN]: z,
730
+ [u.SELECT]: pe,
731
+ [u.SHOW_MORE]: fe,
638
732
  ...ve
639
733
  };
640
- e.error && Z(
734
+ e.error && X(
641
735
  'BentoDropdown "error" property',
642
736
  `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
643
737
  Having the field as "undefined" will hide/remove the error.
644
738
  <bento-dropdown errorMessage="Error message text" />`,
645
739
  "2.0.0"
646
- ), e.size && Z('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && Z(
740
+ ), e.size && X('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), e.value && X(
647
741
  'BentoDropdown "value" property',
648
742
  `The use of "value" prop in "BentoDropdown" is no longer supported.
649
743
  Use the "v-model" or "model-value" property instead.`,
@@ -655,42 +749,42 @@ const Dt = {
655
749
  return ee(
656
750
  () => s.value,
657
751
  (v) => {
658
- v && o("open");
752
+ v && a("open");
659
753
  }
660
754
  ), t({
661
755
  focus: J
662
- }), { __sfc: !0, attrs: a, slots: l, hasSlot: i, props: e, emit: o, t: r, emitValue: b, inputContainerRef: y, inputContainerRefWrapper: p, optionsContainerRef: f, isDropdownOpen: s, dropdownOptionsContainerId: g, labelId: m, descriptionId: S, errorId: O, isReadOnly: C, dropdownValue: u, cachedSelectedListboxOptions: I, cachedListboxSelectedValues: D, setCachedValues: B, ariaLabelAttribute: F, ariaDescribedByAttribute: W, ariaLabel: _, label: w, computedAriaLabelFallbackMessage: R, computedAriaLabel: K, isInputComponent: oe, computedSize: xe, conditionalClasses: Se, descriptionConditionalClasses: Oe, searchTerm: T, items: M, staticCategories: ae, filteredItems: U, isSearching: j, displayValue: Ee, selectedValueItem: De, selectedValueIndex: ne, isMultiLevelSelect: q, flattenedItemsList: le, isTreePattern: se, computedOptionRole: ie, additionalItemsSelected: Be, ariaDescribedBy: Ie, listboxRef: re, visibleDomOptions: de, updateVisibleDomOptions: H, openDropdown: ue, closeDropdown: z, toggleDropdown: ce, clickOutsideDropdown: Te, onOptionSelected: pe, emitShowMoreEvent: fe, textboxKeyboardNavigationListeners: Ae, listboxKeyboardNavigationListeners: ve, listboxListeners: Ne, focus: J, BentoDropdownOptionsContainer: st, BentoTypography: ke, ErrorMessage: Qe, FieldLabel: Ze, vBentoClickOutsideDirective: Ye, vBentoKeyboardNavigationDirective: Je };
756
+ }), { __sfc: !0, attrs: o, slots: l, hasSlot: i, props: e, emit: a, t: r, emitValue: b, inputContainerRef: y, inputContainerRefWrapper: p, optionsContainerRef: f, isDropdownOpen: s, dropdownOptionsContainerId: h, labelId: m, descriptionId: O, errorId: x, isReadOnly: w, dropdownValue: d, cachedSelectedListboxOptions: T, cachedListboxSelectedValues: D, setCachedValues: B, ariaLabelAttribute: $, ariaDescribedByAttribute: q, ariaLabel: _, label: S, computedAriaLabelFallbackMessage: N, computedAriaLabel: K, isInputComponent: ae, computedSize: Le, conditionalClasses: Oe, descriptionConditionalClasses: xe, searchTerm: I, items: R, staticCategories: oe, filteredItems: W, isSearching: U, displayValue: Ee, selectedValueItem: De, selectedValueIndex: ne, isMultiLevelSelect: j, flattenedItemsList: le, isTreePattern: se, computedOptionRole: ie, additionalItemsSelected: Be, ariaDescribedBy: Te, listboxRef: re, visibleDomOptions: ce, updateVisibleDomOptions: H, openDropdown: de, closeDropdown: z, toggleDropdown: ue, clickOutsideDropdown: Ie, onOptionSelected: pe, emitShowMoreEvent: fe, textboxKeyboardNavigationListeners: Me, listboxKeyboardNavigationListeners: ve, listboxListeners: Ae, focus: J, BentoDropdownOptionsContainer: st, BentoTypography: Fe, ErrorMessage: Ze, FieldLabel: Xe, vBentoClickOutsideDirective: Ye, vBentoKeyboardNavigationDirective: Je };
663
757
  }
664
758
  });
665
- var At = function() {
666
- var t = this, o = t._self._c, e = t._self._setupProxy;
667
- return o("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? o(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), o("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [o(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, "aria-required": t.required, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(a) {
668
- e.searchTerm = a;
669
- }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
759
+ var Mt = function() {
760
+ var t = this, a = t._self._c, e = t._self._setupProxy;
761
+ return a("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.clickOutsideDropdown, expression: "clickOutsideDropdown" }], staticClass: "b-dropdown", class: e.conditionalClasses }, [e.label ? a(e.FieldLabel, { attrs: { id: e.labelId, condensed: t.condensed, label: e.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "inputContainerRefWrapper" }, e.textboxKeyboardNavigationListeners), [a(e.computedSize, { ref: "inputContainerRef", tag: "component", attrs: { condensed: t.condensed, value: e.searchTerm, "additional-items-selected": e.additionalItemsSelected, "aria-controls": e.dropdownOptionsContainerId, ariaExpanded: e.isDropdownOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, "aria-label": e.computedAriaLabel, "aria-readonly": e.isReadOnly, "aria-required": t.required, readonly: e.isReadOnly, disabled: t.disabled, "display-value": e.displayValue, "dynamic-filtering": t.dynamicFiltering, "is-invalid": !!t.errorMessage || t.error, multiple: t.multiple, open: e.isDropdownOpen, "selected-value-item": e.isInputComponent ? void 0 : e.selectedValueItem, "show-slot-content-in-multiple": t.showSlotContentInMultiple }, on: { input: function(o) {
762
+ e.searchTerm = o;
763
+ }, open: e.toggleDropdown, close: e.toggleDropdown }, scopedSlots: t._u([t._l(e.slots, function(o, l) {
670
764
  return { key: l, fn: function(i) {
671
765
  return [t._t(l, null, null, i)];
672
766
  } };
673
- })], null, !0) })], 1), e.inputContainerRef ? o(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(a, l) {
767
+ })], null, !0) })], 1), e.inputContainerRef ? a(e.BentoDropdownOptionsContainer, t._g({ ref: "optionsContainerRef", attrs: { id: e.dropdownOptionsContainerId, "aria-label": e.computedAriaLabel, "component-loading": t.componentLoading, "empty-state": t.emptyState, disabled: t.disabled, "is-option-disabled": t.isOptionDisabled, items: e.filteredItems, multiple: t.multiple, "static-categories": e.staticCategories, open: e.isDropdownOpen, "selected-value": e.cachedSelectedListboxOptions, searching: e.isSearching, "target-element": e.inputContainerRefWrapper, loading: t.loading, "has-more-items": t.hasMoreItems, "lazy-load-type": t.lazyLoadType, "virtual-scroll": t.virtualScroll }, scopedSlots: t._u([t._l(e.slots, function(o, l) {
674
768
  return { key: l, fn: function(i) {
675
769
  return [t._t(l, null, null, i)];
676
770
  } };
677
- })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? o(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? o(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
771
+ })], null, !0) }, e.listboxListeners)) : t._e(), t.errorMessage ? a(e.ErrorMessage, { staticClass: "b-dropdown__error-message", attrs: { id: e.errorId, "error-message": t.errorMessage } }) : t._e(), t.description || e.hasSlot("description") ? a(e.BentoTypography, { staticClass: "b-dropdown__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [t._t("description", function() {
678
772
  return [t._v(" " + t._s(t.description) + " ")];
679
773
  })], 2) : t._e()], 1);
680
- }, Nt = [], Rt = /* @__PURE__ */ $(
681
- Tt,
774
+ }, At = [], Nt = /* @__PURE__ */ P(
775
+ It,
776
+ Mt,
682
777
  At,
683
- Nt,
684
778
  !1,
685
779
  null,
686
780
  "3edb5f79"
687
781
  );
688
- const oo = Rt.exports;
782
+ const aa = Nt.exports;
689
783
  export {
690
- oo as B,
691
- eo as I,
784
+ aa as B,
785
+ ea as I,
692
786
  Bt as a,
693
- to as b,
787
+ ta as b,
694
788
  Et as u
695
789
  };
696
- //# sourceMappingURL=dropdown.Ct7uhPr6.js.map
790
+ //# sourceMappingURL=dropdown.CvNI2V33.js.map