@adyen/bento-vue3 1.89.2 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +767 -522
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  36. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  37. package/dist/chunks/action-bar.BPS3wPde.js +336 -0
  38. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
  39. package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
  40. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
  41. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  42. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  43. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  44. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  45. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
  46. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
  49. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
  50. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
  51. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
  52. package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
  53. package/dist/chunks/card.BEChcEqg.js +223 -0
  54. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
  56. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
  57. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
  58. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
  59. package/dist/chunks/chip.DFldnqfz.js +72 -0
  60. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
  64. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
  65. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
  66. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  67. package/dist/chunks/copy.CL893i9-.js +114 -0
  68. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  69. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  70. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  71. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  72. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
  74. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
  76. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
  78. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
  79. package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
  80. package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
  81. package/dist/chunks/date-picker.CidHad1p.js +269 -0
  82. package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
  83. package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
  84. package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
  85. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  86. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  87. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  88. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  89. package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
  90. package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
  91. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
  92. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
  93. package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
  94. package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
  95. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  96. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  97. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  98. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  99. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
  100. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
  102. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
  103. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  104. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
  106. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
  107. package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
  108. package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
  110. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
  112. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
  113. package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
  114. package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
  115. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  116. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  117. package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
  118. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
  119. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
  120. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
  121. package/dist/chunks/input-field.DkUFvIWt.js +326 -0
  122. package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
  123. package/dist/chunks/input-time.WI_qdwJc.js +122 -0
  124. package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
  125. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  126. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  127. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  128. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  130. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  131. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
  132. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
  133. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
  134. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
  135. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  136. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  137. package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
  138. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
  139. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  140. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  141. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
  142. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
  143. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
  144. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
  145. package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
  146. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
  147. package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
  148. package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
  149. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  150. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  151. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
  152. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  153. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
  154. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
  155. package/dist/chunks/step.AsX2jAeL.js +268 -0
  156. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  157. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  158. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  159. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
  160. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
  161. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  162. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  163. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  164. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  165. package/dist/chunks/textarea.JGXAlpx9.js +257 -0
  166. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
  167. package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
  168. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
  169. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  170. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  171. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  172. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
  176. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
  177. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  178. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  179. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  180. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  181. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
  182. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
  183. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/country.js +3 -3
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable.js +1383 -0
  195. package/dist/draggable.js.map +1 -0
  196. package/dist/dropdown.js +10 -11
  197. package/dist/dropdown.js.map +1 -1
  198. package/dist/file-uploader.js +1 -1
  199. package/dist/filter-bar.js +1 -1
  200. package/dist/form-layout.js +1 -1
  201. package/dist/header-with-views.js +1 -1
  202. package/dist/header.js +1 -1
  203. package/dist/index.js +284 -279
  204. package/dist/index.js.map +1 -1
  205. package/dist/info-icon.js +1 -1
  206. package/dist/input-field-password.js +1 -1
  207. package/dist/input-field-phone-number.js +1 -1
  208. package/dist/input-field.js +1 -1
  209. package/dist/input-time.js +5 -0
  210. package/dist/input-time.js.map +1 -0
  211. package/dist/inspector.js +1 -1
  212. package/dist/internal.js +26 -25
  213. package/dist/internal.js.map +1 -1
  214. package/dist/list.js +1 -1
  215. package/dist/menu.js +1 -1
  216. package/dist/modal-fullscreen.js +1 -1
  217. package/dist/modal.js +2 -2
  218. package/dist/pagination.js +1 -1
  219. package/dist/popover.js +1 -1
  220. package/dist/promo-banner.js +1 -1
  221. package/dist/radio-group.js +1 -1
  222. package/dist/rich-text-editor.js +1 -1
  223. package/dist/search-bar.js +2 -2
  224. package/dist/secondary-nav.js +1 -1
  225. package/dist/segmented-control.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/summary-grid.js +1 -1
  231. package/dist/tabs.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/toast.js +1 -1
  236. package/dist/tutorial.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +7 -10
  239. package/dist/assets/dropdown-default-textbox.css +0 -1
  240. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  241. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  242. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  243. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  244. package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
  245. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  246. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  247. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  248. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  249. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  250. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  251. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  252. package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
  253. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  254. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  255. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  256. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  257. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  258. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
  259. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
  260. package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
  261. package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
  262. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  263. package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
  264. package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
  265. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  266. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  267. package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
  268. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  269. package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
  270. package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
  271. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  272. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  273. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  274. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  275. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  276. package/dist/chunks/step.BlwoLfdw.js +0 -259
  277. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  278. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  279. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  280. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
  282. package/dist/draggable-handle.js +0 -155
  283. package/dist/draggable-handle.js.map +0 -1
@@ -1,112 +1,111 @@
1
- import { computed as b, ref as _, onMounted as ut, onUnmounted as bt, watch as ge, defineComponent as X, resolveComponent as I, openBlock as d, createElementBlock as y, createVNode as M, withCtx as L, createTextVNode as K, toDisplayString as V, createElementVNode as G, renderSlot as W, mergeProps as w, withKeys as be, createCommentVNode as q, createBlock as k, withModifiers as ie, normalizeProps as oe, guardReactiveProps as me, withDirectives as ae, vShow as Ye, nextTick as Ue, toRef as pe, resolveDirective as ze, toHandlers as ee, Fragment as te, renderList as j, createSlots as ve, normalizeClass as fe, unref as B, useSlots as mt, useAttrs as pt } from "vue";
1
+ import { computed as b, ref as I, onMounted as ut, onUnmounted as bt, watch as fe, defineComponent as J, resolveComponent as _, openBlock as d, createElementBlock as y, createVNode as N, withCtx as L, createTextVNode as K, toDisplayString as V, createElementVNode as G, renderSlot as W, mergeProps as w, withKeys as be, createCommentVNode as q, createBlock as A, withModifiers as ae, normalizeProps as oe, guardReactiveProps as me, withDirectives as ne, vShow as ze, nextTick as Ye, toRef as pe, resolveDirective as Ue, toHandlers as ee, Fragment as te, renderList as j, createSlots as ge, normalizeClass as ve, unref as B, useSlots as mt, useAttrs as pt } from "vue";
2
2
  import { B as F, a as he } from "./keyboard-navigation.DWmhelVv.js";
3
- import { B as ne } from "./typography.B3J6_tYk.js";
4
- import { B as vt } from "./loading-indicator.BPol9I84.js";
5
- import { B as ft } from "./empty-state.DT4sFyjB.js";
3
+ import { B as ie } from "./typography.B3J6_tYk.js";
4
+ import { B as gt } from "./loading-indicator.BPol9I84.js";
5
+ import { B as vt } from "./empty-state.DT4sFyjB.js";
6
6
  import { u as _e } from "./index.B875RXHM.js";
7
- import { d as gt } from "./debounce.DUTu11PS.js";
8
- import { o as yt } from "./resize.Bqks3WUm.js";
9
- import { C as Se, N as St } from "./minus-small.CnYLTuSv.js";
10
- import { C as ht } from "./checkmark-small.CRuZauJc.js";
7
+ import { C as Se, N as ft } from "./minus-small.CnYLTuSv.js";
8
+ import { C as yt } from "./checkmark-small.CRuZauJc.js";
11
9
  /* empty css */
12
10
  import { _ as H } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
- import { B as Ct } from "./chip.CdgpQyXN.js";
14
- import { C as Et } from "./chevron-down.XeE-LBV_.js";
15
- import { C as Ot } from "./chevron-up.Cmgl2a3x.js";
16
- import { g as Pe } from "./generate-uid.DBWe4g6T.js";
17
- import { a as Tt, b as Ne } from "./button-actions.cMQWyZne.js";
11
+ import { B as St } from "./chip.DFldnqfz.js";
12
+ import { C as ht } from "./chevron-down.XeE-LBV_.js";
13
+ import { C as Ct } from "./chevron-up.Cmgl2a3x.js";
14
+ import { g as Me } from "./generate-uid.DBWe4g6T.js";
15
+ import { a as Et, b as Pe } from "./button-actions.DLiM8KZL.js";
16
+ import { o as Ot } from "./resize.Bqks3WUm.js";
18
17
  import "../assets/use-cached-selected-values.css";
19
18
  const Fe = (e, t, o, s) => {
20
- const r = b(
19
+ const i = b(
21
20
  () => !!e.value?.length && e.value?.length === t.value.length
22
- ), n = b(() => e.value == null || e.value.length === 0 ? !1 : e.value?.length !== t.value.length);
21
+ ), r = b(() => e.value == null || e.value.length === 0 ? !1 : e.value?.length !== t.value.length);
23
22
  return {
24
- isAllSelected: r,
25
- isIndeterminate: n,
26
- toggleSelectAll: (g) => {
27
- g ? o() : s();
23
+ isAllSelected: i,
24
+ isIndeterminate: r,
25
+ toggleSelectAll: (f) => {
26
+ f ? o() : s();
28
27
  }
29
28
  };
30
29
  };
31
- function Lt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: r }) {
32
- const n = _(null), i = _([]), g = _(0), S = _(0), a = _(0);
30
+ function Tt(e, { disabled: t, itemHeight: o, overscan: s = 5, prefixHeight: i }) {
31
+ const r = I(null), a = I([]), f = I(0), S = I(0), n = I(0);
33
32
  let u;
34
33
  const l = b(() => {
35
- const A = typeof o == "number" ? e.value.length * o : e.value.reduce((T, O, D) => T + o(D), 0), $ = typeof o == "number" ? g.value * o : e.value.slice(0, g.value).reduce((T, O, D) => T + o(D), 0);
34
+ const k = typeof o == "number" ? e.value.length * o : e.value.reduce((T, O, D) => T + o(D), 0), $ = typeof o == "number" ? f.value * o : e.value.slice(0, f.value).reduce((T, O, D) => T + o(D), 0);
36
35
  return {
37
36
  style: {
38
37
  marginTop: `${$}px`,
39
- height: `${A - $}px`
38
+ height: `${k - $}px`
40
39
  }
41
40
  };
42
41
  }), m = () => {
43
- const A = r?.value ?? 0, $ = Math.max(n.value.scrollTop - A, 0);
42
+ const k = i?.value ?? 0, $ = Math.max(r.value.scrollTop - k, 0);
44
43
  if (typeof o == "number")
45
44
  return Math.floor($ / o);
46
45
  let T = 0, O = 0;
47
46
  for (let D = 0; D < e.value.length; D += 1) {
48
- const Y = o(D);
49
- if (T += Y, T >= $) {
47
+ const z = o(D);
48
+ if (T += z, T >= $) {
50
49
  O = D;
51
50
  break;
52
51
  }
53
52
  }
54
53
  return O;
55
54
  }, C = () => {
56
- if (a.value = n.value.clientHeight, typeof o == "number")
57
- return Math.ceil(a.value / o);
58
- const A = g.value ?? 0;
55
+ if (n.value = r.value.clientHeight, typeof o == "number")
56
+ return Math.ceil(n.value / o);
57
+ const k = f.value ?? 0;
59
58
  let $ = 0, T = 0;
60
- for (let O = A; O < e.value.length; O += 1) {
59
+ for (let O = k; O < e.value.length; O += 1) {
61
60
  const D = o(O);
62
- if ($ += D, T = O, $ > a.value)
61
+ if ($ += D, T = O, $ > n.value)
63
62
  break;
64
63
  }
65
- return T - A;
64
+ return T - k;
66
65
  }, h = () => {
67
- if (n.value) {
68
- const A = C();
69
- g.value = m(), S.value = Math.min(g.value + A + s, e.value.length), i.value = e.value.slice(g.value, S.value);
66
+ if (r.value) {
67
+ const k = C();
68
+ f.value = m(), S.value = Math.min(f.value + k + s, e.value.length), a.value = e.value.slice(f.value, S.value);
70
69
  }
71
70
  }, R = () => {
72
71
  h();
73
72
  };
74
73
  t || (ut(() => {
75
- n.value && (a.value = n.value.clientHeight, u = yt(n.value, ({ clientHeight: A }) => {
76
- a.value = A, h();
74
+ r.value && (n.value = r.value.clientHeight, u = Ot(r.value, ({ clientHeight: k }) => {
75
+ n.value = k, h();
77
76
  }), h());
78
77
  }), bt(() => {
79
78
  u?.disconnect();
80
- }), ge(
79
+ }), fe(
81
80
  () => e.value,
82
81
  () => {
83
82
  h();
84
83
  }
85
84
  ));
86
85
  const x = {
87
- ref: n,
86
+ ref: r,
88
87
  style: { overflowY: "auto" }
89
88
  };
90
89
  return t ? {
91
- containerRef: n,
90
+ containerRef: r,
92
91
  containerProps: x,
93
92
  // eslint-disable-next-line @typescript-eslint/no-empty-function
94
93
  onScroll: () => {
95
94
  },
96
95
  list: e
97
96
  } : {
98
- containerRef: n,
97
+ containerRef: r,
99
98
  containerProps: x,
100
99
  onScroll: R,
101
- list: i,
100
+ list: a,
102
101
  wrapperProps: l
103
102
  };
104
103
  }
105
104
  var p = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(p || {}), le = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(le || {});
106
- const _t = X({
105
+ const Lt = J({
107
106
  name: "bento-listbox-static-category",
108
107
  components: {
109
- BentoTypography: ne
108
+ BentoTypography: ie
110
109
  },
111
110
  props: {
112
111
  /**
@@ -118,14 +117,14 @@ const _t = X({
118
117
  }
119
118
  }
120
119
  }), It = ["aria-label"];
121
- function kt(e, t, o, s, r, n) {
122
- const i = I("bento-typography");
120
+ function _t(e, t, o, s, i, r) {
121
+ const a = _("bento-typography");
123
122
  return d(), y("div", {
124
123
  class: "b-listbox-single-select-category",
125
124
  role: "group",
126
125
  "aria-label": e.categoryLabel
127
126
  }, [
128
- M(i, {
127
+ N(a, {
129
128
  variant: "caption",
130
129
  el: "span",
131
130
  class: "b-listbox-single-select-category__label-text",
@@ -141,7 +140,7 @@ function kt(e, t, o, s, r, n) {
141
140
  ])
142
141
  ], 8, It);
143
142
  }
144
- const At = /* @__PURE__ */ H(_t, [["render", kt], ["__scopeId", "data-v-27c4e09a"]]), $t = X({
143
+ const At = /* @__PURE__ */ H(Lt, [["render", _t], ["__scopeId", "data-v-27c4e09a"]]), kt = J({
145
144
  name: "bento-listbox-option",
146
145
  props: {
147
146
  /**
@@ -166,38 +165,38 @@ const At = /* @__PURE__ */ H(_t, [["render", kt], ["__scopeId", "data-v-27c4e09a
166
165
  // Values
167
166
  conditionalClasses: o,
168
167
  // Events
169
- onClick: (n) => {
170
- t(p.CLICK, n);
168
+ onClick: (r) => {
169
+ t(p.CLICK, r);
171
170
  },
172
- onOptionSelected: (n, i) => {
173
- t(n, i);
171
+ onOptionSelected: (r, a) => {
172
+ t(r, a);
174
173
  }
175
174
  };
176
175
  }
177
176
  });
178
- function Dt(e, t, o, s, r, n) {
177
+ function $t(e, t, o, s, i, r) {
179
178
  return d(), y("div", w({
180
179
  class: ["b-listbox-option", e.conditionalClasses],
181
180
  role: "option"
182
181
  }, e.$attrs, {
183
- onClick: t[0] || (t[0] = (...i) => e.onClick && e.onClick(...i)),
182
+ onClick: t[0] || (t[0] = (...a) => e.onClick && e.onClick(...a)),
184
183
  onKeydown: [
185
- t[1] || (t[1] = be((i) => e.onOptionSelected(e.BentoListboxEvent.ENTER, i), ["enter"])),
186
- t[2] || (t[2] = be((i) => e.onOptionSelected(e.BentoListboxEvent.SPACE, i), ["space"])),
187
- t[3] || (t[3] = be((i) => e.onOptionSelected(e.BentoListboxEvent.TAB, i), ["tab"]))
184
+ t[1] || (t[1] = be((a) => e.onOptionSelected(e.BentoListboxEvent.ENTER, a), ["enter"])),
185
+ t[2] || (t[2] = be((a) => e.onOptionSelected(e.BentoListboxEvent.SPACE, a), ["space"])),
186
+ t[3] || (t[3] = be((a) => e.onOptionSelected(e.BentoListboxEvent.TAB, a), ["tab"]))
188
187
  ]
189
188
  }), [
190
189
  W(e.$slots, "default", {}, void 0, !0)
191
190
  ], 16);
192
191
  }
193
- const Ce = /* @__PURE__ */ H($t, [["render", Dt], ["__scopeId", "data-v-1495b1db"]]);
194
- let Me = 0;
195
- const Bt = {
192
+ const Ce = /* @__PURE__ */ H(kt, [["render", $t], ["__scopeId", "data-v-1495b1db"]]);
193
+ let Ne = 0;
194
+ const Dt = {
196
195
  beforeCreate() {
197
- this.uuid = Me.toString(), Me += 1;
196
+ this.uuid = Ne.toString(), Ne += 1;
198
197
  }
199
- }, Rt = { key: 0 };
200
- function Pt(e, t, o, s, r, n) {
198
+ }, Bt = { key: 0 };
199
+ function Rt(e, t, o, s, i, r) {
201
200
  return d(), y("svg", w({ role: "img" }, e.$attrs, {
202
201
  class: "ui-assets-icons-16",
203
202
  xmlns: "http://www.w3.org/2000/svg",
@@ -205,19 +204,19 @@ function Pt(e, t, o, s, r, n) {
205
204
  height: "16",
206
205
  fill: "none"
207
206
  }), [
208
- e.$attrs["svg-title"] ? (d(), y("title", Rt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
207
+ e.$attrs["svg-title"] ? (d(), y("title", Bt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
209
208
  t[0] || (t[0] = G("path", {
210
209
  fill: "#001222",
211
210
  d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
212
211
  }, null, -1))
213
212
  ], 16);
214
213
  }
215
- const Nt = /* @__PURE__ */ H(Bt, [["render", Pt]]), Mt = X({
214
+ const Mt = /* @__PURE__ */ H(Dt, [["render", Rt]]), Pt = J({
216
215
  name: "bento-listbox-single-select-option",
217
216
  components: {
218
217
  BentoListboxOption: Ce,
219
- BentoTypography: ne,
220
- CheckmarkIcon: Nt
218
+ BentoTypography: ie,
219
+ CheckmarkIcon: Mt
221
220
  },
222
221
  props: {
223
222
  /**
@@ -239,45 +238,45 @@ const Nt = /* @__PURE__ */ H(Bt, [["render", Pt]]), Mt = X({
239
238
  },
240
239
  emits: [p.ENTER, p.SELECT, p.SPACE, p.TAB],
241
240
  setup(e, { emit: t }) {
242
- const o = (i) => {
243
- e.disabled || t(i, e.option);
244
- }, s = b(() => e.disabled ? !0 : null), r = b(() => e.selected ? !0 : null), n = b(() => e.disabled ? -1 : 0);
241
+ const o = (a) => {
242
+ e.disabled || t(a, e.option);
243
+ }, s = b(() => e.disabled ? !0 : null), i = b(() => e.selected ? !0 : null), r = b(() => e.disabled ? -1 : 0);
245
244
  return {
246
245
  // Values
247
246
  ariaDisabled: s,
248
- ariaSelected: r,
249
- tabIndex: n,
247
+ ariaSelected: i,
248
+ tabIndex: r,
250
249
  // Enums
251
250
  BentoListboxEvent: p,
252
251
  // Events
253
252
  onOptionSelected: o
254
253
  };
255
254
  }
256
- }), wt = { class: "b-listbox-single-select-option__text" }, Gt = { class: "b-listbox-single-select-option__check-icon" };
257
- function xt(e, t, o, s, r, n) {
258
- const i = I("bento-typography"), g = I("checkmark-icon"), S = I("bento-listbox-option");
259
- return d(), k(S, {
255
+ }), Nt = { class: "b-listbox-single-select-option__text" }, wt = { class: "b-listbox-single-select-option__check-icon" };
256
+ function Gt(e, t, o, s, i, r) {
257
+ const a = _("bento-typography"), f = _("checkmark-icon"), S = _("bento-listbox-option");
258
+ return d(), A(S, {
260
259
  class: "b-listbox-single-select-option",
261
260
  disabled: e.disabled,
262
261
  selected: e.selected,
263
262
  "aria-selected": e.ariaSelected,
264
263
  "aria-disabled": e.ariaDisabled,
265
264
  tabindex: e.tabIndex,
266
- onClick: t[0] || (t[0] = (a) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
267
- onEnterPressed: t[1] || (t[1] = (a) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
268
- onSpacePressed: t[2] || (t[2] = ie((a) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
269
- onTabPressed: t[3] || (t[3] = (a) => e.onOptionSelected(e.BentoListboxEvent.TAB))
265
+ onClick: t[0] || (t[0] = (n) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
266
+ onEnterPressed: t[1] || (t[1] = (n) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
267
+ onSpacePressed: t[2] || (t[2] = ae((n) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
268
+ onTabPressed: t[3] || (t[3] = (n) => e.onOptionSelected(e.BentoListboxEvent.TAB))
270
269
  }, {
271
270
  default: L(() => [
272
271
  W(e.$slots, "default", oe(me(e.option)), () => [
273
- G("span", wt, [
274
- M(i, { el: "span" }, {
272
+ G("span", Nt, [
273
+ N(a, { el: "span" }, {
275
274
  default: L(() => [
276
275
  K(V(e.option.label), 1)
277
276
  ]),
278
277
  _: 1
279
278
  }),
280
- e.option.description ? (d(), k(i, {
279
+ e.option.description ? (d(), A(a, {
281
280
  key: 0,
282
281
  class: "b-listbox-single-select-option__description",
283
282
  el: "span"
@@ -289,17 +288,17 @@ function xt(e, t, o, s, r, n) {
289
288
  })) : q("", !0)
290
289
  ])
291
290
  ], !0),
292
- G("span", Gt, [
293
- ae(M(g, { "svg-title": "selected" }, null, 512), [
294
- [Ye, e.selected]
291
+ G("span", wt, [
292
+ ne(N(f, { "svg-title": "selected" }, null, 512), [
293
+ [ze, e.selected]
295
294
  ])
296
295
  ])
297
296
  ]),
298
297
  _: 3
299
298
  }, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
300
299
  }
301
- const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07"]]), Ke = ({ items: e }, t) => {
302
- const o = b(() => e.value.length - 1), s = _(0), r = (m) => {
300
+ const xt = /* @__PURE__ */ H(Pt, [["render", Gt], ["__scopeId", "data-v-4f41af07"]]), Ke = ({ items: e }, t) => {
301
+ const o = b(() => e.value.length - 1), s = I(0), i = (m) => {
303
302
  switch (m) {
304
303
  case "increase":
305
304
  s.value += 1;
@@ -308,18 +307,18 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
308
307
  s.value -= 1;
309
308
  break;
310
309
  }
311
- }, n = ({ edgeCaseItem: m }, C) => {
312
- s.value !== m && (r(C), t(s.value));
313
- }, i = (m) => {
314
- l(m), n(
310
+ }, r = ({ edgeCaseItem: m }, C) => {
311
+ s.value !== m && (i(C), t(s.value));
312
+ }, a = (m) => {
313
+ l(m), r(
315
314
  {
316
315
  edgeCaseItem: o.value
317
316
  },
318
317
  "increase"
319
318
  /* INCREASE */
320
319
  );
321
- }, g = (m) => {
322
- l(m), n(
320
+ }, f = (m) => {
321
+ l(m), r(
323
322
  {
324
323
  edgeCaseItem: 0
325
324
  },
@@ -328,7 +327,7 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
328
327
  );
329
328
  }, S = () => {
330
329
  s.value = 0, t(s.value);
331
- }, a = () => {
330
+ }, n = () => {
332
331
  s.value = o.value, t(s.value);
333
332
  }, u = (m) => {
334
333
  s.value = m;
@@ -337,37 +336,37 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
337
336
  };
338
337
  return {
339
338
  moveToFirstElement: S,
340
- moveToLastElement: a,
341
- moveToNextElement: i,
342
- moveToPreviousElement: g,
339
+ moveToLastElement: n,
340
+ moveToNextElement: a,
341
+ moveToPreviousElement: f,
343
342
  setListboxFocusedIndex: u,
344
343
  preventDefault: l,
345
344
  focusedIndex: s
346
345
  };
347
- }, We = (e, t, o = _("option"), s = !0) => {
348
- const r = _([]), n = async () => {
346
+ }, We = (e, t, o = I("option"), s = !0) => {
347
+ const i = I([]), r = async () => {
349
348
  if (!e.value || e.value.nodeType === Node.COMMENT_NODE)
350
349
  return;
351
- const i = Array.from(e.value.querySelectorAll(`[role="${o.value}"]`));
352
- r.value = s ? i.filter((g) => g.checkVisibility()) : i;
350
+ const a = Array.from(e.value.querySelectorAll(`[role="${o.value}"]`));
351
+ i.value = s ? a.filter((f) => f.checkVisibility()) : a;
353
352
  };
354
- return ge(
353
+ return fe(
355
354
  t,
356
355
  () => {
357
- Ue(() => {
358
- n();
356
+ Ye(() => {
357
+ r();
359
358
  });
360
359
  },
361
360
  { immediate: !0 }
362
361
  ), {
363
- visibleDomOptions: r,
364
- updateVisibleDomOptions: n
362
+ visibleDomOptions: i,
363
+ updateVisibleDomOptions: r
365
364
  };
366
- }, Yt = X({
365
+ }, Vt = J({
367
366
  name: "bento-listbox-single-select",
368
367
  components: {
369
368
  BentoListboxSingleSelectCategory: At,
370
- BentoListboxSingleSelectOption: Vt
369
+ BentoListboxSingleSelectOption: xt
371
370
  },
372
371
  directives: { BentoKeyboardNavigationDirective: he },
373
372
  inheritAttrs: !1,
@@ -411,24 +410,24 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
411
410
  staticCategories: { type: Boolean, default: !1 }
412
411
  },
413
412
  emits: [p.SELECT, p.ENTER, p.SPACE, p.TAB],
414
- setup(e, { emit: t, expose: o, slots: s, attrs: r }) {
415
- const n = _(null), i = _([]), g = b(() => !!e.selectedValue?.length && e.selectedValue.at(0)), S = b(
413
+ setup(e, { emit: t, expose: o, slots: s, attrs: i }) {
414
+ const r = I(null), a = I([]), f = b(() => !!e.selectedValue?.length && e.selectedValue.at(0)), S = b(
416
415
  () => ({
417
- "aria-label": r["aria-label"]?.toString(),
418
- "aria-busy": r["aria-busy"]?.toString(),
419
- "aria-atomic": r["aria-atomic"]?.toString(),
420
- "aria-live": r["aria-live"]?.toString()
416
+ "aria-label": i["aria-label"]?.toString(),
417
+ "aria-busy": i["aria-busy"]?.toString(),
418
+ "aria-atomic": i["aria-atomic"]?.toString(),
419
+ "aria-live": i["aria-live"]?.toString()
421
420
  })
422
- ), a = b(() => !!e.items.some(({ items: O }) => !!O)), u = (O) => (D) => {
421
+ ), n = b(() => !!e.items.some(({ items: O }) => !!O)), u = (O) => (D) => {
423
422
  t(O, [D]);
424
- }, { visibleDomOptions: l } = We(n, pe(e, "items"), _("option"), !1), m = (O) => {
423
+ }, { visibleDomOptions: l } = We(r, pe(e, "items"), I("option"), !1), m = (O) => {
425
424
  l.value[O]?.focus();
426
425
  }, {
427
426
  moveToNextElement: C,
428
427
  moveToPreviousElement: h,
429
428
  moveToFirstElement: R,
430
429
  moveToLastElement: x,
431
- setListboxFocusedIndex: A
430
+ setListboxFocusedIndex: k
432
431
  } = Ke(
433
432
  {
434
433
  items: l
@@ -450,23 +449,23 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
450
449
  * Reference for a single listbox item.
451
450
  * Required for keyboard navigation in dropdown as $children is removed in vue@3
452
451
  */
453
- listboxItemRef: i,
452
+ listboxItemRef: a,
454
453
  /**
455
454
  * Method to set the index of the item to be focused on
456
455
  * Used for focus management to be kept in-sync with parent e.g. dropdowns
457
456
  */
458
- setListboxFocusedIndex: A
457
+ setListboxFocusedIndex: k
459
458
  }), {
460
459
  // Enums
461
460
  BentoListboxEvent: p,
462
461
  // Values
463
- listboxRef: n,
464
- listboxItemRef: i,
465
- selectedItem: g,
462
+ listboxRef: r,
463
+ listboxItemRef: a,
464
+ selectedItem: f,
466
465
  slots: s,
467
466
  ariaAttributes: S,
468
467
  // Computed
469
- hasCategories: a,
468
+ hasCategories: n,
470
469
  // Methods
471
470
  onOptionSelected: u,
472
471
  // Keyboard navigation
@@ -475,15 +474,15 @@ const Vt = /* @__PURE__ */ H(Mt, [["render", xt], ["__scopeId", "data-v-4f41af07
475
474
  };
476
475
  }
477
476
  });
478
- function Ut(e, t, o, s, r, n) {
479
- const i = I("bento-listbox-single-select-option"), g = I("bento-listbox-single-select-category"), S = ze("bento-keyboard-navigation-directive");
480
- return ae((d(), y("div", w({ ref: "listboxRef" }, e.ariaAttributes, { role: "listbox" }, ee(e.listboxListeners, !0)), [
481
- e.hasCategories && e.staticCategories ? (d(!0), y(te, { key: 0 }, j(e.items, (a) => (d(), k(g, {
482
- key: a.value,
483
- "category-label": a.label
477
+ function zt(e, t, o, s, i, r) {
478
+ const a = _("bento-listbox-single-select-option"), f = _("bento-listbox-single-select-category"), S = Ue("bento-keyboard-navigation-directive");
479
+ return ne((d(), y("div", w({ ref: "listboxRef" }, e.ariaAttributes, { role: "listbox" }, ee(e.listboxListeners, !0)), [
480
+ e.hasCategories && e.staticCategories ? (d(!0), y(te, { key: 0 }, j(e.items, (n) => (d(), A(f, {
481
+ key: n.value,
482
+ "category-label": n.label
484
483
  }, {
485
484
  default: L(() => [
486
- (d(!0), y(te, null, j(a.items, (u) => (d(), k(i, w({
485
+ (d(!0), y(te, null, j(n.items, (u) => (d(), A(a, w({
487
486
  key: u.value,
488
487
  ref_for: !0,
489
488
  ref: "listboxItemRef",
@@ -491,7 +490,7 @@ function Ut(e, t, o, s, r, n) {
491
490
  option: u,
492
491
  disabled: e.isOptionDisabled ? e.isOptionDisabled(u) : null,
493
492
  selected: u.value === e.selectedItem.value
494
- }, ee(e.listboxOptionListeners)), ve({ _: 2 }, [
493
+ }, ee(e.listboxOptionListeners)), ge({ _: 2 }, [
495
494
  j(e.slots, (l, m) => ({
496
495
  name: m,
497
496
  fn: L((C) => [
@@ -501,15 +500,15 @@ function Ut(e, t, o, s, r, n) {
501
500
  ]), 1040, ["option", "disabled", "selected"]))), 128))
502
501
  ]),
503
502
  _: 2
504
- }, 1032, ["category-label"]))), 128)) : (d(!0), y(te, { key: 1 }, j(e.items, (a) => (d(), k(i, w({
505
- key: a.value,
503
+ }, 1032, ["category-label"]))), 128)) : (d(!0), y(te, { key: 1 }, j(e.items, (n) => (d(), A(a, w({
504
+ key: n.value,
506
505
  ref_for: !0,
507
506
  ref: "listboxItemRef",
508
507
  role: "option",
509
- option: a,
510
- disabled: e.isOptionDisabled ? e.isOptionDisabled(a) : null,
511
- selected: a.value === e.selectedItem.value
512
- }, ee(e.listboxOptionListeners)), ve({ _: 2 }, [
508
+ option: n,
509
+ disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null,
510
+ selected: n.value === e.selectedItem.value
511
+ }, ee(e.listboxOptionListeners)), ge({ _: 2 }, [
513
512
  j(e.slots, (u, l) => ({
514
513
  name: l,
515
514
  fn: L((m) => [
@@ -521,14 +520,14 @@ function Ut(e, t, o, s, r, n) {
521
520
  [S]
522
521
  ]);
523
522
  }
524
- const zt = /* @__PURE__ */ H(Yt, [["render", Ut]]);
523
+ const Yt = /* @__PURE__ */ H(Vt, [["render", zt]]);
525
524
  let we = 0;
526
- const Ft = {
525
+ const Ut = {
527
526
  beforeCreate() {
528
527
  this.uuid = we.toString(), we += 1;
529
528
  }
530
- }, Kt = { key: 0 };
531
- function Wt(e, t, o, s, r, n) {
529
+ }, Ft = { key: 0 };
530
+ function Kt(e, t, o, s, i, r) {
532
531
  return d(), y("svg", w({ role: "img" }, e.$attrs, {
533
532
  class: "ui-assets-icons-16",
534
533
  xmlns: "http://www.w3.org/2000/svg",
@@ -536,7 +535,7 @@ function Wt(e, t, o, s, r, n) {
536
535
  height: "16",
537
536
  fill: "none"
538
537
  }), [
539
- e.$attrs["svg-title"] ? (d(), y("title", Kt, V(e.$attrs["svg-title"]), 1)) : q("", !0),
538
+ e.$attrs["svg-title"] ? (d(), y("title", Ft, V(e.$attrs["svg-title"]), 1)) : q("", !0),
540
539
  t[0] || (t[0] = G("path", {
541
540
  fill: "#001222",
542
541
  d: "M9.69043 5.75L4.62988 10.8105L1.56934 7.75L2.62988 6.68945L4.62988 8.68945L8.62988 4.68945L9.69043 5.75Z"
@@ -547,8 +546,8 @@ function Wt(e, t, o, s, r, n) {
547
546
  }, null, -1))
548
547
  ], 16);
549
548
  }
550
- const Ht = /* @__PURE__ */ H(Ft, [["render", Wt]]), jt = {}, qt = /* @__PURE__ */ X({
551
- ...jt,
549
+ const Wt = /* @__PURE__ */ H(Ut, [["render", Kt]]), Ht = {}, jt = /* @__PURE__ */ J({
550
+ ...Ht,
552
551
  __name: "decorative-checkbox",
553
552
  props: {
554
553
  disabled: { type: Boolean, default: !1 },
@@ -564,47 +563,54 @@ const Ht = /* @__PURE__ */ H(Ft, [["render", Wt]]), jt = {}, qt = /* @__PURE__ *
564
563
  [`b-checkbox-input__outline--${Se.CHECKED}`]: (t.checked || t.allSelected) && !t.indeterminate,
565
564
  [`b-checkbox-input__outline--${Se.INDETERMINATE}`]: t.indeterminate
566
565
  }));
567
- return (r, n) => (d(), y("div", {
568
- class: fe(["b-checkbox-input", o.value]),
566
+ return (i, r) => (d(), y("div", {
567
+ class: ve(["b-checkbox-input", o.value]),
569
568
  role: "presentation"
570
569
  }, [
571
- r.indeterminate ? (d(), k(B(St), {
570
+ i.indeterminate ? (d(), A(B(ft), {
572
571
  key: 0,
573
572
  class: "b-checkbox-input__icon",
574
573
  "svg-title": "",
575
574
  "aria-hidden": "true"
576
- })) : r.allSelected ? (d(), k(B(Ht), {
575
+ })) : i.allSelected ? (d(), A(B(Wt), {
577
576
  key: 1,
578
577
  class: "b-checkbox-input__icon",
579
578
  "svg-title": "",
580
579
  "aria-hidden": "true",
581
580
  "data-testid": "decorative-checkbox-double-checkmark-icon"
582
- })) : r.checked ? (d(), k(B(ht), {
581
+ })) : i.checked ? (d(), A(B(yt), {
583
582
  key: 2,
584
583
  class: "b-checkbox-input__icon",
585
584
  "svg-title": "",
586
585
  "aria-hidden": "true"
587
586
  })) : q("", !0),
588
587
  G("div", {
589
- class: fe(["b-checkbox-input__outline", s.value])
588
+ class: ve(["b-checkbox-input__outline", s.value])
590
589
  }, null, 2)
591
590
  ], 2));
592
591
  }
593
- }), Ie = /* @__PURE__ */ H(qt, [["__scopeId", "data-v-08d3142e"]]);
592
+ }), Ae = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-08d3142e"]]);
594
593
  var He = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.STATIC_CATEGORY = "static-category", e))(He || {}), Q = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(Q || {});
595
594
  const Ge = {
595
+ "de-DE": { categoryClosed: "{category} geschlossen", categoryOpened: "{category} geöffnet" },
596
+ "en-GB": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
596
597
  "en-US": { categoryClosed: "{category} closed", categoryOpened: "{category} opened" },
598
+ "es-ES": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
599
+ "es-MX": { categoryClosed: "{category} cerrado", categoryOpened: "{category} abierto" },
600
+ "fr-FR": { categoryClosed: "{category} fermée", categoryOpened: "{category} ouverte" },
601
+ "it-IT": { categoryClosed: "{category} chiuso", categoryOpened: "{category} aperto" },
597
602
  "ja-JP": { categoryClosed: "{category}を閉じました", categoryOpened: "{category}を開きました" },
598
- "pt-BR": { categoryClosed: "{category} fechado", categoryOpened: "{categoria} aberta" }
599
- }, Jt = X({
603
+ "pt-BR": { categoryClosed: "{category} fechada", categoryOpened: "{categoria} aberta" },
604
+ "zh-CN": { categoryClosed: "{category} 已关闭", categoryOpened: "{category} 已打开" }
605
+ }, qt = J({
600
606
  i18n: { messages: Ge },
601
607
  name: "bento-listbox-multi-select-category",
602
608
  components: {
603
- BentoTypography: ne,
609
+ BentoTypography: ie,
604
610
  BentoListboxOption: Ce,
605
- ChevronDownIcon: Et,
606
- ChevronUpIcon: Ot,
607
- DecorativeCheckbox: Ie
611
+ ChevronDownIcon: ht,
612
+ ChevronUpIcon: Ct,
613
+ DecorativeCheckbox: Ae
608
614
  },
609
615
  props: {
610
616
  /**
@@ -655,54 +661,54 @@ const Ge = {
655
661
  Q.TOGGLE_CATEGORY_VISIBILITY
656
662
  ],
657
663
  setup(e, { emit: t }) {
658
- const o = _(!1), { t: s } = _e({ messages: Ge }), r = Pe("category-group"), n = Pe("category-name"), i = (P) => e.isOptionDisabled ? e.isOptionDisabled(P) : !1, g = b(
659
- () => e.category.items.every((P) => i(P))
660
- ), S = pe(e, "staticCategories"), a = b(() => o.value || e.staticCategories), u = b(() => ({
661
- [`b-listbox-multi-select-category--${He.DISABLED}`]: g.value
662
- })), l = (P, U) => {
663
- P.preventDefault(), o.value = U !== void 0 ? U : !o.value, t(Q.TOGGLE_CATEGORY_VISIBILITY, e.category.value);
664
- }, m = (P) => {
665
- const U = i(P), Z = e.selectedItemsList?.includes(P.value) || !1;
666
- return { isDisabled: U, isPreSelected: Z };
664
+ const o = I(!1), { t: s } = _e({ messages: Ge }), i = Me("category-group"), r = Me("category-name"), a = (M) => e.isOptionDisabled ? e.isOptionDisabled(M) : !1, f = b(
665
+ () => e.category.items.every((M) => a(M))
666
+ ), S = pe(e, "staticCategories"), n = b(() => o.value || e.staticCategories), u = b(() => ({
667
+ [`b-listbox-multi-select-category--${He.DISABLED}`]: f.value
668
+ })), l = (M, Y) => {
669
+ M.preventDefault(), o.value = Y !== void 0 ? Y : !o.value, t(Q.TOGGLE_CATEGORY_VISIBILITY, e.category.value);
670
+ }, m = (M) => {
671
+ const Y = a(M), Z = e.selectedItemsList?.includes(M.value) || !1;
672
+ return { isDisabled: Y, isPreSelected: Z };
667
673
  }, C = b(
668
- () => e.category.items.filter((P) => {
669
- const { isDisabled: U, isPreSelected: Z } = m(P);
670
- return U && Z || !U;
674
+ () => e.category.items.filter((M) => {
675
+ const { isDisabled: Y, isPreSelected: Z } = m(M);
676
+ return Y && Z || !Y;
671
677
  })
672
678
  ), h = b(
673
679
  () => C.value?.filter(
674
- ({ value: P }) => e.selectedItemsList?.includes(P)
680
+ ({ value: M }) => e.selectedItemsList?.includes(M)
675
681
  )
676
682
  ), R = b(() => {
677
- const P = o.value ? "categoryOpened" : "categoryClosed";
678
- return s(P, { category: e.category.label });
683
+ const M = o.value ? "categoryOpened" : "categoryClosed";
684
+ return s(M, { category: e.category.label });
679
685
  }), x = () => {
680
686
  t(Q.SELECT_CATEGORY);
681
- }, A = () => {
687
+ }, k = () => {
682
688
  t(Q.UNSELECT_CATEGORY);
683
689
  }, { isAllSelected: $, isIndeterminate: T, toggleSelectAll: O } = Fe(
684
690
  h,
685
691
  C,
686
692
  x,
687
- A
688
- ), D = b(() => T.value ? "mixed" : `${$.value}`), Y = _($.value), re = () => {
689
- Y.value = !Y.value, O(Y.value);
693
+ k
694
+ ), D = b(() => T.value ? "mixed" : `${$.value}`), z = I($.value), re = () => {
695
+ z.value = !z.value, O(z.value);
690
696
  };
691
- return ge($, () => {
692
- Y.value = $.value;
697
+ return fe($, () => {
698
+ z.value = $.value;
693
699
  }), {
694
700
  // Values
695
701
  chevronTitle: R,
696
702
  conditionalClass: u,
697
- hasAllPropsDisabled: g,
703
+ hasAllPropsDisabled: f,
698
704
  isOpen: o,
699
705
  isAllSelected: $,
700
706
  isIndeterminate: T,
701
707
  isStaticCategory: S,
702
- categoryGroupId: r,
703
- categoryNameId: n,
708
+ categoryGroupId: i,
709
+ categoryNameId: r,
704
710
  // Computed
705
- showItemChildren: a,
711
+ showItemChildren: n,
706
712
  ariaCheckedComputed: D,
707
713
  // Methods
708
714
  handleSelectAll: re,
@@ -710,17 +716,17 @@ const Ge = {
710
716
  toggleSelectAll: O
711
717
  };
712
718
  }
713
- }), Xt = { class: "b-listbox-multi-select-category__label" }, Zt = {
719
+ }), Xt = { class: "b-listbox-multi-select-category__label" }, Jt = {
714
720
  key: 1,
715
721
  class: "b-listbox-multi-select-category b-listbox-multi-select-category--static-category",
716
722
  "aria-hidden": "true"
717
- }, Qt = { class: "b-listbox-multi-select-category__label" }, es = ["id", "aria-label"];
718
- function ts(e, t, o, s, r, n) {
719
- const i = I("decorative-checkbox"), g = I("bento-typography"), S = I("chevron-up-icon"), a = I("chevron-down-icon"), u = I("bento-listbox-option");
723
+ }, Zt = { class: "b-listbox-multi-select-category__label" }, Qt = ["id", "aria-label"];
724
+ function es(e, t, o, s, i, r) {
725
+ const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("chevron-up-icon"), n = _("chevron-down-icon"), u = _("bento-listbox-option");
720
726
  return d(), y("div", null, [
721
- e.isStaticCategory ? (d(), y("div", Zt, [
722
- G("span", Qt, [
723
- M(g, {
727
+ e.isStaticCategory ? (d(), y("div", Jt, [
728
+ G("span", Zt, [
729
+ N(f, {
724
730
  el: "span",
725
731
  variant: "caption",
726
732
  class: "b-listbox-multi-select-category__label-text"
@@ -731,9 +737,9 @@ function ts(e, t, o, s, r, n) {
731
737
  _: 1
732
738
  })
733
739
  ])
734
- ])) : (d(), k(u, {
740
+ ])) : (d(), A(u, {
735
741
  key: 0,
736
- class: fe(["b-listbox-multi-select-category__option", e.conditionalClass]),
742
+ class: ve(["b-listbox-multi-select-category__option", e.conditionalClass]),
737
743
  tabindex: e.tabindex,
738
744
  "aria-selected": e.ariaCheckedComputed !== "false",
739
745
  "aria-checked": e.ariaCheckedComputed,
@@ -744,20 +750,20 @@ function ts(e, t, o, s, r, n) {
744
750
  "aria-labelledby": e.categoryNameId,
745
751
  onClick: e.handleSelectAll,
746
752
  onEnterPressed: e.handleSelectAll,
747
- onSpacePressed: ie(e.handleSelectAll, ["prevent"]),
753
+ onSpacePressed: ae(e.handleSelectAll, ["prevent"]),
748
754
  onKeydown: [
749
755
  t[1] || (t[1] = be((l) => e.toggleOpen(l, !1), ["arrow-left", "native"])),
750
756
  t[2] || (t[2] = be((l) => e.toggleOpen(l, !0), ["arrow-right", "native"]))
751
757
  ]
752
758
  }, {
753
759
  default: L(() => [
754
- M(i, {
760
+ N(a, {
755
761
  indeterminate: e.isIndeterminate,
756
762
  disabled: e.hasAllPropsDisabled,
757
763
  checked: e.isAllSelected
758
764
  }, null, 8, ["indeterminate", "disabled", "checked"]),
759
765
  G("span", Xt, [
760
- M(g, {
766
+ N(f, {
761
767
  id: e.categoryNameId,
762
768
  el: "span",
763
769
  class: "b-listbox-multi-select-category__label-text"
@@ -771,12 +777,12 @@ function ts(e, t, o, s, r, n) {
771
777
  "aria-hidden": "true",
772
778
  class: "b-listbox-multi-select-category__label-chevron",
773
779
  "data-testid": "toggle-listbox",
774
- onClickCapture: t[0] || (t[0] = ie((...l) => e.toggleOpen && e.toggleOpen(...l), ["stop"]))
780
+ onClickCapture: t[0] || (t[0] = ae((...l) => e.toggleOpen && e.toggleOpen(...l), ["stop"]))
775
781
  }, [
776
- e.isOpen ? (d(), k(S, {
782
+ e.isOpen ? (d(), A(S, {
777
783
  key: 0,
778
784
  "svg-title": e.chevronTitle
779
- }, null, 8, ["svg-title"])) : (d(), k(a, {
785
+ }, null, 8, ["svg-title"])) : (d(), A(n, {
780
786
  key: 1,
781
787
  "svg-title": e.chevronTitle
782
788
  }, null, 8, ["svg-title"]))
@@ -785,26 +791,26 @@ function ts(e, t, o, s, r, n) {
785
791
  ]),
786
792
  _: 1
787
793
  }, 8, ["class", "tabindex", "aria-selected", "aria-checked", "aria-disabled", "aria-expanded", "aria-owns", "aria-labelledby", "onClick", "onEnterPressed", "onSpacePressed"])),
788
- ae(G("div", {
794
+ ne(G("div", {
789
795
  id: e.categoryGroupId,
790
796
  role: "group",
791
797
  "aria-label": e.category.label
792
798
  }, [
793
799
  W(e.$slots, "default", {}, void 0, !0)
794
- ], 8, es), [
795
- [Ye, e.showItemChildren]
800
+ ], 8, Qt), [
801
+ [ze, e.showItemChildren]
796
802
  ])
797
803
  ]);
798
804
  }
799
- const ss = /* @__PURE__ */ H(Jt, [["render", ts], ["__scopeId", "data-v-60c04867"]]);
800
- var J = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(J || {});
801
- const ls = X({
805
+ const ts = /* @__PURE__ */ H(qt, [["render", es], ["__scopeId", "data-v-60c04867"]]);
806
+ var X = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e.TOGGLE_CATEGORY_VISIBILITY = "toggle-category-visibility", e))(X || {});
807
+ const ss = J({
802
808
  name: "listbox-multi-select-options",
803
809
  components: {
804
810
  BentoListboxOption: Ce,
805
- BentoTypography: ne,
806
- ListboxMultiSelectCategory: ss,
807
- DecorativeCheckbox: Ie
811
+ BentoTypography: ie,
812
+ ListboxMultiSelectCategory: ts,
813
+ DecorativeCheckbox: Ae
808
814
  },
809
815
  inheritAttrs: !1,
810
816
  props: {
@@ -874,23 +880,23 @@ const ls = X({
874
880
  }
875
881
  },
876
882
  emits: [
877
- J.TOGGLE_CHECKBOX_SELECTION,
878
- J.SELECT_CATEGORY,
879
- J.UNSELECT_CATEGORY,
880
- J.TOGGLE_CATEGORY_VISIBILITY
883
+ X.TOGGLE_CHECKBOX_SELECTION,
884
+ X.SELECT_CATEGORY,
885
+ X.UNSELECT_CATEGORY,
886
+ X.TOGGLE_CATEGORY_VISIBILITY
881
887
  ],
882
888
  setup(e, { emit: t }) {
883
- const o = (a) => {
884
- e.isOptionDisabled(a) || t(J.TOGGLE_CHECKBOX_SELECTION, a);
885
- }, s = (a) => !!a.items, r = (a) => {
889
+ const o = (n) => {
890
+ e.isOptionDisabled(n) || t(X.TOGGLE_CHECKBOX_SELECTION, n);
891
+ }, s = (n) => !!n.items, i = (n) => {
886
892
  const u = e.isMultiLevel && e.searching;
887
- return a.description && (!e.isMultiLevel || u);
888
- }, n = (a) => a.items ? !!a.items.find((u) => e.selectedItemsList.includes(u.value)) : e.selectedItemsList.includes(a.value), i = (a) => {
889
- if (s(a)) {
890
- const u = n(a) ? J.UNSELECT_CATEGORY : J.SELECT_CATEGORY;
891
- t(u, a);
893
+ return n.description && (!e.isMultiLevel || u);
894
+ }, r = (n) => n.items ? !!n.items.find((u) => e.selectedItemsList.includes(u.value)) : e.selectedItemsList.includes(n.value), a = (n) => {
895
+ if (s(n)) {
896
+ const u = r(n) ? X.UNSELECT_CATEGORY : X.SELECT_CATEGORY;
897
+ t(u, n);
892
898
  } else
893
- o(a);
899
+ o(n);
894
900
  };
895
901
  return {
896
902
  // Values
@@ -899,26 +905,26 @@ const ls = X({
899
905
  "b-listbox-multi-select-options__category-option": e.categoryItems
900
906
  })),
901
907
  // Methods
902
- isOptionSelected: n,
903
- shouldShowDescription: r,
908
+ isOptionSelected: r,
909
+ shouldShowDescription: i,
904
910
  toggleCheckboxSelection: o,
905
- toggleSearchOption: i,
906
- computedTabindex: (a) => e.itemsIndex[a] === e.focusedIndex ? 0 : -1,
911
+ toggleSearchOption: a,
912
+ computedTabindex: (n) => e.itemsIndex[n] === e.focusedIndex ? 0 : -1,
907
913
  // Enums
908
914
  BentoListboxEvent: p,
909
- ListboxMultiSelectOptionsEvent: J
915
+ ListboxMultiSelectOptionsEvent: X
910
916
  };
911
917
  }
912
- }), os = { class: "b-listbox-multi-select__option-text" }, is = { class: "b-listbox-multi-select__option-text" };
913
- function as(e, t, o, s, r, n) {
914
- const i = I("decorative-checkbox"), g = I("bento-typography"), S = I("bento-listbox-option"), a = I("listbox-multi-select-options", !0), u = I("listbox-multi-select-category");
918
+ }), ls = { class: "b-listbox-multi-select__option-text" }, os = { class: "b-listbox-multi-select__option-text" };
919
+ function as(e, t, o, s, i, r) {
920
+ const a = _("decorative-checkbox"), f = _("bento-typography"), S = _("bento-listbox-option"), n = _("listbox-multi-select-options", !0), u = _("listbox-multi-select-category");
915
921
  return d(), y("div", null, [
916
922
  (d(!0), y(te, null, j(e.items, (l) => (d(), y("div", {
917
923
  key: `selected-${l.value}`
918
924
  }, [
919
- e.searching && e.isMultiLevel ? (d(), k(S, {
925
+ e.searching && e.isMultiLevel ? (d(), A(S, {
920
926
  key: 0,
921
- class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
927
+ class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
922
928
  disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
923
929
  tabindex: e.computedTabindex(l.value),
924
930
  "aria-selected": `${e.isOptionSelected(l)}`,
@@ -927,22 +933,22 @@ function as(e, t, o, s, r, n) {
927
933
  role: e.$attrs.role || "option",
928
934
  onClick: (m) => e.toggleSearchOption(l),
929
935
  onEnterPressed: (m) => e.toggleSearchOption(l),
930
- onSpacePressed: ie((m) => e.toggleSearchOption(l), ["prevent"])
936
+ onSpacePressed: ae((m) => e.toggleSearchOption(l), ["prevent"])
931
937
  }, {
932
938
  default: L(() => [
933
- M(i, {
939
+ N(a, {
934
940
  disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
935
941
  checked: e.isOptionSelected(l)
936
942
  }, null, 8, ["disabled", "checked"]),
937
943
  W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
938
- G("span", os, [
939
- M(g, { el: "span" }, {
944
+ G("span", ls, [
945
+ N(f, { el: "span" }, {
940
946
  default: L(() => [
941
947
  K(V(l.label), 1)
942
948
  ]),
943
949
  _: 2
944
950
  }, 1024),
945
- e.shouldShowDescription(l) ? (d(), k(g, {
951
+ e.shouldShowDescription(l) ? (d(), A(f, {
946
952
  key: 0,
947
953
  class: "b-listbox-multi-select__option-description",
948
954
  el: "span"
@@ -957,7 +963,7 @@ function as(e, t, o, s, r, n) {
957
963
  ]),
958
964
  _: 2
959
965
  }, 1032, ["class", "disabled", "tabindex", "aria-selected", "aria-checked", "aria-disabled", "role", "onClick", "onEnterPressed", "onSpacePressed"])) : (d(), y(te, { key: 1 }, [
960
- l.items ? (d(), k(u, {
966
+ l.items ? (d(), A(u, {
961
967
  key: 0,
962
968
  category: l,
963
969
  "static-categories": e.staticCategories,
@@ -969,7 +975,7 @@ function as(e, t, o, s, r, n) {
969
975
  onToggleCategoryVisibility: t[1] || (t[1] = (m) => e.$emit(e.ListboxMultiSelectOptionsEvent.TOGGLE_CATEGORY_VISIBILITY, m))
970
976
  }, {
971
977
  default: L(() => [
972
- M(a, {
978
+ N(n, {
973
979
  "category-items": "",
974
980
  items: l.items,
975
981
  "is-option-disabled": e.isOptionDisabled,
@@ -984,9 +990,9 @@ function as(e, t, o, s, r, n) {
984
990
  }, null, 8, ["items", "is-option-disabled", "items-index", "focused-index", "is-multi-level", "static-categories", "selected-items-list", "searching", "role"])
985
991
  ]),
986
992
  _: 2
987
- }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "tabindex", "onSelectCategory", "onUnselectCategory"])) : (d(), k(S, {
993
+ }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "tabindex", "onSelectCategory", "onUnselectCategory"])) : (d(), A(S, {
988
994
  key: 1,
989
- class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
995
+ class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
990
996
  disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
991
997
  tabindex: e.computedTabindex(l.value),
992
998
  "aria-selected": `${e.isOptionSelected(l)}`,
@@ -995,22 +1001,22 @@ function as(e, t, o, s, r, n) {
995
1001
  role: e.$attrs.role || "option",
996
1002
  onClick: (m) => e.toggleCheckboxSelection(l),
997
1003
  onEnterPressed: (m) => e.toggleCheckboxSelection(l),
998
- onSpacePressed: ie((m) => e.toggleCheckboxSelection(l), ["prevent"])
1004
+ onSpacePressed: ae((m) => e.toggleCheckboxSelection(l), ["prevent"])
999
1005
  }, {
1000
1006
  default: L(() => [
1001
- M(i, {
1007
+ N(a, {
1002
1008
  disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null,
1003
1009
  checked: e.isOptionSelected(l)
1004
1010
  }, null, 8, ["disabled", "checked"]),
1005
1011
  W(e.$slots, "default", w({ ref_for: !0 }, l), () => [
1006
- G("span", is, [
1007
- M(g, { el: "span" }, {
1012
+ G("span", os, [
1013
+ N(f, { el: "span" }, {
1008
1014
  default: L(() => [
1009
1015
  K(V(l.label), 1)
1010
1016
  ]),
1011
1017
  _: 2
1012
1018
  }, 1024),
1013
- e.shouldShowDescription(l) ? (d(), k(g, {
1019
+ e.shouldShowDescription(l) ? (d(), A(f, {
1014
1020
  key: 0,
1015
1021
  class: "b-listbox-multi-select__option-description",
1016
1022
  el: "span"
@@ -1029,22 +1035,29 @@ function as(e, t, o, s, r, n) {
1029
1035
  ]))), 128))
1030
1036
  ]);
1031
1037
  }
1032
- const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58"]]), rs = (e) => {
1033
- const t = b(() => !!e.value?.find(({ items: s }) => !!s)), o = b(() => t.value ? e.value?.reduce((s, r) => (r.items ? s.push(...r.items.flat()) : s.push(r), s), []) : e.value);
1038
+ const ns = /* @__PURE__ */ H(ss, [["render", as], ["__scopeId", "data-v-237dfc58"]]), is = (e) => {
1039
+ const t = b(() => !!e.value?.find(({ items: s }) => !!s)), o = b(() => t.value ? e.value?.reduce((s, i) => (i.items ? s.push(...i.items.flat()) : s.push(i), s), []) : e.value);
1034
1040
  return {
1035
1041
  isMultiLevelSelect: t,
1036
1042
  flattenedItemsList: o
1037
1043
  };
1038
1044
  }, je = {
1045
+ "de-DE": { allSelected: "Alle ausgewählt ({total})", numberOfTotalSelected: "{number} von {total} ausgewählt", numbersSelected: "{number} ausgewählt", selectAll: "Alle auswählen ({total})" },
1046
+ "en-GB": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
1039
1047
  "en-US": { allSelected: "All selected ({total})", numberOfTotalSelected: "{number} of {total} selected", numbersSelected: "{number} selected", selectAll: "Select all ({total})" },
1048
+ "es-ES": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{number} seleccionado", selectAll: "Seleccionar todo ({total})" },
1049
+ "es-MX": { allSelected: "Todos seleccionados ({total})", numberOfTotalSelected: "{number} de {total} seleccionados", numbersSelected: "{número} seleccionado", selectAll: "Seleccionar todo ({total})" },
1050
+ "fr-FR": { allSelected: "Tous sélectionnés ({total})", numberOfTotalSelected: "{number} sélectionné(s) sur {total}", numbersSelected: "{number} sélectionné(s)", selectAll: "Tout sélectionner ({total})" },
1051
+ "it-IT": { allSelected: "Tutti i selezionati ({total})", numberOfTotalSelected: "{numero} su {totale} selezionati", numbersSelected: "{numero} selezionati", selectAll: "Seleziona tutto ({total})" },
1040
1052
  "ja-JP": { allSelected: "すべて選択 ({total})", numberOfTotalSelected: "{number}/{total}件が選択されました", numbersSelected: "{number}件選択済み", selectAll: "すべて選択 ({total})" },
1041
- "pt-BR": { allSelected: "Todos os selecionados ({total})", numberOfTotalSelected: "{number} de {total} selecionados", numbersSelected: "{number} selecionados", selectAll: "Selecionar tudo ({total})" }
1042
- }, cs = { key: 0 }, ds = ["role"], us = {
1053
+ "pt-BR": { allSelected: "Todos os selecionados ({total})", numberOfTotalSelected: "{number} de {total} selecionados", numbersSelected: "{number} selecionados", selectAll: "Selecionar tudo ({total})" },
1054
+ "zh-CN": { allSelected: "全部已选 ({total})", numberOfTotalSelected: "已选择 {number} 个,共 {total} 个", numbersSelected: "已选择 {number} 个", selectAll: "选择全部({total})个" }
1055
+ }, rs = { key: 0 }, cs = ["role"], ds = {
1043
1056
  key: 1,
1044
1057
  class: "b-listbox-multi-select__divider",
1045
1058
  "aria-hidden": "true"
1046
- }, bs = { i18n: { messages: je } }, ms = /* @__PURE__ */ X({
1047
- ...bs,
1059
+ }, us = { i18n: { messages: je } }, bs = /* @__PURE__ */ J({
1060
+ ...us,
1048
1061
  __name: "listbox-multi-select",
1049
1062
  props: {
1050
1063
  hasMoreItems: { type: Boolean, default: !1 },
@@ -1057,7 +1070,7 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1057
1070
  },
1058
1071
  emits: ["select"],
1059
1072
  setup(e, { expose: t, emit: o }) {
1060
- const s = e, r = o, { t: n, n: i } = _e({ messages: je }), g = mt(), S = pt(), a = b(
1073
+ const s = e, i = o, { t: r, n: a } = _e({ messages: je }), f = mt(), S = pt(), n = b(
1061
1074
  () => ({
1062
1075
  "aria-label": S["aria-label"]?.toString(),
1063
1076
  "aria-busy": S["aria-busy"]?.toString(),
@@ -1065,77 +1078,77 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1065
1078
  "aria-live": S["aria-live"]?.toString(),
1066
1079
  "aria-multiselectable": !0
1067
1080
  })
1068
- ), u = _(null), l = _(null), m = _(null), C = _(null), h = b(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: R, flattenedItemsList: x } = rs(pe(s, "items")), A = b(() => R.value && !s.staticCategories), $ = b(() => A.value ? "tree" : "listbox"), T = b(() => A.value ? "treeitem" : "option"), O = (c) => {
1069
- const f = s.isOptionDisabled(c), v = h.value?.includes(c.value) || !1;
1070
- return { isDisabled: f, isPreSelected: v };
1081
+ ), u = I(null), l = I(null), m = I(null), C = I(null), h = b(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: R, flattenedItemsList: x } = is(pe(s, "items")), k = b(() => R.value && !s.staticCategories), $ = b(() => k.value ? "tree" : "listbox"), T = b(() => k.value ? "treeitem" : "option"), O = (c) => {
1082
+ const v = s.isOptionDisabled(c), g = h.value?.includes(c.value) || !1;
1083
+ return { isDisabled: v, isPreSelected: g };
1071
1084
  }, D = b(() => {
1072
1085
  if (s.searching && R)
1073
1086
  return s.items;
1074
- const c = x.value.filter((f) => {
1075
- const { isDisabled: v, isPreSelected: N } = O(f);
1076
- return v && N || !v;
1087
+ const c = x.value.filter((v) => {
1088
+ const { isDisabled: g, isPreSelected: P } = O(v);
1089
+ return g && P || !g;
1077
1090
  });
1078
- return s.selectedValues.forEach((f) => {
1079
- c.find((v) => v.value === f.value) || c.push(f);
1091
+ return s.selectedValues.forEach((v) => {
1092
+ c.find((g) => g.value === v.value) || c.push(v);
1080
1093
  }), c;
1081
- }), Y = b(
1094
+ }), z = b(
1082
1095
  () => D.value?.filter((c) => c.items && R.value && s.searching ? c.items.filter(
1083
- (v) => (s.selectedValues ?? []).includes(v.value)
1096
+ (g) => (s.selectedValues ?? []).includes(g.value)
1084
1097
  ).length === c.items.length : h.value?.includes(c.value))
1085
- ), re = () => R.value && !s.searching ? x.value.length : s.items.length, P = b(() => {
1086
- const c = D.value.length, f = re(), v = Y.value?.length || 0;
1087
- return v === 0 ? n("selectAll", { total: i(c) }) : v === f ? n("allSelected", { total: i(f) }) : v <= f ? n("numberOfTotalSelected", { number: i(v), total: i(f) }) : n("numbersSelected", { number: i(v) });
1088
- }), U = (c) => {
1089
- const f = (N) => {
1090
- const { isDisabled: E, isPreSelected: ue } = O(N);
1098
+ ), re = () => R.value && !s.searching ? x.value.length : s.items.length, M = b(() => {
1099
+ const c = D.value.length, v = re(), g = z.value?.length || 0;
1100
+ return g === 0 ? r("selectAll", { total: a(c) }) : g === v ? r("allSelected", { total: a(v) }) : g <= v ? r("numberOfTotalSelected", { number: a(g), total: a(v) }) : r("numbersSelected", { number: a(g) });
1101
+ }), Y = (c) => {
1102
+ const v = (P) => {
1103
+ const { isDisabled: E, isPreSelected: ue } = O(P);
1091
1104
  return E && ue || !E;
1092
- }, v = c.filter(f).filter((N) => !h.value.includes(N.value));
1093
- r("select", [...s.selectedValues, ...v]);
1105
+ }, g = c.filter(v).filter((P) => !h.value.includes(P.value));
1106
+ i("select", [...s.selectedValues, ...g]);
1094
1107
  }, Z = (c) => {
1095
- const f = (E) => {
1108
+ const v = (E) => {
1096
1109
  const { isDisabled: ue, isPreSelected: dt } = O(E);
1097
1110
  return !(ue && dt);
1098
- }, v = c.filter(f).map(({ value: E }) => E), N = s.selectedValues.filter((E) => !v?.includes(E.value));
1099
- r("select", N);
1111
+ }, g = c.filter(v).map(({ value: E }) => E), P = s.selectedValues.filter((E) => !g?.includes(E.value));
1112
+ i("select", P);
1100
1113
  }, Ee = () => {
1101
- U(x.value);
1114
+ Y(x.value);
1102
1115
  }, Oe = () => {
1103
1116
  Z(x.value);
1104
- }, { isAllSelected: z, isIndeterminate: se, toggleSelectAll: qe } = Fe(
1105
- Y,
1117
+ }, { isAllSelected: U, isIndeterminate: se, toggleSelectAll: qe } = Fe(
1118
+ z,
1106
1119
  D,
1107
1120
  Ee,
1108
1121
  Oe
1109
- ), ke = b(() => se.value ? "mixed" : `${z.value}`), ye = _(z.value), Te = () => {
1122
+ ), ke = b(() => se.value ? "mixed" : `${U.value}`), ye = I(U.value), Te = () => {
1110
1123
  ye.value = !ye.value, qe(ye.value);
1111
1124
  };
1112
- ge(z, () => {
1113
- ye.value = z.value;
1125
+ fe(U, () => {
1126
+ ye.value = U.value;
1114
1127
  });
1115
- const Je = (c) => {
1116
- U(c.items);
1117
- }, Ae = (c) => {
1128
+ const Xe = (c) => {
1129
+ Y(c.items);
1130
+ }, $e = (c) => {
1118
1131
  Z(c.items);
1119
- }, ce = (c, f) => {
1120
- let v = !1;
1121
- const N = s.selectedValues.filter(({ value: E }) => f.value === E ? (v = !0, !1) : !0);
1122
- v || N.push(f), r(c, N);
1123
- }, Xe = b(() => {
1132
+ }, ce = (c, v) => {
1133
+ let g = !1;
1134
+ const P = s.selectedValues.filter(({ value: E }) => v.value === E ? (g = !0, !1) : !0);
1135
+ g || P.push(v), i(c, P);
1136
+ }, Je = b(() => {
1124
1137
  if (!R.value)
1125
1138
  return s.selectedValues;
1126
- const c = (E) => h.value.includes(E.value), f = (E) => !s.staticCategories && E.every((ue) => c(ue));
1139
+ const c = (E) => h.value.includes(E.value), v = (E) => !s.staticCategories && E.every((ue) => c(ue));
1127
1140
  return s.items.flatMap(
1128
- (E) => E.items && !f(E.items) ? E.items : E
1141
+ (E) => E.items && !v(E.items) ? E.items : E
1129
1142
  ).filter((E) => E.items ? !0 : c(E));
1130
1143
  }), Ze = b(() => {
1131
- const c = ["automatic", "button"].includes(s.lazyLoadType), f = s.selectedValues?.length > 0 && Y.value?.length !== x.value?.length;
1132
- return c && s.hasMoreItems ? !!s.selectedValues?.length : f;
1133
- }), $e = b(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), de = _([]), { visibleDomOptions: De, updateVisibleDomOptions: Qe } = We(
1144
+ const c = ["automatic", "button"].includes(s.lazyLoadType), v = s.selectedValues?.length > 0 && z.value?.length !== x.value?.length;
1145
+ return c && s.hasMoreItems ? !!s.selectedValues?.length : v;
1146
+ }), Le = b(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), de = I([]), { visibleDomOptions: De, updateVisibleDomOptions: Qe } = We(
1134
1147
  u,
1135
1148
  pe(s, "items"),
1136
1149
  T
1137
1150
  ), et = (c) => {
1138
- de.value.includes(c) ? de.value = de.value.filter((f) => f !== c) : de.value.push(c), Ue(() => {
1151
+ de.value.includes(c) ? de.value = de.value.filter((v) => v !== c) : de.value.push(c), Ye(() => {
1139
1152
  Qe();
1140
1153
  });
1141
1154
  }, tt = (c) => {
@@ -1144,69 +1157,69 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1144
1157
  moveToNextElement: st,
1145
1158
  moveToPreviousElement: lt,
1146
1159
  moveToFirstElement: ot,
1147
- moveToLastElement: it,
1160
+ moveToLastElement: at,
1148
1161
  preventDefault: Be,
1149
1162
  focusedIndex: Re,
1150
- setListboxFocusedIndex: at
1163
+ setListboxFocusedIndex: nt
1151
1164
  } = Ke(
1152
1165
  {
1153
1166
  items: De
1154
1167
  },
1155
1168
  tt
1156
- ), nt = {
1169
+ ), it = {
1157
1170
  [F.ARROW_UP]: (c) => lt(c),
1158
1171
  [F.ARROW_DOWN]: (c) => st(c),
1159
1172
  [F.HOME]: ot,
1160
- [F.END]: it
1173
+ [F.END]: at
1161
1174
  };
1162
1175
  t({
1163
1176
  /**
1164
1177
  * Method to set the index of the item to be focused on
1165
1178
  * Used for focus management to be kept in-sync with parent e.g. dropdowns
1166
1179
  */
1167
- setListboxFocusedIndex: at
1180
+ setListboxFocusedIndex: nt
1168
1181
  });
1169
1182
  const rt = {
1170
1183
  [F.ARROW_UP]: Be,
1171
1184
  [F.ARROW_DOWN]: Be
1172
1185
  }, ct = b(() => {
1173
- let c = 1;
1174
- const f = {};
1175
- return s.items.forEach((v) => {
1176
- let N = de.value.includes(v.value);
1177
- v.items ? (s.staticCategories ? N = !0 : f[v.value] = c++, N && v.items.forEach((E) => f[E.value] = c++)) : f[v.value] = c++;
1178
- }), f;
1186
+ let c = Le.value ? 1 : 0;
1187
+ const v = {};
1188
+ return s.items.forEach((g) => {
1189
+ let P = de.value.includes(g.value);
1190
+ g.items ? (s.staticCategories ? P = !0 : v[g.value] = c++, P && g.items.forEach((E) => v[E.value] = c++)) : v[g.value] = c++;
1191
+ }), v;
1179
1192
  });
1180
- return (c, f) => (d(), y("div", {
1193
+ return (c, v) => (d(), y("div", {
1181
1194
  ref_key: "listboxRef",
1182
1195
  ref: u,
1183
1196
  class: "b-listbox-multi-select"
1184
1197
  }, [
1185
- Ze.value ? (d(), y("div", cs, [
1186
- ae((d(), y("ul", w({ class: "b-listbox-multi-select__chips" }, ee(rt, !0)), [
1187
- (d(!0), y(te, null, j(Xe.value, (v) => (d(), y("li", {
1188
- key: v.value
1198
+ Ze.value ? (d(), y("div", rs, [
1199
+ ne((d(), y("ul", w({ class: "b-listbox-multi-select__chips" }, ee(rt, !0)), [
1200
+ (d(!0), y(te, null, j(Je.value, (g) => (d(), y("li", {
1201
+ key: g.value
1189
1202
  }, [
1190
- M(B(Ct), {
1203
+ N(B(St), {
1191
1204
  ref_for: !0,
1192
1205
  ref_key: "selectedListboxItemsRef",
1193
1206
  ref: m,
1194
- disabled: c.isOptionDisabled(v),
1195
- label: v.label,
1207
+ disabled: c.isOptionDisabled(g),
1208
+ label: g.label,
1196
1209
  condensed: "",
1197
- onClick: (N) => v.items ? Ae(v) : ce("select", v)
1210
+ onClick: (P) => g.items ? $e(g) : ce("select", g)
1198
1211
  }, null, 8, ["disabled", "label", "onClick"])
1199
1212
  ]))), 128))
1200
1213
  ], 16)), [
1201
1214
  [B(he)]
1202
1215
  ]),
1203
- f[4] || (f[4] = G("hr", {
1216
+ v[4] || (v[4] = G("hr", {
1204
1217
  class: "b-listbox-multi-select__divider",
1205
1218
  "aria-hidden": "true"
1206
1219
  }, null, -1))
1207
1220
  ])) : q("", !0),
1208
- ae((d(), y("div", w(a.value, { role: $.value }, ee(nt, !0)), [
1209
- $e.value ? (d(), k(B(Ce), {
1221
+ ne((d(), y("div", w(n.value, { role: $.value }, ee(it, !0)), [
1222
+ Le.value ? (d(), A(B(Ce), {
1210
1223
  key: 0,
1211
1224
  ref_key: "selectAllListboxItemsRef",
1212
1225
  ref: l,
@@ -1217,24 +1230,24 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1217
1230
  role: T.value,
1218
1231
  onClick: Te,
1219
1232
  onEnterPressed: Te,
1220
- onSpacePressed: ie(Te, ["prevent"])
1233
+ onSpacePressed: ae(Te, ["prevent"])
1221
1234
  }, {
1222
1235
  default: L(() => [
1223
- M(B(Ie), {
1224
- checked: B(z),
1236
+ N(B(Ae), {
1237
+ checked: B(U),
1225
1238
  indeterminate: B(se)
1226
1239
  }, null, 8, ["checked", "indeterminate"]),
1227
- M(B(ne), { el: "span" }, {
1240
+ N(B(ie), { el: "span" }, {
1228
1241
  default: L(() => [
1229
- K(V(P.value), 1)
1242
+ K(V(M.value), 1)
1230
1243
  ]),
1231
1244
  _: 1
1232
1245
  })
1233
1246
  ]),
1234
1247
  _: 1
1235
1248
  }, 8, ["tabindex", "aria-selected", "aria-checked", "role"])) : q("", !0),
1236
- $e.value ? (d(), y("hr", us)) : q("", !0),
1237
- M(B(ns), {
1249
+ Le.value ? (d(), y("hr", ds)) : q("", !0),
1250
+ N(B(ns), {
1238
1251
  ref_key: "listboxItemsRef",
1239
1252
  ref: C,
1240
1253
  items: c.items,
@@ -1246,39 +1259,51 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1246
1259
  "focused-index": B(Re),
1247
1260
  "items-index": ct.value,
1248
1261
  role: T.value,
1249
- onToggleCheckboxSelection: f[0] || (f[0] = (v) => ce("select", v)),
1250
- onSelectCategory: Je,
1251
- onUnselectCategory: Ae,
1262
+ onToggleCheckboxSelection: v[0] || (v[0] = (g) => ce("select", g)),
1263
+ onSelectCategory: Xe,
1264
+ onUnselectCategory: $e,
1252
1265
  onToggleCategoryVisibility: et,
1253
- onSpacePressed: f[1] || (f[1] = (v) => ce(B(p).SPACE, v)),
1254
- onTabPressed: f[2] || (f[2] = (v) => ce(B(p).TAB, v)),
1255
- onEnterPressed: f[3] || (f[3] = (v) => ce(B(p).ENTER, v))
1256
- }, ve({ _: 2 }, [
1257
- j(B(g), (v, N) => ({
1258
- name: N,
1266
+ onSpacePressed: v[1] || (v[1] = (g) => ce(B(p).SPACE, g)),
1267
+ onTabPressed: v[2] || (v[2] = (g) => ce(B(p).TAB, g)),
1268
+ onEnterPressed: v[3] || (v[3] = (g) => ce(B(p).ENTER, g))
1269
+ }, ge({ _: 2 }, [
1270
+ j(B(f), (g, P) => ({
1271
+ name: P,
1259
1272
  fn: L((E) => [
1260
- W(c.$slots, N, oe(me(E)), void 0, !0)
1273
+ W(c.$slots, P, oe(me(E)), void 0, !0)
1261
1274
  ])
1262
1275
  }))
1263
1276
  ]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list", "focused-index", "items-index", "role"])
1264
- ], 16, ds)), [
1277
+ ], 16, cs)), [
1265
1278
  [B(he)]
1266
1279
  ])
1267
1280
  ], 512));
1268
1281
  }
1269
- }), xe = /* @__PURE__ */ H(ms, [["__scopeId", "data-v-d170602c"]]), Ve = {
1282
+ }), xe = /* @__PURE__ */ H(bs, [["__scopeId", "data-v-4abd31b6"]]), ms = (e, t = 300) => {
1283
+ let o;
1284
+ return (...i) => {
1285
+ o && clearTimeout(o), o = setTimeout(() => e(...i), t);
1286
+ };
1287
+ }, Ve = {
1288
+ "de-DE": { loading: "Laden", showMore: "Mehr anzeigen" },
1289
+ "en-GB": { loading: "Loading", showMore: "Show more" },
1270
1290
  "en-US": { loading: "Loading", showMore: "Show more" },
1271
- "ja-JP": { loading: "読み込み中", showMore: "表示内容を増やす" },
1272
- "pt-BR": { loading: "Carregando", showMore: "Mostrar mais" }
1273
- }, ps = 36, vs = X({
1291
+ "es-ES": { loading: "Cargando", showMore: "Mostrar más" },
1292
+ "es-MX": { loading: "Cargando", showMore: "Mostrar más" },
1293
+ "fr-FR": { loading: "Chargement", showMore: "Afficher plus" },
1294
+ "it-IT": { loading: "Caricamento", showMore: "Mostra di più" },
1295
+ "ja-JP": { loading: "読み込み中", showMore: "さらに表示" },
1296
+ "pt-BR": { loading: "Carregando", showMore: "Mostrar mais" },
1297
+ "zh-CN": { loading: "正在加载", showMore: "显示更多" }
1298
+ }, ps = 36, gs = J({
1274
1299
  name: "bento-listbox",
1275
1300
  components: {
1276
- BentoEmptyState: ft,
1277
- BentoListboxSingleSelect: zt,
1301
+ BentoEmptyState: vt,
1302
+ BentoListboxSingleSelect: Yt,
1278
1303
  BentoListboxMultiSelect: xe,
1279
- BentoTypography: ne,
1280
- BentoLoadingIndicator: vt,
1281
- BentoLoadingButton: Tt
1304
+ BentoTypography: ie,
1305
+ BentoLoadingIndicator: gt,
1306
+ BentoLoadingButton: Et
1282
1307
  },
1283
1308
  directives: { BentoKeyboardNavigationDirective: he },
1284
1309
  i18n: { messages: Ve },
@@ -1390,23 +1415,23 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1390
1415
  p.TAB
1391
1416
  ],
1392
1417
  setup(e, { emit: t, slots: o }) {
1393
- const s = _([]), r = pe(e, "items"), { t: n } = _e({ messages: Ve }), i = b(() => e.lazyLoadType !== le.AUTOMATIC), g = b(() => e.lazyLoadType === le.AUTOMATIC), S = () => typeof e?.virtualScroll == "object" && e?.virtualScroll?.itemHeight ? e.virtualScroll.itemHeight : ps, {
1394
- containerRef: a,
1418
+ const s = I([]), i = pe(e, "items"), { t: r } = _e({ messages: Ve }), a = b(() => e.lazyLoadType !== le.AUTOMATIC), f = b(() => e.lazyLoadType === le.AUTOMATIC), S = () => typeof e?.virtualScroll == "object" && e?.virtualScroll?.itemHeight ? e.virtualScroll.itemHeight : ps, {
1419
+ containerRef: n,
1395
1420
  containerProps: u,
1396
1421
  onScroll: l,
1397
1422
  list: m,
1398
1423
  wrapperProps: C
1399
- } = Lt(r, {
1424
+ } = Tt(i, {
1400
1425
  itemHeight: S(),
1401
1426
  // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1402
1427
  disabled: e?.multiple || e?.virtualScroll === !1 || e?.lazyLoadType !== "none"
1403
1428
  }), h = b(
1404
- () => e.componentLoading !== void 0 || i.value ? "true" : void 0
1429
+ () => e.componentLoading !== void 0 || a.value ? "true" : void 0
1405
1430
  ), R = b(
1406
- () => i.value && e.loading || e.componentLoading ? "true" : "false"
1431
+ () => a.value && e.loading || e.componentLoading ? "true" : "false"
1407
1432
  ), x = b(
1408
- () => i.value || e.componentLoading !== void 0 ? "polite" : void 0
1409
- ), A = b(
1433
+ () => a.value || e.componentLoading !== void 0 ? "polite" : void 0
1434
+ ), k = b(
1410
1435
  () => ({
1411
1436
  "aria-label": e.ariaLabel,
1412
1437
  "aria-busy": R.value,
@@ -1415,26 +1440,26 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1415
1440
  })
1416
1441
  ), $ = b(
1417
1442
  () => e.componentLoading ? {
1418
- ...A.value,
1443
+ ...k.value,
1419
1444
  role: "alert"
1420
1445
  } : {}
1421
- ), T = (z) => (se) => {
1422
- t(z, se);
1446
+ ), T = (U) => (se) => {
1447
+ t(U, se);
1423
1448
  }, O = () => {
1424
1449
  t(p.SHOW_MORE);
1425
- }, D = gt(() => {
1426
- const z = a.value;
1427
- if (!z)
1450
+ }, D = ms(() => {
1451
+ const U = n.value;
1452
+ if (!U)
1428
1453
  return;
1429
- const se = Math.round(z.scrollTop) + z.clientHeight >= z.scrollHeight;
1454
+ const se = Math.round(U.scrollTop) + U.clientHeight >= U.scrollHeight;
1430
1455
  e.hasMoreItems && se && !e.loading && O();
1431
- }), Y = () => {
1432
- g.value ? D() : l();
1433
- }, re = b(() => e.items?.length === 0), P = b(
1456
+ }), z = () => {
1457
+ f.value ? D() : l();
1458
+ }, re = b(() => e.items?.length === 0), M = b(
1434
1459
  () => e.lazyLoadType === le.BUTTON && e.hasMoreItems
1435
- ), U = b(
1436
- () => e.loading ? Ne.LOADING : Ne.START
1437
- ), Z = b(() => e.loading ? n("loading") : n("showMore")), Ee = b(() => ({
1460
+ ), Y = b(
1461
+ () => e.loading ? Pe.LOADING : Pe.START
1462
+ ), Z = b(() => e.loading ? r("loading") : r("showMore")), Ee = b(() => ({
1438
1463
  ...e.emptyState,
1439
1464
  variant: "condensed"
1440
1465
  })), Oe = {
@@ -1445,18 +1470,18 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1445
1470
  };
1446
1471
  return {
1447
1472
  // Refs
1448
- listboxRef: a,
1473
+ listboxRef: n,
1449
1474
  listboxItemRef: s,
1450
1475
  // a11y
1451
- ariaAttributes: A,
1476
+ ariaAttributes: k,
1452
1477
  listboxContainerAttributes: $,
1453
1478
  // Values
1454
1479
  containerProps: u,
1455
1480
  isSearchResultEmpty: re,
1456
1481
  limitedEmptyStateProps: Ee,
1457
- loadingButtonState: U,
1482
+ loadingButtonState: Y,
1458
1483
  slots: o,
1459
- shouldDisplayShowMoreButton: P,
1484
+ shouldDisplayShowMoreButton: M,
1460
1485
  showMoreButtonText: Z,
1461
1486
  virtualisedItems: m,
1462
1487
  wrapperProps: C,
@@ -1464,13 +1489,13 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1464
1489
  BentoKeyboardNavigationKeyDownEvent: F,
1465
1490
  BentoListboxEvent: p,
1466
1491
  // Methods
1467
- onListboxContainerScroll: Y,
1492
+ onListboxContainerScroll: z,
1468
1493
  onOptionSelected: T,
1469
1494
  emitShowMore: O,
1470
1495
  listboxListeners: Oe
1471
1496
  };
1472
1497
  }
1473
- }), fs = ["id"], gs = {
1498
+ }), vs = ["id"], fs = {
1474
1499
  key: 0,
1475
1500
  class: "b-listbox__loading-filtered-items"
1476
1501
  }, ys = {
@@ -1483,9 +1508,9 @@ const ns = /* @__PURE__ */ H(ls, [["render", as], ["__scopeId", "data-v-237dfc58
1483
1508
  key: 3,
1484
1509
  class: "b-listbox__lazy-load"
1485
1510
  };
1486
- function Cs(e, t, o, s, r, n) {
1487
- const i = I("bento-loading-indicator"), g = I("bento-empty-state"), S = I("bento-typography"), a = I("bento-listbox-multi-select"), u = I("bento-listbox-single-select"), l = I("bento-loading-button"), m = ze("bento-keyboard-navigation-directive");
1488
- return ae((d(), y("div", w({
1511
+ function Cs(e, t, o, s, i, r) {
1512
+ const a = _("bento-loading-indicator"), f = _("bento-empty-state"), S = _("bento-typography"), n = _("bento-listbox-multi-select"), u = _("bento-listbox-single-select"), l = _("bento-loading-button"), m = Ue("bento-keyboard-navigation-directive");
1513
+ return ne((d(), y("div", w({
1489
1514
  id: e.id,
1490
1515
  ref: "listboxRef",
1491
1516
  class: "b-listbox",
@@ -1496,10 +1521,10 @@ function Cs(e, t, o, s, r, n) {
1496
1521
  onScroll: t[0] || (t[0] = (...C) => e.onListboxContainerScroll && e.onListboxContainerScroll(...C))
1497
1522
  }), [
1498
1523
  G("div", oe(me(e.wrapperProps)), [
1499
- e.componentLoading ? (d(), y("div", gs, [
1500
- M(i)
1524
+ e.componentLoading ? (d(), y("div", fs, [
1525
+ N(a)
1501
1526
  ])) : e.isSearchResultEmpty ? (d(), y("div", ys, [
1502
- e.emptyState ? (d(), k(g, oe(w({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (d(), k(S, {
1527
+ e.emptyState ? (d(), A(f, oe(w({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (d(), A(S, {
1503
1528
  key: 1,
1504
1529
  el: "span"
1505
1530
  }, {
@@ -1509,7 +1534,7 @@ function Cs(e, t, o, s, r, n) {
1509
1534
  _: 1
1510
1535
  }))
1511
1536
  ])) : (d(), y(te, { key: 2 }, [
1512
- e.multiple ? (d(), k(a, w({
1537
+ e.multiple ? (d(), A(n, w({
1513
1538
  key: 0,
1514
1539
  ref: "listboxItemRef",
1515
1540
  "has-more-items": e.hasMoreItems
@@ -1520,14 +1545,14 @@ function Cs(e, t, o, s, r, n) {
1520
1545
  "selected-values": e.selectedValue,
1521
1546
  searching: e.searching,
1522
1547
  "is-option-disabled": e.isOptionDisabled
1523
- }, ee(e.listboxListeners)), ve({ _: 2 }, [
1548
+ }, ee(e.listboxListeners)), ge({ _: 2 }, [
1524
1549
  j(e.slots, (C, h) => ({
1525
1550
  name: h,
1526
1551
  fn: L((R) => [
1527
1552
  W(e.$slots, h, oe(me(R)), void 0, !0)
1528
1553
  ])
1529
1554
  }))
1530
- ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (d(), k(u, w({
1555
+ ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (d(), A(u, w({
1531
1556
  key: 1,
1532
1557
  ref: "listboxItemRef",
1533
1558
  items: e.virtualisedItems
@@ -1535,7 +1560,7 @@ function Cs(e, t, o, s, r, n) {
1535
1560
  "selected-value": e.selectedValue,
1536
1561
  "static-categories": e.staticCategories,
1537
1562
  "is-option-disabled": e.isOptionDisabled
1538
- }, ee(e.listboxListeners)), ve({ _: 2 }, [
1563
+ }, ee(e.listboxListeners)), ge({ _: 2 }, [
1539
1564
  j(e.slots, (C, h) => ({
1540
1565
  name: h,
1541
1566
  fn: L((R) => [
@@ -1544,7 +1569,7 @@ function Cs(e, t, o, s, r, n) {
1544
1569
  }))
1545
1570
  ]), 1040, ["items", "selected-value", "static-categories", "is-option-disabled"])),
1546
1571
  e.shouldDisplayShowMoreButton ? (d(), y("div", Ss, [
1547
- M(l, {
1572
+ N(l, {
1548
1573
  state: e.loadingButtonState,
1549
1574
  variant: "secondary",
1550
1575
  onClickCapture: e.emitShowMore
@@ -1555,77 +1580,78 @@ function Cs(e, t, o, s, r, n) {
1555
1580
  _: 1
1556
1581
  }, 8, ["state", "onClickCapture"])
1557
1582
  ])) : e.loading ? (d(), y("div", hs, [
1558
- M(i)
1583
+ N(a)
1559
1584
  ])) : q("", !0)
1560
1585
  ], 64))
1561
1586
  ], 16)
1562
- ], 16, fs)), [
1587
+ ], 16, vs)), [
1563
1588
  [m]
1564
1589
  ]);
1565
1590
  }
1566
- const Vs = /* @__PURE__ */ H(vs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa"]]), Le = (e, t) => {
1591
+ const xs = /* @__PURE__ */ H(gs, [["render", Cs], ["__scopeId", "data-v-ef1c27fa"]]), Ie = (e, t) => {
1567
1592
  for (const o of e) {
1568
1593
  if (o.value === t)
1569
1594
  return o;
1570
1595
  if (o.items) {
1571
- const s = Le(o.items, t);
1596
+ const s = Ie(o.items, t);
1572
1597
  if (s)
1573
1598
  return s;
1574
1599
  }
1575
1600
  }
1576
1601
  return null;
1577
- }, Es = (e) => typeof e == "object" && e !== null && "value" in e && "label" in e, Ys = (e, t, o, s) => {
1578
- const r = _([]), n = _(), i = (u) => {
1579
- o.value ? n.value = u.map(({ value: l }) => l) : n.value = u.length > 0 ? u[0].value : null;
1580
- }, g = (u) => {
1581
- o.value ? n.value = u.map(({ value: l, label: m }) => ({ value: l, label: m })) : n.value = u.length > 0 ? { value: u[0].value, label: u[0].label } : null;
1602
+ }, Es = (e) => typeof e == "object" && e !== null && "value" in e && "label" in e, Vs = (e, t, o, s) => {
1603
+ const i = I([]), r = I(), a = (u) => {
1604
+ o.value ? r.value = u.map(({ value: l }) => l) : r.value = u.length > 0 ? u[0].value : null;
1605
+ }, f = (u) => {
1606
+ o.value ? r.value = u.map(({ value: l, label: m }) => ({ value: l, label: m })) : r.value = u.length > 0 ? { value: u[0].value, label: u[0].label } : null;
1582
1607
  }, S = (u) => {
1583
- r.value = u, s?.value ? g(u) : i(u);
1584
- }, a = () => {
1585
- r.value = [], n.value = null;
1608
+ i.value = u, s?.value ? f(u) : a(u);
1609
+ }, n = () => {
1610
+ i.value = [], r.value = null;
1586
1611
  };
1587
- return ge(
1612
+ return fe(
1588
1613
  () => t.value,
1589
1614
  () => {
1590
1615
  if (!t.value && t.value !== 0) {
1591
- a();
1616
+ n();
1592
1617
  return;
1593
1618
  }
1594
- const u = !Array.isArray(t.value), l = [...r.value];
1595
- a();
1619
+ const u = !Array.isArray(t.value), l = [...i.value];
1620
+ n();
1596
1621
  const m = (C) => {
1597
1622
  if (Es(C))
1598
- r.value.push(C);
1623
+ i.value.push(C);
1599
1624
  else {
1600
- let h = Le(e.value, C);
1601
- h || (h = Le(l, C)), h || (h = { value: C, label: C.toString() }), r.value.push(h);
1625
+ let h = Ie(e.value, C);
1626
+ h || (h = Ie(l, C)), h || (h = { value: C, label: C.toString() }), i.value.push(h);
1602
1627
  }
1603
1628
  };
1604
1629
  if (u) {
1605
1630
  const C = t.value;
1606
- m(C), s?.value ? g(r.value) : i(r.value);
1631
+ m(C), s?.value ? f(i.value) : a(i.value);
1607
1632
  return;
1608
1633
  }
1609
- t.value.forEach(m), s?.value ? g(r.value) : i(r.value);
1634
+ t.value.forEach(m), s?.value ? f(i.value) : a(i.value);
1610
1635
  },
1611
1636
  { immediate: !0 }
1612
1637
  ), {
1613
1638
  // Values
1614
- cachedSelectedListboxOptions: r,
1615
- cachedListboxSelectedValues: n,
1639
+ cachedSelectedListboxOptions: i,
1640
+ cachedListboxSelectedValues: r,
1616
1641
  // Methods
1617
- resetCache: a,
1642
+ resetCache: n,
1618
1643
  setCachedValues: S
1619
1644
  };
1620
1645
  };
1621
1646
  export {
1622
1647
  p as B,
1623
- Nt as C,
1624
- Ie as D,
1648
+ Mt as C,
1649
+ Ae as D,
1625
1650
  le as a,
1626
- Vs as b,
1627
- rs as c,
1628
- We as d,
1629
- Ys as u
1651
+ xs as b,
1652
+ is as c,
1653
+ ms as d,
1654
+ We as e,
1655
+ Vs as u
1630
1656
  };
1631
- //# sourceMappingURL=use-cached-selected-values.ClEJRFAd.js.map
1657
+ //# sourceMappingURL=use-cached-selected-values.Bx8uuky9.js.map