@adyen/bento-vue3 1.9.0 → 1.10.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 (246) hide show
  1. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
  2. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
  10. package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +54 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +81 -0
  14. package/dist/@types/packages/vue2/src/components/data-grid/composables/useSelector.d.ts +1 -1
  15. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
  16. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
  17. package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
  20. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
  21. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +15 -6
  22. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
  23. package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
  24. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +11 -1
  25. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
  26. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
  28. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
  29. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
  30. package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
  31. package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
  32. package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
  34. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
  35. 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 +10 -0
  36. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
  37. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
  38. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
  39. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
  40. package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
  41. package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
  43. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
  44. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
  45. package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
  46. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  47. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
  49. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
  51. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
  52. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
  53. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
  54. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
  55. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
  56. package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
  57. package/dist/accordion.js +2 -2
  58. package/dist/action-bar.js +5 -5
  59. package/dist/alert.js +24 -24
  60. package/dist/alert.js.map +1 -1
  61. package/dist/assets/base-modal.css +1 -1
  62. package/dist/assets/button.css +1 -1
  63. package/dist/assets/checkbox.css +1 -1
  64. package/dist/assets/controls-group.css +1 -1
  65. package/dist/assets/copy.css +1 -1
  66. package/dist/assets/dropdown-default-textbox.css +1 -1
  67. package/dist/assets/dropdown.css +1 -1
  68. package/dist/assets/index.css +1 -1
  69. package/dist/assets/index10.css +1 -1
  70. package/dist/assets/index11.css +1 -1
  71. package/dist/assets/index12.css +1 -1
  72. package/dist/assets/index13.css +1 -1
  73. package/dist/assets/index14.css +1 -1
  74. package/dist/assets/index16.css +1 -1
  75. package/dist/assets/index17.css +1 -1
  76. package/dist/assets/index18.css +1 -1
  77. package/dist/assets/index19.css +1 -1
  78. package/dist/assets/index2.css +1 -1
  79. package/dist/assets/index20.css +1 -1
  80. package/dist/assets/index21.css +1 -1
  81. package/dist/assets/index22.css +1 -1
  82. package/dist/assets/index23.css +1 -1
  83. package/dist/assets/index24.css +1 -1
  84. package/dist/assets/index25.css +1 -1
  85. package/dist/assets/index26.css +1 -1
  86. package/dist/assets/index27.css +1 -1
  87. package/dist/assets/index28.css +1 -1
  88. package/dist/assets/index29.css +1 -1
  89. package/dist/assets/index3.css +1 -1
  90. package/dist/assets/index30.css +1 -1
  91. package/dist/assets/index31.css +1 -1
  92. package/dist/assets/index32.css +1 -1
  93. package/dist/assets/index33.css +1 -1
  94. package/dist/assets/index34.css +1 -1
  95. package/dist/assets/index35.css +1 -1
  96. package/dist/assets/index36.css +1 -1
  97. package/dist/assets/index37.css +1 -1
  98. package/dist/assets/index38.css +1 -1
  99. package/dist/assets/index39.css +1 -1
  100. package/dist/assets/index40.css +1 -1
  101. package/dist/assets/index41.css +1 -1
  102. package/dist/assets/index42.css +1 -1
  103. package/dist/assets/index43.css +1 -1
  104. package/dist/assets/index44.css +1 -1
  105. package/dist/assets/index45.css +1 -1
  106. package/dist/assets/index46.css +1 -1
  107. package/dist/assets/index5.css +1 -1
  108. package/dist/assets/index6.css +1 -1
  109. package/dist/assets/index7.css +1 -1
  110. package/dist/assets/index8.css +1 -1
  111. package/dist/assets/index9.css +1 -1
  112. package/dist/assets/listbox.css +1 -1
  113. package/dist/assets/loading-button.css +1 -1
  114. package/dist/avatar-image.js +1 -1
  115. package/dist/badge.js +1 -1
  116. package/dist/button.js +56 -45
  117. package/dist/button.js.map +1 -1
  118. package/dist/card.js +1 -1
  119. package/dist/checkbox.js +72 -53
  120. package/dist/checkbox.js.map +1 -1
  121. package/dist/chunks/{base-button.aa085dfa.js → base-button.dfc0e32e.js} +2 -2
  122. package/dist/chunks/{base-button.aa085dfa.js.map → base-button.dfc0e32e.js.map} +1 -1
  123. package/dist/chunks/{base-modal.a629cb32.js → base-modal.8b323292.js} +86 -86
  124. package/dist/chunks/base-modal.8b323292.js.map +1 -0
  125. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.044fe230.js} +3 -3
  126. package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.044fe230.js.map} +1 -1
  127. package/dist/chunks/button.6ca5cd14.js +118 -0
  128. package/dist/chunks/button.6ca5cd14.js.map +1 -0
  129. package/dist/chunks/{calendar.fa7712e8.js → calendar.b3c15dcd.js} +4 -4
  130. package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b3c15dcd.js.map} +1 -1
  131. package/dist/chunks/checkbox.979b1aa4.js +278 -0
  132. package/dist/chunks/checkbox.979b1aa4.js.map +1 -0
  133. package/dist/chunks/{controls-group.d6543674.js → controls-group.2f6cbb21.js} +21 -17
  134. package/dist/chunks/controls-group.2f6cbb21.js.map +1 -0
  135. package/dist/chunks/copy.0fed8f42.js +145 -0
  136. package/dist/chunks/copy.0fed8f42.js.map +1 -0
  137. package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.839fe6f7.js} +25 -25
  138. package/dist/chunks/dropdown-default-textbox.839fe6f7.js.map +1 -0
  139. package/dist/chunks/{dropdown.63de9aac.js → dropdown.014ae3e3.js} +370 -331
  140. package/dist/chunks/dropdown.014ae3e3.js.map +1 -0
  141. package/dist/chunks/{field-label.3c19a29a.js → field-label.085966f6.js} +5 -5
  142. package/dist/chunks/{field-label.3c19a29a.js.map → field-label.085966f6.js.map} +1 -1
  143. package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.96019461.js} +2 -2
  144. package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.96019461.js.map} +1 -1
  145. package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.52d5a453.js} +3 -3
  146. package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.52d5a453.js.map} +1 -1
  147. package/dist/chunks/{index.75f3672e.js → index.10c545e2.js} +2 -2
  148. package/dist/chunks/{index.75f3672e.js.map → index.10c545e2.js.map} +1 -1
  149. package/dist/chunks/{index.4d2a13e1.js → index.4e3fb264.js} +2 -2
  150. package/dist/chunks/{index.4d2a13e1.js.map → index.4e3fb264.js.map} +1 -1
  151. package/dist/chunks/{index.89dfe209.js → index.5596079e.js} +2 -2
  152. package/dist/chunks/{index.89dfe209.js.map → index.5596079e.js.map} +1 -1
  153. package/dist/chunks/index.785d9829.js +21 -0
  154. package/dist/chunks/index.785d9829.js.map +1 -0
  155. package/dist/chunks/{index.85832db5.js → index.791fdd7d.js} +3 -3
  156. package/dist/chunks/{index.85832db5.js.map → index.791fdd7d.js.map} +1 -1
  157. package/dist/chunks/{index.0ee895e0.js → index.934e5485.js} +2 -2
  158. package/dist/chunks/{index.0ee895e0.js.map → index.934e5485.js.map} +1 -1
  159. package/dist/chunks/index.9424976e.js +622 -0
  160. package/dist/chunks/index.9424976e.js.map +1 -0
  161. package/dist/chunks/index.99d2c4e5.js +168 -0
  162. package/dist/chunks/index.99d2c4e5.js.map +1 -0
  163. package/dist/chunks/{index.98174339.js → index.a875e4b3.js} +5 -5
  164. package/dist/chunks/{index.98174339.js.map → index.a875e4b3.js.map} +1 -1
  165. package/dist/chunks/{index.c6fecf1c.js → index.fd70b861.js} +28 -28
  166. package/dist/chunks/{index.c6fecf1c.js.map → index.fd70b861.js.map} +1 -1
  167. package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.854fcb0d.js} +3 -3
  168. package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.854fcb0d.js.map} +1 -1
  169. package/dist/chunks/listbox.963589af.js +1419 -0
  170. package/dist/chunks/listbox.963589af.js.map +1 -0
  171. package/dist/chunks/{loading-button.4b88e24d.js → loading-button.09fa0115.js} +19 -19
  172. package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.09fa0115.js.map} +1 -1
  173. package/dist/chunks/{tooltip.27c32d36.js → tooltip.65868eae.js} +15 -15
  174. package/dist/chunks/tooltip.65868eae.js.map +1 -0
  175. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
  176. package/dist/code-snippet.js +7 -7
  177. package/dist/code-snippet.js.map +1 -1
  178. package/dist/country.js +2 -2
  179. package/dist/currency.js +1 -1
  180. package/dist/data-grid.js +1287 -983
  181. package/dist/data-grid.js.map +1 -1
  182. package/dist/date-picker.js +20 -20
  183. package/dist/date-picker.js.map +1 -1
  184. package/dist/date-range-picker.js +2 -2
  185. package/dist/date.js +1 -1
  186. package/dist/divider.js +2 -10
  187. package/dist/divider.js.map +1 -1
  188. package/dist/dropdown.js +3 -3
  189. package/dist/empty-state.js +23 -23
  190. package/dist/empty-state.js.map +1 -1
  191. package/dist/filter-bar.js +553 -541
  192. package/dist/filter-bar.js.map +1 -1
  193. package/dist/focus-trap.js +1 -1
  194. package/dist/form-layout.js +2 -2
  195. package/dist/header.js +3 -3
  196. package/dist/index.js +73 -72
  197. package/dist/info-icon.js +3 -3
  198. package/dist/input-field.js +4 -4
  199. package/dist/internal.js +17 -15
  200. package/dist/link.js +2 -2
  201. package/dist/loading-indicator.js +1 -1
  202. package/dist/menu.js +1 -1
  203. package/dist/modal.js +67 -64
  204. package/dist/modal.js.map +1 -1
  205. package/dist/pagination.js +4 -4
  206. package/dist/payment-method.js +2 -2
  207. package/dist/popover.js +1 -1
  208. package/dist/popper-container.js +1 -1
  209. package/dist/radio-group.js +69 -67
  210. package/dist/radio-group.js.map +1 -1
  211. package/dist/search-bar.js +8 -8
  212. package/dist/segmented-control.js +3 -3
  213. package/dist/sidepanel.js +5 -5
  214. package/dist/status.js +2 -2
  215. package/dist/stepper.js +3 -3
  216. package/dist/structured-list.js +1 -1
  217. package/dist/summary-grid.js +3 -3
  218. package/dist/tabs.js +3 -3
  219. package/dist/tag.js +3 -3
  220. package/dist/textarea.js +173 -161
  221. package/dist/textarea.js.map +1 -1
  222. package/dist/timeline.js +244 -237
  223. package/dist/timeline.js.map +1 -1
  224. package/dist/toast.js +3 -3
  225. package/dist/toggle.js +2 -2
  226. package/dist/tutorial.js +5 -5
  227. package/dist/typography.js +1 -1
  228. package/dist/web-types.json +1 -1
  229. package/package.json +2 -2
  230. package/dist/chunks/base-modal.a629cb32.js.map +0 -1
  231. package/dist/chunks/button.82ed953e.js +0 -148
  232. package/dist/chunks/button.82ed953e.js.map +0 -1
  233. package/dist/chunks/checkbox.731dc0ab.js +0 -264
  234. package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
  235. package/dist/chunks/controls-group.d6543674.js.map +0 -1
  236. package/dist/chunks/copy.330d594e.js +0 -126
  237. package/dist/chunks/copy.330d594e.js.map +0 -1
  238. package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
  239. package/dist/chunks/dropdown.63de9aac.js.map +0 -1
  240. package/dist/chunks/index.73ed22a7.js +0 -594
  241. package/dist/chunks/index.73ed22a7.js.map +0 -1
  242. package/dist/chunks/index.edcaf766.js +0 -150
  243. package/dist/chunks/index.edcaf766.js.map +0 -1
  244. package/dist/chunks/listbox.ac43f8ab.js +0 -1309
  245. package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
  246. package/dist/chunks/tooltip.27c32d36.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.9424976e.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/options-vertical.vue","../../../vue2/src/components/menu/components/menu-item/menu-item.vue","../../../vue2/src/components/menu/menu.types.ts","../../../vue2/src/components/menu/components/menu-list-container/menu-list-container.vue","../../../vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue","../../../vue2/src/components/menu/components/menu-item-list/menu-item-list.vue","../../../vue2/src/components/menu/menu.keys.ts","../../../vue2/src/components/menu/menu.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" 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\"/><path fill=\"#00112C\" 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\"/><path fill=\"#00112C\" 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\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <base-button\n class=\"b-menu-item\"\n role=\"menuitem\"\n :class=\"conditionalClasses\"\n :disabled=\"disabled\"\n tabindex=\"-1\"\n @click=\"onClick\"\n >\n <template v-if=\"icon\" #iconLeft>\n <component :is=\"icon\" class=\"b-menu-item__icon-left\" aria-hidden=\"true\" />\n </template>\n <template #default>\n <bento-typography el=\"span\" variant=\"body\" :stronger=\"isTitle\" class=\"b-menu-item__primary-text\">\n {{ text }}\n </bento-typography>\n <bento-typography v-if=\"secondaryText\" el=\"span\" variant=\"body\" class=\"b-menu-item__secondary-text\">\n {{ secondaryText }}\n </bento-typography>\n </template>\n <template v-if=\"chevron\" #iconRight><chevron-right-icon aria-hidden=\"true\" /></template>\n </base-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n import { BaseButton, BentoBaseButtonEvent } from '@/components/internal/base-button';\n import { BentoTypography } from '@/components/typography';\n import { BentoMenuItem } from './menu-item.types';\n\n /**\n * Menu item component to render items in a menu. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item',\n components: { BaseButton, BentoTypography, ChevronRightIcon },\n props: {\n /**\n * menu-item text that gets displayed as the main label\n */\n text: {\n type: String,\n required: true,\n },\n /**\n * menu-item action that gets executed when the MeniItem is clicked\n */\n handler: {\n type: Function as PropType<BentoMenuItem['handler']>,\n required: true,\n },\n /**\n * menu-item text that gets displayed as the secondary label\n */\n secondaryText: {\n type: String,\n default: null,\n },\n /**\n * Optional chevron icon displayed to the right of the menu-item\n */\n chevron: {\n type: Boolean,\n default: false,\n },\n /**\n * Optional icon displayed to the left of the menu-item\n */\n icon: {\n // Types for Vue2 (Object) and Vue3 (Function)\n // TODO: Remove Object when fully migrated to Vue3\n type: [Object, Function] as PropType<BentoMenuItem['icon']>,\n default: null,\n },\n /**\n * Disables menu-item button functionality\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays an indent variant od the menu-item\n */\n indent: {\n type: Boolean,\n default: false,\n },\n /**\n * Displays menu-item button as critical\n */\n critical: {\n type: Boolean,\n default: false,\n },\n /**\n * Renders the text in a bold variant\n */\n isTitle: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoBaseButtonEvent.CLICK],\n setup(props, { emit }) {\n const conditionalClasses = computed(() => ({\n 'b-menu-item--critical': props.critical,\n 'b-menu-item--indent': props.indent,\n }));\n\n const onClick = (e: MouseEvent) => {\n e.stopPropagation();\n props.handler();\n emit(BentoBaseButtonEvent.CLICK);\n };\n\n return {\n // Values\n conditionalClasses,\n\n // Methods\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item.scss\" />\n","import { BentoButton } from '../button';\n\nexport enum BentoMenuEvent {\n BACK = 'back',\n CLOSE = 'close',\n OPEN = 'open',\n}\n\ntype ButtonProps = InstanceType<typeof BentoButton>['$props'];\n\nexport type BentoMenuButtonProps = {\n variant?: ButtonProps['variant'];\n condensed?: ButtonProps['condensed'];\n disabled?: ButtonProps['disabled'];\n};\n","<template>\n <div class=\"b-menu-list-container\"><slot></slot></div>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue';\n\n /**\n * Menu list container component to set the correct styling in a menu list. For internal use only.\n */\n export default defineComponent({\n name: 'bento-menu-list-container',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-list-container.scss\" />\n","<template>\n <transition name=\"b-sub-menu-item-list__transition\" appear>\n <menu-list-container class=\"b-sub-menu-item-list\">\n <ul\n ref=\"subMenuItemListRefLocal\"\n role=\"menu\"\n class=\"b-sub-menu-item-list__list\"\n @keydown.down.stop=\"focusNext\"\n @keydown.up.stop=\"focusPrevious\"\n @keydown.esc.stop=\"onBackButton\"\n >\n <li v-for=\"(item, index) in computedItems\" :key=\"`sub-menu-item-list-item-${index}`\" role=\"none\">\n <menu-item\n :text=\"item.text\"\n :handler=\"item.handler\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :is-title=\"item.isTitle\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n @click=\"item.clickHandler\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-sub-menu-item-list__divider\" />\n </li>\n </ul>\n </menu-list-container>\n </transition>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, onMounted, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import { BentoMenuEvent } from '../../menu.types';\n import messages from '../../messages.json';\n\n /**\n * SubMenuItemList component to render a submenu with the sliding transition. For internal use only.\n */\n export default defineComponent({\n i18n: { messages },\n name: 'sub-menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer },\n props: {\n items: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.BACK],\n setup(props, { emit }) {\n const subMenuItemListRefLocal = ref(null);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.items.length);\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const onBackButton = () => emit(BentoMenuEvent.BACK);\n\n const computedItems = computed(() => {\n const items = props.items?.map(el => ({\n ...el,\n indent: !el.icon,\n isTitle: false,\n clickHandler: closeMenu,\n }));\n return [\n {\n text: props.title,\n secondaryText: null,\n critical: false,\n icon: ChevronLeftIcon,\n isTitle: true,\n disabled: false,\n indent: false,\n handler: onBackButton,\n clickHandler: onBackButton,\n addDivider: true,\n },\n ...items,\n ];\n });\n\n const focusItem = async () => {\n subMenuItemListRefLocal.value?.children?.[subMenuFocusedIndex.value]?.children?.[0]?.focus();\n };\n\n onMounted(async () => {\n // Using setTimeout otherwise the sliding animation doesn't work anymore. The timeout imer is the same as the transition time (0.15s)\n setTimeout(() => focusItem(), 150);\n });\n\n const focusPrevious = () => {\n if (subMenuFocusedIndex.value > 0) {\n subMenuFocusedIndex.value -= 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n subMenuFocusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (subMenuFocusedIndex.value < numberOfItems.value) {\n subMenuFocusedIndex.value += 1;\n if (computedItems.value[subMenuFocusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n subMenuFocusedIndex.value = 0;\n }\n focusItem();\n };\n\n return {\n // Enums\n BentoMenuEvent,\n\n // Values\n subMenuItemListRefLocal,\n subMenuFocusedIndex,\n ChevronLeftIcon,\n computedItems,\n\n // Methods\n closeMenu,\n onBackButton,\n focusPrevious,\n focusNext,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./sub-menu-item-list.scss\" />\n","<template>\n <menu-list-container ref=\"menuItemListWrapperRef\" :style=\"{ height: computedHeight }\">\n <ul\n ref=\"menuItemListRef\"\n class=\"b-menu-item-list\"\n role=\"menu\"\n @keydown.down=\"focusNext\"\n @keydown.up=\"focusPrevious\"\n @keydown.esc=\"closeMenu\"\n @keydown.tab=\"closeMenu\"\n >\n <li\n v-for=\"(item, index) in computedData\"\n :key=\"`menu-item-${index}`\"\n class=\"b-menu-item-list__item\"\n role=\"none\"\n @keydown.right=\"focusRight(item, index)\"\n @keydown.left=\"focusLeft()\"\n >\n <menu-item\n :text=\"item.text\"\n :handler=\"!item.items?.length ? item.handler : () => null\"\n :secondary-text=\"item.secondaryText\"\n :icon=\"item.icon\"\n :chevron=\"!!item.items?.length\"\n :disabled=\"item.disabled\"\n :critical=\"item.critical\"\n :indent=\"item.indent\"\n :tabindex=\"index === subMenuFocusedIndex ? '0' : '-1'\"\n :aria-haspopup=\"!!item.items?.length\"\n :aria-expanded=\"showSubMenu && visibleSubMenuIndex === index\"\n @click=\"toggleMenu(item, index)\"\n />\n <bento-divider v-if=\"item.addDivider\" class=\"b-menu-item-list__divider\" />\n <sub-menu-item-list\n v-if=\"item.items?.length && showSubMenu && visibleSubMenuIndex === index\"\n ref=\"subMenuItemListRef\"\n :items=\"item.items\"\n :title=\"item.text\"\n @back=\"onBackButton\"\n @close=\"closeMenu\"\n />\n </li>\n </ul>\n </menu-list-container>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { BentoDivider } from '@/components/divider';\n import { BentoMenuItem, MenuItem } from '../menu-item';\n import { BentoMenuEvent } from '../../menu.types';\n import MenuListContainer from '../menu-list-container/menu-list-container.vue';\n import SubMenuItemList from '../sub-menu-item-list/sub-menu-item-list.vue';\n\n /**\n * MenuItem list to be used in the Menu component. For internal use only.\n */\n export default defineComponent({\n name: 'menu-item-list',\n components: { BentoDivider, MenuItem, MenuListContainer, SubMenuItemList },\n props: {\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n /**\n * Displays the menu-items of the list in the indent variant. Only applies to elements that don't have an icon to their left.\n */\n indentItems: {\n type: Boolean,\n default: false,\n },\n /**\n * If set to true, focuses the last item on the list instead of the first. Used for accessibility purposes when the menu is opened with the 'up' arrow key.\n */\n focusLastElement: {\n type: Boolean,\n default: false,\n },\n },\n emits: [BentoMenuEvent.CLOSE],\n setup(props, { emit }) {\n const menuItemListRef = ref(null);\n const menuItemListWrapperRef = ref(null);\n const subMenuItemListRef = ref(null);\n const showSubMenu = ref(false);\n const visibleSubMenuIndex = ref(null);\n const focusedIndex = ref(props.focusLastElement ? props.data.length - 1 : 0);\n const subMenuFocusedIndex = ref(0);\n const numberOfItems = ref(props.data.length - 1);\n const hasMenuItemsWithIcon = computed(() => props.data.some(el => el.icon));\n\n const computedData = computed(() => {\n if (props.indentItems || hasMenuItemsWithIcon.value) {\n return props.data.map(el => {\n let indent = false;\n if (!el.icon) {\n indent = true;\n }\n return {\n ...el,\n // eslint-disable-next-line no-param-reassign\n indent,\n };\n });\n }\n return props.data;\n });\n\n const focusItem = () => menuItemListRef.value?.children[focusedIndex.value]?.children[0]?.focus();\n\n const closeMenu = () => emit(BentoMenuEvent.CLOSE);\n\n const toggleMenu = async (item: BentoMenuItem, index: number) => {\n if (item.items) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n } else {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = false;\n closeMenu();\n }\n };\n\n const focusPrevious = () => {\n if (focusedIndex.value > 0) {\n focusedIndex.value -= 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusPrevious();\n }\n } else {\n focusedIndex.value = numberOfItems.value;\n }\n focusItem();\n };\n\n const focusNext = () => {\n if (focusedIndex.value < numberOfItems.value) {\n focusedIndex.value += 1;\n if (computedData.value[focusedIndex.value].disabled) {\n focusNext();\n }\n } else {\n focusedIndex.value = 0;\n }\n focusItem();\n };\n\n const focusRight = (item, index) => {\n if (item?.items?.length) {\n visibleSubMenuIndex.value = index;\n showSubMenu.value = true;\n }\n };\n\n const focusLeft = () => {\n if (visibleSubMenuIndex.value && showSubMenu.value) {\n visibleSubMenuIndex.value = null;\n showSubMenu.value = false;\n }\n };\n\n const onBackButton = () => {\n showSubMenu.value = false;\n visibleSubMenuIndex.value = null;\n // Focus the right element\n focusItem();\n };\n\n const subMenuHeight = computed(() => subMenuItemListRef.value?.[0]?.$el?.offsetHeight);\n\n // When we show the sub menu we need to set the height of the container because of the way the submenus are handled,\n // but the main menu doesn't need a height, as the popover will generate it with the right height\n const computedHeight = computed(() => (showSubMenu.value ? `${subMenuHeight.value}px` : ''));\n\n return {\n // Values\n menuItemListRef,\n menuItemListWrapperRef,\n subMenuItemListRef,\n\n computedData,\n computedHeight,\n\n focusedIndex,\n subMenuFocusedIndex,\n\n showSubMenu,\n visibleSubMenuIndex,\n\n // Methods\n toggleMenu,\n closeMenu,\n focusPrevious,\n focusNext,\n focusRight,\n focusLeft,\n onBackButton,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu-item-list.scss\" />\n","export const MENU_INVERSE_INJECTION_KEY = Symbol('menu inverse style injection key');\n","<template>\n <div\n v-bento-click-outside-directive=\"closeMenu\"\n :class=\"computedClasses\"\n class=\"b-menu\"\n @keydown.down=\"onKeyDown\"\n @keydown.up=\"onKeyUp\"\n @keydown.esc=\"closeMenu\"\n >\n <bento-button\n ref=\"menuButtonRef\"\n aria-haspopup=\"true\"\n v-bind=\"button\"\n :aria-expanded=\"`${showMenu}`\"\n :aria-controls=\"showMenu ? menuId : null\"\n :inverse=\"isInverseColorSet\"\n @click=\"toggleShowMenu\"\n >\n <template v-if=\"!hasSlot('default') || hasSlot('iconLeft')\" #iconLeft>\n <slot name=\"iconLeft\">\n <options-vertical-icon :title=\"$t('menuButton')\" />\n </slot>\n </template>\n <template v-if=\"hasSlot('default')\" #default>\n <slot />\n </template>\n <template v-if=\"hasSlot('iconRight')\" #iconRight>\n <slot name=\"iconRight\" />\n </template>\n </bento-button>\n <bento-popover\n v-if=\"menuButtonRef\"\n :id=\"menuId\"\n :open=\"showMenu\"\n class=\"b-menu__popover\"\n :style=\"computedMenuWidth\"\n :target-element=\"menuButtonRef\"\n :position=\"menuPosition\"\n :fixed-positioning=\"menuFixedPositioning\"\n :fallback-position=\"[\n 'bottom-start',\n 'bottom-end',\n 'top-start',\n 'top-end',\n 'right-start',\n 'right-end',\n 'left-start',\n 'left-end',\n ]\"\n without-space\n >\n <menu-item-list :data=\"data\" :focus-last-element=\"isLastElementFocused\" @close=\"closeMenu\" />\n </bento-popover>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, provide, ref } from 'vue';\n import OptionsVerticalIcon from '@adyen/ui-assets-icons-16/vue/options-vertical';\n import { generateUid } from '@/utils/ts/unique-id';\n import { BentoClickOutsideDirective } from '@/directives';\n import { BentoButton } from '@/components/button';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoMenuItem, MenuItemList } from './components';\n import { BentoMenuButtonProps, BentoMenuEvent } from './menu.types';\n import { DIVIDER_INVERSE_INJECTION_KEY } from '@/components/divider/divider.keys';\n import { MENU_INVERSE_INJECTION_KEY } from './menu.keys';\n import messages from './messages.json';\n import { useHasSlot } from '@/composables';\n\n /**\n * Menu component to render a series of buttons. Csan render nested submenus.\n *\n * @example\n * import { BentoMenu } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoMenu },\n * template: `\n * <bento-menu\n * :data=[\n * { text: 'Menu item text', handler: () => { some code here } },\n * { text: 'Another menu item text', handler: () => { some other code here }, critical: true }\n * ]\n * />\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-menu',\n components: { BentoButton, BentoPopover, MenuItemList, OptionsVerticalIcon },\n directives: { BentoClickOutsideDirective },\n props: {\n /**\n * Object containing props to change the menu button appearance. Accepts the same props present in BentoButton.\n */\n button: {\n type: Object as PropType<BentoMenuButtonProps>,\n default: () =>\n ({\n variant: 'secondary',\n } as BentoMenuButtonProps),\n },\n /**\n * The data to be displayed in the list\n */\n data: {\n type: Array as PropType<BentoMenuItem[]>,\n required: true,\n },\n\n /**\n * The position of where the menu should open.\n */\n menuPosition: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Instructs the menu popover to be visible outside of the containing container.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n menuFixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets a custom width for the menu popover.\n */\n menuWidth: {\n type: Number,\n default: null,\n },\n },\n emits: [BentoMenuEvent.CLOSE, BentoMenuEvent.OPEN],\n setup(props, { emit, slots }) {\n const menuButtonRef = ref(null);\n const showMenu = ref(false);\n const isLastElementFocused = ref(false);\n const menuId = generateUid('menu');\n const popoverId = generateUid('menu-popover');\n\n const isInverseColorSet = inject(MENU_INVERSE_INJECTION_KEY, ref(false));\n provide(DIVIDER_INVERSE_INJECTION_KEY, isInverseColorSet);\n\n const computedClasses = computed(() => ({\n 'b-menu--inverse': isInverseColorSet.value,\n }));\n\n const computedMenuWidth = computed(() => (props.menuWidth ? { width: `${props.menuWidth}px` } : null));\n\n const openMenu = () => {\n showMenu.value = true;\n emit(BentoMenuEvent.OPEN);\n };\n\n const closeMenu = () => {\n if (showMenu.value) {\n showMenu.value = false;\n menuButtonRef.value.$el.focus();\n emit(BentoMenuEvent.CLOSE);\n }\n };\n\n const toggleShowMenu = (e: MouseEvent) => {\n e.stopPropagation();\n if (!showMenu.value) {\n openMenu();\n } else {\n closeMenu();\n }\n };\n\n const onKeyDown = () => {\n isLastElementFocused.value = false;\n openMenu();\n };\n\n const onKeyUp = () => {\n isLastElementFocused.value = true;\n openMenu();\n };\n\n return {\n // Values\n menuButtonRef,\n menuId,\n popoverId,\n showMenu,\n computedMenuWidth,\n isLastElementFocused,\n\n // Classes\n computedClasses,\n isInverseColorSet,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onKeyDown,\n onKeyUp,\n closeMenu,\n toggleShowMenu,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./menu.scss\" />\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$2","toDisplayString","_sfc_main$4","defineComponent","BaseButton","BentoTypography","ChevronRightIcon","BentoBaseButtonEvent","props","emit","computed","e","normalizeClass","createSlots","withCtx","createVNode","_component_bento_typography","createBlock","resolveDynamicComponent","BentoMenuEvent","BentoMenuEvent2","_sfc_main$3","_sfc_main$2","messages","BentoDivider","MenuItem","MenuListContainer","subMenuItemListRefLocal","ref","subMenuFocusedIndex","numberOfItems","closeMenu","onBackButton","computedItems","items","_a","el","ChevronLeftIcon","focusItem","_e","_d","_c","_b","onMounted","focusPrevious","focusNext","_component_menu_list_container","resolveComponent","Transition","createElementVNode","_cache","withKeys","withModifiers","args","Fragment","renderList","item","index","_component_bento_divider","_sfc_main$1","SubMenuItemList","menuItemListRef","menuItemListWrapperRef","subMenuItemListRef","showSubMenu","visibleSubMenuIndex","focusedIndex","hasMenuItemsWithIcon","computedData","indent","toggleMenu","focusRight","focusLeft","subMenuHeight","computedHeight","normalizeStyle","$event","createCommentVNode","_component_sub_menu_item_list","MENU_INVERSE_INJECTION_KEY","_sfc_main","BentoButton","BentoPopover","MenuItemList","OptionsVerticalIcon","BentoClickOutsideDirective","BentoPopoverPositions","value","slots","menuButtonRef","showMenu","isLastElementFocused","menuId","generateUid","popoverId","isInverseColorSet","inject","provide","DIVIDER_INVERSE_INJECTION_KEY","computedClasses","computedMenuWidth","openMenu","toggleShowMenu","onKeyDown","onKeyUp","useHasSlot","renderSlot","_component_options_vertical_icon","_component_bento_popover","_component_menu_item_list"],"mappings":";;;;;;;;;;;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;EAAuc,MAAA;A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AA,WAAAA,EAAA,SAAA;AAAA,MACY,SAAAA,EAAA;AAAA;IAEE,CAAA,GAAAc,EAAA,EAAA,GAAA,EAAA,GAAA;AAAA;QACpB,MAAA;AAAA,QAAA,IAAAC,EAAA,MAAA;AAAA,UACuD4F,EAAA3G,EAAA,QAAA,YAAA,CAAA,GAAA,MAAA;AAAA,YAAlBgB,EAAA4F,GAAA;AAAA;;;;;MAGzB,IAAA;AAAA;QACZ,MAAA;AAAA,QAAA,IAAA7F,EAAA,MAAA;AAAA;;;MAEY,IAAA;AAAA;QACZ,MAAA;AAAA,QAAA,IAAAA,EAAA,MAAA;AAAA;;;MAIE,IAAA;AAAA,IAAA,CAAA,GAAA,MAAA,CAAA,iBAAA,iBAAA,WAAA,SAAA,CAAA;AAAA,IAqBMf,EAAA,iBAAAH,EAAA,GAAAqB,EAAA2F,GAAA;AAAA,MApBD,KAAA;AAAA,MACN,IAAA7G,EAAA;AAAA,MACC,MAAAA,EAAA;AAAA,MACA,OAAA;AAAA,MACL,OAAA4E,EAAA5E,EAAA,iBAAA;AAAA,MACsB,kBAAAA,EAAA;AAAA,MACH,UAAAA,EAAA;AAAA,MACnB,qBAAAA,EAAA;AAAA;;;;;;;QASA;AAAA,QAAA;AAAA,MACD;AAAA;;MAEqB,SAAAe,EAAA,MAAA;AAAA,QAAMC,EAAA8F,GAAA;AAAA,UAAuB,MAAA9G,EAAA;AAAA,UAA8B,sBAAAA,EAAA;AAAA;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,168 @@
1
+ import { defineComponent as f, inject as a, computed as i, provide as $, openBlock as s, createElementBlock as h, renderSlot as v, ref as D, resolveComponent as o, resolveDirective as N, normalizeClass as k, createElementVNode as _, normalizeStyle as W, createVNode as m, withCtx as y, createTextVNode as U, toDisplayString as V, createBlock as c, createCommentVNode as l, withDirectives as O } from "vue";
2
+ import { _ as S } from "./_plugin-vue_export-helper.dad06003.js";
3
+ import { a as R } from "./button.6ca5cd14.js";
4
+ import { BentoInfoIcon as j } from "../info-icon.js";
5
+ import { B as w } from "./index.10c545e2.js";
6
+ import { C as A } from "./copy.0fed8f42.js";
7
+ import { S as z } from "./search.ade93bda.js";
8
+ import { b as F } from "./tooltip.65868eae.js";
9
+ import "../assets/index44.css";
10
+ const T = Symbol("structured list condensed style injection key"), C = Symbol("structured list labels width injection key"), b = ["25-75", "33-66", "42-58", "50-50"], H = { class: "b-structured-list" }, J = {}, K = /* @__PURE__ */ f({
11
+ ...J,
12
+ __name: "structured-list",
13
+ props: {
14
+ /**
15
+ * Width of the labels container, in pixels. Overrides layout prop.
16
+ */
17
+ labelsWidth: {
18
+ type: Number,
19
+ default: null
20
+ },
21
+ /**
22
+ * The layout of the label value pair in percentage.
23
+ * If labelsWidth is set, layout will be overriden by the static pixel value.
24
+ *
25
+ * If the value entered is not listed in the example
26
+ * list below '33-66' will be applied
27
+ * @example
28
+ * '25-75'
29
+ * '33-66'
30
+ * '42-58'
31
+ * '50-50'
32
+ */
33
+ layout: {
34
+ type: String,
35
+ default: "33-66",
36
+ validator: (t) => b.includes(t)
37
+ }
38
+ },
39
+ setup(t) {
40
+ const e = t, n = a(T, !1), r = i(
41
+ () => b.includes(e.layout) ? e.layout : "33-66"
42
+ ), d = i(() => n ? "130px" : e.labelsWidth ? `${e.labelsWidth}px` : `${r.value.split("-")[0]}%`);
43
+ return $(C, d), (u, p) => (s(), h("dl", H, [
44
+ v(u.$slots, "default", {}, void 0, !0)
45
+ ]));
46
+ }
47
+ });
48
+ const nt = /* @__PURE__ */ S(K, [["__scopeId", "data-v-ee87e115"]]), Y = {
49
+ "en-US": {
50
+ search: "Search"
51
+ }
52
+ }, q = "33%", G = f({
53
+ i18n: { messages: Y },
54
+ name: "bento-structured-list-item",
55
+ components: {
56
+ BentoButton: R,
57
+ BentoInfoIcon: j,
58
+ BentoTypography: w,
59
+ Copy: A,
60
+ SearchIcon: z
61
+ },
62
+ directives: { BentoTooltipDirective: F },
63
+ props: {
64
+ /**
65
+ * Label to display for the value
66
+ */
67
+ label: {
68
+ type: String,
69
+ required: !0
70
+ },
71
+ /**
72
+ * Text to display in info icon tooltip in the label to display for the value
73
+ */
74
+ labelInfo: {
75
+ type: String,
76
+ default: void 0
77
+ },
78
+ /**
79
+ * Text to copy when the user clicks `Copy` icon
80
+ */
81
+ copy: {
82
+ type: String,
83
+ default: void 0
84
+ },
85
+ /**
86
+ * Function to trigger when user clicks `Search` icon
87
+ */
88
+ search: {
89
+ type: Function,
90
+ default: void 0
91
+ },
92
+ /**
93
+ * Text to display when the user hovers over `Search` icon
94
+ */
95
+ searchTooltip: {
96
+ type: String,
97
+ default: void 0
98
+ }
99
+ },
100
+ setup() {
101
+ const t = a(T, !1), e = a(
102
+ C,
103
+ D(q)
104
+ ), n = i(() => ({
105
+ "b-structured-list-item--condensed": t
106
+ })), r = i(() => t ? "caption" : "body");
107
+ return {
108
+ // Values
109
+ conditionalClasses: n,
110
+ labelTypographyVariant: r,
111
+ labelsWidth: e
112
+ };
113
+ }
114
+ });
115
+ const M = { class: "b-structured-list-item__value" };
116
+ function P(t, e, n, r, d, u) {
117
+ const p = o("bento-typography"), I = o("bento-info-icon"), g = o("copy"), L = o("search-icon"), B = o("bento-button"), E = N("bento-tooltip-directive");
118
+ return s(), h("div", {
119
+ class: k(["b-structured-list-item", t.conditionalClasses])
120
+ }, [
121
+ _("dt", {
122
+ class: "b-structured-list-item__label",
123
+ style: W(`flex-basis:${t.labelsWidth}`)
124
+ }, [
125
+ m(p, { variant: t.labelTypographyVariant }, {
126
+ default: y(() => [
127
+ U(V(t.label), 1)
128
+ ]),
129
+ _: 1
130
+ }, 8, ["variant"]),
131
+ t.labelInfo ? (s(), c(I, {
132
+ key: 0,
133
+ class: "b-structured-list-item__icon",
134
+ "tooltip-text": t.labelInfo
135
+ }, null, 8, ["tooltip-text"])) : l("", !0)
136
+ ], 4),
137
+ _("dd", M, [
138
+ v(t.$slots, "default", {}, void 0, !0),
139
+ t.copy ? (s(), c(g, {
140
+ key: 0,
141
+ class: "b-structured-list-item__icon",
142
+ text: t.copy
143
+ }, null, 8, ["text"])) : l("", !0),
144
+ t.search ? O((s(), c(B, {
145
+ key: 1,
146
+ class: "b-structured-list-item__icon",
147
+ variant: "tertiary",
148
+ onClick: t.search
149
+ }, {
150
+ iconLeft: y(() => [
151
+ m(L, {
152
+ "svg-title": t.$t("search")
153
+ }, null, 8, ["svg-title"])
154
+ ]),
155
+ _: 1
156
+ }, 8, ["onClick"])), [
157
+ [E, t.searchTooltip ? t.searchTooltip : t.$t("search"), "top"]
158
+ ]) : l("", !0)
159
+ ])
160
+ ], 2);
161
+ }
162
+ const rt = /* @__PURE__ */ S(G, [["render", P], ["__scopeId", "data-v-55ace1b2"]]);
163
+ export {
164
+ nt as B,
165
+ T as S,
166
+ rt as a
167
+ };
168
+ //# sourceMappingURL=index.99d2c4e5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.99d2c4e5.js","sources":["../../../vue2/src/components/structured-list/structured-list.keys.ts","../../../vue2/src/components/structured-list/structured-list.types.ts","../../../vue2/src/components/structured-list/structured-list.vue","../../../vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue"],"sourcesContent":["export const STRUCTURED_LIST_CONDENSED_INJECTION_KEY = Symbol('structured list condensed style injection key');\nexport const STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY = Symbol('structured list labels width injection key');\n","export type BentoStructuredListLayoutOptions = '25-75' | '33-66' | '42-58' | '50-50';\nexport const BentoStructuredListLayoutOptions = ['25-75', '33-66', '42-58', '50-50'];\n","<template>\n <dl class=\"b-structured-list\">\n <slot />\n </dl>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, provide } from 'vue';\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '@/components/structured-list/structured-list.keys';\n import { BentoStructuredListLayoutOptions } from './structured-list.types';\n\n const props = defineProps({\n /**\n * Width of the labels container, in pixels. Overrides layout prop.\n */\n labelsWidth: {\n type: Number,\n default: null,\n },\n /**\n * The layout of the label value pair in percentage.\n * If labelsWidth is set, layout will be overriden by the static pixel value.\n *\n * If the value entered is not listed in the example\n * list below '33-66' will be applied\n * @example\n * '25-75'\n * '33-66'\n * '42-58'\n * '50-50'\n */\n layout: {\n type: String as PropType<BentoStructuredListLayoutOptions>,\n default: '33-66',\n validator: (value: BentoStructuredListLayoutOptions) => BentoStructuredListLayoutOptions.includes(value),\n },\n });\n\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n\n const computedLayout = computed(() =>\n BentoStructuredListLayoutOptions.includes(props.layout) ? props.layout : '33-66'\n );\n\n const computedLabelsWidth = computed(() => {\n if (isCondensed) {\n return '130px';\n }\n\n if (props.labelsWidth) {\n return `${props.labelsWidth}px`;\n }\n\n return `${computedLayout.value.split('-')[0]}%`;\n });\n\n provide(STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY, computedLabelsWidth);\n</script>\n\n<script lang=\"ts\">\n /**\n * This is a list used to display pairs of information in a clear and organized manner.\n * `BentoStructureListItem` should be used to pass the label/value pairs to the list.\n *\n * @example\n * import { BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredList, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Payment\">\n * <bento-payment-method label=\"Klarna\" type=\"Klarna\" />\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\">\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list.scss\" />\n","<template>\n <div class=\"b-structured-list-item\" :class=\"conditionalClasses\">\n <dt class=\"b-structured-list-item__label\" :style=\"`flex-basis:${labelsWidth}`\">\n <bento-typography :variant=\"labelTypographyVariant\">{{ label }}</bento-typography>\n <bento-info-icon v-if=\"labelInfo\" class=\"b-structured-list-item__icon\" :tooltip-text=\"labelInfo\" />\n </dt>\n <dd class=\"b-structured-list-item__value\">\n <slot />\n <copy v-if=\"copy\" class=\"b-structured-list-item__icon\" :text=\"copy\" />\n <bento-button\n v-if=\"search\"\n v-bento-tooltip-directive:top=\"searchTooltip ? searchTooltip : $t('search')\"\n class=\"b-structured-list-item__icon\"\n variant=\"tertiary\"\n @click=\"search\"\n >\n <template #iconLeft>\n <search-icon :svg-title=\"$t('search')\" />\n </template>\n </bento-button>\n </dd>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, inject, PropType, ref, Ref } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { BentoTypography } from '@/components/typography';\n import Copy from '@/components/internal/copy/copy.vue';\n import SearchIcon from '@adyen/ui-assets-icons-16/vue/search';\n\n // Directives\n import { BentoTooltipDirective } from '@/directives';\n\n // Keys\n import {\n STRUCTURED_LIST_CONDENSED_INJECTION_KEY,\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n } from '../../structured-list.keys';\n\n import messages from '../../messages.json';\n\n const DEFAULT_LABELS_WIDTH = '33%';\n\n /**\n * This is an item of the `BentoStructuredList` meant to be used only with that component.\n * It consists of a label/value pair, and also the optional copy and search modifiers.\n *\n * @example\n * import { BentoCurrencyISOCode, BentoStructuredListItem, BentoStructuredListItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoStructuredListItem, BentoStructuredListItem },\n * template: `\n * <bento-structured-list>\n * <bento-structured-list-item label=\"Shopper\" search='searchShopper' search-tooltip='Find shopper'>\n * <bento-typography>\n * 143442642\n * </bento-status>\n * </bento-structured-list-item>\n * <bento-structured-list-item label=\"Amount\" copy='123456'>\n * <bento-currency :currency=\"BentoCurrencyISOCode.USD\">\n * 123456\n * </bento-currency>\n * </bento-structured-list-item>\n * </bento-structured-list>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-structured-list-item',\n components: {\n BentoButton,\n BentoInfoIcon,\n BentoTypography,\n Copy,\n SearchIcon,\n },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * Label to display for the value\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * Text to display in info icon tooltip in the label to display for the value\n */\n labelInfo: {\n type: String,\n default: undefined,\n },\n /**\n * Text to copy when the user clicks `Copy` icon\n */\n copy: {\n type: String,\n default: undefined,\n },\n /**\n * Function to trigger when user clicks `Search` icon\n */\n search: {\n type: Function as PropType<(event: Event) => void>,\n default: undefined,\n },\n /**\n * Text to display when the user hovers over `Search` icon\n */\n searchTooltip: {\n type: String,\n default: undefined,\n },\n },\n setup() {\n const isCondensed = inject(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, false);\n const labelsWidth = inject<Ref<string>>(\n STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY,\n ref(DEFAULT_LABELS_WIDTH)\n );\n const conditionalClasses = computed(() => ({\n 'b-structured-list-item--condensed': isCondensed,\n }));\n\n const labelTypographyVariant = computed(() => (isCondensed ? 'caption' : 'body'));\n\n return {\n // Values\n conditionalClasses,\n labelTypographyVariant,\n labelsWidth,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./structured-list-item.scss\" />\n"],"names":["STRUCTURED_LIST_CONDENSED_INJECTION_KEY","STRUCTURED_LIST_LABELS_WIDTH_INJECTION_KEY","BentoStructuredListLayoutOptions","__default__","isCondensed","inject","computedLayout","computed","props","computedLabelsWidth","provide","DEFAULT_LABELS_WIDTH","_sfc_main","defineComponent","messages","BentoButton","BentoInfoIcon","BentoTypography","Copy","SearchIcon","BentoTooltipDirective","labelsWidth","ref","conditionalClasses","labelTypographyVariant","_directive_bento_tooltip_directive","resolveDirective","createElementVNode","normalizeStyle","_ctx","withCtx","createCommentVNode","_hoisted_1","renderSlot","openBlock","createBlock","_component_copy","createVNode","_component_search_icon"],"mappings":";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;AAAA,MAChBqB,EAAAX,CAAA;AAAA,IACwB,GAE5BY,IAAAhB,EAAA,OAAA;AAAA,MAA2C,qCAAAH;AAAA,IACF,EAAA,GAGzCoB,IAAAjB,EAAA,MAAAH,IAAA,YAAA,MAAA;AAEA,WAAA;AAAA;AAAA,MAAO,oBAAAmB;AAAA,MAEH,wBAAAC;AAAA,MACA,aAAAH;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;;yHAtHMI,IAAAC,EAAA,yBAAA;;;EAhBG,GAAA;AAAA,IAH2CC,EAAA,MAAA;AAAA,MAAA,OAAA;AAAA,MAC5C,OAAAC,EAAA,cAAAC,EAAA,aAAA;AAAA,IAA4B,GAAA;AAAA;QAAgC,SAAAC,EAAA,MAAA;AAAA;;QACrC,GAAA;AAAA,MAAA,GAAA,GAAA,CAAA,SAAA,CAAA;AAAA;QAA+C,KAAA;AAAA,QAAE,OAAA;AAAA;MAE5E,GAAA,MAAA,GAAA,CAAA,cAAA,CAAA,KAAAC,EAAA,IAAA,EAAA;AAAA,IAAA,GAAA,CAAA;AAAA,IACIJ,EAAA,MAAAK,GAAA;AAAA,MACgBC,EAAAJ,EAAA,QAAA,WAAA,CAAA,GAAA,QAAA,EAAA;AAAA,MAAsDA,EAAA,QAAAK,EAAA,GAAAC,EAAAC,GAAA;AAAA,QAAhB,KAAA;AAAA,QAAM,OAAA;AAAA;;;QAIpB,KAAA;AAAA,QACpC,OAAA;AAAA,QACM,SAAA;AAAA;MAEa,GAAA;AAAA,QACD,UAAAN,EAAA,MAAA;AAAA,UAAaO,EAAAC,GAAA;AAAA;;;;;;;;;;;"}
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as T, computed as r, resolveComponent as B, openBlock as s, createBlock as f, withCtx as m, createTextVNode as R, toDisplayString as j, normalizeClass as C, createVNode as d, useSlots as x, useAttrs as U, inject as Y, ref as q, toRefs as z, Transition as H, unref as e, createElementBlock as l, createCommentVNode as i, renderSlot as g, createElementVNode as J } from "vue";
2
- import { c as K, a as $, b as M } from "./index.85832db5.js";
3
- import { B as G, a as E } from "./index.75f3672e.js";
2
+ import { c as K, a as $, b as M } from "./index.791fdd7d.js";
3
+ import { B as G, a as E } from "./index.10c545e2.js";
4
4
  import { _ as h } from "./_plugin-vue_export-helper.dad06003.js";
5
- import { a as Q } from "./button.82ed953e.js";
5
+ import { a as Q } from "./button.6ca5cd14.js";
6
6
  import { C as W } from "./cross.26509efc.js";
7
7
  import { u as X } from "./use-has-slot.4d98bf29.js";
8
8
  import { u as Z } from "./aria-label.ac9651a5.js";
9
9
  import { BentoButtonActionsLayout as A, BentoButtonActions as tt } from "../button.js";
10
- import "../assets/index22.css";
10
+ import "../assets/index25.css";
11
11
  const et = T({
12
12
  components: { BentoTypography: G },
13
13
  props: {
@@ -336,4 +336,4 @@ export {
336
336
  nt as P,
337
337
  kt as a
338
338
  };
339
- //# sourceMappingURL=index.98174339.js.map
339
+ //# sourceMappingURL=index.a875e4b3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.98174339.js","sources":["../../../vue2/src/components/popover/components/popover-title/popover-title.vue","../../../vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../../../vue2/src/components/popover/popover.types.ts","../../../vue2/src/components/popover/popover.keys.ts","../../../vue2/src/components/popover/popover.vue"],"sourcesContent":["<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" el=\"span\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" variant=\"tertiary\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","import { PopperContainerPosition } from '../popper-container';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","export const POPOVER_OFFSET_INJECTION_KEY = Symbol('popover offset injection key');\n","<template>\n <Transition name=\"b-popover__animation\">\n <popper-container\n v-if=\"open\"\n :id=\"computedAttributes['id']\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :fixed-positioning=\"fixedPositioning\"\n :offset=\"[0, offset]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n class=\"b-popover\"\n @placement=\"$emit('placement', $event)\"\n >\n <div v-if=\"hasSlot('image')\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"hasSlot('headerIcon')\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!hasSlot('image')\" />\n </div>\n <div v-if=\"dismissible && !hasSlot('image')\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"hasSlot('default')\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, ref, toRefs, useAttrs, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n import { BentoPopoverPositions } from './popover.types';\n import { Placement } from '@floating-ui/vue';\n\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n import { POPOVER_OFFSET_INJECTION_KEY } from './popover.keys';\n\n const DEFAULT_OFFSET = 2;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event. Requires the `title` prop to be set.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://floating-ui.com/docs/flip#fallbackplacements\n */\n fallbackPosition: {\n type: Array as PropType<Placement[]>,\n default: () => ['bottom-start', 'right-start', 'top-start', 'left-start'],\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * @deprecated\n * NOTE: This property no longer functions since moving to the floating-ui framework.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the `dismiss` button is clicked\n */\n (e: 'dismiss'): void;\n /**\n * Triggered when the popover `placement` changes\n */\n (e: 'placement', placement: Placement): void;\n }>();\n\n const slots = useSlots();\n const attrs = useAttrs();\n\n const computedAttributes = computed(() => ({\n id: attrs.id?.toString() as string,\n }));\n\n const offset = inject<number>(POPOVER_OFFSET_INJECTION_KEY, DEFAULT_OFFSET);\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, title } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: title,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover id=\"your-popover-id\">\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","_component_bento_typography","resolveComponent","openBlock","createBlock","_ctx","_sfc_main$1","BentoButton","CrossIcon","_component_bento_button","normalizeClass","_cache","$event","BentoPopoverPositions","PopperContainerPosition","POPOVER_OFFSET_INJECTION_KEY","__default__","DEFAULT_OFFSET","slots","useSlots","attrs","useAttrs","computedAttributes","_a","offset","inject","ariaLabelAttribute","ref","ariaLabel","title","toRefs","computedAriaLabel","useAriaLabel","conditionalClasses","contentConditionalClasses","dismissPopover","emit","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;AAUI,MAAAA,KAAAC,EAAA;AAAA,EAA+B,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACG,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,cAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAI2C,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKT;AAAA,EACzC,MAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,MAAA,CAAAF,EAAA,YAAA,GAGAG,IAAAD;AAAA,MAAqB,MAAAF,EAAA,eAAAI,EAAA,WAAAA,EAAA;AAAA,IAC6D;AAGlF,WAAA;AAAA;AAAA,MAAO,aAAAH;AAAA,MAEH,cAAAE;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;AAnCmB,QAAAE,IAAAC,EAAA,kBA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AAAC,EAAA,IAAAC,EAAAlC,CAAA,GACAmC,IAAAC,EAAA;AAAA,MAAuC,WAAAN,EAAA;AAAA;AAAA,MACL,OAAAE;AAAA,MAEvB,iBAAAC;AAAA,IACU,CAAA,GAGrBI,IAAAnC,EAAA,OAAA;AAAA,MAA2C,oBAAAF,EAAA,SAAA,CAAAA,EAAA;AAAA,MACG,2BAAA,CAAA,CAAAA,EAAA;AAAA,MACP,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACO,0BAAAA,EAAA;AAAA,MACV,4BAAAA,EAAA;AAAA,IACE,EAAA,GAGtCsC,IAAApC,EAAA,OAAA;AAAA,MAAkD,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACJ,EAAA,GAG9CuC,IAAA,MAAAC,EAAA,SAAA,GAEAC,IAAAC,EAAApB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.a875e4b3.js","sources":["../../../vue2/src/components/popover/components/popover-title/popover-title.vue","../../../vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue","../../../vue2/src/components/popover/popover.types.ts","../../../vue2/src/components/popover/popover.keys.ts","../../../vue2/src/components/popover/popover.vue"],"sourcesContent":["<template>\n <bento-typography :strongest=\"isStrongest\" :variant=\"titleVariant\" el=\"span\">\n {{ title }}\n </bento-typography>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoTypography, BentoTypographyVariant } from '@/components/typography';\n\n export default defineComponent({\n components: { BentoTypography },\n props: {\n /**\n * Indicates if the popover contains an image.\n */\n isImageTitle: { type: Boolean, default: false },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: { type: String, default: null },\n },\n setup(props) {\n // Use strongest only when it has no image\n const isStrongest = computed(() => !props.isImageTitle);\n\n // If an image is present, change the variant from BODY to SUBTITLE and remove the \"strongest\" property of the title\n const titleVariant = computed(() =>\n props.isImageTitle ? BentoTypographyVariant.SUBTITLE : BentoTypographyVariant.BODY\n );\n\n return {\n // Values\n isStrongest,\n titleVariant,\n };\n },\n });\n</script>\n","<template>\n <bento-button :class=\"conditionalClass\" variant=\"tertiary\" @click=\"$emit('click')\">\n <template #iconLeft>\n <cross-icon svg-title=\"dismiss\" />\n </template>\n </bento-button>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent } from 'vue';\n import { BentoButton } from '@/components/button';\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n export default defineComponent({\n name: 'bento-popover-dismiss-button',\n components: { BentoButton, CrossIcon },\n props: {\n onImage: {\n type: Boolean,\n default: false,\n },\n },\n setup(props) {\n const conditionalClass = computed(() => ({ 'b-popover-dismiss-button--on-image': props.onImage }));\n\n return {\n // Values\n conditionalClass,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover-dismiss-button.scss\" />\n","import { PopperContainerPosition } from '../popper-container';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport const BentoPopoverPositions = { ...PopperContainerPosition };\nexport type BentoPopoverPositions = PopperContainerPosition;\n","export const POPOVER_OFFSET_INJECTION_KEY = Symbol('popover offset injection key');\n","<template>\n <Transition name=\"b-popover__animation\">\n <popper-container\n v-if=\"open\"\n :id=\"computedAttributes['id']\"\n :aria-role=\"PopperContainerAriaRole.POPOVER\"\n :aria-label=\"computedAriaLabel\"\n :arrow=\"{ classes: ['b-popover__arrow'] }\"\n :disabled-focus-trap=\"disableFocusTrap\"\n :class=\"conditionalClasses\"\n :fallback-position=\"fallbackPosition\"\n :fixed-positioning=\"fixedPositioning\"\n :offset=\"[0, offset]\"\n :position=\"position\"\n :target-element=\"targetElement\"\n class=\"b-popover\"\n @placement=\"$emit('placement', $event)\"\n >\n <div v-if=\"hasSlot('image')\" class=\"b-popover__image\">\n <div v-if=\"dismissible\" class=\"b-popover__image-dismiss-button\">\n <bento-popover-dismiss-button on-image @click=\"dismissPopover\" />\n </div>\n <slot name=\"image\"></slot>\n </div>\n <div v-if=\"title\" class=\"b-popover__header\">\n <div class=\"b-popover__header-title\">\n <slot v-if=\"hasSlot('headerIcon')\" name=\"headerIcon\"></slot>\n <bento-popover-title :title=\"title\" :is-image-title=\"!!hasSlot('image')\" />\n </div>\n <div v-if=\"dismissible && !hasSlot('image')\">\n <bento-popover-dismiss-button @click=\"dismissPopover\" />\n </div>\n </div>\n\n <div v-if=\"hasSlot('default')\" class=\"b-popover__content\" :class=\"contentConditionalClasses\">\n <slot></slot>\n </div>\n\n <div v-if=\"actions\" class=\"b-popover__footer\">\n <bento-button-actions :actions=\"actions\" :layout=\"actionsLayout\"></bento-button-actions>\n </div>\n </popper-container>\n </Transition>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, inject, PropType, ref, toRefs, useAttrs, useSlots } from 'vue';\n\n import { BentoButtonActions, BentoButtonActionsLayout, BentoButtonActionsList } from '@/components/button';\n import { PopperContainer, PopperContainerAriaRole } from '@/components/popper-container';\n import BentoPopoverTitle from './components/popover-title/popover-title.vue';\n import BentoPopoverDismissButton from './components/popover-dismiss-button/popover-dismiss-button.vue';\n\n import { BentoPopoverPositions } from './popover.types';\n import { Placement } from '@floating-ui/vue';\n\n import { useHasSlot } from '@/composables';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n\n import { POPOVER_OFFSET_INJECTION_KEY } from './popover.keys';\n\n const DEFAULT_OFFSET = 2;\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon`: Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Defines the layout in which the button actions is presented.\n * It can be one of:\n *\n * @values BUTTONS_END\n * @values FILL_CONTAINER\n * @values SPACE_BETWEEN\n * @values VERTICAL_STACK\n */\n actionsLayout: {\n type: String as PropType<BentoButtonActionsLayout | `${BentoButtonActionsLayout}`>,\n default: BentoButtonActionsLayout.BUTTONS_END,\n validator: (value: BentoButtonActionsLayout) => Object.values(BentoButtonActionsLayout).includes(value),\n },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Defines a string value that provides an accessible name for the popover.\n */\n ariaLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Adds a divider line to the actions section, reduces the top/bottom paddings and removes all padding in the \"default\" slot.\n */\n divider: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Supports disabling focus trap functionality to avoid scroll into view behavior when we don't need it.\n * */\n disableFocusTrap: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Adds a \"dismiss\" icon that triggers the \"dismiss\" event. Requires the `title` prop to be set.\n */\n dismissible: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Allows to configure to fallback position to the one specified, it could be ['right', 'top', ...].\n * Useful when not using auto as starting placement.\n * https://floating-ui.com/docs/flip#fallbackplacements\n */\n fallbackPosition: {\n type: Array as PropType<Placement[]>,\n default: () => ['bottom-start', 'right-start', 'top-start', 'left-start'],\n },\n\n /**\n * Sets the size of the container to fit its content\n */\n fitContent: { type: Boolean, default: false },\n\n /**\n * Instructs popover to be visible outside of the containing container.\n * Useful when component would be used in limited containers like Modal, Side panel, etc.\n * @see {@link https://floating-ui.com/docs/usefloating#strategy}\n */\n fixedPositioning: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Toggles the popover open and closed\n */\n open: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Displays the popover in a large size.\n */\n large: {\n type: Boolean,\n default: false,\n },\n\n /**\n * @deprecated\n * NOTE: This property no longer functions since moving to the floating-ui framework.\n */\n modifiers: { type: Array, default: null },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<BentoPopoverPositions | `${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Displays the popover in a small size.\n */\n small: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Indicates the title you want to give the popover.\n */\n title: {\n type: String,\n default: null,\n },\n\n /**\n * Popover's target element.\n * The popover will position itself relatively to target element, in specified position.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n /**\n * Displays the popover without padding.\n */\n withoutSpace: {\n type: Boolean,\n default: false,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Triggered when the `dismiss` button is clicked\n */\n (e: 'dismiss'): void;\n /**\n * Triggered when the popover `placement` changes\n */\n (e: 'placement', placement: Placement): void;\n }>();\n\n const slots = useSlots();\n const attrs = useAttrs();\n\n const computedAttributes = computed(() => ({\n id: attrs.id?.toString() as string,\n }));\n\n const offset = inject<number>(POPOVER_OFFSET_INJECTION_KEY, DEFAULT_OFFSET);\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, title } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: title,\n });\n\n const conditionalClasses = computed(() => ({\n 'b-popover--small': props.small && !props.large,\n 'b-popover--with-divider': !!props.divider,\n 'b-popover--large': props.large && !props.small,\n 'b-popover--fit-content': props.fitContent,\n 'b-popover--without-space': props.withoutSpace,\n }));\n\n const contentConditionalClasses = computed(() => ({\n 'b-popover__content--with-title': !!props.title,\n }));\n\n const dismissPopover = () => emit('dismiss');\n\n const hasSlot = useHasSlot(slots);\n</script>\n\n<script lang=\"ts\">\n /**\n * Example description of the component...\n *\n * @example\n * import { BentoPopover } from '@adyen/adl-vue2';\n *\n * export default {\n * components: { BentoPopover },\n * template: `\n * <bento-popover id=\"your-popover-id\">\n * ...Example code of the component\n * </bento-popover>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./popover.scss\" />\n"],"names":["_sfc_main$2","defineComponent","BentoTypography","props","isStrongest","computed","titleVariant","BentoTypographyVariant","_component_bento_typography","resolveComponent","openBlock","createBlock","_ctx","_sfc_main$1","BentoButton","CrossIcon","_component_bento_button","normalizeClass","_cache","$event","BentoPopoverPositions","PopperContainerPosition","POPOVER_OFFSET_INJECTION_KEY","__default__","DEFAULT_OFFSET","slots","useSlots","attrs","useAttrs","computedAttributes","_a","offset","inject","ariaLabelAttribute","ref","ariaLabel","title","toRefs","computedAriaLabel","useAriaLabel","conditionalClasses","contentConditionalClasses","dismissPopover","emit","hasSlot","useHasSlot"],"mappings":";;;;;;;;;;AAUI,MAAAA,KAAAC,EAAA;AAAA,EAA+B,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACG,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,cAAA,EAAA,MAAA,SAAA,SAAA,GAAA;AAAA;AAAA;AAAA;AAAA,IAI2C,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKT;AAAA,EACzC,MAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,MAAA,CAAAF,EAAA,YAAA,GAGAG,IAAAD;AAAA,MAAqB,MAAAF,EAAA,eAAAI,EAAA,WAAAA,EAAA;AAAA,IAC6D;AAGlF,WAAA;AAAA;AAAA,MAAO,aAAAH;AAAA,MAEH,cAAAE;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;AAnCmB,QAAAE,IAAAC,EAAA,kBAAA;AAFyB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A,IAAAC,EAAAlC,CAAA,GACAmC,IAAAC,EAAA;AAAA,MAAuC,WAAAN,EAAA;AAAA;AAAA,MACL,OAAAE;AAAA,MAEvB,iBAAAC;AAAA,IACU,CAAA,GAGrBI,IAAAnC,EAAA,OAAA;AAAA,MAA2C,oBAAAF,EAAA,SAAA,CAAAA,EAAA;AAAA,MACG,2BAAA,CAAA,CAAAA,EAAA;AAAA,MACP,oBAAAA,EAAA,SAAA,CAAAA,EAAA;AAAA,MACO,0BAAAA,EAAA;AAAA,MACV,4BAAAA,EAAA;AAAA,IACE,EAAA,GAGtCsC,IAAApC,EAAA,OAAA;AAAA,MAAkD,kCAAA,CAAA,CAAAF,EAAA;AAAA,IACJ,EAAA,GAG9CuC,IAAA,MAAAC,EAAA,SAAA,GAEAC,IAAAC,EAAApB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as Fe, reactive as ie, ref as A, computed as M, onMounted as ze, resolveComponent as y, openBlock as I, createElementBlock as le, createElementVNode as P, createBlock as O, createCommentVNode as k, renderSlot as Re, createVNode as G, withCtx as U, createTextVNode as q, normalizeClass as de, toRef as Te, watch as Je, resolveDirective as Qe, withDirectives as Xe, withKeys as Ze, toDisplayString as xe } from "vue";
2
- import { a as ea } from "./index.98174339.js";
3
- import { B as Pe } from "./index.75f3672e.js";
2
+ import { a as ea } from "./index.a875e4b3.js";
3
+ import { B as Pe } from "./index.10c545e2.js";
4
+ import { c as aa } from "./dropdown-default-textbox.839fe6f7.js";
4
5
  import { g as Q } from "./unique-id.a2a2b458.js";
5
6
  import { u as ue } from "./i18n.6c402773.js";
6
- import { t as me, f as j } from "./index.0ee895e0.js";
7
- import { D as w, f as ye, v as aa } from "./date-input.9186a0bf.js";
7
+ import { t as me, f as j } from "./index.934e5485.js";
8
+ import { D as w, f as ye, v as ta } from "./date-input.9186a0bf.js";
8
9
  import { r as ne, t as X, e as h, d as ce, f as De } from "./index.f55fdc32.js";
9
- import { u as ta } from "./use-form-layout-loading.d03e5d48.js";
10
- import { B as na } from "./directive.0408e565.js";
11
- import { BentoInputField as ra } from "../input-field.js";
12
- import { B as oa } from "./dropdown.63de9aac.js";
13
- import { BentoSegmentedControl as sa } from "../segmented-control.js";
10
+ import { u as na } from "./use-form-layout-loading.d03e5d48.js";
11
+ import { B as ra } from "./directive.0408e565.js";
12
+ import { BentoInputField as oa } from "../input-field.js";
13
+ import { B as sa } from "./dropdown.014ae3e3.js";
14
+ import { BentoSegmentedControl as ia } from "../segmented-control.js";
14
15
  import { d as ee } from "./debounce.b5ef6acf.js";
15
- import { u as ia } from "./use-has-slot.4d98bf29.js";
16
- import { s as la, c as ke, i as ae, e as Se, d as Ee, f as oe, g as da, C as V, u as ua } from "./calendar.fa7712e8.js";
16
+ import { u as la } from "./use-has-slot.4d98bf29.js";
17
+ import { s as da, c as ke, i as ae, e as Se, d as Ee, f as oe, g as ua, C as V, u as ma } from "./calendar.b3c15dcd.js";
17
18
  import { e as te } from "./index.fdf12170.js";
18
- import { e as ma } from "./index.d80206ed.js";
19
+ import { e as ca } from "./index.d80206ed.js";
19
20
  import { _ as Ue } from "./_plugin-vue_export-helper.dad06003.js";
20
- import { c as ca } from "./dropdown-default-textbox.4108b289.js";
21
- import { E as Da, F as fa } from "./field-label.3c19a29a.js";
22
- import "../assets/index16.css";
21
+ import { E as Da, F as fa } from "./field-label.085966f6.js";
22
+ import "../assets/index13.css";
23
23
  function _e(e, t) {
24
24
  ne(2, arguments);
25
25
  var s = X(e), u = X(t);
@@ -45,7 +45,7 @@ const Ia = ({
45
45
  min: t,
46
46
  max: s
47
47
  }) => ({ getGranularCalendarLimits: (i) => {
48
- let l = la(t), r = te(s);
48
+ let l = da(t), r = te(s);
49
49
  if ((i == null ? void 0 : i.type) === "weekly") {
50
50
  if (i.earliest)
51
51
  l = i.earliest;
@@ -65,12 +65,12 @@ const Ia = ({
65
65
  l = i.earliest;
66
66
  else {
67
67
  const d = oe(l);
68
- ae(l, d) || (l = oe(da(l, 1)));
68
+ ae(l, d) || (l = oe(ua(l, 1)));
69
69
  }
70
70
  if (i.latest)
71
71
  r = i.latest;
72
72
  else {
73
- const d = ma(r);
73
+ const d = ca(r);
74
74
  ae(r, d) || (r = Ee(oe(r), 1));
75
75
  }
76
76
  }
@@ -106,9 +106,9 @@ const ba = /[\d]/, Ra = /^\d{2}$/, Ta = /^\d{2}:\d{2}$/, ya = (e) => {
106
106
  i18n: { messages: Oe },
107
107
  name: "date-range-picker-calendar",
108
108
  components: {
109
- BentoDropdown: oa,
110
- BentoInputField: ra,
111
- BentoSegmentedControl: sa,
109
+ BentoDropdown: sa,
110
+ BentoInputField: oa,
111
+ BentoSegmentedControl: ia,
112
112
  BentoTypography: Pe,
113
113
  Calendar: V
114
114
  },
@@ -213,7 +213,7 @@ const ba = /[\d]/, Ra = /^\d{2}$/, Ta = /^\d{2}:\d{2}$/, ya = (e) => {
213
213
  adjustEndDateInputForWeekly: E,
214
214
  adjustStartDateInputForMonthly: N,
215
215
  adjustEndDateInputForMonthly: R
216
- } = ua(e.firstDayOfWeek, e.min, e.max), $ = () => {
216
+ } = ma(e.firstDayOfWeek, e.min, e.max), $ = () => {
217
217
  e != null && e.quickSelectRanges && (d.value = se);
218
218
  }, S = (a) => a ? j(a, w.NUMERIC_DATE_YEAR_FIRST, {
219
219
  locale: l[u.value.substring(0, 2)] || h
@@ -302,7 +302,7 @@ const ba = /[\d]/, Ra = /^\d{2}$/, Ta = /^\d{2}:\d{2}$/, ya = (e) => {
302
302
  }, we), Le = (a) => {
303
303
  $(), o.endDate = ye(a), Be(o.endDate);
304
304
  }, Ye = (a) => {
305
- aa(a);
305
+ ta(a);
306
306
  }, Ke = ee((a) => {
307
307
  if (Z(a)) {
308
308
  Y.value = !1, r.startDate = m(r.startDate, a);
@@ -360,7 +360,7 @@ const ba = /[\d]/, Ra = /^\d{2}$/, Ta = /^\d{2}:\d{2}$/, ya = (e) => {
360
360
  quickSelectRangeDefaultItems: v,
361
361
  formInputWrapperConditionalClasses: b,
362
362
  // Methods
363
- hasSlot: ia(s),
363
+ hasSlot: la(s),
364
364
  t: i,
365
365
  // Events
366
366
  onDateInput: fe,
@@ -556,11 +556,11 @@ const Ce = {
556
556
  BentoTypography: Pe,
557
557
  BentoPopover: ea,
558
558
  DateRangePickerCalendar: _,
559
- DropdownInputDefault: ca,
559
+ DropdownInputDefault: aa,
560
560
  ErrorMessage: Da,
561
561
  FieldLabel: fa
562
562
  },
563
- directives: { BentoClickOutsideDirective: na },
563
+ directives: { BentoClickOutsideDirective: ra },
564
564
  props: {
565
565
  /**
566
566
  * Allows user to enter time values in the form
@@ -647,7 +647,7 @@ const Ce = {
647
647
  setup(e, { emit: t }) {
648
648
  const { locale: s, t: u } = ue({ messages: Ce }), i = { de: ce, enUS: h, fr: De }, l = Q("bento-date-range-picker-container"), r = Q("bento-date-range-picker-label"), d = Q("bento-date-range-picker-description"), b = Q("bento-date-range-picker-error"), v = Q("bento-date-range-picker-date-error"), p = M(
649
649
  () => e.label || u("dateRangePicker", { name: l })
650
- ), c = A(!1), C = A(null), g = A(!1), { isReadOnly: W } = ta(Te(e, "readonly"));
650
+ ), c = A(!1), C = A(null), g = A(!1), { isReadOnly: W } = na(Te(e, "readonly"));
651
651
  Je(
652
652
  () => e.disabled,
653
653
  () => {
@@ -814,4 +814,4 @@ export {
814
814
  H as a,
815
815
  _e as i
816
816
  };
817
- //# sourceMappingURL=index.c6fecf1c.js.map
817
+ //# sourceMappingURL=index.fd70b861.js.map