@adyen/bento-vue2 1.61.0 → 1.62.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 (251) hide show
  1. package/dist/@types/index.d.ts +246 -159
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/currency.css +1 -1
  10. package/dist/assets/dashed-underline.css +1 -1
  11. package/dist/assets/data-grid.css +1 -1
  12. package/dist/assets/dialog-page.css +1 -1
  13. package/dist/assets/file-uploader.css +1 -1
  14. package/dist/assets/inspector.css +1 -1
  15. package/dist/assets/menu.css +1 -1
  16. package/dist/assets/modal-fullscreen.css +1 -1
  17. package/dist/assets/popover.css +1 -1
  18. package/dist/assets/sidepanel.css +1 -1
  19. package/dist/assets/tag.css +1 -1
  20. package/dist/assets/use-cached-selected-values.css +1 -1
  21. package/dist/button.js +3 -3
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +3 -3
  24. package/dist/chip.js +1 -1
  25. package/dist/chunks/{accordion-item.C4tyRMCt.js → accordion-item.D1t0oHlP.js} +2 -2
  26. package/dist/chunks/{accordion-item.C4tyRMCt.js.map → accordion-item.D1t0oHlP.js.map} +1 -1
  27. package/dist/chunks/{action-bar.Bgd_D2d9.js → action-bar.whU1em8H.js} +6 -6
  28. package/dist/chunks/{action-bar.Bgd_D2d9.js.map → action-bar.whU1em8H.js.map} +1 -1
  29. package/dist/chunks/{alert.C1QHvbmJ.js → alert.c1rhDDrU.js} +7 -7
  30. package/dist/chunks/{alert.C1QHvbmJ.js.map → alert.c1rhDDrU.js.map} +1 -1
  31. package/dist/chunks/{base-modal.BKjjZPZw.js → base-modal.3OptY7u_.js} +5 -5
  32. package/dist/chunks/{base-modal.BKjjZPZw.js.map → base-modal.3OptY7u_.js.map} +1 -1
  33. package/dist/chunks/{bin.DuebwJYu.js → bin.DLXkAVvw.js} +2 -2
  34. package/dist/chunks/{bin.DuebwJYu.js.map → bin.DLXkAVvw.js.map} +1 -1
  35. package/dist/chunks/{button-actions-with-menu.YN379eYi.js → button-actions-with-menu.RoaQFPKT.js} +4 -4
  36. package/dist/chunks/{button-actions-with-menu.YN379eYi.js.map → button-actions-with-menu.RoaQFPKT.js.map} +1 -1
  37. package/dist/chunks/{button-actions.CHZ2BT5_.js → button-actions._OIvTdKt.js} +4 -4
  38. package/dist/chunks/{button-actions.CHZ2BT5_.js.map → button-actions._OIvTdKt.js.map} +1 -1
  39. package/dist/chunks/{button.CvgJ_0_Z.js → button.hF-nD1Og.js} +2 -2
  40. package/dist/chunks/{button.CvgJ_0_Z.js.map → button.hF-nD1Og.js.map} +1 -1
  41. package/dist/chunks/{calendar.CjVkJzjc.js → calendar.DoOFNX-Z.js} +3 -3
  42. package/dist/chunks/{calendar.CjVkJzjc.js.map → calendar.DoOFNX-Z.js.map} +1 -1
  43. package/dist/chunks/{card.CcDdIUvd.js → card.Cu6MicVI.js} +3 -3
  44. package/dist/chunks/{card.CcDdIUvd.js.map → card.Cu6MicVI.js.map} +1 -1
  45. package/dist/chunks/{checkbox-group.CossCRls.js → checkbox-group.B0IGYf1q.js} +4 -4
  46. package/dist/chunks/{checkbox-group.CossCRls.js.map → checkbox-group.B0IGYf1q.js.map} +1 -1
  47. package/dist/chunks/{checkbox-input.Dr1GS2BZ.js → checkbox-input.B-4Rw5mp.js} +3 -3
  48. package/dist/chunks/{checkbox-input.Dr1GS2BZ.js.map → checkbox-input.B-4Rw5mp.js.map} +1 -1
  49. package/dist/chunks/{checkbox.DkDqMVeb.js → checkbox.DkCukYh0.js} +4 -4
  50. package/dist/chunks/{checkbox.DkDqMVeb.js.map → checkbox.DkCukYh0.js.map} +1 -1
  51. package/dist/chunks/{checkmark-circle-fill.DZBl7CeY.js → checkmark-circle-fill.BttTCjrM.js} +2 -2
  52. package/dist/chunks/{checkmark-circle-fill.DZBl7CeY.js.map → checkmark-circle-fill.BttTCjrM.js.map} +1 -1
  53. package/dist/chunks/{checkmark-small.C8T8ISN6.js → checkmark-small.DVDtD4HQ.js} +2 -2
  54. package/dist/chunks/{checkmark-small.C8T8ISN6.js.map → checkmark-small.DVDtD4HQ.js.map} +1 -1
  55. package/dist/chunks/{chevron-left.DOMTgGel.js → chevron-left.BS24hEFa.js} +3 -3
  56. package/dist/chunks/{chevron-left.DOMTgGel.js.map → chevron-left.BS24hEFa.js.map} +1 -1
  57. package/dist/chunks/{chevron-up.CSVyoaTy.js → chevron-up.CHK1E4p9.js} +3 -3
  58. package/dist/chunks/{chevron-up.CSVyoaTy.js.map → chevron-up.CHK1E4p9.js.map} +1 -1
  59. package/dist/chunks/{chip.bZEhHfIk.js → chip.OV0EWIP3.js} +2 -2
  60. package/dist/chunks/{chip.bZEhHfIk.js.map → chip.OV0EWIP3.js.map} +1 -1
  61. package/dist/chunks/{code-snippet.gRALClm3.js → code-snippet.n93oYvH4.js} +6 -6
  62. package/dist/chunks/{code-snippet.gRALClm3.js.map → code-snippet.n93oYvH4.js.map} +1 -1
  63. package/dist/chunks/{controls-group.C4CHrb6Y.js → controls-group.Dpe3TqAz.js} +2 -2
  64. package/dist/chunks/{controls-group.C4CHrb6Y.js.map → controls-group.Dpe3TqAz.js.map} +1 -1
  65. package/dist/chunks/{copy.qU5LvaNi.js → copy.Co1MMqtM.js} +3 -3
  66. package/dist/chunks/{copy.qU5LvaNi.js.map → copy.Co1MMqtM.js.map} +1 -1
  67. package/dist/chunks/{cross-circle-fill-small.YhLgeipP.js → cross-circle-fill-small.DfxDedRr.js} +2 -2
  68. package/dist/chunks/{cross-circle-fill-small.YhLgeipP.js.map → cross-circle-fill-small.DfxDedRr.js.map} +1 -1
  69. package/dist/chunks/{cross-circle-fill.Ra0-PIUo.js → cross-circle-fill.DTDtgLMf.js} +2 -2
  70. package/dist/chunks/{cross-circle-fill.Ra0-PIUo.js.map → cross-circle-fill.DTDtgLMf.js.map} +1 -1
  71. package/dist/chunks/{cross-small.CZqsjZDz.js → cross-small.CoQUe8SS.js} +2 -2
  72. package/dist/chunks/{cross-small.CZqsjZDz.js.map → cross-small.CoQUe8SS.js.map} +1 -1
  73. package/dist/chunks/{cross.CJ5EEL2c.js → cross.CC_B-vG-.js} +2 -2
  74. package/dist/chunks/{cross.CJ5EEL2c.js.map → cross.CC_B-vG-.js.map} +1 -1
  75. package/dist/chunks/currency.BM9OXTqe.js +96 -0
  76. package/dist/chunks/currency.BM9OXTqe.js.map +1 -0
  77. package/dist/chunks/{dashboard-section.Bn5RJCPR.js → dashboard-section.BEw-n-XQ.js} +3 -3
  78. package/dist/chunks/{dashboard-section.Bn5RJCPR.js.map → dashboard-section.BEw-n-XQ.js.map} +1 -1
  79. package/dist/chunks/{dashed-underline._q5UFPSC.js → dashed-underline.DD24UDCz.js} +13 -13
  80. package/dist/chunks/dashed-underline.DD24UDCz.js.map +1 -0
  81. package/dist/chunks/{data-grid-template.CrpwSZRE.js → data-grid-template.DGFmCUII.js} +4 -4
  82. package/dist/chunks/{data-grid-template.CrpwSZRE.js.map → data-grid-template.DGFmCUII.js.map} +1 -1
  83. package/dist/chunks/{data-grid.ZBzlPPcj.js → data-grid.BcGRXt9C.js} +1060 -979
  84. package/dist/chunks/data-grid.BcGRXt9C.js.map +1 -0
  85. package/dist/chunks/{date-picker.BOEKZKFp.js → date-picker.Dc_HdQnr.js} +5 -5
  86. package/dist/chunks/{date-picker.BOEKZKFp.js.map → date-picker.Dc_HdQnr.js.map} +1 -1
  87. package/dist/chunks/{date-range-picker.DMHCqAZA.js → date-range-picker.D6xJAHoB.js} +8 -8
  88. package/dist/chunks/{date-range-picker.DMHCqAZA.js.map → date-range-picker.D6xJAHoB.js.map} +1 -1
  89. package/dist/chunks/{dialog-page.CDV828kt.js → dialog-page.CLHZqQeU.js} +7 -7
  90. package/dist/chunks/{dialog-page.CDV828kt.js.map → dialog-page.CLHZqQeU.js.map} +1 -1
  91. package/dist/chunks/{dot.CnkXzRn3.js → dot.BW9SneIk.js} +2 -2
  92. package/dist/chunks/{dot.CnkXzRn3.js.map → dot.BW9SneIk.js.map} +1 -1
  93. package/dist/chunks/{dropdown-default-textbox.AUsF-RIc.js → dropdown-default-textbox.7PMxHqoa.js} +4 -4
  94. package/dist/chunks/{dropdown-default-textbox.AUsF-RIc.js.map → dropdown-default-textbox.7PMxHqoa.js.map} +1 -1
  95. package/dist/chunks/{dropdown-tag.CaEPpy4R.js → dropdown-tag.qKSu6xYY.js} +3 -3
  96. package/dist/chunks/{dropdown-tag.CaEPpy4R.js.map → dropdown-tag.qKSu6xYY.js.map} +1 -1
  97. package/dist/chunks/{dropdown.3c5SsPV1.js → dropdown.BNLPzKbr.js} +27 -27
  98. package/dist/chunks/{dropdown.3c5SsPV1.js.map → dropdown.BNLPzKbr.js.map} +1 -1
  99. package/dist/chunks/{empty-state.DXDb-S58.js → empty-state.mtXfb1BB.js} +2 -2
  100. package/dist/chunks/{empty-state.DXDb-S58.js.map → empty-state.mtXfb1BB.js.map} +1 -1
  101. package/dist/chunks/{error-message.BAE9B9-N.js → error-message.BeExHHgv.js} +3 -3
  102. package/dist/chunks/{error-message.BAE9B9-N.js.map → error-message.BeExHHgv.js.map} +1 -1
  103. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  104. package/dist/chunks/{expand.C263WARj.js → expand.Bbielaja.js} +2 -2
  105. package/dist/chunks/{expand.C263WARj.js.map → expand.Bbielaja.js.map} +1 -1
  106. package/dist/chunks/{file-uploader.ChDPu4V7.js → file-uploader.RYWR99Nq.js} +20 -20
  107. package/dist/chunks/{file-uploader.ChDPu4V7.js.map → file-uploader.RYWR99Nq.js.map} +1 -1
  108. package/dist/chunks/{filter-bar.BVRAteKx.js → filter-bar.TiqZofNt.js} +20 -20
  109. package/dist/chunks/{filter-bar.BVRAteKx.js.map → filter-bar.TiqZofNt.js.map} +1 -1
  110. package/dist/chunks/{fixed-scroller.DPiQh_o-.js → fixed-scroller.Ctz5dFqz.js} +3 -3
  111. package/dist/chunks/{fixed-scroller.DPiQh_o-.js.map → fixed-scroller.Ctz5dFqz.js.map} +1 -1
  112. package/dist/chunks/{footer-actions.B3pFu9GM.js → footer-actions.DyuSTjC5.js} +3 -3
  113. package/dist/chunks/{footer-actions.B3pFu9GM.js.map → footer-actions.DyuSTjC5.js.map} +1 -1
  114. package/dist/chunks/{form-layout-title.Ck5QqPkA.js → form-layout-title.CIynHgCF.js} +2 -2
  115. package/dist/chunks/{form-layout-title.Ck5QqPkA.js.map → form-layout-title.CIynHgCF.js.map} +1 -1
  116. package/dist/chunks/{header-with-views.BlEEUDWs.js → header-with-views.MFHmiIXb.js} +131 -131
  117. package/dist/chunks/{header-with-views.BlEEUDWs.js.map → header-with-views.MFHmiIXb.js.map} +1 -1
  118. package/dist/chunks/{header.BfxNBVCD.js → header.B1PrBQG0.js} +5 -5
  119. package/dist/chunks/{header.BfxNBVCD.js.map → header.B1PrBQG0.js.map} +1 -1
  120. package/dist/chunks/{info-icon-with-popover.B4Q8jmW7.js → info-icon-with-popover.COq40yTq.js} +3 -3
  121. package/dist/chunks/{info-icon-with-popover.B4Q8jmW7.js.map → info-icon-with-popover.COq40yTq.js.map} +1 -1
  122. package/dist/chunks/{info-icon.C1xOlhYj.js → info-icon.G8lKgclf.js} +2 -2
  123. package/dist/chunks/{info-icon.C1xOlhYj.js.map → info-icon.G8lKgclf.js.map} +1 -1
  124. package/dist/chunks/{info.4d_mJHvT.js → info.CszJ0kMi.js} +5 -5
  125. package/dist/chunks/{info.4d_mJHvT.js.map → info.CszJ0kMi.js.map} +1 -1
  126. package/dist/chunks/{input-field-password.Ciw4TWWq.js → input-field-password.BlX3Icgt.js} +8 -8
  127. package/dist/chunks/{input-field-password.Ciw4TWWq.js.map → input-field-password.BlX3Icgt.js.map} +1 -1
  128. package/dist/chunks/{input-field-phone-number.CRx64sme.js → input-field-phone-number.Ofvi2A48.js} +3 -3
  129. package/dist/chunks/{input-field-phone-number.CRx64sme.js.map → input-field-phone-number.Ofvi2A48.js.map} +1 -1
  130. package/dist/chunks/{input-field.DOnqD_Fx.js → input-field.Dck9dAeK.js} +3 -3
  131. package/dist/chunks/{input-field.DOnqD_Fx.js.map → input-field.Dck9dAeK.js.map} +1 -1
  132. package/dist/chunks/{inspector.tn1wr5hV.js → inspector.BI28vKQz.js} +4 -4
  133. package/dist/chunks/{inspector.tn1wr5hV.js.map → inspector.BI28vKQz.js.map} +1 -1
  134. package/dist/chunks/{link.D0P79Toh.js → link.CXy_LoFI.js} +5 -5
  135. package/dist/chunks/{link.D0P79Toh.js.map → link.CXy_LoFI.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.CczGPhWH.js → listbox-option-tag.EzSkn_lM.js} +2 -2
  137. package/dist/chunks/{listbox-option-tag.CczGPhWH.js.map → listbox-option-tag.EzSkn_lM.js.map} +1 -1
  138. package/dist/chunks/{menu.B_DCBdeN.js → menu.CTVbNfuo.js} +26 -26
  139. package/dist/chunks/{menu.B_DCBdeN.js.map → menu.CTVbNfuo.js.map} +1 -1
  140. package/dist/chunks/{modal-fullscreen.cBUMfJhU.js → modal-fullscreen.1OdCgyca.js} +5 -5
  141. package/dist/chunks/{modal-fullscreen.cBUMfJhU.js.map → modal-fullscreen.1OdCgyca.js.map} +1 -1
  142. package/dist/chunks/{modal.DWkmyvRc.js → modal.xY5aFhAO.js} +5 -5
  143. package/dist/chunks/{modal.DWkmyvRc.js.map → modal.xY5aFhAO.js.map} +1 -1
  144. package/dist/chunks/{pagination.pzY_1Qqp.js → pagination.BvhUFgsT.js} +7 -7
  145. package/dist/chunks/{pagination.pzY_1Qqp.js.map → pagination.BvhUFgsT.js.map} +1 -1
  146. package/dist/chunks/{popover.BN2VK6KG.js → popover.B05xkQ4e.js} +4 -4
  147. package/dist/chunks/{popover.BN2VK6KG.js.map → popover.B05xkQ4e.js.map} +1 -1
  148. package/dist/chunks/{promo-banner.Cua4uX1x.js → promo-banner.Bbc2U3S3.js} +2 -2
  149. package/dist/chunks/{promo-banner.Cua4uX1x.js.map → promo-banner.Bbc2U3S3.js.map} +1 -1
  150. package/dist/chunks/{radio-group.CzsbH4_F.js → radio-group.CRDMTTyM.js} +4 -4
  151. package/dist/chunks/{radio-group.CzsbH4_F.js.map → radio-group.CRDMTTyM.js.map} +1 -1
  152. package/dist/chunks/{refresh.Bc9FzGjJ.js → refresh.arF7jP-l.js} +2 -2
  153. package/dist/chunks/{refresh.Bc9FzGjJ.js.map → refresh.arF7jP-l.js.map} +1 -1
  154. package/dist/chunks/{rich-text-editor.BRlygI8q.js → rich-text-editor.BTJpOiYL.js} +5 -5
  155. package/dist/chunks/{rich-text-editor.BRlygI8q.js.map → rich-text-editor.BTJpOiYL.js.map} +1 -1
  156. package/dist/chunks/{search-bar.C10szx9Q.js → search-bar.Ch1dLZAb.js} +5 -5
  157. package/dist/chunks/{search-bar.C10szx9Q.js.map → search-bar.Ch1dLZAb.js.map} +1 -1
  158. package/dist/chunks/{search.DLtglc02.js → search.D53Ia3rC.js} +4 -4
  159. package/dist/chunks/{search.DLtglc02.js.map → search.D53Ia3rC.js.map} +1 -1
  160. package/dist/chunks/{secondary-nav.Bdxei6WP.js → secondary-nav.DBssP9fQ.js} +2 -2
  161. package/dist/chunks/{secondary-nav.Bdxei6WP.js.map → secondary-nav.DBssP9fQ.js.map} +1 -1
  162. package/dist/chunks/{selection-card-group.CnvREAh5.js → selection-card-group.CjFm-cAm.js} +4 -4
  163. package/dist/chunks/{selection-card-group.CnvREAh5.js.map → selection-card-group.CjFm-cAm.js.map} +1 -1
  164. package/dist/chunks/{show.e4LEpZKG.js → show.B_mKPF6I.js} +3 -3
  165. package/dist/chunks/{show.e4LEpZKG.js.map → show.B_mKPF6I.js.map} +1 -1
  166. package/dist/chunks/{sidepanel.X5Te2FiT.js → sidepanel.CI8fu1Q3.js} +5 -5
  167. package/dist/chunks/{sidepanel.X5Te2FiT.js.map → sidepanel.CI8fu1Q3.js.map} +1 -1
  168. package/dist/chunks/{step.CuOpi-Ye.js → step.dNTg2rtW.js} +3 -3
  169. package/dist/chunks/{step.CuOpi-Ye.js.map → step.dNTg2rtW.js.map} +1 -1
  170. package/dist/chunks/{structured-list-item.n5vrbuW9.js → structured-list-item.DKEwF8n7.js} +5 -5
  171. package/dist/chunks/{structured-list-item.n5vrbuW9.js.map → structured-list-item.DKEwF8n7.js.map} +1 -1
  172. package/dist/chunks/{summary-grid.types.D23lQ-e5.js → summary-grid.types.BgFtV5Qh.js} +5 -5
  173. package/dist/chunks/{summary-grid.types.D23lQ-e5.js.map → summary-grid.types.BgFtV5Qh.js.map} +1 -1
  174. package/dist/chunks/{tabs.DKehFLDL.js → tabs.zkTl2PQR.js} +2 -2
  175. package/dist/chunks/{tabs.DKehFLDL.js.map → tabs.zkTl2PQR.js.map} +1 -1
  176. package/dist/chunks/{tag.DDjyf2hd.js → tag.BaSi2GVV.js} +7 -7
  177. package/dist/chunks/{tag.DDjyf2hd.js.map → tag.BaSi2GVV.js.map} +1 -1
  178. package/dist/chunks/{textarea.D09495Nz.js → textarea.D7M7Jerq.js} +4 -4
  179. package/dist/chunks/{textarea.D09495Nz.js.map → textarea.D7M7Jerq.js.map} +1 -1
  180. package/dist/chunks/{timeline-item.DKPI-4iu.js → timeline-item.njO0X8KL.js} +8 -8
  181. package/dist/chunks/{timeline-item.DKPI-4iu.js.map → timeline-item.njO0X8KL.js.map} +1 -1
  182. package/dist/chunks/{toast.C_uVjJnK.js → toast.BOyeuS19.js} +3 -3
  183. package/dist/chunks/{toast.C_uVjJnK.js.map → toast.BOyeuS19.js.map} +1 -1
  184. package/dist/chunks/{toggle-button.COEDg5Ym.js → toggle-button.DEVVvpkw.js} +2 -2
  185. package/dist/chunks/{toggle-button.COEDg5Ym.js.map → toggle-button.DEVVvpkw.js.map} +1 -1
  186. package/dist/chunks/{toggle.Q52IIKfi.js → toggle.DyXL09-x.js} +2 -2
  187. package/dist/chunks/{toggle.Q52IIKfi.js.map → toggle.DyXL09-x.js.map} +1 -1
  188. package/dist/chunks/{tutorial.DgmK5EEo.js → tutorial.C9PYfB4z.js} +6 -6
  189. package/dist/chunks/{tutorial.DgmK5EEo.js.map → tutorial.C9PYfB4z.js.map} +1 -1
  190. package/dist/chunks/use-cached-selected-values.Da6xbfzO.js +1192 -0
  191. package/dist/chunks/use-cached-selected-values.Da6xbfzO.js.map +1 -0
  192. package/dist/chunks/{warning-filled.Cd0kVWwa.js → warning-filled.tWOyLUQT.js} +5 -5
  193. package/dist/chunks/{warning-filled.Cd0kVWwa.js.map → warning-filled.tWOyLUQT.js.map} +1 -1
  194. package/dist/code-snippet.js +1 -1
  195. package/dist/currency.js +1 -1
  196. package/dist/dashboard-template.js +1 -1
  197. package/dist/dashed-underline.js +1 -1
  198. package/dist/data-grid-template.js +1 -1
  199. package/dist/data-grid.js +6 -5
  200. package/dist/date-picker.js +2 -2
  201. package/dist/date-range-picker.js +2 -2
  202. package/dist/dropdown.js +4 -4
  203. package/dist/empty-state.js +1 -1
  204. package/dist/file-uploader.js +1 -1
  205. package/dist/filter-bar.js +1 -1
  206. package/dist/form-layout.js +1 -1
  207. package/dist/header-with-views.js +1 -1
  208. package/dist/header.js +1 -1
  209. package/dist/index.js +256 -255
  210. package/dist/info-icon.js +1 -1
  211. package/dist/input-field-password.js +1 -1
  212. package/dist/input-field-phone-number.js +1 -1
  213. package/dist/input-field.js +1 -1
  214. package/dist/inspector.js +1 -1
  215. package/dist/internal.js +11 -11
  216. package/dist/link.js +1 -1
  217. package/dist/menu.js +1 -1
  218. package/dist/modal-fullscreen.js +1 -1
  219. package/dist/modal.js +2 -2
  220. package/dist/pagination.js +1 -1
  221. package/dist/popover.js +1 -1
  222. package/dist/promo-banner.js +1 -1
  223. package/dist/radio-group.js +1 -1
  224. package/dist/rich-text-editor.js +1 -1
  225. package/dist/search-bar.js +2 -2
  226. package/dist/secondary-nav.js +1 -1
  227. package/dist/selection-card.js +1 -1
  228. package/dist/sidepanel.js +1 -1
  229. package/dist/stepper.js +1 -1
  230. package/dist/structured-list.js +1 -1
  231. package/dist/styles/bento-dark.css +3 -0
  232. package/dist/styles/bento-light.css +3 -0
  233. package/dist/styles/bento.css +3 -0
  234. package/dist/styles/legacy.css +3 -0
  235. package/dist/styles/styleguide.css +3 -0
  236. package/dist/summary-grid.js +1 -1
  237. package/dist/tabs.js +1 -1
  238. package/dist/tag.js +1 -1
  239. package/dist/textarea.js +1 -1
  240. package/dist/timeline.js +1 -1
  241. package/dist/toast.js +1 -1
  242. package/dist/toggle.js +1 -1
  243. package/dist/tutorial.js +1 -1
  244. package/dist/web-types.json +77 -1
  245. package/package.json +8 -8
  246. package/dist/chunks/currency.B1F9YOIx.js +0 -106
  247. package/dist/chunks/currency.B1F9YOIx.js.map +0 -1
  248. package/dist/chunks/dashed-underline._q5UFPSC.js.map +0 -1
  249. package/dist/chunks/data-grid.ZBzlPPcj.js.map +0 -1
  250. package/dist/chunks/use-cached-selected-values.C-umGJXi.js +0 -1183
  251. package/dist/chunks/use-cached-selected-values.C-umGJXi.js.map +0 -1
@@ -0,0 +1,1192 @@
1
+ import { computed as c, ref as A, onMounted as ye, onUnmounted as he, watch as K, defineComponent as P, toRef as F, useSlots as Se } from "vue";
2
+ import { B as z } from "./typography.J1v_SPG3.js";
3
+ import { B as xe } from "./loading-indicator.z8COalOc.js";
4
+ import { B as Ce } from "./empty-state.mtXfb1BB.js";
5
+ import { u as J } from "./i18n.BQkEbtPM.js";
6
+ import { d as Ee } from "./debounce.DUTu11PS.js";
7
+ import "./index.Cl4_42j5.js";
8
+ import { B as Z } from "./checkbox.DkCukYh0.js";
9
+ import { B as Oe } from "./chip.OV0EWIP3.js";
10
+ import { C as Te, a as Ae } from "./chevron-up.CHK1E4p9.js";
11
+ import { B as D, a as Q } from "./keyboard-navigation.pB8weElW.js";
12
+ import { n as M } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
+ import { d as Le, e as ie } from "./button-actions._OIvTdKt.js";
14
+ /* empty css */
15
+ import { o as Ie } from "./resize.Bqks3WUm.js";
16
+ import "../assets/use-cached-selected-values.css";
17
+ const ue = (s, e, t, l) => {
18
+ const o = c(
19
+ () => {
20
+ var b, S;
21
+ return !!((b = s.value) != null && b.length) && ((S = s.value) == null ? void 0 : S.length) === e.value.length;
22
+ }
23
+ ), n = c(() => {
24
+ var b;
25
+ return s.value == null || s.value.length === 0 ? !1 : ((b = s.value) == null ? void 0 : b.length) !== e.value.length;
26
+ });
27
+ return {
28
+ isAllSelected: o,
29
+ isIndeterminate: n,
30
+ toggleSelectAll: (b) => {
31
+ b ? t() : l();
32
+ }
33
+ };
34
+ };
35
+ function Re(s, { disabled: e, itemHeight: t, overscan: l = 5, prefixHeight: o }) {
36
+ const n = A(null), d = A([]), b = A(0), S = A(0), i = A(0);
37
+ let r;
38
+ const y = c(() => {
39
+ const v = typeof t == "number" ? s.value.length * t : s.value.reduce((L, T, E) => L + t(E), 0), x = typeof t == "number" ? b.value * t : s.value.slice(0, b.value).reduce((L, T, E) => L + t(E), 0);
40
+ return {
41
+ style: {
42
+ marginTop: `${x}px`,
43
+ height: `${v - x}px`
44
+ }
45
+ };
46
+ }), O = () => {
47
+ const v = (o == null ? void 0 : o.value) ?? 0, x = Math.max(n.value.scrollTop - v, 0);
48
+ if (typeof t == "number")
49
+ return Math.floor(x / t);
50
+ let L = 0, T = 0;
51
+ for (let E = 0; E < s.value.length; E += 1) {
52
+ const C = t(E);
53
+ if (L += C, L >= x) {
54
+ T = E;
55
+ break;
56
+ }
57
+ }
58
+ return T;
59
+ }, p = () => {
60
+ if (i.value = n.value.clientHeight, typeof t == "number")
61
+ return Math.ceil(i.value / t);
62
+ const v = b.value ?? 0;
63
+ let x = 0, L = 0;
64
+ for (let T = v; T < s.value.length; T += 1) {
65
+ const E = t(T);
66
+ if (x += E, L = T, x > i.value)
67
+ break;
68
+ }
69
+ return L - v;
70
+ }, u = () => {
71
+ if (n.value) {
72
+ const v = p();
73
+ b.value = O(), S.value = Math.min(b.value + v + l, s.value.length), d.value = s.value.slice(b.value, S.value);
74
+ }
75
+ }, I = () => {
76
+ u();
77
+ };
78
+ e || (ye(() => {
79
+ n.value && (i.value = n.value.clientHeight, r = Ie(n.value, ({ clientHeight: v }) => {
80
+ i.value = v, u();
81
+ }), u());
82
+ }), he(() => {
83
+ r == null || r.disconnect();
84
+ }), K(
85
+ () => s.value,
86
+ () => {
87
+ u();
88
+ }
89
+ ));
90
+ const B = {
91
+ ref: n,
92
+ style: { overflowY: "auto" }
93
+ };
94
+ return e ? {
95
+ containerRef: n,
96
+ containerProps: B,
97
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
98
+ onScroll: () => {
99
+ },
100
+ list: s
101
+ } : {
102
+ containerRef: n,
103
+ containerProps: B,
104
+ onScroll: I,
105
+ list: d,
106
+ wrapperProps: y
107
+ };
108
+ }
109
+ var a = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.SHOW_MORE = "show-more", s.ESCAPE = "escape-pressed", s.CLICK = "click", s.ENTER = "enter-pressed", s.SPACE = "space-pressed", s.TAB = "tab-pressed", s.CLOSE_DROPDOWN = "close-dropdown", s))(a || {}), U = /* @__PURE__ */ ((s) => (s.AUTOMATIC = "automatic", s.BUTTON = "button", s.NONE = "none", s))(U || {});
110
+ const ke = P({
111
+ name: "bento-listbox-static-category",
112
+ components: {
113
+ BentoTypography: z
114
+ },
115
+ props: {
116
+ /**
117
+ * Category label text
118
+ */
119
+ categoryLabel: {
120
+ type: String,
121
+ required: !0
122
+ }
123
+ }
124
+ });
125
+ var Be = function() {
126
+ var e = this, t = e._self._c;
127
+ return e._self._setupProxy, t("div", { staticClass: "b-listbox-single-select-category" }, [t("bento-typography", { staticClass: "b-listbox-single-select-category__label-text", attrs: { variant: "caption", el: "span" } }, [e._v(" " + e._s(e.categoryLabel) + " ")]), t("div", [e._t("default")], 2)], 1);
128
+ }, De = [], Ne = /* @__PURE__ */ M(
129
+ ke,
130
+ Be,
131
+ De,
132
+ !1,
133
+ null,
134
+ "4aa8cc6e"
135
+ );
136
+ const Me = Ne.exports, $e = P({
137
+ name: "bento-listbox-option",
138
+ props: {
139
+ /**
140
+ * Setting this property to true will disable the option.
141
+ */
142
+ disabled: { type: Boolean, default: !1 },
143
+ /**
144
+ * Indicates if the value is selected. Only one element can be selected at a time.
145
+ */
146
+ selected: { type: Boolean, default: !1 }
147
+ },
148
+ emits: [a.CLICK, a.ENTER, a.SPACE, a.TAB],
149
+ setup(s, { emit: e }) {
150
+ const t = c(() => ({
151
+ "b-listbox-option--disabled": s.disabled,
152
+ "b-listbox-option--selected": s.selected
153
+ }));
154
+ return {
155
+ // Enums
156
+ BentoKeyboardNavigationKeyDownEvent: D,
157
+ BentoListboxEvent: a,
158
+ // Values
159
+ conditionalClasses: t,
160
+ // Events
161
+ onClick: (n) => {
162
+ e(a.CLICK, n);
163
+ },
164
+ onOptionSelected: (n, d) => {
165
+ e(n, d);
166
+ }
167
+ };
168
+ }
169
+ });
170
+ var we = function() {
171
+ var e = this, t = e._self._c;
172
+ return e._self._setupProxy, t("div", e._b({ staticClass: "b-listbox-option", class: e.conditionalClasses, attrs: { role: "option" }, on: { click: e.onClick, keydown: [function(l) {
173
+ return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onOptionSelected(e.BentoListboxEvent.ENTER, l);
174
+ }, function(l) {
175
+ return !l.type.indexOf("key") && e._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onOptionSelected(e.BentoListboxEvent.SPACE, l);
176
+ }, function(l) {
177
+ return !l.type.indexOf("key") && e._k(l.keyCode, "tab", 9, l.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, l);
178
+ }] } }, "div", e.$attrs, !1), [e._t("default")], 2);
179
+ }, Pe = [], Fe = /* @__PURE__ */ M(
180
+ $e,
181
+ we,
182
+ Pe,
183
+ !1,
184
+ null,
185
+ "a1e9ebff"
186
+ );
187
+ const q = Fe.exports;
188
+ let ce = 0;
189
+ const Ge = {
190
+ beforeCreate() {
191
+ this.uuid = ce.toString(), ce += 1;
192
+ }
193
+ };
194
+ var Ue = function() {
195
+ var e = this, t = e._self._c;
196
+ return t("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#001222", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
197
+ }, ze = [], Ye = /* @__PURE__ */ M(
198
+ Ge,
199
+ Ue,
200
+ ze,
201
+ !1,
202
+ null,
203
+ null
204
+ );
205
+ const We = Ye.exports, Ke = P({
206
+ name: "bento-listbox-single-select-option",
207
+ components: {
208
+ BentoListboxOption: q,
209
+ BentoTypography: z,
210
+ CheckmarkIcon: We
211
+ },
212
+ props: {
213
+ /**
214
+ * Setting this property to true will disable the option.
215
+ */
216
+ disabled: { type: Boolean, default: !1 },
217
+ /**
218
+ * The option item that contains all the option item's data.
219
+ * @type {BentoListboxOptionItem}
220
+ */
221
+ option: {
222
+ type: Object,
223
+ required: !0
224
+ },
225
+ /**
226
+ * Indicates if the value is selected. Only one element can be selected at a time.
227
+ */
228
+ selected: { type: Boolean, default: !1 }
229
+ },
230
+ emits: [a.ENTER, a.SELECT, a.SPACE, a.TAB],
231
+ setup(s, { emit: e }) {
232
+ const t = (d) => {
233
+ s.disabled || e(d, s.option);
234
+ }, l = c(() => s.disabled ? !0 : null), o = c(() => s.selected ? !0 : null), n = c(() => s.disabled ? -1 : 0);
235
+ return {
236
+ // Values
237
+ ariaDisabled: l,
238
+ ariaSelected: o,
239
+ tabIndex: n,
240
+ // Enums
241
+ BentoListboxEvent: a,
242
+ // Events
243
+ onOptionSelected: t
244
+ };
245
+ }
246
+ });
247
+ var qe = function() {
248
+ var e = this, t = e._self._c;
249
+ return e._self._setupProxy, t("bento-listbox-option", { staticClass: "b-listbox-single-select-option", attrs: { disabled: e.disabled, selected: e.selected, "aria-selected": e.ariaSelected, "aria-disabled": e.ariaDisabled, tabindex: e.tabIndex }, on: { click: function(l) {
250
+ return e.onOptionSelected(e.BentoListboxEvent.SELECT);
251
+ }, "enter-pressed": function(l) {
252
+ return e.onOptionSelected(e.BentoListboxEvent.ENTER);
253
+ }, "space-pressed": function(l) {
254
+ return l.preventDefault(), e.onOptionSelected(e.BentoListboxEvent.SPACE);
255
+ }, "tab-pressed": function(l) {
256
+ return e.onOptionSelected(e.BentoListboxEvent.TAB);
257
+ } } }, [e._t("default", function() {
258
+ return [t("span", { staticClass: "b-listbox-single-select-option__text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.option.label))]), e.option.description ? t("bento-typography", { staticClass: "b-listbox-single-select-option__description", attrs: { el: "span" } }, [e._v(" " + e._s(e.option.description) + " ")]) : e._e()], 1)];
259
+ }, null, e.option), t("span", { staticClass: "b-listbox-single-select-option__check-icon" }, [t("checkmark-icon", { directives: [{ name: "show", rawName: "v-show", value: e.selected, expression: "selected" }], attrs: { "svg-title": "selected" } })], 1)], 2);
260
+ }, je = [], He = /* @__PURE__ */ M(
261
+ Ke,
262
+ qe,
263
+ je,
264
+ !1,
265
+ null,
266
+ "5a5ff36a"
267
+ );
268
+ const Xe = He.exports, de = ({ items: s, hasStaticCategories: e }, t) => {
269
+ const l = c(
270
+ () => e.value ? s.value.flatMap((u) => u.items) : s.value
271
+ ), o = c(() => l.value.length - 1), n = A(0), d = (u) => {
272
+ switch (u) {
273
+ case "increase":
274
+ n.value += 1;
275
+ break;
276
+ case "decrease":
277
+ n.value -= 1;
278
+ break;
279
+ }
280
+ }, b = ({ edgeCaseItem: u }, I) => {
281
+ n.value !== u && (d(I), t(n.value));
282
+ }, S = (u) => {
283
+ p(u), b(
284
+ {
285
+ edgeCaseItem: o.value
286
+ },
287
+ "increase"
288
+ /* INCREASE */
289
+ );
290
+ }, i = (u) => {
291
+ p(u), b(
292
+ {
293
+ edgeCaseItem: 0
294
+ },
295
+ "decrease"
296
+ /* DECREASE */
297
+ );
298
+ }, r = () => {
299
+ n.value = 0, t(n.value);
300
+ }, y = () => {
301
+ n.value = o.value, t(n.value);
302
+ }, O = (u) => {
303
+ n.value = u;
304
+ }, p = (u) => {
305
+ var I;
306
+ (I = u == null ? void 0 : u.detail) == null || I.preventDefault();
307
+ };
308
+ return {
309
+ moveToFirstElement: r,
310
+ moveToLastElement: y,
311
+ moveToNextElement: S,
312
+ moveToPreviousElement: i,
313
+ setListboxFocusedIndex: O,
314
+ preventDefault: p,
315
+ focusedIndex: n
316
+ };
317
+ }, Ve = P({
318
+ name: "bento-listbox-single-select",
319
+ components: {
320
+ BentoListboxSingleSelectCategory: Me,
321
+ BentoListboxSingleSelectOption: Xe
322
+ },
323
+ directives: { BentoKeyboardNavigationDirective: Q },
324
+ inheritAttrs: !1,
325
+ props: {
326
+ /**
327
+ * Function that allows the options to be disabled
328
+ *
329
+ * @type {BentoListboxIsOptionDisabled}
330
+ * @param {BentoListboxOptionItem} option - listbox option object
331
+ * @param {string} option.label - Option's label text
332
+ * @param {string|number} option.value - Option's value
333
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
334
+ */
335
+ isOptionDisabled: {
336
+ type: Function,
337
+ default: () => !1
338
+ },
339
+ /**
340
+ * The option elements to populate the listbox with.
341
+ * It must be an array of {@see BentoListboxOptionItem }.
342
+ *
343
+ * @property {string} value.label - Text to be displayed in the option
344
+ * @property {string,number} value.value - Value of the option
345
+ */
346
+ items: {
347
+ type: Array,
348
+ required: !0
349
+ },
350
+ /**
351
+ * The `input` value.
352
+ * Providing an empty string will select no options.
353
+ * Set to an empty string `''` if you don't want any of the available options to be selected
354
+ */
355
+ selectedValue: {
356
+ type: Array,
357
+ default: void 0
358
+ },
359
+ /**
360
+ * If enabled, dropdown will display non-selectable, static categories
361
+ */
362
+ staticCategories: { type: Boolean, default: !1 }
363
+ },
364
+ emits: [a.SELECT, a.ENTER, a.SPACE, a.TAB],
365
+ setup(s, { emit: e, expose: t, slots: l }) {
366
+ const o = A(null), n = A([]), d = c(() => {
367
+ var v;
368
+ return !!((v = s.selectedValue) != null && v.length) && s.selectedValue.at(0);
369
+ }), b = c(() => !!s.items.some(({ items: v }) => !!v)), S = (v) => (x) => {
370
+ e(v, [x]);
371
+ }, i = (v) => {
372
+ var x;
373
+ (x = o.value.querySelectorAll('[role="option"]')[v]) == null || x.focus();
374
+ }, {
375
+ moveToNextElement: r,
376
+ moveToPreviousElement: y,
377
+ moveToFirstElement: O,
378
+ moveToLastElement: p,
379
+ setListboxFocusedIndex: u
380
+ } = de(
381
+ {
382
+ items: F(s, "items"),
383
+ hasStaticCategories: F(s, "staticCategories")
384
+ },
385
+ i
386
+ ), I = {
387
+ [D.ARROW_UP]: y,
388
+ [D.ARROW_DOWN]: r,
389
+ [D.HOME]: O,
390
+ [D.END]: p
391
+ }, B = {
392
+ [a.SELECT]: S(a.SELECT),
393
+ [a.SPACE]: S(a.SPACE),
394
+ [a.TAB]: S(a.TAB),
395
+ [a.ENTER]: S(a.ENTER)
396
+ };
397
+ return t({
398
+ /**
399
+ * Reference for a single listbox item.
400
+ * Required for keyboard navigation in dropdown as $children is removed in vue@3
401
+ */
402
+ listboxItemRef: n,
403
+ /**
404
+ * Method to set the index of the item to be focused on
405
+ * Used for focus management to be kept in-sync with parent e.g. dropdowns
406
+ */
407
+ setListboxFocusedIndex: u
408
+ }), {
409
+ // Enums
410
+ BentoListboxEvent: a,
411
+ // Values
412
+ listboxRef: o,
413
+ listboxItemRef: n,
414
+ selectedItem: d,
415
+ slots: l,
416
+ // Computed
417
+ hasCategories: b,
418
+ // Methods
419
+ onOptionSelected: S,
420
+ // Keyboard navigation
421
+ listboxListeners: I,
422
+ listboxOptionListeners: B
423
+ };
424
+ }
425
+ });
426
+ var Je = function() {
427
+ var e = this, t = e._self._c;
428
+ return e._self._setupProxy, t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef" }, e.listboxListeners), [e.hasCategories && e.staticCategories ? e._l(e.items, function(l) {
429
+ return t("bento-listbox-single-select-category", { key: l.value, attrs: { "category-label": l.label, role: "group" } }, e._l(l.items, function(o) {
430
+ return t("bento-listbox-single-select-option", e._g({ key: o.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: o, disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null, selected: o.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(n, d) {
431
+ return { key: d, fn: function(b) {
432
+ return [e._t(d, null, null, b)];
433
+ } };
434
+ })], null, !0) }, e.listboxOptionListeners));
435
+ }), 1);
436
+ }) : e._l(e.items, function(l) {
437
+ return t("bento-listbox-single-select-option", e._g({ key: l.value, ref: "listboxItemRef", refInFor: !0, attrs: { role: "option", option: l, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, selected: l.value === e.selectedItem.value }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
438
+ return { key: n, fn: function(d) {
439
+ return [e._t(n, null, null, d)];
440
+ } };
441
+ })], null, !0) }, e.listboxOptionListeners));
442
+ })], 2);
443
+ }, Ze = [], Qe = /* @__PURE__ */ M(
444
+ Ve,
445
+ Je,
446
+ Ze,
447
+ !1,
448
+ null,
449
+ null
450
+ );
451
+ const et = Qe.exports;
452
+ var X = /* @__PURE__ */ ((s) => (s.DISABLED = "disabled", s.STATIC_CATEGORY = "static-category", s))(X || {}), W = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.UNSELECT_CATEGORY = "unselect-category", s))(W || {});
453
+ const tt = {
454
+ "en-US": {
455
+ categoryClosed: "{category} closed",
456
+ categoryOpened: "{category} opened"
457
+ }
458
+ }, st = P({
459
+ i18n: { messages: tt },
460
+ name: "bento-listbox-multi-select-category",
461
+ components: {
462
+ BentoCheckbox: Z,
463
+ BentoTypography: z,
464
+ BentoListboxOption: q,
465
+ ChevronDownIcon: Ae,
466
+ ChevronUpIcon: Te
467
+ },
468
+ props: {
469
+ /**
470
+ * The option elements to populate the listbox with.
471
+ * It must be an array of {@see BentoListboxOptionItem }.
472
+ *
473
+ * @property {string} value.label - Text to be displayed in the option
474
+ * @property {string,number} value.value - Value of the option
475
+ * @property {BentoListboxOptionItem} value.items - Category items list
476
+ */
477
+ category: {
478
+ type: Object,
479
+ required: !0
480
+ },
481
+ /**
482
+ * Function that allows the options to be disabled
483
+ *
484
+ * @type {BentoListboxIsOptionDisabled}
485
+ * @param {BentoListboxOptionItem} option - listbox option object
486
+ * @param {string} option.label - Option's label text
487
+ * @param {string|number} option.value - Option's value
488
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
489
+ */
490
+ isOptionDisabled: {
491
+ type: [Function],
492
+ default: () => !1
493
+ },
494
+ /**
495
+ * The `input` value.
496
+ * Providing an empty array will select no options.
497
+ */
498
+ selectedItemsList: {
499
+ type: Array,
500
+ default: () => []
501
+ },
502
+ /**
503
+ * If enabled, dropdown will display non-selectable, static categories
504
+ */
505
+ staticCategories: { type: Boolean, default: !1 },
506
+ /**
507
+ * Category's tabindex
508
+ */
509
+ tabindex: { type: Number, default: -1 }
510
+ },
511
+ emits: [W.SELECT_CATEGORY, W.UNSELECT_CATEGORY],
512
+ setup(s, { emit: e }) {
513
+ const t = A(!1), { t: l } = J(), o = (C) => s.isOptionDisabled ? s.isOptionDisabled(C) : !1, n = c(
514
+ () => s.category.items.every((C) => o(C))
515
+ ), d = F(s, "staticCategories"), b = c(() => t.value || s.staticCategories), S = c(() => ({
516
+ [`b-listbox-multi-select-category--${X.DISABLED}`]: n.value,
517
+ [`b-listbox-multi-select-category--${X.STATIC_CATEGORY}`]: s.staticCategories
518
+ })), i = (C) => {
519
+ C.preventDefault(), t.value = !t.value;
520
+ }, r = (C) => {
521
+ var G;
522
+ const N = o(C), R = ((G = s.selectedItemsList) == null ? void 0 : G.includes(C.value)) || !1;
523
+ return { isDisabled: N, isPreSelected: R };
524
+ }, y = c(
525
+ () => s.category.items.filter((C) => {
526
+ const { isDisabled: N, isPreSelected: R } = r(C);
527
+ return N && R || !N;
528
+ })
529
+ ), O = c(
530
+ () => {
531
+ var C;
532
+ return (C = y.value) == null ? void 0 : C.filter(
533
+ ({ value: N }) => {
534
+ var R;
535
+ return (R = s.selectedItemsList) == null ? void 0 : R.includes(N);
536
+ }
537
+ );
538
+ }
539
+ ), p = c(() => {
540
+ const C = t.value ? "categoryOpened" : "categoryClosed";
541
+ return l(C, { category: s.category.label });
542
+ }), u = c(
543
+ () => ({
544
+ el: "span",
545
+ variant: s.staticCategories ? "caption" : "body"
546
+ })
547
+ ), I = () => {
548
+ e(W.SELECT_CATEGORY);
549
+ }, B = () => {
550
+ e(W.UNSELECT_CATEGORY);
551
+ }, { isAllSelected: v, isIndeterminate: x, toggleSelectAll: L } = ue(
552
+ O,
553
+ y,
554
+ I,
555
+ B
556
+ ), T = A(v.value), E = () => {
557
+ T.value = !T.value, L(T.value);
558
+ };
559
+ return K(v, () => {
560
+ T.value = v.value;
561
+ }), {
562
+ // Values
563
+ chevronTitle: p,
564
+ conditionalClass: S,
565
+ hasAllPropsDisabled: n,
566
+ isOpen: t,
567
+ isAllSelected: v,
568
+ isIndeterminate: x,
569
+ isStaticCategory: d,
570
+ // Computed
571
+ showItemChildren: b,
572
+ categoryLabelProps: u,
573
+ // Methods
574
+ handleSelectAll: E,
575
+ toggleOpen: i,
576
+ toggleSelectAll: L
577
+ };
578
+ }
579
+ });
580
+ var lt = function() {
581
+ var e = this, t = e._self._c;
582
+ return e._self._setupProxy, t("div", [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-category__option", class: e.conditionalClass, attrs: { tabindex: e.tabindex }, on: { click: e.handleSelectAll, "enter-pressed": e.handleSelectAll, "space-pressed": function(l) {
583
+ return l.preventDefault(), e.handleSelectAll.apply(null, arguments);
584
+ } } }, [e.isStaticCategory ? e._e() : t("bento-checkbox", { attrs: { "model-value": e.isAllSelected, indeterminate: e.isIndeterminate, disabled: e.hasAllPropsDisabled, "aria-label": e.category.label, value: e.category.value, tabindex: -1 } }), t("span", { staticClass: "b-listbox-multi-select-category__label" }, [t("bento-typography", e._b({ staticClass: "b-listbox-multi-select-category__label-text" }, "bento-typography", e.categoryLabelProps, !1), [e._v(" " + e._s(e.category.label) + " ")]), e.isStaticCategory ? e._e() : t("div", { staticClass: "b-listbox-multi-select-category__label-chevron", attrs: { "data-testid": "toggle-listbox" }, on: { "!click": function(l) {
585
+ return l.stopPropagation(), e.toggleOpen.apply(null, arguments);
586
+ } } }, [e.isOpen ? t("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : t("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), t("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
587
+ }, nt = [], ot = /* @__PURE__ */ M(
588
+ st,
589
+ lt,
590
+ nt,
591
+ !1,
592
+ null,
593
+ "5e190a4d"
594
+ );
595
+ const at = ot.exports;
596
+ var w = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "select-category", s.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", s.UNSELECT_CATEGORY = "unselect-category", s))(w || {});
597
+ const it = P({
598
+ name: "listbox-multi-select-options",
599
+ components: {
600
+ BentoCheckbox: Z,
601
+ BentoListboxOption: q,
602
+ BentoTypography: z,
603
+ ListboxMultiSelectCategory: at
604
+ },
605
+ props: {
606
+ /**
607
+ * Indicates if the items listed are inside a category
608
+ * so they can be padded to right by one level in recursion.
609
+ * Items of categories are automatically defined as "categoryItems"
610
+ */
611
+ categoryItems: { type: Boolean, default: !1 },
612
+ /**
613
+ * Current focused option index
614
+ */
615
+ focusedIndex: { type: Number, default: 0 },
616
+ /**
617
+ * Function that allows the options to be disabled
618
+ *
619
+ * @type {BentoListboxIsOptionDisabled}
620
+ * @param {BentoListboxOptionItem} option - listbox option object
621
+ * @param {string} option.label - Option's label text
622
+ * @param {string|number} option.value - Option's value
623
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
624
+ */
625
+ isOptionDisabled: {
626
+ type: Function,
627
+ default: () => !1
628
+ },
629
+ /**
630
+ * The option elements to populate the listbox with.
631
+ * It must be an array of {@see BentoListboxOptionItem }.
632
+ *
633
+ * @property {string} value.label - Text to be displayed in the option
634
+ * @property {string,number} value.value - Value of the option
635
+ */
636
+ items: {
637
+ type: Array,
638
+ required: !0
639
+ },
640
+ /**
641
+ * Indicates if the elements options are inside a multi-level category
642
+ */
643
+ isMultiLevel: { type: Boolean, default: !1 },
644
+ /**
645
+ * Flag that indicates that an external search it's being made
646
+ * to filter out the items inside the the multi-select listbox
647
+ *
648
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
649
+ */
650
+ searching: { type: Boolean, default: !1 },
651
+ /**
652
+ * List of selected items.
653
+ * Providing an empty array will select no options.
654
+ */
655
+ selectedItemsList: {
656
+ type: Array,
657
+ default: () => []
658
+ },
659
+ /**
660
+ * If enabled, dropdown will display non-selectable, static categories
661
+ */
662
+ staticCategories: { type: Boolean, default: !1 }
663
+ },
664
+ emits: [
665
+ w.TOGGLE_CHECKBOX_SELECTION,
666
+ w.SELECT_CATEGORY,
667
+ w.UNSELECT_CATEGORY
668
+ ],
669
+ setup(s, { emit: e }) {
670
+ const t = (i) => {
671
+ s.isOptionDisabled(i) || e(w.TOGGLE_CHECKBOX_SELECTION, i);
672
+ }, l = (i) => !!i.items, o = (i) => {
673
+ const r = s.isMultiLevel && s.searching;
674
+ return i.description && (!s.isMultiLevel || r);
675
+ }, n = (i) => i.items ? !!i.items.find((r) => s.selectedItemsList.includes(r.value)) : s.selectedItemsList.includes(i.value), d = (i) => {
676
+ if (l(i)) {
677
+ const r = n(i) ? w.UNSELECT_CATEGORY : w.SELECT_CATEGORY;
678
+ e(r, i);
679
+ } else
680
+ t(i);
681
+ };
682
+ return {
683
+ // Values
684
+ conditionalClasses: c(() => ({
685
+ "b-listbox-multi-select-options__static-category-option": s.staticCategories,
686
+ "b-listbox-multi-select-options__category-option": s.categoryItems
687
+ })),
688
+ // Methods
689
+ isOptionSelected: n,
690
+ shouldShowDescription: o,
691
+ toggleCheckboxSelection: t,
692
+ toggleSearchOption: d,
693
+ computedTabindex: (i) => i + 1 === s.focusedIndex ? 0 : -1,
694
+ // Enums
695
+ BentoListboxEvent: a,
696
+ ListboxMultiSelectOptionsEvent: w
697
+ };
698
+ }
699
+ });
700
+ var ct = function() {
701
+ var e = this, t = e._self._c;
702
+ return e._self._setupProxy, t("div", e._l(e.items, function(l, o) {
703
+ return t("div", { key: `selected-${l.value}` }, [e.searching && e.isMultiLevel ? [t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
704
+ return e.toggleSearchOption(l);
705
+ }, "enter-pressed": function(n) {
706
+ return e.toggleSearchOption(l);
707
+ }, "space-pressed": function(n) {
708
+ return n.preventDefault(), e.toggleSearchOption(l);
709
+ } } }, [t("bento-checkbox", { attrs: { "model-value": e.isOptionSelected(l), "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: "-1" } }), e._t("default", function() {
710
+ return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
711
+ }, null, l)], 2)] : [l.items ? [t("listbox-multi-select-category", { attrs: { category: l, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled, "selected-items-list": e.selectedItemsList, tabindex: e.computedTabindex(o) }, on: { "select-category": function(n) {
712
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, l);
713
+ }, "unselect-category": function(n) {
714
+ return e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, l);
715
+ } } }, [t("listbox-multi-select-options", { attrs: { "category-items": "", items: l.items, "is-option-disabled": e.isOptionDisabled, "focused-index": e.focusedIndex, "is-multi-level": e.isMultiLevel, "static-categories": e.staticCategories, "selected-items-list": e.selectedItemsList, searching: e.searching }, on: { "toggle-checkbox-selection": (n) => e.toggleCheckboxSelection(n) } })], 1)] : t("bento-listbox-option", { staticClass: "b-listbox-multi-select-options", class: e.conditionalClasses, attrs: { disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, tabindex: e.computedTabindex(o) }, on: { click: function(n) {
716
+ return e.toggleCheckboxSelection(l);
717
+ }, "enter-pressed": function(n) {
718
+ return e.toggleCheckboxSelection(l);
719
+ }, "space-pressed": function(n) {
720
+ return n.preventDefault(), e.toggleCheckboxSelection(l);
721
+ } } }, [t("bento-checkbox", { attrs: { "model-value": e.selectedItemsList, "aria-label": l.label, disabled: e.isOptionDisabled ? e.isOptionDisabled(l) : null, value: l.value, tabindex: -1 } }), e._t("default", function() {
722
+ return [t("span", { staticClass: "b-listbox-multi-select__option-text" }, [t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(l.label))]), e.shouldShowDescription(l) ? t("bento-typography", { staticClass: "b-listbox-multi-select__option-description", attrs: { el: "span" } }, [e._v(" " + e._s(l.description) + " ")]) : e._e()], 1)];
723
+ }, null, l)], 2)]], 2);
724
+ }), 0);
725
+ }, rt = [], ut = /* @__PURE__ */ M(
726
+ it,
727
+ ct,
728
+ rt,
729
+ !1,
730
+ null,
731
+ "e99d836e"
732
+ );
733
+ const dt = ut.exports, ft = (s) => {
734
+ const e = c(() => {
735
+ var l;
736
+ return !!((l = s.value) != null && l.find(({ items: o }) => !!o));
737
+ }), t = c(() => {
738
+ var l;
739
+ return e.value ? (l = s.value) == null ? void 0 : l.reduce((o, n) => (n.items ? o.push(...n.items.flat()) : o.push(n), o), []) : s.value;
740
+ });
741
+ return {
742
+ isMultiLevelSelect: e,
743
+ flattenedItemsList: t
744
+ };
745
+ }, vt = {
746
+ "en-US": {
747
+ allSelected: "All selected ({total})",
748
+ numberOfTotalSelected: "{number} of {total} selected",
749
+ numbersSelected: "{number} selected",
750
+ selectAll: "Select all ({total})"
751
+ }
752
+ }, bt = { i18n: { messages: vt } }, mt = /* @__PURE__ */ P({
753
+ ...bt,
754
+ __name: "listbox-multi-select",
755
+ props: {
756
+ hasMoreItems: { type: Boolean, default: !1 },
757
+ isOptionDisabled: { default: () => () => !1 },
758
+ items: null,
759
+ lazyLoadType: { default: "none" },
760
+ searching: { type: Boolean, default: !1 },
761
+ selectedValues: null,
762
+ staticCategories: { type: Boolean, default: !1 }
763
+ },
764
+ emits: ["select"],
765
+ setup(s, { emit: e }) {
766
+ const t = s, { t: l } = J(), o = Se(), n = A(null), d = A(null), b = A(null), S = A(null), i = c(() => t.selectedValues.map(({ value: f }) => f)), { isMultiLevelSelect: r, flattenedItemsList: y } = ft(F(t, "items")), O = (f) => {
767
+ var h;
768
+ const _ = t.isOptionDisabled(f), m = ((h = i.value) == null ? void 0 : h.includes(f.value)) || !1;
769
+ return { isDisabled: _, isPreSelected: m };
770
+ }, p = c(() => {
771
+ if (t.searching && r)
772
+ return t.items;
773
+ const f = y.value.filter((_) => {
774
+ const { isDisabled: m, isPreSelected: h } = O(_);
775
+ return m && h || !m;
776
+ });
777
+ return t.selectedValues.forEach((_) => {
778
+ f.find((m) => m.value === _.value) || f.push(_);
779
+ }), f;
780
+ }), u = c(
781
+ () => {
782
+ var f;
783
+ return (f = p.value) == null ? void 0 : f.filter((_) => {
784
+ var m;
785
+ return _.items && r.value && t.searching ? _.items.filter(
786
+ (g) => (t.selectedValues ?? []).includes(g.value)
787
+ ).length === _.items.length : (m = i.value) == null ? void 0 : m.includes(_.value);
788
+ });
789
+ }
790
+ ), I = () => r.value && !t.searching ? y.value.length : t.items.length, B = c(() => {
791
+ var h;
792
+ const f = p.value.length, _ = I(), m = ((h = u.value) == null ? void 0 : h.length) || 0;
793
+ return m === 0 ? l("selectAll", { total: f }) : m === _ ? l("allSelected", { total: _ }) : m <= _ ? l("numberOfTotalSelected", { number: m, total: _ }) : l("numbersSelected", { number: m });
794
+ }), v = (f) => {
795
+ const _ = (h) => {
796
+ const { isDisabled: g, isPreSelected: $ } = O(h);
797
+ return g && $ || !g;
798
+ }, m = f.filter(_).filter((h) => !i.value.includes(h.value));
799
+ e("select", [...t.selectedValues, ...m]);
800
+ }, x = (f) => {
801
+ const _ = (g) => {
802
+ const { isDisabled: $, isPreSelected: pe } = O(g);
803
+ return !($ && pe);
804
+ }, m = f.filter(_).map(({ value: g }) => g), h = t.selectedValues.filter((g) => !(m != null && m.includes(g.value)));
805
+ e("select", h);
806
+ }, L = () => {
807
+ v(y.value);
808
+ }, T = () => {
809
+ x(y.value);
810
+ }, { isAllSelected: E, isIndeterminate: C, toggleSelectAll: N } = ue(
811
+ u,
812
+ p,
813
+ L,
814
+ T
815
+ ), R = A(E.value), G = () => {
816
+ R.value = !R.value, N(R.value);
817
+ };
818
+ K(E, () => {
819
+ R.value = E.value;
820
+ });
821
+ const j = (f) => {
822
+ v(f.items);
823
+ }, k = (f) => {
824
+ x(f.items);
825
+ }, Y = (f, _) => {
826
+ let m = !1;
827
+ const h = t.selectedValues.filter(({ value: g }) => _.value === g ? (m = !0, !1) : !0);
828
+ m || h.push(_), e(f, h);
829
+ }, fe = c(() => {
830
+ if (!r.value)
831
+ return t.selectedValues;
832
+ const f = (g) => i.value.includes(g.value), _ = (g) => !t.staticCategories && g.every(($) => f($));
833
+ return t.items.flatMap(
834
+ (g) => g.items && !_(g.items) ? g.items : g
835
+ ).filter((g) => g.items ? !0 : f(g));
836
+ }), ve = c(() => {
837
+ var m, h, g, $;
838
+ const f = ["automatic", "button"].includes(t.lazyLoadType), _ = ((m = t.selectedValues) == null ? void 0 : m.length) > 0 && ((h = u.value) == null ? void 0 : h.length) !== ((g = y.value) == null ? void 0 : g.length);
839
+ return f && t.hasMoreItems ? !!(($ = t.selectedValues) != null && $.length) : _;
840
+ }), be = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), ee = c(() => ({ label: B, value: E })), te = c(() => [ee, ...F(t, "items").value]), se = (f) => {
841
+ var m;
842
+ (m = Array.from(
843
+ n.value.querySelectorAll('[role="option"]')
844
+ ).filter((h) => h.checkVisibility())[f]) == null || m.focus();
845
+ }, {
846
+ moveToNextElement: le,
847
+ moveToPreviousElement: ne,
848
+ moveToFirstElement: oe,
849
+ moveToLastElement: ae,
850
+ preventDefault: H,
851
+ focusedIndex: me
852
+ } = de(
853
+ {
854
+ items: A(te),
855
+ hasStaticCategories: F(t, "staticCategories")
856
+ },
857
+ se
858
+ ), _e = {
859
+ [D.ARROW_UP]: (f) => ne(f),
860
+ [D.ARROW_DOWN]: (f) => le(f),
861
+ [D.HOME]: oe,
862
+ [D.END]: ae
863
+ }, ge = {
864
+ [D.ARROW_UP]: H,
865
+ [D.ARROW_DOWN]: H
866
+ };
867
+ return { __sfc: !0, props: t, emit: e, t: l, slots: o, listboxRef: n, selectAllListboxItemsRef: d, selectedListboxItemsRef: b, listboxItemsRef: S, selectedItemsList: i, isMultiLevelSelect: r, flattenedItemsList: y, optionStates: O, enabledItems: p, visibleSelectedList: u, calculateTotalItems: I, selectAllCheckboxText: B, selectAll: v, unselectAll: x, selectAllItems: L, unselectAllItems: T, isAllSelected: E, isIndeterminate: C, toggleSelectAll: N, isSelectAllOn: R, handleSelectAll: G, selectAllCategory: j, unselectAllCategory: k, toggleCheckboxSelection: Y, selectedOptions: fe, showSelectedItems: ve, showSelectAllCheckbox: be, computedselectAllItemRefs: ee, computedItems: te, focusItem: se, moveToNextElement: le, moveToPreviousElement: ne, moveToFirstElement: oe, moveToLastElement: ae, preventDefault: H, focusedIndex: me, listboxListeners: _e, chipsSectionListeners: ge, BentoCheckbox: Z, BentoTypography: z, BentoChip: Oe, BentoListboxOption: q, ListboxMultiSelectOptions: dt, vBentoKeyboardNavigationDirective: Q, BentoListboxEvent: a };
868
+ }
869
+ });
870
+ var _t = function() {
871
+ var e = this, t = e._self._c, l = e._self._setupProxy;
872
+ return t("div", { ref: "listboxRef", staticClass: "b-listbox-multi-select" }, [l.showSelectedItems ? t("div", [t("ul", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-listbox-multi-select__chips" }, l.chipsSectionListeners), e._l(l.selectedOptions, function(o) {
873
+ return t("li", { key: o.value }, [t(l.BentoChip, { ref: "selectedListboxItemsRef", refInFor: !0, attrs: { disabled: e.isOptionDisabled(o), label: o.label, condensed: "" }, on: { click: function(n) {
874
+ o.items ? l.unselectAllCategory(o) : l.toggleCheckboxSelection("select", o);
875
+ } } })], 1);
876
+ }), 0), t("hr", { staticClass: "b-listbox-multi-select__divider" })]) : e._e(), t("div", e._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }] }, l.listboxListeners), [l.showSelectAllCheckbox ? t(l.BentoListboxOption, { ref: "selectAllListboxItemsRef", staticClass: "b-listbox-multi-select__option", attrs: { tabindex: l.focusedIndex === 0 ? 0 : -1 }, on: { click: l.handleSelectAll, "enter-pressed": l.handleSelectAll, "space-pressed": function(o) {
877
+ return o.preventDefault(), l.handleSelectAll.apply(null, arguments);
878
+ } } }, [t(l.BentoCheckbox, { attrs: { "aria-label": l.selectAllCheckboxText, "model-value": l.isAllSelected, indeterminate: l.isIndeterminate, tabindex: -1 } }), t(l.BentoTypography, { attrs: { el: "span", "aria-hidden": "true" } }, [e._v(" " + e._s(l.selectAllCheckboxText) + " ")])], 1) : e._e(), l.showSelectAllCheckbox ? t("hr", { staticClass: "b-listbox-multi-select__divider" }) : e._e(), t(l.ListboxMultiSelectOptions, { ref: "listboxItemsRef", attrs: { items: e.items, "is-option-disabled": e.isOptionDisabled, "is-multi-level": l.isMultiLevelSelect, "static-categories": e.staticCategories, searching: e.searching, "selected-items-list": l.selectedItemsList, "focused-index": l.focusedIndex }, on: { "toggle-checkbox-selection": function(o) {
879
+ return l.toggleCheckboxSelection("select", o);
880
+ }, "select-category": l.selectAllCategory, "unselect-category": l.unselectAllCategory, "space-pressed": function(o) {
881
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.SPACE, o);
882
+ }, "tab-pressed": function(o) {
883
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.TAB, o);
884
+ }, "enter-pressed": function(o) {
885
+ return l.toggleCheckboxSelection(l.BentoListboxEvent.ENTER, o);
886
+ } }, scopedSlots: e._u([e._l(l.slots, function(o, n) {
887
+ return { key: n, fn: function(d) {
888
+ return [e._t(n, null, null, d)];
889
+ } };
890
+ })], null, !0) })], 1)]);
891
+ }, gt = [], pt = /* @__PURE__ */ M(
892
+ mt,
893
+ _t,
894
+ gt,
895
+ !1,
896
+ null,
897
+ "a1c682be"
898
+ );
899
+ const re = pt.exports, yt = {
900
+ "en-US": {
901
+ loading: "Loading",
902
+ showMore: "Show more"
903
+ },
904
+ "ja-JP": {
905
+ loading: "読み込み中",
906
+ showMore: "表示内容を増やす"
907
+ },
908
+ "pt-BR": {
909
+ loading: "Carregando",
910
+ showMore: "Mostrar mais"
911
+ }
912
+ }, ht = 36, St = P({
913
+ name: "bento-listbox",
914
+ components: {
915
+ BentoEmptyState: Ce,
916
+ BentoListboxSingleSelect: et,
917
+ BentoListboxMultiSelect: re,
918
+ BentoTypography: z,
919
+ BentoLoadingIndicator: xe,
920
+ BentoLoadingButton: Le
921
+ },
922
+ directives: { BentoKeyboardNavigationDirective: Q },
923
+ i18n: { messages: yt },
924
+ props: {
925
+ /**
926
+ * Defines a string value that labels an interactive element.
927
+ */
928
+ ariaLabel: { type: String, default: null },
929
+ /**
930
+ * Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
931
+ */
932
+ emptyState: {
933
+ type: Object,
934
+ default: void 0
935
+ },
936
+ /**
937
+ * Indicates whether there are more items to load
938
+ */
939
+ hasMoreItems: { type: Boolean, default: !1 },
940
+ /**
941
+ * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
942
+ */
943
+ id: { type: String, required: !0 },
944
+ /**
945
+ * Function that allows the options to be disabled
946
+ *
947
+ * @type {BentoListboxIsOptionDisabled}
948
+ * @param {BentoListboxOptionItem} option - Listbox option object
949
+ * @param {string} option.label - Option's label text
950
+ * @param {string|number} option.value - Option's value
951
+ * @param {unknown} option.data - Option's extra data to be passed to the default slot
952
+ */
953
+ isOptionDisabled: {
954
+ type: Function,
955
+ default: () => {
956
+ }
957
+ },
958
+ /**
959
+ * The option elements to populate the listbox with.
960
+ * It must be an array of {@see BentoListboxOptionItem }
961
+ * * @property {string} value.label - Text to be displayed in the option
962
+ * * @property {string,number} value.value - Value of the option
963
+ */
964
+ items: {
965
+ type: Array,
966
+ required: !0
967
+ },
968
+ /**
969
+ * Indicates if new options are lazy loading.
970
+ */
971
+ loading: { type: Boolean, default: !1 },
972
+ /**
973
+ * The type of `Lazy Load`.
974
+ * Type "automatic" will enable infinite scrolling
975
+ * Type "button" will enable lazy loading with "Show more" button
976
+ */
977
+ lazyLoadType: {
978
+ type: String,
979
+ default: U.NONE,
980
+ validator: (s) => Object.values(U).includes(s)
981
+ },
982
+ /**
983
+ * Indicates the listbox is loading filtered items.
984
+ */
985
+ componentLoading: { type: Boolean, default: !1 },
986
+ /**
987
+ * If enabled, the user will be able to select multiple items.
988
+ */
989
+ multiple: { type: Boolean, default: !1 },
990
+ /**
991
+ * If enabled, dropdown will display non-selectable, static categories
992
+ */
993
+ staticCategories: { type: Boolean, default: !1 },
994
+ /**
995
+ * Messaged displayed when no items are listed in the listbox
996
+ */
997
+ noResultsMessage: { type: String, required: !0 },
998
+ /**
999
+ * Flag that indicates that an external search it's being made
1000
+ * to filter out the items inside the the multi-select listbox
1001
+ *
1002
+ * If enabled, hides the "Select all" checkbox in "multiple" mode.
1003
+ */
1004
+ searching: re.props.searching,
1005
+ /**
1006
+ * The `input` value.
1007
+ * Providing an empty string or empty array will select no options.
1008
+ * Set to an empty string `''` if you don't want any of the available options to be selected for single select
1009
+ */
1010
+ selectedValue: {
1011
+ type: Array,
1012
+ default: () => []
1013
+ },
1014
+ /**
1015
+ * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
1016
+ * The itemHeight function is used to calculate the height of rendered item given it's index.
1017
+ */
1018
+ virtualScroll: {
1019
+ type: [Boolean, Object],
1020
+ default: !1
1021
+ }
1022
+ },
1023
+ emits: [
1024
+ a.SELECT,
1025
+ a.SPACE,
1026
+ a.SHOW_MORE,
1027
+ a.ENTER,
1028
+ a.ESCAPE,
1029
+ a.TAB
1030
+ ],
1031
+ setup(s, { emit: e, slots: t }) {
1032
+ const l = A([]), o = F(s, "items"), { t: n } = J(), d = c(() => s.lazyLoadType !== U.AUTOMATIC), b = c(() => s.lazyLoadType === U.AUTOMATIC), S = () => {
1033
+ var k;
1034
+ return typeof (s == null ? void 0 : s.virtualScroll) == "object" && ((k = s == null ? void 0 : s.virtualScroll) != null && k.itemHeight) ? s.virtualScroll.itemHeight : ht;
1035
+ }, {
1036
+ containerRef: i,
1037
+ containerProps: r,
1038
+ onScroll: y,
1039
+ list: O,
1040
+ wrapperProps: p
1041
+ } = Re(o, {
1042
+ itemHeight: S(),
1043
+ // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1044
+ disabled: (s == null ? void 0 : s.multiple) || (s == null ? void 0 : s.virtualScroll) === !1 || (s == null ? void 0 : s.lazyLoadType) !== "none"
1045
+ }), u = c(
1046
+ () => s.componentLoading !== void 0 || d.value ? "true" : void 0
1047
+ ), I = c(
1048
+ () => d.value && s.loading || s.componentLoading ? "true" : "false"
1049
+ ), B = c(
1050
+ () => d.value || s.componentLoading !== void 0 ? "polite" : void 0
1051
+ ), v = (k) => (Y) => {
1052
+ e(k, Y);
1053
+ }, x = () => {
1054
+ e(a.SHOW_MORE);
1055
+ }, L = Ee(() => {
1056
+ const k = i.value;
1057
+ if (!k)
1058
+ return;
1059
+ const Y = Math.round(k.scrollTop) + k.clientHeight >= k.scrollHeight;
1060
+ s.hasMoreItems && Y && !s.loading && x();
1061
+ }), T = () => {
1062
+ b.value ? L() : y();
1063
+ }, E = c(() => {
1064
+ var k;
1065
+ return ((k = s.items) == null ? void 0 : k.length) === 0;
1066
+ }), C = c(
1067
+ () => s.lazyLoadType === U.BUTTON && s.hasMoreItems
1068
+ ), N = c(
1069
+ () => s.loading ? ie.LOADING : ie.START
1070
+ ), R = c(() => s.loading ? n("loading") : n("showMore")), G = c(() => ({
1071
+ ...s.emptyState,
1072
+ variant: "condensed"
1073
+ })), j = {
1074
+ [a.SELECT]: v(a.SELECT),
1075
+ [a.SPACE]: v(a.SPACE),
1076
+ [a.TAB]: v(a.TAB),
1077
+ [a.ENTER]: v(a.ENTER)
1078
+ };
1079
+ return {
1080
+ // Refs
1081
+ listboxRef: i,
1082
+ listboxItemRef: l,
1083
+ // a11y
1084
+ ariaAtomic: u,
1085
+ ariaBusy: I,
1086
+ ariaLive: B,
1087
+ // Values
1088
+ containerProps: r,
1089
+ isSearchResultEmpty: E,
1090
+ limitedEmptyStateProps: G,
1091
+ loadingButtonState: N,
1092
+ slots: t,
1093
+ shouldDisplayShowMoreButton: C,
1094
+ showMoreButtonText: R,
1095
+ virtualisedItems: O,
1096
+ wrapperProps: p,
1097
+ // Enums
1098
+ BentoKeyboardNavigationKeyDownEvent: D,
1099
+ BentoListboxEvent: a,
1100
+ // Methods
1101
+ onListboxContainerScroll: T,
1102
+ onOptionSelected: v,
1103
+ emitShowMore: x,
1104
+ listboxListeners: j
1105
+ };
1106
+ }
1107
+ });
1108
+ var xt = function() {
1109
+ var l;
1110
+ var e = this, t = e._self._c;
1111
+ return e._self._setupProxy, t("div", { directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], ref: "listboxRef", staticClass: "b-listbox", style: (l = e.containerProps) == null ? void 0 : l.style, attrs: { id: e.id, role: "listbox", tabindex: "-1", "aria-busy": e.ariaBusy, "aria-atomic": e.ariaAtomic, "aria-label": e.ariaLabel, "aria-live": e.ariaLive }, on: { scroll: e.onListboxContainerScroll } }, [t("div", e._b({}, "div", e.wrapperProps, !1), [e.componentLoading ? t("div", { staticClass: "b-listbox__loading-filtered-items" }, [t("bento-loading-indicator")], 1) : e.isSearchResultEmpty ? t("div", { staticClass: "b-listbox__empty-search-message" }, [e.emptyState ? t("bento-empty-state", e._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1)) : t("bento-typography", { attrs: { el: "span" } }, [e._v(e._s(e.noResultsMessage))])], 1) : [e.multiple ? [t("bento-listbox-multi-select", e._g({ ref: "listboxItemRef", attrs: { "has-more-items": e.hasMoreItems, items: e.items, "lazy-load-type": e.lazyLoadType, "static-categories": e.staticCategories, "selected-values": e.selectedValue, searching: e.searching, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
1112
+ return { key: n, fn: function(d) {
1113
+ return [e._t(n, null, null, d)];
1114
+ } };
1115
+ })], null, !0) }, e.listboxListeners))] : [t("bento-listbox-single-select", e._g({ ref: "listboxItemRef", attrs: { items: e.virtualisedItems, "selected-value": e.selectedValue, "static-categories": e.staticCategories, "is-option-disabled": e.isOptionDisabled }, scopedSlots: e._u([e._l(e.slots, function(o, n) {
1116
+ return { key: n, fn: function(d) {
1117
+ return [e._t(n, null, null, d)];
1118
+ } };
1119
+ })], null, !0) }, e.listboxListeners))], e.shouldDisplayShowMoreButton ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-button", { attrs: { state: e.loadingButtonState, variant: "secondary" }, on: { "!click": function(o) {
1120
+ return e.emitShowMore.apply(null, arguments);
1121
+ } } }, [e._v(" " + e._s(e.showMoreButtonText) + " ")])], 1) : e.loading ? t("div", { staticClass: "b-listbox__lazy-load" }, [t("bento-loading-indicator")], 1) : e._e()]], 2)]);
1122
+ }, Ct = [], Et = /* @__PURE__ */ M(
1123
+ St,
1124
+ xt,
1125
+ Ct,
1126
+ !1,
1127
+ null,
1128
+ "37a9ab16"
1129
+ );
1130
+ const Ut = Et.exports, V = (s, e) => {
1131
+ for (const t of s) {
1132
+ if (t.value === e)
1133
+ return t;
1134
+ if (t.items) {
1135
+ const l = V(t.items, e);
1136
+ if (l)
1137
+ return l;
1138
+ }
1139
+ }
1140
+ return null;
1141
+ }, Ot = (s) => typeof s == "object" && s !== null && "value" in s && "label" in s, zt = (s, e, t, l) => {
1142
+ const o = A([]), n = A(), d = (r) => {
1143
+ t.value ? n.value = r.map(({ value: y }) => y) : n.value = r.length > 0 ? r[0].value : null;
1144
+ }, b = (r) => {
1145
+ t.value ? n.value = r.map(({ value: y, label: O }) => ({ value: y, label: O })) : n.value = r.length > 0 ? { value: r[0].value, label: r[0].label } : null;
1146
+ }, S = (r) => {
1147
+ o.value = r, l != null && l.value ? b(r) : d(r);
1148
+ }, i = () => {
1149
+ o.value = [], n.value = null;
1150
+ };
1151
+ return K(
1152
+ [() => s.value, () => e.value],
1153
+ () => {
1154
+ if (!e.value && e.value !== 0) {
1155
+ i();
1156
+ return;
1157
+ }
1158
+ const r = !Array.isArray(e.value), y = [...o.value];
1159
+ i();
1160
+ const O = (p) => {
1161
+ if (Ot(p))
1162
+ o.value.push(p);
1163
+ else {
1164
+ let u = V(s.value, p);
1165
+ u || (u = V(y, p)), u || (u = { value: p, label: p.toString() }), o.value.push(u);
1166
+ }
1167
+ };
1168
+ if (r) {
1169
+ const p = e.value;
1170
+ O(p), l != null && l.value ? b(o.value) : d(o.value);
1171
+ return;
1172
+ }
1173
+ e.value.forEach(O), l != null && l.value ? b(o.value) : d(o.value);
1174
+ },
1175
+ { immediate: !0 }
1176
+ ), {
1177
+ // Values
1178
+ cachedSelectedListboxOptions: o,
1179
+ cachedListboxSelectedValues: n,
1180
+ // Methods
1181
+ resetCache: i,
1182
+ setCachedValues: S
1183
+ };
1184
+ };
1185
+ export {
1186
+ U as B,
1187
+ a,
1188
+ Ut as b,
1189
+ zt as c,
1190
+ ft as u
1191
+ };
1192
+ //# sourceMappingURL=use-cached-selected-values.Da6xbfzO.js.map