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