@adyen/bento-vue3 1.52.0 → 1.54.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 (236) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +2123 -2028
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/button-actions.css +1 -1
  8. package/dist/assets/calendar.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox.css +1 -1
  11. package/dist/assets/dashed-underline.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/dialog-page.css +1 -1
  14. package/dist/assets/dropdown.css +1 -1
  15. package/dist/assets/file-uploader.css +1 -1
  16. package/dist/assets/filter-bar.css +1 -1
  17. package/dist/assets/header-with-views.css +1 -0
  18. package/dist/assets/input-field-password.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/link.css +1 -1
  21. package/dist/assets/menu.css +1 -1
  22. package/dist/assets/modal-fullscreen.css +1 -1
  23. package/dist/assets/pagination.css +1 -1
  24. package/dist/assets/payment-method.css +1 -1
  25. package/dist/assets/popover.css +1 -1
  26. package/dist/assets/sidepanel.css +1 -1
  27. package/dist/assets/summary-grid.css +1 -0
  28. package/dist/assets/tabs.css +1 -1
  29. package/dist/assets/textarea.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chunks/{action-bar.eo5EXYmg.js → action-bar.CUDi5Po7.js} +5 -5
  35. package/dist/chunks/{action-bar.eo5EXYmg.js.map → action-bar.CUDi5Po7.js.map} +1 -1
  36. package/dist/chunks/{base-modal.BlC6TZNz.js → base-modal.BegK8cPb.js} +4 -4
  37. package/dist/chunks/{base-modal.BlC6TZNz.js.map → base-modal.BegK8cPb.js.map} +1 -1
  38. package/dist/chunks/bin.CA6UQCNZ.js +37 -0
  39. package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
  40. package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js → button-actions-with-menu.CcoKss9T.js} +5 -5
  41. package/dist/chunks/{button-actions-with-menu.DQaq1bkf.js.map → button-actions-with-menu.CcoKss9T.js.map} +1 -1
  42. package/dist/chunks/{button-actions.BvGAE7sw.js → button-actions.CdlXZ29B.js} +59 -117
  43. package/dist/chunks/{button-actions.BvGAE7sw.js.map → button-actions.CdlXZ29B.js.map} +1 -1
  44. package/dist/chunks/{calendar.D2X834TU.js → calendar.BRsV4rkQ.js} +72 -72
  45. package/dist/chunks/{calendar.D2X834TU.js.map → calendar.BRsV4rkQ.js.map} +1 -1
  46. package/dist/chunks/{card.IrL_Fw-f.js → card.C5bSqYsB.js} +2 -2
  47. package/dist/chunks/{card.IrL_Fw-f.js.map → card.C5bSqYsB.js.map} +1 -1
  48. package/dist/chunks/{checkbox-group.BVJfN48k.js → checkbox-group.EPDS2n3a.js} +4 -4
  49. package/dist/chunks/{checkbox-group.BVJfN48k.js.map → checkbox-group.EPDS2n3a.js.map} +1 -1
  50. package/dist/chunks/{checkbox.erdZ58Kk.js → checkbox.Z2Jeglk-.js} +75 -68
  51. package/dist/chunks/checkbox.Z2Jeglk-.js.map +1 -0
  52. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  53. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  54. package/dist/chunks/{code-snippet.Bb4_r0C8.js → code-snippet.zdidL9RT.js} +5 -5
  55. package/dist/chunks/{code-snippet.Bb4_r0C8.js.map → code-snippet.zdidL9RT.js.map} +1 -1
  56. package/dist/chunks/{controls-group.BaDhGB9H.js → controls-group.DcbOWqxA.js} +2 -2
  57. package/dist/chunks/{controls-group.BaDhGB9H.js.map → controls-group.DcbOWqxA.js.map} +1 -1
  58. package/dist/chunks/{copy.gmSTAqHY.js → copy.CFhrpASp.js} +2 -2
  59. package/dist/chunks/{copy.gmSTAqHY.js.map → copy.CFhrpASp.js.map} +1 -1
  60. package/dist/chunks/{dashboard-section.MAHmbUDG.js → dashboard-section.DpL72ax7.js} +4 -4
  61. package/dist/chunks/{dashboard-section.MAHmbUDG.js.map → dashboard-section.DpL72ax7.js.map} +1 -1
  62. package/dist/chunks/{dashed-underline.DY8xR9GH.js → dashed-underline.BYAXhfnX.js} +11 -11
  63. package/dist/chunks/{dashed-underline.DY8xR9GH.js.map → dashed-underline.BYAXhfnX.js.map} +1 -1
  64. package/dist/chunks/{data-grid-template.Dievz913.js → data-grid-template.CJxPIu3E.js} +3 -3
  65. package/dist/chunks/{data-grid-template.Dievz913.js.map → data-grid-template.CJxPIu3E.js.map} +1 -1
  66. package/dist/chunks/{data-grid.KZqjmRvk.js → data-grid.i-NPmpso.js} +32 -20
  67. package/dist/chunks/data-grid.i-NPmpso.js.map +1 -0
  68. package/dist/chunks/{date-picker.BWJYkSmo.js → date-picker.wesQox8h.js} +5 -5
  69. package/dist/chunks/{date-picker.BWJYkSmo.js.map → date-picker.wesQox8h.js.map} +1 -1
  70. package/dist/chunks/{date-range-picker.1Vbf9Zk8.js → date-range-picker.V6QCtfnc.js} +9 -9
  71. package/dist/chunks/{date-range-picker.1Vbf9Zk8.js.map → date-range-picker.V6QCtfnc.js.map} +1 -1
  72. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  73. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  74. package/dist/chunks/{dropdown-tag.C9nM0YHC.js → dropdown-tag.D8wU10wx.js} +4 -4
  75. package/dist/chunks/{dropdown-tag.C9nM0YHC.js.map → dropdown-tag.D8wU10wx.js.map} +1 -1
  76. package/dist/chunks/{dropdown.qw5oXFYs.js → dropdown.DQunMieR.js} +203 -194
  77. package/dist/chunks/dropdown.DQunMieR.js.map +1 -0
  78. package/dist/chunks/{error-message.DAjisbU1.js → error-message.DH8Er2JS.js} +2 -2
  79. package/dist/chunks/{error-message.DAjisbU1.js.map → error-message.DH8Er2JS.js.map} +1 -1
  80. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  81. package/dist/chunks/{file-uploader.BLJpDgAZ.js → file-uploader.Rtt1Uz2U.js} +627 -586
  82. package/dist/chunks/file-uploader.Rtt1Uz2U.js.map +1 -0
  83. package/dist/chunks/{filter-bar.DYrXBQDF.js → filter-bar.DW7lAAtF.js} +867 -853
  84. package/dist/chunks/filter-bar.DW7lAAtF.js.map +1 -0
  85. package/dist/chunks/{focus-trap.DMgm-9f7.js → focus-trap.BFCzfiI_.js} +2 -2
  86. package/dist/chunks/{focus-trap.DMgm-9f7.js.map → focus-trap.BFCzfiI_.js.map} +1 -1
  87. package/dist/chunks/{footer-actions.DK3pMfDY.js → footer-actions.A9H5F5D-.js} +2 -2
  88. package/dist/chunks/{footer-actions.DK3pMfDY.js.map → footer-actions.A9H5F5D-.js.map} +1 -1
  89. package/dist/chunks/header-with-views.D2B-20ZR.js +2354 -0
  90. package/dist/chunks/header-with-views.D2B-20ZR.js.map +1 -0
  91. package/dist/chunks/{header.BASKzNwu.js → header.CoyUQXFL.js} +4 -4
  92. package/dist/chunks/{header.BASKzNwu.js.map → header.CoyUQXFL.js.map} +1 -1
  93. package/dist/chunks/index.BzJQl-2M.js +386 -0
  94. package/dist/chunks/{index.CMGT-6mh.js.map → index.BzJQl-2M.js.map} +1 -1
  95. package/dist/chunks/{info-icon-with-popover.BJccyOFx.js → info-icon-with-popover.CBi7CmUZ.js} +2 -2
  96. package/dist/chunks/{info-icon-with-popover.BJccyOFx.js.map → info-icon-with-popover.CBi7CmUZ.js.map} +1 -1
  97. package/dist/chunks/{info-icon.L8AexnZg.js → info-icon.Bomzzcc5.js} +2 -2
  98. package/dist/chunks/{info-icon.L8AexnZg.js.map → info-icon.Bomzzcc5.js.map} +1 -1
  99. package/dist/chunks/input-field-password.DMEjy243.js +343 -0
  100. package/dist/chunks/input-field-password.DMEjy243.js.map +1 -0
  101. package/dist/chunks/{input-field-phone-number.D1zlBh3R.js → input-field-phone-number.DhJznFQP.js} +3 -3
  102. package/dist/chunks/{input-field-phone-number.D1zlBh3R.js.map → input-field-phone-number.DhJznFQP.js.map} +1 -1
  103. package/dist/chunks/{input-field.DqMdqM2u.js → input-field.B9AU1IsG.js} +3 -3
  104. package/dist/chunks/{input-field.DqMdqM2u.js.map → input-field.B9AU1IsG.js.map} +1 -1
  105. package/dist/chunks/inspector.types.Fs9URmPq.js +188 -0
  106. package/dist/chunks/inspector.types.Fs9URmPq.js.map +1 -0
  107. package/dist/chunks/{layout-row.Drm_y8e3.js → layout-row.BC3Z1mQx.js} +2 -2
  108. package/dist/chunks/{layout-row.Drm_y8e3.js.map → layout-row.BC3Z1mQx.js.map} +1 -1
  109. package/dist/chunks/{listbox-option-tag.YSvtcy4P.js → listbox-option-tag.CqnkZr9x.js} +2 -2
  110. package/dist/chunks/{listbox-option-tag.YSvtcy4P.js.map → listbox-option-tag.CqnkZr9x.js.map} +1 -1
  111. package/dist/chunks/{menu.DfzP2nRU.js → menu.P_KG1J8b.js} +106 -105
  112. package/dist/chunks/menu.P_KG1J8b.js.map +1 -0
  113. package/dist/chunks/{modal-fullscreen.T1x_vroe.js → modal-fullscreen.DxuMKagz.js} +3 -3
  114. package/dist/chunks/{modal-fullscreen.T1x_vroe.js.map → modal-fullscreen.DxuMKagz.js.map} +1 -1
  115. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js → modal.vue_vue_type_script_setup_true_lang.DfzxXSwn.js} +4 -4
  116. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAuxqA66.js.map → modal.vue_vue_type_script_setup_true_lang.DfzxXSwn.js.map} +1 -1
  117. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  118. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  119. package/dist/chunks/{pagination.Bt8DNme-.js → pagination.DsEd-vpq.js} +3 -3
  120. package/dist/chunks/{pagination.Bt8DNme-.js.map → pagination.DsEd-vpq.js.map} +1 -1
  121. package/dist/chunks/{payment-method.CLUppDo_.js → payment-method.eazefwm6.js} +9 -9
  122. package/dist/chunks/payment-method.eazefwm6.js.map +1 -0
  123. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  124. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  125. package/dist/chunks/{popover.COzLcAET.js → popover.Csq1gQ6T.js} +3 -3
  126. package/dist/chunks/{popover.COzLcAET.js.map → popover.Csq1gQ6T.js.map} +1 -1
  127. package/dist/chunks/{popper-container.CEtaux25.js → popper-container.DnlxQ9eS.js} +2 -2
  128. package/dist/chunks/{popper-container.CEtaux25.js.map → popper-container.DnlxQ9eS.js.map} +1 -1
  129. package/dist/chunks/{promo-banner.BCpw2tDD.js → promo-banner.CN-TTSov.js} +2 -2
  130. package/dist/chunks/{promo-banner.BCpw2tDD.js.map → promo-banner.CN-TTSov.js.map} +1 -1
  131. package/dist/chunks/{radio-group.rxg-4rF_.js → radio-group.Vm-hmL1q.js} +4 -4
  132. package/dist/chunks/{radio-group.rxg-4rF_.js.map → radio-group.Vm-hmL1q.js.map} +1 -1
  133. package/dist/chunks/{search-bar.DlihXfPt.js → search-bar.BBV1KNdd.js} +3 -3
  134. package/dist/chunks/{search-bar.DlihXfPt.js.map → search-bar.BBV1KNdd.js.map} +1 -1
  135. package/dist/chunks/{secondary-nav.D2loVonk.js → secondary-nav.O2R1ltD9.js} +3 -3
  136. package/dist/chunks/{secondary-nav.D2loVonk.js.map → secondary-nav.O2R1ltD9.js.map} +1 -1
  137. package/dist/chunks/{segmented-control.Wn-miTIl.js → segmented-control.DBy-nbYM.js} +2 -2
  138. package/dist/chunks/{segmented-control.Wn-miTIl.js.map → segmented-control.DBy-nbYM.js.map} +1 -1
  139. package/dist/chunks/{selection-card-group.CtQaeZFM.js → selection-card-group.Bt4jBqjc.js} +4 -4
  140. package/dist/chunks/{selection-card-group.CtQaeZFM.js.map → selection-card-group.Bt4jBqjc.js.map} +1 -1
  141. package/dist/chunks/{sidepanel.CjaHQEin.js → sidepanel.Ds2CCG9L.js} +4 -4
  142. package/dist/chunks/{sidepanel.CjaHQEin.js.map → sidepanel.Ds2CCG9L.js.map} +1 -1
  143. package/dist/chunks/{structured-list-item.DAwADFpI.js → structured-list-item.CygGTBVl.js} +4 -4
  144. package/dist/chunks/{structured-list-item.DAwADFpI.js.map → structured-list-item.CygGTBVl.js.map} +1 -1
  145. package/dist/chunks/summary-grid.types.DzvuP-NU.js +454 -0
  146. package/dist/chunks/summary-grid.types.DzvuP-NU.js.map +1 -0
  147. package/dist/chunks/tabs.B8BRqQpv.js +272 -0
  148. package/dist/chunks/tabs.B8BRqQpv.js.map +1 -0
  149. package/dist/chunks/{tag.B1hW92hG.js → tag.C4SGN5Eb.js} +2 -2
  150. package/dist/chunks/{tag.B1hW92hG.js.map → tag.C4SGN5Eb.js.map} +1 -1
  151. package/dist/chunks/{teleport.B1NhF5-O.js → teleport.DfTpEQBR.js} +2 -2
  152. package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.DfTpEQBR.js.map} +1 -1
  153. package/dist/chunks/{textarea.DMA29yQA.js → textarea.bQwvvIkq.js} +103 -95
  154. package/dist/chunks/textarea.bQwvvIkq.js.map +1 -0
  155. package/dist/chunks/{timeline-item.kWg3dTy1.js → timeline-item.Bxt_pNII.js} +5 -5
  156. package/dist/chunks/{timeline-item.kWg3dTy1.js.map → timeline-item.Bxt_pNII.js.map} +1 -1
  157. package/dist/chunks/{tooltip.Y730-n-n.js → tooltip.CyQxprBQ.js} +2 -2
  158. package/dist/chunks/{tooltip.Y730-n-n.js.map → tooltip.CyQxprBQ.js.map} +1 -1
  159. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js → tutorial.vue_vue_type_script_setup_true_lang.BtVT3Ltg.js} +5 -5
  160. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CUmJbMsw.js.map → tutorial.vue_vue_type_script_setup_true_lang.BtVT3Ltg.js.map} +1 -1
  161. package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js → use-cached-selected-values.DmW8XRgJ.js} +234 -225
  162. package/dist/chunks/{use-cached-selected-values.DDP7LJoI.js.map → use-cached-selected-values.DmW8XRgJ.js.map} +1 -1
  163. package/dist/click-outside.js +1 -1
  164. package/dist/code-snippet.js +1 -1
  165. package/dist/dashboard-template.js +1 -1
  166. package/dist/dashed-underline.js +2 -2
  167. package/dist/data-grid-template.js +1 -1
  168. package/dist/data-grid.js +1 -1
  169. package/dist/date-picker.js +2 -2
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/dropdown.js +3 -3
  172. package/dist/file-uploader.js +1 -1
  173. package/dist/filter-bar.js +1 -1
  174. package/dist/focus-trap.js +1 -1
  175. package/dist/header-with-views.js +5 -0
  176. package/dist/header-with-views.js.map +1 -0
  177. package/dist/header.js +1 -1
  178. package/dist/index.js +201 -199
  179. package/dist/index.js.map +1 -1
  180. package/dist/info-icon.js +1 -1
  181. package/dist/input-field-password.js +1 -1
  182. package/dist/input-field-phone-number.js +1 -1
  183. package/dist/input-field.js +1 -1
  184. package/dist/inspector.js +1 -1
  185. package/dist/internal.js +11 -11
  186. package/dist/layout.js +1 -1
  187. package/dist/menu.js +1 -1
  188. package/dist/modal-fullscreen.js +1 -1
  189. package/dist/modal.js +2 -2
  190. package/dist/pagination.js +1 -1
  191. package/dist/payment-method.js +2 -2
  192. package/dist/popover.js +1 -1
  193. package/dist/popper-container.js +1 -1
  194. package/dist/promo-banner.js +1 -1
  195. package/dist/radio-group.js +1 -1
  196. package/dist/search-bar.js +2 -2
  197. package/dist/secondary-nav.js +1 -1
  198. package/dist/segmented-control.js +1 -1
  199. package/dist/selection-card.js +1 -1
  200. package/dist/sidepanel.js +1 -1
  201. package/dist/structured-list.js +1 -1
  202. package/dist/styles/bento-dark.css +89 -17
  203. package/dist/styles/bento-light.css +89 -17
  204. package/dist/styles/bento.css +89 -17
  205. package/dist/styles/legacy.css +77 -5
  206. package/dist/styles/styleguide.css +89 -17
  207. package/dist/summary-grid.js +1 -1
  208. package/dist/tabs.js +1 -1
  209. package/dist/tag.js +1 -1
  210. package/dist/textarea.js +1 -1
  211. package/dist/timeline.js +1 -1
  212. package/dist/tutorial.js +1 -1
  213. package/dist/use-form-v4.js +8300 -0
  214. package/dist/use-form-v4.js.map +1 -0
  215. package/dist/web-types.json +1 -1
  216. package/package.json +8 -7
  217. package/dist/assets/summary-grid-item-custom.css +0 -1
  218. package/dist/chunks/checkbox.erdZ58Kk.js.map +0 -1
  219. package/dist/chunks/data-grid.KZqjmRvk.js.map +0 -1
  220. package/dist/chunks/dropdown.qw5oXFYs.js.map +0 -1
  221. package/dist/chunks/file-uploader.BLJpDgAZ.js.map +0 -1
  222. package/dist/chunks/filter-bar.DYrXBQDF.js.map +0 -1
  223. package/dist/chunks/index.CMGT-6mh.js +0 -369
  224. package/dist/chunks/input-field-password.CZNUHo6s.js +0 -309
  225. package/dist/chunks/input-field-password.CZNUHo6s.js.map +0 -1
  226. package/dist/chunks/inspector.types.Dwt3V80X.js +0 -184
  227. package/dist/chunks/inspector.types.Dwt3V80X.js.map +0 -1
  228. package/dist/chunks/menu.DfzP2nRU.js.map +0 -1
  229. package/dist/chunks/payment-method.CLUppDo_.js.map +0 -1
  230. package/dist/chunks/payment-method.types.CJKfZQN5.js +0 -5
  231. package/dist/chunks/payment-method.types.CJKfZQN5.js.map +0 -1
  232. package/dist/chunks/summary-grid-item-custom.DTCzOBBy.js +0 -725
  233. package/dist/chunks/summary-grid-item-custom.DTCzOBBy.js.map +0 -1
  234. package/dist/chunks/tabs.hp52NnXH.js +0 -211
  235. package/dist/chunks/tabs.hp52NnXH.js.map +0 -1
  236. package/dist/chunks/textarea.DMA29yQA.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { computed as v, ref as M, onMounted as Le, onUnmounted as xe, watch as Oe, defineComponent as X, resolveComponent as A, createElementBlock as L, openBlock as g, createVNode as P, createElementVNode as F, withCtx as O, createTextVNode as z, toDisplayString as G, renderSlot as Y, mergeProps as U, withKeys as be, createCommentVNode as W, createBlock as B, withModifiers as Ke, normalizeProps as te, guardReactiveProps as ie, withDirectives as ce, vShow as Ie, toRef as le, resolveDirective as Ae, toHandlers as se, Fragment as Z, renderList as x, createSlots as re, normalizeClass as ve, useSlots as We, unref as w, normalizeStyle as qe } from "vue";
1
+ import { computed as v, ref as P, onMounted as Te, onUnmounted as xe, watch as Oe, defineComponent as X, resolveComponent as A, createElementBlock as T, openBlock as f, createVNode as D, createElementVNode as F, withCtx as O, createTextVNode as z, toDisplayString as G, renderSlot as Y, mergeProps as U, withKeys as be, createCommentVNode as W, createBlock as B, withModifiers as Ke, normalizeProps as te, guardReactiveProps as ie, withDirectives as ce, vShow as Ie, toRef as le, resolveDirective as Ae, toHandlers as se, Fragment as Z, renderList as x, createSlots as re, normalizeClass as ve, useSlots as We, unref as w, normalizeStyle as qe } from "vue";
2
2
  import { B as K, a as pe } from "./keyboard-navigation.CqgGzfZQ.js";
3
3
  import "./events.FNmSWp_P.js";
4
4
  import { B as oe } from "./typography.DN5eC5ch.js";
@@ -6,34 +6,34 @@ import { B as je } from "./loading-indicator.DEepb9Wl.js";
6
6
  import { B as He } from "./empty-state.BffIZp3a.js";
7
7
  import { u as ye } from "./i18n.D9azDLPe.js";
8
8
  import { d as Xe } from "./debounce.DUTu11PS.js";
9
- import { B as Se } from "./checkbox.erdZ58Kk.js";
9
+ import { B as Se } from "./checkbox.Z2Jeglk-.js";
10
10
  import { B as Je } from "./chip.3T0x6FuI.js";
11
11
  import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
12
12
  import { C as Ze, a as Qe } from "./chevron-up.-0oLlHmh.js";
13
- import { d as et, e as Ee } from "./button-actions.BvGAE7sw.js";
13
+ import { d as et, e as Ee } from "./button-actions.CdlXZ29B.js";
14
14
  /* empty css */
15
15
  import { o as tt } from "./resize.Bqks3WUm.js";
16
16
  import "../assets/use-cached-selected-values.css";
17
17
  const $e = (e, t, s, c) => {
18
- const b = v(
18
+ const m = v(
19
19
  () => {
20
- var u, a;
21
- return !!((u = e.value) != null && u.length) && ((a = e.value) == null ? void 0 : a.length) === t.value.length;
20
+ var u, n;
21
+ return !!((u = e.value) != null && u.length) && ((n = e.value) == null ? void 0 : n.length) === t.value.length;
22
22
  }
23
23
  ), i = v(() => {
24
24
  var u;
25
25
  return e.value == null || e.value.length === 0 ? !1 : ((u = e.value) == null ? void 0 : u.length) !== t.value.length;
26
26
  });
27
27
  return {
28
- isAllSelected: b,
28
+ isAllSelected: m,
29
29
  isIndeterminate: i,
30
30
  toggleSelectAll: (u) => {
31
31
  u ? s() : c();
32
32
  }
33
33
  };
34
34
  };
35
- function st(e, { disabled: t, itemHeight: s, overscan: c = 5, prefixHeight: b }) {
36
- const i = M(null), l = M([]), u = M(0), a = M(0), n = M(0);
35
+ function st(e, { disabled: t, itemHeight: s, overscan: c = 5, prefixHeight: m }) {
36
+ const i = P(null), l = P([]), u = P(0), n = P(0), a = P(0);
37
37
  let C;
38
38
  const o = v(() => {
39
39
  const y = typeof s == "number" ? e.value.length * s : e.value.reduce((k, E, I) => k + s(I), 0), h = typeof s == "number" ? u.value * s : e.value.slice(0, u.value).reduce((k, E, I) => k + s(I), 0);
@@ -44,7 +44,7 @@ function st(e, { disabled: t, itemHeight: s, overscan: c = 5, prefixHeight: b })
44
44
  }
45
45
  };
46
46
  }), S = () => {
47
- const y = (b == null ? void 0 : b.value) ?? 0, h = Math.max(i.value.scrollTop - y, 0);
47
+ const y = (m == null ? void 0 : m.value) ?? 0, h = Math.max(i.value.scrollTop - y, 0);
48
48
  if (typeof s == "number")
49
49
  return Math.floor(h / s);
50
50
  let k = 0, E = 0;
@@ -57,27 +57,27 @@ function st(e, { disabled: t, itemHeight: s, overscan: c = 5, prefixHeight: b })
57
57
  }
58
58
  return E;
59
59
  }, R = () => {
60
- if (n.value = i.value.clientHeight, typeof s == "number")
61
- return Math.ceil(n.value / s);
60
+ if (a.value = i.value.clientHeight, typeof s == "number")
61
+ return Math.ceil(a.value / s);
62
62
  const y = u.value ?? 0;
63
63
  let h = 0, k = 0;
64
64
  for (let E = y; E < e.value.length; E += 1) {
65
65
  const I = s(E);
66
- if (h += I, k = E, h > n.value)
66
+ if (h += I, k = E, h > a.value)
67
67
  break;
68
68
  }
69
69
  return k - y;
70
70
  }, $ = () => {
71
71
  if (i.value) {
72
72
  const y = R();
73
- u.value = S(), a.value = Math.min(u.value + y + c, e.value.length), l.value = e.value.slice(u.value, a.value);
73
+ u.value = S(), n.value = Math.min(u.value + y + c, e.value.length), l.value = e.value.slice(u.value, n.value);
74
74
  }
75
- }, D = () => {
75
+ }, M = () => {
76
76
  $();
77
77
  };
78
- t || (Le(() => {
79
- i.value && (n.value = i.value.clientHeight, C = tt(i.value, ({ clientHeight: y }) => {
80
- n.value = y, $();
78
+ t || (Te(() => {
79
+ i.value && (a.value = i.value.clientHeight, C = tt(i.value, ({ clientHeight: y }) => {
80
+ a.value = y, $();
81
81
  }), $());
82
82
  }), xe(() => {
83
83
  C == null || C.disconnect();
@@ -101,7 +101,7 @@ function st(e, { disabled: t, itemHeight: s, overscan: c = 5, prefixHeight: b })
101
101
  } : {
102
102
  containerRef: i,
103
103
  containerProps: p,
104
- onScroll: D,
104
+ onScroll: M,
105
105
  list: l,
106
106
  wrapperProps: o
107
107
  };
@@ -122,10 +122,10 @@ const lt = X({
122
122
  }
123
123
  }
124
124
  }), ot = { class: "b-listbox-single-select-category" };
125
- function nt(e, t, s, c, b, i) {
125
+ function nt(e, t, s, c, m, i) {
126
126
  const l = A("bento-typography");
127
- return g(), L("div", ot, [
128
- P(l, {
127
+ return f(), T("div", ot, [
128
+ D(l, {
129
129
  variant: "caption",
130
130
  el: "span",
131
131
  class: "b-listbox-single-select-category__label-text"
@@ -174,8 +174,8 @@ const at = /* @__PURE__ */ q(lt, [["render", nt], ["__scopeId", "data-v-a90eff17
174
174
  };
175
175
  }
176
176
  });
177
- function rt(e, t, s, c, b, i) {
178
- return g(), L("label", U({
177
+ function rt(e, t, s, c, m, i) {
178
+ return f(), T("label", U({
179
179
  class: ["b-listbox-option", e.conditionalClasses],
180
180
  role: "option"
181
181
  }, e.$attrs, {
@@ -196,15 +196,15 @@ const ct = {
196
196
  this.uuid = he.toString(), he += 1;
197
197
  }
198
198
  }, ut = { key: 0 };
199
- function dt(e, t, s, c, b, i) {
200
- return g(), L("svg", U({ role: "img" }, e.$attrs, {
199
+ function dt(e, t, s, c, m, i) {
200
+ return f(), T("svg", U({ role: "img" }, e.$attrs, {
201
201
  class: "ui-assets-icons-16",
202
202
  xmlns: "http://www.w3.org/2000/svg",
203
203
  width: "16",
204
204
  height: "16",
205
205
  fill: "none"
206
206
  }), [
207
- e.$attrs["svg-title"] ? (g(), L("title", ut, G(e.$attrs["svg-title"]), 1)) : W("", !0),
207
+ e.$attrs["svg-title"] ? (f(), T("title", ut, G(e.$attrs["svg-title"]), 1)) : W("", !0),
208
208
  t[0] || (t[0] = F("path", {
209
209
  fill: "#00112C",
210
210
  d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
@@ -240,11 +240,11 @@ const mt = /* @__PURE__ */ q(ct, [["render", dt]]), bt = X({
240
240
  setup(e, { emit: t }) {
241
241
  const s = (l) => {
242
242
  e.disabled || t(l, e.option);
243
- }, c = v(() => e.disabled ? !0 : null), b = v(() => e.selected ? !0 : null), i = v(() => e.disabled ? -1 : 0);
243
+ }, c = v(() => e.disabled ? !0 : null), m = v(() => e.selected ? !0 : null), i = v(() => e.disabled ? -1 : 0);
244
244
  return {
245
245
  // Values
246
246
  ariaDisabled: c,
247
- ariaSelected: b,
247
+ ariaSelected: m,
248
248
  tabIndex: i,
249
249
  // Enums
250
250
  BentoListboxEvent: d,
@@ -253,30 +253,30 @@ const mt = /* @__PURE__ */ q(ct, [["render", dt]]), bt = X({
253
253
  };
254
254
  }
255
255
  }), vt = { class: "b-listbox-single-select-option__text" }, ft = { class: "b-listbox-single-select-option__check-icon" };
256
- function gt(e, t, s, c, b, i) {
257
- const l = A("bento-typography"), u = A("checkmark-icon"), a = A("bento-listbox-option");
258
- return g(), B(a, {
256
+ function gt(e, t, s, c, m, i) {
257
+ const l = A("bento-typography"), u = A("checkmark-icon"), n = A("bento-listbox-option");
258
+ return f(), B(n, {
259
259
  class: "b-listbox-single-select-option",
260
260
  disabled: e.disabled,
261
261
  selected: e.selected,
262
262
  "aria-selected": e.ariaSelected,
263
263
  "aria-disabled": e.ariaDisabled,
264
264
  tabindex: e.tabIndex,
265
- onClick: t[0] || (t[0] = (n) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
266
- onEnterPressed: t[1] || (t[1] = (n) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
267
- onSpacePressed: t[2] || (t[2] = Ke((n) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
268
- onTabPressed: t[3] || (t[3] = (n) => e.onOptionSelected(e.BentoListboxEvent.TAB))
265
+ onClick: t[0] || (t[0] = (a) => e.onOptionSelected(e.BentoListboxEvent.SELECT)),
266
+ onEnterPressed: t[1] || (t[1] = (a) => e.onOptionSelected(e.BentoListboxEvent.ENTER)),
267
+ onSpacePressed: t[2] || (t[2] = Ke((a) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
268
+ onTabPressed: t[3] || (t[3] = (a) => e.onOptionSelected(e.BentoListboxEvent.TAB))
269
269
  }, {
270
270
  default: O(() => [
271
271
  Y(e.$slots, "default", te(ie(e.option)), () => [
272
272
  F("span", vt, [
273
- P(l, { el: "span" }, {
273
+ D(l, { el: "span" }, {
274
274
  default: O(() => [
275
275
  z(G(e.option.label), 1)
276
276
  ]),
277
277
  _: 1
278
278
  }),
279
- e.option.description ? (g(), B(l, {
279
+ e.option.description ? (f(), B(l, {
280
280
  key: 0,
281
281
  class: "b-listbox-single-select-option__description",
282
282
  el: "span"
@@ -289,7 +289,7 @@ function gt(e, t, s, c, b, i) {
289
289
  ])
290
290
  ], !0),
291
291
  F("span", ft, [
292
- ce(P(u, { "svg-title": "selected" }, null, 512), [
292
+ ce(D(u, { "svg-title": "selected" }, null, 512), [
293
293
  [Ie, e.selected]
294
294
  ])
295
295
  ])
@@ -298,13 +298,13 @@ function gt(e, t, s, c, b, i) {
298
298
  }, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
299
299
  }
300
300
  const pt = /* @__PURE__ */ q(bt, [["render", gt], ["__scopeId", "data-v-226f4c84"]]), ke = ({ items: e, isOptionDisabled: t, hasStaticCategories: s }, c) => {
301
- const b = v(
301
+ const m = v(
302
302
  () => s.value ? e.value.flatMap((p) => p.items) : e.value
303
- ), i = v(() => b.value.length - 1), l = M(0);
304
- Le(() => {
303
+ ), i = v(() => m.value.length - 1), l = P(0);
304
+ Te(() => {
305
305
  t && (l.value = e.value.findIndex((p) => !t(p)));
306
306
  });
307
- const u = (p) => !t || !!t && t(e.value[p]), a = (p) => !t || !!t && !t(e.value[p]), n = (p) => {
307
+ const u = (p) => !t || !!t && t(e.value[p]), n = (p) => !t || !!t && !t(e.value[p]), a = (p) => {
308
308
  switch (p) {
309
309
  case "increase":
310
310
  l.value += 1;
@@ -314,7 +314,7 @@ const pt = /* @__PURE__ */ q(bt, [["render", gt], ["__scopeId", "data-v-226f4c84
314
314
  break;
315
315
  }
316
316
  }, C = ({ edgeCaseItem: p, isItemBeforeEdgeCaseItem: y }, h, k) => {
317
- l.value !== p && (y ? a(p) && n(k) : (n(k), u(l.value) && h()), c(l.value));
317
+ l.value !== p && (y ? n(p) && a(k) : (a(k), u(l.value) && h()), c(l.value));
318
318
  }, o = (p) => {
319
319
  var h;
320
320
  (h = p == null ? void 0 : p.detail) == null || h.preventDefault();
@@ -404,14 +404,14 @@ const pt = /* @__PURE__ */ q(bt, [["render", gt], ["__scopeId", "data-v-226f4c84
404
404
  },
405
405
  emits: [d.SELECT, d.ENTER, d.SPACE, d.TAB],
406
406
  setup(e, { emit: t, expose: s, slots: c }) {
407
- const b = M(null), i = M([]), l = v(() => {
407
+ const m = P(null), i = P([]), l = v(() => {
408
408
  var y;
409
409
  return !!((y = e.selectedValue) != null && y.length) && e.selectedValue.at(0);
410
- }), u = v(() => !!e.items.some(({ items: y }) => !!y)), a = (y) => (h) => {
410
+ }), u = v(() => !!e.items.some(({ items: y }) => !!y)), n = (y) => (h) => {
411
411
  t(y, [h]);
412
- }, n = (y) => {
412
+ }, a = (y) => {
413
413
  var h;
414
- (h = b.value.querySelectorAll('[role="option"]')[y]) == null || h.focus();
414
+ (h = m.value.querySelectorAll('[role="option"]')[y]) == null || h.focus();
415
415
  }, {
416
416
  moveToNextElement: C,
417
417
  moveToPreviousElement: o,
@@ -424,17 +424,17 @@ const pt = /* @__PURE__ */ q(bt, [["render", gt], ["__scopeId", "data-v-226f4c84
424
424
  isOptionDisabled: e.isOptionDisabled,
425
425
  hasStaticCategories: le(e, "staticCategories")
426
426
  },
427
- n
428
- ), D = {
427
+ a
428
+ ), M = {
429
429
  [K.ARROW_UP]: o,
430
430
  [K.ARROW_DOWN]: C,
431
431
  [K.HOME]: S,
432
432
  [K.END]: R
433
433
  }, p = {
434
- [d.SELECT]: a(d.SELECT),
435
- [d.SPACE]: a(d.SPACE),
436
- [d.TAB]: a(d.TAB),
437
- [d.ENTER]: a(d.ENTER)
434
+ [d.SELECT]: n(d.SELECT),
435
+ [d.SPACE]: n(d.SPACE),
436
+ [d.TAB]: n(d.TAB),
437
+ [d.ENTER]: n(d.ENTER)
438
438
  };
439
439
  return s({
440
440
  /**
@@ -451,30 +451,30 @@ const pt = /* @__PURE__ */ q(bt, [["render", gt], ["__scopeId", "data-v-226f4c84
451
451
  // Enums
452
452
  BentoListboxEvent: d,
453
453
  // Values
454
- listboxRef: b,
454
+ listboxRef: m,
455
455
  listboxItemRef: i,
456
456
  selectedItem: l,
457
457
  slots: c,
458
458
  // Computed
459
459
  hasCategories: u,
460
460
  // Methods
461
- onOptionSelected: a,
461
+ onOptionSelected: n,
462
462
  // Keyboard navigation
463
- listboxListeners: D,
463
+ listboxListeners: M,
464
464
  listboxOptionListeners: p
465
465
  };
466
466
  }
467
467
  });
468
- function St(e, t, s, c, b, i) {
469
- const l = A("bento-listbox-single-select-option"), u = A("bento-listbox-single-select-category"), a = Ae("bento-keyboard-navigation-directive");
470
- return ce((g(), L("div", U({ ref: "listboxRef" }, se(e.listboxListeners, !0)), [
471
- e.hasCategories && e.staticCategories ? (g(!0), L(Z, { key: 0 }, x(e.items, (n) => (g(), B(u, {
472
- key: n.value,
473
- "category-label": n.label,
468
+ function St(e, t, s, c, m, i) {
469
+ const l = A("bento-listbox-single-select-option"), u = A("bento-listbox-single-select-category"), n = Ae("bento-keyboard-navigation-directive");
470
+ return ce((f(), T("div", U({ ref: "listboxRef" }, se(e.listboxListeners, !0)), [
471
+ e.hasCategories && e.staticCategories ? (f(!0), T(Z, { key: 0 }, x(e.items, (a) => (f(), B(u, {
472
+ key: a.value,
473
+ "category-label": a.label,
474
474
  role: "group"
475
475
  }, {
476
476
  default: O(() => [
477
- (g(!0), L(Z, null, x(n.items, (C) => (g(), B(l, U({
477
+ (f(!0), T(Z, null, x(a.items, (C) => (f(), B(l, U({
478
478
  key: C.value,
479
479
  ref_for: !0,
480
480
  ref: "listboxItemRef",
@@ -492,14 +492,14 @@ function St(e, t, s, c, b, i) {
492
492
  ]), 1040, ["option", "disabled", "selected"]))), 128))
493
493
  ]),
494
494
  _: 2
495
- }, 1032, ["category-label"]))), 128)) : (g(!0), L(Z, { key: 1 }, x(e.items, (n) => (g(), B(l, U({
496
- key: n.value,
495
+ }, 1032, ["category-label"]))), 128)) : (f(!0), T(Z, { key: 1 }, x(e.items, (a) => (f(), B(l, U({
496
+ key: a.value,
497
497
  ref_for: !0,
498
498
  ref: "listboxItemRef",
499
499
  role: "option",
500
- option: n,
501
- disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null,
502
- selected: n.value === e.selectedItem.value
500
+ option: a,
501
+ disabled: e.isOptionDisabled ? e.isOptionDisabled(a) : null,
502
+ selected: a.value === e.selectedItem.value
503
503
  }, se(e.listboxOptionListeners)), re({ _: 2 }, [
504
504
  x(e.slots, (C, o) => ({
505
505
  name: o,
@@ -509,7 +509,7 @@ function St(e, t, s, c, b, i) {
509
509
  }))
510
510
  ]), 1040, ["option", "disabled", "selected"]))), 128))
511
511
  ], 16)), [
512
- [a]
512
+ [n]
513
513
  ]);
514
514
  }
515
515
  const Ct = /* @__PURE__ */ q(yt, [["render", St]]);
@@ -570,16 +570,16 @@ const Et = {
570
570
  },
571
571
  emits: [ae.SELECT_CATEGORY, ae.UNSELECT_CATEGORY],
572
572
  setup(e, { emit: t }) {
573
- const s = M(!1), { t: c } = ye(), b = (E) => e.isOptionDisabled ? e.isOptionDisabled(E) : !1, i = v(
574
- () => e.category.items.every((E) => b(E))
575
- ), l = le(e, "staticCategories"), u = v(() => s.value || e.staticCategories), a = v(() => ({
573
+ const s = P(!1), { t: c } = ye(), m = (E) => e.isOptionDisabled ? e.isOptionDisabled(E) : !1, i = v(
574
+ () => e.category.items.every((E) => m(E))
575
+ ), l = le(e, "staticCategories"), u = v(() => s.value || e.staticCategories), n = v(() => ({
576
576
  [`b-listbox-multi-select-category--${fe.DISABLED}`]: i.value,
577
577
  [`b-listbox-multi-select-category--${fe.STATIC_CATEGORY}`]: e.staticCategories
578
- })), n = (E) => {
578
+ })), a = (E) => {
579
579
  E.preventDefault(), s.value = !s.value;
580
580
  }, C = (E) => {
581
581
  var Q;
582
- const I = b(E), V = ((Q = e.selectedItemsList) == null ? void 0 : Q.includes(E.value)) || !1;
582
+ const I = m(E), V = ((Q = e.selectedItemsList) == null ? void 0 : Q.includes(E.value)) || !1;
583
583
  return { isDisabled: I, isPreSelected: V };
584
584
  }, o = v(
585
585
  () => e.category.items.filter((E) => {
@@ -604,20 +604,20 @@ const Et = {
604
604
  el: "span",
605
605
  variant: e.staticCategories ? "caption" : "body"
606
606
  })
607
- ), D = () => {
607
+ ), M = () => {
608
608
  t(ae.SELECT_CATEGORY);
609
609
  }, p = () => {
610
610
  t(ae.UNSELECT_CATEGORY);
611
611
  }, { isAllSelected: y, isIndeterminate: h, toggleSelectAll: k } = $e(
612
612
  S,
613
613
  o,
614
- D,
614
+ M,
615
615
  p
616
616
  );
617
617
  return {
618
618
  // Values
619
619
  chevronTitle: R,
620
- conditionalClass: a,
620
+ conditionalClass: n,
621
621
  hasAllPropsDisabled: i,
622
622
  isOpen: s,
623
623
  isAllSelected: y,
@@ -627,19 +627,19 @@ const Et = {
627
627
  showItemChildren: u,
628
628
  categoryLabelProps: $,
629
629
  // Methods
630
- toggleOpen: n,
630
+ toggleOpen: a,
631
631
  toggleSelectAll: k
632
632
  };
633
633
  }
634
634
  }), _t = { class: "b-listbox-multi-select-category__label" };
635
- function Tt(e, t, s, c, b, i) {
636
- const l = A("bento-checkbox"), u = A("bento-typography"), a = A("chevron-up-icon"), n = A("chevron-down-icon"), C = A("bento-listbox-option");
637
- return g(), L("div", null, [
638
- P(C, {
635
+ function Lt(e, t, s, c, m, i) {
636
+ const l = A("bento-checkbox"), u = A("bento-typography"), n = A("chevron-up-icon"), a = A("chevron-down-icon"), C = A("bento-listbox-option");
637
+ return f(), T("div", null, [
638
+ D(C, {
639
639
  class: ve(["b-listbox-multi-select-category__option", e.conditionalClass])
640
640
  }, {
641
641
  default: O(() => [
642
- e.isStaticCategory ? W("", !0) : (g(), B(l, {
642
+ e.isStaticCategory ? W("", !0) : (f(), B(l, {
643
643
  key: 0,
644
644
  "model-value": e.isAllSelected,
645
645
  indeterminate: e.isIndeterminate,
@@ -649,22 +649,22 @@ function Tt(e, t, s, c, b, i) {
649
649
  "onUpdate:modelValue": e.toggleSelectAll
650
650
  }, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "value", "onUpdate:modelValue"])),
651
651
  F("span", _t, [
652
- P(u, U(e.categoryLabelProps, { class: "b-listbox-multi-select-category__label-text" }), {
652
+ D(u, U(e.categoryLabelProps, { class: "b-listbox-multi-select-category__label-text" }), {
653
653
  default: O(() => [
654
654
  z(G(e.category.label), 1)
655
655
  ]),
656
656
  _: 1
657
657
  }, 16),
658
- e.isStaticCategory ? W("", !0) : (g(), L("div", {
658
+ e.isStaticCategory ? W("", !0) : (f(), T("div", {
659
659
  key: 0,
660
660
  class: "b-listbox-multi-select-category__label-chevron",
661
661
  "data-testid": "toggle-listbox",
662
662
  onClickCapture: t[0] || (t[0] = (...o) => e.toggleOpen && e.toggleOpen(...o))
663
663
  }, [
664
- e.isOpen ? (g(), B(a, {
664
+ e.isOpen ? (f(), B(n, {
665
665
  key: 0,
666
666
  "svg-title": e.chevronTitle
667
- }, null, 8, ["svg-title"])) : (g(), B(n, {
667
+ }, null, 8, ["svg-title"])) : (f(), B(a, {
668
668
  key: 1,
669
669
  "svg-title": e.chevronTitle
670
670
  }, null, 8, ["svg-title"]))
@@ -680,7 +680,7 @@ function Tt(e, t, s, c, b, i) {
680
680
  ])
681
681
  ]);
682
682
  }
683
- const Lt = /* @__PURE__ */ q(ht, [["render", Tt], ["__scopeId", "data-v-9a00de22"]]);
683
+ const Tt = /* @__PURE__ */ q(ht, [["render", Lt], ["__scopeId", "data-v-9a00de22"]]);
684
684
  var H = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e))(H || {});
685
685
  const Ot = X({
686
686
  name: "listbox-multi-select-options",
@@ -688,7 +688,7 @@ const Ot = X({
688
688
  BentoCheckbox: Se,
689
689
  BentoListboxOption: de,
690
690
  BentoTypography: oe,
691
- ListboxMultiSelectCategory: Lt
691
+ ListboxMultiSelectCategory: Tt
692
692
  },
693
693
  props: {
694
694
  /**
@@ -751,15 +751,15 @@ const Ot = X({
751
751
  H.UNSELECT_CATEGORY
752
752
  ],
753
753
  setup(e, { emit: t }) {
754
- const s = (a) => {
755
- t(H.TOGGLE_CHECKBOX_SELECTION, a);
756
- }, c = (a) => !!a.items, b = (a) => {
757
- const n = e.isMultiLevel && e.searching;
758
- return a.description && (!e.isMultiLevel || n);
759
- }, i = (a) => a.items ? !!a.items.find((n) => e.selectedItemsList.includes(n.value)) : e.selectedItemsList.includes(a.value), l = (a, n) => {
760
- if (c(n))
761
- return t(a ? H.SELECT_CATEGORY : H.UNSELECT_CATEGORY, n);
762
- s(n.value);
754
+ const s = (n) => {
755
+ t(H.TOGGLE_CHECKBOX_SELECTION, n);
756
+ }, c = (n) => !!n.items, m = (n) => {
757
+ const a = e.isMultiLevel && e.searching;
758
+ return n.description && (!e.isMultiLevel || a);
759
+ }, i = (n) => n.items ? !!n.items.find((a) => e.selectedItemsList.includes(a.value)) : e.selectedItemsList.includes(n.value), l = (n, a) => {
760
+ if (c(a))
761
+ return t(n ? H.SELECT_CATEGORY : H.UNSELECT_CATEGORY, a);
762
+ s(a.value);
763
763
  };
764
764
  return {
765
765
  // Values
@@ -769,7 +769,7 @@ const Ot = X({
769
769
  })),
770
770
  // Methods
771
771
  isOptionSelected: i,
772
- shouldShowDescription: b,
772
+ shouldShowDescription: m,
773
773
  toggleCheckboxSelection: s,
774
774
  selectSearch: l,
775
775
  // Enums
@@ -778,19 +778,19 @@ const Ot = X({
778
778
  };
779
779
  }
780
780
  }), It = { class: "b-listbox-multi-select__option-text" }, At = { class: "b-listbox-multi-select__option-text" };
781
- function $t(e, t, s, c, b, i) {
782
- const l = A("bento-checkbox"), u = A("bento-typography"), a = A("bento-listbox-option"), n = A("listbox-multi-select-options", !0), C = A("listbox-multi-select-category");
783
- return g(), L("div", null, [
784
- (g(!0), L(Z, null, x(e.items, (o) => (g(), L("div", {
781
+ function $t(e, t, s, c, m, i) {
782
+ const l = A("bento-checkbox"), u = A("bento-typography"), n = A("bento-listbox-option"), a = A("listbox-multi-select-options", !0), C = A("listbox-multi-select-category");
783
+ return f(), T("div", null, [
784
+ (f(!0), T(Z, null, x(e.items, (o) => (f(), T("div", {
785
785
  key: `selected-${o.value}`
786
786
  }, [
787
- e.searching && e.isMultiLevel ? (g(), B(a, {
787
+ e.searching && e.isMultiLevel ? (f(), B(n, {
788
788
  key: 0,
789
789
  class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
790
790
  disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
791
791
  }, {
792
792
  default: O(() => [
793
- P(l, {
793
+ D(l, {
794
794
  "model-value": e.isOptionSelected(o),
795
795
  "aria-label": o.label,
796
796
  disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
@@ -799,13 +799,13 @@ function $t(e, t, s, c, b, i) {
799
799
  }, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
800
800
  Y(e.$slots, "default", U({ ref_for: !0 }, o), () => [
801
801
  F("span", It, [
802
- P(u, { el: "span" }, {
802
+ D(u, { el: "span" }, {
803
803
  default: O(() => [
804
804
  z(G(o.label), 1)
805
805
  ]),
806
806
  _: 2
807
807
  }, 1024),
808
- e.shouldShowDescription(o) ? (g(), B(u, {
808
+ e.shouldShowDescription(o) ? (f(), B(u, {
809
809
  key: 0,
810
810
  class: "b-listbox-multi-select__option-description",
811
811
  el: "span"
@@ -819,8 +819,8 @@ function $t(e, t, s, c, b, i) {
819
819
  ], !0)
820
820
  ]),
821
821
  _: 2
822
- }, 1032, ["class", "disabled"])) : (g(), L(Z, { key: 1 }, [
823
- o.items ? (g(), B(C, {
822
+ }, 1032, ["class", "disabled"])) : (f(), T(Z, { key: 1 }, [
823
+ o.items ? (f(), B(C, {
824
824
  key: 0,
825
825
  category: o,
826
826
  "static-categories": e.staticCategories,
@@ -830,7 +830,7 @@ function $t(e, t, s, c, b, i) {
830
830
  onUnselectCategory: (S) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, o)
831
831
  }, {
832
832
  default: O(() => [
833
- P(n, {
833
+ D(a, {
834
834
  "category-items": "",
835
835
  items: o.items,
836
836
  "is-option-disabled": e.isOptionDisabled,
@@ -842,13 +842,13 @@ function $t(e, t, s, c, b, i) {
842
842
  }, null, 8, ["items", "is-option-disabled", "is-multi-level", "static-categories", "selected-items-list", "searching"])
843
843
  ]),
844
844
  _: 2
845
- }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "onSelectCategory", "onUnselectCategory"])) : (g(), B(a, {
845
+ }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "onSelectCategory", "onUnselectCategory"])) : (f(), B(n, {
846
846
  key: 1,
847
847
  class: ve(["b-listbox-multi-select-options", e.conditionalClasses]),
848
848
  disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
849
849
  }, {
850
850
  default: O(() => [
851
- P(l, {
851
+ D(l, {
852
852
  "model-value": e.selectedItemsList,
853
853
  "aria-label": o.label,
854
854
  disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
@@ -857,13 +857,13 @@ function $t(e, t, s, c, b, i) {
857
857
  }, null, 8, ["model-value", "aria-label", "disabled", "value", "onUpdate:modelValue"]),
858
858
  Y(e.$slots, "default", U({ ref_for: !0 }, o), () => [
859
859
  F("span", At, [
860
- P(u, { el: "span" }, {
860
+ D(u, { el: "span" }, {
861
861
  default: O(() => [
862
862
  z(G(o.label), 1)
863
863
  ]),
864
864
  _: 2
865
865
  }, 1024),
866
- e.shouldShowDescription(o) ? (g(), B(u, {
866
+ e.shouldShowDescription(o) ? (f(), B(u, {
867
867
  key: 0,
868
868
  class: "b-listbox-multi-select__option-description",
869
869
  el: "span"
@@ -885,10 +885,10 @@ function $t(e, t, s, c, b, i) {
885
885
  const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72"]]), Bt = (e) => {
886
886
  const t = v(() => {
887
887
  var c;
888
- return !!((c = e.value) != null && c.find(({ items: b }) => !!b));
888
+ return !!((c = e.value) != null && c.find(({ items: m }) => !!m));
889
889
  }), s = v(() => {
890
890
  var c;
891
- return t.value ? (c = e.value) == null ? void 0 : c.reduce((b, i) => (i.items ? b.push(...i.items.flat()) : b.push(i), b), []) : e.value;
891
+ return t.value ? (c = e.value) == null ? void 0 : c.reduce((m, i) => (i.items ? m.push(...i.items.flat()) : m.push(i), m), []) : e.value;
892
892
  });
893
893
  return {
894
894
  isMultiLevelSelect: t,
@@ -918,46 +918,46 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
918
918
  },
919
919
  emits: ["select"],
920
920
  setup(e, { emit: t }) {
921
- const s = e, c = t, { t: b } = ye({ messages: Be }), i = We(), l = M(null), u = M(null), a = M(null), n = v(() => s.selectedValues.map(({ value: r }) => r)), { isMultiLevelSelect: C, flattenedItemsList: o } = Bt(le(s, "items")), S = (r) => {
922
- var T;
923
- const f = s.isOptionDisabled(r), m = ((T = n.value) == null ? void 0 : T.includes(r.value)) || !1;
924
- return { isDisabled: f, isPreSelected: m };
921
+ const s = e, c = t, { t: m } = ye({ messages: Be }), i = We(), l = P(null), u = P(null), n = P(null), a = v(() => s.selectedValues.map(({ value: r }) => r)), { isMultiLevelSelect: C, flattenedItemsList: o } = Bt(le(s, "items")), S = (r) => {
922
+ var L;
923
+ const g = s.isOptionDisabled(r), b = ((L = a.value) == null ? void 0 : L.includes(r.value)) || !1;
924
+ return { isDisabled: g, isPreSelected: b };
925
925
  }, R = v(() => {
926
926
  if (s.searching && C)
927
927
  return s.items;
928
- const r = o.value.filter((f) => {
929
- const { isDisabled: m, isPreSelected: T } = S(f);
930
- return m && T || !m;
928
+ const r = o.value.filter((g) => {
929
+ const { isDisabled: b, isPreSelected: L } = S(g);
930
+ return b && L || !b;
931
931
  });
932
- return s.selectedValues.forEach((f) => {
933
- r.find((m) => m.value === f.value) || r.push(f);
932
+ return s.selectedValues.forEach((g) => {
933
+ r.find((b) => b.value === g.value) || r.push(g);
934
934
  }), r;
935
935
  }), $ = v(
936
936
  () => {
937
937
  var r;
938
- return (r = R.value) == null ? void 0 : r.filter((f) => {
939
- var m;
940
- return f.items && C.value && s.searching ? f.items.filter(
938
+ return (r = R.value) == null ? void 0 : r.filter((g) => {
939
+ var b;
940
+ return g.items && C.value && s.searching ? g.items.filter(
941
941
  (_) => (s.selectedValues ?? []).includes(_.value)
942
- ).length === f.items.length : (m = n.value) == null ? void 0 : m.includes(f.value);
942
+ ).length === g.items.length : (b = a.value) == null ? void 0 : b.includes(g.value);
943
943
  });
944
944
  }
945
- ), D = () => C.value && !s.searching ? o.value.length : s.items.length, p = v(() => {
946
- var T;
947
- const r = R.value.length, f = D(), m = ((T = $.value) == null ? void 0 : T.length) || 0;
948
- return m === 0 ? b("selectAll", { total: r }) : m === f ? b("allSelected", { total: f }) : m <= f ? b("numberOfTotalSelected", { number: m, total: f }) : b("numbersSelected", { number: m });
945
+ ), M = () => C.value && !s.searching ? o.value.length : s.items.length, p = v(() => {
946
+ var L;
947
+ const r = R.value.length, g = M(), b = ((L = $.value) == null ? void 0 : L.length) || 0;
948
+ return b === 0 ? m("selectAll", { total: r }) : b === g ? m("allSelected", { total: g }) : b <= g ? m("numberOfTotalSelected", { number: b, total: g }) : m("numbersSelected", { number: b });
949
949
  }), y = (r) => {
950
- const f = (T) => {
951
- const { isDisabled: _, isPreSelected: j } = S(T);
950
+ const g = (L) => {
951
+ const { isDisabled: _, isPreSelected: j } = S(L);
952
952
  return _ && j || !_;
953
- }, m = r.filter(f).filter((T) => !n.value.includes(T.value));
954
- c("select", [...s.selectedValues, ...m]);
953
+ }, b = r.filter(g).filter((L) => !a.value.includes(L.value));
954
+ c("select", [...s.selectedValues, ...b]);
955
955
  }, h = (r) => {
956
- const f = (_) => {
956
+ const g = (_) => {
957
957
  const { isDisabled: j, isPreSelected: Ye } = S(_);
958
958
  return !(j && Ye);
959
- }, m = r.filter(f).map(({ value: _ }) => _), T = s.selectedValues.filter((_) => !(m != null && m.includes(_.value)));
960
- c("select", T);
959
+ }, b = r.filter(g).map(({ value: _ }) => _), L = s.selectedValues.filter((_) => !(b != null && b.includes(_.value)));
960
+ c("select", L);
961
961
  }, k = () => {
962
962
  y(o.value);
963
963
  }, E = () => {
@@ -971,21 +971,21 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
971
971
  y(r.items);
972
972
  }, ue = (r) => {
973
973
  h(r.items);
974
- }, J = (r, f) => {
975
- let m = !1;
976
- const T = s.selectedValues.filter(({ value: _ }) => f.value === _ ? (m = !0, !1) : !0);
977
- m || T.push(f), c(r, T);
974
+ }, J = (r, g) => {
975
+ let b = !1;
976
+ const L = s.selectedValues.filter(({ value: _ }) => g.value === _ ? (b = !0, !1) : !0);
977
+ b || L.push(g), c(r, L);
978
978
  }, N = v(() => {
979
979
  if (!C.value)
980
980
  return s.selectedValues;
981
- const r = (_) => n.value.includes(_.value), f = (_) => !s.staticCategories && _.every((j) => r(j));
981
+ const r = (_) => a.value.includes(_.value), g = (_) => !s.staticCategories && _.every((j) => r(j));
982
982
  return s.items.flatMap(
983
- (_) => _.items && !f(_.items) ? _.items : _
983
+ (_) => _.items && !g(_.items) ? _.items : _
984
984
  ).filter((_) => _.items ? !0 : r(_));
985
985
  }), ne = v(() => {
986
- var m, T, _, j;
987
- const r = ["automatic", "button"].includes(s.lazyLoadType), f = ((m = s.selectedValues) == null ? void 0 : m.length) > 0 && ((T = $.value) == null ? void 0 : T.length) !== ((_ = o.value) == null ? void 0 : _.length);
988
- return r && s.hasMoreItems ? !!((j = s.selectedValues) != null && j.length) : f;
986
+ var b, L, _, j;
987
+ const r = ["automatic", "button"].includes(s.lazyLoadType), g = ((b = s.selectedValues) == null ? void 0 : b.length) > 0 && ((L = $.value) == null ? void 0 : L.length) !== ((_ = o.value) == null ? void 0 : _.length);
988
+ return r && s.hasMoreItems ? !!((j = s.selectedValues) != null && j.length) : g;
989
989
  }), Ce = v(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), Re = v(
990
990
  () => l.value ? [l.value] : []
991
991
  ), De = v(
@@ -995,8 +995,8 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
995
995
  }
996
996
  ), Me = v(
997
997
  () => {
998
- var r, f;
999
- return (f = (r = a.value) == null ? void 0 : r.$children) != null && f.length ? a.value.$children : [];
998
+ var r, g;
999
+ return (g = (r = n.value) == null ? void 0 : r.$children) != null && g.length ? n.value.$children : [];
1000
1000
  }
1001
1001
  ), Pe = v(() => ({ label: p, value: I })), Ne = v(() => [
1002
1002
  ...N.value,
@@ -1010,7 +1010,7 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1010
1010
  ][r].$el.focus();
1011
1011
  }, { moveToNextElement: Ue, moveToPreviousElement: Ve, moveToFirstElement: Ge, moveToLastElement: ze } = ke(
1012
1012
  {
1013
- items: M(Ne),
1013
+ items: P(Ne),
1014
1014
  isOptionDisabled: s.isOptionDisabled,
1015
1015
  hasStaticCategories: le(s, "staticCategories")
1016
1016
  },
@@ -1021,39 +1021,39 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1021
1021
  [K.HOME]: Ge,
1022
1022
  [K.END]: ze
1023
1023
  };
1024
- return (r, f) => ce((g(), L("div", U({ class: "b-listbox-multi-select" }, se(Fe, !0)), [
1025
- ne.value ? (g(), L("div", Rt, [
1024
+ return (r, g) => ce((f(), T("div", U({ class: "b-listbox-multi-select" }, se(Fe, !0)), [
1025
+ ne.value ? (f(), T("div", Rt, [
1026
1026
  F("ul", Dt, [
1027
- (g(!0), L(Z, null, x(N.value, (m) => (g(), L("li", {
1028
- key: m.value
1027
+ (f(!0), T(Z, null, x(N.value, (b) => (f(), T("li", {
1028
+ key: b.value
1029
1029
  }, [
1030
- P(w(Je), {
1030
+ D(w(Je), {
1031
1031
  ref_for: !0,
1032
1032
  ref_key: "selectedListboxItemsRef",
1033
1033
  ref: u,
1034
- disabled: r.isOptionDisabled(m),
1035
- label: m.label,
1034
+ disabled: r.isOptionDisabled(b),
1035
+ label: b.label,
1036
1036
  condensed: "",
1037
- onClick: (T) => m.items ? ue(m) : J("select", m)
1037
+ onClick: (L) => b.items ? ue(b) : J("select", b)
1038
1038
  }, null, 8, ["disabled", "label", "onClick"])
1039
1039
  ]))), 128))
1040
1040
  ]),
1041
- f[4] || (f[4] = F("hr", { class: "b-listbox-multi-select__divider" }, null, -1))
1041
+ g[4] || (g[4] = F("hr", { class: "b-listbox-multi-select__divider" }, null, -1))
1042
1042
  ])) : W("", !0),
1043
- Ce.value ? (g(), B(w(de), {
1043
+ Ce.value ? (f(), B(w(de), {
1044
1044
  key: 1,
1045
1045
  ref_key: "selectAllListboxItemsRef",
1046
1046
  ref: l,
1047
1047
  class: "b-listbox-multi-select__option"
1048
1048
  }, {
1049
1049
  default: O(() => [
1050
- P(w(Se), {
1050
+ D(w(Se), {
1051
1051
  "aria-label": p.value,
1052
1052
  "model-value": w(I),
1053
1053
  indeterminate: w(V),
1054
1054
  "onUpdate:modelValue": w(Q)
1055
1055
  }, null, 8, ["aria-label", "model-value", "indeterminate", "onUpdate:modelValue"]),
1056
- P(w(oe), {
1056
+ D(w(oe), {
1057
1057
  el: "span",
1058
1058
  "aria-hidden": "true"
1059
1059
  }, {
@@ -1065,27 +1065,27 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1065
1065
  ]),
1066
1066
  _: 1
1067
1067
  }, 512)) : W("", !0),
1068
- Ce.value ? (g(), L("hr", Mt)) : W("", !0),
1069
- P(w(kt), {
1068
+ Ce.value ? (f(), T("hr", Mt)) : W("", !0),
1069
+ D(w(kt), {
1070
1070
  ref_key: "listboxItemsRef",
1071
- ref: a,
1071
+ ref: n,
1072
1072
  items: r.items,
1073
1073
  "is-option-disabled": r.isOptionDisabled,
1074
1074
  "is-multi-level": w(C),
1075
1075
  "static-categories": r.staticCategories,
1076
1076
  searching: r.searching,
1077
- "selected-items-list": n.value,
1078
- onToggleCheckboxSelection: f[0] || (f[0] = (m) => J("select", m)),
1077
+ "selected-items-list": a.value,
1078
+ onToggleCheckboxSelection: g[0] || (g[0] = (b) => J("select", b)),
1079
1079
  onSelectCategory: me,
1080
1080
  onUnselectCategory: ue,
1081
- onSpacePressed: f[1] || (f[1] = (m) => J(w(d).SPACE, m)),
1082
- onTabPressed: f[2] || (f[2] = (m) => J(w(d).TAB, m)),
1083
- onEnterPressed: f[3] || (f[3] = (m) => J(w(d).ENTER, m))
1081
+ onSpacePressed: g[1] || (g[1] = (b) => J(w(d).SPACE, b)),
1082
+ onTabPressed: g[2] || (g[2] = (b) => J(w(d).TAB, b)),
1083
+ onEnterPressed: g[3] || (g[3] = (b) => J(w(d).ENTER, b))
1084
1084
  }, re({ _: 2 }, [
1085
- x(w(i), (m, T) => ({
1086
- name: T,
1085
+ x(w(i), (b, L) => ({
1086
+ name: L,
1087
1087
  fn: O((_) => [
1088
- Y(r.$slots, T, te(ie(_)), void 0, !0)
1088
+ Y(r.$slots, L, te(ie(_)), void 0, !0)
1089
1089
  ])
1090
1090
  }))
1091
1091
  ]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list"])
@@ -1093,7 +1093,7 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1093
1093
  [w(pe)]
1094
1094
  ]);
1095
1095
  }
1096
- }), _e = /* @__PURE__ */ q(Nt, [["__scopeId", "data-v-2d553b90"]]), Te = {
1096
+ }), _e = /* @__PURE__ */ q(Nt, [["__scopeId", "data-v-2d553b90"]]), Le = {
1097
1097
  "en-US": {
1098
1098
  loading: "Loading",
1099
1099
  showMore: "Show more"
@@ -1117,7 +1117,7 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1117
1117
  BentoLoadingButton: et
1118
1118
  },
1119
1119
  directives: { BentoKeyboardNavigationDirective: pe },
1120
- i18n: { messages: Te },
1120
+ i18n: { messages: Le },
1121
1121
  props: {
1122
1122
  /**
1123
1123
  * Defines a string value that labels an interactive element.
@@ -1163,7 +1163,7 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1163
1163
  required: !0
1164
1164
  },
1165
1165
  /**
1166
- * Indicates if new options are loading.
1166
+ * Indicates if new options are lazy loading.
1167
1167
  */
1168
1168
  loading: { type: Boolean, default: !1 },
1169
1169
  /**
@@ -1176,6 +1176,10 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1176
1176
  default: ee.NONE,
1177
1177
  validator: (e) => Object.values(ee).includes(e)
1178
1178
  },
1179
+ /**
1180
+ * Indicates the listbox is loading filtered items.
1181
+ */
1182
+ componentLoading: { type: Boolean, default: !1 },
1179
1183
  /**
1180
1184
  * If enabled, the user will be able to select multiple items.
1181
1185
  */
@@ -1222,31 +1226,31 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1222
1226
  d.TAB
1223
1227
  ],
1224
1228
  setup(e, { emit: t, slots: s }) {
1225
- const c = M([]), b = le(e, "items"), { t: i } = ye({ messages: Te }), l = v(() => e.lazyLoadType !== ee.AUTOMATIC), u = v(() => e.lazyLoadType === ee.AUTOMATIC), a = () => {
1229
+ const c = P([]), m = le(e, "items"), { t: i } = ye({ messages: Le }), l = v(() => e.lazyLoadType !== ee.AUTOMATIC), u = v(() => e.lazyLoadType === ee.AUTOMATIC), n = () => {
1226
1230
  var N;
1227
1231
  return typeof (e == null ? void 0 : e.virtualScroll) == "object" && ((N = e == null ? void 0 : e.virtualScroll) != null && N.itemHeight) ? e.virtualScroll.itemHeight : wt;
1228
1232
  }, {
1229
- containerRef: n,
1233
+ containerRef: a,
1230
1234
  containerProps: C,
1231
1235
  onScroll: o,
1232
1236
  list: S,
1233
1237
  wrapperProps: R
1234
- } = st(b, {
1235
- itemHeight: a(),
1238
+ } = st(m, {
1239
+ itemHeight: n(),
1236
1240
  // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1237
1241
  disabled: (e == null ? void 0 : e.multiple) || (e == null ? void 0 : e.virtualScroll) === !1 || (e == null ? void 0 : e.lazyLoadType) !== "none"
1238
1242
  }), $ = v(
1239
- () => l.value ? "true" : void 0
1240
- ), D = v(
1241
- () => l.value && e.loading ? "true" : "false"
1243
+ () => e.componentLoading !== void 0 || l.value ? "true" : void 0
1244
+ ), M = v(
1245
+ () => l.value && e.loading || e.componentLoading ? "true" : "false"
1242
1246
  ), p = v(
1243
- () => l.value ? "polite" : void 0
1247
+ () => l.value || e.componentLoading !== void 0 ? "polite" : void 0
1244
1248
  ), y = (N) => (ne) => {
1245
1249
  t(N, ne);
1246
1250
  }, h = () => {
1247
1251
  t(d.SHOW_MORE);
1248
1252
  }, k = Xe(() => {
1249
- const N = n.value;
1253
+ const N = a.value;
1250
1254
  if (!N)
1251
1255
  return;
1252
1256
  const ne = Math.round(N.scrollTop) + N.clientHeight >= N.scrollHeight;
@@ -1271,11 +1275,11 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1271
1275
  };
1272
1276
  return {
1273
1277
  // Refs
1274
- listboxRef: n,
1278
+ listboxRef: a,
1275
1279
  listboxItemRef: c,
1276
1280
  // a11y
1277
1281
  ariaAtomic: $,
1278
- ariaBusy: D,
1282
+ ariaBusy: M,
1279
1283
  ariaLive: p,
1280
1284
  // Values
1281
1285
  containerProps: C,
@@ -1299,18 +1303,21 @@ const kt = /* @__PURE__ */ q(Ot, [["render", $t], ["__scopeId", "data-v-25938a72
1299
1303
  }
1300
1304
  }), Vt = ["id", "aria-busy", "aria-atomic", "aria-label", "aria-live"], Gt = {
1301
1305
  key: 0,
1302
- class: "b-listbox__empty-search-message"
1306
+ class: "b-listbox__loading-filtered-items"
1303
1307
  }, zt = {
1308
+ key: 1,
1309
+ class: "b-listbox__empty-search-message"
1310
+ }, Ft = {
1304
1311
  key: 2,
1305
1312
  class: "b-listbox__lazy-load"
1306
- }, Ft = {
1313
+ }, Yt = {
1307
1314
  key: 3,
1308
1315
  class: "b-listbox__lazy-load"
1309
1316
  };
1310
- function Yt(e, t, s, c, b, i) {
1317
+ function xt(e, t, s, c, m, i) {
1311
1318
  var R;
1312
- const l = A("bento-empty-state"), u = A("bento-typography"), a = A("bento-listbox-multi-select"), n = A("bento-listbox-single-select"), C = A("bento-loading-button"), o = A("bento-loading-indicator"), S = Ae("bento-keyboard-navigation-directive");
1313
- return ce((g(), L("div", {
1319
+ const l = A("bento-loading-indicator"), u = A("bento-empty-state"), n = A("bento-typography"), a = A("bento-listbox-multi-select"), C = A("bento-listbox-single-select"), o = A("bento-loading-button"), S = Ae("bento-keyboard-navigation-directive");
1320
+ return ce((f(), T("div", {
1314
1321
  id: e.id,
1315
1322
  ref: "listboxRef",
1316
1323
  class: "b-listbox",
@@ -1324,8 +1331,10 @@ function Yt(e, t, s, c, b, i) {
1324
1331
  onScroll: t[0] || (t[0] = (...$) => e.onListboxContainerScroll && e.onListboxContainerScroll(...$))
1325
1332
  }, [
1326
1333
  F("div", te(ie(e.wrapperProps)), [
1327
- e.isSearchResultEmpty ? (g(), L("div", Gt, [
1328
- e.emptyState ? (g(), B(l, te(U({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (g(), B(u, {
1334
+ e.componentLoading ? (f(), T("div", Gt, [
1335
+ D(l)
1336
+ ])) : e.isSearchResultEmpty ? (f(), T("div", zt, [
1337
+ e.emptyState ? (f(), B(u, te(U({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (f(), B(n, {
1329
1338
  key: 1,
1330
1339
  el: "span"
1331
1340
  }, {
@@ -1334,8 +1343,8 @@ function Yt(e, t, s, c, b, i) {
1334
1343
  ]),
1335
1344
  _: 1
1336
1345
  }))
1337
- ])) : (g(), L(Z, { key: 1 }, [
1338
- e.multiple ? (g(), B(a, U({
1346
+ ])) : (f(), T(Z, { key: 2 }, [
1347
+ e.multiple ? (f(), B(a, U({
1339
1348
  key: 0,
1340
1349
  ref: "listboxItemRef",
1341
1350
  "has-more-items": e.hasMoreItems,
@@ -1346,13 +1355,13 @@ function Yt(e, t, s, c, b, i) {
1346
1355
  searching: e.searching,
1347
1356
  "is-option-disabled": e.isOptionDisabled
1348
1357
  }, se(e.listboxListeners)), re({ _: 2 }, [
1349
- x(e.slots, ($, D) => ({
1350
- name: D,
1358
+ x(e.slots, ($, M) => ({
1359
+ name: M,
1351
1360
  fn: O((p) => [
1352
- Y(e.$slots, D, te(ie(p)), void 0, !0)
1361
+ Y(e.$slots, M, te(ie(p)), void 0, !0)
1353
1362
  ])
1354
1363
  }))
1355
- ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (g(), B(n, U({
1364
+ ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (f(), B(C, U({
1356
1365
  key: 1,
1357
1366
  ref: "listboxItemRef",
1358
1367
  items: e.virtualisedItems,
@@ -1360,15 +1369,15 @@ function Yt(e, t, s, c, b, i) {
1360
1369
  "static-categories": e.staticCategories,
1361
1370
  "is-option-disabled": e.isOptionDisabled
1362
1371
  }, se(e.listboxListeners)), re({ _: 2 }, [
1363
- x(e.slots, ($, D) => ({
1364
- name: D,
1372
+ x(e.slots, ($, M) => ({
1373
+ name: M,
1365
1374
  fn: O((p) => [
1366
- Y(e.$slots, D, te(ie(p)), void 0, !0)
1375
+ Y(e.$slots, M, te(ie(p)), void 0, !0)
1367
1376
  ])
1368
1377
  }))
1369
1378
  ]), 1040, ["items", "selected-value", "static-categories", "is-option-disabled"])),
1370
- e.shouldDisplayShowMoreButton ? (g(), L("div", zt, [
1371
- P(C, {
1379
+ e.shouldDisplayShowMoreButton ? (f(), T("div", Ft, [
1380
+ D(o, {
1372
1381
  state: e.loadingButtonState,
1373
1382
  variant: "secondary",
1374
1383
  onClickCapture: e.emitShowMore
@@ -1378,8 +1387,8 @@ function Yt(e, t, s, c, b, i) {
1378
1387
  ]),
1379
1388
  _: 1
1380
1389
  }, 8, ["state", "onClickCapture"])
1381
- ])) : e.loading ? (g(), L("div", Ft, [
1382
- P(o)
1390
+ ])) : e.loading ? (f(), T("div", Yt, [
1391
+ D(l)
1383
1392
  ])) : W("", !0)
1384
1393
  ], 64))
1385
1394
  ], 16)
@@ -1387,7 +1396,7 @@ function Yt(e, t, s, c, b, i) {
1387
1396
  [S]
1388
1397
  ]);
1389
1398
  }
1390
- const ns = /* @__PURE__ */ q(Ut, [["render", Yt], ["__scopeId", "data-v-3d72f45a"]]), ge = (e, t) => {
1399
+ const as = /* @__PURE__ */ q(Ut, [["render", xt], ["__scopeId", "data-v-7b74fe4e"]]), ge = (e, t) => {
1391
1400
  for (const s of e) {
1392
1401
  if (s.value === t)
1393
1402
  return s;
@@ -1398,28 +1407,28 @@ const ns = /* @__PURE__ */ q(Ut, [["render", Yt], ["__scopeId", "data-v-3d72f45a
1398
1407
  }
1399
1408
  }
1400
1409
  return null;
1401
- }, as = (e, t, s) => {
1402
- const c = M([]), b = M(), i = (a) => {
1403
- b.value = s.value ? a.map(({ value: n }) => n) : a[0].value;
1404
- }, l = (a) => {
1405
- c.value = a, i(a);
1410
+ }, is = (e, t, s) => {
1411
+ const c = P([]), m = P(), i = (n) => {
1412
+ s.value ? m.value = n.map(({ value: a }) => a) : m.value = n.length > 0 ? n[0].value : null;
1413
+ }, l = (n) => {
1414
+ c.value = n, i(n);
1406
1415
  }, u = () => {
1407
- c.value = [], b.value = null;
1416
+ c.value = [], m.value = null;
1408
1417
  };
1409
1418
  return Oe(
1410
1419
  () => t.value,
1411
1420
  () => {
1412
- if (!t.value) {
1421
+ if (!t.value && t.value !== 0) {
1413
1422
  u();
1414
1423
  return;
1415
1424
  }
1416
- const a = !Array.isArray(t.value), n = [...c.value];
1425
+ const n = !Array.isArray(t.value), a = [...c.value];
1417
1426
  u();
1418
1427
  const C = (o) => {
1419
1428
  let S = ge(e.value, o);
1420
- S || (S = ge(n, o)), S || (S = { value: o, label: o.toString() }), c.value.push(S);
1429
+ S || (S = ge(a, o)), S || (S = { value: o, label: o.toString() }), c.value.push(S);
1421
1430
  };
1422
- if (a) {
1431
+ if (n) {
1423
1432
  const o = t.value;
1424
1433
  C(o), i(c.value);
1425
1434
  return;
@@ -1430,7 +1439,7 @@ const ns = /* @__PURE__ */ q(Ut, [["render", Yt], ["__scopeId", "data-v-3d72f45a
1430
1439
  ), {
1431
1440
  // Values
1432
1441
  cachedSelectedListboxOptions: c,
1433
- cachedListboxSelectedValues: b,
1442
+ cachedListboxSelectedValues: m,
1434
1443
  // Methods
1435
1444
  resetCache: u,
1436
1445
  setCachedValues: l
@@ -1439,8 +1448,8 @@ const ns = /* @__PURE__ */ q(Ut, [["render", Yt], ["__scopeId", "data-v-3d72f45a
1439
1448
  export {
1440
1449
  ee as B,
1441
1450
  d as a,
1442
- ns as b,
1443
- as as c,
1451
+ as as b,
1452
+ is as c,
1444
1453
  Bt as u
1445
1454
  };
1446
- //# sourceMappingURL=use-cached-selected-values.DDP7LJoI.js.map
1455
+ //# sourceMappingURL=use-cached-selected-values.DmW8XRgJ.js.map