@adyen/bento-vue3 1.83.1 → 1.84.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 (306) hide show
  1. package/dist/@types/index.d.ts +57 -6
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions-with-menu.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/country.css +1 -1
  22. package/dist/assets/currency.css +1 -1
  23. package/dist/assets/dashboard-section.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/date.css +1 -1
  30. package/dist/assets/dialog-page.css +1 -1
  31. package/dist/assets/divider.css +1 -1
  32. package/dist/assets/dropdown-default-textbox.css +1 -1
  33. package/dist/assets/dropdown-tag.css +1 -1
  34. package/dist/assets/dropdown.css +1 -1
  35. package/dist/assets/empty-state.css +1 -1
  36. package/dist/assets/field-label.css +1 -1
  37. package/dist/assets/file-uploader.css +1 -1
  38. package/dist/assets/filter-bar.css +1 -1
  39. package/dist/assets/fixed-scroller.css +1 -1
  40. package/dist/assets/footer-actions.css +1 -1
  41. package/dist/assets/form-layout-title.css +1 -1
  42. package/dist/assets/grid-layout.css +1 -1
  43. package/dist/assets/header-meta.css +1 -1
  44. package/dist/assets/header-with-views.css +1 -1
  45. package/dist/assets/header.css +1 -1
  46. package/dist/assets/index.css +1 -1
  47. package/dist/assets/info-icon.css +1 -1
  48. package/dist/assets/input-field-password.css +1 -1
  49. package/dist/assets/input-field.css +1 -1
  50. package/dist/assets/inspector.css +1 -1
  51. package/dist/assets/layout-row.css +1 -1
  52. package/dist/assets/link.css +1 -1
  53. package/dist/assets/listbox-option-tag.css +1 -1
  54. package/dist/assets/loading-indicator.css +1 -1
  55. package/dist/assets/modal-fullscreen.css +1 -1
  56. package/dist/assets/pagination.css +1 -1
  57. package/dist/assets/payment-method.css +1 -1
  58. package/dist/assets/popper-container.css +1 -1
  59. package/dist/assets/promo-banner.css +1 -1
  60. package/dist/assets/radio-group.css +1 -1
  61. package/dist/assets/radio-input.css +1 -1
  62. package/dist/assets/rich-text-editor.css +1 -1
  63. package/dist/assets/secondary-nav.css +1 -1
  64. package/dist/assets/segmented-control.css +1 -1
  65. package/dist/assets/selection-card-group.css +1 -1
  66. package/dist/assets/sidepanel.css +1 -1
  67. package/dist/assets/status.css +1 -1
  68. package/dist/assets/step.css +1 -1
  69. package/dist/assets/structured-list-item.css +1 -1
  70. package/dist/assets/summary-grid.css +1 -1
  71. package/dist/assets/tab.css +1 -1
  72. package/dist/assets/tag.css +1 -1
  73. package/dist/assets/textarea.css +1 -1
  74. package/dist/assets/timeline-item.css +1 -1
  75. package/dist/assets/toast.css +1 -1
  76. package/dist/assets/toggle.css +1 -1
  77. package/dist/assets/tooltip.css +1 -1
  78. package/dist/assets/tutorial.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/button.js +1 -1
  81. package/dist/card.js +1 -1
  82. package/dist/checkbox.js +2 -2
  83. package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
  84. package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
  85. package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
  86. package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
  87. package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
  88. package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
  89. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
  90. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
  91. package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
  92. package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
  93. package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
  94. package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
  95. package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
  96. package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
  97. package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
  98. package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
  99. package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
  100. package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
  101. package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
  102. package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
  103. package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
  104. package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
  105. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  106. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  107. package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
  108. package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
  109. package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
  110. package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
  111. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  112. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  113. package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
  114. package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
  115. package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
  116. package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
  117. package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
  118. package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
  119. package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
  120. package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
  121. package/dist/chunks/{data-grid.BoPfKLRj.js → data-grid.BBkF9ojy.js} +896 -812
  122. package/dist/chunks/{data-grid.BoPfKLRj.js.map → data-grid.BBkF9ojy.js.map} +1 -1
  123. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  124. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  125. package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
  126. package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
  127. package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
  128. package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
  129. package/dist/chunks/de.DvtL0g75.js +478 -0
  130. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  131. package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
  132. package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
  133. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  134. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  135. package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
  136. package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
  137. package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
  138. package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
  139. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  140. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  141. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  142. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  143. package/dist/chunks/es.bz0mzkMq.js +374 -0
  144. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  145. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  146. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  147. package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
  148. package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
  149. package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
  150. package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
  151. package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
  152. package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
  153. package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
  154. package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
  155. package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
  156. package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
  157. package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
  158. package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
  159. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  160. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  161. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  162. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  163. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  164. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  165. package/dist/chunks/header-meta.PysBmkSU.js +263 -0
  166. package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
  167. package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
  168. package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
  169. package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
  170. package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
  171. package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
  172. package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
  173. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
  174. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
  175. package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
  176. package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
  177. package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
  178. package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
  179. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  180. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  181. package/dist/chunks/it.Oaj6BklL.js +392 -0
  182. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  183. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  184. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  185. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  186. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  187. package/dist/chunks/match.CMBZxEs9.js +302 -0
  188. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  189. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
  190. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
  191. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
  192. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
  193. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  194. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  195. package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
  196. package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
  197. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  198. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  199. package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
  200. package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
  201. package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
  202. package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
  203. package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
  204. package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
  205. package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
  206. package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
  207. package/dist/chunks/{selection-card-group.CPSDSz7m.js → selection-card-group.DNPlEqEq.js} +5 -5
  208. package/dist/chunks/{selection-card-group.CPSDSz7m.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
  209. package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
  210. package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
  211. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  212. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  213. package/dist/chunks/step.DpgnDx29.js +271 -0
  214. package/dist/chunks/step.DpgnDx29.js.map +1 -0
  215. package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
  216. package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
  217. package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
  218. package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
  219. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  220. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  221. package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
  222. package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
  223. package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
  224. package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
  225. package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
  226. package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
  227. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BGbo_qv_.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +2 -2
  228. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BGbo_qv_.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
  229. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
  230. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
  231. package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
  232. package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
  233. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  234. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  235. package/dist/code-snippet.js +1 -1
  236. package/dist/country.js +2 -2
  237. package/dist/dashboard-template.js +1 -1
  238. package/dist/dashed-underline.js +1 -1
  239. package/dist/data-grid-template.js +1 -1
  240. package/dist/data-grid.js +1 -1
  241. package/dist/date-picker.js +2 -2
  242. package/dist/date-range-picker.js +2 -2
  243. package/dist/dropdown.js +3 -3
  244. package/dist/file-uploader.js +1 -1
  245. package/dist/filter-bar.js +1 -1
  246. package/dist/form-layout.js +1 -1
  247. package/dist/header-with-views.js +1 -1
  248. package/dist/header.js +1 -1
  249. package/dist/index.js +248 -249
  250. package/dist/index.js.map +1 -1
  251. package/dist/input-field-password.js +1 -1
  252. package/dist/input-field-phone-number.js +1 -1
  253. package/dist/input-field.js +1 -1
  254. package/dist/inspector.js +1 -1
  255. package/dist/internal.js +10 -10
  256. package/dist/menu.js +1 -1
  257. package/dist/modal-fullscreen.js +1 -1
  258. package/dist/modal.js +2 -2
  259. package/dist/pagination.js +1 -1
  260. package/dist/popover.js +1 -1
  261. package/dist/radio-group.js +1 -1
  262. package/dist/rich-text-editor.js +1 -1
  263. package/dist/search-bar.js +2 -2
  264. package/dist/secondary-nav.js +1 -1
  265. package/dist/selection-card.js +1 -1
  266. package/dist/sidepanel.js +1 -1
  267. package/dist/stepper.js +1 -1
  268. package/dist/structured-list.js +1 -1
  269. package/dist/styles/bento-dark.css +0 -1829
  270. package/dist/styles/bento-light.css +0 -1829
  271. package/dist/styles/bento.css +0 -1829
  272. package/dist/styles/legacy.css +0 -1829
  273. package/dist/styles/styleguide.css +0 -1829
  274. package/dist/summary-grid.js +1 -1
  275. package/dist/tabs.js +1 -1
  276. package/dist/textarea.js +1 -1
  277. package/dist/timeline.js +1 -1
  278. package/dist/tutorial.js +1 -1
  279. package/dist/web-types.json +1 -1
  280. package/package.json +7 -7
  281. package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
  282. package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
  283. package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
  284. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
  285. package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
  286. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  287. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  288. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  289. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  290. package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
  291. package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
  292. package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
  293. package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
  294. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  295. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  296. package/dist/chunks/es6.MoTTyETW.js +0 -12
  297. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  298. package/dist/chunks/filter-bar.DB87uMbx.js +0 -3211
  299. package/dist/chunks/filter-bar.DB87uMbx.js.map +0 -1
  300. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  301. package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
  302. package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
  303. package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
  304. package/dist/chunks/step._8f9kwI5.js +0 -267
  305. package/dist/chunks/step._8f9kwI5.js.map +0 -1
  306. package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
@@ -1,15 +1,15 @@
1
- import { defineComponent as Le, useAttrs as Ee, toRefs as $, ref as u, toRef as xe, computed as s, watch as U, nextTick as Ce, onMounted as Re, onUnmounted as Ae, createElementBlock as z, openBlock as c, normalizeClass as E, createElementVNode as M, normalizeStyle as q, createVNode as S, createBlock as h, createCommentVNode as d, unref as l, withCtx as x, createTextVNode as Y, toDisplayString as G, withKeys as w } from "vue";
1
+ import { defineComponent as Le, useAttrs as Ee, toRefs as $, ref as u, toRef as xe, computed as s, watch as I, nextTick as Ce, onMounted as Re, onUnmounted as Ae, createElementBlock as z, openBlock as d, normalizeClass as E, createElementVNode as M, normalizeStyle as q, createVNode as S, createBlock as h, createCommentVNode as c, unref as l, withCtx as x, createTextVNode as Y, toDisplayString as G, withKeys as w } from "vue";
2
2
  import { B as Be } from "./button.CSp48LJt.js";
3
3
  import { d as De, B as F } from "./typography.6Oo5TOMP.js";
4
4
  import { C as ke } from "./cross-circle-fill-small.Dv5-PxwF.js";
5
- import { g as Ie } from "./generate-uid.NJ8tVoha.js";
5
+ import { g as Ue } from "./generate-uid.NJ8tVoha.js";
6
6
  import { o as X } from "./resize.Bqks3WUm.js";
7
- import { u as Ue } from "./aria-label.CaUURpnB.js";
7
+ import { u as Ie } from "./aria-label.CaUURpnB.js";
8
8
  import { u as Me } from "./index.pdBj0KQU.js";
9
9
  import { u as Se } from "./form-field.D_2g7vaP.js";
10
10
  import { u as we } from "./use-form-layout-loading.CWbjZiwP.js";
11
- import { B as Fe } from "./es6.MoTTyETW.js";
12
- import { F as Oe, E as j } from "./field-label.CfizwLcQ.js";
11
+ import { B as Fe } from "./es6.C1DXQV6f.js";
12
+ import { F as Oe, E as j } from "./field-label.D7vU2Icm.js";
13
13
  import { _ as Pe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
14
14
  import "../assets/textarea.css";
15
15
  var p = /* @__PURE__ */ ((t) => (t.CLEARABLE = "clearable", t.DISABLED = "disabled", t.ERROR = "error", t.READONLY = "readonly", t))(p || {}), n = /* @__PURE__ */ ((t) => (t.BLUR = "blur", t.CHANGE = "change", t.CLEAR = "clear", t.ESCAPE_PRESSED = "escape-pressed", t.FOCUS = "focus", t.INPUT = "input", t.UPDATE_MODEL_VALUE = "update:model-value", t.KEYDOWN = "keydown", t.KEYUP = "keyup", t))(n || {});
@@ -19,15 +19,15 @@ const J = {
19
19
  textarea: "textarea",
20
20
  yourTextCanBenAtMost: "Your text can be at most {characterLimit} characters"
21
21
  }
22
- }, Te = ["id", "value", "aria-label", "aria-invalid", "readonly", "required", "disabled", "placeholder"], He = {
22
+ }, He = ["id", "value", "aria-label", "aria-invalid", "readonly", "required", "disabled", "placeholder"], Ke = {
23
23
  key: 0,
24
24
  class: "b-textarea__clear-button"
25
- }, Ke = parseFloat(Fe), Ne = {
25
+ }, Ne = parseFloat(Fe), Te = {
26
26
  i18n: { messages: J },
27
27
  name: "bento-textarea",
28
28
  model: { prop: "modelValue" }
29
29
  }, Ve = /* @__PURE__ */ Le({
30
- ...Ne,
30
+ ...Te,
31
31
  props: {
32
32
  ariaLabel: { default: void 0 },
33
33
  characterLimit: { default: void 0 },
@@ -47,32 +47,32 @@ const J = {
47
47
  tooltipText: { default: null }
48
48
  },
49
49
  setup(t, { expose: Q, emit: Z }) {
50
- const ee = Ee(), a = t, i = Z, { height: C } = $(a), O = Ie("textarea"), o = u(null), m = u(null), r = u(a.modelValue || a.value), f = 44, v = u(a.height || `${f}px`), P = u(0), R = u("100%"), A = u(!1);
50
+ const ee = Ee(), a = t, i = Z, { height: C } = $(a), O = Ue("textarea"), o = u(null), m = u(null), r = u(a.modelValue || a.value), f = 44, v = u(a.height || `${f}px`), P = u(0), R = u("100%"), A = u(!1);
51
51
  let y = null, g = null;
52
- const { t: T, n: H } = Me({ messages: J }), { isReadOnly: _ } = we(xe(a, "readonly")), { emitValue: K } = Se(i), ae = s(() => {
52
+ const { t: H, n: K } = Me({ messages: J }), { isReadOnly: _ } = we(xe(a, "readonly")), { emitValue: N } = Se(i), ae = s(() => {
53
53
  var e;
54
- return `${H(((e = r == null ? void 0 : r.value) == null ? void 0 : e.length) ?? 0)} / ${H(a.characterLimit)}`;
54
+ return `${K(((e = r == null ? void 0 : r.value) == null ? void 0 : e.length) ?? 0)} / ${K(a.characterLimit)}`;
55
55
  }), L = s(() => !C.value), B = s(
56
56
  () => a.characterLimit && r.value.length > a.characterLimit
57
57
  ), D = () => {
58
58
  if (o.value) {
59
59
  const e = Math.max(
60
- o.value.scrollHeight <= f ? f : o.value.scrollHeight + Ke * 2,
60
+ o.value.scrollHeight <= f ? f : o.value.scrollHeight + Ne * 2,
61
61
  P.value,
62
62
  f
63
63
  );
64
64
  v.value = `${e}px`;
65
65
  }
66
66
  };
67
- U(C, () => {
67
+ I(C, () => {
68
68
  L.value ? D() : v.value = C.value;
69
- }), U(
69
+ }), I(
70
70
  () => [a.value, a.modelValue],
71
71
  () => {
72
72
  r.value = a.modelValue || a.value;
73
73
  },
74
74
  { immediate: !0 }
75
- ), U(
75
+ ), I(
76
76
  () => r.value,
77
77
  async () => {
78
78
  if (L.value) {
@@ -83,28 +83,28 @@ const J = {
83
83
  },
84
84
  { immediate: !0 }
85
85
  );
86
- const N = s(() => !!a.errorMessage || B.value), te = s(() => ({
86
+ const T = s(() => !!a.errorMessage || B.value), te = s(() => ({
87
87
  [`b-textarea--${p.DISABLED}`]: a.disabled
88
88
  })), le = s(() => ({
89
89
  [`b-textarea__input--${p.CLEARABLE}`]: a.clearable,
90
90
  [`b-textarea__input--${p.READONLY}`]: _.value,
91
- [`b-textarea__input--${p.ERROR}`]: N.value,
91
+ [`b-textarea__input--${p.ERROR}`]: T.value,
92
92
  "b-textarea__input--dynamic-height": L.value
93
93
  })), oe = s(() => ({
94
94
  "b-textarea__label-box--no-label": !a.label
95
95
  })), re = s(() => ({
96
96
  [`b-textarea__label-item--${p.ERROR}`]: B.value
97
- })), se = s(() => T("yourTextCanBenAtMost", { characterLimit: a.characterLimit })), ie = u(ee["aria-label"]), { ariaLabel: ue, label: k } = $(a), ne = Ue({
97
+ })), se = s(() => H("yourTextCanBenAtMost", { characterLimit: a.characterLimit })), ie = u(ee["aria-label"]), { ariaLabel: ue, label: k } = $(a), ne = Ie({
98
98
  ariaLabel: ie.value,
99
99
  // TODO: take this line away when the aria-label props is removed
100
100
  label: ue,
101
101
  defaultFallback: k
102
- }), ce = s(
102
+ }), de = s(
103
103
  () => a.clearable && r.value && !a.disabled && !_.value
104
- ), I = () => {
105
- r.value = "", i(n.CLEAR), K("");
106
- }, de = (e) => {
107
- e.stopImmediatePropagation(), !a.disabled && !_.value && (r.value = e.target.value, K(r.value));
104
+ ), U = () => {
105
+ r.value = "", i(n.CLEAR), N("");
106
+ }, ce = (e) => {
107
+ e.stopImmediatePropagation(), !a.disabled && !_.value && (r.value = e.target.value, N(r.value));
108
108
  }, pe = () => {
109
109
  o.value.scrollTop = 0, i(n.BLUR);
110
110
  }, me = () => {
@@ -146,7 +146,7 @@ const J = {
146
146
  );
147
147
  }), Ae(() => {
148
148
  y == null || y.disconnect(), g == null || g.disconnect();
149
- }), (e, b) => (c(), z("div", {
149
+ }), (e, b) => (d(), z("div", {
150
150
  ref_key: "textareaComponent",
151
151
  ref: m,
152
152
  class: E(["b-textarea", te.value])
@@ -157,15 +157,15 @@ const J = {
157
157
  M("div", {
158
158
  class: E(["b-textarea__label-box", oe.value])
159
159
  }, [
160
- l(k) ? (c(), h(l(Oe), {
160
+ l(k) ? (d(), h(l(Oe), {
161
161
  key: 0,
162
162
  for: l(O),
163
163
  label: l(k),
164
164
  "tooltip-text": e.tooltipText,
165
165
  optional: e.optional,
166
166
  required: e.required
167
- }, null, 8, ["for", "label", "tooltip-text", "optional", "required"])) : d("", !0),
168
- e.characterLimit ? (c(), h(l(F), {
167
+ }, null, 8, ["for", "label", "tooltip-text", "optional", "required"])) : c("", !0),
168
+ e.characterLimit ? (d(), h(l(F), {
169
169
  key: 1,
170
170
  el: "span",
171
171
  class: E(["b-textarea__label-item", re.value])
@@ -174,7 +174,7 @@ const J = {
174
174
  Y(G(ae.value), 1)
175
175
  ]),
176
176
  _: 1
177
- }, 8, ["class"])) : d("", !0)
177
+ }, 8, ["class"])) : c("", !0)
178
178
  ], 2),
179
179
  S(l(F), {
180
180
  el: "div",
@@ -189,7 +189,7 @@ const J = {
189
189
  value: r.value,
190
190
  class: E(["b-textarea__input", le.value]),
191
191
  "aria-label": l(ne),
192
- "aria-invalid": N.value,
192
+ "aria-invalid": T.value,
193
193
  readonly: l(_),
194
194
  required: e.required,
195
195
  disabled: e.disabled,
@@ -198,7 +198,7 @@ const J = {
198
198
  onBlur: pe,
199
199
  onChange: fe,
200
200
  onFocus: me,
201
- onInput: de,
201
+ onInput: ce,
202
202
  onKeydown: [
203
203
  w(ve, ["esc"]),
204
204
  be
@@ -206,35 +206,35 @@ const J = {
206
206
  onKeyup: he,
207
207
  onMousedown: ye,
208
208
  onMouseup: ge
209
- }, " ", 46, Te),
210
- ce.value ? (c(), z("div", He, [
209
+ }, " ", 46, He),
210
+ de.value ? (d(), z("div", Ke, [
211
211
  S(l(Be), {
212
212
  variant: "tertiary",
213
213
  disabled: e.disabled,
214
- onClick: I,
215
- onKeypress: w(I, ["enter"]),
216
- onKeyup: w(I, ["space"])
214
+ onClick: U,
215
+ onKeypress: w(U, ["enter"]),
216
+ onKeyup: w(U, ["space"])
217
217
  }, {
218
218
  iconLeft: x(() => [
219
219
  S(l(ke), {
220
- "svg-title": l(T)("clearText")
220
+ "svg-title": l(H)("clearText")
221
221
  }, null, 8, ["svg-title"])
222
222
  ]),
223
223
  _: 1
224
224
  }, 8, ["disabled"])
225
- ])) : d("", !0)
225
+ ])) : c("", !0)
226
226
  ]),
227
227
  _: 1
228
228
  }, 8, ["aria-disabled"]),
229
- B.value ? (c(), h(l(j), {
229
+ B.value ? (d(), h(l(j), {
230
230
  key: 0,
231
231
  "error-message": se.value
232
- }, null, 8, ["error-message"])) : d("", !0),
233
- e.errorMessage ? (c(), h(l(j), {
232
+ }, null, 8, ["error-message"])) : c("", !0),
233
+ e.errorMessage ? (d(), h(l(j), {
234
234
  key: 1,
235
235
  "error-message": e.errorMessage
236
- }, null, 8, ["error-message"])) : d("", !0),
237
- e.description ? (c(), h(l(F), {
236
+ }, null, 8, ["error-message"])) : c("", !0),
237
+ e.description ? (d(), h(l(F), {
238
238
  key: 2,
239
239
  class: "b-textarea__description",
240
240
  el: "span"
@@ -243,12 +243,12 @@ const J = {
243
243
  Y(G(e.description), 1)
244
244
  ]),
245
245
  _: 1
246
- })) : d("", !0)
246
+ })) : c("", !0)
247
247
  ], 4)
248
248
  ], 2));
249
249
  }
250
- }), la = /* @__PURE__ */ Pe(Ve, [["__scopeId", "data-v-af3922c9"]]);
250
+ }), la = /* @__PURE__ */ Pe(Ve, [["__scopeId", "data-v-0e6512e8"]]);
251
251
  export {
252
252
  la as B
253
253
  };
254
- //# sourceMappingURL=textarea.C0tLoH2I.js.map
254
+ //# sourceMappingURL=textarea.CEDkF8BB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.CEDkF8BB.js","sources":["../../../vue2/src/components/textarea/textarea.types.ts","../../../vue2/src/components/textarea/textarea.vue"],"sourcesContent":["import type { FormField } from '../../types/form-field';\n\n/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTextareaResizeOption {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n BOTH = 'both',\n NONE = 'none',\n}\n\nexport enum BentoTextareaStateClass {\n CLEARABLE = 'clearable',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoTextareaEvent {\n BLUR = 'blur',\n CHANGE = 'change',\n CLEAR = 'clear',\n ESCAPE_PRESSED = 'escape-pressed',\n FOCUS = 'focus',\n INPUT = 'input',\n UPDATE_MODEL_VALUE = 'update:model-value',\n KEYDOWN = 'keydown',\n KEYUP = 'keyup',\n}\n\nexport interface BentoTextareaProps extends FormField {\n /**\n * Text that labels the input element\n * @default undefined\n */\n ariaLabel?: string;\n\n /**\n * Text that shows number of characters in textarea\n * @default undefined\n */\n characterLimit?: number;\n\n /**\n * If set to true, shows a button to clear all the text\n * @default false\n */\n clearable?: boolean;\n\n /**\n * Sets the height of the textarea, e.g 200px OR 20vh\n * @default null\n */\n height?: string | null;\n\n /**\n * Indicates the possibility of resize the textarea.\n * Accepts the Enum or the string literal version.\n * @default BentoTextareaResizeOption.BOTH\n */\n resizable?: BentoTextareaResizeOption | `${BentoTextareaResizeOption}`;\n\n /**\n * Text displayed as the value of the textarea\n * @deprecated for usage with properties since version 2.0. Use `v-model` or `model-value` instead.\n */\n value?: string;\n\n /**\n * Text displayed as the value of the textarea\n */\n modelValue?: string;\n}\n","<template>\n <div ref=\"textareaComponent\" class=\"b-textarea\" :class=\"conditionalClasses\">\n <div :style=\"{ width: textareaWrapperWidth }\">\n <div class=\"b-textarea__label-box\" :class=\"conditionalClassesLabelBox\">\n <field-label\n v-if=\"label\"\n :for=\"textareaId\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <bento-typography\n v-if=\"characterLimit\"\n el=\"span\"\n class=\"b-textarea__label-item\"\n :class=\"conditionalClassesLabelItem\"\n >\n {{ counter }}\n </bento-typography>\n </div>\n <bento-typography el=\"div\" class=\"b-textarea__input-box\" :aria-disabled=\"disabled\">\n <textarea\n :id=\"textareaId\"\n ref=\"textareaElement\"\n :value=\"textareaValue\"\n class=\"b-textarea__input\"\n :class=\"conditionalClassesInput\"\n :aria-label=\"computedAriaLabel\"\n :aria-invalid=\"invalidInput\"\n :readonly=\"isReadOnly\"\n :required=\"required\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder\"\n :style=\"{ resize: resizable, height: textareaHeight }\"\n @blur=\"onBlur\"\n @change=\"onChange\"\n @focus=\"onFocus\"\n @input=\"onInput\"\n @keydown.esc=\"onPressEscape\"\n @keydown=\"onKeyDown\"\n @keyup=\"onKeyUp\"\n @mousedown=\"onMouseDown\"\n @mouseup=\"onMouseUp\"\n >\n </textarea>\n\n <div v-if=\"showClearButton\" class=\"b-textarea__clear-button\">\n <bento-button\n variant=\"tertiary\"\n :disabled=\"disabled\"\n @click=\"onClear\"\n @keypress.enter=\"onClear\"\n @keyup.space=\"onClear\"\n >\n <template #iconLeft>\n <cross-circle-fill-small-icon :svg-title=\"t('clearText')\" />\n </template>\n </bento-button>\n </div>\n </bento-typography>\n\n <error-message v-if=\"isOverCharacterLimit\" :error-message=\"counterErrorText\" />\n\n <error-message v-if=\"errorMessage\" :error-message=\"errorMessage\" />\n\n <bento-typography v-if=\"description\" class=\"b-textarea__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, onMounted, onUnmounted, ref, toRef, toRefs, useAttrs, watch } from 'vue';\n\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage, FieldLabel } from '@/internal';\n import CrossCircleFillSmallIcon from '@adyen/ui-assets-icons-16/vue/cross-circle-fill-small';\n\n // Utils\n import { generateUid } from '@/core/utils/ts';\n import { observeSizeOfElement } from '@/utils/ts/resize';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { useI18n } from '@/utils/ts/i18n';\n import { deprecate } from '@/utils/ts/deprecate';\n import { useFormFieldEmits } from '@/utils/ts/form-field/form-field';\n\n // Composables\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n // Constants\n import { BBorderWidthAttention } from '@adyen/bento-design-tokens/dist/js/bento/es6';\n\n // Types\n import { BentoTextareaEvent, type BentoTextareaProps, BentoTextareaStateClass } from './textarea.types';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const attrs = useAttrs();\n\n const props = withDefaults(defineProps<BentoTextareaProps>(), {\n ariaLabel: undefined,\n characterLimit: undefined,\n description: '',\n disabled: false,\n clearable: false,\n errorMessage: '',\n height: null,\n label: '',\n optional: false,\n placeholder: '',\n readonly: false,\n resizable: 'both',\n required: false,\n tooltipText: null,\n value: '',\n modelValue: '',\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: BentoTextareaEvent.BLUR): void;\n\n /**\n * Emitted when the user modifies the element's value. Unlike the 'input' event, the change event is not necessarily fired for each alteration to an element's value\n */\n (e: BentoTextareaEvent.CHANGE): void;\n\n /**\n * Emitted when the \"Clear\" button was clicked\n */\n (e: BentoTextareaEvent.CLEAR): void;\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: BentoTextareaEvent.ESCAPE_PRESSED): void;\n\n /**\n * Emitted when the element has received focus\n */\n (e: BentoTextareaEvent.FOCUS): void;\n\n /**\n * Emitted when the component's model changes\n *\n * @deprecated since version 2.0. Use `v-model` or `update:model-value` instead.\n *\n */\n (e: BentoTextareaEvent.INPUT, value: string): void;\n\n /**\n * Emitted when the component's model changes\n */\n (e: BentoTextareaEvent.UPDATE_MODEL_VALUE, value: string): void;\n\n /**\n * Emitted when the text area keydown event is fired\n */\n (e: BentoTextareaEvent.KEYDOWN, event: KeyboardEvent): void;\n\n /**\n * Emitted when the text area keyup event is fired\n */\n (e: BentoTextareaEvent.KEYUP, event: KeyboardEvent): void;\n }>();\n\n const { height } = toRefs(props);\n\n const textareaId = generateUid('textarea');\n const textareaElement = ref<HTMLTextAreaElement>(null);\n const textareaComponent = ref<HTMLDivElement>(null);\n const textareaValue = ref(props.modelValue || props.value);\n const defaultTextareaHeight = 44;\n const textareaHeight = ref(props.height || `${defaultTextareaHeight}px`);\n const userSetHeight = ref<number>(0);\n const textareaWrapperWidth = ref('100%'); // The width set to the wrapper of the label, textarea and description\n const isUserResizing = ref(false);\n let textareaElementObserver: ResizeObserver | null = null;\n let textareaComponentObserver: ResizeObserver | null = null;\n\n const { t, n } = useI18n<{ message: MessageSchema }>({ messages });\n\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n\n const { emitValue } = useFormFieldEmits<string>(emit);\n\n const counter = computed(() => `${n(textareaValue?.value?.length ?? 0)} / ${n(props.characterLimit)}`);\n const isDynamicHeight = computed(() => !height.value);\n const isOverCharacterLimit = computed(\n () => props.characterLimit && textareaValue.value.length > props.characterLimit\n );\n\n /**\n * Calculates and sets the height of the textarea.\n * The height is determined by the maximum of the following values:\n *\n * 1. The content's scroll height (with a minimum of `defaultTextareaHeight`) + the border width.\n * 2. The height set by the user manually resizing the textarea (`userSetHeight`).\n * 3. The default minimum height (`defaultTextareaHeight`).\n *\n * This ensures the textarea grows with content, shrinks when content is removed,\n * but never goes below the manually set height or the default height.\n */\n const calculateHeight = () => {\n if (textareaElement.value) {\n const newHeight = Math.max(\n textareaElement.value.scrollHeight <= defaultTextareaHeight\n ? defaultTextareaHeight\n : textareaElement.value.scrollHeight + TEXTAREA_BORDER_WIDTH * 2,\n userSetHeight.value,\n defaultTextareaHeight\n );\n textareaHeight.value = `${newHeight}px`;\n }\n };\n\n watch(height, () => {\n if (isDynamicHeight.value) {\n calculateHeight();\n } else {\n textareaHeight.value = height.value;\n }\n });\n\n watch(\n () => [props.value, props.modelValue],\n () => {\n textareaValue.value = props.modelValue || props.value;\n },\n { immediate: true }\n );\n\n watch(\n () => textareaValue.value,\n async () => {\n if (isDynamicHeight.value) {\n // Hack to make the textarea calculate its height properly\n // Set the textarea back to the original value before calculating the height\n textareaHeight.value = `${defaultTextareaHeight}px`;\n if (!textareaValue.value) {\n return;\n }\n\n await nextTick();\n calculateHeight();\n }\n },\n { immediate: true }\n );\n\n const invalidInput = computed(() => !!props.errorMessage || isOverCharacterLimit.value);\n\n const conditionalClasses = computed(() => ({\n [`b-textarea--${BentoTextareaStateClass.DISABLED}`]: props.disabled,\n }));\n\n const conditionalClassesInput = computed(() => ({\n [`b-textarea__input--${BentoTextareaStateClass.CLEARABLE}`]: props.clearable,\n [`b-textarea__input--${BentoTextareaStateClass.READONLY}`]: isReadOnly.value,\n [`b-textarea__input--${BentoTextareaStateClass.ERROR}`]: invalidInput.value,\n [`b-textarea__input--dynamic-height`]: isDynamicHeight.value,\n }));\n\n const conditionalClassesLabelBox = computed(() => ({\n [`b-textarea__label-box--no-label`]: !props.label,\n }));\n\n const conditionalClassesLabelItem = computed(() => ({\n [`b-textarea__label-item--${BentoTextareaStateClass.ERROR}`]: isOverCharacterLimit.value,\n }));\n\n const counterErrorText = computed(() => t('yourTextCanBenAtMost', { characterLimit: props.characterLimit }));\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel, label } = 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: label,\n });\n\n const showClearButton = computed(\n () => props.clearable && textareaValue.value && !props.disabled && !isReadOnly.value\n );\n\n const onClear = () => {\n textareaValue.value = '';\n emit(BentoTextareaEvent.CLEAR);\n emitValue('');\n };\n\n const onInput = (event: InputEvent) => {\n event.stopImmediatePropagation();\n\n if (!props.disabled && !isReadOnly.value) {\n textareaValue.value = (event.target as HTMLInputElement).value;\n /**\n * Triggered when input value is changed\n *\n * @event input\n * @property {String} inputValue - the updated textarea value\n */\n emitValue(textareaValue.value);\n }\n };\n\n const onBlur = () => {\n textareaElement.value.scrollTop = 0;\n emit(BentoTextareaEvent.BLUR);\n };\n\n const onFocus = () => {\n textareaElement.value.focus();\n emit(BentoTextareaEvent.FOCUS);\n };\n\n const onChange = () => {\n emit(BentoTextareaEvent.CHANGE);\n };\n\n const onPressEscape = () => {\n emit(BentoTextareaEvent.ESCAPE_PRESSED);\n };\n\n const onKeyDown = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYDOWN, event);\n };\n\n const onKeyUp = (event: KeyboardEvent) => {\n event.stopPropagation();\n emit(BentoTextareaEvent.KEYUP, event);\n };\n\n const onMouseDown = () => {\n isUserResizing.value = true;\n };\n\n const onMouseUp = () => {\n isUserResizing.value = false;\n };\n\n /**\n * Updates the textarea width depending if the container or the user update its size.\n * @param isTextareaElement - sets to true if the element being observed is the textarea HTML element.\n */\n const resizeTextareaWrapper = (isTextareaElement = false) => {\n // Width assigned by the browser whenever the textarea is manually resized. String of the format `<value>px`.\n const textareaStyleWidth = textareaElement.value.style.width;\n\n // Make sure the tracked textareaHeight is always in sync with the height size in case we manually resize the textarea\n if (textareaElement.value.style.height) {\n if (isUserResizing.value) {\n userSetHeight.value = parseInt(textareaElement.value.style.height, 10);\n }\n textareaHeight.value = textareaElement.value.style.height;\n }\n\n // If the textarea element observer is being triggered, but there's no textareaStyleWidth, we want to ignore it, as no manual resize as happened yet\n // The component wrapper will handle the resizing logic instead\n if (isTextareaElement && !textareaStyleWidth) {\n return;\n }\n\n // Width of the whole bento-textarea component\n const textareaComponentWidth = textareaComponent?.value?.offsetWidth;\n\n // If there is no textareaStyleWidth or the textareaStyleWidth is larger than the component container, the wrapper should be 100% of the container\n if (!textareaStyleWidth || parseInt(textareaStyleWidth, 10) > textareaComponentWidth) {\n textareaWrapperWidth.value = '100%';\n } else {\n // Else the wrapper should always be as wide as the textarea element itself\n textareaWrapperWidth.value = textareaStyleWidth;\n }\n };\n\n const focus = () => {\n textareaElement.value.focus();\n };\n\n defineExpose({\n focus,\n });\n\n onMounted(() => {\n textareaElementObserver = observeSizeOfElement(textareaElement.value, () => {\n resizeTextareaWrapper(true);\n });\n\n textareaComponentObserver = observeSizeOfElement(textareaComponent.value, () => {\n resizeTextareaWrapper();\n });\n\n if (isDynamicHeight.value) {\n calculateHeight();\n }\n\n if (props.value) {\n deprecate(\n 'BentoTextarea \"value\" property',\n `The use of \"value\" prop in \"BentoTextarea\" is no longer supported.\n Use the \"v-model\" or \"model-value\" property instead.`,\n '2.0.0'\n );\n }\n });\n\n onUnmounted(() => {\n textareaElementObserver?.disconnect();\n textareaComponentObserver?.disconnect();\n });\n</script>\n\n<script lang=\"ts\">\n const TEXTAREA_BORDER_WIDTH = parseFloat(BBorderWidthAttention);\n\n export default {\n i18n: { messages },\n name: 'bento-textarea',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./textarea.scss\" />\n"],"names":["BentoTextareaStateClass","BentoTextareaStateClass2","BentoTextareaEvent","BentoTextareaEvent2","TEXTAREA_BORDER_WIDTH","BBorderWidthAttention","__default__","messages","attrs","useAttrs","props","__props","emit","__emit","height","toRefs","textareaId","generateUid","textareaElement","ref","textareaComponent","textareaValue","defaultTextareaHeight","textareaHeight","userSetHeight","textareaWrapperWidth","isUserResizing","textareaElementObserver","textareaComponentObserver","t","n","useI18n","isReadOnly","useFormLayoutFieldLoading","toRef","emitValue","useFormFieldEmits","counter","computed","_a","isDynamicHeight","isOverCharacterLimit","calculateHeight","newHeight","watch","nextTick","invalidInput","conditionalClasses","conditionalClassesInput","conditionalClassesLabelBox","conditionalClassesLabelItem","counterErrorText","ariaLabelAttribute","ariaLabel","label","computedAriaLabel","useAriaLabel","showClearButton","onClear","onInput","event","onBlur","onFocus","onChange","onPressEscape","onKeyDown","onKeyUp","onMouseDown","onMouseUp","resizeTextareaWrapper","isTextareaElement","textareaStyleWidth","textareaComponentWidth","__expose","onMounted","observeSizeOfElement","deprecate","onUnmounted"],"mappings":";;;;;;;;;;;;;;AAYY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,QAAA,SACAA,EAAA,iBAAA,kBACAA,EAAA,QAAA,SACAA,EAAA,QAAA,SACAA,EAAA,qBAAA,sBACAA,EAAA,UAAA,WACAA,EAAA,QAAA,SATQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;;GCoZRE,KAAA,WAAAC,EAAA,GAEAC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,EAAA;AAAA,EACM,MAAA;AAAA,EACX,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;AAtUA,UAAAC,KAAAC,GAAA,GAEAC,IAAAC,GAmBAC,IAAAC,GAkDA,EAAA,QAAAC,EAAA,IAAAC,EAAAL,CAAA,GAEAM,IAAAC,GAAA,UAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,IAAA,GACAE,IAAAF,EAAAT,EAAA,c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AAA,EAAA,UAAA,gBAAAmB,EAAA;AAGA,MAAA,CAAAgC,KAAA,SAAAA,GAAA,EAAA,IAAAC,KACI/C,EAAA,QAAA,SAGAA,EAAA,QAAA8C;AAAA,IACJ;AAOJ,WAAAE,EAAA;AAAA,MAAa,OAJb,MAAA;AACI,QAAAvD,EAAA,MAAA,MAAA;AAAA,MAA4B;AAAA,IAI5B,CAAA,GAGJwD,GAAA,MAAA;AACI,MAAA/C,IAAAgD,EAAAzD,EAAA,OAAA,MAAA;AACI,QAAAmD,EAAA,EAAA;AAAA,MAA0B,CAAA,GAG9BzC,IAAA+C,EAAAvD,EAAA,OAAA,MAAA;AACI,QAAAiD,EAAA;AAAA,MAAsB,CAAA,GAG1B7B,EAAA,SACIE,EAAA,GAGJhC,EAAA,SACIkE;AAAA,QAAA;AAAA,QACI;AAAA;AAAA,QACA;AAAA,MAEA;AAAA,IAER,CAAA,GAGJC,GAAA,MAAA;AACI,MAAAlD,KAAA,QAAAA,EAAA,cACAC,KAAA,QAAAA,EAAA;AAAA,IAAsC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,19 +1,20 @@
1
1
  import { defineComponent as x, computed as n, ref as $, toRefs as _e, watch as pe, provide as K, createElementBlock as p, openBlock as i, createCommentVNode as f, createElementVNode as w, createBlock as N, unref as a, withCtx as y, createTextVNode as T, toDisplayString as E, createVNode as k, renderSlot as P, nextTick as he, mergeProps as q, useSlots as ge, inject as Q, onUnmounted as be, normalizeClass as X, Fragment as J, renderList as ye } from "vue";
2
2
  import { B as re } from "./button.CSp48LJt.js";
3
- import { B as we } from "./textarea.C0tLoH2I.js";
3
+ import { B as we } from "./textarea.CEDkF8BB.js";
4
4
  import { u as ue } from "./index.pdBj0KQU.js";
5
- import { B as Ee } from "./button-actions.O0cnu1_g.js";
5
+ import { B as Ee } from "./button-actions.Crj4QFAd.js";
6
6
  import { _ as Z } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
7
  import { B as ee } from "./date.CL55prL0.js";
8
8
  import { B as Ie } from "./link.BLCQlEZU.js";
9
9
  import { B as Te } from "./tag.DFJIvNLs.js";
10
10
  import { d as Ne, B as O } from "./typography.6Oo5TOMP.js";
11
- import { S as ke, B as Ce, a as Se } from "./structured-list-item.C4Fnc7sX.js";
11
+ import { S as ke, B as Ce, a as Se } from "./structured-list-item.B-hdp7rW.js";
12
12
  /* empty css */
13
13
  import { g as Me } from "./generate-uid.NJ8tVoha.js";
14
14
  import { u as Le } from "./use-has-slot.B7eQSabc.js";
15
- import { b as Re, e as Oe, a as Ae, n as De, g as te, m as ae, d as se, f as ie, h as ne } from "./getTimezoneOffsetInMilliseconds.B7sxiukN.js";
16
- import { g as Be } from "./getRoundingMethod.C3eaeGLR.js";
15
+ import { g as Re, a as Oe, n as Ae, b as te, m as ae, d as se, e as ie, f as ne } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
16
+ import { g as De } from "./getRoundingMethod.C3eaeGLR.js";
17
+ import { g as Be } from "./en-US.BZii9jNW.js";
17
18
  import "../assets/timeline-item.css";
18
19
  var F = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(F || {}), $e = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))($e || {}), W = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(W || {}), Fe = /* @__PURE__ */ ((e) => (e.BLACK = "black", e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(Fe || {});
19
20
  const de = /* @__PURE__ */ Symbol("timeline register entry injection key"), me = /* @__PURE__ */ Symbol("timeline config obj injection key"), ce = {
@@ -126,7 +127,7 @@ const de = /* @__PURE__ */ Symbol("timeline register entry injection key"), me =
126
127
  ])
127
128
  ]));
128
129
  }
129
- }), Et = /* @__PURE__ */ Z(Ve, [["__scopeId", "data-v-db82849a"]]);
130
+ }), It = /* @__PURE__ */ Z(Ve, [["__scopeId", "data-v-db82849a"]]);
130
131
  let le = 0;
131
132
  const He = {
132
133
  beforeCreate() {
@@ -150,16 +151,16 @@ function Ke(e, l, t, A, v, r) {
150
151
  }
151
152
  const Pe = /* @__PURE__ */ Z(He, [["render", Ke]]);
152
153
  function oe(e, l, t) {
153
- const A = Re(), v = (t == null ? void 0 : t.locale) ?? A.locale ?? Oe, r = Ae(e, l);
154
+ const A = Re(), v = (t == null ? void 0 : t.locale) ?? A.locale ?? Be, r = Oe(e, l);
154
155
  if (isNaN(r))
155
156
  throw new RangeError("Invalid time value");
156
157
  const h = Object.assign({}, t, {
157
158
  addSuffix: t == null ? void 0 : t.addSuffix,
158
159
  comparison: r
159
- }), [M, D] = De(
160
+ }), [M, D] = Ae(
160
161
  t == null ? void 0 : t.in,
161
162
  ...r > 0 ? [l, e] : [e, l]
162
- ), g = Be((t == null ? void 0 : t.roundingMethod) ?? "round"), C = D.getTime() - M.getTime(), d = C / ne, L = te(D) - te(M), b = (C - L) / ne, m = t == null ? void 0 : t.unit;
163
+ ), g = De((t == null ? void 0 : t.roundingMethod) ?? "round"), C = D.getTime() - M.getTime(), d = C / ne, L = te(D) - te(M), b = (C - L) / ne, m = t == null ? void 0 : t.unit;
163
164
  let u;
164
165
  if (m ? u = m : d < 1 ? u = "second" : d < 60 ? u = "minute" : d < ae ? u = "hour" : b < se ? u = "day" : b < ie ? u = "month" : u = "year", u === "second") {
165
166
  const o = g(C / 1e3);
@@ -416,13 +417,13 @@ const fe = {
416
417
  ])) : f("", !0)
417
418
  ], 2)) : f("", !0);
418
419
  }
419
- }), It = /* @__PURE__ */ Z(nt, [["__scopeId", "data-v-b4bbe490"]]);
420
+ }), Tt = /* @__PURE__ */ Z(nt, [["__scopeId", "data-v-b4bbe490"]]);
420
421
  export {
421
422
  F as B,
422
- It as a,
423
+ Tt as a,
423
424
  $e as b,
424
425
  W as c,
425
426
  Fe as d,
426
- Et as t
427
+ It as t
427
428
  };
428
- //# sourceMappingURL=timeline-item.-IGN2sbj.js.map
429
+ //# sourceMappingURL=timeline-item.BxGaSGLf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"timeline-item.-IGN2sbj.js","sources":["../../../vue2/src/components/timeline/timeline.types.ts","../../../vue2/src/components/timeline/timeline.keys.ts","../../../vue2/src/components/timeline/timeline.vue","../../../ui-assets/icons-16/dist/vue/square-small-fill.vue","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceStrict.js","../../../vue2/src/components/timeline/components/timeline-item/timeline-item.vue"],"sourcesContent":["import { type BentoDateFormat } from '@/components/date/date.types';\nimport { type BentoTag } from '@/components/tag';\nimport { type Ref } from 'vue';\nimport type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n\nexport enum BentoTimelineShowMorePlacement {\n BOTTOM = 'bottom',\n AFTER_FIRST = 'after-first',\n BEFORE_LAST = 'before-last',\n}\n\nexport interface BentoTimelineShowMoreObject {\n limit: number;\n placement?: BentoTimelineShowMorePlacement;\n}\n\nexport enum BentoTimelineGapUnit {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\nexport interface BentoTimelineGapObject {\n amount: number;\n unit: BentoTimelineGapUnit;\n}\n\n/**\n * @deprecated \"variant\" prop was deprecated. Use \"status\" modifier instead.\n */\nexport enum BentoTimelineItemVariant {\n DEFAULT = 'SquareSmallIcon',\n SUCCESS = 'CheckedCircleIcon',\n CRITICAL = 'CrossCircleIcon',\n}\n\nexport enum BentoTimelineStatus {\n BLACK = 'black',\n BLUE = 'blue',\n GREEN = 'green',\n GREY = 'grey',\n ORANGE = 'orange',\n RED = 'red',\n YELLOW = 'yellow',\n}\n\nexport interface BentoTimelineItemTitle extends RouterLinkProps {\n /**\n * Link label.\n */\n title: string;\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n // This has been added to allow users to add HTML and Aria attribute\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [name: string]: any;\n}\n\nexport interface BentoTimelineTimestamp {\n date: Date | number;\n format?: BentoDateFormat;\n value?: string;\n}\n\nexport interface BentoTimelineDataListObject {\n label: string;\n value: string;\n}\n\nexport type BentoTimelineDataList = Array<BentoTimelineDataListObject>;\n\nexport type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];\n\nexport interface BentoTimelineEntry {\n title?: string | BentoTimelineItemTitle;\n description?: string;\n date: Date | number;\n}\n\n/**\n * @deprecated from version 2.0.0.\n */\nexport type BentoTimelineRegisterEntry = (props: {\n title?: string | BentoTimelineItemTitle;\n description?: string;\n date: Date | number;\n}) => { timelineEntries: Ref<Array<BentoTimelineEntry>>; index: number; unregisterTimelineEntry: () => void };\n\n/**\n * @private\n */\nexport type BentoInternalTimelineRegisterEntry = (\n entry: BentoTimelineEntry\n) => { timelineEntries: Ref<Array<BentoTimelineEntry>>; unregisterTimelineEntry: () => void };\n\nexport interface BentoTimelineConfigData {\n showAll: Ref<boolean>;\n showMoreIndex: Ref<number>;\n hiddenItems: Ref<number>;\n visibleIndexes: Ref<Array<number>>;\n timegapLimit: Ref<BentoTimelineGapObject>;\n timelineEntries: Ref<Array<BentoTimelineEntry>>;\n}\n\nexport interface BentoTimelineProps {\n /**\n * If set to true, gives the possibility to manually add notes to the timeline via a textarea\n */\n addNote?: boolean;\n /**\n * Object that determines the max number of items to show without clicking the show more button\n * and where in the timeline is the show more button placed\n */\n showMore?: BentoTimelineShowMoreObject;\n /**\n * Object that determines minimum amount of time for the automatic timegap indicator;\n * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).\n * If null, automatic timegap detection will be turned off\n */\n timegapLimit?: BentoTimelineGapObject;\n}\n\nexport interface BentoTimelineItemProps {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp?: BentoTimelineTimestamp;\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList?: BentoTimelineDataList;\n /**\n * Description of the event\n */\n description?: string;\n /**\n * Modifier that changes the color of the timeline icon\n * @values blue, black, green, grey, orange, red, yellow\n */\n status?: string;\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag?: BentoTimelineTagProps;\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: BentoTimelineTimestamp;\n /**\n * Title of the event\n */\n title?: BentoTimelineItemTitle | string;\n /**\n * Type of the timeline item. If set to 'note', it renders a note item in the timeline. Defaults to 'milestone'.\n * @values milestone, note\n */\n type?: string;\n /**\n * Variant for the timeline item\n * @values DEFAULT, SUCCESS, CRITICAL\n *\n * @deprecated Use \"status\" prop instead\n */\n variant?: BentoTimelineItemVariant | `${BentoTimelineItemVariant}`;\n}\n","export const TIMELINE_REGISTER_ENTRY_INJECTION_KEY = Symbol('timeline register entry injection key');\nexport const TIMELINE_CONFIG_INJECTION_KEY = Symbol('timeline config obj injection key');\n","<template>\n <div class=\"b-timeline\">\n <div v-if=\"addNote\" class=\"b-timeline__add-note-section\">\n <bento-button\n v-if=\"!showAddNoteTextArea\"\n ref=\"addNoteButtonRef\"\n variant=\"tertiary\"\n @click=\"toggleAddNote\"\n >{{ addNoteLabel }}</bento-button\n >\n <div v-if=\"showAddNoteTextArea\">\n <bento-textarea\n ref=\"addNoteTextareaRef\"\n :label=\"addNoteLabel\"\n :character-limit=\"150\"\n resizable=\"vertical\"\n @update:model-value=\"updateNoteContent\"\n />\n <bento-button-actions\n :actions=\"[\n { title: addNoteLabel, event: addNoteToTimeline },\n { title: cancelLabel, event: toggleAddNote },\n ]\"\n />\n </div>\n </div>\n <ol class=\"b-timeline__items\">\n <slot />\n </ol>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, provide, ref, type Ref, toRefs, watch } from 'vue';\n import { BentoButton, BentoButtonActions } from '@/components/button';\n import { BentoTextarea } from '@/components/textarea';\n import {\n type BentoInternalTimelineRegisterEntry,\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineProps,\n BentoTimelineShowMorePlacement,\n } from './timeline.types';\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from './timeline.keys';\n import messages from './messages.json';\n import { useI18n } from '@/utils/ts/i18n';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoTimelineProps>(), {\n addNote: false,\n showMore: null,\n timegapLimit: null,\n });\n\n const emit = defineEmits(['add-timeline-note']);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const addNoteLabel = computed(() => t('addNote') as string);\n const cancelLabel = computed(() => t('cancel') as string);\n\n const newNoteContent: Ref<string> = ref();\n const updateNoteContent = (newTimelineNoteContent: string): void => {\n newNoteContent.value = newTimelineNoteContent;\n };\n\n const addNoteTextareaRef: Ref<InstanceType<typeof BentoTextarea>> = ref(null);\n const addNoteButtonRef: Ref<InstanceType<typeof BentoButton>> = ref(null);\n const showAddNoteTextArea = ref(false);\n const toggleAddNote = async () => {\n showAddNoteTextArea.value = !showAddNoteTextArea.value;\n\n await nextTick();\n\n if (showAddNoteTextArea.value) {\n (addNoteTextareaRef.value.$refs.textareaElement as HTMLTextAreaElement)?.focus();\n } else {\n (addNoteButtonRef.value.$el as HTMLButtonElement)?.focus();\n }\n };\n const addNoteToTimeline = () => {\n emit('add-timeline-note', {\n description: newNoteContent.value,\n timestamp: { date: new Date() },\n type: 'note',\n });\n toggleAddNote();\n };\n\n const timelineEntries = ref<Array<BentoTimelineEntry>>([]);\n const hiddenItems = computed(() =>\n props.showMore && timelineEntries.value.length > props.showMore.limit\n ? timelineEntries.value.length - props.showMore.limit\n : null\n );\n const showAll = ref(false);\n const { timegapLimit } = toRefs(props);\n\n const timelineIndexes = computed(() => Array.from(timelineEntries.value.keys()));\n\n const visibleIndexes = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.BEFORE_LAST) {\n return [\n ...timelineIndexes.value.slice(0, props.showMore.limit - 1),\n timelineIndexes.value[timelineIndexes.value.length - 1],\n ];\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.AFTER_FIRST) {\n return [timelineIndexes.value[0], ...timelineIndexes.value.slice(-(props.showMore.limit - 1))];\n }\n\n return timelineIndexes.value.slice(0, props.showMore.limit);\n });\n\n const showMoreIndex = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n switch (props.showMore.placement) {\n case BentoTimelineShowMorePlacement.BEFORE_LAST:\n return props.showMore.limit - 2;\n case BentoTimelineShowMorePlacement.AFTER_FIRST:\n return 0;\n case BentoTimelineShowMorePlacement.BOTTOM:\n default:\n return props.showMore.limit - 1;\n }\n });\n\n const sortEntries = () => {\n // Sorts timeline entries based on date in reverse chronological order (newest first).\n timelineEntries.value.sort((a, b) => {\n return new Date(b.date).getTime() - new Date(a.date).getTime();\n });\n };\n\n const unregisterTimelineEntry = (entryToRemove: BentoTimelineEntry) => () => {\n const index = timelineEntries.value.indexOf(entryToRemove);\n // The index can be -1 if the entry has already been removed by a parent re-render.\n if (index > -1) {\n timelineEntries.value.splice(index, 1);\n }\n };\n\n const registerTimelineEntry: BentoInternalTimelineRegisterEntry = entry => {\n timelineEntries.value.push(entry);\n return { timelineEntries, unregisterTimelineEntry: unregisterTimelineEntry(entry) };\n };\n\n watch(\n () => timelineEntries.value.length,\n () => sortEntries()\n );\n\n const configData: BentoTimelineConfigData = {\n showAll,\n showMoreIndex,\n hiddenItems,\n visibleIndexes,\n timegapLimit,\n timelineEntries,\n };\n\n // provide register timeline entry and config data timeline items\n provide(TIMELINE_REGISTER_ENTRY_INJECTION_KEY, registerTimelineEntry);\n provide(TIMELINE_CONFIG_INJECTION_KEY, configData);\n</script>\n<script lang=\"ts\">\n /**\n * Timeline displays a collection of events in a reverse chronological order (newest event is displayed on the top).\n *\n * @example\n * import { BentoDateFormat, BentoTimeline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimeline },\n * template: `\n * <bento-timeline>\n * <bento-timeline-item\n * title=\"Milestone 1\"\n * :timestamp=\"{ date: new Date(), value: 'Created at' }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * <bento-timeline-item\n * title=\"Milestone 2\"\n * :timestamp=\"{\n * date: new Date(),\n * value: 'Created at',\n * format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD\n * }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * />\n * </bento-timeline>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-timeline',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline.scss\" />\n","\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=\"#001222\" d=\"M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport {\n millisecondsInMinute,\n minutesInDay,\n minutesInMonth,\n minutesInYear,\n} from \"./constants.js\";\n\n/**\n * The {@link formatDistanceStrict} function options.\n */\n\n/**\n * The unit used to format the distance in {@link formatDistanceStrict}.\n */\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport function formatDistanceStrict(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const roundingMethod = getRoundingMethod(options?.roundingMethod ?? \"round\");\n\n const milliseconds = earlierDate_.getTime() - laterDate_.getTime();\n const minutes = milliseconds / millisecondsInMinute;\n\n const timezoneOffset =\n getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n const dstNormalizedMinutes =\n (milliseconds - timezoneOffset) / millisecondsInMinute;\n\n const defaultUnit = options?.unit;\n let unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = \"second\";\n } else if (minutes < 60) {\n unit = \"minute\";\n } else if (minutes < minutesInDay) {\n unit = \"hour\";\n } else if (dstNormalizedMinutes < minutesInMonth) {\n unit = \"day\";\n } else if (dstNormalizedMinutes < minutesInYear) {\n unit = \"month\";\n } else {\n unit = \"year\";\n }\n } else {\n unit = defaultUnit;\n }\n\n // 0 up to 60 seconds\n if (unit === \"second\") {\n const seconds = roundingMethod(milliseconds / 1000);\n return locale.formatDistance(\"xSeconds\", seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === \"minute\") {\n const roundedMinutes = roundingMethod(minutes);\n return locale.formatDistance(\"xMinutes\", roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === \"hour\") {\n const hours = roundingMethod(minutes / 60);\n return locale.formatDistance(\"xHours\", hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === \"day\") {\n const days = roundingMethod(dstNormalizedMinutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === \"month\") {\n const months = roundingMethod(dstNormalizedMinutes / minutesInMonth);\n return months === 12 && defaultUnit !== \"month\"\n ? locale.formatDistance(\"xYears\", 1, localizeOptions)\n : locale.formatDistance(\"xMonths\", months, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const years = roundingMethod(dstNormalizedMinutes / minutesInYear);\n return locale.formatDistance(\"xYears\", years, localizeOptions);\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceStrict;\n","<template>\n <li v-if=\"isVisible\" class=\"b-timeline-item\" :class=\"conditionalClasses\">\n <div v-if=\"timegap\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__icon b-timeline-item__icon--timegap\"></div>\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography class=\"b-timeline-item__timegap\" :aria-label=\"timegapAriaLabel\">\n {{ timegap }}\n </bento-typography>\n </div>\n </div>\n <div class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <square-small-icon class=\"b-timeline-item__icon\" :class=\"iconConditionalClasses\" />\n <div\n v-if=\"!isLastItem\"\n class=\"b-timeline-item__separator\"\n data-testid=\"last-timeline-item-separator\"\n ></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography\n v-if=\"!isNoteType\"\n el=\"div\"\n variant=\"body\"\n strongest\n class=\"b-timeline-item__title\"\n role=\"heading\"\n aria-level=\"2\"\n >\n <bento-link v-if=\"isLinkTitle\" v-bind=\"linkTitleProps\" disable-typography>{{\n linkTitleProps.title\n }}</bento-link>\n <span v-else>{{ title }}</span>\n </bento-typography>\n\n <bento-typography\n v-if=\"isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <bento-typography v-if=\"timestamp\" class=\"b-timeline-item__timestamp\" el=\"div\" variant=\"caption\">\n <bento-date :date=\"timestamp.date\" :format=\"timestamp.format\" disable-typography />\n {{ timestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && additionalTimestamp\"\n class=\"b-timeline-item__timestamp\"\n el=\"div\"\n variant=\"caption\"\n >\n <bento-date\n :date=\"additionalTimestamp.date\"\n :format=\"additionalTimestamp.format\"\n disable-typography\n />\n {{ additionalTimestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <div v-if=\"!isNoteType && dataList\" class=\"b-timeline-item__data-list\">\n <bento-structured-list>\n <bento-structured-list-item\n v-for=\"listEntry in dataList\"\n :key=\"generateUid(listEntry.label)\"\n :label=\"listEntry.label\"\n >\n <bento-typography variant=\"caption\">{{ listEntry.value }}</bento-typography>\n </bento-structured-list-item>\n </bento-structured-list>\n </div>\n <bento-tag v-if=\"!isNoteType && tag\" v-bind=\"tag\" class=\"b-timeline-item__tag\" />\n </div>\n </div>\n <div v-if=\"displayShowMoreButton\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-button class=\"b-timeline__show-more\" variant=\"tertiary\" @click=\"showAll = !showAll\">\n <template v-if=\"!showAll\">{{ t('showMore', { items: hiddenItems }) }}</template>\n <template v-else>{{ t('showLess') }}</template>\n </bento-button>\n </div>\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, provide, useSlots } from 'vue';\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoDate } from '@/components/date';\n import { BentoLink } from '@/components/link';\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { BentoStructuredList, BentoStructuredListItem } from '@/components/structured-list';\n import SquareSmallIcon from '@adyen/ui-assets-icons-16/vue/square-small-fill';\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { formatDistanceStrict } from 'date-fns/formatDistanceStrict';\n // Types\n import {\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineItemProps,\n type BentoTimelineItemTitle,\n BentoTimelineItemVariant,\n type BentoTimelineRegisterEntry,\n } from '../../timeline.types';\n // Keys\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from '../../timeline.keys';\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '@/components/structured-list/structured-list.keys';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoTimelineItemProps>(), {\n additionalTimestamp: null,\n dataList: null,\n description: null,\n status: 'black',\n tag: undefined,\n title: null,\n type: 'milestone',\n variant: null,\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const isNoteType = computed(() => props.type === 'note');\n\n // Handle variant deprecation, by setting `critical` and `success` variants to their respective colors\n const computedStatus = computed(() => {\n if (props.variant === BentoTimelineItemVariant.CRITICAL) {\n return 'red';\n }\n\n if (props.variant === BentoTimelineItemVariant.SUCCESS) {\n return 'green';\n }\n\n return props.status;\n });\n\n if (props.variant) {\n deprecate(\n 'BentoTimelineItem \"variant\" property',\n `Use the BentoTimelineItem \"status\" modifier instead to modify the color of the timeline icon.\n <bento-timeline-item status=\"red\" />`,\n '2.0.0'\n );\n }\n\n const iconConditionalClasses = computed(() => ({\n [`b-timeline-item__icon--${computedStatus.value}`]: computedStatus.value && !isNoteType.value,\n }));\n const conditionalClasses = computed(() => ({\n 'b-timeline-item--note': isNoteType.value,\n }));\n\n // Provide STRUCTURED_LIST_CONDENSED_INJECTION_KEY as true, to set the internal condensed style in the BentoStructuredList comp\n provide(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, true);\n\n const entry: BentoTimelineEntry = {\n title: props.title,\n date: props.timestamp.date,\n };\n\n // Register timeline entry to the timeline entries array\n const registerTimelineEntry: BentoTimelineRegisterEntry = inject(TIMELINE_REGISTER_ENTRY_INJECTION_KEY);\n const { timelineEntries, unregisterTimelineEntry } = registerTimelineEntry(entry);\n\n // On unmounting timeline item, unregister it from the parent timeline component\n onUnmounted(() => unregisterTimelineEntry());\n\n // Get timeline config data from the parent Timeline comp\n const { showAll, showMoreIndex, hiddenItems, visibleIndexes, timegapLimit }: BentoTimelineConfigData =\n inject(TIMELINE_CONFIG_INJECTION_KEY);\n\n const index = computed(() => timelineEntries.value.indexOf(entry));\n\n const allItemsShowing = computed(() => showAll.value || !visibleIndexes.value);\n const isVisible = computed(() => (allItemsShowing.value ? true : visibleIndexes.value.includes(index.value)));\n const isLinkTitle = computed(() => typeof props.title === 'object');\n const linkTitleProps = computed(() => props.title as BentoTimelineItemTitle);\n const timegap = computed(() => {\n if (!timegapLimit.value) {\n return null;\n }\n const previousDate = timelineEntries.value[index.value - 1]?.date;\n const isPreviousItemVisible = allItemsShowing.value || visibleIndexes.value.includes(index.value - 1);\n if (!previousDate || !isPreviousItemVisible) {\n return null;\n }\n const { date } = timelineEntries.value[index.value];\n const timegapInSelectedUnit = parseInt(\n formatDistanceStrict(previousDate, date, { unit: timegapLimit.value.unit }),\n 10\n );\n return timegapLimit.value.amount < timegapInSelectedUnit\n ? formatDistanceStrict(previousDate, date, { roundingMethod: 'floor' })\n : null;\n });\n const timegapAriaLabel = computed(() => (timegap.value ? t('timegap', { timegap: timegap.value }) : ''));\n const displayShowMoreButton = computed(() => hiddenItems.value && showMoreIndex.value === index.value);\n const isLastItem = computed(() => {\n // The index can be -1 before the parent has had a chance to sort the array.\n return index.value !== -1 && index.value === timelineEntries.value.length - 1;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * BentoTimelineItem renders each event in the Timeline component\n *\n * @example\n * import { BentoDateFormat, BentoTimelineItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimelineItem },\n * template: `\n * <bento-timeline-item\n * title=\"Milestone\"\n * :timestamp=\"{ date: new Date(), value: 'Created at', format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline-item',\n i18n: { messages },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline-item.scss\" />\n"],"names":["BentoTimelineShowMorePlacement","BentoTimelineShowMorePlacement2","BentoTimelineGapUnit","BentoTimelineGapUnit2","BentoTimelineItemVariant","BentoTimelineItemVariant2","BentoTimelineStatus","BentoTimelineStatus2","TIMELINE_REGISTER_ENTRY_INJECTION_KEY","TIMELINE_CONFIG_INJECTION_KEY","__default__$1","defineComponent","messages$1","props","__props","emit","__emit","t","useI18n","addNoteLabel","computed","cancelLabel","newNoteContent","ref","updateNoteContent","newTimelineNoteContent","addNoteTextareaRef","addNoteButtonRef","showAddNoteTextArea","toggleAddNote","nextTick","_a","_b","addNoteToTimeline","timelineEntries","hiddenItems","showAll","timegapLimit","toRefs","timelineIndexes","visibleIndexes","showMoreIndex","sortEntries","a","b","unregisterTimelineEntry","entryToRemove","index","registerTimelineEntry","entry","watch","configData","provide","uuid","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","formatDistanceStrict","laterDate","earlierDate","options","defaultOptions","getDefaultOptions","locale","enUS","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","roundingMethod","getRoundingMethod","milliseconds","minutes","millisecondsInMinute","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","defaultUnit","unit","minutesInDay","minutesInMonth","minutesInYear","seconds","roundedMinutes","hours","days","months","years","__default__","messages","slots","useSlots","hasSlot","useHasSlot","isNoteType","computedStatus","deprecate","iconConditionalClasses","conditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","isLinkTitle","linkTitleProps","timegap","previousDate","isPreviousItemVisible","date","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem"],"mappings":";;;;;;;;;;;;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,cAAA,eACAA,EAAA,cAAA,eAHQA,IAAAD,KAAA,CAAA,CAAA,GAWAE,KAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,MAAA,OACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QANQA,IAAAD,MAAA,CAAA,CAAA,GAiBAE,IAAA,kBAAAC,OACRA,EAAA,UAAA,mBACAA,EAAA,UAA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components/timeline/timeline.keys.ts","../../../vue2/src/components/timeline/timeline.vue","../../../ui-assets/icons-16/dist/vue/square-small-fill.vue","../../../../node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/formatDistanceStrict.js","../../../vue2/src/components/timeline/components/timeline-item/timeline-item.vue"],"sourcesContent":["import { type BentoDateFormat } from '@/components/date/date.types';\nimport { type BentoTag } from '@/components/tag';\nimport { type Ref } from 'vue';\nimport type { RouterLinkProps } from 'vue-router/types/router.d.ts';\n\nexport enum BentoTimelineShowMorePlacement {\n BOTTOM = 'bottom',\n AFTER_FIRST = 'after-first',\n BEFORE_LAST = 'before-last',\n}\n\nexport interface BentoTimelineShowMoreObject {\n limit: number;\n placement?: BentoTimelineShowMorePlacement;\n}\n\nexport enum BentoTimelineGapUnit {\n SECOND = 'second',\n MINUTE = 'minute',\n HOUR = 'hour',\n DAY = 'day',\n MONTH = 'month',\n YEAR = 'year',\n}\n\nexport interface BentoTimelineGapObject {\n amount: number;\n unit: BentoTimelineGapUnit;\n}\n\n/**\n * @deprecated \"variant\" prop was deprecated. Use \"status\" modifier instead.\n */\nexport enum BentoTimelineItemVariant {\n DEFAULT = 'SquareSmallIcon',\n SUCCESS = 'CheckedCircleIcon',\n CRITICAL = 'CrossCircleIcon',\n}\n\nexport enum BentoTimelineStatus {\n BLACK = 'black',\n BLUE = 'blue',\n GREEN = 'green',\n GREY = 'grey',\n ORANGE = 'orange',\n RED = 'red',\n YELLOW = 'yellow',\n}\n\nexport interface BentoTimelineItemTitle extends RouterLinkProps {\n /**\n * Link label.\n */\n title: string;\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external?: boolean;\n\n /**\n * Sets the target of the rendered link.\n */\n target?: string;\n\n // This has been added to allow users to add HTML and Aria attribute\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [name: string]: any;\n}\n\nexport interface BentoTimelineTimestamp {\n date: Date | number;\n format?: BentoDateFormat;\n value?: string;\n}\n\nexport interface BentoTimelineDataListObject {\n label: string;\n value: string;\n}\n\nexport type BentoTimelineDataList = Array<BentoTimelineDataListObject>;\n\nexport type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];\n\nexport interface BentoTimelineEntry {\n title?: string | BentoTimelineItemTitle;\n description?: string;\n date: Date | number;\n}\n\n/**\n * @deprecated from version 2.0.0.\n */\nexport type BentoTimelineRegisterEntry = (props: {\n title?: string | BentoTimelineItemTitle;\n description?: string;\n date: Date | number;\n}) => { timelineEntries: Ref<Array<BentoTimelineEntry>>; index: number; unregisterTimelineEntry: () => void };\n\n/**\n * @private\n */\nexport type BentoInternalTimelineRegisterEntry = (\n entry: BentoTimelineEntry\n) => { timelineEntries: Ref<Array<BentoTimelineEntry>>; unregisterTimelineEntry: () => void };\n\nexport interface BentoTimelineConfigData {\n showAll: Ref<boolean>;\n showMoreIndex: Ref<number>;\n hiddenItems: Ref<number>;\n visibleIndexes: Ref<Array<number>>;\n timegapLimit: Ref<BentoTimelineGapObject>;\n timelineEntries: Ref<Array<BentoTimelineEntry>>;\n}\n\nexport interface BentoTimelineProps {\n /**\n * If set to true, gives the possibility to manually add notes to the timeline via a textarea\n */\n addNote?: boolean;\n /**\n * Object that determines the max number of items to show without clicking the show more button\n * and where in the timeline is the show more button placed\n */\n showMore?: BentoTimelineShowMoreObject;\n /**\n * Object that determines minimum amount of time for the automatic timegap indicator;\n * Define a unit (hour, day, month) and an amount (e.g. { amount: 7, unit: 'days' }).\n * If null, automatic timegap detection will be turned off\n */\n timegapLimit?: BentoTimelineGapObject;\n}\n\nexport interface BentoTimelineItemProps {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp?: BentoTimelineTimestamp;\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList?: BentoTimelineDataList;\n /**\n * Description of the event\n */\n description?: string;\n /**\n * Modifier that changes the color of the timeline icon\n * @values blue, black, green, grey, orange, red, yellow\n */\n status?: string;\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag?: BentoTimelineTagProps;\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: BentoTimelineTimestamp;\n /**\n * Title of the event\n */\n title?: BentoTimelineItemTitle | string;\n /**\n * Type of the timeline item. If set to 'note', it renders a note item in the timeline. Defaults to 'milestone'.\n * @values milestone, note\n */\n type?: string;\n /**\n * Variant for the timeline item\n * @values DEFAULT, SUCCESS, CRITICAL\n *\n * @deprecated Use \"status\" prop instead\n */\n variant?: BentoTimelineItemVariant | `${BentoTimelineItemVariant}`;\n}\n","export const TIMELINE_REGISTER_ENTRY_INJECTION_KEY = Symbol('timeline register entry injection key');\nexport const TIMELINE_CONFIG_INJECTION_KEY = Symbol('timeline config obj injection key');\n","<template>\n <div class=\"b-timeline\">\n <div v-if=\"addNote\" class=\"b-timeline__add-note-section\">\n <bento-button\n v-if=\"!showAddNoteTextArea\"\n ref=\"addNoteButtonRef\"\n variant=\"tertiary\"\n @click=\"toggleAddNote\"\n >{{ addNoteLabel }}</bento-button\n >\n <div v-if=\"showAddNoteTextArea\">\n <bento-textarea\n ref=\"addNoteTextareaRef\"\n :label=\"addNoteLabel\"\n :character-limit=\"150\"\n resizable=\"vertical\"\n @update:model-value=\"updateNoteContent\"\n />\n <bento-button-actions\n :actions=\"[\n { title: addNoteLabel, event: addNoteToTimeline },\n { title: cancelLabel, event: toggleAddNote },\n ]\"\n />\n </div>\n </div>\n <ol class=\"b-timeline__items\">\n <slot />\n </ol>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, nextTick, provide, ref, type Ref, toRefs, watch } from 'vue';\n import { BentoButton, BentoButtonActions } from '@/components/button';\n import { BentoTextarea } from '@/components/textarea';\n import {\n type BentoInternalTimelineRegisterEntry,\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineProps,\n BentoTimelineShowMorePlacement,\n } from './timeline.types';\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from './timeline.keys';\n import messages from './messages.json';\n import { useI18n } from '@/utils/ts/i18n';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoTimelineProps>(), {\n addNote: false,\n showMore: null,\n timegapLimit: null,\n });\n\n const emit = defineEmits(['add-timeline-note']);\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const addNoteLabel = computed(() => t('addNote') as string);\n const cancelLabel = computed(() => t('cancel') as string);\n\n const newNoteContent: Ref<string> = ref();\n const updateNoteContent = (newTimelineNoteContent: string): void => {\n newNoteContent.value = newTimelineNoteContent;\n };\n\n const addNoteTextareaRef: Ref<InstanceType<typeof BentoTextarea>> = ref(null);\n const addNoteButtonRef: Ref<InstanceType<typeof BentoButton>> = ref(null);\n const showAddNoteTextArea = ref(false);\n const toggleAddNote = async () => {\n showAddNoteTextArea.value = !showAddNoteTextArea.value;\n\n await nextTick();\n\n if (showAddNoteTextArea.value) {\n (addNoteTextareaRef.value.$refs.textareaElement as HTMLTextAreaElement)?.focus();\n } else {\n (addNoteButtonRef.value.$el as HTMLButtonElement)?.focus();\n }\n };\n const addNoteToTimeline = () => {\n emit('add-timeline-note', {\n description: newNoteContent.value,\n timestamp: { date: new Date() },\n type: 'note',\n });\n toggleAddNote();\n };\n\n const timelineEntries = ref<Array<BentoTimelineEntry>>([]);\n const hiddenItems = computed(() =>\n props.showMore && timelineEntries.value.length > props.showMore.limit\n ? timelineEntries.value.length - props.showMore.limit\n : null\n );\n const showAll = ref(false);\n const { timegapLimit } = toRefs(props);\n\n const timelineIndexes = computed(() => Array.from(timelineEntries.value.keys()));\n\n const visibleIndexes = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.BEFORE_LAST) {\n return [\n ...timelineIndexes.value.slice(0, props.showMore.limit - 1),\n timelineIndexes.value[timelineIndexes.value.length - 1],\n ];\n }\n\n if (props.showMore.placement === BentoTimelineShowMorePlacement.AFTER_FIRST) {\n return [timelineIndexes.value[0], ...timelineIndexes.value.slice(-(props.showMore.limit - 1))];\n }\n\n return timelineIndexes.value.slice(0, props.showMore.limit);\n });\n\n const showMoreIndex = computed(() => {\n if (!props.showMore) {\n return null;\n }\n\n switch (props.showMore.placement) {\n case BentoTimelineShowMorePlacement.BEFORE_LAST:\n return props.showMore.limit - 2;\n case BentoTimelineShowMorePlacement.AFTER_FIRST:\n return 0;\n case BentoTimelineShowMorePlacement.BOTTOM:\n default:\n return props.showMore.limit - 1;\n }\n });\n\n const sortEntries = () => {\n // Sorts timeline entries based on date in reverse chronological order (newest first).\n timelineEntries.value.sort((a, b) => {\n return new Date(b.date).getTime() - new Date(a.date).getTime();\n });\n };\n\n const unregisterTimelineEntry = (entryToRemove: BentoTimelineEntry) => () => {\n const index = timelineEntries.value.indexOf(entryToRemove);\n // The index can be -1 if the entry has already been removed by a parent re-render.\n if (index > -1) {\n timelineEntries.value.splice(index, 1);\n }\n };\n\n const registerTimelineEntry: BentoInternalTimelineRegisterEntry = entry => {\n timelineEntries.value.push(entry);\n return { timelineEntries, unregisterTimelineEntry: unregisterTimelineEntry(entry) };\n };\n\n watch(\n () => timelineEntries.value.length,\n () => sortEntries()\n );\n\n const configData: BentoTimelineConfigData = {\n showAll,\n showMoreIndex,\n hiddenItems,\n visibleIndexes,\n timegapLimit,\n timelineEntries,\n };\n\n // provide register timeline entry and config data timeline items\n provide(TIMELINE_REGISTER_ENTRY_INJECTION_KEY, registerTimelineEntry);\n provide(TIMELINE_CONFIG_INJECTION_KEY, configData);\n</script>\n<script lang=\"ts\">\n /**\n * Timeline displays a collection of events in a reverse chronological order (newest event is displayed on the top).\n *\n * @example\n * import { BentoDateFormat, BentoTimeline } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimeline },\n * template: `\n * <bento-timeline>\n * <bento-timeline-item\n * title=\"Milestone 1\"\n * :timestamp=\"{ date: new Date(), value: 'Created at' }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * <bento-timeline-item\n * title=\"Milestone 2\"\n * :timestamp=\"{\n * date: new Date(),\n * value: 'Created at',\n * format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD\n * }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * />\n * </bento-timeline>\n * `\n * }\n */\n export default defineComponent({\n i18n: { messages },\n name: 'bento-timeline',\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline.scss\" />\n","\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=\"#001222\" d=\"M10 3.25C11.5188 3.25 12.75 4.48122 12.75 6V10C12.75 11.5188 11.5188 12.75 10 12.75H6C4.48122 12.75 3.25 11.5188 3.25 10V6C3.25 4.48122 4.48122 3.25 6 3.25H10Z\"/></svg>\n</template>\n<script>\n import '../css/main.css';\n\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { getRoundingMethod } from \"./_lib/getRoundingMethod.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { compareAsc } from \"./compareAsc.js\";\nimport {\n millisecondsInMinute,\n minutesInDay,\n minutesInMonth,\n minutesInYear,\n} from \"./constants.js\";\n\n/**\n * The {@link formatDistanceStrict} function options.\n */\n\n/**\n * The unit used to format the distance in {@link formatDistanceStrict}.\n */\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param laterDate - The date\n * @param earlierDate - The date to compare with\n * @param options - An object with options\n *\n * @returns The distance in words\n *\n * @throws `date` must not be Invalid Date\n * @throws `baseDate` must not be Invalid Date\n * @throws `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport function formatDistanceStrict(laterDate, earlierDate, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const comparison = compareAsc(laterDate, earlierDate);\n\n if (isNaN(comparison)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const localizeOptions = Object.assign({}, options, {\n addSuffix: options?.addSuffix,\n comparison: comparison,\n });\n\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n ...(comparison > 0 ? [earlierDate, laterDate] : [laterDate, earlierDate]),\n );\n\n const roundingMethod = getRoundingMethod(options?.roundingMethod ?? \"round\");\n\n const milliseconds = earlierDate_.getTime() - laterDate_.getTime();\n const minutes = milliseconds / millisecondsInMinute;\n\n const timezoneOffset =\n getTimezoneOffsetInMilliseconds(earlierDate_) -\n getTimezoneOffsetInMilliseconds(laterDate_);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n const dstNormalizedMinutes =\n (milliseconds - timezoneOffset) / millisecondsInMinute;\n\n const defaultUnit = options?.unit;\n let unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = \"second\";\n } else if (minutes < 60) {\n unit = \"minute\";\n } else if (minutes < minutesInDay) {\n unit = \"hour\";\n } else if (dstNormalizedMinutes < minutesInMonth) {\n unit = \"day\";\n } else if (dstNormalizedMinutes < minutesInYear) {\n unit = \"month\";\n } else {\n unit = \"year\";\n }\n } else {\n unit = defaultUnit;\n }\n\n // 0 up to 60 seconds\n if (unit === \"second\") {\n const seconds = roundingMethod(milliseconds / 1000);\n return locale.formatDistance(\"xSeconds\", seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === \"minute\") {\n const roundedMinutes = roundingMethod(minutes);\n return locale.formatDistance(\"xMinutes\", roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === \"hour\") {\n const hours = roundingMethod(minutes / 60);\n return locale.formatDistance(\"xHours\", hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === \"day\") {\n const days = roundingMethod(dstNormalizedMinutes / minutesInDay);\n return locale.formatDistance(\"xDays\", days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === \"month\") {\n const months = roundingMethod(dstNormalizedMinutes / minutesInMonth);\n return months === 12 && defaultUnit !== \"month\"\n ? locale.formatDistance(\"xYears\", 1, localizeOptions)\n : locale.formatDistance(\"xMonths\", months, localizeOptions);\n\n // 1 year up to max Date\n } else {\n const years = roundingMethod(dstNormalizedMinutes / minutesInYear);\n return locale.formatDistance(\"xYears\", years, localizeOptions);\n }\n}\n\n// Fallback for modularized imports:\nexport default formatDistanceStrict;\n","<template>\n <li v-if=\"isVisible\" class=\"b-timeline-item\" :class=\"conditionalClasses\">\n <div v-if=\"timegap\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__icon b-timeline-item__icon--timegap\"></div>\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography class=\"b-timeline-item__timegap\" :aria-label=\"timegapAriaLabel\">\n {{ timegap }}\n </bento-typography>\n </div>\n </div>\n <div class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <square-small-icon class=\"b-timeline-item__icon\" :class=\"iconConditionalClasses\" />\n <div\n v-if=\"!isLastItem\"\n class=\"b-timeline-item__separator\"\n data-testid=\"last-timeline-item-separator\"\n ></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-typography\n v-if=\"!isNoteType\"\n el=\"div\"\n variant=\"body\"\n strongest\n class=\"b-timeline-item__title\"\n role=\"heading\"\n aria-level=\"2\"\n >\n <bento-link v-if=\"isLinkTitle\" v-bind=\"linkTitleProps\" disable-typography>{{\n linkTitleProps.title\n }}</bento-link>\n <span v-else>{{ title }}</span>\n </bento-typography>\n\n <bento-typography\n v-if=\"isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <bento-typography v-if=\"timestamp\" class=\"b-timeline-item__timestamp\" el=\"div\" variant=\"caption\">\n <bento-date :date=\"timestamp.date\" :format=\"timestamp.format\" disable-typography />\n {{ timestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && additionalTimestamp\"\n class=\"b-timeline-item__timestamp\"\n el=\"div\"\n variant=\"caption\"\n >\n <bento-date\n :date=\"additionalTimestamp.date\"\n :format=\"additionalTimestamp.format\"\n disable-typography\n />\n {{ additionalTimestamp.value }}\n </bento-typography>\n\n <bento-typography\n v-if=\"!isNoteType && (description || hasSlot('default'))\"\n el=\"div\"\n variant=\"body\"\n class=\"b-timeline-item__description\"\n >\n <slot>{{ description }}</slot>\n </bento-typography>\n\n <div v-if=\"!isNoteType && dataList\" class=\"b-timeline-item__data-list\">\n <bento-structured-list>\n <bento-structured-list-item\n v-for=\"listEntry in dataList\"\n :key=\"generateUid(listEntry.label)\"\n :label=\"listEntry.label\"\n >\n <bento-typography variant=\"caption\">{{ listEntry.value }}</bento-typography>\n </bento-structured-list-item>\n </bento-structured-list>\n </div>\n <bento-tag v-if=\"!isNoteType && tag\" v-bind=\"tag\" class=\"b-timeline-item__tag\" />\n </div>\n </div>\n <div v-if=\"displayShowMoreButton\" class=\"b-timeline-item__row\">\n <div class=\"b-timeline-item__marker\" aria-hidden=\"true\">\n <div class=\"b-timeline-item__separator\"></div>\n </div>\n <div class=\"b-timeline-item__content\">\n <bento-button class=\"b-timeline__show-more\" variant=\"tertiary\" @click=\"showAll = !showAll\">\n <template v-if=\"!showAll\">{{ t('showMore', { items: hiddenItems }) }}</template>\n <template v-else>{{ t('showLess') }}</template>\n </bento-button>\n </div>\n </div>\n </li>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, provide, useSlots } from 'vue';\n // Components\n import { BentoButton } from '@/components/button';\n import { BentoDate } from '@/components/date';\n import { BentoLink } from '@/components/link';\n import { BentoTag } from '@/components/tag';\n import { BentoTypography } from '@/components/typography';\n import { BentoStructuredList, BentoStructuredListItem } from '@/components/structured-list';\n import SquareSmallIcon from '@adyen/ui-assets-icons-16/vue/square-small-fill';\n // Utils\n import { deprecate } from '@/utils/ts/deprecate';\n import { generateUid } from '@/core/utils/ts';\n import { useI18n } from '@/utils/ts/i18n';\n import { useHasSlot } from '@/composables';\n import { formatDistanceStrict } from 'date-fns/formatDistanceStrict';\n // Types\n import {\n type BentoTimelineConfigData,\n type BentoTimelineEntry,\n type BentoTimelineItemProps,\n type BentoTimelineItemTitle,\n BentoTimelineItemVariant,\n type BentoTimelineRegisterEntry,\n } from '../../timeline.types';\n // Keys\n import { TIMELINE_CONFIG_INJECTION_KEY, TIMELINE_REGISTER_ENTRY_INJECTION_KEY } from '../../timeline.keys';\n import { STRUCTURED_LIST_CONDENSED_INJECTION_KEY } from '@/components/structured-list/structured-list.keys';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = withDefaults(defineProps<BentoTimelineItemProps>(), {\n additionalTimestamp: null,\n dataList: null,\n description: null,\n status: 'black',\n tag: undefined,\n title: null,\n type: 'milestone',\n variant: null,\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const isNoteType = computed(() => props.type === 'note');\n\n // Handle variant deprecation, by setting `critical` and `success` variants to their respective colors\n const computedStatus = computed(() => {\n if (props.variant === BentoTimelineItemVariant.CRITICAL) {\n return 'red';\n }\n\n if (props.variant === BentoTimelineItemVariant.SUCCESS) {\n return 'green';\n }\n\n return props.status;\n });\n\n if (props.variant) {\n deprecate(\n 'BentoTimelineItem \"variant\" property',\n `Use the BentoTimelineItem \"status\" modifier instead to modify the color of the timeline icon.\n <bento-timeline-item status=\"red\" />`,\n '2.0.0'\n );\n }\n\n const iconConditionalClasses = computed(() => ({\n [`b-timeline-item__icon--${computedStatus.value}`]: computedStatus.value && !isNoteType.value,\n }));\n const conditionalClasses = computed(() => ({\n 'b-timeline-item--note': isNoteType.value,\n }));\n\n // Provide STRUCTURED_LIST_CONDENSED_INJECTION_KEY as true, to set the internal condensed style in the BentoStructuredList comp\n provide(STRUCTURED_LIST_CONDENSED_INJECTION_KEY, true);\n\n const entry: BentoTimelineEntry = {\n title: props.title,\n date: props.timestamp.date,\n };\n\n // Register timeline entry to the timeline entries array\n const registerTimelineEntry: BentoTimelineRegisterEntry = inject(TIMELINE_REGISTER_ENTRY_INJECTION_KEY);\n const { timelineEntries, unregisterTimelineEntry } = registerTimelineEntry(entry);\n\n // On unmounting timeline item, unregister it from the parent timeline component\n onUnmounted(() => unregisterTimelineEntry());\n\n // Get timeline config data from the parent Timeline comp\n const { showAll, showMoreIndex, hiddenItems, visibleIndexes, timegapLimit }: BentoTimelineConfigData =\n inject(TIMELINE_CONFIG_INJECTION_KEY);\n\n const index = computed(() => timelineEntries.value.indexOf(entry));\n\n const allItemsShowing = computed(() => showAll.value || !visibleIndexes.value);\n const isVisible = computed(() => (allItemsShowing.value ? true : visibleIndexes.value.includes(index.value)));\n const isLinkTitle = computed(() => typeof props.title === 'object');\n const linkTitleProps = computed(() => props.title as BentoTimelineItemTitle);\n const timegap = computed(() => {\n if (!timegapLimit.value) {\n return null;\n }\n const previousDate = timelineEntries.value[index.value - 1]?.date;\n const isPreviousItemVisible = allItemsShowing.value || visibleIndexes.value.includes(index.value - 1);\n if (!previousDate || !isPreviousItemVisible) {\n return null;\n }\n const { date } = timelineEntries.value[index.value];\n const timegapInSelectedUnit = parseInt(\n formatDistanceStrict(previousDate, date, { unit: timegapLimit.value.unit }),\n 10\n );\n return timegapLimit.value.amount < timegapInSelectedUnit\n ? formatDistanceStrict(previousDate, date, { roundingMethod: 'floor' })\n : null;\n });\n const timegapAriaLabel = computed(() => (timegap.value ? t('timegap', { timegap: timegap.value }) : ''));\n const displayShowMoreButton = computed(() => hiddenItems.value && showMoreIndex.value === index.value);\n const isLastItem = computed(() => {\n // The index can be -1 before the parent has had a chance to sort the array.\n return index.value !== -1 && index.value === timelineEntries.value.length - 1;\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * BentoTimelineItem renders each event in the Timeline component\n *\n * @example\n * import { BentoDateFormat, BentoTimelineItem } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTimelineItem },\n * template: `\n * <bento-timeline-item\n * title=\"Milestone\"\n * :timestamp=\"{ date: new Date(), value: 'Created at', format: BentoDateFormat.FULL_DATE_EXACT_TIME_WITHOUT_PERIOD }\"\n * :additional-timestamp=\"{ date: new Date(), value: 'Modified at' }\"\n * description=\"Milestone description\"\n * :data-list=\"[\n * { label: 'Label', value: 'Value' },\n * { label: 'Label', value: 'Value' },\n * ]\"\n * :tag=\"{ label: 'Tag'}\"\n * />\n * `\n * }\n */\n export default defineComponent({\n name: 'bento-timeline-item',\n i18n: { messages },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./timeline-item.scss\" />\n"],"names":["BentoTimelineShowMorePlacement","BentoTimelineShowMorePlacement2","BentoTimelineGapUnit","BentoTimelineGapUnit2","BentoTimelineItemVariant","BentoTimelineItemVariant2","BentoTimelineStatus","BentoTimelineStatus2","TIMELINE_REGISTER_ENTRY_INJECTION_KEY","TIMELINE_CONFIG_INJECTION_KEY","__default__$1","defineComponent","messages$1","props","__props","emit","__emit","t","useI18n","addNoteLabel","computed","cancelLabel","newNoteContent","ref","updateNoteContent","newTimelineNoteContent","addNoteTextareaRef","addNoteButtonRef","showAddNoteTextArea","toggleAddNote","nextTick","_a","_b","addNoteToTimeline","timelineEntries","hiddenItems","showAll","timegapLimit","toRefs","timelineIndexes","visibleIndexes","showMoreIndex","sortEntries","a","b","unregisterTimelineEntry","entryToRemove","index","registerTimelineEntry","entry","watch","configData","provide","uuid","openBlock","createElementBlock","mergeProps","_ctx","createCommentVNode","formatDistanceStrict","laterDate","earlierDate","options","defaultOptions","getDefaultOptions","locale","enUS","comparison","compareAsc","localizeOptions","laterDate_","earlierDate_","normalizeDates","roundingMethod","getRoundingMethod","milliseconds","minutes","millisecondsInMinute","timezoneOffset","getTimezoneOffsetInMilliseconds","dstNormalizedMinutes","defaultUnit","unit","minutesInDay","minutesInMonth","minutesInYear","seconds","roundedMinutes","hours","days","months","years","__default__","messages","slots","useSlots","hasSlot","useHasSlot","isNoteType","computedStatus","deprecate","iconConditionalClasses","conditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","isLinkTitle","linkTitleProps","timegap","previousDate","isPreviousItemVisible","date","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem"],"mappings":";;;;;;;;;;;;;;;;;;AAKY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,cAAA,eACAA,EAAA,cAAA,eAHQA,IAAAD,KAAA,CAAA,CAAA,GAWAE,KAAA,kBAAAC,OACRA,EAAA,SAAA,UACAA,EAAA,SAAA,UACAA,EAAA,OAAA,QACAA,EAAA,MAAA,OACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QANQA,IAAAD,MAAA,CAAA,CAAA,GAiBAE,IAAA,kBAAAC,OACRA,EAAA,UAAA,mBACAA,EAAA,UAAA,qBACAA,EAAA,WAAA,mBAHQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,KAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EAAA,MAAA,OACAA,EAAA,SAAA,UAPQA,IAAAD,MAAA,CAAA,CAAA;ACvCC,MAAAE,KAAA,uBAAA,uCAAA,GACAC,KAAA,uBAAA,mCAAA;;;;;;;;;;;;;;;;yDC+MTC,KAAAC,EAAA;AAAA,EAA+B,MAAA,EAAA,UA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E,KAAA,CAAAC;AACI,eAAA;AAEJ,YAAA,EAAA,MAAAC,EAAA,IAAA/E,EAAA,MAAAa,EAAA,KAAA,GACAmE,KAAA;AAAA,QAA8BvD,GAAAoD,GAAAE,GAAA,EAAA,MAAA5E,EAAA,MAAA,KAAA,CAAA;AAAA,QACgD;AAAA,MAC1E;AAEJ,aAAAA,EAAA,MAAA,SAAA6E,KAAAvD,GAAAoD,GAAAE,GAAA,EAAA,gBAAA,QAAA,CAAA,IAAA;AAAA,IAEM,CAAA,GAEVE,IAAA/F,EAAA,MAAA0F,EAAA,QAAA,EAAA,WAAA,EAAA,SAAAA,EAAA,MAAA,CAAA,IAAA,EAAA,GACAM,IAAAhG,EAAA,MAAAe,EAAA,SAAAM,EAAA,UAAAM,EAAA,KAAA,GACAsE,IAAAjG,EAAA,MAEI2B,EAAA,UAAA,MAAAA,EAAA,UAAAb,EAAA,MAAA,SAAA,CAA4E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[4]}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as P, ref as k, createBlock as T, openBlock as c, unref as p, withCtx as v, createElementVNode as d, normalizeStyle as z, createElementBlock as S, mergeProps as R, createCommentVNode as C, toDisplayString as B, computed as l, isRef as H, watch as E, nextTick as U, createVNode as b, withKeys as J, createSlots as W, createTextVNode as w, renderSlot as X, Fragment as G, renderList as Q } from "vue";
2
- import { h as Y, f as tt, B as et } from "./button-actions.O0cnu1_g.js";
2
+ import { h as Y, f as tt, B as et } from "./button-actions.Crj4QFAd.js";
3
3
  import { B as V } from "./popover.types.DgfeurkF.js";
4
4
  import { B as I } from "./typography.6Oo5TOMP.js";
5
5
  import { _ as ot } from "./image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js";
@@ -418,4 +418,4 @@ const mt = /* @__PURE__ */ A(ut, [["render", ft]]), M = {
418
418
  export {
419
419
  Rt as _
420
420
  };
421
- //# sourceMappingURL=tutorial.vue_vue_type_script_setup_true_lang.BGbo_qv_.js.map
421
+ //# sourceMappingURL=tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map