@adyen/bento-vue3 1.34.0 → 1.35.1

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 (203) hide show
  1. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/dropdown/composables/use-display-value.types.d.ts +1 -0
  7. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +7 -7
  8. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
  9. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +7 -7
  10. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +7 -7
  11. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +7 -7
  12. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -3
  15. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
  16. package/dist/@types/packages/vue2/src/utils/ts/get-date-locale/get-date-locale.d.ts +11 -0
  17. package/dist/accordion.js +1 -1
  18. package/dist/action-bar.js +1 -1
  19. package/dist/alert.js +1 -1
  20. package/dist/assets/accordion-item.css +1 -1
  21. package/dist/assets/action-bar.css +1 -1
  22. package/dist/assets/avatar.css +1 -1
  23. package/dist/assets/base-modal.css +1 -1
  24. package/dist/assets/calendar.css +1 -1
  25. package/dist/assets/card.css +1 -1
  26. package/dist/assets/checkbox.css +1 -1
  27. package/dist/assets/code-snippet.css +1 -1
  28. package/dist/assets/currency.css +1 -0
  29. package/dist/assets/data-grid.css +1 -1
  30. package/dist/assets/date-range-picker.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/dropdown.css +1 -1
  33. package/dist/assets/error-message.css +1 -1
  34. package/dist/assets/filter-bar.css +1 -1
  35. package/dist/assets/header.css +1 -1
  36. package/dist/assets/inspector.css +1 -1
  37. package/dist/assets/loading-button.css +1 -1
  38. package/dist/assets/menu.css +1 -1
  39. package/dist/assets/modal-fullscreen.css +1 -1
  40. package/dist/assets/popover.css +1 -1
  41. package/dist/assets/sidepanel.css +1 -1
  42. package/dist/assets/structured-list-item.css +1 -1
  43. package/dist/assets/tutorial.css +1 -1
  44. package/dist/avatar.js +1 -1
  45. package/dist/button.js +2 -2
  46. package/dist/card.js +1 -1
  47. package/dist/checkbox.js +2 -2
  48. package/dist/chunks/accordion-item.C30QFxol.js +142 -0
  49. package/dist/chunks/accordion-item.C30QFxol.js.map +1 -0
  50. package/dist/chunks/{action-bar.DGQYYi8b.js → action-bar.5XBrXwYv.js} +58 -44
  51. package/dist/chunks/{action-bar.DGQYYi8b.js.map → action-bar.5XBrXwYv.js.map} +1 -1
  52. package/dist/chunks/{alert.Bz4tNKDH.js → alert.BvSx_Bi7.js} +26 -20
  53. package/dist/chunks/{alert.Bz4tNKDH.js.map → alert.BvSx_Bi7.js.map} +1 -1
  54. package/dist/chunks/{avatar.mNlMngHQ.js → avatar.8erKxh8t.js} +13 -13
  55. package/dist/chunks/avatar.8erKxh8t.js.map +1 -0
  56. package/dist/chunks/{base-modal.Bl7DBkt0.js → base-modal.BenvK-Np.js} +35 -29
  57. package/dist/chunks/{base-modal.Bl7DBkt0.js.map → base-modal.BenvK-Np.js.map} +1 -1
  58. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js → button-actions-with-menu.CHOjMHpd.js} +4 -4
  59. package/dist/chunks/{button-actions-with-menu.BLmcwr2f.js.map → button-actions-with-menu.CHOjMHpd.js.map} +1 -1
  60. package/dist/chunks/{button-actions.hdK5IgrZ.js → button-actions.DyI_dSvx.js} +2 -2
  61. package/dist/chunks/{button-actions.hdK5IgrZ.js.map → button-actions.DyI_dSvx.js.map} +1 -1
  62. package/dist/chunks/{calendar.D--sOCBT.js → calendar.DzYaxc0M.js} +148 -148
  63. package/dist/chunks/calendar.DzYaxc0M.js.map +1 -0
  64. package/dist/chunks/{card.BvSoujBc.js → card.Bt8jcp9I.js} +45 -37
  65. package/dist/chunks/card.Bt8jcp9I.js.map +1 -0
  66. package/dist/chunks/{checkbox-group.CuLP3hPd.js → checkbox-group.B0wngKi6.js} +4 -4
  67. package/dist/chunks/{checkbox-group.CuLP3hPd.js.map → checkbox-group.B0wngKi6.js.map} +1 -1
  68. package/dist/chunks/{checkbox.DMMXn-h8.js → checkbox.Bk_jmkGe.js} +50 -40
  69. package/dist/chunks/{checkbox.DMMXn-h8.js.map → checkbox.Bk_jmkGe.js.map} +1 -1
  70. package/dist/chunks/{code-snippet.BWM5w4CP.js → code-snippet.1SigVnjS.js} +97 -88
  71. package/dist/chunks/code-snippet.1SigVnjS.js.map +1 -0
  72. package/dist/chunks/{controls-group.BnZVHgQK.js → controls-group.COc0kArc.js} +2 -2
  73. package/dist/chunks/{controls-group.BnZVHgQK.js.map → controls-group.COc0kArc.js.map} +1 -1
  74. package/dist/chunks/{copy.h-wVGvID.js → copy.1-HH1fz5.js} +28 -20
  75. package/dist/chunks/{copy.h-wVGvID.js.map → copy.1-HH1fz5.js.map} +1 -1
  76. package/dist/chunks/{currency.CFJy6QYU.js → currency.BdtY-UIM.js} +3 -2
  77. package/dist/chunks/{currency.CFJy6QYU.js.map → currency.BdtY-UIM.js.map} +1 -1
  78. package/dist/chunks/{dashboard-section.BIH2wzgk.js → dashboard-section.BOrGKdY9.js} +2 -2
  79. package/dist/chunks/{dashboard-section.BIH2wzgk.js.map → dashboard-section.BOrGKdY9.js.map} +1 -1
  80. package/dist/chunks/{dashed-underline.CFJdLuJp.js → dashed-underline.BO4BuqUM.js} +2 -2
  81. package/dist/chunks/{dashed-underline.CFJdLuJp.js.map → dashed-underline.BO4BuqUM.js.map} +1 -1
  82. package/dist/chunks/{data-grid-template.21gqdYrs.js → data-grid-template.O946JKTa.js} +2 -2
  83. package/dist/chunks/{data-grid-template.21gqdYrs.js.map → data-grid-template.O946JKTa.js.map} +1 -1
  84. package/dist/chunks/{data-grid.DUwLxtW_.js → data-grid.Bv5TA_zR.js} +578 -532
  85. package/dist/chunks/{data-grid.DUwLxtW_.js.map → data-grid.Bv5TA_zR.js.map} +1 -1
  86. package/dist/chunks/{date-picker.21z_Sw4V.js → date-picker.DvEPEMIM.js} +99 -91
  87. package/dist/chunks/date-picker.DvEPEMIM.js.map +1 -0
  88. package/dist/chunks/{date-range-picker.K2TeW8aX.js → date-range-picker.BLVlkkG_.js} +338 -316
  89. package/dist/chunks/date-range-picker.BLVlkkG_.js.map +1 -0
  90. package/dist/chunks/{date.D8rQMzMG.js → date.CYUV4seY.js} +92 -92
  91. package/dist/chunks/{date.D8rQMzMG.js.map → date.CYUV4seY.js.map} +1 -1
  92. package/dist/chunks/{dropdown-tag.BNJnscD2.js → dropdown-tag.bpKWbC_O.js} +3 -3
  93. package/dist/chunks/{dropdown-tag.BNJnscD2.js.map → dropdown-tag.bpKWbC_O.js.map} +1 -1
  94. package/dist/chunks/{dropdown.ex87AZ7s.js → dropdown.rFZp3hMb.js} +212 -193
  95. package/dist/chunks/dropdown.rFZp3hMb.js.map +1 -0
  96. package/dist/chunks/{error-message.D2Y99KjT.js → error-message.DblYEZ7E.js} +43 -29
  97. package/dist/chunks/{error-message.D2Y99KjT.js.map → error-message.DblYEZ7E.js.map} +1 -1
  98. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  99. package/dist/chunks/{filter-bar.BAmG-yML.js → filter-bar.IN7gqxsc.js} +727 -712
  100. package/dist/chunks/filter-bar.IN7gqxsc.js.map +1 -0
  101. package/dist/chunks/{footer-actions.gtxofUAa.js → footer-actions.CyoMN_ca.js} +2 -2
  102. package/dist/chunks/{footer-actions.gtxofUAa.js.map → footer-actions.CyoMN_ca.js.map} +1 -1
  103. package/dist/chunks/{form-layout-title.Boi0QQZL.js → form-layout-title.Bi_3du_6.js} +2 -2
  104. package/dist/chunks/{form-layout-title.Boi0QQZL.js.map → form-layout-title.Bi_3du_6.js.map} +1 -1
  105. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  106. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  107. package/dist/chunks/{header.BMYhkrGT.js → header.Byd6jXl6.js} +104 -98
  108. package/dist/chunks/{header.BMYhkrGT.js.map → header.Byd6jXl6.js.map} +1 -1
  109. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  110. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  111. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  112. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  113. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  114. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  115. package/dist/chunks/{input-field.Dely7A8G.js → input-field.CgS1AEGu.js} +3 -3
  116. package/dist/chunks/{input-field.Dely7A8G.js.map → input-field.CgS1AEGu.js.map} +1 -1
  117. package/dist/chunks/{inspector.types.t2SPyhw3.js → inspector.types.xpv2J9pJ.js} +44 -36
  118. package/dist/chunks/{inspector.types.t2SPyhw3.js.map → inspector.types.xpv2J9pJ.js.map} +1 -1
  119. package/dist/chunks/loading-button.Bntgn6Lk.js +137 -0
  120. package/dist/chunks/loading-button.Bntgn6Lk.js.map +1 -0
  121. package/dist/chunks/{menu.CLicp_2I.js → menu.BN5WGXw3.js} +2 -2
  122. package/dist/chunks/{menu.CLicp_2I.js.map → menu.BN5WGXw3.js.map} +1 -1
  123. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js → modal-fullscreen.zljoH4pr.js} +35 -29
  124. package/dist/chunks/{modal-fullscreen.Caqa7dDp.js.map → modal-fullscreen.zljoH4pr.js.map} +1 -1
  125. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js → modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js} +31 -25
  126. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.tT8umwqG.js.map +1 -0
  127. package/dist/chunks/{pagination.I5w8bpUS.js → pagination.BMn5ryDD.js} +2 -2
  128. package/dist/chunks/{pagination.I5w8bpUS.js.map → pagination.BMn5ryDD.js.map} +1 -1
  129. package/dist/chunks/{popover.DQP3ce2x.js → popover.pDk6zsak.js} +2 -2
  130. package/dist/chunks/{popover.DQP3ce2x.js.map → popover.pDk6zsak.js.map} +1 -1
  131. package/dist/chunks/{radio-group.lOSBHghv.js → radio-group.DUtoFXmr.js} +3 -3
  132. package/dist/chunks/{radio-group.lOSBHghv.js.map → radio-group.DUtoFXmr.js.map} +1 -1
  133. package/dist/chunks/{search-bar.GCRTgBUA.js → search-bar.poJCoGD-.js} +49 -41
  134. package/dist/chunks/{search-bar.GCRTgBUA.js.map → search-bar.poJCoGD-.js.map} +1 -1
  135. package/dist/chunks/{secondary-nav.CGH_6m7u.js → secondary-nav.Dyvd-YBg.js} +2 -2
  136. package/dist/chunks/{secondary-nav.CGH_6m7u.js.map → secondary-nav.Dyvd-YBg.js.map} +1 -1
  137. package/dist/chunks/{selection-card-group.BdTuPhEm.js → selection-card-group.CHBS81j6.js} +3 -3
  138. package/dist/chunks/{selection-card-group.BdTuPhEm.js.map → selection-card-group.CHBS81j6.js.map} +1 -1
  139. package/dist/chunks/{sidepanel.DA8nQepj.js → sidepanel.CuQCXV1E.js} +36 -30
  140. package/dist/chunks/{sidepanel.DA8nQepj.js.map → sidepanel.CuQCXV1E.js.map} +1 -1
  141. package/dist/chunks/{structured-list-item.Z-1ivOFu.js → structured-list-item.1A2sjhP4.js} +35 -29
  142. package/dist/chunks/{structured-list-item.Z-1ivOFu.js.map → structured-list-item.1A2sjhP4.js.map} +1 -1
  143. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js → summary-grid-item-custom.CuvUVoQ8.js} +2 -2
  144. package/dist/chunks/{summary-grid-item-custom.Dq3IIEvH.js.map → summary-grid-item-custom.CuvUVoQ8.js.map} +1 -1
  145. package/dist/chunks/{textarea.kYFGQFwd.js → textarea.CHnvON8G.js} +2 -2
  146. package/dist/chunks/{textarea.kYFGQFwd.js.map → textarea.CHnvON8G.js.map} +1 -1
  147. package/dist/chunks/{timeline-item.D-Yy2qQr.js → timeline-item.Dc_l5Xyy.js} +81 -75
  148. package/dist/chunks/{timeline-item.D-Yy2qQr.js.map → timeline-item.Dc_l5Xyy.js.map} +1 -1
  149. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js} +82 -70
  150. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D-ZFDn95.js.map → tutorial.vue_vue_type_script_setup_true_lang.DdLmYCOe.js.map} +1 -1
  151. package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js → use-cached-selected-values.CS3gHOyI.js} +86 -72
  152. package/dist/chunks/{use-cached-selected-values.ClVxNmUf.js.map → use-cached-selected-values.CS3gHOyI.js.map} +1 -1
  153. package/dist/code-snippet.js +1 -1
  154. package/dist/currency.js +1 -1
  155. package/dist/dashboard-template.js +1 -1
  156. package/dist/dashed-underline.js +1 -1
  157. package/dist/data-grid-template.js +1 -1
  158. package/dist/data-grid.js +1 -1
  159. package/dist/date-picker.js +2 -2
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/date.js +1 -1
  162. package/dist/dropdown.js +3 -3
  163. package/dist/filter-bar.js +1 -1
  164. package/dist/form-layout.js +1 -1
  165. package/dist/header.js +1 -1
  166. package/dist/index.js +43 -43
  167. package/dist/input-field.js +1 -1
  168. package/dist/inspector.js +1 -1
  169. package/dist/internal.js +5 -5
  170. package/dist/menu.js +1 -1
  171. package/dist/modal-fullscreen.js +1 -1
  172. package/dist/modal.js +2 -2
  173. package/dist/pagination.js +1 -1
  174. package/dist/popover.js +1 -1
  175. package/dist/radio-group.js +1 -1
  176. package/dist/search-bar.js +2 -2
  177. package/dist/secondary-nav.js +1 -1
  178. package/dist/selection-card.js +1 -1
  179. package/dist/sidepanel.js +1 -1
  180. package/dist/structured-list.js +1 -1
  181. package/dist/styles/bento.css +3 -0
  182. package/dist/styles/legacy.css +3 -0
  183. package/dist/styles/styleguide.css +3 -0
  184. package/dist/summary-grid.js +1 -1
  185. package/dist/textarea.js +1 -1
  186. package/dist/timeline.js +1 -1
  187. package/dist/tutorial.js +1 -1
  188. package/dist/web-types.json +1 -1
  189. package/package.json +2 -2
  190. package/dist/chunks/accordion-item.CQ8DLt9l.js +0 -126
  191. package/dist/chunks/accordion-item.CQ8DLt9l.js.map +0 -1
  192. package/dist/chunks/avatar.mNlMngHQ.js.map +0 -1
  193. package/dist/chunks/calendar.D--sOCBT.js.map +0 -1
  194. package/dist/chunks/card.BvSoujBc.js.map +0 -1
  195. package/dist/chunks/code-snippet.BWM5w4CP.js.map +0 -1
  196. package/dist/chunks/date-picker.21z_Sw4V.js.map +0 -1
  197. package/dist/chunks/date-range-picker.K2TeW8aX.js.map +0 -1
  198. package/dist/chunks/dropdown.ex87AZ7s.js.map +0 -1
  199. package/dist/chunks/filter-bar.BAmG-yML.js.map +0 -1
  200. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  201. package/dist/chunks/loading-button.Mx-oDIGy.js +0 -123
  202. package/dist/chunks/loading-button.Mx-oDIGy.js.map +0 -1
  203. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.Dzmth-oW.js.map +0 -1
@@ -1,18 +1,18 @@
1
- import { defineComponent as ne, computed as m, ref as D, toRefs as ce, provide as z, resolveComponent as I, openBlock as i, createElementBlock as p, createBlock as w, withCtx as h, createTextVNode as T, toDisplayString as g, createCommentVNode as c, createVNode as S, createElementVNode as y, renderSlot as H, mergeProps as V, inject as P, onUnmounted as fe, normalizeClass as W, Fragment as Y, renderList as ve } from "vue";
1
+ import { defineComponent as ne, computed as m, ref as D, toRefs as ce, provide as z, resolveComponent as I, openBlock as i, createElementBlock as v, createBlock as T, withCtx as h, createTextVNode as w, toDisplayString as g, createCommentVNode as c, createVNode as S, createElementVNode as y, renderSlot as H, mergeProps as V, inject as K, onUnmounted as fe, normalizeClass as W, Fragment as Y, renderList as pe } from "vue";
2
2
  import { B as oe } from "./button.Br6CyG40.js";
3
- import { B as pe } from "./textarea.kYFGQFwd.js";
3
+ import { B as ve } from "./textarea.CHnvON8G.js";
4
4
  import { u as ae } from "./i18n.DL9GT2-k.js";
5
- import { B as _e } from "./button-actions.hdK5IgrZ.js";
5
+ import { B as _e } from "./button-actions.DyI_dSvx.js";
6
6
  import { _ as q } from "./_plugin-vue_export-helper.CHgC5LLL.js";
7
- import { B as be } from "./date.D8rQMzMG.js";
7
+ import { B as be } from "./date.CYUV4seY.js";
8
8
  import { B as he } from "./link.2YS7haGc.js";
9
9
  import { B as ge } from "./tag.RYw4OhWk.js";
10
10
  import { B as ye, d as Ne } from "./typography.z9P0Ec3Q.js";
11
- import { B as Ie, a as Ee, S as Te } from "./structured-list-item.Z-1ivOFu.js";
12
- import { g as we } from "./unique-id.XFfoKuc2.js";
11
+ import { B as Ie, a as Ee, S as we } from "./structured-list-item.1A2sjhP4.js";
12
+ import { g as Te } from "./unique-id.XFfoKuc2.js";
13
13
  import { u as Se } from "./use-has-slot.B7eQSabc.js";
14
- import { r as Ce, l as Me, t as B, g as Z } from "./index.B_UZQ6qF.js";
15
- import { c as ke, a as Le } from "./index.xqFSZOAb.js";
14
+ import { r as Ce, l as Me, t as B, a as Z } from "./get-date-locale.BN8xEjY0.js";
15
+ import { c as ke, a as Le } from "./index.DDnf1O9p.js";
16
16
  import "../assets/timeline-item.css";
17
17
  var G = 1e3 * 60, U = 60 * 24, Q = U * 30, X = U * 365;
18
18
  function x(e, o) {
@@ -28,12 +28,12 @@ function x(e, o) {
28
28
  r.addSuffix = !!s.addSuffix, r.comparison = N;
29
29
  var a, f;
30
30
  N > 0 ? (a = B(o), f = B(e)) : (a = B(e), f = B(o));
31
- var v = s.roundingMethod == null ? "round" : String(s.roundingMethod), n;
32
- if (v === "floor")
31
+ var p = s.roundingMethod == null ? "round" : String(s.roundingMethod), n;
32
+ if (p === "floor")
33
33
  n = Math.floor;
34
- else if (v === "ceil")
34
+ else if (p === "ceil")
35
35
  n = Math.ceil;
36
- else if (v === "round")
36
+ else if (p === "round")
37
37
  n = Math.round;
38
38
  else
39
39
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
@@ -48,8 +48,8 @@ function x(e, o) {
48
48
  var O = n(_ / 60);
49
49
  return l.formatDistance("xHours", O, r);
50
50
  } else if (t === "day") {
51
- var $ = n(b / U);
52
- return l.formatDistance("xDays", $, r);
51
+ var R = n(b / U);
52
+ return l.formatDistance("xDays", R, r);
53
53
  } else if (t === "month") {
54
54
  var d = n(b / Q);
55
55
  return d === 12 && s.unit !== "month" ? l.formatDistance("xYears", 1, r) : l.formatDistance("xMonths", d, r);
@@ -76,7 +76,7 @@ const le = Symbol("timeline register entry injection key"), re = Symbol("timelin
76
76
  }, Oe = ne({
77
77
  i18n: { messages: ee },
78
78
  name: "bento-timeline",
79
- components: { BentoButton: oe, BentoButtonActions: _e, BentoTextarea: pe },
79
+ components: { BentoButton: oe, BentoButtonActions: _e, BentoTextarea: ve },
80
80
  props: {
81
81
  /**
82
82
  * If set to true, gives the possibility to manually add notes to the timeline via a textarea
@@ -107,14 +107,14 @@ const le = Symbol("timeline register entry injection key"), re = Symbol("timelin
107
107
  setup(e, { emit: o }) {
108
108
  const { t: s } = ae({ messages: ee }), l = m(() => s("addNote")), N = m(() => s("cancel")), r = D(), a = (d) => {
109
109
  r.value = d;
110
- }, f = D(!1), v = () => {
110
+ }, f = D(!1), p = () => {
111
111
  f.value = !f.value;
112
112
  }, n = () => {
113
113
  o("add-timeline-note", {
114
114
  description: r.value,
115
115
  timestamp: { date: /* @__PURE__ */ new Date() },
116
116
  type: "note"
117
- }), v();
117
+ }), p();
118
118
  }, u = D([]), _ = m(
119
119
  () => e.showMore && u.value.length > e.showMore.limit ? u.value.length - e.showMore.limit : null
120
120
  ), C = D(!1), { timegapLimit: b } = ce(e), t = m(() => {
@@ -139,52 +139,52 @@ const le = Symbol("timeline register entry injection key"), re = Symbol("timelin
139
139
  }
140
140
  }), k = (d) => () => {
141
141
  var E;
142
- u.value = (E = u.value) == null ? void 0 : E.filter((R, L) => L !== d);
143
- }, O = ({ title: d, description: E, date: R }) => {
142
+ u.value = (E = u.value) == null ? void 0 : E.filter(($, L) => L !== d);
143
+ }, O = ({ title: d, description: E, date: $ }) => {
144
144
  const L = u.value.length;
145
- return u.value.push({ title: d, description: E, date: R }), { timelineEntries: u, index: L, unregisterTimelineEntry: k(L) };
146
- }, $ = {
145
+ return u.value.push({ title: d, description: E, date: $ }), { timelineEntries: u, index: L, unregisterTimelineEntry: k(L) };
146
+ }, R = {
147
147
  showAll: C,
148
148
  showMoreIndex: M,
149
149
  hiddenItems: _,
150
150
  visibleIndexes: t,
151
151
  timegapLimit: b
152
152
  };
153
- return z(le, O), z(re, $), {
153
+ return z(le, O), z(re, R), {
154
154
  addNoteLabel: l,
155
155
  cancelLabel: N,
156
- toggleAddNote: v,
156
+ toggleAddNote: p,
157
157
  updateNoteContent: a,
158
158
  addNoteToTimeline: n,
159
159
  showAddNoteTextArea: f
160
160
  };
161
161
  }
162
- }), $e = { class: "b-timeline" }, Re = {
162
+ }), Re = { class: "b-timeline" }, $e = {
163
163
  key: 0,
164
164
  class: "b-timeline__add-note-section"
165
165
  }, De = { key: 1 }, Be = { class: "b-timeline__items" };
166
166
  function je(e, o, s, l, N, r) {
167
- const a = I("bento-button"), f = I("bento-textarea"), v = I("bento-button-actions");
168
- return i(), p("div", $e, [
169
- e.addNote ? (i(), p("div", Re, [
170
- e.showAddNoteTextArea ? c("", !0) : (i(), w(a, {
167
+ const a = I("bento-button"), f = I("bento-textarea"), p = I("bento-button-actions");
168
+ return i(), v("div", Re, [
169
+ e.addNote ? (i(), v("div", $e, [
170
+ e.showAddNoteTextArea ? c("", !0) : (i(), T(a, {
171
171
  key: 0,
172
172
  variant: "tertiary",
173
173
  onClick: e.toggleAddNote
174
174
  }, {
175
175
  default: h(() => [
176
- T(g(e.addNoteLabel), 1)
176
+ w(g(e.addNoteLabel), 1)
177
177
  ]),
178
178
  _: 1
179
179
  }, 8, ["onClick"])),
180
- e.showAddNoteTextArea ? (i(), p("div", De, [
180
+ e.showAddNoteTextArea ? (i(), v("div", De, [
181
181
  S(f, {
182
182
  label: e.addNoteLabel,
183
183
  "character-limit": 150,
184
184
  resizable: "vertical",
185
185
  onInput: e.updateNoteContent
186
186
  }, null, 8, ["label", "onInput"]),
187
- S(v, {
187
+ S(p, {
188
188
  actions: [
189
189
  { title: e.addNoteLabel, event: e.addNoteToTimeline },
190
190
  { title: e.cancelLabel, event: e.toggleAddNote }
@@ -197,7 +197,7 @@ function je(e, o, s, l, N, r) {
197
197
  ])
198
198
  ]);
199
199
  }
200
- const pt = /* @__PURE__ */ q(Oe, [["render", je], ["__scopeId", "data-v-f844f908"]]);
200
+ const vt = /* @__PURE__ */ q(Oe, [["render", je], ["__scopeId", "data-v-f844f908"]]);
201
201
  let te = 0;
202
202
  const Ue = {
203
203
  beforeCreate() {
@@ -205,14 +205,14 @@ const Ue = {
205
205
  }
206
206
  }, Fe = { key: 0 };
207
207
  function Ye(e, o, s, l, N, r) {
208
- return i(), p("svg", V({ role: "img" }, e.$attrs, {
208
+ return i(), v("svg", V({ role: "img" }, e.$attrs, {
209
209
  class: "ui-assets-icons-16",
210
210
  xmlns: "http://www.w3.org/2000/svg",
211
211
  width: "16",
212
212
  height: "16",
213
213
  fill: "none"
214
214
  }), [
215
- e.$attrs["svg-title"] ? (i(), p("title", Fe, g(e.$attrs["svg-title"]), 1)) : c("", !0),
215
+ e.$attrs["svg-title"] ? (i(), v("title", Fe, g(e.$attrs["svg-title"]), 1)) : c("", !0),
216
216
  o[0] || (o[0] = y("path", {
217
217
  fill: "#00112C",
218
218
  d: "M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V10.5C3.25 11.7426 4.25736 12.75 5.5 12.75H10.5C11.7426 12.75 12.75 11.7426 12.75 10.5V5.5C12.75 4.25736 11.7426 3.25 10.5 3.25H5.5Z"
@@ -224,6 +224,12 @@ const ze = /* @__PURE__ */ q(Ue, [["render", Ye]]), ie = {
224
224
  timegap: "{timegap} passed between the timeline events",
225
225
  showMore: "Show {items} more",
226
226
  showLess: "Show less"
227
+ },
228
+ "pt-BR": {
229
+ showLess: "Mostrar menos"
230
+ },
231
+ "ja-JP": {
232
+ showLess: "表示内容を減らす"
227
233
  }
228
234
  }, He = ne({
229
235
  name: "bento-timeline-item",
@@ -324,25 +330,25 @@ const ze = /* @__PURE__ */ q(Ue, [["render", Ye]]), ie = {
324
330
  })), a = m(() => ({
325
331
  "b-timeline-item--note": l.value
326
332
  }));
327
- z(Te, !0);
328
- const f = P(le), { timelineEntries: v, index: n, unregisterTimelineEntry: u } = f({
333
+ z(we, !0);
334
+ const f = K(le), { timelineEntries: p, index: n, unregisterTimelineEntry: u } = f({
329
335
  title: e.title,
330
336
  date: e.timestamp.date
331
337
  });
332
338
  fe(() => u());
333
- const { showAll: _, showMoreIndex: C, hiddenItems: b, visibleIndexes: t, timegapLimit: M } = P(re), k = m(() => _.value || !t.value), O = m(() => k.value ? !0 : t.value.includes(n)), $ = m(() => typeof e.title == "object"), d = m(() => e.title), E = m(() => {
334
- var K;
339
+ const { showAll: _, showMoreIndex: C, hiddenItems: b, visibleIndexes: t, timegapLimit: M } = K(re), k = m(() => _.value || !t.value), O = m(() => k.value ? !0 : t.value.includes(n)), R = m(() => typeof e.title == "object"), d = m(() => e.title), E = m(() => {
340
+ var P;
335
341
  if (!M.value)
336
342
  return null;
337
- const F = (K = v.value[n - 1]) == null ? void 0 : K.date, me = k.value || t.value.includes(n - 1);
343
+ const F = (P = p.value[n - 1]) == null ? void 0 : P.date, me = k.value || t.value.includes(n - 1);
338
344
  if (!F || !me)
339
345
  return null;
340
- const { date: J } = v.value[n], ue = parseInt(
346
+ const { date: J } = p.value[n], ue = parseInt(
341
347
  x(F, J, { unit: M.value.unit }),
342
348
  10
343
349
  );
344
350
  return M.value.amount < ue ? x(F, J, { roundingMethod: "floor" }) : null;
345
- }), R = m(() => E.value ? s("timegap", { timegap: E.value }) : ""), L = m(() => b.value && C.value === n), de = m(() => n === v.value.length - 1);
351
+ }), $ = m(() => E.value ? s("timegap", { timegap: E.value }) : ""), L = m(() => b.value && C.value === n), de = m(() => n === p.value.length - 1);
346
352
  return {
347
353
  // Values
348
354
  isNoteType: l,
@@ -352,13 +358,13 @@ const ze = /* @__PURE__ */ q(Ue, [["render", Ye]]), ie = {
352
358
  showAll: _,
353
359
  hiddenItems: b,
354
360
  isVisible: O,
355
- isLinkTitle: $,
361
+ isLinkTitle: R,
356
362
  linkTitleProps: d,
357
363
  timegap: E,
358
- timegapAriaLabel: R,
364
+ timegapAriaLabel: $,
359
365
  isLastItem: de,
360
366
  // Methods
361
- generateUid: we,
367
+ generateUid: Te,
362
368
  hasSlot: Se(o),
363
369
  t: s
364
370
  };
@@ -366,10 +372,10 @@ const ze = /* @__PURE__ */ q(Ue, [["render", Ye]]), ie = {
366
372
  }), Ve = {
367
373
  key: 0,
368
374
  class: "b-timeline-item__row"
369
- }, qe = { class: "b-timeline-item__content" }, Je = { class: "b-timeline-item__row" }, Ke = {
375
+ }, qe = { class: "b-timeline-item__content" }, Je = { class: "b-timeline-item__row" }, Pe = {
370
376
  class: "b-timeline-item__marker",
371
377
  "aria-hidden": "true"
372
- }, Pe = {
378
+ }, Ke = {
373
379
  key: 0,
374
380
  class: "b-timeline-item__separator",
375
381
  "data-testid": "last-timeline-item-separator"
@@ -381,12 +387,12 @@ const ze = /* @__PURE__ */ q(Ue, [["render", Ye]]), ie = {
381
387
  class: "b-timeline-item__row"
382
388
  }, Xe = { class: "b-timeline-item__content" };
383
389
  function xe(e, o, s, l, N, r) {
384
- const a = I("bento-typography"), f = I("square-small-icon"), v = I("bento-link"), n = I("bento-date"), u = I("bento-structured-list-item"), _ = I("bento-structured-list"), C = I("bento-tag"), b = I("bento-button");
385
- return e.isVisible ? (i(), p("li", {
390
+ const a = I("bento-typography"), f = I("square-small-icon"), p = I("bento-link"), n = I("bento-date"), u = I("bento-structured-list-item"), _ = I("bento-structured-list"), C = I("bento-tag"), b = I("bento-button");
391
+ return e.isVisible ? (i(), v("li", {
386
392
  key: 0,
387
393
  class: W(["b-timeline-item", e.conditionalClasses])
388
394
  }, [
389
- e.timegap ? (i(), p("div", Ve, [
395
+ e.timegap ? (i(), v("div", Ve, [
390
396
  o[1] || (o[1] = y("div", {
391
397
  class: "b-timeline-item__marker",
392
398
  "aria-hidden": "true"
@@ -400,21 +406,21 @@ function xe(e, o, s, l, N, r) {
400
406
  "aria-label": e.timegapAriaLabel
401
407
  }, {
402
408
  default: h(() => [
403
- T(g(e.timegap), 1)
409
+ w(g(e.timegap), 1)
404
410
  ]),
405
411
  _: 1
406
412
  }, 8, ["aria-label"])
407
413
  ])
408
414
  ])) : c("", !0),
409
415
  y("div", Je, [
410
- y("div", Ke, [
416
+ y("div", Pe, [
411
417
  S(f, {
412
418
  class: W(["b-timeline-item__icon", e.iconConditionalClasses])
413
419
  }, null, 8, ["class"]),
414
- e.isLastItem ? c("", !0) : (i(), p("div", Pe))
420
+ e.isLastItem ? c("", !0) : (i(), v("div", Ke))
415
421
  ]),
416
422
  y("div", We, [
417
- e.isNoteType ? c("", !0) : (i(), w(a, {
423
+ e.isNoteType ? c("", !0) : (i(), T(a, {
418
424
  key: 0,
419
425
  el: "div",
420
426
  variant: "body",
@@ -423,16 +429,16 @@ function xe(e, o, s, l, N, r) {
423
429
  role: "heading"
424
430
  }, {
425
431
  default: h(() => [
426
- e.isLinkTitle ? (i(), w(v, V({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
432
+ e.isLinkTitle ? (i(), T(p, V({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
427
433
  default: h(() => [
428
- T(g(e.linkTitleProps.title), 1)
434
+ w(g(e.linkTitleProps.title), 1)
429
435
  ]),
430
436
  _: 1
431
- }, 16)) : (i(), p("span", Ze, g(e.title), 1))
437
+ }, 16)) : (i(), v("span", Ze, g(e.title), 1))
432
438
  ]),
433
439
  _: 1
434
440
  })),
435
- e.isNoteType && (e.description || e.hasSlot("default")) ? (i(), w(a, {
441
+ e.isNoteType && (e.description || e.hasSlot("default")) ? (i(), T(a, {
436
442
  key: 1,
437
443
  el: "div",
438
444
  variant: "body",
@@ -440,12 +446,12 @@ function xe(e, o, s, l, N, r) {
440
446
  }, {
441
447
  default: h(() => [
442
448
  H(e.$slots, "default", {}, () => [
443
- T(g(e.description), 1)
449
+ w(g(e.description), 1)
444
450
  ], !0)
445
451
  ]),
446
452
  _: 3
447
453
  })) : c("", !0),
448
- e.timestamp ? (i(), w(a, {
454
+ e.timestamp ? (i(), T(a, {
449
455
  key: 2,
450
456
  class: "b-timeline-item__timestamp",
451
457
  el: "div",
@@ -457,11 +463,11 @@ function xe(e, o, s, l, N, r) {
457
463
  format: e.timestamp.format,
458
464
  "disable-typography": ""
459
465
  }, null, 8, ["date", "format"]),
460
- T(" " + g(e.timestamp.value), 1)
466
+ w(" " + g(e.timestamp.value), 1)
461
467
  ]),
462
468
  _: 1
463
469
  })) : c("", !0),
464
- !e.isNoteType && e.additionalTimestamp ? (i(), w(a, {
470
+ !e.isNoteType && e.additionalTimestamp ? (i(), T(a, {
465
471
  key: 3,
466
472
  class: "b-timeline-item__timestamp",
467
473
  el: "div",
@@ -473,11 +479,11 @@ function xe(e, o, s, l, N, r) {
473
479
  format: e.additionalTimestamp.format,
474
480
  "disable-typography": ""
475
481
  }, null, 8, ["date", "format"]),
476
- T(" " + g(e.additionalTimestamp.value), 1)
482
+ w(" " + g(e.additionalTimestamp.value), 1)
477
483
  ]),
478
484
  _: 1
479
485
  })) : c("", !0),
480
- !e.isNoteType && (e.description || e.hasSlot("default")) ? (i(), w(a, {
486
+ !e.isNoteType && (e.description || e.hasSlot("default")) ? (i(), T(a, {
481
487
  key: 4,
482
488
  el: "div",
483
489
  variant: "body",
@@ -485,22 +491,22 @@ function xe(e, o, s, l, N, r) {
485
491
  }, {
486
492
  default: h(() => [
487
493
  H(e.$slots, "default", {}, () => [
488
- T(g(e.description), 1)
494
+ w(g(e.description), 1)
489
495
  ], !0)
490
496
  ]),
491
497
  _: 3
492
498
  })) : c("", !0),
493
- !e.isNoteType && e.dataList ? (i(), p("div", Ge, [
499
+ !e.isNoteType && e.dataList ? (i(), v("div", Ge, [
494
500
  S(_, null, {
495
501
  default: h(() => [
496
- (i(!0), p(Y, null, ve(e.dataList, (t) => (i(), w(u, {
502
+ (i(!0), v(Y, null, pe(e.dataList, (t) => (i(), T(u, {
497
503
  key: e.generateUid(t.label),
498
504
  label: t.label
499
505
  }, {
500
506
  default: h(() => [
501
507
  S(a, { variant: "caption" }, {
502
508
  default: h(() => [
503
- T(g(t.value), 1)
509
+ w(g(t.value), 1)
504
510
  ]),
505
511
  _: 2
506
512
  }, 1024)
@@ -511,10 +517,10 @@ function xe(e, o, s, l, N, r) {
511
517
  _: 1
512
518
  })
513
519
  ])) : c("", !0),
514
- !e.isNoteType && e.tag ? (i(), w(C, V({ key: 6 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : c("", !0)
520
+ !e.isNoteType && e.tag ? (i(), T(C, V({ key: 6 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : c("", !0)
515
521
  ])
516
522
  ]),
517
- e.displayShowMoreButton ? (i(), p("div", Qe, [
523
+ e.displayShowMoreButton ? (i(), v("div", Qe, [
518
524
  o[2] || (o[2] = y("div", {
519
525
  class: "b-timeline-item__marker",
520
526
  "aria-hidden": "true"
@@ -528,10 +534,10 @@ function xe(e, o, s, l, N, r) {
528
534
  onClick: o[0] || (o[0] = (t) => e.showAll = !e.showAll)
529
535
  }, {
530
536
  default: h(() => [
531
- e.showAll ? (i(), p(Y, { key: 1 }, [
532
- T(g(e.t("showLess")), 1)
533
- ], 64)) : (i(), p(Y, { key: 0 }, [
534
- T(g(e.t("showMore", { items: e.hiddenItems })), 1)
537
+ e.showAll ? (i(), v(Y, { key: 1 }, [
538
+ w(g(e.t("showLess")), 1)
539
+ ], 64)) : (i(), v(Y, { key: 0 }, [
540
+ w(g(e.t("showMore", { items: e.hiddenItems })), 1)
535
541
  ], 64))
536
542
  ]),
537
543
  _: 1
@@ -547,6 +553,6 @@ export {
547
553
  Ae as b,
548
554
  j as c,
549
555
  se as d,
550
- pt as t
556
+ vt as t
551
557
  };
552
- //# sourceMappingURL=timeline-item.D-Yy2qQr.js.map
558
+ //# sourceMappingURL=timeline-item.Dc_l5Xyy.js.map