@adyen/bento-vue3 1.59.0 → 1.60.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 (578) hide show
  1. package/package.json +10 -6
  2. package/dist/@types/components.d.ts +0 -201
  3. package/dist/@types/index.d.ts +0 -17796
  4. package/dist/accordion.js +0 -6
  5. package/dist/accordion.js.map +0 -1
  6. package/dist/action-bar.js +0 -5
  7. package/dist/action-bar.js.map +0 -1
  8. package/dist/alert.js +0 -8
  9. package/dist/alert.js.map +0 -1
  10. package/dist/assets/accordion-item.css +0 -1
  11. package/dist/assets/action-bar.css +0 -1
  12. package/dist/assets/alert.css +0 -1
  13. package/dist/assets/avatar.css +0 -1
  14. package/dist/assets/base-button.css +0 -1
  15. package/dist/assets/base-modal.css +0 -1
  16. package/dist/assets/button-actions-with-menu.css +0 -1
  17. package/dist/assets/button-actions.css +0 -1
  18. package/dist/assets/button.css +0 -1
  19. package/dist/assets/calendar.css +0 -1
  20. package/dist/assets/card.css +0 -1
  21. package/dist/assets/checkbox-group.css +0 -1
  22. package/dist/assets/checkbox-input.css +0 -1
  23. package/dist/assets/checkbox.css +0 -1
  24. package/dist/assets/chip.css +0 -1
  25. package/dist/assets/code-snippet.css +0 -1
  26. package/dist/assets/controls-group.css +0 -1
  27. package/dist/assets/copy.css +0 -1
  28. package/dist/assets/country.css +0 -1
  29. package/dist/assets/currency.css +0 -1
  30. package/dist/assets/dashboard-section.css +0 -1
  31. package/dist/assets/dashed-underline.css +0 -1
  32. package/dist/assets/data-grid-template.css +0 -1
  33. package/dist/assets/data-grid.css +0 -1
  34. package/dist/assets/date-picker.css +0 -1
  35. package/dist/assets/date-range-picker.css +0 -1
  36. package/dist/assets/date.css +0 -1
  37. package/dist/assets/dialog-page.css +0 -1
  38. package/dist/assets/divider.css +0 -1
  39. package/dist/assets/dropdown-default-textbox.css +0 -1
  40. package/dist/assets/dropdown-tag.css +0 -1
  41. package/dist/assets/dropdown.css +0 -1
  42. package/dist/assets/empty-state.css +0 -1
  43. package/dist/assets/error-message.css +0 -1
  44. package/dist/assets/file-uploader.css +0 -1
  45. package/dist/assets/filter-bar.css +0 -1
  46. package/dist/assets/fixed-scroller.css +0 -1
  47. package/dist/assets/focus-trap.css +0 -1
  48. package/dist/assets/footer-actions.css +0 -1
  49. package/dist/assets/form-layout-title.css +0 -1
  50. package/dist/assets/grid-layout.css +0 -1
  51. package/dist/assets/header-with-views.css +0 -1
  52. package/dist/assets/header.css +0 -1
  53. package/dist/assets/info-icon-with-popover.css +0 -1
  54. package/dist/assets/info-icon.css +0 -1
  55. package/dist/assets/input-field-password.css +0 -1
  56. package/dist/assets/input-field-phone-number.css +0 -1
  57. package/dist/assets/input-field.css +0 -1
  58. package/dist/assets/inspector.css +0 -1
  59. package/dist/assets/layout-row.css +0 -1
  60. package/dist/assets/link.css +0 -1
  61. package/dist/assets/listbox-option-tag.css +0 -1
  62. package/dist/assets/loading-indicator.css +0 -1
  63. package/dist/assets/main.css +0 -1
  64. package/dist/assets/menu.css +0 -1
  65. package/dist/assets/modal-fullscreen.css +0 -1
  66. package/dist/assets/pagination.css +0 -1
  67. package/dist/assets/payment-method.css +0 -1
  68. package/dist/assets/popover.css +0 -1
  69. package/dist/assets/popper-container.css +0 -1
  70. package/dist/assets/promo-banner.css +0 -1
  71. package/dist/assets/radio-group.css +0 -1
  72. package/dist/assets/radio-input.css +0 -1
  73. package/dist/assets/rich-text-editor.css +0 -1
  74. package/dist/assets/search-bar.css +0 -1
  75. package/dist/assets/secondary-nav.css +0 -1
  76. package/dist/assets/segmented-control.css +0 -1
  77. package/dist/assets/selection-card-group.css +0 -1
  78. package/dist/assets/sidepanel.css +0 -1
  79. package/dist/assets/status.css +0 -1
  80. package/dist/assets/step.css +0 -1
  81. package/dist/assets/structured-list-item.css +0 -1
  82. package/dist/assets/summary-grid.css +0 -1
  83. package/dist/assets/tabs.css +0 -1
  84. package/dist/assets/tag.css +0 -1
  85. package/dist/assets/teleport.css +0 -1
  86. package/dist/assets/textarea.css +0 -1
  87. package/dist/assets/timeline-item.css +0 -1
  88. package/dist/assets/toast.css +0 -1
  89. package/dist/assets/toggle-button.css +0 -1
  90. package/dist/assets/toggle.css +0 -1
  91. package/dist/assets/tooltip.css +0 -1
  92. package/dist/assets/tutorial.css +0 -1
  93. package/dist/assets/typography.css +0 -1
  94. package/dist/assets/use-cached-selected-values.css +0 -1
  95. package/dist/avatar.js +0 -5
  96. package/dist/avatar.js.map +0 -1
  97. package/dist/button.js +0 -16
  98. package/dist/button.js.map +0 -1
  99. package/dist/card.js +0 -7
  100. package/dist/card.js.map +0 -1
  101. package/dist/checkbox.js +0 -11
  102. package/dist/checkbox.js.map +0 -1
  103. package/dist/chip.js +0 -5
  104. package/dist/chip.js.map +0 -1
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +0 -5
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +0 -1
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +0 -5
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +0 -1
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +0 -5
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +0 -1
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +0 -5
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +0 -1
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +0 -5
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +0 -1
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +0 -5
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +0 -1
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +0 -5
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +0 -1
  119. package/dist/chunks/4-generic-use.D82y3n39.js +0 -5
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +0 -1
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
  123. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -10
  124. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +0 -1
  125. package/dist/chunks/accordion-item.CihL7JaZ.js +0 -142
  126. package/dist/chunks/accordion-item.CihL7JaZ.js.map +0 -1
  127. package/dist/chunks/action-bar.DHFGXPzd.js +0 -203
  128. package/dist/chunks/action-bar.DHFGXPzd.js.map +0 -1
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +0 -5
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +0 -1
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +0 -5
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +0 -1
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +0 -5
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +0 -1
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +0 -5
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +0 -1
  137. package/dist/chunks/alert.CjegN2iG.js +0 -169
  138. package/dist/chunks/alert.CjegN2iG.js.map +0 -1
  139. package/dist/chunks/aria-label.CaUURpnB.js +0 -13
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +0 -1
  141. package/dist/chunks/avatar.B0-9jC6H.js +0 -94
  142. package/dist/chunks/avatar.B0-9jC6H.js.map +0 -1
  143. package/dist/chunks/base-button.DdNFlbgH.js +0 -115
  144. package/dist/chunks/base-button.DdNFlbgH.js.map +0 -1
  145. package/dist/chunks/base-modal.BXdrZf3U.js +0 -504
  146. package/dist/chunks/base-modal.BXdrZf3U.js.map +0 -1
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +0 -5
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +0 -1
  149. package/dist/chunks/bin.CA6UQCNZ.js +0 -37
  150. package/dist/chunks/bin.CA6UQCNZ.js.map +0 -1
  151. package/dist/chunks/button-actions-with-menu.DfnPv97A.js +0 -174
  152. package/dist/chunks/button-actions-with-menu.DfnPv97A.js.map +0 -1
  153. package/dist/chunks/button-actions.WnxN4KnV.js +0 -264
  154. package/dist/chunks/button-actions.WnxN4KnV.js.map +0 -1
  155. package/dist/chunks/button.CVZJTZv0.js +0 -120
  156. package/dist/chunks/button.CVZJTZv0.js.map +0 -1
  157. package/dist/chunks/calendar.BzN254pQ.js +0 -1288
  158. package/dist/chunks/calendar.BzN254pQ.js.map +0 -1
  159. package/dist/chunks/card.PFtc1o__.js +0 -213
  160. package/dist/chunks/card.PFtc1o__.js.map +0 -1
  161. package/dist/chunks/checkbox-group.Dsiyb1cX.js +0 -192
  162. package/dist/chunks/checkbox-group.Dsiyb1cX.js.map +0 -1
  163. package/dist/chunks/checkbox-input.DVayucaL.js +0 -168
  164. package/dist/chunks/checkbox-input.DVayucaL.js.map +0 -1
  165. package/dist/chunks/checkbox.DeNqOQ8F.js +0 -253
  166. package/dist/chunks/checkbox.DeNqOQ8F.js.map +0 -1
  167. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +0 -44
  168. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +0 -1
  169. package/dist/chunks/checkmark-small.D7l69yBf.js +0 -29
  170. package/dist/chunks/checkmark-small.D7l69yBf.js.map +0 -1
  171. package/dist/chunks/chevron-left.BF63HtOH.js +0 -52
  172. package/dist/chunks/chevron-left.BF63HtOH.js.map +0 -1
  173. package/dist/chunks/chevron-up.-0oLlHmh.js +0 -52
  174. package/dist/chunks/chevron-up.-0oLlHmh.js.map +0 -1
  175. package/dist/chunks/chip.BVCzNGaI.js +0 -71
  176. package/dist/chunks/chip.BVCzNGaI.js.map +0 -1
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +0 -23
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +0 -1
  179. package/dist/chunks/code-snippet.91V1hyL-.js +0 -334
  180. package/dist/chunks/code-snippet.91V1hyL-.js.map +0 -1
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +0 -14628
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +0 -1
  183. package/dist/chunks/controls-group.DzFmJYYp.js +0 -98
  184. package/dist/chunks/controls-group.DzFmJYYp.js.map +0 -1
  185. package/dist/chunks/copy.BNFlTYMb.js +0 -156
  186. package/dist/chunks/copy.BNFlTYMb.js.map +0 -1
  187. package/dist/chunks/country.BhAcCmRx.js +0 -99
  188. package/dist/chunks/country.BhAcCmRx.js.map +0 -1
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +0 -1
  191. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js +0 -29
  192. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +0 -1
  193. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +0 -44
  194. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +0 -1
  195. package/dist/chunks/cross-small.CFrBIeYK.js +0 -29
  196. package/dist/chunks/cross-small.CFrBIeYK.js.map +0 -1
  197. package/dist/chunks/cross.CbLEjiVy.js +0 -29
  198. package/dist/chunks/cross.CbLEjiVy.js.map +0 -1
  199. package/dist/chunks/currency.DagWnTry.js +0 -109
  200. package/dist/chunks/currency.DagWnTry.js.map +0 -1
  201. package/dist/chunks/dashboard-section.BTJ8h5Kd.js +0 -165
  202. package/dist/chunks/dashboard-section.BTJ8h5Kd.js.map +0 -1
  203. package/dist/chunks/dashed-underline.BpSS0BTl.js +0 -98
  204. package/dist/chunks/dashed-underline.BpSS0BTl.js.map +0 -1
  205. package/dist/chunks/data-grid-template.CnrbFvb3.js +0 -111
  206. package/dist/chunks/data-grid-template.CnrbFvb3.js.map +0 -1
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +0 -5
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +0 -1
  209. package/dist/chunks/data-grid.PAFw8voO.js +0 -3646
  210. package/dist/chunks/data-grid.PAFw8voO.js.map +0 -1
  211. package/dist/chunks/date-input.BqBdAO1E.js +0 -17
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  213. package/dist/chunks/date-picker.CSn6F3aG.js +0 -315
  214. package/dist/chunks/date-picker.CSn6F3aG.js.map +0 -1
  215. package/dist/chunks/date-range-picker.ByQ_yM6z.js +0 -1170
  216. package/dist/chunks/date-range-picker.ByQ_yM6z.js.map +0 -1
  217. package/dist/chunks/date.CKXySBQv.js +0 -995
  218. package/dist/chunks/date.CKXySBQv.js.map +0 -1
  219. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  220. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  221. package/dist/chunks/dialog-page.C72BX6So.js +0 -175
  222. package/dist/chunks/dialog-page.C72BX6So.js.map +0 -1
  223. package/dist/chunks/directive.Cbdox5VL.js +0 -23
  224. package/dist/chunks/directive.Cbdox5VL.js.map +0 -1
  225. package/dist/chunks/divider.qUOSAbU6.js +0 -33
  226. package/dist/chunks/divider.qUOSAbU6.js.map +0 -1
  227. package/dist/chunks/dot.BW-xtyjC.js +0 -29
  228. package/dist/chunks/dot.BW-xtyjC.js.map +0 -1
  229. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +0 -419
  230. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +0 -1
  231. package/dist/chunks/dropdown-tag.D_oUoZBc.js +0 -202
  232. package/dist/chunks/dropdown-tag.D_oUoZBc.js.map +0 -1
  233. package/dist/chunks/dropdown.B8LbzSzW.js +0 -936
  234. package/dist/chunks/dropdown.B8LbzSzW.js.map +0 -1
  235. package/dist/chunks/empty-state.BGWjUH6G.js +0 -185
  236. package/dist/chunks/empty-state.BGWjUH6G.js.map +0 -1
  237. package/dist/chunks/error-message.BzDQxHUy.js +0 -158
  238. package/dist/chunks/error-message.BzDQxHUy.js.map +0 -1
  239. package/dist/chunks/es6.BA9GH7QZ.js +0 -11
  240. package/dist/chunks/es6.BA9GH7QZ.js.map +0 -1
  241. package/dist/chunks/events.FNmSWp_P.js +0 -52
  242. package/dist/chunks/events.FNmSWp_P.js.map +0 -1
  243. package/dist/chunks/expand.DusW7F7p.js +0 -33
  244. package/dist/chunks/expand.DusW7F7p.js.map +0 -1
  245. package/dist/chunks/file-uploader.HMZfzgaO.js +0 -2280
  246. package/dist/chunks/file-uploader.HMZfzgaO.js.map +0 -1
  247. package/dist/chunks/filter-bar.CKxLJDQE.js +0 -2976
  248. package/dist/chunks/filter-bar.CKxLJDQE.js.map +0 -1
  249. package/dist/chunks/fixed-scroller.BjxA_R63.js +0 -147
  250. package/dist/chunks/fixed-scroller.BjxA_R63.js.map +0 -1
  251. package/dist/chunks/focus-trap.BdrEB4Ld.js +0 -500
  252. package/dist/chunks/focus-trap.BdrEB4Ld.js.map +0 -1
  253. package/dist/chunks/footer-actions.DqKdjjjh.js +0 -110
  254. package/dist/chunks/footer-actions.DqKdjjjh.js.map +0 -1
  255. package/dist/chunks/form-layout-title.CsmjzAje.js +0 -206
  256. package/dist/chunks/form-layout-title.CsmjzAje.js.map +0 -1
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +0 -5
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +0 -1
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +0 -32
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +0 -1
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +0 -1735
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  263. package/dist/chunks/get-slot-text.DQlZEsId.js +0 -12
  264. package/dist/chunks/get-slot-text.DQlZEsId.js.map +0 -1
  265. package/dist/chunks/grid-layout.BTLE3rac.js +0 -114
  266. package/dist/chunks/grid-layout.BTLE3rac.js.map +0 -1
  267. package/dist/chunks/header-with-views.BVcLQi-H.js +0 -2354
  268. package/dist/chunks/header-with-views.BVcLQi-H.js.map +0 -1
  269. package/dist/chunks/header.CYPznLHg.js +0 -253
  270. package/dist/chunks/header.CYPznLHg.js.map +0 -1
  271. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  272. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  273. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +0 -47
  274. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +0 -1
  275. package/dist/chunks/index.BDuTpjD8.js +0 -40
  276. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  277. package/dist/chunks/index.BxBB1rsx.js +0 -15
  278. package/dist/chunks/index.BxBB1rsx.js.map +0 -1
  279. package/dist/chunks/index.CVpo3mlK.js +0 -528
  280. package/dist/chunks/index.CVpo3mlK.js.map +0 -1
  281. package/dist/chunks/index.CWuzEfiV.js +0 -6
  282. package/dist/chunks/index.CWuzEfiV.js.map +0 -1
  283. package/dist/chunks/index.DD7TppDb.js +0 -10
  284. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  285. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js +0 -97
  286. package/dist/chunks/info-icon-with-popover.BUtJRYXy.js.map +0 -1
  287. package/dist/chunks/info-icon.MO6y9Dyv.js +0 -45
  288. package/dist/chunks/info-icon.MO6y9Dyv.js.map +0 -1
  289. package/dist/chunks/info.HK3R7Drc.js +0 -44
  290. package/dist/chunks/info.HK3R7Drc.js.map +0 -1
  291. package/dist/chunks/input-field-password.c6WXpF9U.js +0 -366
  292. package/dist/chunks/input-field-password.c6WXpF9U.js.map +0 -1
  293. package/dist/chunks/input-field-phone-number.DQxF-6wT.js +0 -3106
  294. package/dist/chunks/input-field-phone-number.DQxF-6wT.js.map +0 -1
  295. package/dist/chunks/input-field.BDEEGU2t.js +0 -298
  296. package/dist/chunks/input-field.BDEEGU2t.js.map +0 -1
  297. package/dist/chunks/inspector.types.BQnVv5HX.js +0 -187
  298. package/dist/chunks/inspector.types.BQnVv5HX.js.map +0 -1
  299. package/dist/chunks/internal-error.BLZodVBE.js +0 -5
  300. package/dist/chunks/internal-error.BLZodVBE.js.map +0 -1
  301. package/dist/chunks/internal-error.BmrwJFpR.js +0 -5
  302. package/dist/chunks/internal-error.BmrwJFpR.js.map +0 -1
  303. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js +0 -66
  304. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +0 -1
  305. package/dist/chunks/layout-row.CRRLYA03.js +0 -100
  306. package/dist/chunks/layout-row.CRRLYA03.js.map +0 -1
  307. package/dist/chunks/link.CTH1xj0i.js +0 -116
  308. package/dist/chunks/link.CTH1xj0i.js.map +0 -1
  309. package/dist/chunks/listbox-option-tag.CTipR05e.js +0 -55
  310. package/dist/chunks/listbox-option-tag.CTipR05e.js.map +0 -1
  311. package/dist/chunks/loading-indicator.DEepb9Wl.js +0 -44
  312. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +0 -1
  313. package/dist/chunks/menu.HVsIOPzt.js +0 -768
  314. package/dist/chunks/menu.HVsIOPzt.js.map +0 -1
  315. package/dist/chunks/modal-fullscreen.CN1dCmU-.js +0 -270
  316. package/dist/chunks/modal-fullscreen.CN1dCmU-.js.map +0 -1
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +0 -5
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +0 -1
  319. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js +0 -501
  320. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang._xN4vNxW.js.map +0 -1
  321. package/dist/chunks/no-results-found.Bg_ZcEid.js +0 -5
  322. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +0 -1
  323. package/dist/chunks/no-results-found.BqvYsBR6.js +0 -5
  324. package/dist/chunks/no-results-found.BqvYsBR6.js.map +0 -1
  325. package/dist/chunks/notifications-cleared.BMZk37uf.js +0 -5
  326. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +0 -1
  327. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +0 -5
  328. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +0 -1
  329. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  330. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  331. package/dist/chunks/page-not-found.COJLPVaU.js +0 -5
  332. package/dist/chunks/page-not-found.COJLPVaU.js.map +0 -1
  333. package/dist/chunks/page-not-found.DWW6W-PZ.js +0 -5
  334. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +0 -1
  335. package/dist/chunks/pagination.Cv-jL5MP.js +0 -461
  336. package/dist/chunks/pagination.Cv-jL5MP.js.map +0 -1
  337. package/dist/chunks/payment-method.eazefwm6.js +0 -125
  338. package/dist/chunks/payment-method.eazefwm6.js.map +0 -1
  339. package/dist/chunks/payment-method.types.BqtH7RM2.js +0 -5
  340. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +0 -1
  341. package/dist/chunks/planned-maintenance.C61sWB9h.js +0 -5
  342. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +0 -1
  343. package/dist/chunks/planned-maintenance.jmWYTdet.js +0 -5
  344. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +0 -1
  345. package/dist/chunks/popover.sXC1vaC4.js +0 -350
  346. package/dist/chunks/popover.sXC1vaC4.js.map +0 -1
  347. package/dist/chunks/popper-container.CWgM0skS.js +0 -1396
  348. package/dist/chunks/popper-container.CWgM0skS.js.map +0 -1
  349. package/dist/chunks/popper-container.types.BCZMbVFD.js +0 -9
  350. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +0 -1
  351. package/dist/chunks/promo-banner.CoB1tBCC.js +0 -126
  352. package/dist/chunks/promo-banner.CoB1tBCC.js.map +0 -1
  353. package/dist/chunks/radio-group.BzLVfoL0.js +0 -321
  354. package/dist/chunks/radio-group.BzLVfoL0.js.map +0 -1
  355. package/dist/chunks/radio-input.DKfQGxtp.js +0 -96
  356. package/dist/chunks/radio-input.DKfQGxtp.js.map +0 -1
  357. package/dist/chunks/referrals.BvtT-kQS.js +0 -5
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +0 -1
  359. package/dist/chunks/referrals.aX8WZigH.js +0 -5
  360. package/dist/chunks/referrals.aX8WZigH.js.map +0 -1
  361. package/dist/chunks/refresh.C20ROVDS.js +0 -29
  362. package/dist/chunks/refresh.C20ROVDS.js.map +0 -1
  363. package/dist/chunks/resize.Bqks3WUm.js +0 -15
  364. package/dist/chunks/resize.Bqks3WUm.js.map +0 -1
  365. package/dist/chunks/rich-text-editor.C5RIGjDX.js +0 -6221
  366. package/dist/chunks/rich-text-editor.C5RIGjDX.js.map +0 -1
  367. package/dist/chunks/search-bar.C8bAeztI.js +0 -114
  368. package/dist/chunks/search-bar.C8bAeztI.js.map +0 -1
  369. package/dist/chunks/search.CW_aTqip.js +0 -44
  370. package/dist/chunks/search.CW_aTqip.js.map +0 -1
  371. package/dist/chunks/secondary-nav.BZF_9ztn.js +0 -137
  372. package/dist/chunks/secondary-nav.BZF_9ztn.js.map +0 -1
  373. package/dist/chunks/segmented-control.types.BHRLV8KU.js +0 -5
  374. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +0 -1
  375. package/dist/chunks/segmented-control.u3a7Mssn.js +0 -144
  376. package/dist/chunks/segmented-control.u3a7Mssn.js.map +0 -1
  377. package/dist/chunks/selection-card-group.CSFQ-f8m.js +0 -474
  378. package/dist/chunks/selection-card-group.CSFQ-f8m.js.map +0 -1
  379. package/dist/chunks/show.ByWWaogc.js +0 -64
  380. package/dist/chunks/show.ByWWaogc.js.map +0 -1
  381. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +0 -5
  382. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +0 -1
  383. package/dist/chunks/sidepanel.kwEMG5ee.js +0 -254
  384. package/dist/chunks/sidepanel.kwEMG5ee.js.map +0 -1
  385. package/dist/chunks/status.types.Bdv2zuuh.js +0 -44
  386. package/dist/chunks/status.types.Bdv2zuuh.js.map +0 -1
  387. package/dist/chunks/step.7l-t-eN9.js +0 -264
  388. package/dist/chunks/step.7l-t-eN9.js.map +0 -1
  389. package/dist/chunks/structured-list-item.DLJp-ApS.js +0 -108
  390. package/dist/chunks/structured-list-item.DLJp-ApS.js.map +0 -1
  391. package/dist/chunks/success.DhioLvPD.js +0 -5
  392. package/dist/chunks/success.DhioLvPD.js.map +0 -1
  393. package/dist/chunks/success.nNwxJRBS.js +0 -5
  394. package/dist/chunks/success.nNwxJRBS.js.map +0 -1
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +0 -6
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +0 -1
  397. package/dist/chunks/summary-grid.types.DkyTeEAn.js +0 -466
  398. package/dist/chunks/summary-grid.types.DkyTeEAn.js.map +0 -1
  399. package/dist/chunks/tabs.Bn4YIjoy.js +0 -266
  400. package/dist/chunks/tabs.Bn4YIjoy.js.map +0 -1
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +0 -7
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +0 -1
  403. package/dist/chunks/tag.Me7nYLMe.js +0 -51
  404. package/dist/chunks/tag.Me7nYLMe.js.map +0 -1
  405. package/dist/chunks/teleport.CfGWjxe2.js +0 -129
  406. package/dist/chunks/teleport.CfGWjxe2.js.map +0 -1
  407. package/dist/chunks/textarea.BbSzCJ-3.js +0 -278
  408. package/dist/chunks/textarea.BbSzCJ-3.js.map +0 -1
  409. package/dist/chunks/timeline-item._h_dMFfm.js +0 -567
  410. package/dist/chunks/timeline-item._h_dMFfm.js.map +0 -1
  411. package/dist/chunks/toast.Ae5ZoWHb.js +0 -221
  412. package/dist/chunks/toast.Ae5ZoWHb.js.map +0 -1
  413. package/dist/chunks/toggle-button.Dv1t15yj.js +0 -80
  414. package/dist/chunks/toggle-button.Dv1t15yj.js.map +0 -1
  415. package/dist/chunks/toggle.hoD_i2Ey.js +0 -161
  416. package/dist/chunks/toggle.hoD_i2Ey.js.map +0 -1
  417. package/dist/chunks/tooltip.CGMSPub2.js +0 -205
  418. package/dist/chunks/tooltip.CGMSPub2.js.map +0 -1
  419. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  420. package/dist/chunks/truncate.BfIl_-71.js.map +0 -1
  421. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js +0 -423
  422. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CysjLLSS.js.map +0 -1
  423. package/dist/chunks/typography.DN5eC5ch.js +0 -83
  424. package/dist/chunks/typography.DN5eC5ch.js.map +0 -1
  425. package/dist/chunks/upload-files.5wQwbfkp.js +0 -5
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +0 -1
  427. package/dist/chunks/upload-files.jTQY6y2X.js +0 -5
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +0 -1
  429. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +0 -50
  430. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +0 -1
  431. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js +0 -1475
  432. package/dist/chunks/use-cached-selected-values.Dk0UxwFJ.js.map +0 -1
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +0 -14
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +0 -1
  435. package/dist/chunks/use-country-items.4kZgVg_l.js +0 -30
  436. package/dist/chunks/use-country-items.4kZgVg_l.js.map +0 -1
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +0 -5610
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +0 -1
  439. package/dist/chunks/use-default-slot-validator.O02rzsob.js +0 -16
  440. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +0 -1
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +0 -17
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +0 -1
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +0 -12
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +0 -1
  445. package/dist/chunks/use-has-slot.B7eQSabc.js +0 -15
  446. package/dist/chunks/use-has-slot.B7eQSabc.js.map +0 -1
  447. package/dist/chunks/warning-filled.DmHh0nYG.js +0 -29
  448. package/dist/chunks/warning-filled.DmHh0nYG.js.map +0 -1
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +0 -5
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +0 -1
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +0 -5
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +0 -1
  453. package/dist/click-outside.js +0 -5
  454. package/dist/click-outside.js.map +0 -1
  455. package/dist/code-snippet.js +0 -8
  456. package/dist/code-snippet.js.map +0 -1
  457. package/dist/country.js +0 -12
  458. package/dist/country.js.map +0 -1
  459. package/dist/currency.js +0 -6
  460. package/dist/currency.js.map +0 -1
  461. package/dist/dashboard-template.js +0 -6
  462. package/dist/dashboard-template.js.map +0 -1
  463. package/dist/dashed-underline.js +0 -5
  464. package/dist/dashed-underline.js.map +0 -1
  465. package/dist/data-grid-template.js +0 -5
  466. package/dist/data-grid-template.js.map +0 -1
  467. package/dist/data-grid.js +0 -11
  468. package/dist/data-grid.js.map +0 -1
  469. package/dist/date-picker.js +0 -8
  470. package/dist/date-picker.js.map +0 -1
  471. package/dist/date-range-picker.js +0 -8
  472. package/dist/date-range-picker.js.map +0 -1
  473. package/dist/date.js +0 -6
  474. package/dist/date.js.map +0 -1
  475. package/dist/divider.js +0 -5
  476. package/dist/divider.js.map +0 -1
  477. package/dist/dropdown.js +0 -16
  478. package/dist/dropdown.js.map +0 -1
  479. package/dist/empty-state.js +0 -8
  480. package/dist/empty-state.js.map +0 -1
  481. package/dist/file-uploader.js +0 -5
  482. package/dist/file-uploader.js.map +0 -1
  483. package/dist/filter-bar.js +0 -8
  484. package/dist/filter-bar.js.map +0 -1
  485. package/dist/focus-trap.js +0 -5
  486. package/dist/focus-trap.js.map +0 -1
  487. package/dist/fonts/fonts.css +0 -2
  488. package/dist/form-layout.js +0 -8
  489. package/dist/form-layout.js.map +0 -1
  490. package/dist/header-with-views.js +0 -5
  491. package/dist/header-with-views.js.map +0 -1
  492. package/dist/header.js +0 -5
  493. package/dist/header.js.map +0 -1
  494. package/dist/image.js +0 -7
  495. package/dist/image.js.map +0 -1
  496. package/dist/index.js +0 -370
  497. package/dist/index.js.map +0 -1
  498. package/dist/info-icon.js +0 -5
  499. package/dist/info-icon.js.map +0 -1
  500. package/dist/input-field-password.js +0 -10
  501. package/dist/input-field-password.js.map +0 -1
  502. package/dist/input-field-phone-number.js +0 -5
  503. package/dist/input-field-phone-number.js.map +0 -1
  504. package/dist/input-field.js +0 -10
  505. package/dist/input-field.js.map +0 -1
  506. package/dist/inspector.js +0 -6
  507. package/dist/inspector.js.map +0 -1
  508. package/dist/internal.js +0 -43
  509. package/dist/internal.js.map +0 -1
  510. package/dist/layout.js +0 -6
  511. package/dist/layout.js.map +0 -1
  512. package/dist/link.js +0 -6
  513. package/dist/link.js.map +0 -1
  514. package/dist/loading-indicator.js +0 -6
  515. package/dist/loading-indicator.js.map +0 -1
  516. package/dist/menu.js +0 -6
  517. package/dist/menu.js.map +0 -1
  518. package/dist/modal-fullscreen.js +0 -6
  519. package/dist/modal-fullscreen.js.map +0 -1
  520. package/dist/modal.js +0 -14
  521. package/dist/modal.js.map +0 -1
  522. package/dist/pagination.js +0 -5
  523. package/dist/pagination.js.map +0 -1
  524. package/dist/payment-method.js +0 -7
  525. package/dist/payment-method.js.map +0 -1
  526. package/dist/popover.js +0 -6
  527. package/dist/popover.js.map +0 -1
  528. package/dist/popper-container.js +0 -10
  529. package/dist/popper-container.js.map +0 -1
  530. package/dist/promo-banner.js +0 -7
  531. package/dist/promo-banner.js.map +0 -1
  532. package/dist/radio-group.js +0 -9
  533. package/dist/radio-group.js.map +0 -1
  534. package/dist/rich-text-editor.js +0 -5
  535. package/dist/rich-text-editor.js.map +0 -1
  536. package/dist/search-bar.js +0 -9
  537. package/dist/search-bar.js.map +0 -1
  538. package/dist/secondary-nav.js +0 -5
  539. package/dist/secondary-nav.js.map +0 -1
  540. package/dist/segmented-control.js +0 -7
  541. package/dist/segmented-control.js.map +0 -1
  542. package/dist/selection-card.js +0 -7
  543. package/dist/selection-card.js.map +0 -1
  544. package/dist/sidepanel.js +0 -7
  545. package/dist/sidepanel.js.map +0 -1
  546. package/dist/status.js +0 -6
  547. package/dist/status.js.map +0 -1
  548. package/dist/stepper.js +0 -8
  549. package/dist/stepper.js.map +0 -1
  550. package/dist/structured-list.js +0 -6
  551. package/dist/structured-list.js.map +0 -1
  552. package/dist/styles/bento-dark.css +0 -2055
  553. package/dist/styles/bento-light.css +0 -2054
  554. package/dist/styles/bento.css +0 -2054
  555. package/dist/styles/legacy.css +0 -2209
  556. package/dist/styles/styleguide.css +0 -2109
  557. package/dist/styles/utility.css +0 -987
  558. package/dist/summary-grid.js +0 -12
  559. package/dist/summary-grid.js.map +0 -1
  560. package/dist/tabs.js +0 -6
  561. package/dist/tabs.js.map +0 -1
  562. package/dist/tag.js +0 -6
  563. package/dist/tag.js.map +0 -1
  564. package/dist/textarea.js +0 -5
  565. package/dist/textarea.js.map +0 -1
  566. package/dist/timeline.js +0 -10
  567. package/dist/timeline.js.map +0 -1
  568. package/dist/toast.js +0 -5
  569. package/dist/toast.js.map +0 -1
  570. package/dist/toggle.js +0 -7
  571. package/dist/toggle.js.map +0 -1
  572. package/dist/tutorial.js +0 -5
  573. package/dist/tutorial.js.map +0 -1
  574. package/dist/typography.js +0 -8
  575. package/dist/typography.js.map +0 -1
  576. package/dist/use-form-v4.js +0 -8300
  577. package/dist/use-form-v4.js.map +0 -1
  578. package/dist/web-types.json +0 -49
@@ -1,1475 +0,0 @@
1
- import { computed as p, ref as M, onMounted as Ae, onUnmounted as Ke, watch as Ie, defineComponent as X, resolveComponent as $, createElementBlock as T, openBlock as d, createVNode as P, createElementVNode as K, withCtx as I, createTextVNode as z, toDisplayString as G, renderSlot as Y, mergeProps as U, withKeys as ve, createCommentVNode as W, createBlock as D, withModifiers as qe, normalizeProps as le, guardReactiveProps as re, withDirectives as oe, vShow as $e, toRef as Z, resolveDirective as ke, toHandlers as Q, Fragment as ee, renderList as F, createSlots as ce, normalizeClass as fe, useSlots as je, unref as N, normalizeStyle as He } from "vue";
2
- import { B as x, a as de } from "./keyboard-navigation.CqgGzfZQ.js";
3
- import "./events.FNmSWp_P.js";
4
- import { B as ne } from "./typography.DN5eC5ch.js";
5
- import { B as Xe } from "./loading-indicator.DEepb9Wl.js";
6
- import { B as Je } from "./empty-state.BGWjUH6G.js";
7
- import { u as ye } from "./i18n.B6g5VX0q.js";
8
- import { d as Ze } from "./debounce.DUTu11PS.js";
9
- import { B as Se } from "./checkbox.DeNqOQ8F.js";
10
- import { B as Qe } from "./chip.BVCzNGaI.js";
11
- import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
12
- import { C as et, a as tt } from "./chevron-up.-0oLlHmh.js";
13
- import { d as st, e as _e } from "./button-actions.WnxN4KnV.js";
14
- /* empty css */
15
- import { o as lt } from "./resize.Bqks3WUm.js";
16
- import "../assets/use-cached-selected-values.css";
17
- const Be = (e, t, s, r) => {
18
- const b = p(
19
- () => {
20
- var m, g;
21
- return !!((m = e.value) != null && m.length) && ((g = e.value) == null ? void 0 : g.length) === t.value.length;
22
- }
23
- ), a = p(() => {
24
- var m;
25
- return e.value == null || e.value.length === 0 ? !1 : ((m = e.value) == null ? void 0 : m.length) !== t.value.length;
26
- });
27
- return {
28
- isAllSelected: b,
29
- isIndeterminate: a,
30
- toggleSelectAll: (m) => {
31
- m ? s() : r();
32
- }
33
- };
34
- };
35
- function ot(e, { disabled: t, itemHeight: s, overscan: r = 5, prefixHeight: b }) {
36
- const a = M(null), l = M([]), m = M(0), g = M(0), n = M(0);
37
- let v;
38
- const o = p(() => {
39
- const S = typeof s == "number" ? e.value.length * s : e.value.reduce((R, C, A) => R + s(A), 0), O = typeof s == "number" ? m.value * s : e.value.slice(0, m.value).reduce((R, C, A) => R + s(A), 0);
40
- return {
41
- style: {
42
- marginTop: `${O}px`,
43
- height: `${S - O}px`
44
- }
45
- };
46
- }), h = () => {
47
- const S = (b == null ? void 0 : b.value) ?? 0, O = Math.max(a.value.scrollTop - S, 0);
48
- if (typeof s == "number")
49
- return Math.floor(O / s);
50
- let R = 0, C = 0;
51
- for (let A = 0; A < e.value.length; A += 1) {
52
- const V = s(A);
53
- if (R += V, R >= O) {
54
- C = A;
55
- break;
56
- }
57
- }
58
- return C;
59
- }, L = () => {
60
- if (n.value = a.value.clientHeight, typeof s == "number")
61
- return Math.ceil(n.value / s);
62
- const S = m.value ?? 0;
63
- let O = 0, R = 0;
64
- for (let C = S; C < e.value.length; C += 1) {
65
- const A = s(C);
66
- if (O += A, R = C, O > n.value)
67
- break;
68
- }
69
- return R - S;
70
- }, k = () => {
71
- if (a.value) {
72
- const S = L();
73
- m.value = h(), g.value = Math.min(m.value + S + r, e.value.length), l.value = e.value.slice(m.value, g.value);
74
- }
75
- }, B = () => {
76
- k();
77
- };
78
- t || (Ae(() => {
79
- a.value && (n.value = a.value.clientHeight, v = lt(a.value, ({ clientHeight: S }) => {
80
- n.value = S, k();
81
- }), k());
82
- }), Ke(() => {
83
- v == null || v.disconnect();
84
- }), Ie(
85
- () => e.value,
86
- () => {
87
- k();
88
- }
89
- ));
90
- const y = {
91
- ref: a,
92
- style: { overflowY: "auto" }
93
- };
94
- return t ? {
95
- containerRef: a,
96
- containerProps: y,
97
- // eslint-disable-next-line @typescript-eslint/no-empty-function
98
- onScroll: () => {
99
- },
100
- list: e
101
- } : {
102
- containerRef: a,
103
- containerProps: y,
104
- onScroll: B,
105
- list: l,
106
- wrapperProps: o
107
- };
108
- }
109
- var u = /* @__PURE__ */ ((e) => (e.SELECT = "select", e.SHOW_MORE = "show-more", e.ESCAPE = "escape-pressed", e.CLICK = "click", e.ENTER = "enter-pressed", e.SPACE = "space-pressed", e.TAB = "tab-pressed", e.CLOSE_DROPDOWN = "close-dropdown", e))(u || {}), se = /* @__PURE__ */ ((e) => (e.AUTOMATIC = "automatic", e.BUTTON = "button", e.NONE = "none", e))(se || {});
110
- const nt = X({
111
- name: "bento-listbox-static-category",
112
- components: {
113
- BentoTypography: ne
114
- },
115
- props: {
116
- /**
117
- * Category label text
118
- */
119
- categoryLabel: {
120
- type: String,
121
- required: !0
122
- }
123
- }
124
- }), at = { class: "b-listbox-single-select-category" };
125
- function it(e, t, s, r, b, a) {
126
- const l = $("bento-typography");
127
- return d(), T("div", at, [
128
- P(l, {
129
- variant: "caption",
130
- el: "span",
131
- class: "b-listbox-single-select-category__label-text"
132
- }, {
133
- default: I(() => [
134
- z(G(e.categoryLabel), 1)
135
- ]),
136
- _: 1
137
- }),
138
- K("div", null, [
139
- Y(e.$slots, "default", {}, void 0, !0)
140
- ])
141
- ]);
142
- }
143
- const rt = /* @__PURE__ */ q(nt, [["render", it], ["__scopeId", "data-v-a90eff17"]]), ct = X({
144
- name: "bento-listbox-option",
145
- props: {
146
- /**
147
- * Setting this property to true will disable the option.
148
- */
149
- disabled: { type: Boolean, default: !1 },
150
- /**
151
- * Indicates if the value is selected. Only one element can be selected at a time.
152
- */
153
- selected: { type: Boolean, default: !1 }
154
- },
155
- emits: [u.CLICK, u.ENTER, u.SPACE, u.TAB],
156
- setup(e, { emit: t }) {
157
- const s = p(() => ({
158
- "b-listbox-option--disabled": e.disabled,
159
- "b-listbox-option--selected": e.selected
160
- }));
161
- return {
162
- // Enums
163
- BentoKeyboardNavigationKeyDownEvent: x,
164
- BentoListboxEvent: u,
165
- // Values
166
- conditionalClasses: s,
167
- // Events
168
- onClick: (a) => {
169
- t(u.CLICK, a);
170
- },
171
- onOptionSelected: (a, l) => {
172
- t(a, l);
173
- }
174
- };
175
- }
176
- });
177
- function ut(e, t, s, r, b, a) {
178
- return d(), T("label", U({
179
- class: ["b-listbox-option", e.conditionalClasses],
180
- role: "option"
181
- }, e.$attrs, {
182
- onClick: t[0] || (t[0] = (...l) => e.onClick && e.onClick(...l)),
183
- onKeydown: [
184
- t[1] || (t[1] = ve((l) => e.onOptionSelected(e.BentoListboxEvent.ENTER, l), ["enter"])),
185
- t[2] || (t[2] = ve((l) => e.onOptionSelected(e.BentoListboxEvent.SPACE, l), ["space"])),
186
- t[3] || (t[3] = ve((l) => e.onOptionSelected(e.BentoListboxEvent.TAB, l), ["tab"]))
187
- ]
188
- }), [
189
- Y(e.$slots, "default", {}, void 0, !0)
190
- ], 16);
191
- }
192
- const be = /* @__PURE__ */ q(ct, [["render", ut], ["__scopeId", "data-v-18a61f5d"]]);
193
- let Te = 0;
194
- const dt = {
195
- beforeCreate() {
196
- this.uuid = Te.toString(), Te += 1;
197
- }
198
- }, bt = { key: 0 };
199
- function mt(e, t, s, r, b, a) {
200
- return d(), T("svg", U({ role: "img" }, e.$attrs, {
201
- class: "ui-assets-icons-16",
202
- xmlns: "http://www.w3.org/2000/svg",
203
- width: "16",
204
- height: "16",
205
- fill: "none"
206
- }), [
207
- e.$attrs["svg-title"] ? (d(), T("title", bt, G(e.$attrs["svg-title"]), 1)) : W("", !0),
208
- t[0] || (t[0] = K("path", {
209
- fill: "#00112C",
210
- d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
211
- }, null, -1))
212
- ], 16);
213
- }
214
- const vt = /* @__PURE__ */ q(dt, [["render", mt]]), ft = X({
215
- name: "bento-listbox-single-select-option",
216
- components: {
217
- BentoListboxOption: be,
218
- BentoTypography: ne,
219
- CheckmarkIcon: vt
220
- },
221
- props: {
222
- /**
223
- * Setting this property to true will disable the option.
224
- */
225
- disabled: { type: Boolean, default: !1 },
226
- /**
227
- * The option item that contains all the option item's data.
228
- * @type {BentoListboxOptionItem}
229
- */
230
- option: {
231
- type: Object,
232
- required: !0
233
- },
234
- /**
235
- * Indicates if the value is selected. Only one element can be selected at a time.
236
- */
237
- selected: { type: Boolean, default: !1 }
238
- },
239
- emits: [u.ENTER, u.SELECT, u.SPACE, u.TAB],
240
- setup(e, { emit: t }) {
241
- const s = (l) => {
242
- e.disabled || t(l, e.option);
243
- }, r = p(() => e.disabled ? !0 : null), b = p(() => e.selected ? !0 : null), a = p(() => e.disabled ? -1 : 0);
244
- return {
245
- // Values
246
- ariaDisabled: r,
247
- ariaSelected: b,
248
- tabIndex: a,
249
- // Enums
250
- BentoListboxEvent: u,
251
- // Events
252
- onOptionSelected: s
253
- };
254
- }
255
- }), gt = { class: "b-listbox-single-select-option__text" }, pt = { class: "b-listbox-single-select-option__check-icon" };
256
- function yt(e, t, s, r, b, a) {
257
- const l = $("bento-typography"), m = $("checkmark-icon"), g = $("bento-listbox-option");
258
- return d(), D(g, {
259
- class: "b-listbox-single-select-option",
260
- disabled: e.disabled,
261
- selected: e.selected,
262
- "aria-selected": e.ariaSelected,
263
- "aria-disabled": e.ariaDisabled,
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] = qe((n) => e.onOptionSelected(e.BentoListboxEvent.SPACE), ["prevent"])),
268
- onTabPressed: t[3] || (t[3] = (n) => e.onOptionSelected(e.BentoListboxEvent.TAB))
269
- }, {
270
- default: I(() => [
271
- Y(e.$slots, "default", le(re(e.option)), () => [
272
- K("span", gt, [
273
- P(l, { el: "span" }, {
274
- default: I(() => [
275
- z(G(e.option.label), 1)
276
- ]),
277
- _: 1
278
- }),
279
- e.option.description ? (d(), D(l, {
280
- key: 0,
281
- class: "b-listbox-single-select-option__description",
282
- el: "span"
283
- }, {
284
- default: I(() => [
285
- z(G(e.option.description), 1)
286
- ]),
287
- _: 1
288
- })) : W("", !0)
289
- ])
290
- ], !0),
291
- K("span", pt, [
292
- oe(P(m, { "svg-title": "selected" }, null, 512), [
293
- [$e, e.selected]
294
- ])
295
- ])
296
- ]),
297
- _: 3
298
- }, 8, ["disabled", "selected", "aria-selected", "aria-disabled", "tabindex"]);
299
- }
300
- const St = /* @__PURE__ */ q(ft, [["render", yt], ["__scopeId", "data-v-226f4c84"]]), Re = ({ items: e, isOptionDisabled: t, hasStaticCategories: s }, r) => {
301
- const b = p(
302
- () => s.value ? e.value.flatMap((y) => y.items) : e.value
303
- ), a = p(() => b.value.length - 1), l = M(0);
304
- Ae(() => {
305
- t && (l.value = e.value.findIndex((y) => !t(y)));
306
- });
307
- const m = (y) => {
308
- var R, C;
309
- const O = ((C = (R = e.value[y]) == null ? void 0 : R.items) == null ? void 0 : C.length) ? e.value[y].items.every((A) => t(A)) : t(e.value[y]);
310
- return !t || !!t && O;
311
- }, g = (y) => {
312
- switch (y) {
313
- case "increase":
314
- l.value += 1;
315
- break;
316
- case "decrease":
317
- l.value -= 1;
318
- break;
319
- }
320
- }, n = ({ edgeCaseItem: y }, S, O) => {
321
- l.value !== y && (g(O), m(l.value) && S(), r(l.value));
322
- }, v = (y) => {
323
- B(y), n(
324
- {
325
- edgeCaseItem: a.value
326
- },
327
- v,
328
- "increase"
329
- /* INCREASE */
330
- );
331
- }, o = (y) => {
332
- B(y), n(
333
- {
334
- edgeCaseItem: 0
335
- },
336
- o,
337
- "decrease"
338
- /* DECREASE */
339
- );
340
- }, h = () => {
341
- l.value = 0, m(l.value) ? v() : r(l.value);
342
- }, L = () => {
343
- l.value = a.value, m(l.value) ? o() : r(l.value);
344
- }, k = (y) => {
345
- l.value = y;
346
- }, B = (y) => {
347
- var S;
348
- (S = y == null ? void 0 : y.detail) == null || S.preventDefault();
349
- };
350
- return {
351
- moveToFirstElement: h,
352
- moveToLastElement: L,
353
- moveToNextElement: v,
354
- moveToPreviousElement: o,
355
- setListboxFocusedIndex: k,
356
- preventDefault: B,
357
- focusedIndex: l
358
- };
359
- }, Ct = X({
360
- name: "bento-listbox-single-select",
361
- components: {
362
- BentoListboxSingleSelectCategory: rt,
363
- BentoListboxSingleSelectOption: St
364
- },
365
- directives: { BentoKeyboardNavigationDirective: de },
366
- inheritAttrs: !1,
367
- props: {
368
- /**
369
- * Function that allows the options to be disabled
370
- *
371
- * @type {BentoListboxIsOptionDisabled}
372
- * @param {BentoListboxOptionItem} option - listbox option object
373
- * @param {string} option.label - Option's label text
374
- * @param {string|number} option.value - Option's value
375
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
376
- */
377
- isOptionDisabled: {
378
- type: Function,
379
- default: () => !1
380
- },
381
- /**
382
- * The option elements to populate the listbox with.
383
- * It must be an array of {@see BentoListboxOptionItem }.
384
- *
385
- * @property {string} value.label - Text to be displayed in the option
386
- * @property {string,number} value.value - Value of the option
387
- */
388
- items: {
389
- type: Array,
390
- required: !0
391
- },
392
- /**
393
- * The `input` value.
394
- * Providing an empty string will select no options.
395
- * Set to an empty string `''` if you don't want any of the available options to be selected
396
- */
397
- selectedValue: {
398
- type: Array,
399
- default: void 0
400
- },
401
- /**
402
- * If enabled, dropdown will display non-selectable, static categories
403
- */
404
- staticCategories: { type: Boolean, default: !1 }
405
- },
406
- emits: [u.SELECT, u.ENTER, u.SPACE, u.TAB],
407
- setup(e, { emit: t, expose: s, slots: r }) {
408
- const b = M(null), a = M([]), l = p(() => {
409
- var S;
410
- return !!((S = e.selectedValue) != null && S.length) && e.selectedValue.at(0);
411
- }), m = p(() => !!e.items.some(({ items: S }) => !!S)), g = (S) => (O) => {
412
- t(S, [O]);
413
- }, n = (S) => {
414
- var O;
415
- (O = b.value.querySelectorAll('[role="option"]')[S]) == null || O.focus();
416
- }, {
417
- moveToNextElement: v,
418
- moveToPreviousElement: o,
419
- moveToFirstElement: h,
420
- moveToLastElement: L,
421
- setListboxFocusedIndex: k
422
- } = Re(
423
- {
424
- items: Z(e, "items"),
425
- isOptionDisabled: e.isOptionDisabled,
426
- hasStaticCategories: Z(e, "staticCategories")
427
- },
428
- n
429
- ), B = {
430
- [x.ARROW_UP]: o,
431
- [x.ARROW_DOWN]: v,
432
- [x.HOME]: h,
433
- [x.END]: L
434
- }, y = {
435
- [u.SELECT]: g(u.SELECT),
436
- [u.SPACE]: g(u.SPACE),
437
- [u.TAB]: g(u.TAB),
438
- [u.ENTER]: g(u.ENTER)
439
- };
440
- return s({
441
- /**
442
- * Reference for a single listbox item.
443
- * Required for keyboard navigation in dropdown as $children is removed in vue@3
444
- */
445
- listboxItemRef: a,
446
- /**
447
- * Method to set the index of the item to be focused on
448
- * Used for focus management to be kept in-sync with parent e.g. dropdowns
449
- */
450
- setListboxFocusedIndex: k
451
- }), {
452
- // Enums
453
- BentoListboxEvent: u,
454
- // Values
455
- listboxRef: b,
456
- listboxItemRef: a,
457
- selectedItem: l,
458
- slots: r,
459
- // Computed
460
- hasCategories: m,
461
- // Methods
462
- onOptionSelected: g,
463
- // Keyboard navigation
464
- listboxListeners: B,
465
- listboxOptionListeners: y
466
- };
467
- }
468
- });
469
- function ht(e, t, s, r, b, a) {
470
- const l = $("bento-listbox-single-select-option"), m = $("bento-listbox-single-select-category"), g = ke("bento-keyboard-navigation-directive");
471
- return oe((d(), T("div", U({ ref: "listboxRef" }, Q(e.listboxListeners, !0)), [
472
- e.hasCategories && e.staticCategories ? (d(!0), T(ee, { key: 0 }, F(e.items, (n) => (d(), D(m, {
473
- key: n.value,
474
- "category-label": n.label,
475
- role: "group"
476
- }, {
477
- default: I(() => [
478
- (d(!0), T(ee, null, F(n.items, (v) => (d(), D(l, U({
479
- key: v.value,
480
- ref_for: !0,
481
- ref: "listboxItemRef",
482
- role: "option",
483
- option: v,
484
- disabled: e.isOptionDisabled ? e.isOptionDisabled(v) : null,
485
- selected: v.value === e.selectedItem.value
486
- }, Q(e.listboxOptionListeners)), ce({ _: 2 }, [
487
- F(e.slots, (o, h) => ({
488
- name: h,
489
- fn: I((L) => [
490
- Y(e.$slots, h, U({ ref_for: !0 }, L))
491
- ])
492
- }))
493
- ]), 1040, ["option", "disabled", "selected"]))), 128))
494
- ]),
495
- _: 2
496
- }, 1032, ["category-label"]))), 128)) : (d(!0), T(ee, { key: 1 }, F(e.items, (n) => (d(), D(l, U({
497
- key: n.value,
498
- ref_for: !0,
499
- ref: "listboxItemRef",
500
- role: "option",
501
- option: n,
502
- disabled: e.isOptionDisabled ? e.isOptionDisabled(n) : null,
503
- selected: n.value === e.selectedItem.value
504
- }, Q(e.listboxOptionListeners)), ce({ _: 2 }, [
505
- F(e.slots, (v, o) => ({
506
- name: o,
507
- fn: I((h) => [
508
- Y(e.$slots, o, U({ ref_for: !0 }, h))
509
- ])
510
- }))
511
- ]), 1040, ["option", "disabled", "selected"]))), 128))
512
- ], 16)), [
513
- [g]
514
- ]);
515
- }
516
- const Et = /* @__PURE__ */ q(Ct, [["render", ht]]);
517
- var ge = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.STATIC_CATEGORY = "static-category", e))(ge || {}), ie = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.UNSELECT_CATEGORY = "unselect-category", e))(ie || {});
518
- const _t = {
519
- "en-US": {
520
- categoryClosed: "{category} closed",
521
- categoryOpened: "{category} opened"
522
- }
523
- }, Tt = X({
524
- i18n: { messages: _t },
525
- name: "bento-listbox-multi-select-category",
526
- components: {
527
- BentoCheckbox: Se,
528
- BentoTypography: ne,
529
- BentoListboxOption: be,
530
- ChevronDownIcon: tt,
531
- ChevronUpIcon: et
532
- },
533
- props: {
534
- /**
535
- * The option elements to populate the listbox with.
536
- * It must be an array of {@see BentoListboxOptionItem }.
537
- *
538
- * @property {string} value.label - Text to be displayed in the option
539
- * @property {string,number} value.value - Value of the option
540
- * @property {BentoListboxOptionItem} value.items - Category items list
541
- */
542
- category: {
543
- type: Object,
544
- required: !0
545
- },
546
- /**
547
- * Function that allows the options to be disabled
548
- *
549
- * @type {BentoListboxIsOptionDisabled}
550
- * @param {BentoListboxOptionItem} option - listbox option object
551
- * @param {string} option.label - Option's label text
552
- * @param {string|number} option.value - Option's value
553
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
554
- */
555
- isOptionDisabled: {
556
- type: [Function],
557
- default: () => !1
558
- },
559
- /**
560
- * The `input` value.
561
- * Providing an empty array will select no options.
562
- */
563
- selectedItemsList: {
564
- type: Array,
565
- default: () => []
566
- },
567
- /**
568
- * If enabled, dropdown will display non-selectable, static categories
569
- */
570
- staticCategories: { type: Boolean, default: !1 },
571
- /**
572
- * Category's tabindex
573
- */
574
- tabindex: { type: Number, default: -1 }
575
- },
576
- emits: [ie.SELECT_CATEGORY, ie.UNSELECT_CATEGORY],
577
- setup(e, { emit: t }) {
578
- const s = M(!1), { t: r } = ye(), b = (C) => e.isOptionDisabled ? e.isOptionDisabled(C) : !1, a = p(
579
- () => e.category.items.every((C) => b(C))
580
- ), l = Z(e, "staticCategories"), m = p(() => s.value || e.staticCategories), g = p(() => ({
581
- [`b-listbox-multi-select-category--${ge.DISABLED}`]: a.value,
582
- [`b-listbox-multi-select-category--${ge.STATIC_CATEGORY}`]: e.staticCategories
583
- })), n = (C) => {
584
- C.preventDefault(), s.value = !s.value;
585
- }, v = (C) => {
586
- var te;
587
- const A = b(C), V = ((te = e.selectedItemsList) == null ? void 0 : te.includes(C.value)) || !1;
588
- return { isDisabled: A, isPreSelected: V };
589
- }, o = p(
590
- () => e.category.items.filter((C) => {
591
- const { isDisabled: A, isPreSelected: V } = v(C);
592
- return A && V || !A;
593
- })
594
- ), h = p(
595
- () => {
596
- var C;
597
- return (C = o.value) == null ? void 0 : C.filter(
598
- ({ value: A }) => {
599
- var V;
600
- return (V = e.selectedItemsList) == null ? void 0 : V.includes(A);
601
- }
602
- );
603
- }
604
- ), L = p(() => {
605
- const C = s.value ? "categoryOpened" : "categoryClosed";
606
- return r(C, { category: e.category.label });
607
- }), k = p(
608
- () => ({
609
- el: "span",
610
- variant: e.staticCategories ? "caption" : "body"
611
- })
612
- ), B = () => {
613
- t(ie.SELECT_CATEGORY);
614
- }, y = () => {
615
- t(ie.UNSELECT_CATEGORY);
616
- }, { isAllSelected: S, isIndeterminate: O, toggleSelectAll: R } = Be(
617
- h,
618
- o,
619
- B,
620
- y
621
- );
622
- return {
623
- // Values
624
- chevronTitle: L,
625
- conditionalClass: g,
626
- hasAllPropsDisabled: a,
627
- isOpen: s,
628
- isAllSelected: S,
629
- isIndeterminate: O,
630
- isStaticCategory: l,
631
- // Computed
632
- showItemChildren: m,
633
- categoryLabelProps: k,
634
- // Methods
635
- toggleOpen: n,
636
- toggleSelectAll: R
637
- };
638
- }
639
- }), Lt = { class: "b-listbox-multi-select-category__label" };
640
- function Ot(e, t, s, r, b, a) {
641
- const l = $("bento-checkbox"), m = $("bento-typography"), g = $("chevron-up-icon"), n = $("chevron-down-icon"), v = $("bento-listbox-option");
642
- return d(), T("div", null, [
643
- P(v, {
644
- class: fe(["b-listbox-multi-select-category__option", e.conditionalClass])
645
- }, {
646
- default: I(() => [
647
- e.isStaticCategory ? W("", !0) : (d(), D(l, {
648
- key: 0,
649
- "model-value": e.isAllSelected,
650
- indeterminate: e.isIndeterminate,
651
- disabled: e.hasAllPropsDisabled,
652
- "aria-label": e.category.label,
653
- value: e.category.value,
654
- tabindex: e.tabindex,
655
- "onUpdate:modelValue": e.toggleSelectAll
656
- }, null, 8, ["model-value", "indeterminate", "disabled", "aria-label", "value", "tabindex", "onUpdate:modelValue"])),
657
- K("span", Lt, [
658
- P(m, U(e.categoryLabelProps, { class: "b-listbox-multi-select-category__label-text" }), {
659
- default: I(() => [
660
- z(G(e.category.label), 1)
661
- ]),
662
- _: 1
663
- }, 16),
664
- e.isStaticCategory ? W("", !0) : (d(), T("div", {
665
- key: 0,
666
- class: "b-listbox-multi-select-category__label-chevron",
667
- "data-testid": "toggle-listbox",
668
- onClickCapture: t[0] || (t[0] = (...o) => e.toggleOpen && e.toggleOpen(...o))
669
- }, [
670
- e.isOpen ? (d(), D(g, {
671
- key: 0,
672
- "svg-title": e.chevronTitle
673
- }, null, 8, ["svg-title"])) : (d(), D(n, {
674
- key: 1,
675
- "svg-title": e.chevronTitle
676
- }, null, 8, ["svg-title"]))
677
- ], 32))
678
- ])
679
- ]),
680
- _: 1
681
- }, 8, ["class"]),
682
- oe(K("div", null, [
683
- Y(e.$slots, "default", {}, void 0, !0)
684
- ], 512), [
685
- [$e, e.showItemChildren]
686
- ])
687
- ]);
688
- }
689
- const At = /* @__PURE__ */ q(Tt, [["render", Ot], ["__scopeId", "data-v-9681c80b"]]);
690
- var H = /* @__PURE__ */ ((e) => (e.SELECT_CATEGORY = "select-category", e.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", e.UNSELECT_CATEGORY = "unselect-category", e))(H || {});
691
- const It = X({
692
- name: "listbox-multi-select-options",
693
- components: {
694
- BentoCheckbox: Se,
695
- BentoListboxOption: be,
696
- BentoTypography: ne,
697
- ListboxMultiSelectCategory: At
698
- },
699
- props: {
700
- /**
701
- * Indicates if the items listed are inside a category
702
- * so they can be padded to right by one level in recursion.
703
- * Items of categories are automatically defined as "categoryItems"
704
- */
705
- categoryItems: { type: Boolean, default: !1 },
706
- /**
707
- * Current focused option index
708
- */
709
- focusedIndex: { type: Number, default: 0 },
710
- /**
711
- * Function that allows the options to be disabled
712
- *
713
- * @type {BentoListboxIsOptionDisabled}
714
- * @param {BentoListboxOptionItem} option - listbox option object
715
- * @param {string} option.label - Option's label text
716
- * @param {string|number} option.value - Option's value
717
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
718
- */
719
- isOptionDisabled: {
720
- type: Function,
721
- default: () => !1
722
- },
723
- /**
724
- * The option elements to populate the listbox with.
725
- * It must be an array of {@see BentoListboxOptionItem }.
726
- *
727
- * @property {string} value.label - Text to be displayed in the option
728
- * @property {string,number} value.value - Value of the option
729
- */
730
- items: {
731
- type: Array,
732
- required: !0
733
- },
734
- /**
735
- * Indicates if the elements options are inside a multi-level category
736
- */
737
- isMultiLevel: { type: Boolean, default: !1 },
738
- /**
739
- * Flag that indicates that an external search it's being made
740
- * to filter out the items inside the the multi-select listbox
741
- *
742
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
743
- */
744
- searching: { type: Boolean, default: !1 },
745
- /**
746
- * List of selected items.
747
- * Providing an empty array will select no options.
748
- */
749
- selectedItemsList: {
750
- type: Array,
751
- default: () => []
752
- },
753
- /**
754
- * If enabled, dropdown will display non-selectable, static categories
755
- */
756
- staticCategories: { type: Boolean, default: !1 }
757
- },
758
- emits: [
759
- H.TOGGLE_CHECKBOX_SELECTION,
760
- H.SELECT_CATEGORY,
761
- H.UNSELECT_CATEGORY
762
- ],
763
- setup(e, { emit: t }) {
764
- const s = (n) => {
765
- t(H.TOGGLE_CHECKBOX_SELECTION, n);
766
- }, r = (n) => !!n.items, b = (n) => {
767
- const v = e.isMultiLevel && e.searching;
768
- return n.description && (!e.isMultiLevel || v);
769
- }, a = (n) => n.items ? !!n.items.find((v) => e.selectedItemsList.includes(v.value)) : e.selectedItemsList.includes(n.value), l = (n, v) => {
770
- if (r(v))
771
- return t(n ? H.SELECT_CATEGORY : H.UNSELECT_CATEGORY, v);
772
- s(v.value);
773
- };
774
- return {
775
- // Values
776
- conditionalClasses: p(() => ({
777
- "b-listbox-multi-select-options__static-category-option": e.staticCategories,
778
- "b-listbox-multi-select-options__category-option": e.categoryItems
779
- })),
780
- // Methods
781
- isOptionSelected: a,
782
- shouldShowDescription: b,
783
- toggleCheckboxSelection: s,
784
- selectSearch: l,
785
- computedTabindex: (n) => n + 1 === e.focusedIndex ? 0 : -1,
786
- // Enums
787
- BentoListboxEvent: u,
788
- ListboxMultiSelectOptionsEvent: H
789
- };
790
- }
791
- }), $t = { class: "b-listbox-multi-select__option-text" }, kt = { class: "b-listbox-multi-select__option-text" };
792
- function Bt(e, t, s, r, b, a) {
793
- const l = $("bento-checkbox"), m = $("bento-typography"), g = $("bento-listbox-option"), n = $("listbox-multi-select-options", !0), v = $("listbox-multi-select-category");
794
- return d(), T("div", null, [
795
- (d(!0), T(ee, null, F(e.items, (o, h) => (d(), T("div", {
796
- key: `selected-${o.value}`
797
- }, [
798
- e.searching && e.isMultiLevel ? (d(), D(g, {
799
- key: 0,
800
- class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
801
- disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
802
- }, {
803
- default: I(() => [
804
- P(l, {
805
- "model-value": e.isOptionSelected(o),
806
- "aria-label": o.label,
807
- disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
808
- value: o.value,
809
- tabindex: e.computedTabindex(h),
810
- "onUpdate:modelValue": (L) => e.selectSearch(L, o)
811
- }, null, 8, ["model-value", "aria-label", "disabled", "value", "tabindex", "onUpdate:modelValue"]),
812
- Y(e.$slots, "default", U({ ref_for: !0 }, o), () => [
813
- K("span", $t, [
814
- P(m, { el: "span" }, {
815
- default: I(() => [
816
- z(G(o.label), 1)
817
- ]),
818
- _: 2
819
- }, 1024),
820
- e.shouldShowDescription(o) ? (d(), D(m, {
821
- key: 0,
822
- class: "b-listbox-multi-select__option-description",
823
- el: "span"
824
- }, {
825
- default: I(() => [
826
- z(G(o.description), 1)
827
- ]),
828
- _: 2
829
- }, 1024)) : W("", !0)
830
- ])
831
- ], !0)
832
- ]),
833
- _: 2
834
- }, 1032, ["class", "disabled"])) : (d(), T(ee, { key: 1 }, [
835
- o.items ? (d(), D(v, {
836
- key: 0,
837
- category: o,
838
- "static-categories": e.staticCategories,
839
- "is-option-disabled": e.isOptionDisabled,
840
- "selected-items-list": e.selectedItemsList,
841
- tabindex: e.computedTabindex(h),
842
- onSelectCategory: (L) => e.$emit(e.ListboxMultiSelectOptionsEvent.SELECT_CATEGORY, o),
843
- onUnselectCategory: (L) => e.$emit(e.ListboxMultiSelectOptionsEvent.UNSELECT_CATEGORY, o)
844
- }, {
845
- default: I(() => [
846
- P(n, {
847
- "category-items": "",
848
- items: o.items,
849
- "is-option-disabled": e.isOptionDisabled,
850
- "focused-index": e.focusedIndex,
851
- "is-multi-level": e.isMultiLevel,
852
- "static-categories": e.staticCategories,
853
- "selected-items-list": e.selectedItemsList,
854
- searching: e.searching,
855
- onToggleCheckboxSelection: t[0] || (t[0] = (L) => e.toggleCheckboxSelection(L))
856
- }, null, 8, ["items", "is-option-disabled", "focused-index", "is-multi-level", "static-categories", "selected-items-list", "searching"])
857
- ]),
858
- _: 2
859
- }, 1032, ["category", "static-categories", "is-option-disabled", "selected-items-list", "tabindex", "onSelectCategory", "onUnselectCategory"])) : (d(), D(g, {
860
- key: 1,
861
- class: fe(["b-listbox-multi-select-options", e.conditionalClasses]),
862
- disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null
863
- }, {
864
- default: I(() => [
865
- P(l, {
866
- "model-value": e.selectedItemsList,
867
- "aria-label": o.label,
868
- disabled: e.isOptionDisabled ? e.isOptionDisabled(o) : null,
869
- value: o.value,
870
- tabindex: e.computedTabindex(h),
871
- "onUpdate:modelValue": (L) => e.toggleCheckboxSelection(o)
872
- }, null, 8, ["model-value", "aria-label", "disabled", "value", "tabindex", "onUpdate:modelValue"]),
873
- Y(e.$slots, "default", U({ ref_for: !0 }, o), () => [
874
- K("span", kt, [
875
- P(m, { el: "span" }, {
876
- default: I(() => [
877
- z(G(o.label), 1)
878
- ]),
879
- _: 2
880
- }, 1024),
881
- e.shouldShowDescription(o) ? (d(), D(m, {
882
- key: 0,
883
- class: "b-listbox-multi-select__option-description",
884
- el: "span"
885
- }, {
886
- default: I(() => [
887
- z(G(o.description), 1)
888
- ]),
889
- _: 2
890
- }, 1024)) : W("", !0)
891
- ])
892
- ], !0)
893
- ]),
894
- _: 2
895
- }, 1032, ["class", "disabled"]))
896
- ], 64))
897
- ]))), 128))
898
- ]);
899
- }
900
- const Rt = /* @__PURE__ */ q(It, [["render", Bt], ["__scopeId", "data-v-b83035ab"]]), Dt = (e) => {
901
- const t = p(() => {
902
- var r;
903
- return !!((r = e.value) != null && r.find(({ items: b }) => !!b));
904
- }), s = p(() => {
905
- var r;
906
- return t.value ? (r = e.value) == null ? void 0 : r.reduce((b, a) => (a.items ? b.push(...a.items.flat()) : b.push(a), b), []) : e.value;
907
- });
908
- return {
909
- isMultiLevelSelect: t,
910
- flattenedItemsList: s
911
- };
912
- }, De = {
913
- "en-US": {
914
- allSelected: "All selected ({total})",
915
- numberOfTotalSelected: "{number} of {total} selected",
916
- numbersSelected: "{number} selected",
917
- selectAll: "Select all ({total})"
918
- }
919
- }, Nt = { class: "b-listbox-multi-select" }, Pt = { key: 0 }, Mt = {
920
- key: 1,
921
- class: "b-listbox-multi-select__divider"
922
- }, wt = { i18n: { messages: De } }, Ut = /* @__PURE__ */ X({
923
- ...wt,
924
- __name: "listbox-multi-select",
925
- props: {
926
- hasMoreItems: { type: Boolean, default: !1 },
927
- isOptionDisabled: { type: Function, default: () => !1 },
928
- items: {},
929
- lazyLoadType: { default: "none" },
930
- searching: { type: Boolean, default: !1 },
931
- selectedValues: {},
932
- staticCategories: { type: Boolean, default: !1 }
933
- },
934
- emits: ["select"],
935
- setup(e, { emit: t }) {
936
- const s = e, r = t, { t: b } = ye({ messages: De }), a = je(), l = M(null), m = M(null), g = M(null), n = p(() => s.selectedValues.map(({ value: c }) => c)), { isMultiLevelSelect: v, flattenedItemsList: o } = Dt(Z(s, "items")), h = (c) => {
937
- var _;
938
- const f = s.isOptionDisabled(c), i = ((_ = n.value) == null ? void 0 : _.includes(c.value)) || !1;
939
- return { isDisabled: f, isPreSelected: i };
940
- }, L = p(() => {
941
- if (s.searching && v)
942
- return s.items;
943
- const c = o.value.filter((f) => {
944
- const { isDisabled: i, isPreSelected: _ } = h(f);
945
- return i && _ || !i;
946
- });
947
- return s.selectedValues.forEach((f) => {
948
- c.find((i) => i.value === f.value) || c.push(f);
949
- }), c;
950
- }), k = p(
951
- () => {
952
- var c;
953
- return (c = L.value) == null ? void 0 : c.filter((f) => {
954
- var i;
955
- return f.items && v.value && s.searching ? f.items.filter(
956
- (E) => (s.selectedValues ?? []).includes(E.value)
957
- ).length === f.items.length : (i = n.value) == null ? void 0 : i.includes(f.value);
958
- });
959
- }
960
- ), B = () => v.value && !s.searching ? o.value.length : s.items.length, y = p(() => {
961
- var _;
962
- const c = L.value.length, f = B(), i = ((_ = k.value) == null ? void 0 : _.length) || 0;
963
- return i === 0 ? b("selectAll", { total: c }) : i === f ? b("allSelected", { total: f }) : i <= f ? b("numberOfTotalSelected", { number: i, total: f }) : b("numbersSelected", { number: i });
964
- }), S = (c) => {
965
- const f = (_) => {
966
- const { isDisabled: E, isPreSelected: j } = h(_);
967
- return E && j || !E;
968
- }, i = c.filter(f).filter((_) => !n.value.includes(_.value));
969
- r("select", [...s.selectedValues, ...i]);
970
- }, O = (c) => {
971
- const f = (E) => {
972
- const { isDisabled: j, isPreSelected: We } = h(E);
973
- return !(j && We);
974
- }, i = c.filter(f).map(({ value: E }) => E), _ = s.selectedValues.filter((E) => !(i != null && i.includes(E.value)));
975
- r("select", _);
976
- }, R = () => {
977
- S(o.value);
978
- }, C = () => {
979
- O(o.value);
980
- }, { isAllSelected: A, isIndeterminate: V, toggleSelectAll: te } = Be(
981
- k,
982
- L,
983
- R,
984
- C
985
- ), me = (c) => {
986
- S(c.items);
987
- }, ue = (c) => {
988
- O(c.items);
989
- }, J = (c, f) => {
990
- let i = !1;
991
- const _ = s.selectedValues.filter(({ value: E }) => f.value === E ? (i = !0, !1) : !0);
992
- i || _.push(f), r(c, _);
993
- }, w = p(() => {
994
- if (!v.value)
995
- return s.selectedValues;
996
- const c = (E) => n.value.includes(E.value), f = (E) => !s.staticCategories && E.every((j) => c(j));
997
- return s.items.flatMap(
998
- (E) => E.items && !f(E.items) ? E.items : E
999
- ).filter((E) => E.items ? !0 : c(E));
1000
- }), ae = p(() => {
1001
- var i, _, E, j;
1002
- const c = ["automatic", "button"].includes(s.lazyLoadType), f = ((i = s.selectedValues) == null ? void 0 : i.length) > 0 && ((_ = k.value) == null ? void 0 : _.length) !== ((E = o.value) == null ? void 0 : E.length);
1003
- return c && s.hasMoreItems ? !!((j = s.selectedValues) != null && j.length) : f;
1004
- }), Ce = p(() => ["automatic", "button"].includes(s.lazyLoadType) ? !s.hasMoreItems : !0), Ne = p(
1005
- () => l.value ? [l.value] : []
1006
- ), Pe = p(
1007
- () => {
1008
- var c, f;
1009
- return (f = (c = g.value) == null ? void 0 : c.$children) != null && f.length ? g.value.$children : [];
1010
- }
1011
- ), Me = p(() => ({ label: y, value: A })), we = p(() => [Me, ...Z(s, "items").value]), Ue = (c) => {
1012
- var _;
1013
- const f = [...Ne.value, ...Pe.value], i = f[c].$el;
1014
- i.tagName === "LABEL" ? i.focus() : (_ = i.querySelector("label")) == null || _.focus(), f[c].$el.focus();
1015
- }, {
1016
- moveToNextElement: Ve,
1017
- moveToPreviousElement: xe,
1018
- moveToFirstElement: Ge,
1019
- moveToLastElement: ze,
1020
- preventDefault: he,
1021
- focusedIndex: Ee
1022
- } = Re(
1023
- {
1024
- items: M(we),
1025
- isOptionDisabled: s.isOptionDisabled,
1026
- hasStaticCategories: Z(s, "staticCategories")
1027
- },
1028
- Ue
1029
- ), Ye = {
1030
- [x.ARROW_UP]: (c) => xe(c),
1031
- [x.ARROW_DOWN]: (c) => Ve(c),
1032
- [x.HOME]: Ge,
1033
- [x.END]: ze
1034
- }, Fe = {
1035
- [x.ARROW_UP]: he,
1036
- [x.ARROW_DOWN]: he
1037
- };
1038
- return (c, f) => (d(), T("div", Nt, [
1039
- ae.value ? (d(), T("div", Pt, [
1040
- oe((d(), T("ul", U({ class: "b-listbox-multi-select__chips" }, Q(Fe, !0)), [
1041
- (d(!0), T(ee, null, F(w.value, (i) => (d(), T("li", {
1042
- key: i.value
1043
- }, [
1044
- P(N(Qe), {
1045
- ref_for: !0,
1046
- ref_key: "selectedListboxItemsRef",
1047
- ref: m,
1048
- disabled: c.isOptionDisabled(i),
1049
- label: i.label,
1050
- condensed: "",
1051
- onClick: (_) => i.items ? ue(i) : J("select", i)
1052
- }, null, 8, ["disabled", "label", "onClick"])
1053
- ]))), 128))
1054
- ], 16)), [
1055
- [N(de)]
1056
- ]),
1057
- f[4] || (f[4] = K("hr", { class: "b-listbox-multi-select__divider" }, null, -1))
1058
- ])) : W("", !0),
1059
- oe((d(), T("div", Q(Ye, !0), [
1060
- Ce.value ? (d(), D(N(be), {
1061
- key: 0,
1062
- ref_key: "selectAllListboxItemsRef",
1063
- ref: l,
1064
- class: "b-listbox-multi-select__option"
1065
- }, {
1066
- default: I(() => [
1067
- P(N(Se), {
1068
- "aria-label": y.value,
1069
- "model-value": N(A),
1070
- indeterminate: N(V),
1071
- tabindex: N(Ee) === 0 ? 0 : -1,
1072
- "onUpdate:modelValue": N(te)
1073
- }, null, 8, ["aria-label", "model-value", "indeterminate", "tabindex", "onUpdate:modelValue"]),
1074
- P(N(ne), {
1075
- el: "span",
1076
- "aria-hidden": "true"
1077
- }, {
1078
- default: I(() => [
1079
- z(G(y.value), 1)
1080
- ]),
1081
- _: 1
1082
- })
1083
- ]),
1084
- _: 1
1085
- }, 512)) : W("", !0),
1086
- Ce.value ? (d(), T("hr", Mt)) : W("", !0),
1087
- P(N(Rt), {
1088
- ref_key: "listboxItemsRef",
1089
- ref: g,
1090
- items: c.items,
1091
- "is-option-disabled": c.isOptionDisabled,
1092
- "is-multi-level": N(v),
1093
- "static-categories": c.staticCategories,
1094
- searching: c.searching,
1095
- "selected-items-list": n.value,
1096
- "focused-index": N(Ee),
1097
- onToggleCheckboxSelection: f[0] || (f[0] = (i) => J("select", i)),
1098
- onSelectCategory: me,
1099
- onUnselectCategory: ue,
1100
- onSpacePressed: f[1] || (f[1] = (i) => J(N(u).SPACE, i)),
1101
- onTabPressed: f[2] || (f[2] = (i) => J(N(u).TAB, i)),
1102
- onEnterPressed: f[3] || (f[3] = (i) => J(N(u).ENTER, i))
1103
- }, ce({ _: 2 }, [
1104
- F(N(a), (i, _) => ({
1105
- name: _,
1106
- fn: I((E) => [
1107
- Y(c.$slots, _, le(re(E)), void 0, !0)
1108
- ])
1109
- }))
1110
- ]), 1032, ["items", "is-option-disabled", "is-multi-level", "static-categories", "searching", "selected-items-list", "focused-index"])
1111
- ], 16)), [
1112
- [N(de)]
1113
- ])
1114
- ]));
1115
- }
1116
- }), Le = /* @__PURE__ */ q(Ut, [["__scopeId", "data-v-98a72a10"]]), Oe = {
1117
- "en-US": {
1118
- loading: "Loading",
1119
- showMore: "Show more"
1120
- },
1121
- "ja-JP": {
1122
- loading: "読み込み中",
1123
- showMore: "表示内容を増やす"
1124
- },
1125
- "pt-BR": {
1126
- loading: "Carregando",
1127
- showMore: "Mostrar mais"
1128
- }
1129
- }, Vt = 36, xt = X({
1130
- name: "bento-listbox",
1131
- components: {
1132
- BentoEmptyState: Je,
1133
- BentoListboxSingleSelect: Et,
1134
- BentoListboxMultiSelect: Le,
1135
- BentoTypography: ne,
1136
- BentoLoadingIndicator: Xe,
1137
- BentoLoadingButton: st
1138
- },
1139
- directives: { BentoKeyboardNavigationDirective: de },
1140
- i18n: { messages: Oe },
1141
- props: {
1142
- /**
1143
- * Defines a string value that labels an interactive element.
1144
- */
1145
- ariaLabel: { type: String, default: null },
1146
- /**
1147
- * Empty state props that will be used with the inner empty state component to be displayed when no search results are found.
1148
- */
1149
- emptyState: {
1150
- type: Object,
1151
- default: void 0
1152
- },
1153
- /**
1154
- * Indicates whether there are more items to load
1155
- */
1156
- hasMoreItems: { type: Boolean, default: !1 },
1157
- /**
1158
- * Identifies the listbox whose contents are controlled by the the combobox on which the aria-controls attribute is set.
1159
- */
1160
- id: { type: String, required: !0 },
1161
- /**
1162
- * Function that allows the options to be disabled
1163
- *
1164
- * @type {BentoListboxIsOptionDisabled}
1165
- * @param {BentoListboxOptionItem} option - Listbox option object
1166
- * @param {string} option.label - Option's label text
1167
- * @param {string|number} option.value - Option's value
1168
- * @param {unknown} option.data - Option's extra data to be passed to the default slot
1169
- */
1170
- isOptionDisabled: {
1171
- type: Function,
1172
- default: () => {
1173
- }
1174
- },
1175
- /**
1176
- * The option elements to populate the listbox with.
1177
- * It must be an array of {@see BentoListboxOptionItem }
1178
- * * @property {string} value.label - Text to be displayed in the option
1179
- * * @property {string,number} value.value - Value of the option
1180
- */
1181
- items: {
1182
- type: Array,
1183
- required: !0
1184
- },
1185
- /**
1186
- * Indicates if new options are lazy loading.
1187
- */
1188
- loading: { type: Boolean, default: !1 },
1189
- /**
1190
- * The type of `Lazy Load`.
1191
- * Type "automatic" will enable infinite scrolling
1192
- * Type "button" will enable lazy loading with "Show more" button
1193
- */
1194
- lazyLoadType: {
1195
- type: String,
1196
- default: se.NONE,
1197
- validator: (e) => Object.values(se).includes(e)
1198
- },
1199
- /**
1200
- * Indicates the listbox is loading filtered items.
1201
- */
1202
- componentLoading: { type: Boolean, default: !1 },
1203
- /**
1204
- * If enabled, the user will be able to select multiple items.
1205
- */
1206
- multiple: { type: Boolean, default: !1 },
1207
- /**
1208
- * If enabled, dropdown will display non-selectable, static categories
1209
- */
1210
- staticCategories: { type: Boolean, default: !1 },
1211
- /**
1212
- * Messaged displayed when no items are listed in the listbox
1213
- */
1214
- noResultsMessage: { type: String, required: !0 },
1215
- /**
1216
- * Flag that indicates that an external search it's being made
1217
- * to filter out the items inside the the multi-select listbox
1218
- *
1219
- * If enabled, hides the "Select all" checkbox in "multiple" mode.
1220
- */
1221
- searching: Le.props.searching,
1222
- /**
1223
- * The `input` value.
1224
- * Providing an empty string or empty array will select no options.
1225
- * Set to an empty string `''` if you don't want any of the available options to be selected for single select
1226
- */
1227
- selectedValue: {
1228
- type: Array,
1229
- default: () => []
1230
- },
1231
- /**
1232
- * Enables virtual scrolling if set to true or by providing an object with itemHeight function.
1233
- * The itemHeight function is used to calculate the height of rendered item given it's index.
1234
- */
1235
- virtualScroll: {
1236
- type: [Boolean, Object],
1237
- default: !1
1238
- }
1239
- },
1240
- emits: [
1241
- u.SELECT,
1242
- u.SPACE,
1243
- u.SHOW_MORE,
1244
- u.ENTER,
1245
- u.ESCAPE,
1246
- u.TAB
1247
- ],
1248
- setup(e, { emit: t, slots: s }) {
1249
- const r = M([]), b = Z(e, "items"), { t: a } = ye({ messages: Oe }), l = p(() => e.lazyLoadType !== se.AUTOMATIC), m = p(() => e.lazyLoadType === se.AUTOMATIC), g = () => {
1250
- var w;
1251
- return typeof (e == null ? void 0 : e.virtualScroll) == "object" && ((w = e == null ? void 0 : e.virtualScroll) != null && w.itemHeight) ? e.virtualScroll.itemHeight : Vt;
1252
- }, {
1253
- containerRef: n,
1254
- containerProps: v,
1255
- onScroll: o,
1256
- list: h,
1257
- wrapperProps: L
1258
- } = ot(b, {
1259
- itemHeight: g(),
1260
- // Disable virtual scrolling if not enabled or if lazy loading is enabled or if multi-select
1261
- disabled: (e == null ? void 0 : e.multiple) || (e == null ? void 0 : e.virtualScroll) === !1 || (e == null ? void 0 : e.lazyLoadType) !== "none"
1262
- }), k = p(
1263
- () => e.componentLoading !== void 0 || l.value ? "true" : void 0
1264
- ), B = p(
1265
- () => l.value && e.loading || e.componentLoading ? "true" : "false"
1266
- ), y = p(
1267
- () => l.value || e.componentLoading !== void 0 ? "polite" : void 0
1268
- ), S = (w) => (ae) => {
1269
- t(w, ae);
1270
- }, O = () => {
1271
- t(u.SHOW_MORE);
1272
- }, R = Ze(() => {
1273
- const w = n.value;
1274
- if (!w)
1275
- return;
1276
- const ae = Math.round(w.scrollTop) + w.clientHeight >= w.scrollHeight;
1277
- e.hasMoreItems && ae && !e.loading && O();
1278
- }), C = () => {
1279
- m.value ? R() : o();
1280
- }, A = p(() => {
1281
- var w;
1282
- return ((w = e.items) == null ? void 0 : w.length) === 0;
1283
- }), V = p(
1284
- () => e.lazyLoadType === se.BUTTON && e.hasMoreItems
1285
- ), te = p(
1286
- () => e.loading ? _e.LOADING : _e.START
1287
- ), me = p(() => e.loading ? a("loading") : a("showMore")), ue = p(() => ({
1288
- ...e.emptyState,
1289
- variant: "condensed"
1290
- })), J = {
1291
- [u.SELECT]: S(u.SELECT),
1292
- [u.SPACE]: S(u.SPACE),
1293
- [u.TAB]: S(u.TAB),
1294
- [u.ENTER]: S(u.ENTER)
1295
- };
1296
- return {
1297
- // Refs
1298
- listboxRef: n,
1299
- listboxItemRef: r,
1300
- // a11y
1301
- ariaAtomic: k,
1302
- ariaBusy: B,
1303
- ariaLive: y,
1304
- // Values
1305
- containerProps: v,
1306
- isSearchResultEmpty: A,
1307
- limitedEmptyStateProps: ue,
1308
- loadingButtonState: te,
1309
- slots: s,
1310
- shouldDisplayShowMoreButton: V,
1311
- showMoreButtonText: me,
1312
- virtualisedItems: h,
1313
- wrapperProps: L,
1314
- // Enums
1315
- BentoKeyboardNavigationKeyDownEvent: x,
1316
- BentoListboxEvent: u,
1317
- // Methods
1318
- onListboxContainerScroll: C,
1319
- onOptionSelected: S,
1320
- emitShowMore: O,
1321
- listboxListeners: J
1322
- };
1323
- }
1324
- }), Gt = ["id", "aria-busy", "aria-atomic", "aria-label", "aria-live"], zt = {
1325
- key: 0,
1326
- class: "b-listbox__loading-filtered-items"
1327
- }, Yt = {
1328
- key: 1,
1329
- class: "b-listbox__empty-search-message"
1330
- }, Ft = {
1331
- key: 2,
1332
- class: "b-listbox__lazy-load"
1333
- }, Wt = {
1334
- key: 3,
1335
- class: "b-listbox__lazy-load"
1336
- };
1337
- function Kt(e, t, s, r, b, a) {
1338
- var L;
1339
- const l = $("bento-loading-indicator"), m = $("bento-empty-state"), g = $("bento-typography"), n = $("bento-listbox-multi-select"), v = $("bento-listbox-single-select"), o = $("bento-loading-button"), h = ke("bento-keyboard-navigation-directive");
1340
- return oe((d(), T("div", {
1341
- id: e.id,
1342
- ref: "listboxRef",
1343
- class: "b-listbox",
1344
- role: "listbox",
1345
- tabindex: "-1",
1346
- "aria-busy": e.ariaBusy,
1347
- "aria-atomic": e.ariaAtomic,
1348
- "aria-label": e.ariaLabel,
1349
- "aria-live": e.ariaLive,
1350
- style: He((L = e.containerProps) == null ? void 0 : L.style),
1351
- onScroll: t[0] || (t[0] = (...k) => e.onListboxContainerScroll && e.onListboxContainerScroll(...k))
1352
- }, [
1353
- K("div", le(re(e.wrapperProps)), [
1354
- e.componentLoading ? (d(), T("div", zt, [
1355
- P(l)
1356
- ])) : e.isSearchResultEmpty ? (d(), T("div", Yt, [
1357
- e.emptyState ? (d(), D(m, le(U({ key: 0 }, e.limitedEmptyStateProps)), null, 16)) : (d(), D(g, {
1358
- key: 1,
1359
- el: "span"
1360
- }, {
1361
- default: I(() => [
1362
- z(G(e.noResultsMessage), 1)
1363
- ]),
1364
- _: 1
1365
- }))
1366
- ])) : (d(), T(ee, { key: 2 }, [
1367
- e.multiple ? (d(), D(n, U({
1368
- key: 0,
1369
- ref: "listboxItemRef",
1370
- "has-more-items": e.hasMoreItems,
1371
- items: e.items,
1372
- "lazy-load-type": e.lazyLoadType,
1373
- "static-categories": e.staticCategories,
1374
- "selected-values": e.selectedValue,
1375
- searching: e.searching,
1376
- "is-option-disabled": e.isOptionDisabled
1377
- }, Q(e.listboxListeners)), ce({ _: 2 }, [
1378
- F(e.slots, (k, B) => ({
1379
- name: B,
1380
- fn: I((y) => [
1381
- Y(e.$slots, B, le(re(y)), void 0, !0)
1382
- ])
1383
- }))
1384
- ]), 1040, ["has-more-items", "items", "lazy-load-type", "static-categories", "selected-values", "searching", "is-option-disabled"])) : (d(), D(v, U({
1385
- key: 1,
1386
- ref: "listboxItemRef",
1387
- items: e.virtualisedItems,
1388
- "selected-value": e.selectedValue,
1389
- "static-categories": e.staticCategories,
1390
- "is-option-disabled": e.isOptionDisabled
1391
- }, Q(e.listboxListeners)), ce({ _: 2 }, [
1392
- F(e.slots, (k, B) => ({
1393
- name: B,
1394
- fn: I((y) => [
1395
- Y(e.$slots, B, le(re(y)), void 0, !0)
1396
- ])
1397
- }))
1398
- ]), 1040, ["items", "selected-value", "static-categories", "is-option-disabled"])),
1399
- e.shouldDisplayShowMoreButton ? (d(), T("div", Ft, [
1400
- P(o, {
1401
- state: e.loadingButtonState,
1402
- variant: "secondary",
1403
- onClickCapture: e.emitShowMore
1404
- }, {
1405
- default: I(() => [
1406
- z(G(e.showMoreButtonText), 1)
1407
- ]),
1408
- _: 1
1409
- }, 8, ["state", "onClickCapture"])
1410
- ])) : e.loading ? (d(), T("div", Wt, [
1411
- P(l)
1412
- ])) : W("", !0)
1413
- ], 64))
1414
- ], 16)
1415
- ], 44, Gt)), [
1416
- [h]
1417
- ]);
1418
- }
1419
- const rs = /* @__PURE__ */ q(xt, [["render", Kt], ["__scopeId", "data-v-7b74fe4e"]]), pe = (e, t) => {
1420
- for (const s of e) {
1421
- if (s.value === t)
1422
- return s;
1423
- if (s.items) {
1424
- const r = pe(s.items, t);
1425
- if (r)
1426
- return r;
1427
- }
1428
- }
1429
- return null;
1430
- }, cs = (e, t, s) => {
1431
- const r = M([]), b = M(), a = (g) => {
1432
- s.value ? b.value = g.map(({ value: n }) => n) : b.value = g.length > 0 ? g[0].value : null;
1433
- }, l = (g) => {
1434
- r.value = g, a(g);
1435
- }, m = () => {
1436
- r.value = [], b.value = null;
1437
- };
1438
- return Ie(
1439
- () => t.value,
1440
- () => {
1441
- if (!t.value && t.value !== 0) {
1442
- m();
1443
- return;
1444
- }
1445
- const g = !Array.isArray(t.value), n = [...r.value];
1446
- m();
1447
- const v = (o) => {
1448
- let h = pe(e.value, o);
1449
- h || (h = pe(n, o)), h || (h = { value: o, label: o.toString() }), r.value.push(h);
1450
- };
1451
- if (g) {
1452
- const o = t.value;
1453
- v(o), a(r.value);
1454
- return;
1455
- }
1456
- t.value.forEach(v), a(r.value);
1457
- },
1458
- { immediate: !0 }
1459
- ), {
1460
- // Values
1461
- cachedSelectedListboxOptions: r,
1462
- cachedListboxSelectedValues: b,
1463
- // Methods
1464
- resetCache: m,
1465
- setCachedValues: l
1466
- };
1467
- };
1468
- export {
1469
- se as B,
1470
- u as a,
1471
- rs as b,
1472
- cs as c,
1473
- Dt as u
1474
- };
1475
- //# sourceMappingURL=use-cached-selected-values.Dk0UxwFJ.js.map