@adyen/bento-vue3 1.24.0 → 1.26.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 (280) hide show
  1. package/dist/@types/packages/vue2/src/components/alert/alert.types.d.ts +3 -0
  2. package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +46 -54
  3. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +86 -179
  4. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -2
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.keys.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +8 -1
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +7 -4
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +26 -11
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  15. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +18 -6
  16. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +36 -12
  17. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +18 -6
  18. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +18 -6
  19. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +19 -53
  20. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +2 -2
  21. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/composables/use-dropdown-options-listbox.d.ts +13 -7
  25. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +14 -14
  26. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  27. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +2 -2
  28. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +3 -24
  29. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +4 -4
  30. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
  31. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/index.d.ts +1 -0
  32. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/index.d.ts +2 -0
  33. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-button/select-filter-button.vue.d.ts +148 -0
  34. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/components/select-filter-dropdown/select-filter-dropdown.vue.d.ts +150 -0
  35. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +28 -27
  36. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +11 -7
  37. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/dialog-page/dialog-page.types.d.ts +1 -0
  40. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +3 -3
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +1 -2
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +45 -9
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -9
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-cached-selected-values/use-cached-selected-values.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
  47. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +3 -2
  49. package/dist/@types/packages/vue2/src/components/menu/components/menu-list-container/menu-list-container.vue.d.ts +8 -1
  50. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -1
  51. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
  52. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
  53. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -2
  54. package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +1 -1
  55. package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
  56. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
  57. package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +22 -2
  58. package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
  60. package/dist/@types/packages/vue2/src/composables/use-click-outside/index.d.ts +1 -0
  61. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  62. package/dist/accordion.js +3 -3
  63. package/dist/action-bar.js +7 -7
  64. package/dist/alert.js +126 -166
  65. package/dist/alert.js.map +1 -1
  66. package/dist/assets/base-modal.css +1 -1
  67. package/dist/assets/dialog-page.css +1 -1
  68. package/dist/assets/dropdown.css +1 -1
  69. package/dist/assets/index.css +1 -1
  70. package/dist/assets/index10.css +1 -1
  71. package/dist/assets/index11.css +1 -1
  72. package/dist/assets/index12.css +1 -1
  73. package/dist/assets/index13.css +1 -1
  74. package/dist/assets/index14.css +1 -1
  75. package/dist/assets/index15.css +1 -1
  76. package/dist/assets/index16.css +1 -1
  77. package/dist/assets/index17.css +1 -1
  78. package/dist/assets/index18.css +1 -1
  79. package/dist/assets/index19.css +1 -1
  80. package/dist/assets/index2.css +1 -1
  81. package/dist/assets/index20.css +1 -1
  82. package/dist/assets/index21.css +1 -1
  83. package/dist/assets/index22.css +1 -1
  84. package/dist/assets/index23.css +1 -1
  85. package/dist/assets/index24.css +1 -1
  86. package/dist/assets/index25.css +1 -1
  87. package/dist/assets/index26.css +1 -1
  88. package/dist/assets/index27.css +1 -1
  89. package/dist/assets/index28.css +1 -1
  90. package/dist/assets/index29.css +1 -1
  91. package/dist/assets/index3.css +1 -1
  92. package/dist/assets/index30.css +1 -1
  93. package/dist/assets/index31.css +1 -1
  94. package/dist/assets/index32.css +1 -1
  95. package/dist/assets/index33.css +1 -1
  96. package/dist/assets/index34.css +1 -1
  97. package/dist/assets/index35.css +1 -1
  98. package/dist/assets/index36.css +1 -1
  99. package/dist/assets/index37.css +1 -1
  100. package/dist/assets/index38.css +1 -1
  101. package/dist/assets/index39.css +1 -1
  102. package/dist/assets/index4.css +1 -1
  103. package/dist/assets/index40.css +1 -1
  104. package/dist/assets/index41.css +1 -1
  105. package/dist/assets/index42.css +1 -1
  106. package/dist/assets/index43.css +1 -1
  107. package/dist/assets/index44.css +1 -1
  108. package/dist/assets/index45.css +1 -1
  109. package/dist/assets/index46.css +1 -1
  110. package/dist/assets/index47.css +1 -1
  111. package/dist/assets/index48.css +1 -1
  112. package/dist/assets/index5.css +1 -1
  113. package/dist/assets/index6.css +1 -1
  114. package/dist/assets/index7.css +1 -1
  115. package/dist/assets/index8.css +1 -1
  116. package/dist/assets/index9.css +1 -1
  117. package/dist/assets/{listbox.css → use-cached-selected-values.css} +1 -1
  118. package/dist/avatar-image.js +1 -1
  119. package/dist/badge.js +1 -1
  120. package/dist/button.js +5 -5
  121. package/dist/card.js +168 -267
  122. package/dist/card.js.map +1 -1
  123. package/dist/checkbox.js +6 -6
  124. package/dist/chunks/{base-button.ab9c947e.js → base-button.e84acf30.js} +2 -2
  125. package/dist/chunks/{base-button.ab9c947e.js.map → base-button.e84acf30.js.map} +1 -1
  126. package/dist/chunks/{base-modal.28b5ff83.js → base-modal.29e062d0.js} +7 -7
  127. package/dist/chunks/{base-modal.28b5ff83.js.map → base-modal.29e062d0.js.map} +1 -1
  128. package/dist/chunks/{button-actions-with-menu.305991e5.js → button-actions-with-menu.7fce47a2.js} +4 -4
  129. package/dist/chunks/{button-actions-with-menu.305991e5.js.map → button-actions-with-menu.7fce47a2.js.map} +1 -1
  130. package/dist/chunks/{button-actions.ea025810.js → button-actions.642b37de.js} +3 -3
  131. package/dist/chunks/{button-actions.ea025810.js.map → button-actions.642b37de.js.map} +1 -1
  132. package/dist/chunks/{button.ce5d1f5e.js → button.60dad578.js} +3 -3
  133. package/dist/chunks/{button.ce5d1f5e.js.map → button.60dad578.js.map} +1 -1
  134. package/dist/chunks/{calendar.24a492f1.js → calendar.f38cdab9.js} +5 -5
  135. package/dist/chunks/{calendar.24a492f1.js.map → calendar.f38cdab9.js.map} +1 -1
  136. package/dist/chunks/{checkbox-input.99336948.js → checkbox-input.ab758a81.js} +2 -2
  137. package/dist/chunks/{checkbox-input.99336948.js.map → checkbox-input.ab758a81.js.map} +1 -1
  138. package/dist/chunks/{checkbox.d0f897e0.js → checkbox.f55ee3a5.js} +4 -4
  139. package/dist/chunks/{checkbox.d0f897e0.js.map → checkbox.f55ee3a5.js.map} +1 -1
  140. package/dist/chunks/{checkmark-circle-fill.c45a999d.js → checkmark-circle-fill.f3a69c6a.js} +2 -2
  141. package/dist/chunks/{checkmark-circle-fill.c45a999d.js.map → checkmark-circle-fill.f3a69c6a.js.map} +1 -1
  142. package/dist/chunks/{checkmark-small.c79220d9.js → checkmark-small.d7e31e5e.js} +2 -2
  143. package/dist/chunks/{checkmark-small.c79220d9.js.map → checkmark-small.d7e31e5e.js.map} +1 -1
  144. package/dist/chunks/{checkmark.eb3c7a06.js → checkmark.87919b24.js} +2 -2
  145. package/dist/chunks/{checkmark.eb3c7a06.js.map → checkmark.87919b24.js.map} +1 -1
  146. package/dist/chunks/{chevron-left.4ee92950.js → chevron-left.963d35e9.js} +2 -2
  147. package/dist/chunks/{chevron-left.4ee92950.js.map → chevron-left.963d35e9.js.map} +1 -1
  148. package/dist/chunks/{chevron-up.638a9f34.js → chevron-up.05ca20db.js} +2 -2
  149. package/dist/chunks/{chevron-up.638a9f34.js.map → chevron-up.05ca20db.js.map} +1 -1
  150. package/dist/chunks/{controls-group.2b31233c.js → controls-group.9e0f17b2.js} +3 -3
  151. package/dist/chunks/{controls-group.2b31233c.js.map → controls-group.9e0f17b2.js.map} +1 -1
  152. package/dist/chunks/{copy.9003ed59.js → copy.852d4cb8.js} +4 -4
  153. package/dist/chunks/{copy.9003ed59.js.map → copy.852d4cb8.js.map} +1 -1
  154. package/dist/chunks/{cross-circle-fill.1abec1a2.js → cross-circle-fill.81925c7f.js} +2 -2
  155. package/dist/chunks/{cross-circle-fill.1abec1a2.js.map → cross-circle-fill.81925c7f.js.map} +1 -1
  156. package/dist/chunks/{cross-small.b85406fe.js → cross-small.9bc6a02f.js} +2 -2
  157. package/dist/chunks/{cross-small.b85406fe.js.map → cross-small.9bc6a02f.js.map} +1 -1
  158. package/dist/chunks/{cross.26509efc.js → cross.a60533f6.js} +2 -2
  159. package/dist/chunks/{cross.26509efc.js.map → cross.a60533f6.js.map} +1 -1
  160. package/dist/chunks/dialog-page.ea67bb14.js +173 -0
  161. package/dist/chunks/dialog-page.ea67bb14.js.map +1 -0
  162. package/dist/chunks/{dropdown-default-textbox.311443a8.js → dropdown-default-textbox.ad5063c2.js} +4 -4
  163. package/dist/chunks/{dropdown-default-textbox.311443a8.js.map → dropdown-default-textbox.ad5063c2.js.map} +1 -1
  164. package/dist/chunks/{dropdown.170b43c4.js → dropdown.d8587f36.js} +295 -317
  165. package/dist/chunks/dropdown.d8587f36.js.map +1 -0
  166. package/dist/chunks/{error-message.4678cbdc.js → error-message.3fb5573a.js} +3 -3
  167. package/dist/chunks/{error-message.4678cbdc.js.map → error-message.3fb5573a.js.map} +1 -1
  168. package/dist/chunks/{fixed-scroller.f09618f2.js → fixed-scroller.59aefd1b.js} +3 -3
  169. package/dist/chunks/{fixed-scroller.f09618f2.js.map → fixed-scroller.59aefd1b.js.map} +1 -1
  170. package/dist/chunks/{footer-actions.2efe610e.js → footer-actions.89e68269.js} +4 -4
  171. package/dist/chunks/{footer-actions.2efe610e.js.map → footer-actions.89e68269.js.map} +1 -1
  172. package/dist/chunks/{index.1b1646bf.js → index.030c1dd7.js} +212 -191
  173. package/dist/chunks/index.030c1dd7.js.map +1 -0
  174. package/dist/chunks/{index.70c91b3b.js → index.07122048.js} +2 -2
  175. package/dist/chunks/{index.70c91b3b.js.map → index.07122048.js.map} +1 -1
  176. package/dist/chunks/{index.c41d1bbb.js → index.146f967e.js} +2 -2
  177. package/dist/chunks/{index.c41d1bbb.js.map → index.146f967e.js.map} +1 -1
  178. package/dist/chunks/{index.920cc1ee.js → index.5bdebf9d.js} +7 -7
  179. package/dist/chunks/{index.920cc1ee.js.map → index.5bdebf9d.js.map} +1 -1
  180. package/dist/chunks/{index.b772214b.js → index.6e0e9d21.js} +3 -3
  181. package/dist/chunks/{index.b772214b.js.map → index.6e0e9d21.js.map} +1 -1
  182. package/dist/chunks/{index.44f2aca7.js → index.8be283d5.js} +2 -2
  183. package/dist/chunks/{index.44f2aca7.js.map → index.8be283d5.js.map} +1 -1
  184. package/dist/chunks/{index.0d513625.js → index.96cd0d4c.js} +9 -9
  185. package/dist/chunks/{index.0d513625.js.map → index.96cd0d4c.js.map} +1 -1
  186. package/dist/chunks/{index.b3cb905c.js → index.9bf04b01.js} +3 -3
  187. package/dist/chunks/{index.b3cb905c.js.map → index.9bf04b01.js.map} +1 -1
  188. package/dist/chunks/{index.51fe0fc2.js → index.a3d60e4f.js} +17 -17
  189. package/dist/chunks/index.a3d60e4f.js.map +1 -0
  190. package/dist/chunks/{index.c5b58864.js → index.ba3396d3.js} +3 -3
  191. package/dist/chunks/{index.c5b58864.js.map → index.ba3396d3.js.map} +1 -1
  192. package/dist/chunks/{index.6987f880.js → index.c8ffede1.js} +7 -7
  193. package/dist/chunks/{index.6987f880.js.map → index.c8ffede1.js.map} +1 -1
  194. package/dist/chunks/{info.550f9511.js → info.205b4496.js} +2 -2
  195. package/dist/chunks/{info.550f9511.js.map → info.205b4496.js.map} +1 -1
  196. package/dist/chunks/{listbox-option-tag.bf77e0c4.js → listbox-option-tag.b6182b2e.js} +3 -3
  197. package/dist/chunks/{listbox-option-tag.bf77e0c4.js.map → listbox-option-tag.b6182b2e.js.map} +1 -1
  198. package/dist/chunks/{loading-button.cdc193c6.js → loading-button.0391ad8b.js} +4 -4
  199. package/dist/chunks/{loading-button.cdc193c6.js.map → loading-button.0391ad8b.js.map} +1 -1
  200. package/dist/chunks/{payment-method.ea1788f7.js → payment-method.31a68b9b.js} +2 -2
  201. package/dist/chunks/{payment-method.ea1788f7.js.map → payment-method.31a68b9b.js.map} +1 -1
  202. package/dist/chunks/{refresh.bd60f6a8.js → refresh.53691839.js} +2 -2
  203. package/dist/chunks/{refresh.bd60f6a8.js.map → refresh.53691839.js.map} +1 -1
  204. package/dist/chunks/{search.ade93bda.js → search.4e4ee4dd.js} +2 -2
  205. package/dist/chunks/{search.ade93bda.js.map → search.4e4ee4dd.js.map} +1 -1
  206. package/dist/chunks/{tooltip.10210728.js → tooltip.1084d92b.js} +3 -3
  207. package/dist/chunks/{tooltip.10210728.js.map → tooltip.1084d92b.js.map} +1 -1
  208. package/dist/chunks/{use-bento-toast-controller.3275a505.js → use-bento-toast-controller.98d8613c.js} +2 -2
  209. package/dist/chunks/{use-bento-toast-controller.3275a505.js.map → use-bento-toast-controller.98d8613c.js.map} +1 -1
  210. package/dist/chunks/use-cached-selected-values.852aeafe.js +1537 -0
  211. package/dist/chunks/use-cached-selected-values.852aeafe.js.map +1 -0
  212. package/dist/code-snippet.js +7 -7
  213. package/dist/code-snippet.js.map +1 -1
  214. package/dist/country.js +2 -2
  215. package/dist/currency.js +1 -1
  216. package/dist/data-grid-template.js +1 -1
  217. package/dist/data-grid.js +1317 -1256
  218. package/dist/data-grid.js.map +1 -1
  219. package/dist/date-picker.js +8 -8
  220. package/dist/date-range-picker.js +2 -2
  221. package/dist/date.js +1 -1
  222. package/dist/divider.js +1 -1
  223. package/dist/dropdown.js +7 -7
  224. package/dist/empty-state.js +3 -3
  225. package/dist/filter-bar.js +1260 -1108
  226. package/dist/filter-bar.js.map +1 -1
  227. package/dist/focus-trap.js +1 -1
  228. package/dist/form-layout.js +53 -51
  229. package/dist/form-layout.js.map +1 -1
  230. package/dist/header.js +5 -5
  231. package/dist/index.js +141 -133
  232. package/dist/index.js.map +1 -1
  233. package/dist/info-icon.js +4 -4
  234. package/dist/input-field.js +50 -48
  235. package/dist/input-field.js.map +1 -1
  236. package/dist/internal.js +31 -78
  237. package/dist/internal.js.map +1 -1
  238. package/dist/link.js +1 -1
  239. package/dist/loading-indicator.js +1 -1
  240. package/dist/menu.js +1 -1
  241. package/dist/modal-fullscreen.js +7 -7
  242. package/dist/modal.js +6 -6
  243. package/dist/pagination.js +4 -4
  244. package/dist/payment-method.js +1 -1
  245. package/dist/popover.js +1 -1
  246. package/dist/popper-container.js +1 -1
  247. package/dist/radio-group.js +112 -112
  248. package/dist/radio-group.js.map +1 -1
  249. package/dist/search-bar.js +4 -4
  250. package/dist/secondary-nav.js +2 -2
  251. package/dist/segmented-control.js +4 -4
  252. package/dist/selection-card.js +5 -5
  253. package/dist/sidepanel.js +64 -62
  254. package/dist/sidepanel.js.map +1 -1
  255. package/dist/status.js +2 -2
  256. package/dist/stepper.js +4 -4
  257. package/dist/structured-list.js +1 -1
  258. package/dist/summary-grid.js +3 -3
  259. package/dist/tabs.js +22 -20
  260. package/dist/tabs.js.map +1 -1
  261. package/dist/tag.js +3 -3
  262. package/dist/textarea.js +4 -4
  263. package/dist/timeline.js +7 -7
  264. package/dist/toast.js +5 -5
  265. package/dist/toggle.js +3 -3
  266. package/dist/tutorial.js +145 -124
  267. package/dist/tutorial.js.map +1 -1
  268. package/dist/typography.js +1 -1
  269. package/dist/web-types.json +1 -1
  270. package/package.json +7 -3
  271. package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
  272. package/dist/chunks/dialog-page.2c07d294.js +0 -172
  273. package/dist/chunks/dialog-page.2c07d294.js.map +0 -1
  274. package/dist/chunks/dropdown.170b43c4.js.map +0 -1
  275. package/dist/chunks/index.1b1646bf.js.map +0 -1
  276. package/dist/chunks/index.51fe0fc2.js.map +0 -1
  277. package/dist/chunks/listbox.b6a1aea2.js +0 -1466
  278. package/dist/chunks/listbox.b6a1aea2.js.map +0 -1
  279. /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
  280. /package/dist/assets/{cross.css → checkmark-circle-fill.css} +0 -0
@@ -1,19 +1,19 @@
1
- import { defineComponent as O, computed as M, resolveComponent as v, openBlock as d, createBlock as $, normalizeClass as j, createSlots as Z, withCtx as C, createVNode as S, createTextVNode as W, toDisplayString as F, createCommentVNode as R, resolveDynamicComponent as se, createElementBlock as L, renderSlot as N, ref as m, onMounted as ie, Transition as le, createElementVNode as T, withKeys as g, withModifiers as D, Fragment as z, renderList as J, normalizeStyle as Y, mergeProps as G, inject as ue, provide as ae } from "vue";
2
- import { g as V } from "./unique-id.a2a2b458.js";
3
- import { a as re, B as H } from "./index.920cc1ee.js";
4
- import { B as Q, D as de } from "./index.70c91b3b.js";
5
- import { u as ce } from "./use-click-outside.941d1600.js";
6
- import { u as me } from "./use-has-slot.4d98bf29.js";
7
- import { _ as E } from "./_plugin-vue_export-helper.dad06003.js";
8
- import { BentoToggleButton as fe } from "../button.js";
9
- import { B as pe } from "./teleport.afeb4c3b.js";
10
- import { a as ve, C as A } from "./chevron-left.4ee92950.js";
11
- import { B as be, a as q } from "./base-button.ab9c947e.js";
12
- import { B as _e } from "./index.51fe0fc2.js";
13
- import "../assets/index48.css";
14
- const ye = O({
1
+ import { defineComponent as T, computed as M, resolveComponent as b, openBlock as c, createBlock as B, normalizeClass as J, createSlots as Y, withCtx as C, createVNode as L, createTextVNode as V, toDisplayString as W, createCommentVNode as R, resolveDynamicComponent as ie, ref as d, inject as Z, createElementBlock as S, mergeProps as H, toHandlers as le, renderSlot as O, onMounted as ue, Transition as ae, createElementVNode as N, withKeys as h, withModifiers as F, Fragment as z, renderList as Q, normalizeStyle as X, provide as re } from "vue";
2
+ import { g as A } from "./unique-id.a2a2b458.js";
3
+ import { a as de, B as U } from "./index.5bdebf9d.js";
4
+ import { B as x, D as ce } from "./index.07122048.js";
5
+ import { u as me } from "./use-click-outside.941d1600.js";
6
+ import { u as fe } from "./use-has-slot.4d98bf29.js";
7
+ import { _ as w } from "./_plugin-vue_export-helper.dad06003.js";
8
+ import { BentoToggleButton as pe } from "../button.js";
9
+ import { B as ve } from "./teleport.afeb4c3b.js";
10
+ import { a as be, C as j } from "./chevron-left.963d35e9.js";
11
+ import { B as _e, a as q } from "./base-button.e84acf30.js";
12
+ import { B as ye } from "./index.a3d60e4f.js";
13
+ import "../assets/index7.css";
14
+ const Ce = T({
15
15
  name: "menu-item",
16
- components: { BaseButton: be, BentoTypography: _e, ChevronRightIcon: ve },
16
+ components: { BaseButton: _e, BentoTypography: ye, ChevronRightIcon: be },
17
17
  props: {
18
18
  /**
19
19
  * menu-item text that gets displayed as the main label
@@ -90,41 +90,41 @@ const ye = O({
90
90
  "b-menu-item--indent": e.indent
91
91
  })),
92
92
  // Methods
93
- onClick: (r) => {
94
- r.stopPropagation(), e.handler(), t(q.CLICK);
93
+ onClick: (a) => {
94
+ a.stopPropagation(), e.handler(), t(q.CLICK);
95
95
  }
96
96
  };
97
97
  }
98
98
  });
99
- function Ce(e, t, b, i, r, a) {
100
- const l = v("bento-typography"), s = v("chevron-right-icon"), f = v("base-button");
101
- return d(), $(f, {
102
- class: j(["b-menu-item", e.conditionalClasses]),
99
+ function he(e, t, m, s, a, r) {
100
+ const l = b("bento-typography"), i = b("chevron-right-icon"), p = b("base-button");
101
+ return c(), B(p, {
102
+ class: J(["b-menu-item", e.conditionalClasses]),
103
103
  role: "menuitem",
104
104
  disabled: e.disabled,
105
105
  tabindex: "-1",
106
106
  onClick: e.onClick
107
- }, Z({
107
+ }, Y({
108
108
  default: C(() => [
109
- S(l, {
109
+ L(l, {
110
110
  el: "span",
111
111
  variant: "body",
112
112
  stronger: e.isTitle,
113
113
  class: "b-menu-item__primary-text"
114
114
  }, {
115
115
  default: C(() => [
116
- W(F(e.text), 1)
116
+ V(W(e.text), 1)
117
117
  ]),
118
118
  _: 1
119
119
  }, 8, ["stronger"]),
120
- e.secondaryText ? (d(), $(l, {
120
+ e.secondaryText ? (c(), B(l, {
121
121
  key: 0,
122
122
  el: "span",
123
123
  variant: "body",
124
124
  class: "b-menu-item__secondary-text"
125
125
  }, {
126
126
  default: C(() => [
127
- W(F(e.secondaryText), 1)
127
+ V(W(e.secondaryText), 1)
128
128
  ]),
129
129
  _: 1
130
130
  })) : R("", !0)
@@ -134,7 +134,7 @@ function Ce(e, t, b, i, r, a) {
134
134
  e.icon ? {
135
135
  name: "iconLeft",
136
136
  fn: C(() => [
137
- (d(), $(se(e.icon), {
137
+ (c(), B(ie(e.icon), {
138
138
  class: "b-menu-item__icon-left",
139
139
  "aria-hidden": "true"
140
140
  }))
@@ -144,32 +144,48 @@ function Ce(e, t, b, i, r, a) {
144
144
  e.chevron ? {
145
145
  name: "iconRight",
146
146
  fn: C(() => [
147
- S(s, { "aria-hidden": "true" })
147
+ L(i, { "aria-hidden": "true" })
148
148
  ]),
149
149
  key: "1"
150
150
  } : void 0
151
151
  ]), 1032, ["class", "disabled", "onClick"]);
152
152
  }
153
- const X = /* @__PURE__ */ E(ye, [["render", Ce], ["__scopeId", "data-v-9e8afd9c"]]);
154
- var h = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(h || {});
155
- const ge = O({
153
+ const ee = /* @__PURE__ */ w(Ce, [["render", he], ["__scopeId", "data-v-9e8afd9c"]]);
154
+ var g = /* @__PURE__ */ ((e) => (e.BACK = "back", e.CLOSE = "close", e.OPEN = "open", e))(g || {});
155
+ const ge = Symbol("menu registering injection key"), Ie = {
156
156
  name: "bento-menu-list-container"
157
+ }, ke = /* @__PURE__ */ T({
158
+ ...Ie,
159
+ setup(e) {
160
+ const t = d(), m = d({}), s = Z(
161
+ ge,
162
+ !1
163
+ );
164
+ if (s) {
165
+ const { registerMenuContainerElement: a } = s;
166
+ a(t), m.value = {
167
+ mouseleave: s == null ? void 0 : s.menuMouseLeave
168
+ };
169
+ }
170
+ return (a, r) => (c(), S("div", H({
171
+ ref_key: "menuListContainerRef",
172
+ ref: t,
173
+ class: "b-menu-list-container",
174
+ "data-testid": "menu-list-container"
175
+ }, le(m.value, !0)), [
176
+ O(a.$slots, "default", {}, void 0, !0)
177
+ ], 16));
178
+ }
157
179
  });
158
- const he = { class: "b-menu-list-container" };
159
- function Ie(e, t, b, i, r, a) {
160
- return d(), L("div", he, [
161
- N(e.$slots, "default", {}, void 0, !0)
162
- ]);
163
- }
164
- const x = /* @__PURE__ */ E(ge, [["render", Ie], ["__scopeId", "data-v-ea0113ba"]]), ee = {
180
+ const te = /* @__PURE__ */ w(ke, [["__scopeId", "data-v-02a3ca45"]]), ne = {
165
181
  "en-US": {
166
182
  menuButton: "Open menu",
167
183
  backButton: "Go back"
168
184
  }
169
- }, Be = O({
170
- i18n: { messages: ee },
185
+ }, Be = T({
186
+ i18n: { messages: ne },
171
187
  name: "sub-menu-item-list",
172
- components: { BentoDivider: Q, MenuItem: X, MenuListContainer: x },
188
+ components: { BentoDivider: x, MenuItem: ee, MenuListContainer: te },
173
189
  props: {
174
190
  items: {
175
191
  type: Array,
@@ -180,22 +196,22 @@ const x = /* @__PURE__ */ E(ge, [["render", Ie], ["__scopeId", "data-v-ea0113ba"
180
196
  required: !0
181
197
  }
182
198
  },
183
- emits: [h.CLOSE, h.BACK],
199
+ emits: [g.CLOSE, g.BACK],
184
200
  setup(e, { emit: t }) {
185
- const b = m(null), i = m(0), r = m(e.items.length), a = () => t(h.CLOSE), l = () => t(h.BACK), s = M(() => {
201
+ const m = d(null), s = d(0), a = d(e.items.length), r = () => t(g.CLOSE), l = () => t(g.BACK), i = M(() => {
186
202
  var _;
187
- const u = (_ = e.items) == null ? void 0 : _.map((p) => ({
188
- ...p,
189
- indent: !p.icon,
203
+ const u = (_ = e.items) == null ? void 0 : _.map((v) => ({
204
+ ...v,
205
+ indent: !v.icon,
190
206
  isTitle: !1,
191
- clickHandler: a
207
+ clickHandler: r
192
208
  }));
193
209
  return [
194
210
  {
195
211
  text: e.title,
196
212
  secondaryText: null,
197
213
  critical: !1,
198
- icon: A,
214
+ icon: j,
199
215
  isTitle: !0,
200
216
  disabled: !1,
201
217
  indent: !1,
@@ -205,58 +221,58 @@ const x = /* @__PURE__ */ E(ge, [["render", Ie], ["__scopeId", "data-v-ea0113ba"
205
221
  },
206
222
  ...u
207
223
  ];
208
- }), f = async () => {
209
- var u, _, p, I, B;
210
- (B = (I = (p = (_ = (u = b.value) == null ? void 0 : u.children) == null ? void 0 : _[i.value]) == null ? void 0 : p.children) == null ? void 0 : I[0]) == null || B.focus();
224
+ }), p = async () => {
225
+ var u, _, v, I, k;
226
+ (k = (I = (v = (_ = (u = m.value) == null ? void 0 : u.children) == null ? void 0 : _[s.value]) == null ? void 0 : v.children) == null ? void 0 : I[0]) == null || k.focus();
211
227
  };
212
- ie(async () => {
213
- setTimeout(() => f(), 150);
228
+ ue(async () => {
229
+ setTimeout(() => p(), 150);
214
230
  });
215
231
  const o = () => {
216
- i.value > 0 ? (i.value -= 1, s.value[i.value].disabled && o()) : i.value = r.value, f();
232
+ s.value > 0 ? (s.value -= 1, i.value[s.value].disabled && o()) : s.value = a.value, p();
217
233
  }, n = () => {
218
- i.value < r.value ? (i.value += 1, s.value[i.value].disabled && n()) : i.value = 0, f();
234
+ s.value < a.value ? (s.value += 1, i.value[s.value].disabled && n()) : s.value = 0, p();
219
235
  };
220
236
  return {
221
237
  // Enums
222
- BentoMenuEvent: h,
238
+ BentoMenuEvent: g,
223
239
  // Values
224
- subMenuItemListRefLocal: b,
225
- subMenuFocusedIndex: i,
226
- ChevronLeftIcon: A,
227
- computedItems: s,
240
+ subMenuItemListRefLocal: m,
241
+ subMenuFocusedIndex: s,
242
+ ChevronLeftIcon: j,
243
+ computedItems: i,
228
244
  // Methods
229
- closeMenu: a,
245
+ closeMenu: r,
230
246
  onBackButton: l,
231
247
  focusPrevious: o,
232
248
  focusNext: n
233
249
  };
234
250
  }
235
251
  });
236
- function $e(e, t, b, i, r, a) {
237
- const l = v("menu-item"), s = v("bento-divider"), f = v("menu-list-container");
238
- return d(), $(le, {
252
+ function Me(e, t, m, s, a, r) {
253
+ const l = b("menu-item"), i = b("bento-divider"), p = b("menu-list-container");
254
+ return c(), B(ae, {
239
255
  name: "b-sub-menu-item-list__transition",
240
256
  appear: ""
241
257
  }, {
242
258
  default: C(() => [
243
- S(f, { class: "b-sub-menu-item-list" }, {
259
+ L(p, { class: "b-sub-menu-item-list" }, {
244
260
  default: C(() => [
245
- T("ul", {
261
+ N("ul", {
246
262
  ref: "subMenuItemListRefLocal",
247
263
  role: "menu",
248
264
  class: "b-sub-menu-item-list__list",
249
265
  onKeydown: [
250
- t[0] || (t[0] = g(D((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
251
- t[1] || (t[1] = g(D((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
252
- t[2] || (t[2] = g(D((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
266
+ t[0] || (t[0] = h(F((...o) => e.focusNext && e.focusNext(...o), ["stop"]), ["down"])),
267
+ t[1] || (t[1] = h(F((...o) => e.focusPrevious && e.focusPrevious(...o), ["stop"]), ["up"])),
268
+ t[2] || (t[2] = h(F((...o) => e.onBackButton && e.onBackButton(...o), ["stop"]), ["esc"]))
253
269
  ]
254
270
  }, [
255
- (d(!0), L(z, null, J(e.computedItems, (o, n) => (d(), L("li", {
271
+ (c(!0), S(z, null, Q(e.computedItems, (o, n) => (c(), S("li", {
256
272
  key: `sub-menu-item-list-item-${n}`,
257
273
  role: "none"
258
274
  }, [
259
- S(l, {
275
+ L(l, {
260
276
  text: o.text,
261
277
  handler: o.handler,
262
278
  "secondary-text": o.secondaryText,
@@ -268,7 +284,7 @@ function $e(e, t, b, i, r, a) {
268
284
  tabindex: n === e.subMenuFocusedIndex ? "0" : "-1",
269
285
  onClick: o.clickHandler
270
286
  }, null, 8, ["text", "handler", "secondary-text", "icon", "is-title", "disabled", "critical", "indent", "tabindex", "onClick"]),
271
- o.addDivider ? (d(), $(s, {
287
+ o.addDivider ? (c(), B(i, {
272
288
  key: 0,
273
289
  class: "b-sub-menu-item-list__divider"
274
290
  })) : R("", !0)
@@ -281,9 +297,9 @@ function $e(e, t, b, i, r, a) {
281
297
  _: 1
282
298
  });
283
299
  }
284
- const Me = /* @__PURE__ */ E(Be, [["render", $e], ["__scopeId", "data-v-621db243"]]), ke = O({
300
+ const $e = /* @__PURE__ */ w(Be, [["render", Me], ["__scopeId", "data-v-621db243"]]), Le = T({
285
301
  name: "menu-item-list",
286
- components: { BentoDivider: Q, MenuItem: X, MenuListContainer: x, SubMenuItemList: Me },
302
+ components: { BentoDivider: x, MenuItem: ee, MenuListContainer: te, SubMenuItemList: $e },
287
303
  props: {
288
304
  /**
289
305
  * The data to be displayed in the list
@@ -307,106 +323,106 @@ const Me = /* @__PURE__ */ E(Be, [["render", $e], ["__scopeId", "data-v-621db243
307
323
  default: !1
308
324
  }
309
325
  },
310
- emits: [h.CLOSE],
326
+ emits: [g.CLOSE, "menu-item-click"],
311
327
  setup(e, { emit: t }) {
312
- const b = m(null), i = m(null), r = m(null), a = m(!1), l = m(null), s = m(e.focusLastElement ? e.data.length - 1 : 0), f = m(0), o = m(e.data.length - 1), n = M(() => e.data.some((c) => c.icon)), u = M(() => e.indentItems || n.value ? e.data.map((c) => {
328
+ const m = d(null), s = d(null), a = d(null), r = d(!1), l = d(null), i = d(e.focusLastElement ? e.data.length - 1 : 0), p = d(0), o = d(e.data.length - 1), n = M(() => e.data.some((f) => f.icon)), u = M(() => e.indentItems || n.value ? e.data.map((f) => {
313
329
  let y = !1;
314
- return c.icon || (y = !0), {
315
- ...c,
330
+ return f.icon || (y = !0), {
331
+ ...f,
316
332
  // eslint-disable-next-line no-param-reassign
317
333
  indent: y
318
334
  };
319
335
  }) : e.data), _ = () => {
320
- var c, y, k;
321
- return (k = (y = (c = b.value) == null ? void 0 : c.children[s.value]) == null ? void 0 : y.children[0]) == null ? void 0 : k.focus();
322
- }, p = () => t(h.CLOSE), I = async (c, y) => {
323
- c.items ? (l.value = y, a.value = !0) : (l.value = y, a.value = !1, p());
324
- }, B = () => {
325
- s.value > 0 ? (s.value -= 1, u.value[s.value].disabled && B()) : s.value = o.value, _();
326
- }, w = () => {
327
- s.value < o.value ? (s.value += 1, u.value[s.value].disabled && w()) : s.value = 0, _();
328
- }, P = (c, y) => {
329
- var k;
330
- (k = c == null ? void 0 : c.items) != null && k.length && (l.value = y, a.value = !0);
336
+ var f, y, $;
337
+ return ($ = (y = (f = m.value) == null ? void 0 : f.children[i.value]) == null ? void 0 : y.children[0]) == null ? void 0 : $.focus();
338
+ }, v = () => t(g.CLOSE), I = (f, y) => {
339
+ f.items ? (l.value = y, r.value = !0) : (l.value = y, r.value = !1, v(), t("menu-item-click"));
340
+ }, k = () => {
341
+ i.value > 0 ? (i.value -= 1, u.value[i.value].disabled && k()) : i.value = o.value, _();
342
+ }, E = () => {
343
+ i.value < o.value ? (i.value += 1, u.value[i.value].disabled && E()) : i.value = 0, _();
344
+ }, P = (f, y) => {
345
+ var $;
346
+ ($ = f == null ? void 0 : f.items) != null && $.length && (l.value = y, r.value = !0);
331
347
  }, K = () => {
332
- l.value && a.value && (l.value = null, a.value = !1);
333
- }, te = () => {
334
- a.value = !1, l.value = null, _();
335
- }, ne = M(() => {
336
- var c, y, k;
337
- return (k = (y = (c = r.value) == null ? void 0 : c[0]) == null ? void 0 : y.$el) == null ? void 0 : k.offsetHeight;
338
- }), oe = M(() => a.value ? `${ne.value}px` : "");
348
+ l.value && r.value && (l.value = null, r.value = !1);
349
+ }, D = () => {
350
+ r.value = !1, l.value = null, _();
351
+ }, oe = M(() => {
352
+ var f, y, $;
353
+ return ($ = (y = (f = a.value) == null ? void 0 : f[0]) == null ? void 0 : y.$el) == null ? void 0 : $.offsetHeight;
354
+ }), se = M(() => r.value ? `${oe.value}px` : "");
339
355
  return {
340
356
  // Values
341
- menuItemListRef: b,
342
- menuItemListWrapperRef: i,
343
- subMenuItemListRef: r,
357
+ menuItemListRef: m,
358
+ menuItemListWrapperRef: s,
359
+ subMenuItemListRef: a,
344
360
  computedData: u,
345
- computedHeight: oe,
346
- focusedIndex: s,
347
- subMenuFocusedIndex: f,
348
- showSubMenu: a,
361
+ computedHeight: se,
362
+ focusedIndex: i,
363
+ subMenuFocusedIndex: p,
364
+ showSubMenu: r,
349
365
  visibleSubMenuIndex: l,
350
366
  // Methods
351
- toggleMenu: I,
352
- closeMenu: p,
353
- focusPrevious: B,
354
- focusNext: w,
367
+ menuItemClick: I,
368
+ closeMenu: v,
369
+ focusPrevious: k,
370
+ focusNext: E,
355
371
  focusRight: P,
356
372
  focusLeft: K,
357
- onBackButton: te
373
+ onBackButton: D
358
374
  };
359
375
  }
360
376
  });
361
377
  const Se = ["onKeydown"];
362
- function Le(e, t, b, i, r, a) {
363
- const l = v("menu-item"), s = v("bento-divider"), f = v("sub-menu-item-list"), o = v("menu-list-container");
364
- return d(), $(o, {
378
+ function Ee(e, t, m, s, a, r) {
379
+ const l = b("menu-item"), i = b("bento-divider"), p = b("sub-menu-item-list"), o = b("menu-list-container");
380
+ return c(), B(o, {
365
381
  ref: "menuItemListWrapperRef",
366
- style: Y({ height: e.computedHeight })
382
+ style: X({ height: e.computedHeight })
367
383
  }, {
368
384
  default: C(() => [
369
- T("ul", {
385
+ N("ul", {
370
386
  ref: "menuItemListRef",
371
387
  class: "b-menu-item-list",
372
388
  role: "menu",
373
389
  onKeydown: [
374
- t[1] || (t[1] = g((...n) => e.focusNext && e.focusNext(...n), ["down"])),
375
- t[2] || (t[2] = g((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
376
- t[3] || (t[3] = g((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
377
- t[4] || (t[4] = g((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
390
+ t[1] || (t[1] = h((...n) => e.focusNext && e.focusNext(...n), ["down"])),
391
+ t[2] || (t[2] = h((...n) => e.focusPrevious && e.focusPrevious(...n), ["up"])),
392
+ t[3] || (t[3] = h((...n) => e.closeMenu && e.closeMenu(...n), ["esc"])),
393
+ t[4] || (t[4] = h((...n) => e.closeMenu && e.closeMenu(...n), ["tab"]))
378
394
  ]
379
395
  }, [
380
- (d(!0), L(z, null, J(e.computedData, (n, u) => {
381
- var _, p, I, B;
382
- return d(), L("li", {
396
+ (c(!0), S(z, null, Q(e.computedData, (n, u) => {
397
+ var _, v, I, k;
398
+ return c(), S("li", {
383
399
  key: `menu-item-${u}`,
384
400
  class: "b-menu-item-list__item",
385
401
  role: "none",
386
402
  onKeydown: [
387
- g((w) => e.focusRight(n, u), ["right"]),
388
- t[0] || (t[0] = g((w) => e.focusLeft(), ["left"]))
403
+ h((E) => e.focusRight(n, u), ["right"]),
404
+ t[0] || (t[0] = h((E) => e.focusLeft(), ["left"]))
389
405
  ]
390
406
  }, [
391
- S(l, {
407
+ L(l, {
392
408
  text: n.text,
393
409
  handler: (_ = n.items) != null && _.length ? () => null : n.handler,
394
410
  "secondary-text": n.secondaryText,
395
411
  icon: n.icon,
396
- chevron: !!((p = n.items) != null && p.length),
412
+ chevron: !!((v = n.items) != null && v.length),
397
413
  disabled: n.disabled,
398
414
  critical: n.critical,
399
415
  indent: n.indent,
400
416
  tabindex: u === e.subMenuFocusedIndex ? "0" : "-1",
401
417
  "aria-haspopup": !!((I = n.items) != null && I.length),
402
418
  "aria-expanded": e.showSubMenu && e.visibleSubMenuIndex === u,
403
- onClick: (w) => e.toggleMenu(n, u)
419
+ onClick: (E) => e.menuItemClick(n, u)
404
420
  }, null, 8, ["text", "handler", "secondary-text", "icon", "chevron", "disabled", "critical", "indent", "tabindex", "aria-haspopup", "aria-expanded", "onClick"]),
405
- n.addDivider ? (d(), $(s, {
421
+ n.addDivider ? (c(), B(i, {
406
422
  key: 0,
407
423
  class: "b-menu-item-list__divider"
408
424
  })) : R("", !0),
409
- (B = n.items) != null && B.length && e.showSubMenu && e.visibleSubMenuIndex === u ? (d(), $(f, {
425
+ (k = n.items) != null && k.length && e.showSubMenu && e.visibleSubMenuIndex === u ? (c(), B(p, {
410
426
  key: 1,
411
427
  ref_for: !0,
412
428
  ref: "subMenuItemListRef",
@@ -422,40 +438,40 @@ function Le(e, t, b, i, r, a) {
422
438
  _: 1
423
439
  }, 8, ["style"]);
424
440
  }
425
- const we = /* @__PURE__ */ E(ke, [["render", Le], ["__scopeId", "data-v-f1d94ee8"]]), Re = Symbol("menu inverse style injection key");
426
- let U = 0;
427
- const Ee = {
441
+ const Re = /* @__PURE__ */ w(Le, [["render", Ee], ["__scopeId", "data-v-b2223c5d"]]), we = Symbol("menu inverse style injection key");
442
+ let G = 0;
443
+ const Te = {
428
444
  beforeCreate() {
429
- this.uuid = U.toString(), U += 1;
445
+ this.uuid = G.toString(), G += 1;
430
446
  }
431
- }, Oe = { key: 0 }, Te = /* @__PURE__ */ T("path", {
447
+ }, Ne = { key: 0 }, Oe = /* @__PURE__ */ N("path", {
432
448
  fill: "#00112C",
433
449
  d: "M8 4C8.29667 4 8.58668 3.91203 8.83335 3.74721C9.08003 3.58238 9.27229 3.34811 9.38582 3.07403C9.49935 2.79994 9.52906 2.49834 9.47118 2.20737C9.4133 1.91639 9.27044 1.64912 9.06066 1.43934C8.85088 1.22956 8.58361 1.0867 8.29264 1.02882C8.00167 0.970945 7.70006 1.00065 7.42598 1.11418C7.15189 1.22771 6.91762 1.41997 6.7528 1.66665C6.58797 1.91332 6.5 2.20333 6.5 2.5C6.5 2.89783 6.65803 3.27936 6.93934 3.56066C7.22064 3.84197 7.60218 4 8 4Z"
434
- }, null, -1), Ne = /* @__PURE__ */ T("path", {
450
+ }, null, -1), Pe = /* @__PURE__ */ N("path", {
435
451
  fill: "#00112C",
436
452
  d: "M8 15C8.29667 15 8.58668 14.912 8.83335 14.7472C9.08003 14.5824 9.27229 14.3481 9.38582 14.074C9.49935 13.7999 9.52906 13.4983 9.47118 13.2074C9.4133 12.9164 9.27044 12.6491 9.06066 12.4393C8.85088 12.2296 8.58361 12.0867 8.29264 12.0288C8.00167 11.9709 7.70006 12.0007 7.42598 12.1142C7.15189 12.2277 6.91762 12.42 6.7528 12.6666C6.58797 12.9133 6.5 13.2033 6.5 13.5C6.5 13.8978 6.65803 14.2794 6.93934 14.5607C7.22064 14.842 7.60218 15 8 15Z"
437
- }, null, -1), Pe = /* @__PURE__ */ T("path", {
453
+ }, null, -1), Ke = /* @__PURE__ */ N("path", {
438
454
  fill: "#00112C",
439
455
  d: "M8.83335 9.24721C8.58668 9.41203 8.29667 9.5 8 9.5C7.60218 9.5 7.22064 9.34197 6.93934 9.06066C6.65803 8.77936 6.5 8.39783 6.5 8C6.5 7.70333 6.58797 7.41332 6.7528 7.16665C6.91762 6.91997 7.15189 6.72771 7.42598 6.61418C7.70006 6.50065 8.00167 6.47094 8.29264 6.52882C8.58361 6.5867 8.85088 6.72956 9.06066 6.93934C9.27044 7.14912 9.4133 7.41639 9.47118 7.70737C9.52906 7.99834 9.49935 8.29994 9.38582 8.57403C9.27229 8.84811 9.08003 9.08238 8.83335 9.24721Z"
440
456
  }, null, -1);
441
- function Ke(e, t, b, i, r, a) {
442
- return d(), L("svg", G({ role: "img" }, e.$attrs, {
457
+ function De(e, t, m, s, a, r) {
458
+ return c(), S("svg", H({ role: "img" }, e.$attrs, {
443
459
  class: "ui-assets-icons-16",
444
460
  xmlns: "http://www.w3.org/2000/svg",
445
461
  width: "16",
446
462
  height: "16",
447
463
  fill: "none"
448
464
  }), [
449
- e.$attrs["svg-title"] ? (d(), L("title", Oe, F(e.$attrs["svg-title"]), 1)) : R("", !0),
450
- Te,
451
- Ne,
452
- Pe
465
+ e.$attrs["svg-title"] ? (c(), S("title", Ne, W(e.$attrs["svg-title"]), 1)) : R("", !0),
466
+ Oe,
467
+ Pe,
468
+ Ke
453
469
  ], 16);
454
470
  }
455
- const De = /* @__PURE__ */ E(Ee, [["render", Ke]]), Fe = O({
456
- i18n: { messages: ee },
471
+ const Fe = /* @__PURE__ */ w(Te, [["render", De]]), We = T({
472
+ i18n: { messages: ne },
457
473
  name: "bento-menu",
458
- components: { BentoToggleButton: fe, BentoPopover: re, BentoTeleport: pe, MenuItemList: we, OptionsVerticalIcon: De },
474
+ components: { BentoToggleButton: pe, BentoPopover: de, BentoTeleport: ve, MenuItemList: Re, OptionsVerticalIcon: Fe },
459
475
  props: {
460
476
  /**
461
477
  * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.
@@ -478,8 +494,8 @@ const De = /* @__PURE__ */ E(Ee, [["render", Ke]]), Fe = O({
478
494
  */
479
495
  menuPosition: {
480
496
  type: String,
481
- default: H.BOTTOM_START,
482
- validator: (e) => Object.values(H).includes(e)
497
+ default: U.BOTTOM_START,
498
+ validator: (e) => Object.values(U).includes(e)
483
499
  },
484
500
  /**
485
501
  * Instructs the menu popover to be visible outside of the containing container.
@@ -505,10 +521,10 @@ const De = /* @__PURE__ */ E(Ee, [["render", Ke]]), Fe = O({
505
521
  default: !1
506
522
  }
507
523
  },
508
- emits: [h.CLOSE, h.OPEN],
509
- setup(e, { emit: t, slots: b }) {
510
- const i = m(null), r = m(!1), a = m(!1), l = m(null), s = V("menu"), f = V("menu-popover"), o = ue(Re, m(!1));
511
- ae(de, o);
524
+ emits: [g.CLOSE, g.OPEN, "menu-item-click"],
525
+ setup(e, { emit: t, slots: m }) {
526
+ const s = d(null), a = d(!1), r = d(!1), l = d(null), i = A("menu"), p = A("menu-popover"), o = Z(we, d(!1));
527
+ re(ce, o);
512
528
  const n = M(() => ({
513
529
  "b-menu--inverse": o.value
514
530
  })), u = M(() => e.menuWidth ? { width: `${e.menuWidth}px` } : null), _ = M(() => {
@@ -517,51 +533,54 @@ const De = /* @__PURE__ */ E(Ee, [["render", Ke]]), Fe = O({
517
533
  variant: "secondary",
518
534
  ...e.button
519
535
  };
520
- }), p = () => {
521
- r.value = !0, t(h.OPEN);
536
+ }), v = () => {
537
+ a.value = !0, t(g.OPEN);
522
538
  }, I = () => {
523
- r.value && (r.value = !1, i.value.$el.focus(), t(h.CLOSE));
524
- }, B = (K) => {
525
- K.stopPropagation(), r.value ? I() : p();
526
- }, w = () => {
527
- a.value = !1, p();
539
+ a.value && (a.value = !1, s.value.$el.focus(), t(g.CLOSE));
540
+ }, k = (D) => {
541
+ D.stopPropagation(), a.value ? I() : v();
542
+ }, E = () => {
543
+ r.value = !1, v();
528
544
  }, P = () => {
529
- a.value = !0, p();
545
+ r.value = !0, v();
546
+ }, K = () => {
547
+ t("menu-item-click");
530
548
  };
531
- return ce(l, I, { ignore: [i] }), {
549
+ return me(l, I, { ignore: [s] }), {
532
550
  // Refs
533
551
  popoverRef: l,
534
- menuButtonRef: i,
552
+ menuButtonRef: s,
535
553
  // Values
536
- menuId: s,
537
- popoverId: f,
538
- showMenu: r,
554
+ menuId: i,
555
+ popoverId: p,
556
+ showMenu: a,
539
557
  computedButtonPropsWithDefaults: _,
540
558
  computedMenuWidth: u,
541
- isLastElementFocused: a,
559
+ isLastElementFocused: r,
542
560
  // Classes
543
561
  computedClasses: n,
544
562
  isInverseColorSet: o,
545
563
  // Methods
546
- hasSlot: me(b),
547
- onKeyDown: w,
564
+ hasSlot: fe(m),
565
+ onKeyDown: E,
548
566
  onKeyUp: P,
549
567
  closeMenu: I,
550
- toggleShowMenu: B
568
+ menuItemClick: K,
569
+ toggleShowMenu: k
551
570
  };
552
571
  }
553
572
  });
554
- function We(e, t, b, i, r, a) {
555
- const l = v("options-vertical-icon"), s = v("bento-toggle-button"), f = v("menu-item-list"), o = v("bento-popover"), n = v("bento-teleport");
556
- return d(), L("div", {
557
- class: j([e.computedClasses, "b-menu"]),
573
+ function He(e, t, m, s, a, r) {
574
+ const l = b("options-vertical-icon"), i = b("bento-toggle-button"), p = b("menu-item-list"), o = b("bento-popover"), n = b("bento-teleport");
575
+ return c(), S("div", {
576
+ class: J([e.computedClasses, "b-menu"]),
558
577
  onKeydown: [
559
- t[0] || (t[0] = g((...u) => e.onKeyDown && e.onKeyDown(...u), ["down"])),
560
- t[1] || (t[1] = g((...u) => e.onKeyUp && e.onKeyUp(...u), ["up"])),
561
- t[2] || (t[2] = g((...u) => e.closeMenu && e.closeMenu(...u), ["esc"]))
578
+ t[0] || (t[0] = h((...u) => e.onKeyDown && e.onKeyDown(...u), ["down"])),
579
+ t[1] || (t[1] = h((...u) => e.onKeyUp && e.onKeyUp(...u), ["up"])),
580
+ t[2] || (t[2] = h((...u) => e.closeMenu && e.closeMenu(...u), ["esc"]))
562
581
  ]
563
582
  }, [
564
- S(s, G({
583
+ L(i, H({
565
584
  ref: "menuButtonRef",
566
585
  "aria-haspopup": "true"
567
586
  }, e.computedButtonPropsWithDefaults, {
@@ -569,12 +588,12 @@ function We(e, t, b, i, r, a) {
569
588
  toggled: e.showMenu,
570
589
  inverse: e.isInverseColorSet,
571
590
  onClick: e.toggleShowMenu
572
- }), Z({ _: 2 }, [
591
+ }), Y({ _: 2 }, [
573
592
  !e.hasSlot("default") || e.hasSlot("iconLeft") ? {
574
593
  name: "iconLeft",
575
594
  fn: C(() => [
576
- N(e.$slots, "iconLeft", {}, () => [
577
- S(l, {
595
+ O(e.$slots, "iconLeft", {}, () => [
596
+ L(l, {
578
597
  title: e.$t("menuButton")
579
598
  }, null, 8, ["title"])
580
599
  ], !0)
@@ -584,30 +603,30 @@ function We(e, t, b, i, r, a) {
584
603
  e.hasSlot("default") ? {
585
604
  name: "default",
586
605
  fn: C(() => [
587
- N(e.$slots, "default", {}, void 0, !0)
606
+ O(e.$slots, "default", {}, void 0, !0)
588
607
  ]),
589
608
  key: "1"
590
609
  } : void 0,
591
610
  e.hasSlot("iconRight") ? {
592
611
  name: "iconRight",
593
612
  fn: C(() => [
594
- N(e.$slots, "iconRight", {}, void 0, !0)
613
+ O(e.$slots, "iconRight", {}, void 0, !0)
595
614
  ]),
596
615
  key: "2"
597
616
  } : void 0
598
617
  ]), 1040, ["aria-controls", "toggled", "inverse", "onClick"]),
599
- e.menuButtonRef ? (d(), $(n, {
618
+ e.menuButtonRef ? (c(), B(n, {
600
619
  key: 0,
601
620
  disabled: !e.teleport
602
621
  }, {
603
622
  default: C(() => [
604
- e.menuButtonRef ? (d(), $(o, {
623
+ e.menuButtonRef ? (c(), B(o, {
605
624
  key: 0,
606
625
  id: e.menuId,
607
626
  ref: "popoverRef",
608
627
  open: e.showMenu,
609
628
  class: "b-menu__popover",
610
- style: Y(e.computedMenuWidth),
629
+ style: X(e.computedMenuWidth),
611
630
  "target-element": e.menuButtonRef,
612
631
  position: e.menuPosition,
613
632
  "fixed-positioning": e.menuFixedPositioning,
@@ -625,11 +644,12 @@ function We(e, t, b, i, r, a) {
625
644
  "without-space": ""
626
645
  }, {
627
646
  default: C(() => [
628
- S(f, {
647
+ L(p, {
629
648
  data: e.data,
630
649
  "focus-last-element": e.isLastElementFocused,
631
- onClose: e.closeMenu
632
- }, null, 8, ["data", "focus-last-element", "onClose"])
650
+ onClose: e.closeMenu,
651
+ onMenuItemClick: e.menuItemClick
652
+ }, null, 8, ["data", "focus-last-element", "onClose", "onMenuItemClick"])
633
653
  ]),
634
654
  _: 1
635
655
  }, 8, ["id", "open", "style", "target-element", "position", "fixed-positioning", "teleport"])) : R("", !0)
@@ -638,11 +658,12 @@ function We(e, t, b, i, r, a) {
638
658
  }, 8, ["disabled"])) : R("", !0)
639
659
  ], 34);
640
660
  }
641
- const Xe = /* @__PURE__ */ E(Fe, [["render", We], ["__scopeId", "data-v-42faec3b"]]);
661
+ const xe = /* @__PURE__ */ w(We, [["render", He], ["__scopeId", "data-v-13bb0b39"]]);
642
662
  export {
643
- Xe as B,
644
- Re as M,
645
- De as O,
646
- h as a
663
+ xe as B,
664
+ ge as D,
665
+ we as M,
666
+ Fe as O,
667
+ g as a
647
668
  };
648
- //# sourceMappingURL=index.1b1646bf.js.map
669
+ //# sourceMappingURL=index.030c1dd7.js.map