@adyen/bento-vue3 2.1.1 → 2.2.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 (258) hide show
  1. package/dist/@types/bento-translation-keys.generated.d.ts +10 -0
  2. package/dist/@types/index.d.ts +67 -10
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/alert.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/card.css +1 -1
  14. package/dist/assets/checkbox-input.css +1 -1
  15. package/dist/assets/dashboard-section.css +1 -1
  16. package/dist/assets/data-grid.css +1 -1
  17. package/dist/assets/date-filter.css +1 -0
  18. package/dist/assets/date-range-filter.css +1 -0
  19. package/dist/assets/dialog-page.css +1 -1
  20. package/dist/assets/draggable-handle.css +1 -1
  21. package/dist/assets/dropdown.css +1 -1
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/filter-bar.css +1 -1
  24. package/dist/assets/fixed-scroller.css +1 -1
  25. package/dist/assets/form-layout-title.css +1 -1
  26. package/dist/assets/grid-layout.css +1 -1
  27. package/dist/assets/input-field.css +1 -1
  28. package/dist/assets/input-with-dropdown-filter.css +1 -0
  29. package/dist/assets/inspector.css +1 -1
  30. package/dist/assets/modal-fullscreen.css +1 -1
  31. package/dist/assets/navigation-menu-group.css +1 -1
  32. package/dist/assets/pagination.css +1 -1
  33. package/dist/assets/secondary-nav.css +1 -1
  34. package/dist/assets/sidepanel.css +1 -1
  35. package/dist/assets/table-of-contents.css +1 -1
  36. package/dist/assets/textarea.css +1 -1
  37. package/dist/assets/timeline-item.css +1 -1
  38. package/dist/assets/toggle.css +1 -1
  39. package/dist/button.js +1 -1
  40. package/dist/card.js +1 -1
  41. package/dist/checkbox.js +2 -2
  42. package/dist/chunks/{action-bar.C6XFuiE0.js → action-bar.BIidNGlt.js} +3 -3
  43. package/dist/chunks/{action-bar.C6XFuiE0.js.map → action-bar.BIidNGlt.js.map} +1 -1
  44. package/dist/chunks/{ai-tag.BLDTP7fs.js → ai-tag.B1YHMfAh.js} +2 -2
  45. package/dist/chunks/{ai-tag.BLDTP7fs.js.map → ai-tag.B1YHMfAh.js.map} +1 -1
  46. package/dist/chunks/{alert.BYmn1ewo.js → alert.PGzfyHZI.js} +80 -98
  47. package/dist/chunks/alert.PGzfyHZI.js.map +1 -0
  48. package/dist/chunks/{anchor-scroller.B35-JMuH.js → anchor-scroller.CSOg3htL.js} +2 -2
  49. package/dist/chunks/{anchor-scroller.B35-JMuH.js.map → anchor-scroller.CSOg3htL.js.map} +1 -1
  50. package/dist/chunks/{base-modal.CulokESn.js → base-modal.A52tojyk.js} +5 -5
  51. package/dist/chunks/{base-modal.CulokESn.js.map → base-modal.A52tojyk.js.map} +1 -1
  52. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js → button-actions-with-menu.DkPSfKO9.js} +2 -2
  53. package/dist/chunks/{button-actions-with-menu.BsCmJeKU.js.map → button-actions-with-menu.DkPSfKO9.js.map} +1 -1
  54. package/dist/chunks/{button-actions.DvuGEQxM.js → button-actions.BYoctIth.js} +2 -2
  55. package/dist/chunks/button-actions.BYoctIth.js.map +1 -0
  56. package/dist/chunks/{calendar.CycKx_P3.js → calendar.BhoyTBN1.js} +18 -18
  57. package/dist/chunks/{calendar.CycKx_P3.js.map → calendar.BhoyTBN1.js.map} +1 -1
  58. package/dist/chunks/{card.OErI_R47.js → card.DL3-xIH9.js} +3 -3
  59. package/dist/chunks/{card.OErI_R47.js.map → card.DL3-xIH9.js.map} +1 -1
  60. package/dist/chunks/{checkbox-group.Bcy98dh8.js → checkbox-group.993HE54c.js} +3 -3
  61. package/dist/chunks/{checkbox-group.Bcy98dh8.js.map → checkbox-group.993HE54c.js.map} +1 -1
  62. package/dist/chunks/{checkbox.BN7ttBqd.js → checkbox.DpT4DfSl.js} +14 -14
  63. package/dist/chunks/{checkbox.BN7ttBqd.js.map → checkbox.DpT4DfSl.js.map} +1 -1
  64. package/dist/chunks/{code-snippet.3u22Ij2R.js → code-snippet.8XinCILe.js} +4 -4
  65. package/dist/chunks/{code-snippet.3u22Ij2R.js.map → code-snippet.8XinCILe.js.map} +1 -1
  66. package/dist/chunks/{controls-group.CC3yZiTT.js → controls-group.BcbFbqr-.js} +2 -2
  67. package/dist/chunks/{controls-group.CC3yZiTT.js.map → controls-group.BcbFbqr-.js.map} +1 -1
  68. package/dist/chunks/{copy.YBeE8V9S.js → copy.DrHbwkFX.js} +3 -3
  69. package/dist/chunks/{copy.YBeE8V9S.js.map → copy.DrHbwkFX.js.map} +1 -1
  70. package/dist/chunks/{dashboard-section.CjC3fVU6.js → dashboard-section.CVDLs9xL.js} +4 -4
  71. package/dist/chunks/dashboard-section.CVDLs9xL.js.map +1 -0
  72. package/dist/chunks/{dashed-underline.DAtZOaad.js → dashed-underline.BH4vfrBh.js} +3 -3
  73. package/dist/chunks/{dashed-underline.DAtZOaad.js.map → dashed-underline.BH4vfrBh.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.bPjGSga2.js → data-grid-template.5keqokzt.js} +4 -4
  75. package/dist/chunks/{data-grid-template.bPjGSga2.js.map → data-grid-template.5keqokzt.js.map} +1 -1
  76. package/dist/chunks/{data-grid.DYNep9mz.js → data-grid.DP4VPyjR.js} +20 -20
  77. package/dist/chunks/{data-grid.DYNep9mz.js.map → data-grid.DP4VPyjR.js.map} +1 -1
  78. package/dist/chunks/date-filter.EysjbedJ.js +156 -0
  79. package/dist/chunks/date-filter.EysjbedJ.js.map +1 -0
  80. package/dist/chunks/{date-picker.DjLNf7fF.js → date-picker.CQ3eoDIo.js} +10 -10
  81. package/dist/chunks/{date-picker.DjLNf7fF.js.map → date-picker.CQ3eoDIo.js.map} +1 -1
  82. package/dist/chunks/date-range-filter.DwNzkqTo.js +949 -0
  83. package/dist/chunks/date-range-filter.DwNzkqTo.js.map +1 -0
  84. package/dist/chunks/{date-range-picker.CI5hBzgs.js → date-range-picker.BYGk8uh-.js} +60 -60
  85. package/dist/chunks/{date-range-picker.CI5hBzgs.js.map → date-range-picker.BYGk8uh-.js.map} +1 -1
  86. package/dist/chunks/{draggable-handle.CKkSJP0K.js → draggable-handle.D6rFbf1V.js} +2 -2
  87. package/dist/chunks/{draggable-handle.CKkSJP0K.js.map → draggable-handle.D6rFbf1V.js.map} +1 -1
  88. package/dist/chunks/{draggable.jzTSFcM7.js → draggable.DH-Wc8GI.js} +2 -2
  89. package/dist/chunks/{draggable.jzTSFcM7.js.map → draggable.DH-Wc8GI.js.map} +1 -1
  90. package/dist/chunks/{dropdown-tag.GOcJPx20.js → dropdown-tag.DQ_BcUK7.js} +3 -3
  91. package/dist/chunks/{dropdown-tag.GOcJPx20.js.map → dropdown-tag.DQ_BcUK7.js.map} +1 -1
  92. package/dist/chunks/{dropdown.BvrZG8Za.js → dropdown.BJ0cJ9Ea.js} +1471 -1384
  93. package/dist/chunks/dropdown.BJ0cJ9Ea.js.map +1 -0
  94. package/dist/chunks/{empty-state.BuK12EGe.js → empty-state.CECdMida.js} +2 -2
  95. package/dist/chunks/{empty-state.BuK12EGe.js.map → empty-state.CECdMida.js.map} +1 -1
  96. package/dist/chunks/{field-label.vrUwhoOg.js → field-label.Dm9I8IDI.js} +2 -2
  97. package/dist/chunks/{field-label.vrUwhoOg.js.map → field-label.Dm9I8IDI.js.map} +1 -1
  98. package/dist/chunks/{file-uploader.Cv8sm0Jd.js → file-uploader.B8c3MlBD.js} +7 -6
  99. package/dist/chunks/{file-uploader.Cv8sm0Jd.js.map → file-uploader.B8c3MlBD.js.map} +1 -1
  100. package/dist/chunks/filter-bar.BPPxuT_w.js +2552 -0
  101. package/dist/chunks/filter-bar.BPPxuT_w.js.map +1 -0
  102. package/dist/chunks/{fixed-scroller.C0nVzRBU.js → fixed-scroller.nECGGyOp.js} +15 -15
  103. package/dist/chunks/{fixed-scroller.C0nVzRBU.js.map → fixed-scroller.nECGGyOp.js.map} +1 -1
  104. package/dist/chunks/{focus-trap.Co-S6goa.js → focus-trap.BgyHTR_3.js} +1 -2
  105. package/dist/chunks/{focus-trap.Co-S6goa.js.map → focus-trap.BgyHTR_3.js.map} +1 -1
  106. package/dist/chunks/{footer-actions.BJif4sIk.js → footer-actions.B2dxp-b_.js} +2 -2
  107. package/dist/chunks/{footer-actions.BJif4sIk.js.map → footer-actions.B2dxp-b_.js.map} +1 -1
  108. package/dist/chunks/{form-layout-title.C7f1ByNh.js → form-layout-title.h-7dMAq7.js} +2 -2
  109. package/dist/chunks/{form-layout-title.C7f1ByNh.js.map → form-layout-title.h-7dMAq7.js.map} +1 -1
  110. package/dist/chunks/grid-layout.BuhsC4WZ.js +115 -0
  111. package/dist/chunks/grid-layout.BuhsC4WZ.js.map +1 -0
  112. package/dist/chunks/{header-with-views.LJ3oCsMN.js → header-with-views.Bux_-bM4.js} +308 -308
  113. package/dist/chunks/{header-with-views.LJ3oCsMN.js.map → header-with-views.Bux_-bM4.js.map} +1 -1
  114. package/dist/chunks/{header.E-KFjIG7.js → header.BEnZbxIA.js} +4 -4
  115. package/dist/chunks/{header.E-KFjIG7.js.map → header.BEnZbxIA.js.map} +1 -1
  116. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js → info-icon-with-popover.BRl6sC0B.js} +3 -3
  117. package/dist/chunks/{info-icon-with-popover.DqnQnwMI.js.map → info-icon-with-popover.BRl6sC0B.js.map} +1 -1
  118. package/dist/chunks/{info-icon.D_zu5SYT.js → info-icon.CcM7z-CY.js} +3 -3
  119. package/dist/chunks/{info-icon.D_zu5SYT.js.map → info-icon.CcM7z-CY.js.map} +1 -1
  120. package/dist/chunks/{input-field-password.CFBPscot.js → input-field-password.0W7vePC4.js} +4 -4
  121. package/dist/chunks/{input-field-password.CFBPscot.js.map → input-field-password.0W7vePC4.js.map} +1 -1
  122. package/dist/chunks/{input-field-phone-number.BNAKRBLr.js → input-field-phone-number.RblgK9OP.js} +2 -2
  123. package/dist/chunks/{input-field-phone-number.BNAKRBLr.js.map → input-field-phone-number.RblgK9OP.js.map} +1 -1
  124. package/dist/chunks/{input-field.BBSr4o-k.js → input-field.B-Nta-en.js} +3 -3
  125. package/dist/chunks/{input-field.BBSr4o-k.js.map → input-field.B-Nta-en.js.map} +1 -1
  126. package/dist/chunks/{input-time.Cdz9Jb-1.js → input-time.CMKTGRcV.js} +3 -3
  127. package/dist/chunks/{input-time.Cdz9Jb-1.js.map → input-time.CMKTGRcV.js.map} +1 -1
  128. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js +100 -0
  129. package/dist/chunks/input-with-dropdown-filter.DXnJOBf6.js.map +1 -0
  130. package/dist/chunks/{inspector-page.DNsc0lK1.js → inspector-page.Bd39LxR2.js} +2 -2
  131. package/dist/chunks/{inspector-page.DNsc0lK1.js.map → inspector-page.Bd39LxR2.js.map} +1 -1
  132. package/dist/chunks/{inspector.BLAqbhmV.js → inspector.SmoWfjqp.js} +2 -2
  133. package/dist/chunks/{inspector.BLAqbhmV.js.map → inspector.SmoWfjqp.js.map} +1 -1
  134. package/dist/chunks/{list-item.RuGQ8Y4T.js → list-item.CoDag_QY.js} +3 -3
  135. package/dist/chunks/{list-item.RuGQ8Y4T.js.map → list-item.CoDag_QY.js.map} +1 -1
  136. package/dist/chunks/{listbox-option-tag.71rmQvG8.js → listbox-option-tag.Bhyu9LpW.js} +2 -2
  137. package/dist/chunks/{listbox-option-tag.71rmQvG8.js.map → listbox-option-tag.Bhyu9LpW.js.map} +1 -1
  138. package/dist/chunks/{modal-fullscreen.jXJnaueu.js → modal-fullscreen.D-ws4648.js} +3 -3
  139. package/dist/chunks/{modal-fullscreen.jXJnaueu.js.map → modal-fullscreen.D-ws4648.js.map} +1 -1
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js} +4 -4
  141. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BwmYlzFm.js.map → modal.vue_vue_type_script_setup_true_lang.DkjMGIP8.js.map} +1 -1
  142. package/dist/chunks/{navigation-menu-group.BnS0isK8.js → navigation-menu-group.BlkhBGX3.js} +2 -2
  143. package/dist/chunks/{navigation-menu-group.BnS0isK8.js.map → navigation-menu-group.BlkhBGX3.js.map} +1 -1
  144. package/dist/chunks/{pagination.DbGaudSO.js → pagination.CyqfmV_-.js} +4 -4
  145. package/dist/chunks/{pagination.DbGaudSO.js.map → pagination.CyqfmV_-.js.map} +1 -1
  146. package/dist/chunks/popover.types.CXIAfp1m.js +6 -0
  147. package/dist/chunks/{popover.types.dhllh3NP.js.map → popover.types.CXIAfp1m.js.map} +1 -1
  148. package/dist/chunks/{popper-container.Rfj8UdMD.js → popper-container.lfk_dyZi.js} +2 -2
  149. package/dist/chunks/{popper-container.Rfj8UdMD.js.map → popper-container.lfk_dyZi.js.map} +1 -1
  150. package/dist/chunks/promo-banner.3d1DHWas.js.map +1 -1
  151. package/dist/chunks/{radio-group.BTI_2U11.js → radio-group.DGwM-ijw.js} +3 -3
  152. package/dist/chunks/{radio-group.BTI_2U11.js.map → radio-group.DGwM-ijw.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.CjbYg6ee.js → rich-text-editor.7qlWY3xz.js} +5 -5
  154. package/dist/chunks/{rich-text-editor.CjbYg6ee.js.map → rich-text-editor.7qlWY3xz.js.map} +1 -1
  155. package/dist/chunks/{search-bar.D8LwiALL.js → search-bar.BRMyMzkF.js} +3 -3
  156. package/dist/chunks/{search-bar.D8LwiALL.js.map → search-bar.BRMyMzkF.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.CWZFULKD.js → secondary-nav.BbBhe7QI.js} +3 -3
  158. package/dist/chunks/{secondary-nav.CWZFULKD.js.map → secondary-nav.BbBhe7QI.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.CarI0i3p.js → segmented-control.BTILFbBW.js} +2 -2
  160. package/dist/chunks/{segmented-control.CarI0i3p.js.map → segmented-control.BTILFbBW.js.map} +1 -1
  161. package/dist/chunks/select-avatar-filter.DdOdBb0C.js +55 -0
  162. package/dist/chunks/select-avatar-filter.DdOdBb0C.js.map +1 -0
  163. package/dist/chunks/select-country-filter.D-zpTtKe.js +56 -0
  164. package/dist/chunks/select-country-filter.D-zpTtKe.js.map +1 -0
  165. package/dist/chunks/select-currency-filter.BitX4BCE.js +91 -0
  166. package/dist/chunks/select-currency-filter.BitX4BCE.js.map +1 -0
  167. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js +55 -0
  168. package/dist/chunks/select-payment-method-filter.BiZuCZOa.js.map +1 -0
  169. package/dist/chunks/select-tag-filter.BUIIqK0l.js +63 -0
  170. package/dist/chunks/select-tag-filter.BUIIqK0l.js.map +1 -0
  171. package/dist/chunks/{selection-card-group.Covrf9mH.js → selection-card-group.mCAfzxrB.js} +11 -11
  172. package/dist/chunks/{selection-card-group.Covrf9mH.js.map → selection-card-group.mCAfzxrB.js.map} +1 -1
  173. package/dist/chunks/{sidepanel.CYWPV9dE.js → sidepanel.amz6_quV.js} +12 -12
  174. package/dist/chunks/sidepanel.amz6_quV.js.map +1 -0
  175. package/dist/chunks/{structured-list-item.C6SAUS9a.js → structured-list-item.Br6cAwZk.js} +4 -4
  176. package/dist/chunks/{structured-list-item.C6SAUS9a.js.map → structured-list-item.Br6cAwZk.js.map} +1 -1
  177. package/dist/chunks/{summary-grid.types.FTWeUNFh.js → summary-grid.types.DUEiCht4.js} +6 -6
  178. package/dist/chunks/{summary-grid.types.FTWeUNFh.js.map → summary-grid.types.DUEiCht4.js.map} +1 -1
  179. package/dist/chunks/{tab.CwXAsp9E.js → tab.Df1c3HPX.js} +3 -3
  180. package/dist/chunks/{tab.CwXAsp9E.js.map → tab.Df1c3HPX.js.map} +1 -1
  181. package/dist/chunks/{tag.BYxa556o.js → tag.Cg3joxK_.js} +2 -2
  182. package/dist/chunks/{tag.BYxa556o.js.map → tag.Cg3joxK_.js.map} +1 -1
  183. package/dist/chunks/{textarea.D4aMdmDx.js → textarea.ClWTwdJT.js} +2 -2
  184. package/dist/chunks/{textarea.D4aMdmDx.js.map → textarea.ClWTwdJT.js.map} +1 -1
  185. package/dist/chunks/{timeline-item.De8HCoYw.js → timeline-item.CdOFw-Jn.js} +144 -132
  186. package/dist/chunks/timeline-item.CdOFw-Jn.js.map +1 -0
  187. package/dist/chunks/{title-details.8cyCeaLf.js → title-details.Ccs_ltkI.js} +2 -2
  188. package/dist/chunks/{title-details.8cyCeaLf.js.map → title-details.Ccs_ltkI.js.map} +1 -1
  189. package/dist/chunks/{tooltip.0QqJo2sa.js → tooltip.B8LTTssT.js} +3 -3
  190. package/dist/chunks/{tooltip.0QqJo2sa.js.map → tooltip.B8LTTssT.js.map} +1 -1
  191. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js} +4 -4
  192. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.Dn4toWHY.js.map → tutorial.vue_vue_type_script_setup_true_lang.CpzGxsmy.js.map} +1 -1
  193. package/dist/chunks/typography.B6elnWpr.js.map +1 -1
  194. package/dist/chunks/{use-date-input-formatter.deZ3kB0L.js → use-date-input-formatter.COZBxMaZ.js} +2 -2
  195. package/dist/chunks/{use-date-input-formatter.deZ3kB0L.js.map → use-date-input-formatter.COZBxMaZ.js.map} +1 -1
  196. package/dist/chunks/warning-filled.Bzh3ib0x.js +25 -0
  197. package/dist/chunks/warning-filled.Bzh3ib0x.js.map +1 -0
  198. package/dist/code-snippet.js +1 -1
  199. package/dist/dashboard-template.js +1 -1
  200. package/dist/dashed-underline.js +1 -1
  201. package/dist/data-grid-template.js +1 -1
  202. package/dist/data-grid.js +1 -1
  203. package/dist/date-picker.js +2 -2
  204. package/dist/date-range-picker.js +2 -2
  205. package/dist/date-time-picker.js +4 -4
  206. package/dist/draggable.js +2 -2
  207. package/dist/dropdown.js +2 -2
  208. package/dist/empty-state.js +1 -1
  209. package/dist/file-uploader.js +1 -1
  210. package/dist/filter-bar.js +1 -1
  211. package/dist/focus-trap.js +1 -1
  212. package/dist/form-layout.js +1 -1
  213. package/dist/header-with-views.js +1 -1
  214. package/dist/header.js +1 -1
  215. package/dist/index.js +257 -257
  216. package/dist/info-icon.js +1 -1
  217. package/dist/input-field-password.js +1 -1
  218. package/dist/input-field-phone-number.js +1 -1
  219. package/dist/input-field.js +1 -1
  220. package/dist/input-time.js +1 -1
  221. package/dist/inspector.js +2 -2
  222. package/dist/internal.js +13 -13
  223. package/dist/list.js +1 -1
  224. package/dist/menu.js +1 -1
  225. package/dist/modal-fullscreen.js +1 -1
  226. package/dist/modal.js +2 -2
  227. package/dist/navigation-menu.js +1 -1
  228. package/dist/pagination.js +1 -1
  229. package/dist/popover.js +2 -2
  230. package/dist/popper-container.js +1 -1
  231. package/dist/progress-bar.js +1 -1
  232. package/dist/radio-group.js +1 -1
  233. package/dist/rich-text-editor.js +1 -1
  234. package/dist/search-bar.js +2 -2
  235. package/dist/secondary-nav.js +1 -1
  236. package/dist/segmented-control.js +1 -1
  237. package/dist/selection-card.js +1 -1
  238. package/dist/sidepanel.js +1 -1
  239. package/dist/structured-list.js +1 -1
  240. package/dist/summary-grid.js +1 -1
  241. package/dist/tabs.js +1 -1
  242. package/dist/tag.js +1 -1
  243. package/dist/textarea.js +1 -1
  244. package/dist/timeline.js +1 -1
  245. package/dist/tutorial.js +1 -1
  246. package/dist/web-types.json +1 -1
  247. package/package.json +4 -4
  248. package/dist/chunks/alert.BYmn1ewo.js.map +0 -1
  249. package/dist/chunks/button-actions.DvuGEQxM.js.map +0 -1
  250. package/dist/chunks/dashboard-section.CjC3fVU6.js.map +0 -1
  251. package/dist/chunks/dropdown.BvrZG8Za.js.map +0 -1
  252. package/dist/chunks/filter-bar.DrOXGxUc.js +0 -3974
  253. package/dist/chunks/filter-bar.DrOXGxUc.js.map +0 -1
  254. package/dist/chunks/grid-layout.CCWNscU_.js +0 -113
  255. package/dist/chunks/grid-layout.CCWNscU_.js.map +0 -1
  256. package/dist/chunks/popover.types.dhllh3NP.js +0 -6
  257. package/dist/chunks/sidepanel.CYWPV9dE.js.map +0 -1
  258. package/dist/chunks/timeline-item.De8HCoYw.js.map +0 -1
@@ -9,7 +9,7 @@ const G = 1, O = 40, X = ({
9
9
  contentRef: s,
10
10
  containerRef: n,
11
11
  leftButtonRef: u,
12
- rightButtonRef: f
12
+ rightButtonRef: d
13
13
  }) => {
14
14
  const r = a(0), l = a(0), c = a(0), o = a(0);
15
15
  $(() => {
@@ -20,14 +20,14 @@ const G = 1, O = 40, X = ({
20
20
  });
21
21
  });
22
22
  const m = i(() => {
23
- const t = u.value?.scrollWidth ? u.value.scrollWidth + O : 0, b = f.value?.scrollWidth ? f.value.scrollWidth + O : 0;
23
+ const t = u.value?.scrollWidth ? u.value.scrollWidth + O : 0, b = d.value?.scrollWidth ? d.value.scrollWidth + O : 0;
24
24
  return t + b;
25
- }), d = i(() => Math.ceil(c.value / o.value) ?? 0), _ = i(() => {
26
- const t = new Array(d.value).fill(0);
25
+ }), f = i(() => Math.ceil(c.value / o.value) ?? 0), _ = i(() => {
26
+ const t = new Array(f.value).fill(0);
27
27
  return t.forEach((b, S) => {
28
28
  if (S === 0)
29
29
  return;
30
- if (S === d.value - 1) {
30
+ if (S === f.value - 1) {
31
31
  t[t.length - 1] = -(c.value - o.value + G);
32
32
  return;
33
33
  }
@@ -54,7 +54,7 @@ const G = 1, O = 40, X = ({
54
54
  v.value = 0;
55
55
  return;
56
56
  }
57
- await B(), v.value = f.value?.offsetWidth ?? 0;
57
+ await B(), v.value = d.value?.offsetWidth ?? 0;
58
58
  },
59
59
  { immediate: !0 }
60
60
  );
@@ -72,7 +72,7 @@ const G = 1, O = 40, X = ({
72
72
  l.value !== 0 && (l.value -= 1, r.value = _.value[l.value]);
73
73
  },
74
74
  scrollRight: () => {
75
- l.value !== d.value - 1 && (l.value += 1, r.value = _.value[l.value]);
75
+ l.value !== f.value - 1 && (l.value += 1, r.value = _.value[l.value]);
76
76
  }
77
77
  };
78
78
  }, N = {
@@ -102,14 +102,14 @@ const G = 1, O = 40, X = ({
102
102
  */
103
103
  extraPaddingTop: { type: Number, default: 0 },
104
104
  /**
105
- * Padding to be applied to the top of the scroller container
105
+ * Vertically centers the scroll buttons in the container instead of spacing them from its top and bottom edges
106
106
  */
107
107
  centered: { type: Boolean, default: !1 }
108
108
  },
109
109
  setup(s) {
110
- const { t: n } = q({ messages: N }), u = a(null), f = a(null), r = a(null), l = a(null), c = s, { offset: o, shouldShowLeftButton: m, shouldShowRightButton: d, maskStyle: _, scrollLeft: p, scrollRight: g } = X({
110
+ const { t: n } = q({ messages: N }), u = a(null), d = a(null), r = a(null), l = a(null), c = s, { offset: o, shouldShowLeftButton: m, shouldShowRightButton: f, maskStyle: _, scrollLeft: p, scrollRight: g } = X({
111
111
  contentRef: u,
112
- containerRef: f,
112
+ containerRef: d,
113
113
  leftButtonRef: r,
114
114
  rightButtonRef: l
115
115
  }), h = i(() => ({
@@ -117,7 +117,7 @@ const G = 1, O = 40, X = ({
117
117
  }));
118
118
  return (v, L) => (x(), y("div", {
119
119
  ref_key: "fixedScrollerRef",
120
- ref: f,
120
+ ref: d,
121
121
  class: "b-fixed-scroller"
122
122
  }, [
123
123
  W("div", {
@@ -130,7 +130,7 @@ const G = 1, O = 40, X = ({
130
130
  class: "b-fixed-scroller__content",
131
131
  style: z({
132
132
  transform: `translateX(${e(o)}px)`,
133
- paddingTop: e(m) || e(d) ? `${s.extraPaddingTop}px` : null
133
+ paddingTop: e(m) || e(f) ? `${s.extraPaddingTop}px` : null
134
134
  })
135
135
  }, [
136
136
  I(v.$slots, "default", {}, void 0, !0)
@@ -157,7 +157,7 @@ const G = 1, O = 40, X = ({
157
157
  _: 1
158
158
  }, 8, ["aria-label", "condensed", "onClick"])
159
159
  ], 2)) : F("", !0),
160
- e(d) ? (x(), y("div", {
160
+ e(f) ? (x(), y("div", {
161
161
  key: 1,
162
162
  ref_key: "rightButtonRef",
163
163
  ref: l,
@@ -180,8 +180,8 @@ const G = 1, O = 40, X = ({
180
180
  ], 2)) : F("", !0)
181
181
  ], 512));
182
182
  }
183
- }), te = /* @__PURE__ */ A(J, [["__scopeId", "data-v-e83913f6"]]);
183
+ }), te = /* @__PURE__ */ A(J, [["__scopeId", "data-v-ce46c99a"]]);
184
184
  export {
185
185
  te as F
186
186
  };
187
- //# sourceMappingURL=fixed-scroller.C0nVzRBU.js.map
187
+ //# sourceMappingURL=fixed-scroller.nECGGyOp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fixed-scroller.C0nVzRBU.js","sources":["../../../vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.ts","../../../vue2/src/components/internal/fixed-scroller/fixed-scroller.vue"],"sourcesContent":["import { observeSizeOfElement } from '@/utils/ts/resize';\nimport { computed, nextTick, onMounted, ref, watch } from 'vue';\nimport type { Ref, UnwrapRef } from 'vue';\n\n// Adding an offset of \"1\" so that the border can be shown within the boundaries\nconst OVERFLOW_CLIP_OFFSET = 1;\n// Add the gradient offset to the calculations\nconst GRADIENT_OFFSET = 40;\n\ninterface useFixedScrollerProps {\n contentRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n containerRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n leftButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n rightButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n}\n\n/**\n * Function to calculate the offset of each view and change the \"view\" via offsets\n * through the functions `scrollLeft` and `scrollRight` whilst providing a way to\n * show and hide the buttons based on the current \"view\" via\n * `shouldShowLeftButton` and `shouldShowRightButton`.\n *\n * Each view is pre-calculated (offsetArray) and updated if the content changes as a computed ref:\n * First view: Always 0 (x axis beginning).\n * Last view: total content space - visible width\n * Intermediate views: Previous offset (to the left) plus the visible space taking\n * away the space the buttons take so that the whole view can be rendered\n *\n *\n * @param props - All the necessary references to calculate the scroll\n * @param props.containerRef - Reference to the container, this defines the visible space width\n * @param props.contentRef - Reference to the content itself, this defines the total content width\n * @param props.leftButtonRef - Reference to the left button, used to calculate total space in which the content will be rendered\n * @param props.rightButtonRef - Reference to the right button, used to calculate total space in which the content will be rendered\n * @returns response - Values used in the view to show the buttons and to change the view right or left\n * @returns response.offset - Offset value by which the view will move on the x axis. To be used in `styles`.\n * @returns response.shouldShowLeftButton - Indicates if the button on the left should be shown\n * @returns response.shouldShowRightButton - Indicates if the button on the right should be shown\n * @returns response.maskStyle - CSS custom properties for the content mask, based on the rendered button widths\n * @returns response.scrollLeft - Used to shift the view to the left\n * @returns response.scrollRight - Used to shift the view to the right\n */\nexport const useFixedScroller = ({\n contentRef,\n containerRef,\n leftButtonRef,\n rightButtonRef,\n}: useFixedScrollerProps) => {\n const offset = ref(0);\n const currentView = ref(0);\n\n // Calculated using 'scrollWidth' to get the full width of the content\n const totalContentWidth = ref(0);\n // Calculated using 'clientWidth' to get the rendered componen width\n const visibleSpaceWidth = ref(0);\n\n onMounted(() => {\n observeSizeOfElement(containerRef.value, () => {\n if (containerRef.value) {\n // Set new width when resized\n visibleSpaceWidth.value = containerRef.value.offsetWidth;\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n\n observeSizeOfElement(contentRef.value, () => {\n totalContentWidth.value = contentRef.value?.scrollWidth;\n\n if (totalContentWidth.value < visibleSpaceWidth.value) {\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n });\n\n // Sum of the space used by the Left and Right buttons\n // Used to calculate how much space the \"actual\" visible space is\n const buttonsWidth = computed(() => {\n const leftButtonWidth = leftButtonRef.value?.scrollWidth\n ? leftButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n const rightButtonWidth = rightButtonRef.value?.scrollWidth\n ? rightButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n\n return leftButtonWidth + rightButtonWidth;\n });\n // Total number of pages/views available.\n // Calculated as \"ceil\" because if the space doesn't fit \"one view\" (irrational number) the content flows to the next view (integer).\n const totalViews = computed(() => Math.ceil(totalContentWidth.value / visibleSpaceWidth.value) ?? 0);\n\n // Calculation of offsets per view (index).\n // This allows to easily swap the offset without on-the-fly calculations\n const offsetArray = computed(() => {\n const calculatedOffsetList = new Array(totalViews.value).fill(0);\n\n calculatedOffsetList.forEach((_, index) => {\n // First offset will be 0\n if (index === 0) {\n return;\n }\n\n // Calculate last\n if (index === totalViews.value - 1) {\n calculatedOffsetList[calculatedOffsetList.length - 1] = -(\n totalContentWidth.value -\n visibleSpaceWidth.value +\n OVERFLOW_CLIP_OFFSET\n );\n\n return;\n }\n\n // Calculate each offset - Move 1 view\n const previousOffset = calculatedOffsetList[index - 1];\n calculatedOffsetList[index] = -(visibleSpaceWidth.value + Math.abs(previousOffset) - buttonsWidth.value);\n });\n\n return calculatedOffsetList;\n });\n\n // Hide left button when it's the first view\n const shouldShowLeftButton = computed(() => currentView.value !== 0);\n // Hide right button if it's the last view\n const shouldShowRightButton = computed(\n () => offset.value >= -(totalContentWidth.value - visibleSpaceWidth.value - 1)\n );\n\n // Rendered width (including padding) of each button overlay, used to drive the\n // content mask so the fade matches the area each button occupies. They are 0 when\n // the corresponding button is hidden, which leaves that edge of the content unmasked.\n const leftButtonOverlayWidth = ref(0);\n const rightButtonOverlayWidth = ref(0);\n\n // Buttons are conditionally rendered, so measure them after the visibility update is applied.\n watch(\n shouldShowLeftButton,\n async shown => {\n if (!shown) {\n leftButtonOverlayWidth.value = 0;\n\n return;\n }\n\n await nextTick();\n leftButtonOverlayWidth.value = leftButtonRef.value?.offsetWidth ?? 0;\n },\n { immediate: true }\n );\n\n watch(\n shouldShowRightButton,\n async shown => {\n if (!shown) {\n rightButtonOverlayWidth.value = 0;\n\n return;\n }\n\n await nextTick();\n rightButtonOverlayWidth.value = rightButtonRef.value?.offsetWidth ?? 0;\n },\n { immediate: true }\n );\n\n /**\n * CSS custom properties used by the container mask to match the visible button overlays.\n */\n const maskStyle = computed(() => ({\n '--fixed-scroller-mask-left': `${leftButtonOverlayWidth.value}px`,\n '--fixed-scroller-mask-right': `${rightButtonOverlayWidth.value}px`,\n }));\n\n /**\n * Shifts the current offset by one view to the left.\n */\n const scrollLeft = () => {\n // Do nothing if it is already in page 0\n if (currentView.value === 0) {\n return;\n }\n\n currentView.value -= 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n /**\n * Shifts the current offset by one view to the right.\n */\n const scrollRight = () => {\n // Do nothing if it is already in last page\n if (currentView.value === totalViews.value - 1) {\n return;\n }\n\n currentView.value += 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n return {\n offset,\n shouldShowLeftButton,\n shouldShowRightButton,\n maskStyle,\n\n // Methods\n scrollLeft,\n scrollRight,\n };\n};\n","<template>\n <div ref=\"fixedScrollerRef\" class=\"b-fixed-scroller\">\n <div class=\"b-fixed-scroller__container\" :style=\"maskStyle\">\n <div\n ref=\"contentRef\"\n class=\"b-fixed-scroller__content\"\n :style=\"{\n transform: `translateX(${offset}px)`,\n paddingTop: shouldShowLeftButton || shouldShowRightButton ? `${extraPaddingTop}px` : null,\n }\"\n >\n <slot></slot>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowLeftButton\"\n ref=\"leftButtonRef\"\n class=\"b-fixed-scroller__left b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button variant=\"secondary\" :aria-label=\"t('scrollLeft')\" :condensed=\"condensed\" @click=\"scrollLeft\">\n <template #iconLeft>\n <chevron-left-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n <div\n v-if=\"shouldShowRightButton\"\n ref=\"rightButtonRef\"\n class=\"b-fixed-scroller__right b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button\n variant=\"secondary\"\n :aria-label=\"t('scrollRight')\"\n :condensed=\"condensed\"\n @click=\"scrollRight\"\n >\n <template #iconLeft>\n <chevron-right-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useFixedScroller } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const contentRef = ref(null);\n const fixedScrollerRef = ref(null);\n const leftButtonRef = ref(null);\n const rightButtonRef = ref(null);\n\n const props = defineProps({\n /**\n * Applies the condensed style to the buttons\n */\n condensed: { type: Boolean, default: false },\n /**\n * Padding to be applied to the top of the scroller container\n */\n extraPaddingTop: { type: Number, default: 0 },\n /**\n * Padding to be applied to the top of the scroller container\n */\n centered: { type: Boolean, default: false },\n });\n\n const { offset, shouldShowLeftButton, shouldShowRightButton, maskStyle, scrollLeft, scrollRight } =\n useFixedScroller({\n contentRef,\n containerRef: fixedScrollerRef,\n leftButtonRef,\n rightButtonRef,\n });\n\n const buttonConditionalClasses = computed(() => ({\n 'b-fixed-scroller__button--centered': props.centered,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Allows to horizontally scroll content by one view at a time.\n *\n * @example\n * import { FixedScroller } from '@/internal';\n *\n * export default {\n * components: { FixedScroller },\n * template: `\n * <fixed-scroller>\n * <div style=\"display: flex; gap: 8px;\">\n * {{ Content here }}\n * </div>\n * </fixed-scroller>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./fixed-scroller.scss\" />\n"],"names":["OVERFLOW_CLIP_OFFSET","GRADIENT_OFFSET","useFixedScroller","contentRef","containerRef","leftButtonRef","rightButtonRef","offset","ref","currentView","totalContentWidth","visibleSpaceWidth","onMounted","observeSizeOfElement","buttonsWidth","computed","leftButtonWidth","rightButtonWidth","totalViews","offsetArray","calculatedOffsetList","_","index","previousOffset","shouldShowLeftButton","shouldShowRightButton","leftButtonOverlayWidth","rightButtonOverlayWidth","watch","shown","nextTick","maskStyle","__default__","messages","t","useI18n","fixedScrollerRef","props","__props","scrollLeft","scrollRight","buttonConditionalClasses"],"mappings":";;;;;;;AAKA,MAAAA,IAAA,GAEAC,IAAA,IAmCOC,IAAA,CAAA;AAAA,EAA0B,YAAAC;AAAA,EAC7B,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAEJ,MAAA;AACI,QAAAC,IAAAC,EAAA,CAAA,GACAC,IAAAD,EAAA,CAAA,GAGAE,IAAAF,EAAA,CAAA,GAEAG,IAAAH,EAAA,CAAA;AAEA,EAAAI,EAAA,MAAA;AACI,IAAAC,EAAAT,EAAA,OAAA,MAAA;AACI,MAAAA,EAAA,UAEIO,EAAA,QAAAP,EAAA,MAAA,aAEAK,EAAA,QAAA,GACAF,EAAA,QAAA;AAAA,IACJ,CAAA,GAGJM,EAAAV,EAAA,OAAA,MAAA;AACI,MAAAO,EAAA,QAAAP,EAAA,OAAA,aAEAO,EAAA,QAAAC,EAAA,UAEIF,EAAA,QAAA,GACAF,EAAA,QAAA;AAAA,IACJ,CAAA;AAAA,EACH,CAAA;AAKL,QAAAO,IAAAC,EAAA,MAAA;AACI,UAAAC,IAAAX,EAAA,OAAA,cAAAA,EAAA,MAAA,cAAAJ,IAAA,GAGAgB,IAAAX,EAAA,OAAA,cAAAA,EAAA,MAAA,cAAAL,IAAA;AAIA,WAAAe,IAAAC;AAAA,EAAyB,CAAA,GAI7BC,IAAAH,EAAA,MAAA,KAAA,KAAAL,EAAA,QAAAC,EAAA,KAAA,KAAA,CAAA,GAIAQ,IAAAJ,EAAA,MAAA;AACI,UAAAK,IAAA,IAAA,MAAAF,EAAA,KAAA,EAAA,KAAA,CAAA;AAEA,WAA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AA,IACA,WAAAM;AAAA;AAAA,IACA,YA3BJ,MAAA;AAEI,MAAAtB,EAAA,UAAA,MAIAA,EAAA,SAAA,GACAF,EAAA,QAAAY,EAAA,MAAAV,EAAA,KAAA;AAAA,IAAkD;AAAA,IAuBlD,aAjBJ,MAAA;AAEI,MAAAA,EAAA,UAAAS,EAAA,QAAA,MAIAT,EAAA,SAAA,GACAF,EAAA,QAAAY,EAAA,MAAAV,EAAA,KAAA;AAAA,IAAkD;AAAA,EAWlD;AAER;;;;;;;;;;;;GCpGIuB,IAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAEf;;;;;;;;;;;;;;;;;;AAvDA,UAAA,EAAA,GAAAC,EAAA,IAAAC,EAAA,EAAA,UAAAF,EAAA,CAAA,GAEA9B,IAAAK,EAAA,IAAA,GACA4B,IAAA5B,EAAA,IAAA,GACAH,IAAAG,EAAA,IAAA,GACAF,IAAAE,EAAA,IAAA,GAEA6B,IAAAC,GAeA,EAAA,QAAA/B,GAAA,sBAAAiB,GAAA,uBAAAC,GAAA,WAAAM,GAAA,YAAAQ,GAAA,aAAAC,EAAA,IAAAtC,EAAA;AAAA,MACqB,YAAAC;AAAA,MACb,cAAAiC;AAAA,MACc,eAAA/B;AAAA,MACd,gBAAAC;AAAA,IACA,CAAA,GAGRmC,IAAA1B,EAAA,OAAA;AAAA,MAAiD,sCAAAsB,EAAA;AAAA,IACD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"fixed-scroller.nECGGyOp.js","sources":["../../../vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.ts","../../../vue2/src/components/internal/fixed-scroller/fixed-scroller.vue"],"sourcesContent":["import { observeSizeOfElement } from '@/utils/ts/resize';\nimport { computed, nextTick, onMounted, ref, watch } from 'vue';\nimport type { Ref, UnwrapRef } from 'vue';\n\n// Adding an offset of \"1\" so that the border can be shown within the boundaries\nconst OVERFLOW_CLIP_OFFSET = 1;\n// Add the gradient offset to the calculations\nconst GRADIENT_OFFSET = 40;\n\ninterface useFixedScrollerProps {\n contentRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n containerRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n leftButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n rightButtonRef?: Ref<UnwrapRef<HTMLDivElement | undefined>>;\n}\n\n/**\n * Function to calculate the offset of each view and change the \"view\" via offsets\n * through the functions `scrollLeft` and `scrollRight` whilst providing a way to\n * show and hide the buttons based on the current \"view\" via\n * `shouldShowLeftButton` and `shouldShowRightButton`.\n *\n * Each view is pre-calculated (offsetArray) and updated if the content changes as a computed ref:\n * First view: Always 0 (x axis beginning).\n * Last view: total content space - visible width\n * Intermediate views: Previous offset (to the left) plus the visible space taking\n * away the space the buttons take so that the whole view can be rendered\n *\n *\n * @param props - All the necessary references to calculate the scroll\n * @param props.containerRef - Reference to the container, this defines the visible space width\n * @param props.contentRef - Reference to the content itself, this defines the total content width\n * @param props.leftButtonRef - Reference to the left button, used to calculate total space in which the content will be rendered\n * @param props.rightButtonRef - Reference to the right button, used to calculate total space in which the content will be rendered\n * @returns response - Values used in the view to show the buttons and to change the view right or left\n * @returns response.offset - Offset value by which the view will move on the x axis. To be used in `styles`.\n * @returns response.shouldShowLeftButton - Indicates if the button on the left should be shown\n * @returns response.shouldShowRightButton - Indicates if the button on the right should be shown\n * @returns response.maskStyle - CSS custom properties for the content mask, based on the rendered button widths\n * @returns response.scrollLeft - Used to shift the view to the left\n * @returns response.scrollRight - Used to shift the view to the right\n */\nexport const useFixedScroller = ({\n contentRef,\n containerRef,\n leftButtonRef,\n rightButtonRef,\n}: useFixedScrollerProps) => {\n const offset = ref(0);\n const currentView = ref(0);\n\n // Calculated using 'scrollWidth' to get the full width of the content\n const totalContentWidth = ref(0);\n // Calculated using 'clientWidth' to get the rendered componen width\n const visibleSpaceWidth = ref(0);\n\n onMounted(() => {\n observeSizeOfElement(containerRef.value, () => {\n if (containerRef.value) {\n // Set new width when resized\n visibleSpaceWidth.value = containerRef.value.offsetWidth;\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n\n observeSizeOfElement(contentRef.value, () => {\n totalContentWidth.value = contentRef.value?.scrollWidth;\n\n if (totalContentWidth.value < visibleSpaceWidth.value) {\n // Reset the offset and view\n currentView.value = 0;\n offset.value = 0;\n }\n });\n });\n\n // Sum of the space used by the Left and Right buttons\n // Used to calculate how much space the \"actual\" visible space is\n const buttonsWidth = computed(() => {\n const leftButtonWidth = leftButtonRef.value?.scrollWidth\n ? leftButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n const rightButtonWidth = rightButtonRef.value?.scrollWidth\n ? rightButtonRef.value.scrollWidth + GRADIENT_OFFSET\n : 0;\n\n return leftButtonWidth + rightButtonWidth;\n });\n // Total number of pages/views available.\n // Calculated as \"ceil\" because if the space doesn't fit \"one view\" (irrational number) the content flows to the next view (integer).\n const totalViews = computed(() => Math.ceil(totalContentWidth.value / visibleSpaceWidth.value) ?? 0);\n\n // Calculation of offsets per view (index).\n // This allows to easily swap the offset without on-the-fly calculations\n const offsetArray = computed(() => {\n const calculatedOffsetList = new Array(totalViews.value).fill(0);\n\n calculatedOffsetList.forEach((_, index) => {\n // First offset will be 0\n if (index === 0) {\n return;\n }\n\n // Calculate last\n if (index === totalViews.value - 1) {\n calculatedOffsetList[calculatedOffsetList.length - 1] = -(\n totalContentWidth.value -\n visibleSpaceWidth.value +\n OVERFLOW_CLIP_OFFSET\n );\n\n return;\n }\n\n // Calculate each offset - Move 1 view\n const previousOffset = calculatedOffsetList[index - 1];\n calculatedOffsetList[index] = -(visibleSpaceWidth.value + Math.abs(previousOffset) - buttonsWidth.value);\n });\n\n return calculatedOffsetList;\n });\n\n // Hide left button when it's the first view\n const shouldShowLeftButton = computed(() => currentView.value !== 0);\n // Hide right button if it's the last view\n const shouldShowRightButton = computed(\n () => offset.value >= -(totalContentWidth.value - visibleSpaceWidth.value - 1)\n );\n\n // Rendered width (including padding) of each button overlay, used to drive the\n // content mask so the fade matches the area each button occupies. They are 0 when\n // the corresponding button is hidden, which leaves that edge of the content unmasked.\n const leftButtonOverlayWidth = ref(0);\n const rightButtonOverlayWidth = ref(0);\n\n // Buttons are conditionally rendered, so measure them after the visibility update is applied.\n watch(\n shouldShowLeftButton,\n async shown => {\n if (!shown) {\n leftButtonOverlayWidth.value = 0;\n\n return;\n }\n\n await nextTick();\n leftButtonOverlayWidth.value = leftButtonRef.value?.offsetWidth ?? 0;\n },\n { immediate: true }\n );\n\n watch(\n shouldShowRightButton,\n async shown => {\n if (!shown) {\n rightButtonOverlayWidth.value = 0;\n\n return;\n }\n\n await nextTick();\n rightButtonOverlayWidth.value = rightButtonRef.value?.offsetWidth ?? 0;\n },\n { immediate: true }\n );\n\n /**\n * CSS custom properties used by the container mask to match the visible button overlays.\n */\n const maskStyle = computed(() => ({\n '--fixed-scroller-mask-left': `${leftButtonOverlayWidth.value}px`,\n '--fixed-scroller-mask-right': `${rightButtonOverlayWidth.value}px`,\n }));\n\n /**\n * Shifts the current offset by one view to the left.\n */\n const scrollLeft = () => {\n // Do nothing if it is already in page 0\n if (currentView.value === 0) {\n return;\n }\n\n currentView.value -= 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n /**\n * Shifts the current offset by one view to the right.\n */\n const scrollRight = () => {\n // Do nothing if it is already in last page\n if (currentView.value === totalViews.value - 1) {\n return;\n }\n\n currentView.value += 1;\n offset.value = offsetArray.value[currentView.value];\n };\n\n return {\n offset,\n shouldShowLeftButton,\n shouldShowRightButton,\n maskStyle,\n\n // Methods\n scrollLeft,\n scrollRight,\n };\n};\n","<template>\n <div ref=\"fixedScrollerRef\" class=\"b-fixed-scroller\">\n <div class=\"b-fixed-scroller__container\" :style=\"maskStyle\">\n <div\n ref=\"contentRef\"\n class=\"b-fixed-scroller__content\"\n :style=\"{\n transform: `translateX(${offset}px)`,\n paddingTop: shouldShowLeftButton || shouldShowRightButton ? `${extraPaddingTop}px` : null,\n }\"\n >\n <slot></slot>\n </div>\n </div>\n\n <div\n v-if=\"shouldShowLeftButton\"\n ref=\"leftButtonRef\"\n class=\"b-fixed-scroller__left b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button variant=\"secondary\" :aria-label=\"t('scrollLeft')\" :condensed=\"condensed\" @click=\"scrollLeft\">\n <template #iconLeft>\n <chevron-left-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n <div\n v-if=\"shouldShowRightButton\"\n ref=\"rightButtonRef\"\n class=\"b-fixed-scroller__right b-fixed-scroller__button\"\n :class=\"buttonConditionalClasses\"\n >\n <bento-button\n variant=\"secondary\"\n :aria-label=\"t('scrollRight')\"\n :condensed=\"condensed\"\n @click=\"scrollRight\"\n >\n <template #iconLeft>\n <chevron-right-icon svg-title=\"checked\" aria-hidden=\"true\" />\n </template>\n </bento-button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, ref } from 'vue';\n import { BentoButton } from '@/components/button';\n import { useFixedScroller } from './composables';\n import { useI18n } from '@/utils/ts/i18n';\n import ChevronLeftIcon from '@adyen/ui-assets-icons-16/vue/chevron-left';\n import ChevronRightIcon from '@adyen/ui-assets-icons-16/vue/chevron-right';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const contentRef = ref(null);\n const fixedScrollerRef = ref(null);\n const leftButtonRef = ref(null);\n const rightButtonRef = ref(null);\n\n const props = defineProps({\n /**\n * Applies the condensed style to the buttons\n */\n condensed: { type: Boolean, default: false },\n /**\n * Padding to be applied to the top of the scroller container\n */\n extraPaddingTop: { type: Number, default: 0 },\n /**\n * Vertically centers the scroll buttons in the container instead of spacing them from its top and bottom edges\n */\n centered: { type: Boolean, default: false },\n });\n\n const { offset, shouldShowLeftButton, shouldShowRightButton, maskStyle, scrollLeft, scrollRight } =\n useFixedScroller({\n contentRef,\n containerRef: fixedScrollerRef,\n leftButtonRef,\n rightButtonRef,\n });\n\n const buttonConditionalClasses = computed(() => ({\n 'b-fixed-scroller__button--centered': props.centered,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Allows to horizontally scroll content by one view at a time.\n *\n * @example\n * import { FixedScroller } from '@/internal';\n *\n * export default {\n * components: { FixedScroller },\n * template: `\n * <fixed-scroller>\n * <div style=\"display: flex; gap: 8px;\">\n * {{ Content here }}\n * </div>\n * </fixed-scroller>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./fixed-scroller.scss\" />\n"],"names":["OVERFLOW_CLIP_OFFSET","GRADIENT_OFFSET","useFixedScroller","contentRef","containerRef","leftButtonRef","rightButtonRef","offset","ref","currentView","totalContentWidth","visibleSpaceWidth","onMounted","observeSizeOfElement","buttonsWidth","computed","leftButtonWidth","rightButtonWidth","totalViews","offsetArray","calculatedOffsetList","_","index","previousOffset","shouldShowLeftButton","shouldShowRightButton","leftButtonOverlayWidth","rightButtonOverlayWidth","watch","shown","nextTick","maskStyle","__default__","messages","t","useI18n","fixedScrollerRef","props","__props","scrollLeft","scrollRight","buttonConditionalClasses"],"mappings":";;;;;;;AAKA,MAAAA,IAAA,GAEAC,IAAA,IAmCOC,IAAA,CAAA;AAAA,EAA0B,YAAAC;AAAA,EAC7B,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAEJ,MAAA;AACI,QAAAC,IAAAC,EAAA,CAAA,GACAC,IAAAD,EAAA,CAAA,GAGAE,IAAAF,EAAA,CAAA,GAEAG,IAAAH,EAAA,CAAA;AAEA,EAAAI,EAAA,MAAA;AACI,IAAAC,EAAAT,EAAA,OAAA,MAAA;AACI,MAAAA,EAAA,UAEIO,EAAA,QAAAP,EAAA,MAAA,aAEAK,EAAA,QAAA,GACAF,EAAA,QAAA;AAAA,IACJ,CAAA,GAG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AA,IAAAtC,EAAA;AAAA,MACqB,YAAAC;AAAA,MACb,cAAAiC;AAAA,MACc,eAAA/B;AAAA,MACd,gBAAAC;AAAA,IACA,CAAA,GAGRmC,IAAA1B,EAAA,OAAA;AAAA,MAAiD,sCAAAsB,EAAA;AAAA,IACD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1166,9 +1166,8 @@ const _r = (t, e, r) => {
1166
1166
  export {
1167
1167
  Gr as B,
1168
1168
  xr as a,
1169
- Rr as b,
1170
1169
  Ce as f,
1171
1170
  pe as g,
1172
1171
  Pr as s
1173
1172
  };
1174
- //# sourceMappingURL=focus-trap.Co-S6goa.js.map
1173
+ //# sourceMappingURL=focus-trap.BgyHTR_3.js.map