@adyen/bento-vue3 1.94.0 → 1.95.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 (242) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +6 -9
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/anchor-scroller.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/dashed-underline.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-picker.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/date-time-picker.css +1 -0
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/dropdown.css +1 -1
  18. package/dist/assets/file-uploader.css +1 -1
  19. package/dist/assets/form-layout-group.css +1 -0
  20. package/dist/assets/form-layout-title.css +1 -1
  21. package/dist/assets/header-meta.css +1 -1
  22. package/dist/assets/input-field.css +1 -1
  23. package/dist/assets/inspector.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/navigation-menu-group.css +1 -1
  26. package/dist/assets/secondary-nav.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{action-bar.jhGXgcQl.js → action-bar.CIVprT2U.js} +4 -4
  32. package/dist/chunks/{action-bar.jhGXgcQl.js.map → action-bar.CIVprT2U.js.map} +1 -1
  33. package/dist/chunks/{ai-tag.DIdhvkaT.js → ai-tag.DkTlRY__.js} +2 -2
  34. package/dist/chunks/{ai-tag.DIdhvkaT.js.map → ai-tag.DkTlRY__.js.map} +1 -1
  35. package/dist/chunks/{anchor-scroller.BhppCt1n.js → anchor-scroller.J2mkf0uu.js} +5 -5
  36. package/dist/chunks/{anchor-scroller.BhppCt1n.js.map → anchor-scroller.J2mkf0uu.js.map} +1 -1
  37. package/dist/chunks/{base-modal.DxjZyGlG.js → base-modal.BKtpH-qh.js} +6 -6
  38. package/dist/chunks/{base-modal.DxjZyGlG.js.map → base-modal.BKtpH-qh.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js → button-actions-with-menu.cMAAF47d.js} +3 -3
  40. package/dist/chunks/{button-actions-with-menu.DJzCF9ja.js.map → button-actions-with-menu.cMAAF47d.js.map} +1 -1
  41. package/dist/chunks/{button-actions.uco5ptf5.js → button-actions.CxTxPprd.js} +2 -2
  42. package/dist/chunks/{button-actions.uco5ptf5.js.map → button-actions.CxTxPprd.js.map} +1 -1
  43. package/dist/chunks/{calendar.D8CM3XkW.js → calendar.74nP7Nu6.js} +18 -18
  44. package/dist/chunks/{calendar.D8CM3XkW.js.map → calendar.74nP7Nu6.js.map} +1 -1
  45. package/dist/chunks/{card.CWzJewQv.js → card.CQlyqa5-.js} +2 -2
  46. package/dist/chunks/{card.CWzJewQv.js.map → card.CQlyqa5-.js.map} +1 -1
  47. package/dist/chunks/{checkbox-group.Bq6PsVI_.js → checkbox-group.BWx4wn0F.js} +3 -3
  48. package/dist/chunks/{checkbox-group.Bq6PsVI_.js.map → checkbox-group.BWx4wn0F.js.map} +1 -1
  49. package/dist/chunks/{checkbox.DreTXMg0.js → checkbox.DwfrmbwI.js} +18 -18
  50. package/dist/chunks/{checkbox.DreTXMg0.js.map → checkbox.DwfrmbwI.js.map} +1 -1
  51. package/dist/chunks/{code-snippet.CGOmdPc-.js → code-snippet.B9QFjFXf.js} +4 -4
  52. package/dist/chunks/{code-snippet.CGOmdPc-.js.map → code-snippet.B9QFjFXf.js.map} +1 -1
  53. package/dist/chunks/{controls-group.D4MEP6GO.js → controls-group.B-wIl-I7.js} +2 -2
  54. package/dist/chunks/{controls-group.D4MEP6GO.js.map → controls-group.B-wIl-I7.js.map} +1 -1
  55. package/dist/chunks/{copy.Dxqx884r.js → copy.XM_7RiIR.js} +3 -3
  56. package/dist/chunks/{copy.Dxqx884r.js.map → copy.XM_7RiIR.js.map} +1 -1
  57. package/dist/chunks/{dashboard-section.NWMwtxVX.js → dashboard-section.C4plNql-.js} +4 -4
  58. package/dist/chunks/{dashboard-section.NWMwtxVX.js.map → dashboard-section.C4plNql-.js.map} +1 -1
  59. package/dist/chunks/dashed-underline.DJmMXcdt.js +85 -0
  60. package/dist/chunks/dashed-underline.DJmMXcdt.js.map +1 -0
  61. package/dist/chunks/{data-grid-template.Bf-VZS0u.js → data-grid-template.Bwxo0AII.js} +4 -4
  62. package/dist/chunks/{data-grid-template.Bf-VZS0u.js.map → data-grid-template.Bwxo0AII.js.map} +1 -1
  63. package/dist/chunks/{data-grid.D_TrebJz.js → data-grid.Bx3Xy1tb.js} +884 -881
  64. package/dist/chunks/{data-grid.D_TrebJz.js.map → data-grid.Bx3Xy1tb.js.map} +1 -1
  65. package/dist/chunks/date-picker.89J8PGKn.js +277 -0
  66. package/dist/chunks/date-picker.89J8PGKn.js.map +1 -0
  67. package/dist/chunks/{date-range-picker.C5CSReZ5.js → date-range-picker.iaXigXuW.js} +428 -447
  68. package/dist/chunks/date-range-picker.iaXigXuW.js.map +1 -0
  69. package/dist/chunks/{dialog-page.CZN5-Ohm.js → dialog-page.BOwnhJze.js} +2 -2
  70. package/dist/chunks/{dialog-page.CZN5-Ohm.js.map → dialog-page.BOwnhJze.js.map} +1 -1
  71. package/dist/chunks/directive.D1-d-C2K.js +28 -0
  72. package/dist/chunks/directive.D1-d-C2K.js.map +1 -0
  73. package/dist/chunks/{draggable-handle.B_E-T3BS.js → draggable-handle.CKuHzAzS.js} +3 -3
  74. package/dist/chunks/{draggable-handle.B_E-T3BS.js.map → draggable-handle.CKuHzAzS.js.map} +1 -1
  75. package/dist/chunks/drawer.BQoyUVOW.js +64 -0
  76. package/dist/chunks/{drawer.GXqb2HPx.js.map → drawer.BQoyUVOW.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.DUDW-Be6.js → dropdown-tag.DNWUbf7x.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.DUDW-Be6.js.map → dropdown-tag.DNWUbf7x.js.map} +1 -1
  79. package/dist/chunks/{dropdown.Bsic3Nll.js → dropdown.CK8cdMyV.js} +458 -457
  80. package/dist/chunks/dropdown.CK8cdMyV.js.map +1 -0
  81. package/dist/chunks/{field-label.DFtyMriH.js → field-label.CLV3nSzz.js} +2 -2
  82. package/dist/chunks/{field-label.DFtyMriH.js.map → field-label.CLV3nSzz.js.map} +1 -1
  83. package/dist/chunks/{file-uploader.CKo27YzT.js → file-uploader.C9YOBRQg.js} +39 -38
  84. package/dist/chunks/{file-uploader.CKo27YzT.js.map → file-uploader.C9YOBRQg.js.map} +1 -1
  85. package/dist/chunks/{filter-bar.Dhghqmhb.js → filter-bar.CqbdRCQD.js} +21 -21
  86. package/dist/chunks/{filter-bar.Dhghqmhb.js.map → filter-bar.CqbdRCQD.js.map} +1 -1
  87. package/dist/chunks/{focus-trap.DcxrXRKl.js → focus-trap.Dl_rHbwH.js} +2 -2
  88. package/dist/chunks/{focus-trap.DcxrXRKl.js.map → focus-trap.Dl_rHbwH.js.map} +1 -1
  89. package/dist/chunks/{footer-actions.Dyi8PTyI.js → footer-actions.zlKq74F1.js} +2 -2
  90. package/dist/chunks/{footer-actions.Dyi8PTyI.js.map → footer-actions.zlKq74F1.js.map} +1 -1
  91. package/dist/chunks/form-layout-group.08QuvVmC.js +81 -0
  92. package/dist/chunks/form-layout-group.08QuvVmC.js.map +1 -0
  93. package/dist/chunks/form-layout-title.Kwve4xv2.js +179 -0
  94. package/dist/chunks/form-layout-title.Kwve4xv2.js.map +1 -0
  95. package/dist/chunks/header-meta.NFZo1ACP.js +243 -0
  96. package/dist/chunks/{header-meta.I2Tztkls.js.map → header-meta.NFZo1ACP.js.map} +1 -1
  97. package/dist/chunks/{header-with-views.MPJPxTzT.js → header-with-views.CB8M1Udi.js} +10 -10
  98. package/dist/chunks/{header-with-views.MPJPxTzT.js.map → header-with-views.CB8M1Udi.js.map} +1 -1
  99. package/dist/chunks/{header.CBzF5Ap9.js → header.Ds0sFKBB.js} +3 -3
  100. package/dist/chunks/{header.CBzF5Ap9.js.map → header.Ds0sFKBB.js.map} +1 -1
  101. package/dist/chunks/{index.Cqv1XuTj.js → index.oOAkh64h.js} +248 -225
  102. package/dist/chunks/{index.Cqv1XuTj.js.map → index.oOAkh64h.js.map} +1 -1
  103. package/dist/chunks/{info-icon.C_ZkQb1d.js → info-icon.1FtkyuYH.js} +3 -3
  104. package/dist/chunks/{info-icon.C_ZkQb1d.js.map → info-icon.1FtkyuYH.js.map} +1 -1
  105. package/dist/chunks/{input-field-password.CA16O5Gv.js → input-field-password.DJKloBB3.js} +24 -25
  106. package/dist/chunks/{input-field-password.CA16O5Gv.js.map → input-field-password.DJKloBB3.js.map} +1 -1
  107. package/dist/chunks/{input-field-phone-number.CTeDyk0e.js → input-field-phone-number.C3fQypln.js} +13 -14
  108. package/dist/chunks/{input-field-phone-number.CTeDyk0e.js.map → input-field-phone-number.C3fQypln.js.map} +1 -1
  109. package/dist/chunks/{input-field.DlEEFday.js → input-field.HgrRdDec.js} +104 -101
  110. package/dist/chunks/input-field.HgrRdDec.js.map +1 -0
  111. package/dist/chunks/{input-time.CIdcQBgS.js → input-time.DxCYIHSf.js} +7 -8
  112. package/dist/chunks/{input-time.CIdcQBgS.js.map → input-time.DxCYIHSf.js.map} +1 -1
  113. package/dist/chunks/{inspector.BdPLtQ1t.js → inspector.BvBC1ABK.js} +3 -3
  114. package/dist/chunks/{inspector.BdPLtQ1t.js.map → inspector.BvBC1ABK.js.map} +1 -1
  115. package/dist/chunks/{layout-row.PGFh3qzc.js → layout-row.BsGdHl3d.js} +8 -8
  116. package/dist/chunks/{layout-row.PGFh3qzc.js.map → layout-row.BsGdHl3d.js.map} +1 -1
  117. package/dist/chunks/{list-item.D34osEIh.js → list-item.E1o7yuEB.js} +2 -2
  118. package/dist/chunks/{list-item.D34osEIh.js.map → list-item.E1o7yuEB.js.map} +1 -1
  119. package/dist/chunks/{listbox-option-tag.12duL_ZH.js → listbox-option-tag.yF6p9iQw.js} +2 -2
  120. package/dist/chunks/{listbox-option-tag.12duL_ZH.js.map → listbox-option-tag.yF6p9iQw.js.map} +1 -1
  121. package/dist/chunks/{modal-fullscreen.BGpyGUGB.js → modal-fullscreen.DmruiE3n.js} +4 -4
  122. package/dist/chunks/{modal-fullscreen.BGpyGUGB.js.map → modal-fullscreen.DmruiE3n.js.map} +1 -1
  123. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js} +4 -4
  124. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.B_CD-6Sn.js.map → modal.vue_vue_type_script_setup_true_lang.CrJQWuzb.js.map} +1 -1
  125. package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js +336 -0
  126. package/dist/chunks/navigation-menu-group.CQ6ImGsJ.js.map +1 -0
  127. package/dist/chunks/{pagination.CbGLdXSQ.js → pagination.vqSlDmeK.js} +2 -2
  128. package/dist/chunks/{pagination.CbGLdXSQ.js.map → pagination.vqSlDmeK.js.map} +1 -1
  129. package/dist/chunks/popover.types.DATOPtuh.js +6 -0
  130. package/dist/chunks/{popover.types.63w2RF7Y.js.map → popover.types.DATOPtuh.js.map} +1 -1
  131. package/dist/chunks/{popper-container.WR8Hb24e.js → popper-container.BH4WxeUj.js} +2 -2
  132. package/dist/chunks/{popper-container.WR8Hb24e.js.map → popper-container.BH4WxeUj.js.map} +1 -1
  133. package/dist/chunks/{promo-banner.DS8jlFES.js → promo-banner.DvV9eXs4.js} +2 -2
  134. package/dist/chunks/{promo-banner.DS8jlFES.js.map → promo-banner.DvV9eXs4.js.map} +1 -1
  135. package/dist/chunks/{radio-group.DpLQ_Wnj.js → radio-group.Cg67ZU0c.js} +3 -3
  136. package/dist/chunks/{radio-group.DpLQ_Wnj.js.map → radio-group.Cg67ZU0c.js.map} +1 -1
  137. package/dist/chunks/{rich-text-editor.CRa59ETT.js → rich-text-editor.u_fKHVgZ.js} +4 -4
  138. package/dist/chunks/{rich-text-editor.CRa59ETT.js.map → rich-text-editor.u_fKHVgZ.js.map} +1 -1
  139. package/dist/chunks/{search-bar.tmX9JctT.js → search-bar.CgSUD89l.js} +5 -6
  140. package/dist/chunks/{search-bar.tmX9JctT.js.map → search-bar.CgSUD89l.js.map} +1 -1
  141. package/dist/chunks/{secondary-nav.KIu9A7pb.js → secondary-nav.BqqNrHZE.js} +20 -20
  142. package/dist/chunks/{secondary-nav.KIu9A7pb.js.map → secondary-nav.BqqNrHZE.js.map} +1 -1
  143. package/dist/chunks/{segmented-control.Dxfpt98K.js → segmented-control.D6Yvxxpc.js} +2 -2
  144. package/dist/chunks/{segmented-control.Dxfpt98K.js.map → segmented-control.D6Yvxxpc.js.map} +1 -1
  145. package/dist/chunks/{selection-card-group.BVxESHZH.js → selection-card-group.C2Av3uyz.js} +11 -11
  146. package/dist/chunks/{selection-card-group.BVxESHZH.js.map → selection-card-group.C2Av3uyz.js.map} +1 -1
  147. package/dist/chunks/set-time-in-date.9-8WOiMT.js +27 -0
  148. package/dist/chunks/set-time-in-date.9-8WOiMT.js.map +1 -0
  149. package/dist/chunks/{sidepanel.BwesEWP_.js → sidepanel.BVQt6Tac.js} +6 -6
  150. package/dist/chunks/{sidepanel.BwesEWP_.js.map → sidepanel.BVQt6Tac.js.map} +1 -1
  151. package/dist/chunks/{structured-list-item.DUWQ4ggz.js → structured-list-item.BhYtSw2f.js} +4 -4
  152. package/dist/chunks/{structured-list-item.DUWQ4ggz.js.map → structured-list-item.BhYtSw2f.js.map} +1 -1
  153. package/dist/chunks/{summary-grid.types.BvZUfgwA.js → summary-grid.types.9sUs0LS0.js} +5 -5
  154. package/dist/chunks/{summary-grid.types.BvZUfgwA.js.map → summary-grid.types.9sUs0LS0.js.map} +1 -1
  155. package/dist/chunks/{tab.DKVHFvuI.js → tab.DWoYKpTv.js} +2 -2
  156. package/dist/chunks/{tab.DKVHFvuI.js.map → tab.DWoYKpTv.js.map} +1 -1
  157. package/dist/chunks/{tag.DyNHhsGt.js → tag.Uu-6AQys.js} +2 -2
  158. package/dist/chunks/{tag.DyNHhsGt.js.map → tag.Uu-6AQys.js.map} +1 -1
  159. package/dist/chunks/{textarea.DNeZr2IZ.js → textarea.QgSLPL7S.js} +2 -2
  160. package/dist/chunks/{textarea.DNeZr2IZ.js.map → textarea.QgSLPL7S.js.map} +1 -1
  161. package/dist/chunks/{timeline-item.CfA1E0zq.js → timeline-item.DfwOm5do.js} +6 -6
  162. package/dist/chunks/{timeline-item.CfA1E0zq.js.map → timeline-item.DfwOm5do.js.map} +1 -1
  163. package/dist/chunks/{tooltip.CuwiX213.js → tooltip.Djn54E1O.js} +3 -3
  164. package/dist/chunks/{tooltip.CuwiX213.js.map → tooltip.Djn54E1O.js.map} +1 -1
  165. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js} +4 -4
  166. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.4vdcgS4f.js.map → tutorial.vue_vue_type_script_setup_true_lang.B5-sWGlz.js.map} +1 -1
  167. package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js +30 -0
  168. package/dist/chunks/use-bento-delayed-hover.Csc3nIWt.js.map +1 -0
  169. package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js → use-cached-selected-values.CtWNiy-e.js} +2 -2
  170. package/dist/chunks/{use-cached-selected-values.C2nbQ4g-.js.map → use-cached-selected-values.CtWNiy-e.js.map} +1 -1
  171. package/dist/chunks/{use-date-input-formatter.DaBZd09a.js → use-date-input-formatter.BshboCF9.js} +2 -2
  172. package/dist/chunks/{use-date-input-formatter.DaBZd09a.js.map → use-date-input-formatter.BshboCF9.js.map} +1 -1
  173. package/dist/code-snippet.js +1 -1
  174. package/dist/dashboard-template.js +1 -1
  175. package/dist/dashed-underline.js +1 -1
  176. package/dist/data-grid-template.js +1 -1
  177. package/dist/data-grid.js +1 -1
  178. package/dist/date-picker.js +2 -2
  179. package/dist/date-range-picker.js +2 -2
  180. package/dist/date-time-picker.js +123 -0
  181. package/dist/date-time-picker.js.map +1 -0
  182. package/dist/draggable.js +1 -1
  183. package/dist/drawer.js +1 -1
  184. package/dist/dropdown.js +3 -3
  185. package/dist/file-uploader.js +1 -1
  186. package/dist/filter-bar.js +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +5 -4
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header-with-views.js +1 -1
  191. package/dist/header.js +1 -1
  192. package/dist/index.js +217 -216
  193. package/dist/index.js.map +1 -1
  194. package/dist/info-icon.js +1 -1
  195. package/dist/input-field-password.js +1 -1
  196. package/dist/input-field-phone-number.js +1 -1
  197. package/dist/input-field.js +1 -1
  198. package/dist/input-time.js +1 -1
  199. package/dist/inspector.js +1 -1
  200. package/dist/internal.js +11 -11
  201. package/dist/layout.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/navigation-menu.js +1 -1
  207. package/dist/pagination.js +1 -1
  208. package/dist/popover.js +2 -2
  209. package/dist/popper-container.js +1 -1
  210. package/dist/promo-banner.js +1 -1
  211. package/dist/radio-group.js +1 -1
  212. package/dist/rich-text-editor.js +1 -1
  213. package/dist/search-bar.js +2 -2
  214. package/dist/secondary-nav.js +1 -1
  215. package/dist/segmented-control.js +1 -1
  216. package/dist/selection-card.js +1 -1
  217. package/dist/sidepanel.js +1 -1
  218. package/dist/structured-list.js +1 -1
  219. package/dist/summary-grid.js +1 -1
  220. package/dist/tabs.js +1 -1
  221. package/dist/tag.js +1 -1
  222. package/dist/textarea.js +1 -1
  223. package/dist/timeline.js +1 -1
  224. package/dist/tutorial.js +1 -1
  225. package/dist/web-types.json +1 -1
  226. package/package.json +6 -6
  227. package/dist/chunks/dashed-underline.DojqhvAa.js +0 -108
  228. package/dist/chunks/dashed-underline.DojqhvAa.js.map +0 -1
  229. package/dist/chunks/date-picker.DUUGSbot.js +0 -269
  230. package/dist/chunks/date-picker.DUUGSbot.js.map +0 -1
  231. package/dist/chunks/date-range-picker.C5CSReZ5.js.map +0 -1
  232. package/dist/chunks/directive.C8kY-ZW-.js +0 -23
  233. package/dist/chunks/directive.C8kY-ZW-.js.map +0 -1
  234. package/dist/chunks/drawer.GXqb2HPx.js +0 -55
  235. package/dist/chunks/dropdown.Bsic3Nll.js.map +0 -1
  236. package/dist/chunks/form-layout-title.B712PesH.js +0 -253
  237. package/dist/chunks/form-layout-title.B712PesH.js.map +0 -1
  238. package/dist/chunks/header-meta.I2Tztkls.js +0 -259
  239. package/dist/chunks/input-field.DlEEFday.js.map +0 -1
  240. package/dist/chunks/navigation-menu-group.D5HMMAuh.js +0 -320
  241. package/dist/chunks/navigation-menu-group.D5HMMAuh.js.map +0 -1
  242. package/dist/chunks/popover.types.63w2RF7Y.js +0 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown.CK8cdMyV.js","sources":["../../../vue2/src/components/dropdown/dropdown.types.ts","../../../vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.ts","../../../vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.ts","../../../vue2/src/components/dropdown/dropdown.keys.ts","../../../vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue","../../../vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue","../../../ui-assets/icons-16/dist/vue/chevron-down-small.vue","../../../ui-assets/icons-16/dist/vue/chevron-up-small.vue","../../../vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue","../../../vue2/src/components/dropdown/composables/use-display-value.ts","../../../vue2/src/components/dropdown/composables/use-keyboard-navigation.ts","../../../vue2/src/components/search-bar/useSearchBarDataFilter.ts","../../../vue2/src/components/dropdown/dropdown.vue"],"sourcesContent":["import type {\n BentoListboxEmptyStateProps as BentoDropdownEmptyStateProps,\n BentoListboxSearchOptions as BentoDropdownSearchOptions,\n BentoListboxVirtulisationOptions as BentoDropdownVirtulisationOptions,\n BentoListboxIsOptionDisabled,\n BentoListboxLazyLoadType,\n BentoListboxOptions,\n BentoListboxSelectedValue,\n} from '../../types/listbox';\nimport { type FormField } from '../../types/form-field';\nexport type { BentoDropdownSearchOptions, BentoDropdownEmptyStateProps, BentoDropdownVirtulisationOptions };\nexport interface BentoDropdownProps extends FormField {\n /**\n * @deprecated Since v2.0.0. Use `aria-label` instead.\n * Defines a string value that labels an interactive element.\n */\n ariaLabel?: string;\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed?: boolean;\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState?: BentoDropdownEmptyStateProps;\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering?: boolean;\n /**\n * Highlights the dropdown in an erroneous state.\n * @deprecated Since v2.0.0. Use `errorMessage` instead.\n */\n error?: boolean;\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems?: boolean;\n /**\n * Function that dertermines which options are disabled from interaction.\n * @type {BentoListboxIsOptionDisabled}\n * @param {BentoListboxOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled?: BentoListboxIsOptionDisabled;\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoListboxOptionItem }\n * @property value.label - Text to be displayed in the option\n * @property value.value - Value of the option\n */\n items?: BentoListboxOptions;\n /**\n * Indicates if new options are lazy loading.\n */\n loading?: boolean;\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading?: boolean;\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType?: BentoListboxLazyLoadType | `${BentoListboxLazyLoadType}`;\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple?: boolean;\n /**\n * Dropdown search options and events.\n * @see BentoDropdownSearchOptions\n */\n search?: BentoDropdownSearchOptions;\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple?: boolean;\n /**\n * @deprecated Since v2.0.0. Do not use. Only the `default` size is supported.\n */\n size?: BentoDropdownSize | `${BentoDropdownSize}`;\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories?: boolean;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n * @deprecated Since v2.0.0. Use `v-model` or `model-value` instead.\n */\n value?: BentoListboxSelectedValue;\n /**\n * The `input` value.\n * Providing an empty string will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected.\n */\n modelValue?: BentoListboxSelectedValue;\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll?: BentoDropdownVirtulisationOptions;\n /**\n * Enables value/label value handling. When `true`, the component expects and emits value/label\n * pair objects instead of primitive values.\n *\n * This affects both the `value` prop and the `input` event payload.\n *\n * - **Input (`value` prop):** Expects a `{ value: string | number, label: string }` object (or an array of them for multi-select).\n * - **Output (`input` event):** Emits a `{ value: string | number, label: string }` object (or an array of them) upon selection.\n *\n * This is particularly useful when a selected item's label is not available in the `items` prop,\n * allowing the component to display the correct label for values loaded from external sources.\n * @default false\n */\n enableValueLabelPair?: boolean;\n}\n\n/**\n * @deprecated Since v2.0.0. Do not use. Only the `default` size is supported.\n */\nexport enum BentoDropdownSize {\n DEFAULT = 'DropdownInputDefault',\n SMALL = 'DropdownInputSmall',\n}\n\nexport {\n /**\n * @deprecated Since v2.0.0. Use string literal instead.\n */\n BentoListboxLazyLoadType as BentoDropdownLazyLoadType,\n BentoListboxEvent as BentoDropdownEvent,\n} from '@/types/listbox';\n","import { computed, ref, type Ref, watch } from 'vue';\nimport { BentoListboxEvent, type BentoListboxOptions } from '@/types/listbox';\nimport { BentoDropdownEvent } from '../../../dropdown.types';\nimport { useI18n } from '@/utils/ts/i18n';\nimport messages from '../messages.json';\n\ntype MessageSchema = (typeof messages)['en-US'];\n\n/**\n * A composable that handles all dropdown options option selecting logic & listeners.\n * If single select dropdown then emits straight up to dropdown.\n * If multi select dropdown then stores selections in internal state and only emits when Apply button is pressed.\n *\n * @param selectedValue The selectedValue property passed into the dropdown options container component.\n * @param multiple The multiple property passed into the dropdown options container component.\n * @param isOpen The isOpen property passed into the dropdown options container component.\n * @param emit The emit function for the dropdown options container component.\n */\nexport const useDropdownOptionsListbox = (\n selectedValue: Ref<BentoListboxOptions>,\n multiple: Ref<boolean>,\n isOpen: Ref<boolean>,\n emit: (event: BentoListboxEvent | BentoDropdownEvent, selectedValue?: BentoListboxOptions) => void\n) => {\n const internalSelectedValue = ref(selectedValue.value);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n watch(selectedValue, () => {\n internalSelectedValue.value = selectedValue.value;\n });\n\n // Multi-select dropdown cancel and apply button logic\n const isApplyButtonDisabled = computed(\n () => JSON.stringify(internalSelectedValue.value) === JSON.stringify(selectedValue.value)\n );\n\n const onApplyClick = () => {\n emit(BentoListboxEvent.SELECT, internalSelectedValue.value);\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onCancelClick = () => {\n internalSelectedValue.value = selectedValue.value;\n emit(BentoDropdownEvent.CLOSE_DROPDOWN);\n };\n\n const onOutsideDropdownClick = () => {\n if (isOpen.value && multiple.value) {\n internalSelectedValue.value = selectedValue.value;\n }\n };\n\n const actions = computed(() => [\n {\n title: t('apply') as string,\n event: onApplyClick,\n disabled: isApplyButtonDisabled.value,\n },\n {\n title: t('cancel') as string,\n event: onCancelClick,\n },\n ]);\n\n // Click and keyboard navigation event listners\n const onOptionSelected = (newSelectedValue: BentoListboxOptions) => {\n internalSelectedValue.value = newSelectedValue;\n if (!multiple.value) {\n emit(BentoDropdownEvent.SELECT, newSelectedValue);\n }\n };\n\n const onTabKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.TAB);\n };\n\n const onEnterKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.ENTER);\n };\n\n const onSpaceKey = (newSelectedValue: BentoListboxOptions) => {\n onOptionSelected(newSelectedValue);\n emit(BentoDropdownEvent.SPACE);\n };\n\n const onEscapeKey = () => {\n onCancelClick();\n emit(BentoListboxEvent.ESCAPE);\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const listeners = {\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n [BentoListboxEvent.TAB]: onTabKey,\n [BentoListboxEvent.SPACE]: onSpaceKey,\n [BentoListboxEvent.ENTER]: onEnterKey,\n };\n\n return {\n // Values\n actions,\n internalSelectedValue,\n\n // Methods\n listeners,\n onEscapeKey,\n onOutsideDropdownClick,\n };\n};\n","<template>\n <component\n :is=\"popperContainerOrPopoverComponent\"\n v-if=\"isDropdownOpen\"\n class=\"b-dropdown-options-container\"\n :class=\"conditionalClasses\"\n v-bind=\"popperContainerOrPopoverProps\"\n >\n <div @keydown.esc=\"onEscapeKey\">\n <bento-listbox\n :id=\"id\"\n ref=\"dropdownOptionsListboxRef\"\n :aria-label=\"ariaLabel\"\n class=\"b-dropdown-options-container__listbox\"\n :class=\"conditionalListboxClasses\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"items\"\n :selected-value=\"internalSelectedValue\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :no-results-message=\"noResultsMessage\"\n :searching=\"searching\"\n :loading=\"loading\"\n :lazy-load-type=\"lazyLoadType\"\n :has-more-items=\"hasMoreItems\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-listbox>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, type PropType, ref, toRefs, useSlots } from 'vue';\n import { BentoListbox } from '@/internal';\n import {\n type BentoListboxEvent,\n type BentoListboxIsOptionDisabled,\n type BentoListboxOptions,\n } from '@/types/listbox';\n import { PopperContainer } from '@/components/popper-container';\n import {\n type BentoDropdownEmptyStateProps,\n type BentoDropdownEvent,\n BentoDropdownLazyLoadType,\n type BentoDropdownVirtulisationOptions,\n } from '../../dropdown.types';\n import { useI18n } from '@/utils/ts/i18n';\n import { BentoPopover } from '@/components/popover';\n import { useDropdownOptionsListbox } from './composables/use-dropdown-options-listbox';\n import { generateUid } from '@/core/utils/ts';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const slots = useSlots();\n\n const emit = defineEmits<{\n /**\n * Emitted when the dropdown is closing.\n */\n (e: BentoDropdownEvent.CLOSE_DROPDOWN);\n\n /**\n * Emitted when the `ENTER` key is pressed\n */\n (e: BentoListboxEvent.ENTER, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `ESCAPE` key is pressed\n */\n (e: BentoListboxEvent.ESCAPE);\n\n /**\n * Emitted when an item is selected\n */\n (e: BentoListboxEvent.SELECT, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: BentoDropdownEvent.SHOW_MORE);\n\n /**\n * Emitted when the `SPACE` key is pressed\n */\n (e: BentoListboxEvent.SPACE, newSelectedValue: BentoListboxOptions);\n\n /**\n * Emitted when the `TAB` key is pressed\n */\n (e: BentoListboxEvent.TAB, newSelectedValue: BentoListboxOptions);\n }>();\n\n const props = defineProps({\n /**\n * Defines a string value that labels an interactive element.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Indicates that dropdown items are loading\n */\n componentLoading: { type: Boolean, default: false },\n\n /**\n * Empty state props used with the inner empty state component which is displayed when no search results are found.\n */\n emptyState: {\n type: Object as PropType<BentoDropdownEmptyStateProps>,\n default: undefined,\n },\n\n /**\n * Disables dropdown functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Indicates whether there are more items to load\n */\n hasMoreItems: { type: Boolean, default: false },\n\n /**\n * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.\n */\n id: { type: String, required: true },\n\n /**\n * Function that allows the options to be disabled\n *\n * @type {BentoDropdownIsOptionDisabled}\n * @param {BentoDropdownOptionItem} option - Dropdown option object\n * @param {string} option.label - Option's label text\n * @param {string|number} option.value - Option's value\n * @param {unknown} option.data - Option's extra data to be passed to the default slot\n */\n isOptionDisabled: {\n type: Function as PropType<BentoListboxIsOptionDisabled>,\n default: undefined,\n },\n\n /**\n * The option elements to populate the dropdown with.\n * It must be an array of {@see BentoDropdownOptionItem }\n * * @property {string} value.label - Text to be displayed in the option\n * * @property {string,number} value.value - Value of the option\n */\n items: {\n type: Array as PropType<BentoListboxOptions>,\n required: true,\n },\n\n /**\n * The type of `Lazy Load`.\n * Type \"automatic\" will enable infinite scrolling\n * Type \"button\" will enable lazy loading with \"Show more\" button\n */\n lazyLoadType: {\n type: String as PropType<BentoDropdownLazyLoadType | `${BentoDropdownLazyLoadType}`>,\n default: BentoDropdownLazyLoadType.AUTOMATIC,\n validator: (value: BentoDropdownLazyLoadType) => Object.values(BentoDropdownLazyLoadType).includes(value),\n },\n\n /**\n * Indicates if new options are lazy loading.\n */\n loading: { type: Boolean, default: false },\n\n /**\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the container can be displayed.\n */\n open: { type: Boolean, required: true },\n\n /**\n * The `input` value.\n * Providing an empty string or empty array will select no options.\n * Set to an empty string `''` if you don't want any of the available options to be selected for single select\n */\n selectedValue: {\n type: Array as PropType<BentoListboxOptions>,\n default: null,\n },\n\n /**\n * Flag that indicates that an external search it's being made\n * to filter out the items inside the the multi-select listbox\n *\n * If enabled, hides the \"Select all\" checkbox in \"multiple\" mode.\n */\n searching: BentoListbox.props.searching,\n\n /**\n * If enabled, dropdown will display non-selectable, static categories\n */\n staticCategories: { type: Boolean, default: false },\n\n /**\n * Reference to the DOM element or Vue component for positioning\n * the Dropdown container.\n */\n targetElement: { type: PopperContainer.props.targetElement.type, required: true },\n\n /**\n * Enables virtual scrolling if set to true or by providing an object with itemHeight function.\n * The itemHeight function is used to calculate the height of rendered item given it's index.\n */\n virtualScroll: {\n type: [Boolean, Object] as PropType<BentoDropdownVirtulisationOptions>,\n default: false,\n },\n });\n\n const { selectedValue, multiple } = toRefs(props);\n const dropdownOptionsListboxRef = ref(null);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const isDropdownOpen = computed(() => props.open && !props.disabled);\n const noResultsMessage = computed(() => t('noOptionsMatchThisSearch') as string);\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown-options-container--single': !props?.multiple,\n }));\n\n const conditionalListboxClasses = computed(() => ({\n 'b-dropdown-options-container__listbox--single': !props?.multiple,\n }));\n\n const { actions, internalSelectedValue, listeners, onEscapeKey, onOutsideDropdownClick } =\n useDropdownOptionsListbox(selectedValue, multiple, isDropdownOpen, emit);\n\n // Use different components depending on if the dropdown is a single or multi-select\n const popperContainerOrPopoverComponent = computed(() => (props?.multiple ? BentoPopover : PopperContainer));\n\n const popperContainerOrPopoverProps = computed(() => {\n const containerMinAndMaxWidth = {\n 'min-width': `${(props?.targetElement as HTMLElement)?.clientWidth}px`,\n 'max-width': 'min(500px, 95%)',\n };\n\n return props?.multiple\n ? ({\n actionsLayout: 'space-between',\n ariaLabel: props.ariaLabel,\n actions: actions.value,\n divider: true,\n fallbackPosition: ['top-start'],\n id: generateUid(`dropdown-options-${props.id}`),\n open: props.open,\n position: 'bottom-start',\n style: {\n width: 'auto',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof BentoPopover>['$props'])\n : ({\n fallbackPosition: ['top-start'],\n offset: [0, 8],\n position: 'bottom-start',\n style: {\n display: isDropdownOpen.value ? 'block' : 'none',\n ...containerMinAndMaxWidth,\n },\n targetElement: props.targetElement,\n } as InstanceType<typeof PopperContainer>['$props']);\n });\n\n defineExpose({\n onOutsideDropdownClick,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Dropdown options container.\n * It lists all the available options.\n *\n * @example\n * <bento-dropdown-options-container\n * v-if=\"inputContainerRef\" <!-- Ref to the input to match the width -->\n * :id=\"dropdownOptionsContainerId\"\n * :target-element=\"inputContainerRef\"\n * :aria-label=\"ariaLabel\"\n * :open=\"isDropdownOpen\"\n * :disabled=\"disabled\"\n * :multiple=\"multiple\"\n * :selected=\"value\"\n * :isOptionDisabled=\"option => option.value === 2\"\n * :items=\"[{\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * }]\"\n * @select=\"onOptionSelected\"\n * />\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-dropdown-options-container',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-options-container.scss\" />\n","import { type PropType } from 'vue';\nimport { type Booleanish } from '@/types/prop-types';\n\n// TODO: Change this to script setup + Typescript interface\nexport const DropdownBaseTextboxProps = {\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * 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.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * Custom debounce time. Default: 300\n */\n debounceTime: { type: Number, default: 300 },\n};\n\nexport enum DropdownBaseTextboxState {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n HAS_ITEMS = 'has-items',\n OPENED = 'opened',\n ERROR = 'error',\n}\n\nexport enum DropdownBaseTextboxEvent {\n OPEN = 'dropdown-base-open',\n KEYDOWN = 'dropdown-base-keydown',\n CLOSE = 'dropdown-base-close',\n INPUT = 'dropdown-base-input',\n CLEAR = 'dropdown-base-clear',\n}\n\nexport default DropdownBaseTextboxProps;\n","export const DROPDOWN_SMALL_SIZE_INJECTION_KEY = Symbol('dropdown small size injection key');\nexport const DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY = Symbol('dropdown underline style injection key');\n","<template>\n <div\n :class=\"$attrs.class\"\n data-testid=\"textbox-wrapper\"\n @click=\"onToggleDropdown\"\n @keydown.escape=\"onCloseDropdown\"\n >\n <bento-typography\n class=\"b-dropdown-base-textbox\"\n :class=\"conditionalClasses\"\n :variant=\"isUnderlineStyle ? 'title' : 'body'\"\n el=\"div\"\n data-testid=\"base-textbox\"\n >\n <input\n v-if=\"shouldShowInput\"\n v-bind=\"ariaAttributes\"\n :id=\"textboxId\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n role=\"combobox\"\n type=\"text\"\n aria-autocomplete=\"list\"\n size=\"1\"\n :value=\"open ? value : displayValue\"\n :disabled=\"disabled ? true : null\"\n :readonly=\"readonly\"\n :required=\"showRequiredAttribute\"\n @keydown=\"$emit(DropdownBaseTextboxEvent.KEYDOWN, $event)\"\n @keydown.enter=\"onToggleDropdown\"\n @input=\"onInputEvent\"\n />\n <div\n v-else\n :id=\"textboxId\"\n v-bind=\"ariaAttributes\"\n ref=\"textbox\"\n class=\"b-dropdown-base-textbox__input\"\n :class=\"comboboxConditionalClasses\"\n :aria-readonly=\"readonly ? 'true' : null\"\n role=\"combobox\"\n :tabindex=\"disabled ? -1 : 0\"\n >\n <template v-if=\"shouldShowSingleSelectSlot\">\n <slot v-if=\"hasSlot('display-value')\" v-bind=\"selectedValueItem\" name=\"display-value\"></slot>\n <slot v-else v-bind=\"selectedValueItem\">\n {{ displayValue }}\n </slot>\n </template>\n <template v-else-if=\"shouldShowMultipleSlot\">\n <div class=\"b-dropdown-base-textbox__input-multiple-selected\">\n <div v-for=\"singleItem of selectedValueItems\" :key=\"singleItem.value\">\n <div class=\"b-dropdown-base-textbox__input-selected-element\">\n <slot v-bind=\"singleItem\">\n {{ displayValue }}\n </slot>\n </div>\n </div>\n </div>\n </template>\n <template v-else>{{ displayValue }}</template>\n </div>\n <span v-if=\"additionalItemsSelected\" class=\"b-dropdown-base-textbox__additional-items\">\n {{ additionalItemsSelected }}\n </span>\n <span v-if=\"hasSlot('icon') && !isFiltering\" class=\"b-dropdown-base-textbox__icon\" aria-hidden=\"true\">\n <slot name=\"icon\"></slot>\n </span>\n <span\n v-if=\"isFiltering\"\n class=\"b-dropdown-base-textbox__clear-search\"\n :tabindex=\"disabled ? -1 : 0\"\n data-testid=\"clear-search-button\"\n @click.stop=\"onClearSearch\"\n @keydown.enter.stop=\"onClearSearch\"\n @keyup.space=\"onClearSearch\"\n >\n <cross-circle-fill-small-icon v-if=\"size === BentoDropdownSize.SMALL\" :svg-title=\"t('clearSearch')\" />\n <cross-circle-fill-icon v-else :svg-title=\"t('clearSearch')\" />\n </span>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, nextTick, type PropType, ref, useAttrs, useSlots, watch } from 'vue';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { BentoTypography } from '@/components/typography';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import type { HTMLAttributes } from 'vue/types/jsx.d.ts';\n import { DropdownBaseTextboxEvent, DropdownBaseTextboxState } from './dropdown-base-textbox.types';\n import CrossCircleFillIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import { DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY } from '../../dropdown.keys';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * If the combobox DOM element should be an `input` element.\n */\n alwaysComboboxIsInput: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * 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.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox.\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * Dropdown size\n */\n size: {\n type: String as PropType<BentoDropdownSize | `${BentoDropdownSize}`>,\n default: null,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the \"clear\" button is clicked\n */\n (e: DropdownBaseTextboxEvent.CLEAR);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: DropdownBaseTextboxEvent.CLOSE);\n\n /**\n * Emitted when `dynamicFiltering` is enabled and a search input is entered\n */\n (e: DropdownBaseTextboxEvent.INPUT, searchValue: string);\n\n /**\n * Emitted when any key is pressed and the focus is on the input field\n */\n (e: DropdownBaseTextboxEvent.KEYDOWN, event: KeyboardEvent);\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: DropdownBaseTextboxEvent.OPEN);\n }>();\n\n const textbox = ref(null);\n const textboxId = generateUid('textbox');\n\n // Inject underline style key to change the dropdown layout\n const isUnderlineStyle = inject(DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-base-textbox--${DropdownBaseTextboxState.HAS_ITEMS}`]: !!props.additionalItemsSelected,\n 'b-dropdown-base-textbox--underline': isUnderlineStyle,\n }));\n\n const showRequiredAttribute = computed(() =>\n shouldShowInput.value && attrs['aria-required'] ? ('true' as Booleanish) : null\n );\n\n const comboboxConditionalClasses = computed(() => ({\n [`b-dropdown-base-textbox__input--dynamic-filtering`]: props.dynamicFiltering,\n }));\n\n const isFiltering = computed(() => props.dynamicFiltering && !!props.value && props.open);\n\n const ariaAttributes = computed(\n () =>\n ({\n 'aria-haspopup': 'listbox',\n 'aria-controls': props.ariaControls,\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n 'aria-expanded': props.ariaExpanded ? 'true' : 'false',\n 'aria-labelledby': props.ariaLabelledby,\n 'aria-label': props.ariaLabelledby ? null : props.ariaLabel,\n 'aria-invalid': props.isInvalid,\n 'aria-disabled': props.disabled ? true : null,\n 'aria-required': attrs['aria-required'] as Booleanish,\n }) as HTMLAttributes\n );\n // Cast selectedValueItem if it is an array of selected items\n const selectedValueItems = computed(() =>\n props.multiple ? (props.selectedValueItem as Array<BentoListboxOptionItem>) : []\n );\n\n const shouldShowInput = computed(() => props.dynamicFiltering && (props.open || props.alwaysComboboxIsInput));\n const shouldShowSingleSelectSlot = computed(() => props.selectedValueItem && !props.multiple);\n const shouldShowMultipleSlot = computed(\n () =>\n props.multiple &&\n props.selectedValueItem &&\n selectedValueItems.value.length > 0 &&\n props.showSlotContentInMultiple\n );\n\n watch(\n () => shouldShowInput.value,\n () => {\n if (shouldShowInput.value && !props.alwaysComboboxIsInput) {\n nextTick(() => {\n textbox.value.focus();\n });\n }\n }\n );\n\n const onOpenDropdown = async () => {\n if (!props.disabled && !props.readonly) {\n emit(DropdownBaseTextboxEvent.OPEN);\n // wait for popover to open before setting focus\n await nextTick();\n textbox.value.focus();\n }\n };\n\n const onCloseDropdown = () => {\n if (props.open) {\n textbox.value.focus();\n emit(DropdownBaseTextboxEvent.CLOSE);\n }\n };\n\n const onToggleDropdown = (event: Event) => {\n const isDynamicFilteringInputClickEvent = props.open && (event.target as HTMLDivElement).tagName === 'INPUT';\n if (isDynamicFilteringInputClickEvent) {\n /**\n * When there's a click even on the input during filtering\n * and the popover is open, do not toggle the popover.\n * Allow for click events inside the input field\n */\n return null;\n }\n\n return props.open ? onCloseDropdown() : onOpenDropdown();\n };\n\n const onClearSearch = () => {\n emit(DropdownBaseTextboxEvent.CLEAR);\n emit(DropdownBaseTextboxEvent.INPUT, '');\n textbox.value.focus();\n };\n const onInputEvent = (event: Event) => {\n if (!props.readonly && !props.disabled) {\n emit(DropdownBaseTextboxEvent.INPUT, (event.target as HTMLInputElement).value);\n } else {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n\n const focus = () => {\n textbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * Only for internal use, implements the logic of the textbox element to be implemented in the combobox.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'dropdown-base-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-base-textbox.scss\" />\n","<template>\n <div class=\"b-dropdown-default-textbox\" :class=\"conditionalClasses\" data-testid=\"default-textbox\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-default-textbox__textbox\"\n :value=\"value\"\n v-on=\"listeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope ?? {}\" />\n </template>\n <template #icon>\n <div class=\"b-dropdown-default-textbox__chevron\">\n <chevron-up-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import { computed, defineComponent, type PropType, ref, useSlots } from 'vue';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import { type Booleanish } from '@/types/prop-types';\n import { type BentoListboxOptionItem } from '@/types/listbox';\n import { stopEventPropagation } from '@/utils/ts/events';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '../dropdown-base-textbox/dropdown-base-textbox.types';\n import ChevronDownIcon from '@adyen/ui-assets-icons-16/vue/chevron-down';\n import ChevronUpIcon from '@adyen/ui-assets-icons-16/vue/chevron-up';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: {\n type: String,\n required: true,\n },\n\n /**\n * 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.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: {\n type: String,\n default: null,\n },\n\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The selected value's list box item.\n */\n selectedValueItem: {\n type: [Object, Array] as PropType<BentoListboxOptionItem | Array<BentoListboxOptionItem>>,\n default: undefined,\n },\n\n /**\n * Toggles whether to use the slot content select items shown in the textbox in multiple mode.\n */\n showSlotContentInMultiple: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n\n /*\n * If enabled, the user will be able to select multiple items.\n */\n multiple: { type: Boolean, default: false },\n });\n\n const baseTextbox = ref(null);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.ERROR}`]:\n !props.disabled && !props.readonly && props.isInvalid,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-default-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-default-textbox--condensed': props.condensed,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-default-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-default-textbox.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path 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\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path 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\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","<template>\n <div class=\"b-dropdown-small-textbox\" :class=\"conditionalClasses\">\n <dropdown-base-textbox\n ref=\"baseTextbox\"\n v-bind=\"{ ...$attrs, ...$props }\"\n class=\"b-dropdown-small-textbox__textbox\"\n :size=\"BentoDropdownSize.SMALL\"\n v-on=\"listeners\"\n >\n <template #icon>\n <div class=\"b-dropdown-small-textbox__chevron\">\n <chevron-up-small-icon v-show=\"isDropdownOpen\" svg-title=\"opened\" />\n <chevron-down-small-icon v-show=\"!isDropdownOpen\" svg-title=\"closed\" />\n </div>\n </template>\n </dropdown-base-textbox>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, type PropType, ref } from 'vue';\n import {\n DropdownBaseTextboxEvent,\n DropdownBaseTextboxState,\n } from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types';\n import { BentoDropdownSize } from '@/components/dropdown/dropdown.types';\n import { type Booleanish } from '@/types/prop-types';\n import DropdownBaseTextbox from '@/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue';\n import ChevronDownSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-down-small';\n import ChevronUpSmallIcon from '@adyen/ui-assets-icons-16/vue/chevron-up-small';\n import { stopEventPropagation } from '@/utils/ts/events';\n import { DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY } from '../../dropdown.keys';\n\n const emit = defineEmits<{\n /**\n * Emitted on clearing the input.\n */\n (e: 'clear');\n\n /**\n * Emitted on click, space and enter user events. It will open the dropdown.\n */\n (e: 'close');\n\n /**\n * Emitted on input event.\n */\n (e: 'input', newInput: string);\n\n /**\n * Emitted on keydown event.\n */\n (e: 'keydown', keydownEvent: KeyboardEvent);\n\n /**\n * Emitted on click, space, enter and esc user events. It will close the dropdown.\n */\n (e: 'open');\n }>();\n\n const props = defineProps({\n /**\n * The number of additional items that have been selected in the dropdown.\n */\n additionalItemsSelected: { type: [Number, String] as PropType<number | string>, default: 0 },\n\n /**\n * Sets the aria-controls attribute on the textbox. This should correspond to the popover's id that the textbox triggers.\n */\n ariaControls: { type: String, required: true },\n\n /**\n * 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.\n */\n ariaExpanded: {\n type: [String, Boolean] as PropType<Booleanish>,\n required: true,\n },\n\n /**\n * If no label element is used then the aria-label is be set should be set.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Corresponds to the label's id that labels the textbox element.\n */\n ariaLabelledby: { type: String, default: null },\n\n /**\n * Disables any textbox functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Selected option's label\n */\n displayValue: { type: String, default: null },\n\n /**\n * Sets the possibility to type into the textbox\n */\n dynamicFiltering: { type: Boolean, default: false },\n\n /**\n * Marks the textbox as invalid, rendering an error state\n */\n isInvalid: { type: Boolean, default: false },\n\n /**\n * Indicates if the dropdown is open so that\n * the respective event can be emitted\n */\n open: { type: Boolean, default: false },\n\n /**\n * Sets the dropdown to readonly state\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * The input value\n */\n value: { type: String, default: '' },\n });\n\n const baseTextbox = ref(null);\n\n // Inject underline style key to change the dropdown layout\n const isUnderlineStyle = inject(DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY, false);\n\n const conditionalClasses = computed(() => ({\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.DISABLED}`]: props.disabled,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.READONLY}`]: props.readonly,\n [`b-dropdown-small-textbox--${DropdownBaseTextboxState.OPENED}`]: props.open,\n 'b-dropdown-small-textbox--underline': isUnderlineStyle,\n }));\n\n const isDropdownOpen = computed(() => props.open && !props.disabled && !props.readonly);\n\n const onInput = (newInput: string) => {\n emit('input', newInput);\n };\n const onKeyDown = (e: KeyboardEvent) => {\n emit('keydown', e);\n };\n const openDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('open');\n };\n const closeDropdown = (e: Event) => {\n stopEventPropagation(e);\n emit('close');\n };\n const clearValue = (e: Event) => {\n stopEventPropagation(e);\n emit('clear');\n };\n\n const listeners = {\n [DropdownBaseTextboxEvent.INPUT]: onInput,\n [DropdownBaseTextboxEvent.OPEN]: openDropdown,\n [DropdownBaseTextboxEvent.CLOSE]: closeDropdown,\n [DropdownBaseTextboxEvent.CLEAR]: clearValue,\n [DropdownBaseTextboxEvent.KEYDOWN]: onKeyDown,\n };\n\n const focus = () => {\n baseTextbox.value.focus();\n };\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * For internal use only, textbox component in its small variant used in the dropdown component.\n */\n export default defineComponent({\n name: 'dropdown-small-textbox',\n inheritAttrs: false,\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown-small-textbox.scss\" />\n","import { computed, type Ref } from 'vue';\nimport { type UseDisplayValueOptions } from './use-display-value.types';\nimport { type BentoListboxOptions } from '@/types/listbox';\n\n/**\n * Generates the `displayValue` for the Category Multi Select based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * @param options Multi select options\n * @returns The text to be displayed by the dropdown\n */\nconst categoryMultiSelect = (selectedValues: Ref<BentoListboxOptions>, items: Ref<BentoListboxOptions>) =>\n items.value\n .reduce((acc, option) => {\n // Category items\n if (option.items) {\n const selectedCategoryOptions = option.items.filter(categoryOption =>\n selectedValues.value.find(selectedOption => selectedOption.value === categoryOption.value)\n );\n\n // If the category is fully selected add the category name\n const isCategoryFullySelected = selectedCategoryOptions.length === option.items.length;\n if (isCategoryFullySelected) {\n acc.push(option.displayValue ?? option.label);\n } else {\n // If category is partially selected add each selected option and category\n selectedCategoryOptions.forEach(({ label, displayValue }) => acc.push(displayValue ?? label));\n }\n }\n\n // Non-category option\n if (selectedValues.value.find(selectedOption => selectedOption.value === option.value)) {\n acc.push(option.displayValue ?? option.label);\n }\n\n return acc;\n }, [])\n .join(', ');\n\n/**\n * Generates the `displayValue` for the Dropdown based on\n * the selection, the placeholder or it can be empty if there's nothing to show.\n *\n * When there is a selected value but the value is not present in the list, the\n * value is then returned as there is no way to know what the text/label is.\n *\n * @param options Options needed to calculate the display value based on the type of Dropdown (single, multi, category)\n * @returns The text to be displayed by the dropdown\n */\nexport const useDisplayValue = ({ items, placeholder, selectedValues, isMultiSelect }: UseDisplayValueOptions) => {\n const isCategoryMultilevel = computed(\n () => isMultiSelect.value && items.value.find(option => option.items?.length)\n );\n\n const computedDisplayValue = computed(() => {\n // If no value selected, return placeholder or nothing\n if (!selectedValues.value.length) {\n return placeholder.value || null;\n }\n\n // Category multi select\n if (isCategoryMultilevel.value) {\n return categoryMultiSelect(selectedValues, items);\n }\n\n return selectedValues.value.map(({ label, displayValue }) => displayValue ?? label).join(', ');\n });\n\n return computedDisplayValue;\n};\n","import { BentoKeyboardNavigationKeyDownEvent } from '@/types/keyboard-navigation';\nimport { BentoListboxEvent } from '@/types/listbox';\nimport { computed, nextTick, type Ref } from 'vue';\nimport {\n type UseListboxKeyboardNavigationOptions,\n type UseTextboxKeyboardNavigationOptions,\n} from './use-keyboard-navigation.types';\n\n/**\n * Returns the focus to the textbox of the dropdown if it exists\n * when the dropdown is being closed.\n * @param elementToFocusOn Reference to the input container\n */\nconst focusOnTextbox = (elementToFocusOn: Ref) => {\n elementToFocusOn.value.$children?.[0].$refs.textbox.focus();\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's textbox for Single and Multi select.\n * Adds support for the keys:\n *\n * - Arrow Down\n * - Arrow Up\n * - Home key\n * - End key\n * - Space key\n * - Enter key\n * - Tab\n * - Escape key\n *\n * @param options Options from the Dropdown to handle the navigation\n * @param toggleDropdown Function to open/close the Dropdown\n * @param openDropdown Function to open the Dropdown\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's textbox\n */\nexport const useTextboxKeyboardNavigation = (\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering,\n items,\n isMultiple,\n totalItemCount,\n isVirtualScroll,\n }: UseTextboxKeyboardNavigationOptions,\n toggleDropdown: () => void,\n openDropdown: () => void,\n closeDropdown: () => void\n) => {\n const focusOnOption = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n items.value[index]?.focus();\n };\n\n const focusOnChip = async (index: number) => {\n if (isDynamicFltering.value) {\n await nextTick();\n }\n\n const chips =\n optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(\n 'button'\n );\n\n if (chips?.length) {\n chips[index]?.focus();\n } else {\n focusOnOption(index);\n }\n };\n\n const setListboxFocusedIndex = (selectedIndex: number) => {\n return optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(\n selectedIndex\n );\n };\n\n const navigateToItem = async (index: number) => {\n await optionsContainerRef.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(index);\n };\n\n /**\n * Navigates to an option by index using different strategies depending on scrolling mode.\n * When virtual scrolling is enabled, `navigateToItem` scrolls the virtual list to render\n * the target item before focusing it. Otherwise, the item is already in the DOM so we\n * directly update the focused index and move focus.\n */\n const navigateToOption = (index: number) => {\n nextTick(() => {\n if (isVirtualScroll) {\n navigateToItem(index);\n } else {\n setListboxFocusedIndex(index);\n focusOnOption(index);\n }\n });\n };\n\n const skipToFirstOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n navigateToOption(0);\n };\n\n const skipToLastOption = () => {\n if (!isDropdownOpen.value) {\n openDropdown();\n }\n\n nextTick(() => {\n navigateToOption(isVirtualScroll ? totalItemCount.value - 1 : items.value.length - 1);\n });\n };\n\n const onArrowDown = ({ detail: event }) => {\n event.preventDefault();\n\n skipToFirstOption();\n };\n\n const onArrowUp = ({ detail: event }) => {\n event.preventDefault();\n\n skipToLastOption();\n };\n\n const onHomeKey = () => {\n skipToFirstOption();\n };\n\n const onEndKey = () => {\n skipToLastOption();\n };\n\n const onSpaceKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n navigateToOption(selectedValueIndex.value);\n }\n }\n };\n\n const onEnterKey = ({ detail: event }) => {\n event.preventDefault();\n toggleDropdown();\n if (isDropdownOpen.value) {\n if (isMultiple) {\n focusOnChip(0);\n } else {\n navigateToOption(selectedValueIndex.value);\n }\n }\n };\n\n const onTab = () => {\n // tab should not navigate through a combobox\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n };\n\n const onEscapeKey = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n focusOnTextbox(inputContainerRef);\n }\n };\n\n const textboxKeyboardNavigationListeners = computed(() => ({\n [BentoKeyboardNavigationKeyDownEvent.ARROW_DOWN]: onArrowDown,\n [BentoKeyboardNavigationKeyDownEvent.ARROW_UP]: onArrowUp,\n [BentoKeyboardNavigationKeyDownEvent.HOME]: onHomeKey,\n [BentoKeyboardNavigationKeyDownEvent.END]: onEndKey,\n ...(!isDynamicFltering.value ? { [BentoKeyboardNavigationKeyDownEvent.SPACE]: onSpaceKey } : {}),\n [BentoKeyboardNavigationKeyDownEvent.ENTER]: onEnterKey,\n ...(!isDynamicFltering.value ? { [BentoKeyboardNavigationKeyDownEvent.TAB]: onTab } : {}),\n [BentoKeyboardNavigationKeyDownEvent.ESCAPE]: onEscapeKey,\n }));\n\n return textboxKeyboardNavigationListeners;\n};\n\n/**\n * Controls the keyboard navigation inside the Dropdown's listbox container for Single and Multi select.\n * Adds support for the keys:\n *\n * - Escape key\n * - Enter Key\n * - Tab\n * - Space key\n *\n * @param options Options from the Dropdown to handle the navigation inside the listbox\n * @param closeDropdown Function to close the Dropdown\n * @returns List of event listeners available to the Dropdown's listbox container\n */\nexport const useListboxKeyboardNavigation = (\n { inputContainerRef, isDropdownOpen }: UseListboxKeyboardNavigationOptions,\n closeDropdown: () => void\n) => {\n const closeDropdownAndFocusOnTextbox = () => {\n if (isDropdownOpen.value) {\n closeDropdown();\n }\n nextTick(() => {\n focusOnTextbox(inputContainerRef);\n });\n };\n\n const listboxKeyboardNavigationListeners = {\n [BentoListboxEvent.ENTER]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.ESCAPE]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.TAB]: closeDropdownAndFocusOnTextbox,\n [BentoListboxEvent.SPACE]: closeDropdownAndFocusOnTextbox,\n };\n\n return listboxKeyboardNavigationListeners;\n};\n","import { computed, ref, type Ref, watch } from 'vue';\nimport { type BentoSearchBarItem } from './search-bar.types';\nimport { debounce } from '@/utils/ts/debounce';\n\n/**\n * Filters an array {@see BentoSearchBarData} containing elements of type {@see BentoSearchBarItem}\n * by the {@param searchTerm}.\n *\n * @param {Ref<String>} searchTerm - Text that satisfies the search criteria.\n * @param {Ref<BentoSearchBarData>} data - Array to be filtered by {@param searchTerm}\n * @param {Function} searchEvent - Optional search event to trigger on search term change.\n * @param {Ref<Boolean>} ignoreGroups - Boolean that determines if search returns items with subitems\n * @param {Number} debounceTime - Optional debounce time for the search event.\n * @returns {Ref<BentoSearchBarData>} New instance of the array filtered by the {@param searchTerm} text\n */\nexport function useSearchBarFilter<T extends BentoSearchBarItem>(\n searchTerm: Ref<string>,\n data: Ref<Array<T>>,\n searchEvent?: (searchValue: string) => void,\n ignoreGroups?: Ref<boolean>,\n debounceTime?: number\n) {\n const searchTermRef = ref(searchTerm);\n const dataRef = ref(data);\n\n const findHits = (searchTermLowerCased: string, options: Array<BentoSearchBarItem> = []) =>\n options.flatMap(option => {\n if (option.label.toLocaleLowerCase().includes(searchTermLowerCased)) {\n if (ignoreGroups?.value && option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n return [option, ...findHits(searchTermLowerCased, option.items)];\n }\n\n if (option.items) {\n return [...findHits(searchTermLowerCased, option.items)];\n }\n\n return [];\n });\n\n const debouncedSearchEvent =\n searchEvent !== undefined ? debounce(() => searchEvent(searchTermRef.value), debounceTime ?? 300) : undefined;\n\n // If search event exists trigger it on the search term changing\n watch(searchTermRef, () => {\n if (debouncedSearchEvent !== undefined) {\n debouncedSearchEvent();\n }\n });\n\n const filterInputData = computed(() => {\n if (!searchTermRef.value) {\n return dataRef.value;\n }\n // If search event exists, emit the new search value into the event and do not manipulate data.\n if (searchEvent !== undefined) {\n return dataRef.value;\n }\n\n const searchTermLowerCased = searchTermRef.value.toLocaleLowerCase();\n const filtered = findHits(searchTermLowerCased, dataRef.value);\n return filtered;\n });\n\n return filterInputData;\n}\n","<!-- TODO: Remove aria props as these are part of JSX elements /vue/types/jsx.d.ts -->\n<!-- eslint-disable vue/attribute-hyphenation -->\n<template>\n <div v-bento-click-outside-directive=\"clickOutsideDropdown\" class=\"b-dropdown\" :class=\"conditionalClasses\">\n <field-label\n v-if=\"label\"\n :id=\"labelId\"\n :condensed=\"condensed\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <div\n ref=\"inputContainerRefWrapper\"\n v-bento-keyboard-navigation-directive\n v-on=\"textboxKeyboardNavigationListeners\"\n >\n <component\n :is=\"computedSize\"\n ref=\"inputContainerRef\"\n :condensed=\"condensed\"\n :value=\"searchTerm\"\n :additional-items-selected=\"additionalItemsSelected\"\n :aria-controls=\"dropdownOptionsContainerId\"\n :ariaExpanded=\"isDropdownOpen\"\n :aria-labelledby=\"label ? labelId : null\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-label=\"computedAriaLabel\"\n :aria-readonly=\"isReadOnly\"\n :aria-required=\"required\"\n :readonly=\"isReadOnly\"\n :disabled=\"disabled\"\n :display-value=\"displayValue\"\n :dynamic-filtering=\"dynamicFiltering\"\n :is-invalid=\"!!errorMessage || error\"\n :multiple=\"multiple\"\n :open=\"isDropdownOpen\"\n :selected-value-item=\"!isInputComponent ? selectedValueItem : undefined\"\n :show-slot-content-in-multiple=\"showSlotContentInMultiple\"\n @input=\"searchTerm = $event\"\n @open=\"toggleDropdown\"\n @close=\"toggleDropdown\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </component>\n </div>\n <bento-dropdown-options-container\n v-if=\"inputContainerRef\"\n :id=\"dropdownOptionsContainerId\"\n ref=\"optionsContainerRef\"\n :aria-label=\"computedAriaLabel\"\n :component-loading=\"componentLoading\"\n :empty-state=\"emptyState\"\n :disabled=\"disabled\"\n :is-option-disabled=\"isOptionDisabled\"\n :items=\"filteredItems\"\n :multiple=\"multiple\"\n :static-categories=\"staticCategories\"\n :open=\"isDropdownOpen\"\n :selected-value=\"cachedSelectedListboxOptions\"\n :searching=\"isSearching\"\n :target-element=\"inputContainerRefWrapper\"\n :loading=\"loading\"\n :has-more-items=\"hasMoreItems\"\n :lazy-load-type=\"lazyLoadType\"\n :virtual-scroll=\"virtualScroll\"\n v-on=\"listboxListeners\"\n >\n <template v-for=\"(_, innerSlot) of slots\" #[innerSlot]=\"scope\">\n <slot :name=\"innerSlot\" v-bind=\"scope\" />\n </template>\n </bento-dropdown-options-container>\n <error-message\n v-if=\"!!errorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-dropdown__error-message\"\n />\n <bento-typography\n v-if=\"description || hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-dropdown__description\"\n :class=\"descriptionConditionalClasses\"\n el=\"span\"\n >\n <slot name=\"description\">\n {{ description }}\n </slot>\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import {\n computed,\n defineComponent,\n inject,\n nextTick,\n type Ref,\n ref,\n toRef,\n toRefs,\n useAttrs,\n useSlots,\n watch,\n } from 'vue';\n // Components\n import { BentoDropdownOptionsContainer } from './components/dropdown-options-container';\n import { BentoTypography } from '@/components/typography';\n import { DropdownInputDefault, DropdownInputSmall } from './components';\n import { BentoListbox, ErrorMessage, FieldLabel, useCachedSelectedValues, useMultiLevelItems } from '@/internal';\n\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useDisplayValue, useListboxKeyboardNavigation, useTextboxKeyboardNavigation } from './composables';\n import { useVisibleDomOptions } from '@/internal/listbox/composables/use-visible-dom-options/use-visible-dom-options';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n import { useSearchBarFilter } from '@/components/search-bar/useSearchBarDataFilter';\n import { useHasSlot } from '@/composables';\n\n // Directives\n import { BentoClickOutsideDirective as vBentoClickOutsideDirective } from '@/directives/click-outside';\n import { BentoKeyboardNavigationDirective as vBentoKeyboardNavigationDirective } from '@/directives';\n\n // Types\n import { BentoDropdownEvent, type BentoDropdownProps, BentoDropdownSize } from './dropdown.types';\n import {\n BentoListboxEvent,\n type BentoListboxItemRole,\n type BentoListboxMultiSelectValue,\n type BentoListboxOptions,\n type BentoListboxSelectedValue,\n type BentoListboxSelectedValueLabelPair,\n } from '@/types/listbox';\n import { DROPDOWN_SMALL_SIZE_INJECTION_KEY } from './dropdown.keys';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = withDefaults(defineProps<BentoDropdownProps>(), {\n ariaLabel: null,\n condensed: false,\n emptyState: undefined,\n disabled: false,\n dynamicFiltering: false,\n error: false,\n errorMessage: null,\n description: null,\n hasMoreItems: false,\n isOptionDisabled: undefined,\n items: () => [],\n label: null,\n loading: false,\n componentLoading: false,\n lazyLoadType: BentoListbox.props.lazyLoadType.default,\n multiple: false,\n optional: false,\n placeholder: null,\n readonly: false,\n required: false,\n search: undefined,\n showSlotContentInMultiple: false,\n size: null,\n staticCategories: false,\n tooltipText: null,\n value: null,\n modelValue: null,\n virtualScroll: false,\n enableValueLabelPair: false,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"value\" property linked to the v-model.\n * @deprecated Since v2.0.0. Use `v-model` or `update:model-value` instead.\n */\n (e: 'input', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when an option is clicked. Updates the selected option from the \"modelValue\" property linked to the v-model.\n */\n (e: 'update:model-value', selectedValue: BentoListboxSelectedValue | any); // eslint-disable-line @typescript-eslint/no-explicit-any\n\n /**\n * Emitted when:\n * - `lazyLoad` is `automatic` and the scroll meets the end of the list\n * - `lazyload` is `button` and the button is clicked\n */\n (e: 'show-more');\n\n /**\n * Emitted when the dropdown is opened.\n */\n (e: 'open');\n }>();\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const { emitValue } = useFormFieldEmits<BentoListboxSelectedValue>(emit);\n\n const inputContainerRef = ref(null);\n const inputContainerRefWrapper = ref(null);\n const optionsContainerRef: Ref<InstanceType<typeof BentoDropdownOptionsContainer>> = ref(null);\n const isDropdownOpen = ref(false);\n const dropdownOptionsContainerId = generateUid('bento-dropdown-options-container');\n const labelId = generateUid('dropdown-label');\n const descriptionId = generateUid('dropdown-description');\n const errorId = generateUid('dropdown-error');\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const dropdownValue = computed(() => props.modelValue ?? props.value);\n\n const { cachedSelectedListboxOptions, cachedListboxSelectedValues, setCachedValues } = useCachedSelectedValues(\n toRef(props, 'items'),\n dropdownValue,\n toRef(props, 'multiple'),\n toRef(props, 'enableValueLabelPair')\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const ariaDescribedByAttribute = ref(attrs['aria-describedby']);\n const { ariaLabel, label } = toRefs(props);\n\n // vue-i18n issue with t() used in script - direct usage in template works\n // requires either createI18n({ legacy: false }) or to be wrapped in computed()\n const computedAriaLabelFallbackMessage = computed(() => t('ariaLabelFallback'));\n const computedAriaLabel = useAriaLabel({\n // TODO: take ariaLabel ref away when aria-label prop is removed\n ariaLabel: ariaLabel.value || (ariaLabelAttribute as Ref<string>),\n label,\n defaultFallback: computedAriaLabelFallbackMessage,\n });\n\n // Inject input field component key to change the dropdown size\n const isInputComponent = props.size === BentoDropdownSize.SMALL || inject(DROPDOWN_SMALL_SIZE_INJECTION_KEY, false);\n const computedSize = computed(() => (isInputComponent ? BentoDropdownSize.SMALL : BentoDropdownSize.DEFAULT));\n\n const conditionalClasses = computed(() => ({\n 'b-dropdown--condensed': props.condensed,\n }));\n\n // Description styles\n const descriptionConditionalClasses = computed(() => ({\n 'b-dropdown__description--error': !!props.errorMessage,\n }));\n\n // Filtering\n const searchTerm = ref('');\n const items = toRef(props, 'items');\n const staticCategories = toRef(props, 'staticCategories');\n const filteredItems = useSearchBarFilter(\n searchTerm,\n items,\n props?.search?.searchEvent,\n staticCategories,\n props?.search?.debounceTime\n );\n const isSearching = computed(() => props.dynamicFiltering && !!searchTerm.value);\n\n const displayValue = useDisplayValue({\n items,\n placeholder: toRef(props, 'placeholder'),\n isMultiSelect: toRef(props, 'multiple'),\n selectedValues: cachedSelectedListboxOptions,\n });\n\n const selectedValueItem = computed(() => {\n if (props?.multiple && Array.isArray(dropdownValue.value)) {\n return props.items.filter(\n ({ value }) => props?.value && (props?.value as BentoListboxMultiSelectValue).includes(value)\n );\n }\n if (!props.multiple && props.staticCategories) {\n // Find the category that holds the selected value\n const category = props.items.find(categoryItem =>\n categoryItem.items?.some(item => item.value === dropdownValue.value)\n );\n\n // Find the specific item within the category\n const selectedCategoryItem = category\n ? category.items.find(item => item.value === dropdownValue.value)\n : props.items.find(({ value }) => value === dropdownValue.value);\n\n return selectedCategoryItem ?? null;\n }\n\n return props.items.find(({ value }) => value === dropdownValue.value);\n });\n\n const selectedValueIndex = computed(() => {\n const index = filteredItems.value.findIndex(({ value }) => {\n return props.enableValueLabelPair\n ? (dropdownValue.value as BentoListboxSelectedValueLabelPair).value === value\n : dropdownValue.value === value;\n });\n return index > -1 ? index : 0;\n });\n\n const { isMultiLevelSelect, flattenedItemsList } = useMultiLevelItems(items);\n\n const isTreePattern = computed(() => isMultiLevelSelect.value && !props.staticCategories);\n\n const computedOptionRole = computed<BentoListboxItemRole>(() => (isTreePattern.value ? 'treeitem' : 'option'));\n\n const additionalItemsSelected = computed(() => {\n if (props.multiple) {\n const selectedItemsCount = Array.isArray(dropdownValue.value) ? dropdownValue.value.length : 0;\n const total = isMultiLevelSelect.value ? flattenedItemsList.value.length : items.value.length;\n\n if (selectedItemsCount === 0) {\n return null;\n }\n\n // Display count always - show \"all\" only when is not external filtering (hasMoreItems = true)\n if (!props.hasMoreItems && total > 0 && total === selectedItemsCount) {\n return t('all');\n }\n\n return selectedItemsCount;\n }\n\n return null;\n });\n\n // ARIA\n const ariaDescribedBy = computed(\n () =>\n [\n props.description ? descriptionId : null,\n ariaDescribedByAttribute.value,\n props.errorMessage ? errorId : null,\n ]\n .filter(Boolean)\n .join(' ') || null\n );\n\n const listboxRef = computed(() => optionsContainerRef.value?.$el as HTMLDivElement);\n\n const { visibleDomOptions, updateVisibleDomOptions } = useVisibleDomOptions(\n listboxRef,\n filteredItems,\n computedOptionRole\n );\n\n const openDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = true;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n };\n\n const closeDropdown = () => {\n isDropdownOpen.value = false;\n };\n\n const toggleDropdown = () => {\n if (isReadOnly.value) {\n return;\n }\n isDropdownOpen.value = !isDropdownOpen.value;\n nextTick(() => {\n updateVisibleDomOptions();\n });\n\n // Clear search\n if (isSearching.value) {\n searchTerm.value = '';\n }\n };\n\n const clickOutsideDropdown = () => {\n if (isSearching.value) {\n searchTerm.value = '';\n }\n\n if (isDropdownOpen.value) {\n isDropdownOpen.value = false;\n // Reset the internal dropdown options state\n optionsContainerRef.value.onOutsideDropdownClick();\n }\n };\n\n const onOptionSelected = async (selectedValue: BentoListboxOptions) => {\n // Clear and close the dropdown on single selection\n if (!props.multiple) {\n searchTerm.value = '';\n isDropdownOpen.value = false;\n }\n\n setCachedValues(selectedValue);\n\n /**\n * Emit the value/label pair objects if enableValueLabelPair is enabled,\n * otherwise just emit the list of selected values (number or string)\n */\n emitValue(cachedListboxSelectedValues.value);\n\n // Focus the input after selection and dropdown has closed\n if (!props.multiple) {\n await nextTick();\n focus();\n }\n };\n\n const emitShowMoreEvent = () => {\n emit(BentoDropdownEvent.SHOW_MORE);\n };\n\n const textboxKeyboardNavigationListeners = useTextboxKeyboardNavigation(\n {\n inputContainerRef,\n optionsContainerRef,\n selectedValueIndex,\n isDropdownOpen,\n isDynamicFltering: toRef(props, 'dynamicFiltering'),\n items: visibleDomOptions,\n isMultiple: props.multiple,\n totalItemCount: computed(() => filteredItems.value.length),\n isVirtualScroll: !props?.multiple && props?.virtualScroll !== false && props?.lazyLoadType === 'none',\n },\n toggleDropdown,\n openDropdown,\n closeDropdown\n );\n\n const listboxKeyboardNavigationListeners = useListboxKeyboardNavigation(\n {\n inputContainerRef,\n isDropdownOpen,\n },\n closeDropdown\n );\n\n const listboxListeners = {\n [BentoListboxEvent.CLOSE_DROPDOWN]: closeDropdown,\n [BentoListboxEvent.SELECT]: onOptionSelected,\n [BentoListboxEvent.SHOW_MORE]: emitShowMoreEvent,\n ...listboxKeyboardNavigationListeners,\n };\n\n if (props.error) {\n deprecate(\n 'BentoDropdown \"error\" property',\n `Use the BentoDropdown \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-dropdown errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n if (props.size) {\n deprecate('BentoDropdown \"size\" property', `Do not use. Only 'default' size should be used.`, '2.0.0');\n }\n\n if (props.value) {\n deprecate(\n 'BentoDropdown \"value\" property',\n `The use of \"value\" prop in \"BentoDropdown\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n\n const focus = () => {\n inputContainerRef.value.focus();\n };\n\n watch(\n () => isDropdownOpen.value,\n (isOpen: boolean) => {\n if (isOpen) {\n emit('open');\n }\n }\n );\n\n defineExpose({\n focus,\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * A Dropdown shows a selected option's.\n * Use a dropdown when you want users to select options\n * from a list of pre-defined options.\n *\n * @example\n * import { BentoDropdown } from '@adyen/bento-vue2';\n * import type { BentoDropdownOptions } from '@adyen/bento-vue2'\n *\n * export default {\n * components: { BentoDropdown },\n * template: `\n * <bento-dropdown\n * v-model=\"selectedValue\"\n * :disabled=\"false\"\n * :multiple=\"true\"\n * :isOptionsDisabled=\"option => option.value === 2\"\n * :items=\"options\"\n * />\n * `,\n * setup() {\n * const selectedValue = ref(2) // Default value\n * const options: BentoDropdownOptions = [\n * { label: 'Option 1', value: 1 },\n * { label: 'Option 2', value: 2 },\n * ];\n * return { options, selectedValue };\n * }\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'b-dropdown',\n components: {\n DropdownInputDefault,\n DropdownInputSmall,\n },\n model: { prop: 'modelValue' },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./dropdown.scss\" />\n"],"names":["BentoDropdownSize","BentoDropdownSize2","useDropdownOptionsListbox","selectedValue","multiple","isOpen","emit","internalSelectedValue","ref","t","useI18n","messages$2","watch","isApplyButtonDisabled","computed","onApplyClick","BentoListboxEvent","onCancelClick","onOutsideDropdownClick","actions","onOptionSelected","newSelectedValue","onTabKey","onEnterKey","onSpaceKey","onEscapeKey","emitShowMoreEvent","listeners","__default__$4","defineComponent","slots","useSlots","__emit","props","__props","toRefs","dropdownOptionsListboxRef","isDropdownOpen","noResultsMessage","conditionalClasses","conditionalListboxClasses","popperContainerOrPopoverComponent","BentoPopover","PopperContainer","popperContainerOrPopoverProps","containerMinAndMaxWidth","generateUid","__expose","DropdownBaseTextboxState","DropdownBaseTextboxState2","DropdownBaseTextboxEvent","DropdownBaseTextboxEvent2","DROPDOWN_SMALL_SIZE_INJECTION_KEY","DROPDOWN_UNDERLINE_STYLE_INJECTION_KEY","__default__$3","messages$1","attrs","useAttrs","hasSlot","useHasSlot","textbox","textboxId","isUnderlineStyle","inject","showRequiredAttribute","shouldShowInput","comboboxConditionalClasses","isFiltering","ariaAttributes","selectedValueItems","shouldShowSingleSelectSlot","shouldShowMultipleSlot","nextTick","onOpenDropdown","onCloseDropdown","onToggleDropdown","event","onClearSearch","onInputEvent","__default__$2","baseTextbox","onInput","newInput","onKeyDown","e","openDropdown","stopEventPropagation","closeDropdown","clearValue","uuid$1","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","uuid","__default__$1","categoryMultiSelect","selectedValues","items","acc","option","selectedCategoryOptions","categoryOption","selectedOption","label","displayValue","useDisplayValue","placeholder","isMultiSelect","isCategoryMultilevel","focusOnTextbox","elementToFocusOn","useTextboxKeyboardNavigation","inputContainerRef","optionsContainerRef","selectedValueIndex","isDynamicFltering","isMultiple","totalItemCount","isVirtualScroll","toggleDropdown","focusOnOption","index","focusOnChip","chips","setListboxFocusedIndex","selectedIndex","navigateToItem","navigateToOption","skipToFirstOption","skipToLastOption","onArrowDown","onArrowUp","onHomeKey","onEndKey","onTab","BentoKeyboardNavigationKeyDownEvent","useListboxKeyboardNavigation","closeDropdownAndFocusOnTextbox","useSearchBarFilter","searchTerm","data","searchEvent","ignoreGroups","debounceTime","searchTermRef","dataRef","findHits","searchTermLowerCased","options","debouncedSearchEvent","debounce","__default__","messages","DropdownInputDefault","DropdownInputSmall","emitValue","useFormFieldEmits","inputContainerRefWrapper","dropdownOptionsContainerId","labelId","descriptionId","errorId","isReadOnly","useFormLayoutFieldLoading","toRef","dropdownValue","cachedSelectedListboxOptions","cachedListboxSelectedValues","setCachedValues","useCachedSelectedValues","ariaLabelAttribute","ariaDescribedByAttribute","ariaLabel","computedAriaLabelFallbackMessage","computedAriaLabel","useAriaLabel","isInputComponent","computedSize","descriptionConditionalClasses","staticCategories","filteredItems","isSearching","selectedValueItem","value","category","categoryItem","item","isMultiLevelSelect","flattenedItemsList","useMultiLevelItems","isTreePattern","computedOptionRole","additionalItemsSelected","selectedItemsCount","total","ariaDescribedBy","listboxRef","visibleDomOptions","updateVisibleDomOptions","useVisibleDomOptions","clickOutsideDropdown","focus","textboxKeyboardNavigationListeners","listboxKeyboardNavigationListeners","listboxListeners","deprecate"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8HO,IAAAA,KAAA,kBAAAC,OACHA,EAAA,UAAA,wBACAA,EAAA,QAAA,sBAFQA,IAAAD,MAAA,CAAA,CAAA;;;;;;;;;;;;GC5GLE,KAAA,CAAAC,GAAAC,GAAAC,GAAAC,MAAA;AAMH,QAAAC,IAAAC,EAAAL,EAAA,KAAA,GACA,EAAA,GAAAM,EAAA,IAAAC,GAAA,EAAA,UAAAC,GAAA,CAAA;AAEA,EAAAC,GAAAT,GAAA,MAAA;AACI,IAAAI,EAAA,QAAAJ,EAAA;AAAA,EAA4C,CAAA;AAIhD,QAAAU,IAAAC;AAAA,IAA8B,MAAA,KAAA,UAAAP,EAAA,KAAA,MAAA,KAAA,UAAAJ,EAAA,KAAA;AAAA,EAC8D,GAG5FY,IAAA,MAAA;AACI,IAAAT,EAAAU,EAAA,QAAAT,EAAA,KAAA,GACAD,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CC,IAAA,MAAA;AACI,IAAAV,EAAA,QAAAJ,EAAA,OACAG,EAAAU,EAAA,cAAA;AAAA,EAAsC,GAG1CE,IAAA,MAAA;AACI,IAAAb,EAAA,SAAAD,EAAA,UACIG,EAAA,QAAAJ,EAAA;AAAA,EACJ,GAGJgB,IAAAL,EAAA,MAAA;AAAA,IAA+B;AAAA,MAC3B,OAAAL,EAAA,OAAA;AAAA,MACoB,OAAAM;AAAA,MACT,UAAAF,EAAA;AAAA,IACyB;AAAA,IACpC;AAAA,MACA,OAAAJ,EAAA,QAAA;AAAA,MACqB,OAAAQ;AAAA,IACV;AAAA,EACX,CAAA,GAIJG,IAAA,CAAAC,MAAA;AACI,IAAAd,EAAA,QAAAc,GACAjB,EAAA,SACIE,EAAA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ineComponent as B, computed as _, openBlock as o, createElementBlock as s, normalizeClass as x, createVNode as r, unref as t, withCtx as l, Fragment as k, createTextVNode as n, toDisplayString as d, renderSlot as g, createBlock as i, createCommentVNode as f } from "vue";
2
- import { B as C } from "./info-icon.C_ZkQb1d.js";
2
+ import { B as C } from "./info-icon.1FtkyuYH.js";
3
3
  import { B as a } from "./typography.B3J6_tYk.js";
4
4
  import { u as S } from "./index.B875RXHM.js";
5
5
  import { _ as T } from "./_plugin-vue_export-helper.CHgC5LLL.js";
@@ -108,4 +108,4 @@ const c = {
108
108
  export {
109
109
  V as F
110
110
  };
111
- //# sourceMappingURL=field-label.DFtyMriH.js.map
111
+ //# sourceMappingURL=field-label.CLV3nSzz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-label.DFtyMriH.js","sources":["../../../vue2/src/components/internal/field-label/field-label.vue"],"sourcesContent":["<template>\n <label class=\"b-field-label\" :class=\"conditionalClasses\">\n <bento-typography el=\"span\" stronger>\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot></slot></template>\n </bento-typography>\n <bento-typography v-if=\"!!tooltipText\" el=\"span\" class=\"b-field-label__tooltip-wrapper\">\n <bento-info-icon :tooltip-text=\"tooltipText\" class=\"b-field-label__tooltip\" />\n </bento-typography>\n <bento-typography v-if=\"required\" class=\"b-field-label__requirement\" el=\"span\">*</bento-typography>\n <bento-typography v-else-if=\"optional\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n </label>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { computed } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n /**\n * Field label\n */\n label: {\n type: String,\n default: null,\n },\n /**\n * Sets the field as optional\n */\n optional: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the field as required\n */\n required: {\n type: Boolean,\n default: false,\n },\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: {\n type: String,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const conditionalClasses = computed(() => ({ 'b-field-label--condensed': props.condensed }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the labels for all field components\n\n * @example\n * import { FieldLabel } from '@/components/internal/field-label';\n *\n * export default {\n * components: { FieldLabel },\n * template: `\n * <field-label label=\"Label\" tooltip-text=\"Tooltip info\" required />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./field-label.scss\" />\n"],"names":["__default__","messages","props","__props","t","useI18n","conditionalClasses","computed"],"mappings":";;;;;;;;;;;;;;;;;GAiFIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAxDA,UAAAC,IAAAC,GAmCA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAJ,EAAA,CAAA,GAEAK,IAAAC,EAAA,OAAA,EAAA,4BAAAL,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"field-label.CLV3nSzz.js","sources":["../../../vue2/src/components/internal/field-label/field-label.vue"],"sourcesContent":["<template>\n <label class=\"b-field-label\" :class=\"conditionalClasses\">\n <bento-typography el=\"span\" stronger>\n <template v-if=\"label\">{{ label }}</template>\n <template v-else><slot></slot></template>\n </bento-typography>\n <bento-typography v-if=\"!!tooltipText\" el=\"span\" class=\"b-field-label__tooltip-wrapper\">\n <bento-info-icon :tooltip-text=\"tooltipText\" class=\"b-field-label__tooltip\" />\n </bento-typography>\n <bento-typography v-if=\"required\" class=\"b-field-label__requirement\" el=\"span\">*</bento-typography>\n <bento-typography v-else-if=\"optional\" class=\"b-field-label__requirement\" el=\"span\"\n >({{ t('optional') }})</bento-typography\n >\n </label>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n\n import { useI18n } from '@/utils/ts/i18n';\n\n import messages from './messages.json';\n import { computed } from 'vue';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * Renders the dropdown with a condensed style.\n */\n condensed: { type: Boolean, default: false },\n /**\n * Field label\n */\n label: {\n type: String,\n default: null,\n },\n /**\n * Sets the field as optional\n */\n optional: {\n type: Boolean,\n default: false,\n },\n /**\n * Sets the field as required\n */\n required: {\n type: Boolean,\n default: false,\n },\n /**\n * Adds a info icon next to the label to display the passed tooltip message.\n */\n tooltipText: {\n type: String,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const conditionalClasses = computed(() => ({ 'b-field-label--condensed': props.condensed }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Internal component to handle the labels for all field components\n\n * @example\n * import { FieldLabel } from '@/components/internal/field-label';\n *\n * export default {\n * components: { FieldLabel },\n * template: `\n * <field-label label=\"Label\" tooltip-text=\"Tooltip info\" required />\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./field-label.scss\" />\n"],"names":["__default__","messages","props","__props","t","useI18n","conditionalClasses","computed"],"mappings":";;;;;;;;;;;;;;;;;GAiFIA,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAxDA,UAAAC,IAAAC,GAmCA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAJ,EAAA,CAAA,GAEAK,IAAAC,EAAA,OAAA,EAAA,4BAAAL,EAAA,UAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,29 +1,29 @@
1
- import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as c, defineComponent as ri, unref as t, createBlock as w, Transition as de, withCtx as y, renderSlot as $i, TransitionGroup as ce, ref as S, onUnmounted as me, onMounted as Bi, computed as f, watch as yi, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ue, withDirectives as Ui, createTextVNode as C, reactive as wi, toRef as hi, withModifiers as X, withKeys as Ti, Fragment as _i, renderList as ve, vShow as fe, nextTick as xe } from "vue";
1
+ import { openBlock as s, createElementBlock as g, mergeProps as D, toDisplayString as x, createCommentVNode as u, createElementVNode as c, defineComponent as ri, unref as t, createBlock as w, Transition as de, withCtx as y, renderSlot as $i, TransitionGroup as ce, ref as S, onUnmounted as me, onMounted as Bi, computed as f, watch as yi, normalizeClass as Z, createVNode as U, resolveDynamicComponent as ue, withDirectives as Ui, createTextVNode as C, reactive as wi, toRef as hi, withModifiers as X, withKeys as Ti, Fragment as Ri, renderList as ve, vShow as fe, nextTick as xe } from "vue";
2
2
  /* empty css */
3
3
  import { _ as j } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
4
  import { W as Zi, B as ge } from "./alert.RD0qOLhx.js";
5
- import { B as _, d as he } from "./typography.B3J6_tYk.js";
5
+ import { B as R, d as he } from "./typography.B3J6_tYk.js";
6
6
  import { u as di } from "./index.B875RXHM.js";
7
- import { g as R } from "./generate-uid.DBWe4g6T.js";
7
+ import { g as _ } from "./generate-uid.DBWe4g6T.js";
8
8
  import { u as be } from "./form-field.D_2g7vaP.js";
9
9
  import { i as Ni } from "./index.CWuzEfiV.js";
10
10
  import { B as ye } from "./bin.Cude0fiB.js";
11
11
  import { C as we } from "./checkmark-circle-fill.DugX5fbG.js";
12
12
  import { C as ke } from "./cross.CCHdi6v3.js";
13
13
  import { R as ze } from "./refresh.C31KClfx.js";
14
- import { b as Ce } from "./tooltip.CuwiX213.js";
14
+ import { b as Ce } from "./tooltip.Djn54E1O.js";
15
15
  import { B as bi } from "./button.DWF7FSIw.js";
16
16
  import { B as Ee } from "./link.D6D6YGsN.js";
17
17
  import { B as Fe } from "./loading-indicator.BPol9I84.js";
18
- import { F as $e } from "./field-label.DFtyMriH.js";
18
+ import { F as $e } from "./field-label.CLV3nSzz.js";
19
19
  import { E as Te } from "./error-message.Dyvrw6ZB.js";
20
20
  import "../assets/file-uploader.css";
21
- let Ri = 0;
22
- const _e = {
21
+ let _i = 0;
22
+ const Re = {
23
23
  beforeCreate() {
24
- this.uuid = Ri.toString(), Ri += 1;
24
+ this.uuid = _i.toString(), _i += 1;
25
25
  }
26
- }, Re = { key: 0 };
26
+ }, _e = { key: 0 };
27
27
  function Se(i, e, l, o, n, r) {
28
28
  return s(), g("svg", D({ role: "img" }, i.$attrs, {
29
29
  class: "ui-assets-icons-16",
@@ -32,7 +32,7 @@ function Se(i, e, l, o, n, r) {
32
32
  height: "16",
33
33
  fill: "none"
34
34
  }), [
35
- i.$attrs["svg-title"] ? (s(), g("title", Re, x(i.$attrs["svg-title"]), 1)) : u("", !0),
35
+ i.$attrs["svg-title"] ? (s(), g("title", _e, x(i.$attrs["svg-title"]), 1)) : u("", !0),
36
36
  e[0] || (e[0] = c("path", {
37
37
  fill: "#001222",
38
38
  d: "M2.75 12C2.75 12.6904 3.30964 13.25 4 13.25H12C12.6904 13.25 13.25 12.6904 13.25 12V10.25H14.75V12C14.75 13.5188 13.5188 14.75 12 14.75H4C2.48122 14.75 1.25 13.5188 1.25 12V10.25H2.75V12Z"
@@ -43,7 +43,7 @@ function Se(i, e, l, o, n, r) {
43
43
  }, null, -1))
44
44
  ], 16);
45
45
  }
46
- const je = /* @__PURE__ */ j(_e, [["render", Se]]), Ie = /* @__PURE__ */ ri({
46
+ const je = /* @__PURE__ */ j(Re, [["render", Se]]), Ie = /* @__PURE__ */ ri({
47
47
  __name: "file-uploader-file-card-animation",
48
48
  props: {
49
49
  name: {},
@@ -457,7 +457,7 @@ const Fa = /* @__PURE__ */ j(za, [["render", Ea]]), $a = {
457
457
  function Ta(i) {
458
458
  return $a[i.type];
459
459
  }
460
- function _a(i) {
460
+ function Ra(i) {
461
461
  switch (i.type) {
462
462
  case k.COMPRESSED:
463
463
  case k.GENERIC:
@@ -482,7 +482,7 @@ const Wi = {
482
482
  "ja-JP": { cancel: "キャンセル", fileExceedsSizeLimit: "ファイルがサイズ制限を超えています", fileTypeMustBe: "ファイル形式は{list}でなければなりません", imageDimensionsExceedLimits: "画像のサイズが制限を超えています", remove: "削除", retry: "再試行" },
483
483
  "pt-BR": { cancel: "Cancelar", fileExceedsSizeLimit: "O arquivo excede o limite de tamanho", fileTypeMustBe: "O tipo de arquivo deve ser {list}", imageDimensionsExceedLimits: "As dimensões da imagem excedem os limites", remove: "Retirar", retry: "Tentar de novo" },
484
484
  "zh-CN": { cancel: "取消", fileExceedsSizeLimit: "文件大小超过限制", fileTypeMustBe: "文件类型必须为 {list}", imageDimensionsExceedLimits: "图像尺寸超过限制", remove: "移除", retry: "重试" }
485
- }, Ra = { class: "b-file-uploader-file-card__details" }, Sa = { class: "b-file-uploader-file-card__info" }, ja = ["id"], Ia = {
485
+ }, _a = { class: "b-file-uploader-file-card__details" }, Sa = { class: "b-file-uploader-file-card__info" }, ja = ["id"], Ia = {
486
486
  key: 0,
487
487
  class: "b-file-uploader-file-card__actions"
488
488
  }, La = {
@@ -497,10 +497,10 @@ const Wi = {
497
497
  },
498
498
  emits: ["cancel", "remove", "retry"],
499
499
  setup(i, { expose: e, emit: l }) {
500
- const n = i, r = l, { t: p, locale: m } = di({ messages: Wi }), h = S(null), E = S(null), H = S(null), V = R("file-errors-section"), v = R("cancel-file-button"), F = R("remove-file-button"), O = R("retry-file-button"), q = S(n.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(n.file.data)), N = f(() => n.file.state === M.ERROR), B = f(() => n.file.errors.includes(T.ERROR_LOAD)), K = f(() => n.file.errors.includes(T.ERROR_SIZE)), Q = f(() => n.file.errors.includes(T.ERROR_DIMENSIONS)), ti = f(() => n.file.errors.includes(T.ERROR_TYPE)), oi = f(() => n.file.state === M.LOADING), ni = f(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), W = f(() => ki(m.value, n.file.data.size)), G = S(), li = S(), pi = Le(G, li), ii = f(() => ({
500
+ const n = i, r = l, { t: p, locale: m } = di({ messages: Wi }), h = S(null), E = S(null), H = S(null), V = _("file-errors-section"), v = _("cancel-file-button"), F = _("remove-file-button"), O = _("retry-file-button"), q = S(n.file.state === M.SUCCESS), b = f(() => URL.createObjectURL(n.file.data)), N = f(() => n.file.state === M.ERROR), B = f(() => n.file.errors.includes(T.ERROR_LOAD)), K = f(() => n.file.errors.includes(T.ERROR_SIZE)), Q = f(() => n.file.errors.includes(T.ERROR_DIMENSIONS)), ti = f(() => n.file.errors.includes(T.ERROR_TYPE)), oi = f(() => n.file.state === M.LOADING), ni = f(() => n.file.progress && `(${n.file.progress.toFixed(0)}%)`), W = f(() => ki(m.value, n.file.data.size)), G = S(), li = S(), pi = Le(G, li), ii = f(() => ({
501
501
  "b-file-uploader-file-card--error": N.value
502
502
  })), ci = f(() => ({
503
- [`b-file-uploader-file-card__icon--${_a(n.file)}`]: q.value,
503
+ [`b-file-uploader-file-card__icon--${Ra(n.file)}`]: q.value,
504
504
  "b-file-uploader-file-card__icon--error": N.value
505
505
  })), Y = f(() => oi.value ? Fe : N.value ? Zi : q.value ? Ta(n.file) : we);
506
506
  yi(
@@ -532,7 +532,7 @@ const Wi = {
532
532
  }), ($, A) => (s(), g("div", {
533
533
  class: Z(["b-file-uploader-file-card", ii.value])
534
534
  }, [
535
- c("div", Ra, [
535
+ c("div", _a, [
536
536
  c("div", Sa, [
537
537
  U(t(Ie), {
538
538
  name: t(Ni) ? "b-file-uploader-file-card__animation" : "b-file-uploader-file-card__animation--vue3",
@@ -564,7 +564,7 @@ const Wi = {
564
564
  variant: "quiet"
565
565
  }, {
566
566
  default: y(() => [
567
- Ui((s(), w(t(_), {
567
+ Ui((s(), w(t(R), {
568
568
  ref_key: "fileNameRef",
569
569
  ref: G,
570
570
  stronger: "",
@@ -581,7 +581,7 @@ const Wi = {
581
581
  _: 1
582
582
  }, 8, ["download", "to"])
583
583
  ], 512),
584
- $.file.progress ? (s(), w(t(_), {
584
+ $.file.progress ? (s(), w(t(R), {
585
585
  key: 0,
586
586
  el: "span"
587
587
  }, {
@@ -589,7 +589,7 @@ const Wi = {
589
589
  C(x(ni.value), 1)
590
590
  ]),
591
591
  _: 1
592
- })) : $.file.data.size ? (s(), w(t(_), {
592
+ })) : $.file.data.size ? (s(), w(t(R), {
593
593
  key: 1,
594
594
  class: "b-file-uploader-file-card__file-size",
595
595
  "aria-hidden": "true",
@@ -606,7 +606,7 @@ const Wi = {
606
606
  id: t(V),
607
607
  role: "alert"
608
608
  }, [
609
- K.value ? (s(), w(t(_), {
609
+ K.value ? (s(), w(t(R), {
610
610
  key: 0,
611
611
  class: "b-file-uploader-file-card__error-message"
612
612
  }, {
@@ -615,7 +615,7 @@ const Wi = {
615
615
  ]),
616
616
  _: 1
617
617
  })) : u("", !0),
618
- Q.value ? (s(), w(t(_), {
618
+ Q.value ? (s(), w(t(R), {
619
619
  key: 1,
620
620
  class: "b-file-uploader-file-card__error-message"
621
621
  }, {
@@ -624,7 +624,7 @@ const Wi = {
624
624
  ]),
625
625
  _: 1
626
626
  })) : u("", !0),
627
- ti.value && $.supportedFileTypes ? (s(), w(t(_), {
627
+ ti.value && $.supportedFileTypes ? (s(), w(t(R), {
628
628
  key: 2,
629
629
  class: "b-file-uploader-file-card__error-message"
630
630
  }, {
@@ -744,7 +744,7 @@ const Wi = {
744
744
  return (v, F) => (s(), g("div", {
745
745
  class: Z(["b-file-uploader-restrictions", p.value])
746
746
  }, [
747
- v.supportedFileTypes ? (s(), w(t(_), {
747
+ v.supportedFileTypes ? (s(), w(t(R), {
748
748
  key: 0,
749
749
  class: Z(m(v.supportedFileTypes.error || h.value && v.maxSize.error))
750
750
  }, {
@@ -753,7 +753,7 @@ const Wi = {
753
753
  ]),
754
754
  _: 1
755
755
  }, 8, ["class"])) : u("", !0),
756
- !h.value && v.maxSize ? (s(), w(t(_), {
756
+ !h.value && v.maxSize ? (s(), w(t(R), {
757
757
  key: 1,
758
758
  class: Z(m(v.maxSize.error))
759
759
  }, {
@@ -762,7 +762,7 @@ const Wi = {
762
762
  ]),
763
763
  _: 1
764
764
  }, 8, ["class"])) : u("", !0),
765
- v.maxDimensions ? (s(), w(t(_), {
765
+ v.maxDimensions ? (s(), w(t(R), {
766
766
  key: 2,
767
767
  class: Z(m(v.maxDimensions.error))
768
768
  }, {
@@ -771,7 +771,7 @@ const Wi = {
771
771
  ]),
772
772
  _: 1
773
773
  }, 8, ["class"])) : u("", !0),
774
- v.maxCount ? (s(), w(t(_), {
774
+ v.maxCount ? (s(), w(t(R), {
775
775
  key: 3,
776
776
  class: Z(m(v.maxCount.error))
777
777
  }, {
@@ -1960,7 +1960,7 @@ function Ua({ maxCount: i, accept: e }) {
1960
1960
  onDragEnterValidations: p
1961
1961
  };
1962
1962
  }
1963
- const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"], Pa = ["aria-labelledby", "tabindex"], Wa = {
1963
+ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"], Pa = ["aria-labelledby", "aria-disabled", "tabindex"], Wa = {
1964
1964
  class: "b-file-uploader__icon",
1965
1965
  "aria-hidden": "true"
1966
1966
  }, Ga = { class: "b-file-uploader__files" }, Ya = {
@@ -1999,7 +1999,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
1999
1999
  "2.0.0"
2000
2000
  );
2001
2001
  });
2002
- const { supportedFileTypeList: E } = Oa(hi(p, "accept")), H = R("browse-button"), V = R("custom-text"), v = R("drop-files-text"), F = R("comma-text"), O = R("file-uploader-restrictions"), q = R("field-label"), b = S(null), N = S([]), B = S(null), K = S(null), Q = R("input"), ti = R("input-error"), oi = f(() => {
2002
+ const { supportedFileTypeList: E } = Oa(hi(p, "accept")), H = _("browse-button"), V = _("custom-text"), v = _("drop-files-text"), F = _("comma-text"), O = _("file-uploader-restrictions"), q = _("field-label"), b = S(null), N = S([]), B = S(null), K = S(null), Q = _("input"), ti = _("input-error"), oi = f(() => {
2003
2003
  const a = p.label ? `${q} ${F}` : "", d = p.condensed ? "" : `${v} ${F}`, z = p.description ? `${V} ${F}` : "", I = `${O} ${F}`;
2004
2004
  return `${a} ${d} ${z} ${I} ${H}`;
2005
2005
  }), { dragState: ni, dragErrors: W, resetDragState: G, onDragEnterValidations: li } = Ua({
@@ -2056,7 +2056,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2056
2056
  }
2057
2057
  function fi(a) {
2058
2058
  const d = wi({
2059
- id: R("file"),
2059
+ id: _("file"),
2060
2060
  data: a,
2061
2061
  errors: [],
2062
2062
  progress: null,
@@ -2172,6 +2172,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2172
2172
  "aria-labelledby": oi.value,
2173
2173
  class: "b-file-uploader__area",
2174
2174
  role: "button",
2175
+ "aria-disabled": a.disabled,
2175
2176
  tabindex: a.disabled ? -1 : 0,
2176
2177
  onClick: d[1] || (d[1] = (z) => B.value.click()),
2177
2178
  onDragenter: X(ee, ["stop", "prevent"]),
@@ -2186,8 +2187,8 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2186
2187
  c("div", Wa, [
2187
2188
  ui.value ? (s(), w(t(Zi), { key: 0 })) : (s(), w(t(je), { key: 1 }))
2188
2189
  ]),
2189
- a.condensed ? u("", !0) : (s(), g(_i, { key: 0 }, [
2190
- U(t(_), {
2190
+ a.condensed ? u("", !0) : (s(), g(Ri, { key: 0 }, [
2191
+ U(t(R), {
2191
2192
  id: t(v),
2192
2193
  el: "span",
2193
2194
  strongest: "",
@@ -2198,7 +2199,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2198
2199
  ]),
2199
2200
  _: 1
2200
2201
  }, 8, ["id"]),
2201
- a.description ? (s(), w(t(_), {
2202
+ a.description ? (s(), w(t(R), {
2202
2203
  key: 0,
2203
2204
  id: t(V),
2204
2205
  el: "span",
@@ -2211,7 +2212,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2211
2212
  }, 8, ["id"])) : u("", !0),
2212
2213
  U(t(Oi), D(pi.value, { id: t(O) }), null, 16, ["id"])
2213
2214
  ], 64)),
2214
- U(t(_), {
2215
+ U(t(R), {
2215
2216
  id: t(H),
2216
2217
  stronger: "",
2217
2218
  class: "b-file-uploader__button"
@@ -2228,7 +2229,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2228
2229
  "error-message": a.errorMessage,
2229
2230
  class: "b-file-uploader__error-message"
2230
2231
  }, null, 8, ["id", "error-message"])) : u("", !0),
2231
- a.condensed && a.description ? (s(), w(t(_), {
2232
+ a.condensed && a.description ? (s(), w(t(R), {
2232
2233
  key: 2,
2233
2234
  id: t(V),
2234
2235
  "aria-hidden": "true",
@@ -2254,7 +2255,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2254
2255
  _: 1
2255
2256
  })) : u("", !0),
2256
2257
  Ui(c("div", Ga, [
2257
- (s(!0), g(_i, null, ve(b.value, (z, I) => (s(), w(t(Da), {
2258
+ (s(!0), g(Ri, null, ve(b.value, (z, I) => (s(), w(t(Da), {
2258
2259
  ref_for: !0,
2259
2260
  ref: A(I),
2260
2261
  key: z.id,
@@ -2267,7 +2268,7 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2267
2268
  ], 512), [
2268
2269
  [fe, b.value?.length]
2269
2270
  ]),
2270
- !b.value?.length && a.readonly ? (s(), w(t(_), {
2271
+ !b.value?.length && a.readonly ? (s(), w(t(R), {
2271
2272
  key: 5,
2272
2273
  class: "b-file-uploader__no-files",
2273
2274
  wide: ""
@@ -2279,8 +2280,8 @@ const Za = ["id", "aria-required", "accept", "disabled", "multiple"], Na = ["id"
2279
2280
  })) : u("", !0)
2280
2281
  ], 2));
2281
2282
  }
2282
- }), xt = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-faf6a591"]]);
2283
+ }), xt = /* @__PURE__ */ j(Xa, [["__scopeId", "data-v-a3c52f04"]]);
2283
2284
  export {
2284
2285
  xt as f
2285
2286
  };
2286
- //# sourceMappingURL=file-uploader.CKo27YzT.js.map
2287
+ //# sourceMappingURL=file-uploader.C9YOBRQg.js.map