@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
@@ -1,28 +1,28 @@
1
- import { ref as B, watch as ve, computed as r, defineComponent as F, useSlots as he, toRefs as Fe, openBlock as b, createBlock as j, resolveDynamicComponent as _e, mergeProps as A, withCtx as z, createElementVNode as se, withKeys as re, unref as o, createVNode as H, toHandlers as de, createSlots as be, renderList as ue, renderSlot as q, normalizeProps as le, guardReactiveProps as me, createCommentVNode as $, useAttrs as Pe, nextTick as R, createElementBlock as x, normalizeClass as oe, Fragment as Ee, createTextVNode as fe, toDisplayString as G, withModifiers as Ne, withDirectives as ne, vShow as ye, toRef as V, inject as pt } from "vue";
1
+ import { ref as D, watch as ve, computed as d, defineComponent as _, useSlots as he, toRefs as _e, openBlock as b, createBlock as H, resolveDynamicComponent as Pe, mergeProps as A, withCtx as W, createElementVNode as ie, withKeys as re, unref as o, createVNode as Y, toHandlers as de, createSlots as be, renderList as ue, renderSlot as U, normalizeProps as oe, guardReactiveProps as ye, createCommentVNode as R, useAttrs as Ve, inject as Ie, nextTick as F, createElementBlock as C, normalizeClass as ne, Fragment as Ee, createTextVNode as fe, toDisplayString as Q, withModifiers as $e, withDirectives as se, vShow as me, toRef as z } from "vue";
2
2
  import { B as Ke, d as xe } from "./typography.B3J6_tYk.js";
3
- import { g as ee } from "./generate-uid.DBWe4g6T.js";
3
+ import { g as te } from "./generate-uid.DBWe4g6T.js";
4
+ import { u as bt } from "./aria-label.CaUURpnB.js";
4
5
  import { u as ge } from "./index.B875RXHM.js";
5
- import { u as Ve } from "./use-has-slot.CyMiImRQ.js";
6
- import { C as ft } from "./cross-circle-fill.BWCKKn0E.js";
7
- import { C as bt } from "./cross-circle-fill-small.H1wH-vcZ.js";
8
- import { _ as X } from "./_plugin-vue_export-helper.CHgC5LLL.js";
9
- import { s as te } from "./events.BQOQSSb7.js";
10
- import { C as mt } from "./chevron-down.XeE-LBV_.js";
11
- import { C as yt } from "./chevron-up.Cmgl2a3x.js";
6
+ import { u as yt } from "./form-field.D_2g7vaP.js";
7
+ import { B as S, b as Oe, a as Me, d as mt, u as vt, c as ht, e as gt } from "./use-cached-selected-values.CtWNiy-e.js";
8
+ import { u as St } from "./use-form-layout-loading.CWbjZiwP.js";
9
+ import { u as qe } from "./use-has-slot.CyMiImRQ.js";
10
+ import { B as wt } from "./directive.D1-d-C2K.js";
11
+ import { B as j, a as Lt } from "./keyboard-navigation.DWmhelVv.js";
12
+ import { F as Ct } from "./field-label.CLV3nSzz.js";
13
+ import { P as Ne } from "./popper-container.BH4WxeUj.js";
14
+ import { h as Et } from "./button-actions.CxTxPprd.js";
15
+ import { _ as ee } from "./_plugin-vue_export-helper.CHgC5LLL.js";
16
+ import { E as xt } from "./error-message.Dyvrw6ZB.js";
17
+ import { C as Ot } from "./cross-circle-fill.BWCKKn0E.js";
18
+ import { C as It } from "./cross-circle-fill-small.H1wH-vcZ.js";
12
19
  /* empty css */
13
- import { u as vt } from "./aria-label.CaUURpnB.js";
14
- import { u as ht } from "./form-field.D_2g7vaP.js";
15
- import { B as g, b as Ie, a as ke, d as gt, u as St, c as wt, e as Lt } from "./use-cached-selected-values.C2nbQ4g-.js";
16
- import { u as Ct } from "./use-form-layout-loading.CWbjZiwP.js";
17
- import { B as Et } from "./directive.C8kY-ZW-.js";
18
- import { B as W, a as xt } from "./keyboard-navigation.DWmhelVv.js";
19
- import { F as It } from "./field-label.DFtyMriH.js";
20
- import { P as Me } from "./popper-container.WR8Hb24e.js";
21
- import { h as Ot } from "./button-actions.uco5ptf5.js";
22
- import { E as Dt } from "./error-message.Dyvrw6ZB.js";
20
+ import { s as ae } from "./events.BQOQSSb7.js";
21
+ import { C as Dt } from "./chevron-down.XeE-LBV_.js";
22
+ import { C as Bt } from "./chevron-up.Cmgl2a3x.js";
23
23
  import "../assets/dropdown.css";
24
- var ae = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(ae || {});
25
- const Oe = {
24
+ var le = /* @__PURE__ */ ((e) => (e.DEFAULT = "DropdownInputDefault", e.SMALL = "DropdownInputSmall", e))(le || {});
25
+ const De = {
26
26
  "de-DE": { apply: "Anwenden", cancel: "Abbrechen", noOptionsMatchThisSearch: "Für diese Suche wurden keine Ergebnisse gefunden." },
27
27
  "en-GB": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
28
28
  "en-US": { apply: "Apply", cancel: "Cancel", noOptionsMatchThisSearch: "No options match this search" },
@@ -33,20 +33,20 @@ const Oe = {
33
33
  "ja-JP": { apply: "適用", cancel: "キャンセル", noOptionsMatchThisSearch: "この検索に一致するオプションはありません" },
34
34
  "pt-BR": { apply: "Aplicar", cancel: "Cancelar", noOptionsMatchThisSearch: "Nenhuma opção corresponde a esta busca" },
35
35
  "zh-CN": { apply: "应用", cancel: "取消", noOptionsMatchThisSearch: "没有符合此搜索条件的选项" }
36
- }, Bt = (e, u, d, l) => {
37
- const i = B(e.value), { t: n } = ge({ messages: Oe });
36
+ }, At = (e, c, u, l) => {
37
+ const i = D(e.value), { t: n } = ge({ messages: De });
38
38
  ve(e, () => {
39
39
  i.value = e.value;
40
40
  });
41
- const t = r(
41
+ const t = d(
42
42
  () => JSON.stringify(i.value) === JSON.stringify(e.value)
43
43
  ), a = () => {
44
- l(g.SELECT, i.value), l(g.CLOSE_DROPDOWN);
45
- }, h = () => {
46
- i.value = e.value, l(g.CLOSE_DROPDOWN);
47
- }, S = () => {
48
- d.value && u.value && (i.value = e.value);
49
- }, p = r(() => [
44
+ l(S.SELECT, i.value), l(S.CLOSE_DROPDOWN);
45
+ }, m = () => {
46
+ i.value = e.value, l(S.CLOSE_DROPDOWN);
47
+ }, w = () => {
48
+ u.value && c.value && (i.value = e.value);
49
+ }, p = d(() => [
50
50
  {
51
51
  title: n("apply"),
52
52
  event: a,
@@ -54,41 +54,41 @@ const Oe = {
54
54
  },
55
55
  {
56
56
  title: n("cancel"),
57
- event: h
57
+ event: m
58
58
  }
59
- ]), w = (L) => {
60
- i.value = L, u.value || l(g.SELECT, L);
61
- }, y = (L) => {
62
- w(L), l(g.TAB);
63
- }, m = (L) => {
64
- w(L), l(g.ENTER);
65
- }, D = (L) => {
66
- w(L), l(g.SPACE);
67
- }, v = () => {
68
- h(), l(g.ESCAPE);
69
- }, c = () => {
70
- l(g.SHOW_MORE);
71
- }, O = {
72
- [g.SELECT]: w,
73
- [g.SHOW_MORE]: c,
74
- [g.TAB]: y,
75
- [g.SPACE]: D,
76
- [g.ENTER]: m
59
+ ]), g = (h) => {
60
+ i.value = h, c.value || l(S.SELECT, h);
61
+ }, v = (h) => {
62
+ g(h), l(S.TAB);
63
+ }, y = (h) => {
64
+ g(h), l(S.ENTER);
65
+ }, I = (h) => {
66
+ g(h), l(S.SPACE);
67
+ }, B = () => {
68
+ m(), l(S.ESCAPE);
69
+ }, r = () => {
70
+ l(S.SHOW_MORE);
71
+ }, x = {
72
+ [S.SELECT]: g,
73
+ [S.SHOW_MORE]: r,
74
+ [S.TAB]: v,
75
+ [S.SPACE]: I,
76
+ [S.ENTER]: y
77
77
  };
78
78
  return {
79
79
  // Values
80
80
  actions: p,
81
81
  internalSelectedValue: i,
82
82
  // Methods
83
- listeners: O,
84
- onEscapeKey: v,
85
- onOutsideDropdownClick: S
83
+ listeners: x,
84
+ onEscapeKey: B,
85
+ onOutsideDropdownClick: w
86
86
  };
87
- }, At = F({
88
- i18n: { messages: Oe },
87
+ }, kt = _({
88
+ i18n: { messages: De },
89
89
  name: "bento-dropdown-options-container"
90
- }), Tt = /* @__PURE__ */ F({
91
- ...At,
90
+ }), Tt = /* @__PURE__ */ _({
91
+ ...kt,
92
92
  props: {
93
93
  /**
94
94
  * Defines a string value that labels an interactive element.
@@ -147,8 +147,8 @@ const Oe = {
147
147
  */
148
148
  lazyLoadType: {
149
149
  type: String,
150
- default: ke.AUTOMATIC,
151
- validator: (e) => Object.values(ke).includes(e)
150
+ default: Me.AUTOMATIC,
151
+ validator: (e) => Object.values(Me).includes(e)
152
152
  },
153
153
  /**
154
154
  * Indicates if new options are lazy loading.
@@ -178,7 +178,7 @@ const Oe = {
178
178
  *
179
179
  * If enabled, hides the "Select all" checkbox in "multiple" mode.
180
180
  */
181
- searching: Ie.props.searching,
181
+ searching: Oe.props.searching,
182
182
  /**
183
183
  * If enabled, dropdown will display non-selectable, static categories
184
184
  */
@@ -187,7 +187,7 @@ const Oe = {
187
187
  * Reference to the DOM element or Vue component for positioning
188
188
  * the Dropdown container.
189
189
  */
190
- targetElement: { type: Me.props.targetElement.type, required: !0 },
190
+ targetElement: { type: Ne.props.targetElement.type, required: !0 },
191
191
  /**
192
192
  * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
193
193
  * The itemHeight function is used to calculate the height of rendered item given it's index.
@@ -197,28 +197,28 @@ const Oe = {
197
197
  default: !1
198
198
  }
199
199
  },
200
- setup(e, { expose: u, emit: d }) {
201
- const l = he(), i = d, n = e, { selectedValue: t, multiple: a } = Fe(n), h = B(null), { t: S } = ge({ messages: Oe }), p = r(() => n.open && !n.disabled), w = r(() => S("noOptionsMatchThisSearch")), y = r(() => ({
200
+ setup(e, { expose: c, emit: u }) {
201
+ const l = he(), i = u, n = e, { selectedValue: t, multiple: a } = _e(n), m = D(null), { t: w } = ge({ messages: De }), p = d(() => n.open && !n.disabled), g = d(() => w("noOptionsMatchThisSearch")), v = d(() => ({
202
202
  "b-dropdown-options-container--single": !n?.multiple
203
- })), m = r(() => ({
203
+ })), y = d(() => ({
204
204
  "b-dropdown-options-container__listbox--single": !n?.multiple
205
- })), { actions: D, internalSelectedValue: v, listeners: c, onEscapeKey: O, onOutsideDropdownClick: L } = Bt(t, a, p, i), C = r(() => n?.multiple ? Ot : Me), k = r(() => {
206
- const T = {
205
+ })), { actions: I, internalSelectedValue: B, listeners: r, onEscapeKey: x, onOutsideDropdownClick: h } = At(t, a, p, i), L = d(() => n?.multiple ? Et : Ne), T = d(() => {
206
+ const $ = {
207
207
  "min-width": `${n?.targetElement?.clientWidth}px`,
208
208
  "max-width": "min(500px, 95%)"
209
209
  };
210
210
  return n?.multiple ? {
211
211
  actionsLayout: "space-between",
212
212
  ariaLabel: n.ariaLabel,
213
- actions: D.value,
213
+ actions: I.value,
214
214
  divider: !0,
215
215
  fallbackPosition: ["top-start"],
216
- id: ee(`dropdown-options-${n.id}`),
216
+ id: te(`dropdown-options-${n.id}`),
217
217
  open: n.open,
218
218
  position: "bottom-start",
219
219
  style: {
220
220
  width: "auto",
221
- ...T
221
+ ...$
222
222
  },
223
223
  targetElement: n.targetElement
224
224
  } : {
@@ -227,60 +227,60 @@ const Oe = {
227
227
  position: "bottom-start",
228
228
  style: {
229
229
  display: p.value ? "block" : "none",
230
- ...T
230
+ ...$
231
231
  },
232
232
  targetElement: n.targetElement
233
233
  };
234
234
  });
235
- return u({
236
- onOutsideDropdownClick: L
237
- }), (T, _) => p.value ? (b(), j(_e(C.value), A({
235
+ return c({
236
+ onOutsideDropdownClick: h
237
+ }), ($, P) => p.value ? (b(), H(Pe(L.value), A({
238
238
  key: 0,
239
- class: ["b-dropdown-options-container", y.value]
240
- }, k.value), {
241
- default: z(() => [
242
- se("div", {
243
- onKeydown: _[0] || (_[0] = re(
239
+ class: ["b-dropdown-options-container", v.value]
240
+ }, T.value), {
241
+ default: W(() => [
242
+ ie("div", {
243
+ onKeydown: P[0] || (P[0] = re(
244
244
  //@ts-ignore
245
- (...M) => o(O) && o(O)(...M),
245
+ (...V) => o(x) && o(x)(...V),
246
246
  ["esc"]
247
247
  ))
248
248
  }, [
249
- H(o(Ie), A({
249
+ Y(o(Oe), A({
250
250
  id: e.id,
251
251
  ref_key: "dropdownOptionsListboxRef",
252
- ref: h,
252
+ ref: m,
253
253
  "aria-label": e.ariaLabel,
254
- class: ["b-dropdown-options-container__listbox", m.value],
254
+ class: ["b-dropdown-options-container__listbox", y.value],
255
255
  "component-loading": e.componentLoading,
256
256
  "empty-state": e.emptyState,
257
257
  "is-option-disabled": e.isOptionDisabled,
258
258
  items: e.items,
259
- "selected-value": o(v),
259
+ "selected-value": o(B),
260
260
  multiple: o(a),
261
261
  "static-categories": e.staticCategories,
262
- "no-results-message": w.value,
262
+ "no-results-message": g.value,
263
263
  searching: e.searching,
264
264
  loading: e.loading,
265
265
  "lazy-load-type": e.lazyLoadType,
266
266
  "has-more-items": e.hasMoreItems,
267
267
  "virtual-scroll": e.virtualScroll
268
- }, de(o(c))), be({ _: 2 }, [
269
- ue(o(l), (M, U) => ({
270
- name: U,
271
- fn: z((Z) => [
272
- q(T.$slots, U, le(me(Z)), void 0, !0)
268
+ }, de(o(r))), be({ _: 2 }, [
269
+ ue(o(l), (V, M) => ({
270
+ name: M,
271
+ fn: W((J) => [
272
+ U($.$slots, M, oe(ye(J)), void 0, !0)
273
273
  ])
274
274
  }))
275
275
  ]), 1040, ["id", "aria-label", "class", "component-loading", "empty-state", "is-option-disabled", "items", "selected-value", "multiple", "static-categories", "no-results-message", "searching", "loading", "lazy-load-type", "has-more-items", "virtual-scroll"])
276
276
  ], 32)
277
277
  ]),
278
278
  _: 3
279
- }, 16, ["class"])) : $("", !0);
279
+ }, 16, ["class"])) : R("", !0);
280
280
  }
281
- }), Nt = /* @__PURE__ */ X(Tt, [["__scopeId", "data-v-abf92e14"]]);
282
- var N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(N || {}), I = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(I || {});
283
- const qe = {
281
+ }), $t = /* @__PURE__ */ ee(Tt, [["__scopeId", "data-v-abf92e14"]]);
282
+ var k = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.HAS_ITEMS = "has-items", e.OPENED = "opened", e.ERROR = "error", e))(k || {}), E = /* @__PURE__ */ ((e) => (e.OPEN = "dropdown-base-open", e.KEYDOWN = "dropdown-base-keydown", e.CLOSE = "dropdown-base-close", e.INPUT = "dropdown-base-input", e.CLEAR = "dropdown-base-clear", e))(E || {});
283
+ const Mt = /* @__PURE__ */ Symbol("dropdown small size injection key"), ze = /* @__PURE__ */ Symbol("dropdown underline style injection key"), Ue = {
284
284
  "de-DE": { clearSearch: "Suche löschen" },
285
285
  "en-GB": { clearSearch: "Clear search" },
286
286
  "en-US": { clearSearch: "Clear search" },
@@ -291,22 +291,22 @@ const qe = {
291
291
  "ja-JP": { clearSearch: "検索をクリア" },
292
292
  "pt-BR": { clearSearch: "Limpar busca" },
293
293
  "zh-CN": { clearSearch: "清除搜索" }
294
- }, kt = ["id", "value", "disabled", "readonly", "required"], Mt = ["id", "aria-readonly", "tabindex"], $t = {
294
+ }, Nt = ["id", "value", "disabled", "readonly", "required"], Rt = ["id", "aria-readonly", "tabindex"], Ft = {
295
295
  key: 1,
296
296
  class: "b-dropdown-base-textbox__input-multiple-selected"
297
- }, Rt = { class: "b-dropdown-base-textbox__input-selected-element" }, Ft = {
297
+ }, _t = { class: "b-dropdown-base-textbox__input-selected-element" }, Pt = {
298
298
  key: 2,
299
299
  class: "b-dropdown-base-textbox__additional-items"
300
- }, _t = {
300
+ }, Vt = {
301
301
  key: 3,
302
302
  class: "b-dropdown-base-textbox__icon",
303
303
  "aria-hidden": "true"
304
- }, Pt = ["tabindex", "onKeydown"], Kt = F({
305
- i18n: { messages: qe },
304
+ }, Kt = ["tabindex", "onKeydown"], qt = _({
305
+ i18n: { messages: Ue },
306
306
  name: "dropdown-base-textbox",
307
307
  inheritAttrs: !1
308
- }), Vt = /* @__PURE__ */ F({
309
- ...Kt,
308
+ }), zt = /* @__PURE__ */ _({
309
+ ...qt,
310
310
  props: {
311
311
  /**
312
312
  * The number of additional items that have been selected in the dropdown.
@@ -390,16 +390,17 @@ const qe = {
390
390
  default: null
391
391
  }
392
392
  },
393
- setup(e, { expose: u, emit: d }) {
394
- const { t: l } = ge({ messages: qe }), i = Pe(), n = he(), t = Ve(n), a = e, h = d, S = B(null), p = ee("textbox"), w = r(() => ({
395
- [`b-dropdown-base-textbox--${N.DISABLED}`]: a.disabled,
396
- [`b-dropdown-base-textbox--${N.READONLY}`]: a.readonly,
397
- [`b-dropdown-base-textbox--${N.HAS_ITEMS}`]: !!a.additionalItemsSelected
398
- })), y = r(
399
- () => O.value && i["aria-required"] ? "true" : null
400
- ), m = r(() => ({
393
+ setup(e, { expose: c, emit: u }) {
394
+ const { t: l } = ge({ messages: Ue }), i = Ve(), n = he(), t = qe(n), a = e, m = u, w = D(null), p = te("textbox"), g = Ie(ze, !1), v = d(() => ({
395
+ [`b-dropdown-base-textbox--${k.DISABLED}`]: a.disabled,
396
+ [`b-dropdown-base-textbox--${k.READONLY}`]: a.readonly,
397
+ [`b-dropdown-base-textbox--${k.HAS_ITEMS}`]: !!a.additionalItemsSelected,
398
+ "b-dropdown-base-textbox--underline": g
399
+ })), y = d(
400
+ () => h.value && i["aria-required"] ? "true" : null
401
+ ), I = d(() => ({
401
402
  "b-dropdown-base-textbox__input--dynamic-filtering": a.dynamicFiltering
402
- })), D = r(() => a.dynamicFiltering && !!a.value && a.open), v = r(
403
+ })), B = d(() => a.dynamicFiltering && !!a.value && a.open), r = d(
403
404
  () => ({
404
405
  "aria-haspopup": "listbox",
405
406
  "aria-controls": a.ariaControls,
@@ -411,48 +412,49 @@ const qe = {
411
412
  "aria-disabled": a.disabled ? !0 : null,
412
413
  "aria-required": i["aria-required"]
413
414
  })
414
- ), c = r(
415
+ ), x = d(
415
416
  () => a.multiple ? a.selectedValueItem : []
416
- ), O = r(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = r(() => a.selectedValueItem && !a.multiple), C = r(
417
- () => a.multiple && a.selectedValueItem && c.value.length > 0 && a.showSlotContentInMultiple
417
+ ), h = d(() => a.dynamicFiltering && (a.open || a.alwaysComboboxIsInput)), L = d(() => a.selectedValueItem && !a.multiple), T = d(
418
+ () => a.multiple && a.selectedValueItem && x.value.length > 0 && a.showSlotContentInMultiple
418
419
  );
419
420
  ve(
420
- () => O.value,
421
+ () => h.value,
421
422
  () => {
422
- O.value && !a.alwaysComboboxIsInput && R(() => {
423
- S.value.focus();
423
+ h.value && !a.alwaysComboboxIsInput && F(() => {
424
+ w.value.focus();
424
425
  });
425
426
  }
426
427
  );
427
- const k = async () => {
428
- !a.disabled && !a.readonly && (h(I.OPEN), await R(), S.value.focus());
429
- }, T = () => {
430
- a.open && (S.value.focus(), h(I.CLOSE));
431
- }, _ = (E) => a.open && E.target.tagName === "INPUT" ? null : a.open ? T() : k(), M = () => {
432
- h(I.CLEAR), h(I.INPUT, ""), S.value.focus();
433
- }, U = (E) => {
434
- !a.readonly && !a.disabled ? h(I.INPUT, E.target.value) : (E.preventDefault(), E.stopPropagation());
428
+ const $ = async () => {
429
+ !a.disabled && !a.readonly && (m(E.OPEN), await F(), w.value.focus());
430
+ }, P = () => {
431
+ a.open && (w.value.focus(), m(E.CLOSE));
432
+ }, V = (O) => a.open && O.target.tagName === "INPUT" ? null : a.open ? P() : $(), M = () => {
433
+ m(E.CLEAR), m(E.INPUT, ""), w.value.focus();
434
+ }, J = (O) => {
435
+ !a.readonly && !a.disabled ? m(E.INPUT, O.target.value) : (O.preventDefault(), O.stopPropagation());
435
436
  };
436
- return u({
437
+ return c({
437
438
  focus: () => {
438
- S.value.focus();
439
+ w.value.focus();
439
440
  }
440
- }), (E, Q) => (b(), x("div", {
441
- class: oe(E.$attrs.class),
441
+ }), (O, f) => (b(), C("div", {
442
+ class: ne(O.$attrs.class),
442
443
  "data-testid": "textbox-wrapper",
443
- onClick: _,
444
- onKeydown: re(T, ["escape"])
444
+ onClick: V,
445
+ onKeydown: re(P, ["escape"])
445
446
  }, [
446
- H(o(Ke), {
447
- class: oe(["b-dropdown-base-textbox", w.value]),
447
+ Y(o(Ke), {
448
+ class: ne(["b-dropdown-base-textbox", v.value]),
449
+ variant: o(g) ? "title" : "body",
448
450
  el: "div",
449
451
  "data-testid": "base-textbox"
450
452
  }, {
451
- default: z(() => [
452
- O.value ? (b(), x("input", A({ key: 0 }, v.value, {
453
+ default: W(() => [
454
+ h.value ? (b(), C("input", A({ key: 0 }, r.value, {
453
455
  id: o(p),
454
456
  ref_key: "textbox",
455
- ref: S,
457
+ ref: w,
456
458
  class: "b-dropdown-base-textbox__input",
457
459
  role: "combobox",
458
460
  type: "text",
@@ -463,70 +465,70 @@ const qe = {
463
465
  readonly: e.readonly,
464
466
  required: y.value,
465
467
  onKeydown: [
466
- Q[0] || (Q[0] = (f) => E.$emit(o(I).KEYDOWN, f)),
467
- re(_, ["enter"])
468
+ f[0] || (f[0] = (N) => O.$emit(o(E).KEYDOWN, N)),
469
+ re(V, ["enter"])
468
470
  ],
469
- onInput: U
470
- }), null, 16, kt)) : (b(), x("div", A({
471
+ onInput: J
472
+ }), null, 16, Nt)) : (b(), C("div", A({
471
473
  key: 1,
472
474
  id: o(p)
473
- }, v.value, {
475
+ }, r.value, {
474
476
  ref_key: "textbox",
475
- ref: S,
476
- class: ["b-dropdown-base-textbox__input", m.value],
477
+ ref: w,
478
+ class: ["b-dropdown-base-textbox__input", I.value],
477
479
  "aria-readonly": e.readonly ? "true" : null,
478
480
  role: "combobox",
479
481
  tabindex: e.disabled ? -1 : 0
480
482
  }), [
481
- L.value ? (b(), x(Ee, { key: 0 }, [
482
- o(t)("display-value") ? q(E.$slots, "display-value", le(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : q(E.$slots, "default", le(A({ key: 1 }, e.selectedValueItem)), () => [
483
- fe(G(e.displayValue), 1)
483
+ L.value ? (b(), C(Ee, { key: 0 }, [
484
+ o(t)("display-value") ? U(O.$slots, "display-value", oe(A({ key: 0 }, e.selectedValueItem)), void 0, !0) : U(O.$slots, "default", oe(A({ key: 1 }, e.selectedValueItem)), () => [
485
+ fe(Q(e.displayValue), 1)
484
486
  ], !0)
485
- ], 64)) : C.value ? (b(), x("div", $t, [
486
- (b(!0), x(Ee, null, ue(c.value, (f) => (b(), x("div", {
487
- key: f.value
487
+ ], 64)) : T.value ? (b(), C("div", Ft, [
488
+ (b(!0), C(Ee, null, ue(x.value, (N) => (b(), C("div", {
489
+ key: N.value
488
490
  }, [
489
- se("div", Rt, [
490
- q(E.$slots, "default", A({ ref_for: !0 }, f), () => [
491
- fe(G(e.displayValue), 1)
491
+ ie("div", _t, [
492
+ U(O.$slots, "default", A({ ref_for: !0 }, N), () => [
493
+ fe(Q(e.displayValue), 1)
492
494
  ], !0)
493
495
  ])
494
496
  ]))), 128))
495
- ])) : (b(), x(Ee, { key: 2 }, [
496
- fe(G(e.displayValue), 1)
497
+ ])) : (b(), C(Ee, { key: 2 }, [
498
+ fe(Q(e.displayValue), 1)
497
499
  ], 64))
498
- ], 16, Mt)),
499
- e.additionalItemsSelected ? (b(), x("span", Ft, G(e.additionalItemsSelected), 1)) : $("", !0),
500
- o(t)("icon") && !D.value ? (b(), x("span", _t, [
501
- q(E.$slots, "icon", {}, void 0, !0)
502
- ])) : $("", !0),
503
- D.value ? (b(), x("span", {
500
+ ], 16, Rt)),
501
+ e.additionalItemsSelected ? (b(), C("span", Pt, Q(e.additionalItemsSelected), 1)) : R("", !0),
502
+ o(t)("icon") && !B.value ? (b(), C("span", Vt, [
503
+ U(O.$slots, "icon", {}, void 0, !0)
504
+ ])) : R("", !0),
505
+ B.value ? (b(), C("span", {
504
506
  key: 4,
505
507
  class: "b-dropdown-base-textbox__clear-search",
506
508
  tabindex: e.disabled ? -1 : 0,
507
509
  "data-testid": "clear-search-button",
508
- onClick: Ne(M, ["stop"]),
509
- onKeydown: re(Ne(M, ["stop"]), ["enter"]),
510
+ onClick: $e(M, ["stop"]),
511
+ onKeydown: re($e(M, ["stop"]), ["enter"]),
510
512
  onKeyup: re(M, ["space"])
511
513
  }, [
512
- e.size === o(ae).SMALL ? (b(), j(o(bt), {
514
+ e.size === o(le).SMALL ? (b(), H(o(It), {
513
515
  key: 0,
514
516
  "svg-title": o(l)("clearSearch")
515
- }, null, 8, ["svg-title"])) : (b(), j(o(ft), {
517
+ }, null, 8, ["svg-title"])) : (b(), H(o(Ot), {
516
518
  key: 1,
517
519
  "svg-title": o(l)("clearSearch")
518
520
  }, null, 8, ["svg-title"]))
519
- ], 40, Pt)) : $("", !0)
521
+ ], 40, Kt)) : R("", !0)
520
522
  ]),
521
523
  _: 3
522
- }, 8, ["class"])
524
+ }, 8, ["class", "variant"])
523
525
  ], 34));
524
526
  }
525
- }), ze = /* @__PURE__ */ X(Vt, [["__scopeId", "data-v-c9de8fe1"]]), qt = { class: "b-dropdown-default-textbox__chevron" }, zt = F({
527
+ }), We = /* @__PURE__ */ ee(zt, [["__scopeId", "data-v-d9e852a4"]]), Ut = { class: "b-dropdown-default-textbox__chevron" }, Wt = _({
526
528
  name: "dropdown-default-textbox",
527
529
  inheritAttrs: !1
528
- }), Ut = /* @__PURE__ */ F({
529
- ...zt,
530
+ }), jt = /* @__PURE__ */ _({
531
+ ...Wt,
530
532
  props: {
531
533
  /**
532
534
  * The number of additional items that have been selected in the dropdown.
@@ -613,115 +615,115 @@ const qe = {
613
615
  multiple: { type: Boolean, default: !1 }
614
616
  },
615
617
  emits: ["clear", "close", "input", "keydown", "open"],
616
- setup(e, { expose: u, emit: d }) {
617
- const l = d, i = he(), n = e, t = B(null), a = r(() => ({
618
- [`b-dropdown-default-textbox--${N.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
619
- [`b-dropdown-default-textbox--${N.DISABLED}`]: n.disabled,
620
- [`b-dropdown-default-textbox--${N.READONLY}`]: n.readonly,
621
- [`b-dropdown-default-textbox--${N.OPENED}`]: n.open,
618
+ setup(e, { expose: c, emit: u }) {
619
+ const l = u, i = he(), n = e, t = D(null), a = d(() => ({
620
+ [`b-dropdown-default-textbox--${k.ERROR}`]: !n.disabled && !n.readonly && n.isInvalid,
621
+ [`b-dropdown-default-textbox--${k.DISABLED}`]: n.disabled,
622
+ [`b-dropdown-default-textbox--${k.READONLY}`]: n.readonly,
623
+ [`b-dropdown-default-textbox--${k.OPENED}`]: n.open,
622
624
  "b-dropdown-default-textbox--condensed": n.condensed
623
- })), h = r(() => n.open && !n.disabled && !n.readonly), S = (c) => {
624
- l("input", c);
625
- }, p = (c) => {
626
- l("keydown", c);
627
- }, w = (c) => {
628
- te(c), l("open");
629
- }, y = (c) => {
630
- te(c), l("close");
631
- }, m = (c) => {
632
- te(c), l("clear");
633
- }, D = {
634
- [I.INPUT]: S,
635
- [I.OPEN]: w,
636
- [I.CLOSE]: y,
637
- [I.CLEAR]: m,
638
- [I.KEYDOWN]: p
625
+ })), m = d(() => n.open && !n.disabled && !n.readonly), w = (r) => {
626
+ l("input", r);
627
+ }, p = (r) => {
628
+ l("keydown", r);
629
+ }, g = (r) => {
630
+ ae(r), l("open");
631
+ }, v = (r) => {
632
+ ae(r), l("close");
633
+ }, y = (r) => {
634
+ ae(r), l("clear");
635
+ }, I = {
636
+ [E.INPUT]: w,
637
+ [E.OPEN]: g,
638
+ [E.CLOSE]: v,
639
+ [E.CLEAR]: y,
640
+ [E.KEYDOWN]: p
639
641
  };
640
- return u({
642
+ return c({
641
643
  focus: () => {
642
644
  t.value.focus();
643
645
  }
644
- }), (c, O) => (b(), x("div", {
645
- class: oe(["b-dropdown-default-textbox", a.value]),
646
+ }), (r, x) => (b(), C("div", {
647
+ class: ne(["b-dropdown-default-textbox", a.value]),
646
648
  "data-testid": "default-textbox"
647
649
  }, [
648
- H(ze, A({
650
+ Y(We, A({
649
651
  ref_key: "baseTextbox",
650
652
  ref: t
651
- }, { ...c.$attrs, ...c.$props }, {
653
+ }, { ...r.$attrs, ...r.$props }, {
652
654
  class: "b-dropdown-default-textbox__textbox",
653
655
  value: e.value
654
- }, de(D)), be({
655
- icon: z(() => [
656
- se("div", qt, [
657
- ne(H(o(yt), { "svg-title": "opened" }, null, 512), [
658
- [ye, h.value]
656
+ }, de(I)), be({
657
+ icon: W(() => [
658
+ ie("div", Ut, [
659
+ se(Y(o(Bt), { "svg-title": "opened" }, null, 512), [
660
+ [me, m.value]
659
661
  ]),
660
- ne(H(o(mt), { "svg-title": "closed" }, null, 512), [
661
- [ye, !h.value]
662
+ se(Y(o(Dt), { "svg-title": "closed" }, null, 512), [
663
+ [me, !m.value]
662
664
  ])
663
665
  ])
664
666
  ]),
665
667
  _: 2
666
668
  }, [
667
- ue(o(i), (L, C) => ({
668
- name: C,
669
- fn: z((k) => [
670
- q(c.$slots, C, le(me(k ?? {})), void 0, !0)
669
+ ue(o(i), (h, L) => ({
670
+ name: L,
671
+ fn: W((T) => [
672
+ U(r.$slots, L, oe(ye(T ?? {})), void 0, !0)
671
673
  ])
672
674
  }))
673
675
  ]), 1040, ["value"])
674
676
  ], 2));
675
677
  }
676
- }), Wt = /* @__PURE__ */ X(Ut, [["__scopeId", "data-v-c3e3ce21"]]);
677
- let $e = 0;
678
- const jt = {
678
+ }), Ht = /* @__PURE__ */ ee(jt, [["__scopeId", "data-v-c3e3ce21"]]);
679
+ let Re = 0;
680
+ const Yt = {
679
681
  beforeCreate() {
680
- this.uuid = $e.toString(), $e += 1;
682
+ this.uuid = Re.toString(), Re += 1;
681
683
  }
682
- }, Ht = { key: 0 };
683
- function Yt(e, u, d, l, i, n) {
684
- return b(), x("svg", A({ role: "img" }, e.$attrs, {
684
+ }, Jt = { key: 0 };
685
+ function Gt(e, c, u, l, i, n) {
686
+ return b(), C("svg", A({ role: "img" }, e.$attrs, {
685
687
  class: "ui-assets-icons-16",
686
688
  xmlns: "http://www.w3.org/2000/svg",
687
689
  width: "16",
688
690
  height: "16",
689
691
  fill: "none"
690
692
  }), [
691
- e.$attrs["svg-title"] ? (b(), x("title", Ht, G(e.$attrs["svg-title"]), 1)) : $("", !0),
692
- u[0] || (u[0] = se("path", {
693
+ e.$attrs["svg-title"] ? (b(), C("title", Jt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
694
+ c[0] || (c[0] = ie("path", {
693
695
  fill: "#001222",
694
696
  d: "M5.00011 5.43922L8.00011 8.43922L11.0001 5.43922L12.0608 6.49988L8.00011 10.5605L3.93945 6.49988L5.00011 5.43922Z"
695
697
  }, null, -1))
696
698
  ], 16);
697
699
  }
698
- const Jt = /* @__PURE__ */ X(jt, [["render", Yt]]);
699
- let Re = 0;
700
- const Gt = {
700
+ const Xt = /* @__PURE__ */ ee(Yt, [["render", Gt]]);
701
+ let Fe = 0;
702
+ const Zt = {
701
703
  beforeCreate() {
702
- this.uuid = Re.toString(), Re += 1;
704
+ this.uuid = Fe.toString(), Fe += 1;
703
705
  }
704
- }, Xt = { key: 0 };
705
- function Zt(e, u, d, l, i, n) {
706
- return b(), x("svg", A({ role: "img" }, e.$attrs, {
706
+ }, Qt = { key: 0 };
707
+ function ea(e, c, u, l, i, n) {
708
+ return b(), C("svg", A({ role: "img" }, e.$attrs, {
707
709
  class: "ui-assets-icons-16",
708
710
  xmlns: "http://www.w3.org/2000/svg",
709
711
  width: "16",
710
712
  height: "16",
711
713
  fill: "none"
712
714
  }), [
713
- e.$attrs["svg-title"] ? (b(), x("title", Xt, G(e.$attrs["svg-title"]), 1)) : $("", !0),
714
- u[0] || (u[0] = se("path", {
715
+ e.$attrs["svg-title"] ? (b(), C("title", Qt, Q(e.$attrs["svg-title"]), 1)) : R("", !0),
716
+ c[0] || (c[0] = ie("path", {
715
717
  fill: "#001222",
716
718
  d: "M10.9999 10.5608L7.9999 7.56077L4.9999 10.5608L3.93924 9.50011L7.9999 5.43945L12.0606 9.50011L10.9999 10.5608Z"
717
719
  }, null, -1))
718
720
  ], 16);
719
721
  }
720
- const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-small-textbox__chevron" }, ta = F({
722
+ const ta = /* @__PURE__ */ ee(Zt, [["render", ea]]), aa = { class: "b-dropdown-small-textbox__chevron" }, la = _({
721
723
  name: "dropdown-small-textbox",
722
724
  inheritAttrs: !1
723
- }), aa = /* @__PURE__ */ F({
724
- ...ta,
725
+ }), oa = /* @__PURE__ */ _({
726
+ ...la,
725
727
  props: {
726
728
  /**
727
729
  * The number of additional items that have been selected in the dropdown.
@@ -777,49 +779,50 @@ const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
777
779
  value: { type: String, default: "" }
778
780
  },
779
781
  emits: ["clear", "close", "input", "keydown", "open"],
780
- setup(e, { expose: u, emit: d }) {
781
- const l = d, i = e, n = B(null), t = r(() => ({
782
- [`b-dropdown-small-textbox--${N.DISABLED}`]: i.disabled,
783
- [`b-dropdown-small-textbox--${N.READONLY}`]: i.readonly,
784
- [`b-dropdown-small-textbox--${N.OPENED}`]: i.open
785
- })), a = r(() => i.open && !i.disabled && !i.readonly), h = (v) => {
786
- l("input", v);
787
- }, S = (v) => {
788
- l("keydown", v);
789
- }, p = (v) => {
790
- te(v), l("open");
791
- }, w = (v) => {
792
- te(v), l("close");
793
- }, y = (v) => {
794
- te(v), l("clear");
795
- }, m = {
796
- [I.INPUT]: h,
797
- [I.OPEN]: p,
798
- [I.CLOSE]: w,
799
- [I.CLEAR]: y,
800
- [I.KEYDOWN]: S
782
+ setup(e, { expose: c, emit: u }) {
783
+ const l = u, i = e, n = D(null), t = Ie(ze, !1), a = d(() => ({
784
+ [`b-dropdown-small-textbox--${k.DISABLED}`]: i.disabled,
785
+ [`b-dropdown-small-textbox--${k.READONLY}`]: i.readonly,
786
+ [`b-dropdown-small-textbox--${k.OPENED}`]: i.open,
787
+ "b-dropdown-small-textbox--underline": t
788
+ })), m = d(() => i.open && !i.disabled && !i.readonly), w = (r) => {
789
+ l("input", r);
790
+ }, p = (r) => {
791
+ l("keydown", r);
792
+ }, g = (r) => {
793
+ ae(r), l("open");
794
+ }, v = (r) => {
795
+ ae(r), l("close");
796
+ }, y = (r) => {
797
+ ae(r), l("clear");
798
+ }, I = {
799
+ [E.INPUT]: w,
800
+ [E.OPEN]: g,
801
+ [E.CLOSE]: v,
802
+ [E.CLEAR]: y,
803
+ [E.KEYDOWN]: p
801
804
  };
802
- return u({
805
+ return c({
803
806
  focus: () => {
804
807
  n.value.focus();
805
808
  }
806
- }), (v, c) => (b(), x("div", {
807
- class: oe(["b-dropdown-small-textbox", t.value])
809
+ }), (r, x) => (b(), C("div", {
810
+ class: ne(["b-dropdown-small-textbox", a.value])
808
811
  }, [
809
- H(ze, A({
812
+ Y(We, A({
810
813
  ref_key: "baseTextbox",
811
814
  ref: n
812
- }, { ...v.$attrs, ...v.$props }, {
815
+ }, { ...r.$attrs, ...r.$props }, {
813
816
  class: "b-dropdown-small-textbox__textbox",
814
- size: o(ae).SMALL
815
- }, de(m)), {
816
- icon: z(() => [
817
- se("div", ea, [
818
- ne(H(o(Qt), { "svg-title": "opened" }, null, 512), [
819
- [ye, a.value]
817
+ size: o(le).SMALL
818
+ }, de(I)), {
819
+ icon: W(() => [
820
+ ie("div", aa, [
821
+ se(Y(o(ta), { "svg-title": "opened" }, null, 512), [
822
+ [me, m.value]
820
823
  ]),
821
- ne(H(o(Jt), { "svg-title": "closed" }, null, 512), [
822
- [ye, !a.value]
824
+ se(Y(o(Xt), { "svg-title": "closed" }, null, 512), [
825
+ [me, !m.value]
823
826
  ])
824
827
  ])
825
828
  ]),
@@ -827,106 +830,106 @@ const Qt = /* @__PURE__ */ X(Gt, [["render", Zt]]), ea = { class: "b-dropdown-sm
827
830
  }, 16, ["size"])
828
831
  ], 2));
829
832
  }
830
- }), la = /* @__PURE__ */ X(aa, [["__scopeId", "data-v-39ce3ec8"]]), oa = (e, u) => u.value.reduce((d, l) => {
833
+ }), na = /* @__PURE__ */ ee(oa, [["__scopeId", "data-v-5fe55c74"]]), sa = (e, c) => c.value.reduce((u, l) => {
831
834
  if (l.items) {
832
835
  const i = l.items.filter(
833
836
  (t) => e.value.find((a) => a.value === t.value)
834
837
  );
835
- i.length === l.items.length ? d.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => d.push(a ?? t));
838
+ i.length === l.items.length ? u.push(l.displayValue ?? l.label) : i.forEach(({ label: t, displayValue: a }) => u.push(a ?? t));
836
839
  }
837
- return e.value.find((i) => i.value === l.value) && d.push(l.displayValue ?? l.label), d;
838
- }, []).join(", "), na = ({ items: e, placeholder: u, selectedValues: d, isMultiSelect: l }) => {
839
- const i = r(
840
+ return e.value.find((i) => i.value === l.value) && u.push(l.displayValue ?? l.label), u;
841
+ }, []).join(", "), ia = ({ items: e, placeholder: c, selectedValues: u, isMultiSelect: l }) => {
842
+ const i = d(
840
843
  () => l.value && e.value.find((t) => t.items?.length)
841
844
  );
842
- return r(() => d.value.length ? i.value ? oa(d, e) : d.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : u.value || null);
843
- }, Ue = (e) => {
845
+ return d(() => u.value.length ? i.value ? sa(u, e) : u.value.map(({ label: t, displayValue: a }) => a ?? t).join(", ") : c.value || null);
846
+ }, je = (e) => {
844
847
  e.value.$children?.[0].$refs.textbox.focus();
845
- }, sa = ({
848
+ }, ra = ({
846
849
  inputContainerRef: e,
847
- optionsContainerRef: u,
848
- selectedValueIndex: d,
850
+ optionsContainerRef: c,
851
+ selectedValueIndex: u,
849
852
  isDropdownOpen: l,
850
853
  isDynamicFltering: i,
851
854
  items: n,
852
855
  isMultiple: t,
853
856
  totalItemCount: a,
854
- isVirtualScroll: h
855
- }, S, p, w) => {
856
- const y = async (f) => {
857
- i.value && await R(), n.value[f]?.focus();
858
- }, m = async (f) => {
859
- i.value && await R();
860
- const ie = u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
857
+ isVirtualScroll: m
858
+ }, w, p, g) => {
859
+ const v = async (f) => {
860
+ i.value && await F(), n.value[f]?.focus();
861
+ }, y = async (f) => {
862
+ i.value && await F();
863
+ const N = c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.$el.querySelectorAll(
861
864
  "button"
862
865
  );
863
- ie?.length ? ie[f]?.focus() : y(f);
864
- }, D = (f) => u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
866
+ N?.length ? N[f]?.focus() : v(f);
867
+ }, I = (f) => c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.setListboxFocusedIndex(
865
868
  f
866
- ), v = async (f) => {
867
- await u.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
868
- }, c = (f) => {
869
- R(() => {
870
- h ? v(f) : (D(f), y(f));
869
+ ), B = async (f) => {
870
+ await c.value.$refs.dropdownOptionsListboxRef.$refs.listboxItemRef?.navigateToItem(f);
871
+ }, r = (f) => {
872
+ F(() => {
873
+ m ? B(f) : (I(f), v(f));
871
874
  });
872
- }, O = () => {
873
- l.value || p(), c(0);
874
- }, L = () => {
875
- l.value || p(), R(() => {
876
- c(h ? a.value - 1 : n.value.length - 1);
875
+ }, x = () => {
876
+ l.value || p(), r(0);
877
+ }, h = () => {
878
+ l.value || p(), F(() => {
879
+ r(m ? a.value - 1 : n.value.length - 1);
877
880
  });
878
- }, C = ({ detail: f }) => {
879
- f.preventDefault(), O();
880
- }, k = ({ detail: f }) => {
881
- f.preventDefault(), L();
882
- }, T = () => {
883
- O();
884
- }, _ = () => {
885
- L();
881
+ }, L = ({ detail: f }) => {
882
+ f.preventDefault(), x();
883
+ }, T = ({ detail: f }) => {
884
+ f.preventDefault(), h();
885
+ }, $ = () => {
886
+ x();
887
+ }, P = () => {
888
+ h();
889
+ }, V = ({ detail: f }) => {
890
+ f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
886
891
  }, M = ({ detail: f }) => {
887
- f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
888
- }, U = ({ detail: f }) => {
889
- f.preventDefault(), S(), l.value && (t ? m(0) : c(d.value));
890
- }, Z = () => {
891
- l.value && w();
892
- }, E = () => {
893
- l.value && (w(), Ue(e));
892
+ f.preventDefault(), w(), l.value && (t ? y(0) : r(u.value));
893
+ }, J = () => {
894
+ l.value && g();
895
+ }, G = () => {
896
+ l.value && (g(), je(e));
894
897
  };
895
- return r(() => ({
896
- [W.ARROW_DOWN]: C,
897
- [W.ARROW_UP]: k,
898
- [W.HOME]: T,
899
- [W.END]: _,
900
- ...i.value ? {} : { [W.SPACE]: M },
901
- [W.ENTER]: U,
902
- ...i.value ? {} : { [W.TAB]: Z },
903
- [W.ESCAPE]: E
898
+ return d(() => ({
899
+ [j.ARROW_DOWN]: L,
900
+ [j.ARROW_UP]: T,
901
+ [j.HOME]: $,
902
+ [j.END]: P,
903
+ ...i.value ? {} : { [j.SPACE]: V },
904
+ [j.ENTER]: M,
905
+ ...i.value ? {} : { [j.TAB]: J },
906
+ [j.ESCAPE]: G
904
907
  }));
905
- }, ia = ({ inputContainerRef: e, isDropdownOpen: u }, d) => {
908
+ }, da = ({ inputContainerRef: e, isDropdownOpen: c }, u) => {
906
909
  const l = () => {
907
- u.value && d(), R(() => {
908
- Ue(e);
910
+ c.value && u(), F(() => {
911
+ je(e);
909
912
  });
910
913
  };
911
914
  return {
912
- [g.ENTER]: l,
913
- [g.ESCAPE]: l,
914
- [g.TAB]: l,
915
- [g.SPACE]: l
915
+ [S.ENTER]: l,
916
+ [S.ESCAPE]: l,
917
+ [S.TAB]: l,
918
+ [S.SPACE]: l
916
919
  };
917
920
  };
918
- function ra(e, u, d, l, i) {
919
- const n = B(e), t = B(u), a = (p, w = []) => w.flatMap((y) => y.label.toLocaleLowerCase().includes(p) ? l?.value && y.items ? [...a(p, y.items)] : [y, ...a(p, y.items)] : y.items ? [...a(p, y.items)] : []), h = d !== void 0 ? gt(() => d(n.value), i ?? 300) : void 0;
921
+ function ua(e, c, u, l, i) {
922
+ const n = D(e), t = D(c), a = (p, g = []) => g.flatMap((v) => v.label.toLocaleLowerCase().includes(p) ? l?.value && v.items ? [...a(p, v.items)] : [v, ...a(p, v.items)] : v.items ? [...a(p, v.items)] : []), m = u !== void 0 ? mt(() => u(n.value), i ?? 300) : void 0;
920
923
  return ve(n, () => {
921
- h !== void 0 && h();
922
- }), r(() => {
923
- if (!n.value || d !== void 0)
924
+ m !== void 0 && m();
925
+ }), d(() => {
926
+ if (!n.value || u !== void 0)
924
927
  return t.value;
925
928
  const p = n.value.toLocaleLowerCase();
926
929
  return a(p, t.value);
927
930
  });
928
931
  }
929
- const We = {
932
+ const He = {
930
933
  "de-DE": { all: "Alle", ariaLabelFallback: "Dropdown", clearSearch: "Filter löschen" },
931
934
  "en-GB": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
932
935
  "en-US": { all: "All", ariaLabelFallback: "Dropdown", clearSearch: "Clear filter" },
@@ -937,16 +940,16 @@ const We = {
937
940
  "ja-JP": { all: "すべて", ariaLabelFallback: "ドロップダウン", clearSearch: "フィルターをクリア" },
938
941
  "pt-BR": { all: "Todos", ariaLabelFallback: "Menu suspenso", clearSearch: "Limpar filtro" },
939
942
  "zh-CN": { all: "全部", ariaLabelFallback: "下拉菜单", clearSearch: "清除筛选器" }
940
- }, da = /* @__PURE__ */ Symbol("input field component injection key"), Ma = /* @__PURE__ */ Symbol("input field hint injection key"), $a = /* @__PURE__ */ Symbol("input field parent component injection key"), ua = F({
941
- i18n: { messages: We },
943
+ }, ca = _({
944
+ i18n: { messages: He },
942
945
  name: "b-dropdown",
943
946
  components: {
944
- DropdownInputDefault: Wt,
945
- DropdownInputSmall: la
947
+ DropdownInputDefault: Ht,
948
+ DropdownInputSmall: na
946
949
  },
947
950
  model: { prop: "modelValue" }
948
- }), ca = /* @__PURE__ */ F({
949
- ...ua,
951
+ }), pa = /* @__PURE__ */ _({
952
+ ...ca,
950
953
  props: {
951
954
  ariaLabel: { default: null },
952
955
  condensed: { type: Boolean, default: !1 },
@@ -958,7 +961,7 @@ const We = {
958
961
  items: { default: () => [] },
959
962
  loading: { type: Boolean, default: !1 },
960
963
  componentLoading: { type: Boolean, default: !1 },
961
- lazyLoadType: { default: Ie.props.lazyLoadType.default },
964
+ lazyLoadType: { default: Oe.props.lazyLoadType.default },
962
965
  multiple: { type: Boolean, default: !1 },
963
966
  search: { default: void 0 },
964
967
  showSlotContentInMultiple: { type: Boolean, default: !1 },
@@ -979,105 +982,105 @@ const We = {
979
982
  tooltipText: { default: null }
980
983
  },
981
984
  emits: ["input", "update:model-value", "show-more", "open"],
982
- setup(e, { expose: u, emit: d }) {
983
- const l = Pe(), i = he(), n = Ve(i), t = e, a = d, { t: h } = ge({ messages: We }), { emitValue: S } = ht(a), p = B(null), w = B(null), y = B(null), m = B(!1), D = ee("bento-dropdown-options-container"), v = ee("dropdown-label"), c = ee("dropdown-description"), O = ee("dropdown-error"), { isReadOnly: L } = Ct(V(t, "readonly")), C = r(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: k, cachedListboxSelectedValues: T, setCachedValues: _ } = St(
984
- V(t, "items"),
985
- C,
986
- V(t, "multiple"),
987
- V(t, "enableValueLabelPair")
988
- ), M = B(l["aria-label"]), U = B(l["aria-describedby"]), { ariaLabel: Z, label: E } = Fe(t), Q = r(() => h("ariaLabelFallback")), f = vt({
985
+ setup(e, { expose: c, emit: u }) {
986
+ const l = Ve(), i = he(), n = qe(i), t = e, a = u, { t: m } = ge({ messages: He }), { emitValue: w } = yt(a), p = D(null), g = D(null), v = D(null), y = D(!1), I = te("bento-dropdown-options-container"), B = te("dropdown-label"), r = te("dropdown-description"), x = te("dropdown-error"), { isReadOnly: h } = St(z(t, "readonly")), L = d(() => t.modelValue ?? t.value), { cachedSelectedListboxOptions: T, cachedListboxSelectedValues: $, setCachedValues: P } = vt(
987
+ z(t, "items"),
988
+ L,
989
+ z(t, "multiple"),
990
+ z(t, "enableValueLabelPair")
991
+ ), V = D(l["aria-label"]), M = D(l["aria-describedby"]), { ariaLabel: J, label: G } = _e(t), O = d(() => m("ariaLabelFallback")), f = bt({
989
992
  // TODO: take ariaLabel ref away when aria-label prop is removed
990
- ariaLabel: Z.value || M,
991
- label: E,
992
- defaultFallback: Q
993
- }), ie = t.size === ae.SMALL || pt(da, !1), je = r(() => ie ? ae.SMALL : ae.DEFAULT), He = r(() => ({
993
+ ariaLabel: J.value || V,
994
+ label: G,
995
+ defaultFallback: O
996
+ }), N = t.size === le.SMALL || Ie(Mt, !1), Ye = d(() => N ? le.SMALL : le.DEFAULT), Je = d(() => ({
994
997
  "b-dropdown--condensed": t.condensed
995
- })), Ye = r(() => ({
998
+ })), Ge = d(() => ({
996
999
  "b-dropdown__description--error": !!t.errorMessage
997
- })), Y = B(""), ce = V(t, "items"), De = V(t, "staticCategories"), pe = ra(
998
- Y,
1000
+ })), X = D(""), ce = z(t, "items"), Be = z(t, "staticCategories"), pe = ua(
1001
+ X,
999
1002
  ce,
1000
1003
  t?.search?.searchEvent,
1001
- De,
1004
+ Be,
1002
1005
  t?.search?.debounceTime
1003
- ), Se = r(() => t.dynamicFiltering && !!Y.value), Je = na({
1006
+ ), Se = d(() => t.dynamicFiltering && !!X.value), Xe = ia({
1004
1007
  items: ce,
1005
- placeholder: V(t, "placeholder"),
1006
- isMultiSelect: V(t, "multiple"),
1007
- selectedValues: k
1008
- }), Ge = r(() => {
1009
- if (t?.multiple && Array.isArray(C.value))
1008
+ placeholder: z(t, "placeholder"),
1009
+ isMultiSelect: z(t, "multiple"),
1010
+ selectedValues: T
1011
+ }), Ze = d(() => {
1012
+ if (t?.multiple && Array.isArray(L.value))
1010
1013
  return t.items.filter(
1011
1014
  ({ value: s }) => t?.value && (t?.value).includes(s)
1012
1015
  );
1013
1016
  if (!t.multiple && t.staticCategories) {
1014
1017
  const s = t.items.find(
1015
- (K) => K.items?.some((J) => J.value === C.value)
1018
+ (q) => q.items?.some((Z) => Z.value === L.value)
1016
1019
  );
1017
- return (s ? s.items.find((K) => K.value === C.value) : t.items.find(({ value: K }) => K === C.value)) ?? null;
1020
+ return (s ? s.items.find((q) => q.value === L.value) : t.items.find(({ value: q }) => q === L.value)) ?? null;
1018
1021
  }
1019
- return t.items.find(({ value: s }) => s === C.value);
1020
- }), Xe = r(() => {
1021
- const s = pe.value.findIndex(({ value: P }) => t.enableValueLabelPair ? C.value.value === P : C.value === P);
1022
+ return t.items.find(({ value: s }) => s === L.value);
1023
+ }), Qe = d(() => {
1024
+ const s = pe.value.findIndex(({ value: K }) => t.enableValueLabelPair ? L.value.value === K : L.value === K);
1022
1025
  return s > -1 ? s : 0;
1023
- }), { isMultiLevelSelect: Be, flattenedItemsList: Ze } = wt(ce), Qe = r(() => Be.value && !t.staticCategories), et = r(() => Qe.value ? "treeitem" : "option"), tt = r(() => {
1026
+ }), { isMultiLevelSelect: Ae, flattenedItemsList: et } = ht(ce), tt = d(() => Ae.value && !t.staticCategories), at = d(() => tt.value ? "treeitem" : "option"), lt = d(() => {
1024
1027
  if (t.multiple) {
1025
- const s = Array.isArray(C.value) ? C.value.length : 0, P = Be.value ? Ze.value.length : ce.value.length;
1026
- return s === 0 ? null : !t.hasMoreItems && P > 0 && P === s ? h("all") : s;
1028
+ const s = Array.isArray(L.value) ? L.value.length : 0, K = Ae.value ? et.value.length : ce.value.length;
1029
+ return s === 0 ? null : !t.hasMoreItems && K > 0 && K === s ? m("all") : s;
1027
1030
  }
1028
1031
  return null;
1029
- }), at = r(
1032
+ }), ot = d(
1030
1033
  () => [
1031
- t.description ? c : null,
1032
- U.value,
1033
- t.errorMessage ? O : null
1034
+ t.description ? r : null,
1035
+ M.value,
1036
+ t.errorMessage ? x : null
1034
1037
  ].filter(Boolean).join(" ") || null
1035
- ), lt = r(() => y.value?.$el), { visibleDomOptions: ot, updateVisibleDomOptions: Ae } = Lt(
1036
- lt,
1038
+ ), nt = d(() => v.value?.$el), { visibleDomOptions: st, updateVisibleDomOptions: ke } = gt(
1039
+ nt,
1037
1040
  pe,
1038
- et
1039
- ), nt = () => {
1040
- L.value || (m.value = !0, R(() => {
1041
- Ae();
1041
+ at
1042
+ ), it = () => {
1043
+ h.value || (y.value = !0, F(() => {
1044
+ ke();
1042
1045
  }));
1043
1046
  }, we = () => {
1044
- m.value = !1;
1047
+ y.value = !1;
1045
1048
  }, Le = () => {
1046
- L.value || (m.value = !m.value, R(() => {
1047
- Ae();
1048
- }), Se.value && (Y.value = ""));
1049
- }, st = () => {
1050
- Se.value && (Y.value = ""), m.value && (m.value = !1, y.value.onOutsideDropdownClick());
1051
- }, it = async (s) => {
1052
- t.multiple || (Y.value = "", m.value = !1), _(s), S(T.value), t.multiple || (await R(), Te());
1049
+ h.value || (y.value = !y.value, F(() => {
1050
+ ke();
1051
+ }), Se.value && (X.value = ""));
1053
1052
  }, rt = () => {
1054
- a(g.SHOW_MORE);
1055
- }, dt = sa(
1053
+ Se.value && (X.value = ""), y.value && (y.value = !1, v.value.onOutsideDropdownClick());
1054
+ }, dt = async (s) => {
1055
+ t.multiple || (X.value = "", y.value = !1), P(s), w($.value), t.multiple || (await F(), Te());
1056
+ }, ut = () => {
1057
+ a(S.SHOW_MORE);
1058
+ }, ct = ra(
1056
1059
  {
1057
1060
  inputContainerRef: p,
1058
- optionsContainerRef: y,
1059
- selectedValueIndex: Xe,
1060
- isDropdownOpen: m,
1061
- isDynamicFltering: V(t, "dynamicFiltering"),
1062
- items: ot,
1061
+ optionsContainerRef: v,
1062
+ selectedValueIndex: Qe,
1063
+ isDropdownOpen: y,
1064
+ isDynamicFltering: z(t, "dynamicFiltering"),
1065
+ items: st,
1063
1066
  isMultiple: t.multiple,
1064
- totalItemCount: r(() => pe.value.length),
1067
+ totalItemCount: d(() => pe.value.length),
1065
1068
  isVirtualScroll: !t?.multiple && t?.virtualScroll !== !1 && t?.lazyLoadType === "none"
1066
1069
  },
1067
1070
  Le,
1068
- nt,
1071
+ it,
1069
1072
  we
1070
- ), ut = ia(
1073
+ ), pt = da(
1071
1074
  {
1072
1075
  inputContainerRef: p,
1073
- isDropdownOpen: m
1076
+ isDropdownOpen: y
1074
1077
  },
1075
1078
  we
1076
- ), ct = {
1077
- [g.CLOSE_DROPDOWN]: we,
1078
- [g.SELECT]: it,
1079
- [g.SHOW_MORE]: rt,
1080
- ...ut
1079
+ ), ft = {
1080
+ [S.CLOSE_DROPDOWN]: we,
1081
+ [S.SELECT]: dt,
1082
+ [S.SHOW_MORE]: ut,
1083
+ ...pt
1081
1084
  };
1082
1085
  t.error && xe(
1083
1086
  'BentoDropdown "error" property',
@@ -1095,69 +1098,69 @@ const We = {
1095
1098
  p.value.focus();
1096
1099
  };
1097
1100
  return ve(
1098
- () => m.value,
1101
+ () => y.value,
1099
1102
  (s) => {
1100
1103
  s && a("open");
1101
1104
  }
1102
- ), u({
1105
+ ), c({
1103
1106
  focus: Te
1104
- }), (s, P) => ne((b(), x("div", {
1105
- class: oe(["b-dropdown", He.value])
1107
+ }), (s, K) => se((b(), C("div", {
1108
+ class: ne(["b-dropdown", Je.value])
1106
1109
  }, [
1107
- o(E) ? (b(), j(o(It), {
1110
+ o(G) ? (b(), H(o(Ct), {
1108
1111
  key: 0,
1109
- id: o(v),
1112
+ id: o(B),
1110
1113
  condensed: s.condensed,
1111
- label: o(E),
1114
+ label: o(G),
1112
1115
  "tooltip-text": s.tooltipText,
1113
1116
  optional: s.optional,
1114
1117
  required: s.required
1115
- }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : $("", !0),
1116
- ne((b(), x("div", A({
1118
+ }, null, 8, ["id", "condensed", "label", "tooltip-text", "optional", "required"])) : R("", !0),
1119
+ se((b(), C("div", A({
1117
1120
  ref_key: "inputContainerRefWrapper",
1118
- ref: w
1119
- }, de(o(dt), !0)), [
1120
- (b(), j(_e(je.value), {
1121
+ ref: g
1122
+ }, de(o(ct), !0)), [
1123
+ (b(), H(Pe(Ye.value), {
1121
1124
  ref_key: "inputContainerRef",
1122
1125
  ref: p,
1123
1126
  condensed: s.condensed,
1124
- value: Y.value,
1125
- "additional-items-selected": tt.value,
1126
- "aria-controls": o(D),
1127
- ariaExpanded: m.value,
1128
- "aria-labelledby": o(E) ? o(v) : null,
1129
- "aria-describedby": at.value,
1127
+ value: X.value,
1128
+ "additional-items-selected": lt.value,
1129
+ "aria-controls": o(I),
1130
+ ariaExpanded: y.value,
1131
+ "aria-labelledby": o(G) ? o(B) : null,
1132
+ "aria-describedby": ot.value,
1130
1133
  "aria-label": o(f),
1131
- "aria-readonly": o(L),
1134
+ "aria-readonly": o(h),
1132
1135
  "aria-required": s.required,
1133
- readonly: o(L),
1136
+ readonly: o(h),
1134
1137
  disabled: s.disabled,
1135
- "display-value": o(Je),
1138
+ "display-value": o(Xe),
1136
1139
  "dynamic-filtering": s.dynamicFiltering,
1137
1140
  "is-invalid": !!s.errorMessage || s.error,
1138
1141
  multiple: s.multiple,
1139
- open: m.value,
1140
- "selected-value-item": o(ie) ? void 0 : Ge.value,
1142
+ open: y.value,
1143
+ "selected-value-item": o(N) ? void 0 : Ze.value,
1141
1144
  "show-slot-content-in-multiple": s.showSlotContentInMultiple,
1142
- onInput: P[0] || (P[0] = (K) => Y.value = K),
1145
+ onInput: K[0] || (K[0] = (q) => X.value = q),
1143
1146
  onOpen: Le,
1144
1147
  onClose: Le
1145
1148
  }, be({ _: 2 }, [
1146
- ue(o(i), (K, J) => ({
1147
- name: J,
1148
- fn: z((Ce) => [
1149
- q(s.$slots, J, le(me(Ce)), void 0, !0)
1149
+ ue(o(i), (q, Z) => ({
1150
+ name: Z,
1151
+ fn: W((Ce) => [
1152
+ U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
1150
1153
  ])
1151
1154
  }))
1152
1155
  ]), 1064, ["condensed", "value", "additional-items-selected", "aria-controls", "ariaExpanded", "aria-labelledby", "aria-describedby", "aria-label", "aria-readonly", "aria-required", "readonly", "disabled", "display-value", "dynamic-filtering", "is-invalid", "multiple", "open", "selected-value-item", "show-slot-content-in-multiple"]))
1153
1156
  ], 16)), [
1154
- [o(xt)]
1157
+ [o(Lt)]
1155
1158
  ]),
1156
- p.value ? (b(), j(o(Nt), A({
1159
+ p.value ? (b(), H(o($t), A({
1157
1160
  key: 1,
1158
- id: o(D),
1161
+ id: o(I),
1159
1162
  ref_key: "optionsContainerRef",
1160
- ref: y,
1163
+ ref: v,
1161
1164
  "aria-label": o(f),
1162
1165
  "component-loading": s.componentLoading,
1163
1166
  "empty-state": s.emptyState,
@@ -1165,54 +1168,52 @@ const We = {
1165
1168
  "is-option-disabled": s.isOptionDisabled,
1166
1169
  items: o(pe),
1167
1170
  multiple: s.multiple,
1168
- "static-categories": De.value,
1169
- open: m.value,
1170
- "selected-value": o(k),
1171
+ "static-categories": Be.value,
1172
+ open: y.value,
1173
+ "selected-value": o(T),
1171
1174
  searching: Se.value,
1172
- "target-element": w.value,
1175
+ "target-element": g.value,
1173
1176
  loading: s.loading,
1174
1177
  "has-more-items": s.hasMoreItems,
1175
1178
  "lazy-load-type": s.lazyLoadType,
1176
1179
  "virtual-scroll": s.virtualScroll
1177
- }, de(ct)), be({ _: 2 }, [
1178
- ue(o(i), (K, J) => ({
1179
- name: J,
1180
- fn: z((Ce) => [
1181
- q(s.$slots, J, le(me(Ce)), void 0, !0)
1180
+ }, de(ft)), be({ _: 2 }, [
1181
+ ue(o(i), (q, Z) => ({
1182
+ name: Z,
1183
+ fn: W((Ce) => [
1184
+ U(s.$slots, Z, oe(ye(Ce)), void 0, !0)
1182
1185
  ])
1183
1186
  }))
1184
- ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : $("", !0),
1185
- s.errorMessage ? (b(), j(o(Dt), {
1187
+ ]), 1040, ["id", "aria-label", "component-loading", "empty-state", "disabled", "is-option-disabled", "items", "multiple", "static-categories", "open", "selected-value", "searching", "target-element", "loading", "has-more-items", "lazy-load-type", "virtual-scroll"])) : R("", !0),
1188
+ s.errorMessage ? (b(), H(o(xt), {
1186
1189
  key: 2,
1187
- id: o(O),
1190
+ id: o(x),
1188
1191
  "error-message": s.errorMessage,
1189
1192
  class: "b-dropdown__error-message"
1190
- }, null, 8, ["id", "error-message"])) : $("", !0),
1191
- s.description || o(n)("description") ? (b(), j(o(Ke), {
1193
+ }, null, 8, ["id", "error-message"])) : R("", !0),
1194
+ s.description || o(n)("description") ? (b(), H(o(Ke), {
1192
1195
  key: 3,
1193
- id: o(c),
1194
- class: oe(["b-dropdown__description", Ye.value]),
1196
+ id: o(r),
1197
+ class: ne(["b-dropdown__description", Ge.value]),
1195
1198
  el: "span"
1196
1199
  }, {
1197
- default: z(() => [
1198
- q(s.$slots, "description", {}, () => [
1199
- fe(G(s.description), 1)
1200
+ default: W(() => [
1201
+ U(s.$slots, "description", {}, () => [
1202
+ fe(Q(s.description), 1)
1200
1203
  ], !0)
1201
1204
  ]),
1202
1205
  _: 3
1203
- }, 8, ["id", "class"])) : $("", !0)
1206
+ }, 8, ["id", "class"])) : R("", !0)
1204
1207
  ], 2)), [
1205
- [o(Et), st]
1208
+ [o(wt), rt]
1206
1209
  ]);
1207
1210
  }
1208
- }), Ra = /* @__PURE__ */ X(ca, [["__scopeId", "data-v-5edc4069"]]);
1211
+ }), Na = /* @__PURE__ */ ee(pa, [["__scopeId", "data-v-0e85a425"]]);
1209
1212
  export {
1210
- Ra as B,
1211
- Wt as D,
1212
- Ma as I,
1213
- ae as a,
1214
- da as b,
1215
- $a as c,
1216
- ra as u
1213
+ Na as B,
1214
+ Ht as D,
1215
+ le as a,
1216
+ Mt as b,
1217
+ ua as u
1217
1218
  };
1218
- //# sourceMappingURL=dropdown.Bsic3Nll.js.map
1219
+ //# sourceMappingURL=dropdown.CK8cdMyV.js.map