@adyen/bento-vue3 1.90.0 → 1.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +728 -597
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/assets/accordion-item.css +1 -1
  7. package/dist/assets/action-bar.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-group.css +1 -1
  12. package/dist/assets/checkbox.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-tag.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/error-message.css +1 -1
  21. package/dist/assets/field-label.css +1 -0
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/filter-bar.css +1 -1
  24. package/dist/assets/form-layout-title.css +1 -1
  25. package/dist/assets/input-field-password.css +1 -1
  26. package/dist/assets/input-field-phone-number.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/input-time.css +1 -1
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/secondary-nav.css +1 -1
  32. package/dist/assets/sidepanel.css +1 -1
  33. package/dist/assets/textarea.css +1 -1
  34. package/dist/assets/toggle.css +1 -1
  35. package/dist/assets/use-cached-selected-values.css +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/card.js +1 -1
  38. package/dist/checkbox.js +2 -2
  39. package/dist/chunks/{action-bar.Pe_hvtja.js → action-bar.BxyRAZn1.js} +3 -3
  40. package/dist/chunks/{action-bar.Pe_hvtja.js.map → action-bar.BxyRAZn1.js.map} +1 -1
  41. package/dist/chunks/{ai-tag.BSlc78DU.js → ai-tag.CpeZm2Yf.js} +2 -2
  42. package/dist/chunks/{ai-tag.BSlc78DU.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
  43. package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
  44. package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
  45. package/dist/chunks/{base-modal.BjjDrx0z.js → base-modal.C8Rsc2oO.js} +4 -4
  46. package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
  47. package/dist/chunks/{button-actions-with-menu.DvkS16ur.js → button-actions-with-menu.KaWdHibo.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.DvkS16ur.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
  49. package/dist/chunks/{button-actions.Bh_PZ_fV.js → button-actions.7Oi2Ra4p.js} +88 -94
  50. package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
  51. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  52. package/dist/chunks/button.DWF7FSIw.js.map +1 -1
  53. package/dist/chunks/{calendar.CH-1Vgeb.js → calendar.DfMwuOIR.js} +503 -425
  54. package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
  55. package/dist/chunks/{card.BzCGCCzH.js → card.7q8tTfjG.js} +2 -2
  56. package/dist/chunks/card.7q8tTfjG.js.map +1 -0
  57. package/dist/chunks/{checkbox-group.D_fN6Glu.js → checkbox-group.DawPC5Go.js} +6 -6
  58. package/dist/chunks/checkbox-group.DawPC5Go.js.map +1 -0
  59. package/dist/chunks/{checkbox.BlAhQl9N.js → checkbox.CDjMTuJk.js} +4 -6
  60. package/dist/chunks/checkbox.CDjMTuJk.js.map +1 -0
  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.BePxxR3q.js → code-snippet.Dtb7CDv9.js} +3 -3
  64. package/dist/chunks/code-snippet.Dtb7CDv9.js.map +1 -0
  65. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  66. package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  67. package/dist/chunks/{controls-group.Cxk-0fCy.js → controls-group.DqRpF9bh.js} +2 -2
  68. package/dist/chunks/{controls-group.Cxk-0fCy.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  69. package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
  70. package/dist/chunks/{dashboard-section.CiNDItU2.js → dashboard-section.kwKlujP-.js} +2 -2
  71. package/dist/chunks/{dashboard-section.CiNDItU2.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
  72. package/dist/chunks/{dashed-underline.CwdpUz76.js → dashed-underline.ADDEdamG.js} +2 -2
  73. package/dist/chunks/{dashed-underline.CwdpUz76.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.nXn1dLCw.js → data-grid-template.C69yN3ZR.js} +2 -2
  75. package/dist/chunks/{data-grid-template.nXn1dLCw.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
  76. package/dist/chunks/{data-grid.CXWaoqzi.js → data-grid._kCZlpR4.js} +745 -741
  77. package/dist/chunks/data-grid._kCZlpR4.js.map +1 -0
  78. package/dist/chunks/date-picker.D08qIp2A.js +269 -0
  79. package/dist/chunks/date-picker.D08qIp2A.js.map +1 -0
  80. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  81. package/dist/chunks/date-range-picker.BXzTT4AF.js +1038 -0
  82. package/dist/chunks/date-range-picker.BXzTT4AF.js.map +1 -0
  83. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  84. package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
  85. package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
  86. package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
  87. package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  88. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  89. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  90. package/dist/{draggable-handle.js → chunks/draggable-handle.BWHOlabB.js} +56 -47
  91. package/dist/chunks/draggable-handle.BWHOlabB.js.map +1 -0
  92. package/dist/chunks/{dropdown-tag.B7OA_Yv9.js → dropdown-tag.Sk2n9gbl.js} +6 -6
  93. package/dist/chunks/dropdown-tag.Sk2n9gbl.js.map +1 -0
  94. package/dist/chunks/dropdown.CuIBYLdy.js +1218 -0
  95. package/dist/chunks/dropdown.CuIBYLdy.js.map +1 -0
  96. package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
  97. package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  98. package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
  99. package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
  100. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  101. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  102. package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
  103. package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
  104. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  105. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  106. package/dist/chunks/{file-uploader.BUvDU_cn.js → file-uploader.B5_l2uQO.js} +5 -5
  107. package/dist/chunks/{file-uploader.BUvDU_cn.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
  108. package/dist/chunks/{filter-bar.fowl40RS.js → filter-bar.gwDFNkp5.js} +1472 -1454
  109. package/dist/chunks/filter-bar.gwDFNkp5.js.map +1 -0
  110. package/dist/chunks/{footer-actions.uoNbOGAQ.js → footer-actions.4Qj_I3cd.js} +2 -2
  111. package/dist/chunks/{footer-actions.uoNbOGAQ.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
  112. package/dist/chunks/{form-layout-title.Cr3wdpK_.js → form-layout-title.B712PesH.js} +79 -65
  113. package/dist/chunks/form-layout-title.B712PesH.js.map +1 -0
  114. package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
  115. package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
  116. package/dist/chunks/{header-meta.CmH6SnjE.js → header-meta.BJjFOcxY.js} +14 -14
  117. package/dist/chunks/{header-meta.CmH6SnjE.js.map → header-meta.BJjFOcxY.js.map} +1 -1
  118. package/dist/chunks/{header-with-views.B2pPBcTf.js → header-with-views.CMO5q6g5.js} +10 -10
  119. package/dist/chunks/{header-with-views.B2pPBcTf.js.map → header-with-views.CMO5q6g5.js.map} +1 -1
  120. package/dist/chunks/{header.BVM8Usdi.js → header.5RQulwlL.js} +3 -3
  121. package/dist/chunks/header.5RQulwlL.js.map +1 -0
  122. package/dist/chunks/{input-field-password.CHb2Ros_.js → input-field-password.DWR0liBW.js} +5 -5
  123. package/dist/chunks/input-field-password.DWR0liBW.js.map +1 -0
  124. package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js → input-field-phone-number.ByjukCrO.js} +4 -4
  125. package/dist/chunks/{input-field-phone-number.DM2rmZkQ.js.map → input-field-phone-number.ByjukCrO.js.map} +1 -1
  126. package/dist/chunks/{input-field.DnYjM6yy.js → input-field.FkzBZDWS.js} +150 -135
  127. package/dist/chunks/input-field.FkzBZDWS.js.map +1 -0
  128. package/dist/chunks/input-time.DlvANG4O.js +122 -0
  129. package/dist/chunks/input-time.DlvANG4O.js.map +1 -0
  130. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  131. package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  132. package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
  133. package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
  134. package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
  135. package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
  136. package/dist/chunks/link.D6D6YGsN.js.map +1 -1
  137. package/dist/chunks/{modal-fullscreen.9CSTqFQc.js → modal-fullscreen.CepaWyoi.js} +2 -2
  138. package/dist/chunks/{modal-fullscreen.9CSTqFQc.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
  141. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  142. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  143. package/dist/chunks/{pagination.DL-h8OLF.js → pagination.Ch_Occwt.js} +100 -100
  144. package/dist/chunks/{pagination.DL-h8OLF.js.map → pagination.Ch_Occwt.js.map} +1 -1
  145. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  146. package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
  147. package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
  148. package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
  149. package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
  150. package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  151. package/dist/chunks/{radio-group.DzhQgXv9.js → radio-group.CfMr1fmW.js} +3 -3
  152. package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -0
  153. package/dist/chunks/{rich-text-editor.Ij2t4pyI.js → rich-text-editor.mxbLaG6q.js} +7 -6
  154. package/dist/chunks/{rich-text-editor.Ij2t4pyI.js.map → rich-text-editor.mxbLaG6q.js.map} +1 -1
  155. package/dist/chunks/{search-bar.DfNwnjes.js → search-bar.JDkxJGjF.js} +4 -4
  156. package/dist/chunks/{search-bar.DfNwnjes.js.map → search-bar.JDkxJGjF.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.CvipTDRh.js → secondary-nav.CROQNbYk.js} +2 -2
  158. package/dist/chunks/{secondary-nav.CvipTDRh.js.map → secondary-nav.CROQNbYk.js.map} +1 -1
  159. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  160. package/dist/chunks/{selection-card-group.CcOWQAUC.js → selection-card-group.DJ6FFvsA.js} +3 -3
  161. package/dist/chunks/{selection-card-group.CcOWQAUC.js.map → selection-card-group.DJ6FFvsA.js.map} +1 -1
  162. package/dist/chunks/{sidepanel.BObSv8UU.js → sidepanel.S037xghX.js} +4 -4
  163. package/dist/chunks/{sidepanel.BObSv8UU.js.map → sidepanel.S037xghX.js.map} +1 -1
  164. package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
  165. package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  166. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  167. package/dist/chunks/{summary-grid.types.DKPhtHw3.js → summary-grid.types.D1JQ_jtv.js} +2 -2
  168. package/dist/chunks/{summary-grid.types.DKPhtHw3.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
  169. package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
  170. package/dist/chunks/{textarea.C-sBemuo.js → textarea.-6FHesSp.js} +19 -18
  171. package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
  172. package/dist/chunks/{timeline-item.CHk8wXeT.js → timeline-item.BJaFr2_Y.js} +5 -5
  173. package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
  174. package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
  175. package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
  176. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
  177. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
  178. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
  179. package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
  180. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
  181. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
  182. package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
  183. package/dist/chunks/{use-date-input-formatter.BiIraXZZ.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  185. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  186. package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
  187. package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  188. package/dist/click-outside.js +1 -1
  189. package/dist/code-snippet.js +1 -1
  190. package/dist/dashboard-template.js +1 -1
  191. package/dist/dashed-underline.js +1 -1
  192. package/dist/data-grid-template.js +1 -1
  193. package/dist/data-grid.js +1 -1
  194. package/dist/date-picker.js +2 -2
  195. package/dist/date-range-picker.js +2 -2
  196. package/dist/draggable.js +1383 -0
  197. package/dist/draggable.js.map +1 -0
  198. package/dist/dropdown.js +10 -11
  199. package/dist/dropdown.js.map +1 -1
  200. package/dist/file-uploader.js +1 -1
  201. package/dist/filter-bar.js +1 -1
  202. package/dist/form-layout.js +1 -1
  203. package/dist/header-with-views.js +1 -1
  204. package/dist/header.js +1 -1
  205. package/dist/index.js +278 -275
  206. package/dist/index.js.map +1 -1
  207. package/dist/input-field-password.js +1 -1
  208. package/dist/input-field-phone-number.js +1 -1
  209. package/dist/input-field.js +1 -1
  210. package/dist/input-time.js +1 -1
  211. package/dist/internal.js +24 -23
  212. package/dist/internal.js.map +1 -1
  213. package/dist/menu.js +1 -1
  214. package/dist/modal-fullscreen.js +1 -1
  215. package/dist/modal.js +2 -2
  216. package/dist/pagination.js +1 -1
  217. package/dist/popover.js +1 -1
  218. package/dist/radio-group.js +1 -1
  219. package/dist/rich-text-editor.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/selection-card.js +1 -1
  223. package/dist/sidepanel.js +1 -1
  224. package/dist/summary-grid.js +1 -1
  225. package/dist/textarea.js +1 -1
  226. package/dist/timeline.js +1 -1
  227. package/dist/toggle.js +1 -1
  228. package/dist/tutorial.js +1 -1
  229. package/dist/web-types.json +1 -1
  230. package/package.json +8 -11
  231. package/dist/assets/dropdown-default-textbox.css +0 -1
  232. package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
  233. package/dist/chunks/base-modal.BjjDrx0z.js.map +0 -1
  234. package/dist/chunks/button-actions.Bh_PZ_fV.js.map +0 -1
  235. package/dist/chunks/calendar.CH-1Vgeb.js.map +0 -1
  236. package/dist/chunks/card.BzCGCCzH.js.map +0 -1
  237. package/dist/chunks/checkbox-group.D_fN6Glu.js.map +0 -1
  238. package/dist/chunks/checkbox.BlAhQl9N.js.map +0 -1
  239. package/dist/chunks/code-snippet.BePxxR3q.js.map +0 -1
  240. package/dist/chunks/constructNow.D9uRk678.js +0 -8
  241. package/dist/chunks/data-grid.CXWaoqzi.js.map +0 -1
  242. package/dist/chunks/date-picker.DPjCROIP.js +0 -238
  243. package/dist/chunks/date-picker.DPjCROIP.js.map +0 -1
  244. package/dist/chunks/date-range-picker.fyrfFd04.js +0 -998
  245. package/dist/chunks/date-range-picker.fyrfFd04.js.map +0 -1
  246. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  247. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  248. package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js +0 -415
  249. package/dist/chunks/dropdown-default-textbox.aYsTZDZ7.js.map +0 -1
  250. package/dist/chunks/dropdown-tag.B7OA_Yv9.js.map +0 -1
  251. package/dist/chunks/dropdown.Do-mZiI6.js +0 -813
  252. package/dist/chunks/dropdown.Do-mZiI6.js.map +0 -1
  253. package/dist/chunks/error-message.849uzpkq.js +0 -157
  254. package/dist/chunks/error-message.849uzpkq.js.map +0 -1
  255. package/dist/chunks/filter-bar.fowl40RS.js.map +0 -1
  256. package/dist/chunks/form-layout-title.Cr3wdpK_.js.map +0 -1
  257. package/dist/chunks/header.BVM8Usdi.js.map +0 -1
  258. package/dist/chunks/input-field-password.CHb2Ros_.js.map +0 -1
  259. package/dist/chunks/input-field.DnYjM6yy.js.map +0 -1
  260. package/dist/chunks/input-time.DeJ8lDio.js +0 -103
  261. package/dist/chunks/input-time.DeJ8lDio.js.map +0 -1
  262. package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
  263. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  264. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  265. package/dist/chunks/radio-group.DzhQgXv9.js.map +0 -1
  266. package/dist/chunks/textarea.C-sBemuo.js.map +0 -1
  267. package/dist/chunks/timeline-item.CHk8wXeT.js.map +0 -1
  268. package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
  269. package/dist/chunks/use-cached-selected-values.DIbfa5F1.js +0 -1652
  270. package/dist/chunks/use-cached-selected-values.DIbfa5F1.js.map +0 -1
  271. package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
  272. package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
  273. package/dist/draggable-handle.js.map +0 -1
@@ -0,0 +1,1218 @@
1
+ import { ref as B, watch as ve, computed as r, defineComponent as F, useSlots as he, toRefs as Fe, openBlock as b, createBlock as j, resolveDynamicComponent as _e, mergeProps as A, withCtx as z, createElementVNode as se, withKeys as re, unref as o, createVNode as H, toHandlers as de, createSlots as be, renderList as ue, renderSlot as q, normalizeProps as le, guardReactiveProps as me, createCommentVNode as $, useAttrs as Pe, nextTick as R, createElementBlock as x, normalizeClass as oe, Fragment as Ee, createTextVNode as fe, toDisplayString as G, withModifiers as Ne, withDirectives as ne, vShow as ye, toRef as V, inject as pt } from "vue";
2
+ import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
3
+ import { g as ee } from "./generate-uid.DBWe4g6T.js";
4
+ import { u as ge } from "./index.B875RXHM.js";
5
+ 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 X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
+ import { s as te } from "./events.BQOQSSb7.js";
10
+ import { C as mt } from "./chevron-down.XeE-LBV_.js";
11
+ import { C as yt } from "./chevron-up.Cmgl2a3x.js";
12
+ /* 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 g, b as Ie, a as ke, d as gt, u as St, c as wt, e as Lt } from "./use-cached-selected-values.DUWGSMvO.js";
16
+ 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 W, 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.7Oi2Ra4p.js";
22
+ import { E as Dt } from "./error-message.Dyvrw6ZB.js";
23
+ import "../assets/dropdown.css";
24
+ var ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(ae || {});
25
+ const Oe = {
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, u, d, l) => {
37
+ const i = B(e.value), { t: n } = ge({ messages: Oe });
38
+ ve(e, () => {
39
+ i.value = e.value;
40
+ });
41
+ const t = r(
42
+ () => JSON.stringify(i.value) === JSON.stringify(e.value)
43
+ ), a = () => {
44
+ l(g.SELECT, i.value), l(g.CLOSE_DROPDOWN);
45
+ }, h = () => {
46
+ i.value = e.value, l(g.CLOSE_DROPDOWN);
47
+ }, S = () => {
48
+ d.value && u.value && (i.value = e.value);
49
+ }, p = r(() => [
50
+ {
51
+ title: n("apply"),
52
+ event: a,
53
+ disabled: t.value
54
+ },
55
+ {
56
+ title: n("cancel"),
57
+ event: h
58
+ }
59
+ ]), w = (L) => {
60
+ i.value = L, u.value || l(g.SELECT, L);
61
+ }, y = (L) => {
62
+ w(L), l(g.TAB);
63
+ }, m = (L) => {
64
+ w(L), l(g.ENTER);
65
+ }, D = (L) => {
66
+ w(L), l(g.SPACE);
67
+ }, v = () => {
68
+ h(), l(g.ESCAPE);
69
+ }, c = () => {
70
+ l(g.SHOW_MORE);
71
+ }, O = {
72
+ [g.SELECT]: w,
73
+ [g.SHOW_MORE]: c,
74
+ [g.TAB]: y,
75
+ [g.SPACE]: D,
76
+ [g.ENTER]: m
77
+ };
78
+ return {
79
+ // Values
80
+ actions: p,
81
+ internalSelectedValue: i,
82
+ // Methods
83
+ listeners: O,
84
+ onEscapeKey: v,
85
+ onOutsideDropdownClick: S
86
+ };
87
+ }, At = F({
88
+ i18n: { messages: Oe },
89
+ name: "bento-dropdown-options-container"
90
+ }), Tt = /* @__PURE__ */ F({
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: Ie.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: u, emit: d }) {
201
+ const l = he(), i = d, n = e, { selectedValue: t, multiple: a } = Fe(n), h = B(null), { t: S } = ge({ messages: Oe }), p = r(() => n.open && !n.disabled), w = r(() => S("noOptionsMatchThisSearch")), y = r(() => ({
202
+ "b-dropdown-options-container--single": !n?.multiple
203
+ })), m = r(() => ({
204
+ "b-dropdown-options-container__listbox--single": !n?.multiple
205
+ })), { actions: D, internalSelectedValue: v, listeners: c, onEscapeKey: O, onOutsideDropdownClick: L } = Bt(t, a, p, i), C = r(() => n?.multiple ? Ot : Me), k = r(() => {
206
+ 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: D.value,
214
+ divider: !0,
215
+ fallbackPosition: ["top-start"],
216
+ id: ee(`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: p.value ? "block" : "none",
230
+ ...T
231
+ },
232
+ targetElement: n.targetElement
233
+ };
234
+ });
235
+ return u({
236
+ onOutsideDropdownClick: L
237
+ }), (T, _) => p.value ? (b(), j(_e(C.value), A({
238
+ key: 0,
239
+ class: ["b-dropdown-options-container", y.value]
240
+ }, k.value), {
241
+ default: z(() => [
242
+ se("div", {
243
+ onKeydown: _[0] || (_[0] = re(
244
+ //@ts-ignore
245
+ (...M) => o(O) && o(O)(...M),
246
+ ["esc"]
247
+ ))
248
+ }, [
249
+ H(o(Ie), A({
250
+ id: e.id,
251
+ ref_key: "dropdownOptionsListboxRef",
252
+ ref: h,
253
+ "aria-label": e.ariaLabel,
254
+ class: ["b-dropdown-options-container__listbox", m.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(v),
260
+ multiple: o(a),
261
+ "static-categories": e.staticCategories,
262
+ "no-results-message": w.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
+ }, de(o(c))), be({ _: 2 }, [
269
+ ue(o(l), (M, U) => ({
270
+ name: U,
271
+ fn: z((Z) => [
272
+ q(T.$slots, U, le(me(Z)), void 0, !0)
273
+ ])
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
+ }), Nt = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-abf92e14"]]);
282
+ var N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(N || {}), I = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(I || {});
283
+ 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 = F({
305
+ i18n: { messages: qe },
306
+ name: "dropdown-base-textbox",
307
+ inheritAttrs: !1
308
+ }), Vt = /* @__PURE__ */ F({
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: u, emit: d }) {
394
+ const { t: l } = ge({ messages: qe }), i = Pe(), n = he(), t = Ve(n), a = e, h = d, S = B(null), p = ee("textbox"), w = r(() => ({
395
+ [`b-dropdown-base-textbox--${N.DISABLED}`]: a.disabled,
396
+ [`b-dropdown-base-textbox--${N.READONLY}`]: a.readonly,
397
+ [`b-dropdown-base-textbox--${N.HAS_ITEMS}`]: !!a.additionalItemsSelected
398
+ })), y = r(
399
+ () => O.value && i["aria-required"] ? "true" : null
400
+ ), m = r(() => ({
401
+ "b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
402
+ })), D = r(() => a.dynamicFiltering && !!a.value && a.open), v = 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
+ ), c = r(
415
+ () => a.multiple ? a.selectedValueItem : []
416
+ ), O = r(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = r(() => a.selectedValueItem && !a.multiple), C = r(
417
+ () => a.multiple && a.selectedValueItem && c.value.length > 0 && a.showSlotContentInMultiple
418
+ );
419
+ ve(
420
+ () => O.value,
421
+ () => {
422
+ O.value && !a.alwaysComboboxIsInput && R(() => {
423
+ S.value.focus();
424
+ });
425
+ }
426
+ );
427
+ const k = async () => {
428
+ !a.disabled && !a.readonly && (h(I.OPEN), await R(), S.value.focus());
429
+ }, T = () => {
430
+ a.open && (S.value.focus(), h(I.CLOSE));
431
+ }, _ = (E) => a.open && E.target.tagName === "INPUT" ? null : a.open ? T() : k(), M = () => {
432
+ h(I.CLEAR), h(I.INPUT, ""), S.value.focus();
433
+ }, U = (E) => {
434
+ !a.readonly && !a.disabled ? h(I.INPUT, E.target.value) : (E.preventDefault(), E.stopPropagation());
435
+ };
436
+ return u({
437
+ focus: () => {
438
+ S.value.focus();
439
+ }
440
+ }), (E, Q) => (b(), x("div", {
441
+ class: oe(E.$attrs.class),
442
+ "data-testid": "textbox-wrapper",
443
+ onClick: _,
444
+ onKeydown: re(T, ["escape"])
445
+ }, [
446
+ H(o(Ke), {
447
+ class: oe(["b-dropdown-base-textbox", w.value]),
448
+ el: "div",
449
+ "data-testid": "base-textbox"
450
+ }, {
451
+ default: z(() => [
452
+ O.value ? (b(), x("input", A({ key: 0 }, v.value, {
453
+ id: o(p),
454
+ ref_key: "textbox",
455
+ ref: S,
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: y.value,
465
+ onKeydown: [
466
+ Q[0] || (Q[0] = (f) => E.$emit(o(I).KEYDOWN, f)),
467
+ re(_, ["enter"])
468
+ ],
469
+ onInput: U
470
+ }), null, 16, kt)) : (b(), x("div", A({
471
+ key: 1,
472
+ id: o(p)
473
+ }, v.value, {
474
+ ref_key: "textbox",
475
+ ref: S,
476
+ class: ["b-dropdown-base-textbox__input", m.value],
477
+ "aria-readonly": e.readonly ? "true" : null,
478
+ role: "combobox",
479
+ tabindex: e.disabled ? -1 : 0
480
+ }), [
481
+ L.value ? (b(), x(Ee, { key: 0 }, [
482
+ o(t)("display-value") ? q(E.$slots, "display-value", le(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : q(E.$slots, "default", le(A({ key: 1 }, e.selectedValueItem)), () => [
483
+ fe(G(e.displayValue), 1)
484
+ ], !0)
485
+ ], 64)) : C.value ? (b(), x("div", $t, [
486
+ (b(!0), x(Ee, null, ue(c.value, (f) => (b(), x("div", {
487
+ key: f.value
488
+ }, [
489
+ se("div", Rt, [
490
+ q(E.$slots, "default", A({ ref_for: !0 }, f), () => [
491
+ fe(G(e.displayValue), 1)
492
+ ], !0)
493
+ ])
494
+ ]))), 128))
495
+ ])) : (b(), x(Ee, { key: 2 }, [
496
+ fe(G(e.displayValue), 1)
497
+ ], 64))
498
+ ], 16, Mt)),
499
+ e.additionalItemsSelected ? (b(), x("span", Ft, G(e.additionalItemsSelected), 1)) : $("", !0),
500
+ o(t)("icon") && !D.value ? (b(), x("span", _t, [
501
+ q(E.$slots, "icon", {}, void 0, !0)
502
+ ])) : $("", !0),
503
+ D.value ? (b(), x("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: Ne(M, ["stop"]),
509
+ onKeydown: re(Ne(M, ["stop"]), ["enter"]),
510
+ onKeyup: re(M, ["space"])
511
+ }, [
512
+ e.size === o(ae).SMALL ? (b(), j(o(bt), {
513
+ key: 0,
514
+ "svg-title": o(l)("clearSearch")
515
+ }, null, 8, ["svg-title"])) : (b(), j(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__ */ X(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = F({
526
+ name: "dropdown-default-textbox",
527
+ inheritAttrs: !1
528
+ }), Ut = /* @__PURE__ */ F({
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: u, emit: d }) {
617
+ const l = d, i = he(), n = e, t = B(null), a = r(() => ({
618
+ [`b-dropdown-default-textbox--${N.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
619
+ [`b-dropdown-default-textbox--${N.DISABLED}`]: n.disabled,
620
+ [`b-dropdown-default-textbox--${N.READONLY}`]: n.readonly,
621
+ [`b-dropdown-default-textbox--${N.OPENED}`]: n.open,
622
+ "b-dropdown-default-textbox--condensed": n.condensed
623
+ })), h = r(() => n.open && !n.disabled && !n.readonly), S = (c) => {
624
+ l("input", c);
625
+ }, p = (c) => {
626
+ l("keydown", c);
627
+ }, w = (c) => {
628
+ te(c), l("open");
629
+ }, y = (c) => {
630
+ te(c), l("close");
631
+ }, m = (c) => {
632
+ te(c), l("clear");
633
+ }, D = {
634
+ [I.INPUT]: S,
635
+ [I.OPEN]: w,
636
+ [I.CLOSE]: y,
637
+ [I.CLEAR]: m,
638
+ [I.KEYDOWN]: p
639
+ };
640
+ return u({
641
+ focus: () => {
642
+ t.value.focus();
643
+ }
644
+ }), (c, O) => (b(), x("div", {
645
+ class: oe(["b-dropdown-default-textbox", a.value]),
646
+ "data-testid": "default-textbox"
647
+ }, [
648
+ H(ze, A({
649
+ ref_key: "baseTextbox",
650
+ ref: t
651
+ }, { ...c.$attrs, ...c.$props }, {
652
+ class: "b-dropdown-default-textbox__textbox",
653
+ value: e.value
654
+ }, de(D)), be({
655
+ icon: z(() => [
656
+ se("div", qt, [
657
+ ne(H(o(yt), { "svg-title": "opened" }, null, 512), [
658
+ [ye, h.value]
659
+ ]),
660
+ ne(H(o(mt), { "svg-title": "closed" }, null, 512), [
661
+ [ye, !h.value]
662
+ ])
663
+ ])
664
+ ]),
665
+ _: 2
666
+ }, [
667
+ ue(o(i), (L, C) => ({
668
+ name: C,
669
+ fn: z((k) => [
670
+ q(c.$slots, C, le(me(k ?? {})), void 0, !0)
671
+ ])
672
+ }))
673
+ ]), 1040, ["value"])
674
+ ], 2));
675
+ }
676
+ }), Wt = /* @__PURE__ */ X(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, u, d, l, i, n) {
684
+ return b(), x("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"] ? (b(), x("title", Ht, G(e.$attrs["svg-title"]), 1)) : $("", !0),
692
+ u[0] || (u[0] = se("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__ */ X(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, u, d, l, i, n) {
706
+ return b(), x("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"] ? (b(), x("title", Xt, G(e.$attrs["svg-title"]), 1)) : $("", !0),
714
+ u[0] || (u[0] = se("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__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = F({
721
+ name: "dropdown-small-textbox",
722
+ inheritAttrs: !1
723
+ }), aa = /* @__PURE__ */ F({
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: u, emit: d }) {
781
+ const l = d, i = e, n = B(null), t = r(() => ({
782
+ [`b-dropdown-small-textbox--${N.DISABLED}`]: i.disabled,
783
+ [`b-dropdown-small-textbox--${N.READONLY}`]: i.readonly,
784
+ [`b-dropdown-small-textbox--${N.OPENED}`]: i.open
785
+ })), a = r(() => i.open && !i.disabled && !i.readonly), h = (v) => {
786
+ l("input", v);
787
+ }, S = (v) => {
788
+ l("keydown", v);
789
+ }, p = (v) => {
790
+ te(v), l("open");
791
+ }, w = (v) => {
792
+ te(v), l("close");
793
+ }, y = (v) => {
794
+ te(v), l("clear");
795
+ }, m = {
796
+ [I.INPUT]: h,
797
+ [I.OPEN]: p,
798
+ [I.CLOSE]: w,
799
+ [I.CLEAR]: y,
800
+ [I.KEYDOWN]: S
801
+ };
802
+ return u({
803
+ focus: () => {
804
+ n.value.focus();
805
+ }
806
+ }), (v, c) => (b(), x("div", {
807
+ class: oe(["b-dropdown-small-textbox", t.value])
808
+ }, [
809
+ H(ze, A({
810
+ ref_key: "baseTextbox",
811
+ ref: n
812
+ }, { ...v.$attrs, ...v.$props }, {
813
+ class: "b-dropdown-small-textbox__textbox",
814
+ size: o(ae).SMALL
815
+ }, de(m)), {
816
+ icon: z(() => [
817
+ se("div", ea, [
818
+ ne(H(o(Qt), { "svg-title": "opened" }, null, 512), [
819
+ [ye, a.value]
820
+ ]),
821
+ ne(H(o(Jt), { "svg-title": "closed" }, null, 512), [
822
+ [ye, !a.value]
823
+ ])
824
+ ])
825
+ ]),
826
+ _: 1
827
+ }, 16, ["size"])
828
+ ], 2));
829
+ }
830
+ }), la = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, u) => u.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: u, 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(", ") : u.value || null);
843
+ }, Ue = (e) => {
844
+ e.value.$children?.[0].$refs.textbox.focus();
845
+ }, sa = ({
846
+ inputContainerRef: e,
847
+ optionsContainerRef: u,
848
+ selectedValueIndex: d,
849
+ isDropdownOpen: l,
850
+ isDynamicFltering: i,
851
+ items: n,
852
+ isMultiple: t,
853
+ totalItemCount: a,
854
+ isVirtualScroll: h
855
+ }, S, p, w) => {
856
+ const y = async (f) => {
857
+ i.value && await R(), n.value[f]?.focus();
858
+ }, m = async (f) => {
859
+ i.value && await R();
860
+ const ie = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
861
+ "button"
862
+ );
863
+ ie?.length ? ie[f]?.focus() : y(f);
864
+ }, D = (f) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
865
+ f
866
+ ), v = async (f) => {
867
+ await u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
868
+ }, c = (f) => {
869
+ R(() => {
870
+ h ? v(f) : (D(f), y(f));
871
+ });
872
+ }, O = () => {
873
+ l.value || p(), c(0);
874
+ }, L = () => {
875
+ l.value || p(), R(() => {
876
+ c(h ? a.value - 1 : n.value.length - 1);
877
+ });
878
+ }, C = ({ detail: f }) => {
879
+ f.preventDefault(), O();
880
+ }, k = ({ detail: f }) => {
881
+ f.preventDefault(), L();
882
+ }, T = () => {
883
+ O();
884
+ }, _ = () => {
885
+ L();
886
+ }, M = ({ detail: f }) => {
887
+ f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
888
+ }, U = ({ detail: f }) => {
889
+ f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
890
+ }, Z = () => {
891
+ l.value && w();
892
+ }, E = () => {
893
+ l.value && (w(), Ue(e));
894
+ };
895
+ return r(() => ({
896
+ [W.ARROW_DOWN]: C,
897
+ [W.ARROW_UP]: k,
898
+ [W.HOME]: T,
899
+ [W.END]: _,
900
+ ...i.value ? {} : { [W.SPACE]: M },
901
+ [W.ENTER]: U,
902
+ ...i.value ? {} : { [W.TAB]: Z },
903
+ [W.ESCAPE]: E
904
+ }));
905
+ }, ia = ({ inputContainerRef: e, isDropdownOpen: u }, d) => {
906
+ const l = () => {
907
+ u.value && d(), R(() => {
908
+ Ue(e);
909
+ });
910
+ };
911
+ return {
912
+ [g.ENTER]: l,
913
+ [g.ESCAPE]: l,
914
+ [g.TAB]: l,
915
+ [g.SPACE]: l
916
+ };
917
+ };
918
+ function ra(e, u, d, l, i) {
919
+ const n = B(e), t = B(u), a = (p, w = []) => w.flatMap((y) => y.label.toLocaleLowerCase().includes(p) ? l?.value && y.items ? [...a(p, y.items)] : [y, ...a(p, y.items)] : y.items ? [...a(p, y.items)] : []), h = d !== void 0 ? gt(() => d(n.value), i ?? 300) : void 0;
920
+ return ve(n, () => {
921
+ h !== void 0 && h();
922
+ }), r(() => {
923
+ if (!n.value || d !== void 0)
924
+ return t.value;
925
+ const p = n.value.toLocaleLowerCase();
926
+ return a(p, t.value);
927
+ });
928
+ }
929
+ const We = {
930
+ "de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
931
+ "en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
932
+ "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
933
+ "es-ES": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
934
+ "es-MX": { all: "Todos", ariaLabelFallback: "Menú desplegable", clearSearch: "Limpiar filtro" },
935
+ "fr-FR": { all: "Tous", ariaLabelFallback: "Menu déroulant", clearSearch: "Effacer le filtre" },
936
+ "it-IT": { all: "Tutti", ariaLabelFallback: "Menu a discesa", clearSearch: "Cancella filtro" },
937
+ "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
938
+ "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
939
+ "zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
940
+ }, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua = F({
941
+ i18n: { messages: We },
942
+ name: "b-dropdown",
943
+ components: {
944
+ DropdownInputDefault: Wt,
945
+ DropdownInputSmall: la
946
+ },
947
+ model: { prop: "modelValue" }
948
+ }), ca = /* @__PURE__ */ F({
949
+ ...ua,
950
+ props: {
951
+ ariaLabel: { default: null },
952
+ condensed: { type: Boolean, default: !1 },
953
+ emptyState: { default: void 0 },
954
+ dynamicFiltering: { type: Boolean, default: !1 },
955
+ error: { type: Boolean, default: !1 },
956
+ hasMoreItems: { type: Boolean, default: !1 },
957
+ isOptionDisabled: { type: Function, default: void 0 },
958
+ items: { default: () => [] },
959
+ loading: { type: Boolean, default: !1 },
960
+ componentLoading: { type: Boolean, default: !1 },
961
+ lazyLoadType: { default: Ie.props.lazyLoadType.default },
962
+ multiple: { type: Boolean, default: !1 },
963
+ search: { default: void 0 },
964
+ showSlotContentInMultiple: { type: Boolean, default: !1 },
965
+ size: { default: null },
966
+ staticCategories: { type: Boolean, default: !1 },
967
+ value: { default: null },
968
+ modelValue: { default: null },
969
+ virtualScroll: { type: [Boolean, Object], default: !1 },
970
+ enableValueLabelPair: { type: Boolean, default: !1 },
971
+ description: { default: null },
972
+ disabled: { type: Boolean, default: !1 },
973
+ errorMessage: { default: null },
974
+ label: { default: null },
975
+ optional: { type: Boolean, default: !1 },
976
+ placeholder: { default: null },
977
+ readonly: { type: Boolean, default: !1 },
978
+ required: { type: Boolean, default: !1 },
979
+ tooltipText: { default: null }
980
+ },
981
+ emits: ["input", "update:model-value", "show-more", "open"],
982
+ setup(e, { expose: u, emit: d }) {
983
+ const l = Pe(), i = he(), n = Ve(i), t = e, a = d, { t: h } = ge({ messages: We }), { emitValue: S } = ht(a), p = B(null), w = B(null), y = B(null), m = B(!1), D = ee("bento-dropdown-options-container"), v = ee("dropdown-label"), c = ee("dropdown-description"), O = ee("dropdown-error"), { isReadOnly: L } = Ct(V(t, "readonly")), C = r(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: k, cachedListboxSelectedValues: T, setCachedValues: _ } = St(
984
+ V(t, "items"),
985
+ C,
986
+ V(t, "multiple"),
987
+ V(t, "enableValueLabelPair")
988
+ ), M = B(l["aria-label"]), U = B(l["aria-describedby"]), { ariaLabel: Z, label: E } = Fe(t), Q = r(() => h("ariaLabelFallback")), f = vt({
989
+ // TODO: take ariaLabel ref away when aria-label prop is removed
990
+ ariaLabel: Z.value || M,
991
+ label: E,
992
+ defaultFallback: Q
993
+ }), ie = t.size === ae.SMALL || pt(da, !1), je = r(() => ie ? ae.SMALL : ae.DEFAULT), He = r(() => ({
994
+ "b-dropdown--condensed": t.condensed
995
+ })), Ye = r(() => ({
996
+ "b-dropdown__description--error": !!t.errorMessage
997
+ })), Y = B(""), ce = V(t, "items"), De = V(t, "staticCategories"), pe = ra(
998
+ Y,
999
+ ce,
1000
+ t?.search?.searchEvent,
1001
+ De,
1002
+ t?.search?.debounceTime
1003
+ ), Se = r(() => t.dynamicFiltering && !!Y.value), Je = na({
1004
+ items: ce,
1005
+ placeholder: V(t, "placeholder"),
1006
+ isMultiSelect: V(t, "multiple"),
1007
+ selectedValues: k
1008
+ }), Ge = r(() => {
1009
+ if (t?.multiple && Array.isArray(C.value))
1010
+ return t.items.filter(
1011
+ ({ value: s }) => t?.value && (t?.value).includes(s)
1012
+ );
1013
+ if (!t.multiple && t.staticCategories) {
1014
+ const s = t.items.find(
1015
+ (K) => K.items?.some((J) => J.value === C.value)
1016
+ );
1017
+ return (s ? s.items.find((K) => K.value === C.value) : t.items.find(({ value: K }) => K === C.value)) ?? null;
1018
+ }
1019
+ return t.items.find(({ value: s }) => s === C.value);
1020
+ }), Xe = r(() => {
1021
+ const s = pe.value.findIndex(({ value: P }) => t.enableValueLabelPair ? C.value.value === P : C.value === P);
1022
+ return s > -1 ? s : 0;
1023
+ }), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(ce), Qe = r(() => Be.value && !t.staticCategories), et = r(() => Qe.value ? "treeitem" : "option"), tt = r(() => {
1024
+ if (t.multiple) {
1025
+ const s = Array.isArray(C.value) ? C.value.length : 0, P = Be.value ? Ze.value.length : ce.value.length;
1026
+ return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ? h("all") : s;
1027
+ }
1028
+ return null;
1029
+ }), at = r(
1030
+ () => [
1031
+ t.description ? c : null,
1032
+ U.value,
1033
+ t.errorMessage ? O : null
1034
+ ].filter(Boolean).join(" ") || null
1035
+ ), lt = r(() => y.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
1036
+ lt,
1037
+ pe,
1038
+ et
1039
+ ), nt = () => {
1040
+ L.value || (m.value = !0, R(() => {
1041
+ Ae();
1042
+ }));
1043
+ }, we = () => {
1044
+ m.value = !1;
1045
+ }, Le = () => {
1046
+ L.value || (m.value = !m.value, R(() => {
1047
+ Ae();
1048
+ }), Se.value && (Y.value = ""));
1049
+ }, st = () => {
1050
+ Se.value && (Y.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
1051
+ }, it = async (s) => {
1052
+ t.multiple || (Y.value = "", m.value = !1), _(s), S(T.value), t.multiple || (await R(), Te());
1053
+ }, rt = () => {
1054
+ a(g.SHOW_MORE);
1055
+ }, dt = sa(
1056
+ {
1057
+ inputContainerRef: p,
1058
+ optionsContainerRef: y,
1059
+ selectedValueIndex: Xe,
1060
+ isDropdownOpen: m,
1061
+ isDynamicFltering: V(t, "dynamicFiltering"),
1062
+ items: ot,
1063
+ isMultiple: t.multiple,
1064
+ totalItemCount: r(() => pe.value.length),
1065
+ isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
1066
+ },
1067
+ Le,
1068
+ nt,
1069
+ we
1070
+ ), ut = ia(
1071
+ {
1072
+ inputContainerRef: p,
1073
+ isDropdownOpen: m
1074
+ },
1075
+ we
1076
+ ), ct = {
1077
+ [g.CLOSE_DROPDOWN]: we,
1078
+ [g.SELECT]: it,
1079
+ [g.SHOW_MORE]: rt,
1080
+ ...ut
1081
+ };
1082
+ t.error && xe(
1083
+ 'BentoDropdown "error" property',
1084
+ `Use the BentoDropdown "errorMessage" property instead to indicate that there is a modifier error.
1085
+ Having the field as "undefined" will hide/remove the error.
1086
+ <bento-dropdown errorMessage="Error message text" />`,
1087
+ "2.0.0"
1088
+ ), t.size && xe('BentoDropdown "size" property', "Do not use. Only 'default' size should be used.", "2.0.0"), t.value && xe(
1089
+ 'BentoDropdown "value" property',
1090
+ `The use of "value" prop in "BentoDropdown" is no longer supported.
1091
+ Use the "v-model" or "model-value" property instead.`,
1092
+ "2.0.0"
1093
+ );
1094
+ const Te = () => {
1095
+ p.value.focus();
1096
+ };
1097
+ return ve(
1098
+ () => m.value,
1099
+ (s) => {
1100
+ s && a("open");
1101
+ }
1102
+ ), u({
1103
+ focus: Te
1104
+ }), (s, P) => ne((b(), x("div", {
1105
+ class: oe(["b-dropdown", He.value])
1106
+ }, [
1107
+ o(E) ? (b(), j(o(It), {
1108
+ key: 0,
1109
+ id: o(v),
1110
+ condensed: s.condensed,
1111
+ label: o(E),
1112
+ "tooltip-text": s.tooltipText,
1113
+ optional: s.optional,
1114
+ required: s.required
1115
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
1116
+ ne((b(), x("div", A({
1117
+ ref_key: "inputContainerRefWrapper",
1118
+ ref: w
1119
+ }, de(o(dt), !0)), [
1120
+ (b(), j(_e(je.value), {
1121
+ ref_key: "inputContainerRef",
1122
+ ref: p,
1123
+ condensed: s.condensed,
1124
+ value: Y.value,
1125
+ "additional-items-selected": tt.value,
1126
+ "aria-controls": o(D),
1127
+ ariaExpanded: m.value,
1128
+ "aria-labelledby": o(E) ? o(v) : null,
1129
+ "aria-describedby": at.value,
1130
+ "aria-label": o(f),
1131
+ "aria-readonly": o(L),
1132
+ "aria-required": s.required,
1133
+ readonly: o(L),
1134
+ disabled: s.disabled,
1135
+ "display-value": o(Je),
1136
+ "dynamic-filtering": s.dynamicFiltering,
1137
+ "is-invalid": !!s.errorMessage || s.error,
1138
+ multiple: s.multiple,
1139
+ open: m.value,
1140
+ "selected-value-item": o(ie) ? void 0 : Ge.value,
1141
+ "show-slot-content-in-multiple": s.showSlotContentInMultiple,
1142
+ onInput: P[0] || (P[0] = (K) => Y.value = K),
1143
+ onOpen: Le,
1144
+ onClose: Le
1145
+ }, be({ _: 2 }, [
1146
+ ue(o(i), (K, J) => ({
1147
+ name: J,
1148
+ fn: z((Ce) => [
1149
+ q(s.$slots, J, le(me(Ce)), void 0, !0)
1150
+ ])
1151
+ }))
1152
+ ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
1153
+ ], 16)), [
1154
+ [o(xt)]
1155
+ ]),
1156
+ p.value ? (b(), j(o(Nt), A({
1157
+ key: 1,
1158
+ id: o(D),
1159
+ ref_key: "optionsContainerRef",
1160
+ ref: y,
1161
+ "aria-label": o(f),
1162
+ "component-loading": s.componentLoading,
1163
+ "empty-state": s.emptyState,
1164
+ disabled: s.disabled,
1165
+ "is-option-disabled": s.isOptionDisabled,
1166
+ items: o(pe),
1167
+ multiple: s.multiple,
1168
+ "static-categories": De.value,
1169
+ open: m.value,
1170
+ "selected-value": o(k),
1171
+ searching: Se.value,
1172
+ "target-element": w.value,
1173
+ loading: s.loading,
1174
+ "has-more-items": s.hasMoreItems,
1175
+ "lazy-load-type": s.lazyLoadType,
1176
+ "virtual-scroll": s.virtualScroll
1177
+ }, de(ct)), be({ _: 2 }, [
1178
+ ue(o(i), (K, J) => ({
1179
+ name: J,
1180
+ fn: z((Ce) => [
1181
+ q(s.$slots, J, le(me(Ce)), void 0, !0)
1182
+ ])
1183
+ }))
1184
+ ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : $("", !0),
1185
+ s.errorMessage ? (b(), j(o(Dt), {
1186
+ key: 2,
1187
+ id: o(O),
1188
+ "error-message": s.errorMessage,
1189
+ class: "b-dropdown__error-message"
1190
+ }, null, 8, ["id", "error-message"])) : $("", !0),
1191
+ s.description || o(n)("description") ? (b(), j(o(Ke), {
1192
+ key: 3,
1193
+ id: o(c),
1194
+ class: oe(["b-dropdown__description", Ye.value]),
1195
+ el: "span"
1196
+ }, {
1197
+ default: z(() => [
1198
+ q(s.$slots, "description", {}, () => [
1199
+ fe(G(s.description), 1)
1200
+ ], !0)
1201
+ ]),
1202
+ _: 3
1203
+ }, 8, ["id", "class"])) : $("", !0)
1204
+ ], 2)), [
1205
+ [o(Et), st]
1206
+ ]);
1207
+ }
1208
+ }), Ra = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-5edc4069"]]);
1209
+ export {
1210
+ Ra as B,
1211
+ Wt as D,
1212
+ Ma as I,
1213
+ ae as a,
1214
+ da as b,
1215
+ $a as c,
1216
+ ra as u
1217
+ };
1218
+ //# sourceMappingURL=dropdown.CuIBYLdy.js.map