@adyen/bento-vue3 1.7.0 → 1.8.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 (238) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +11 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +7 -2
  6. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +25 -13
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +25 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +13 -1
  9. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +9 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +153 -12
  12. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +12 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +319 -96
  15. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
  19. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
  20. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
  21. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
  23. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
  25. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
  27. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
  28. package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
  29. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
  30. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
  32. package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +18 -24
  34. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
  37. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
  38. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
  40. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
  41. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +21 -3
  42. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  43. package/dist/accordion.js +2 -2
  44. package/dist/action-bar.js +146 -116
  45. package/dist/action-bar.js.map +1 -1
  46. package/dist/alert.js +3 -3
  47. package/dist/assets/base-modal.css +1 -1
  48. package/dist/assets/calendar.css +1 -1
  49. package/dist/assets/checkbox.css +1 -1
  50. package/dist/assets/controls-group.css +1 -1
  51. package/dist/assets/dropdown.css +1 -1
  52. package/dist/assets/field-label.css +1 -0
  53. package/dist/assets/grid-layout.css +1 -1
  54. package/dist/assets/index.css +1 -1
  55. package/dist/assets/index10.css +1 -1
  56. package/dist/assets/index11.css +1 -1
  57. package/dist/assets/index12.css +1 -1
  58. package/dist/assets/index13.css +1 -1
  59. package/dist/assets/index14.css +1 -1
  60. package/dist/assets/index15.css +1 -1
  61. package/dist/assets/index16.css +1 -1
  62. package/dist/assets/index17.css +1 -1
  63. package/dist/assets/index18.css +1 -1
  64. package/dist/assets/index19.css +1 -1
  65. package/dist/assets/index2.css +1 -1
  66. package/dist/assets/index20.css +1 -1
  67. package/dist/assets/index21.css +1 -1
  68. package/dist/assets/index22.css +1 -1
  69. package/dist/assets/index23.css +1 -1
  70. package/dist/assets/index24.css +1 -1
  71. package/dist/assets/index25.css +1 -1
  72. package/dist/assets/index26.css +1 -1
  73. package/dist/assets/index27.css +1 -1
  74. package/dist/assets/index28.css +1 -1
  75. package/dist/assets/index29.css +1 -1
  76. package/dist/assets/index3.css +1 -1
  77. package/dist/assets/index30.css +1 -1
  78. package/dist/assets/index31.css +1 -1
  79. package/dist/assets/index32.css +1 -1
  80. package/dist/assets/index33.css +1 -1
  81. package/dist/assets/index34.css +1 -1
  82. package/dist/assets/index35.css +1 -1
  83. package/dist/assets/index36.css +1 -1
  84. package/dist/assets/index37.css +1 -1
  85. package/dist/assets/index38.css +1 -1
  86. package/dist/assets/index39.css +1 -1
  87. package/dist/assets/index40.css +1 -1
  88. package/dist/assets/index41.css +1 -1
  89. package/dist/assets/index42.css +1 -1
  90. package/dist/assets/index43.css +1 -1
  91. package/dist/assets/index44.css +1 -1
  92. package/dist/assets/index45.css +1 -1
  93. package/dist/assets/index46.css +1 -1
  94. package/dist/assets/index5.css +1 -1
  95. package/dist/assets/index6.css +1 -1
  96. package/dist/assets/index7.css +1 -1
  97. package/dist/assets/index8.css +1 -1
  98. package/dist/assets/index9.css +1 -1
  99. package/dist/assets/loading-button.css +1 -1
  100. package/dist/avatar-image.js +1 -1
  101. package/dist/badge.js +1 -1
  102. package/dist/button.js +53 -51
  103. package/dist/button.js.map +1 -1
  104. package/dist/card.js +2 -2
  105. package/dist/checkbox.js +6 -6
  106. package/dist/chunks/{base-button.7897a95e.js → base-button.aa085dfa.js} +2 -2
  107. package/dist/chunks/{base-button.7897a95e.js.map → base-button.aa085dfa.js.map} +1 -1
  108. package/dist/chunks/{base-modal.0c85e7cb.js → base-modal.3dcf8376.js} +119 -105
  109. package/dist/chunks/base-modal.3dcf8376.js.map +1 -0
  110. package/dist/chunks/{button-actions-with-menu.fa35390c.js → button-actions-with-menu.3f52ea2d.js} +7 -7
  111. package/dist/chunks/{button-actions-with-menu.fa35390c.js.map → button-actions-with-menu.3f52ea2d.js.map} +1 -1
  112. package/dist/chunks/{button.e5177388.js → button.82ed953e.js} +2 -2
  113. package/dist/chunks/button.82ed953e.js.map +1 -0
  114. package/dist/chunks/calendar.d4ab387d.js +1037 -0
  115. package/dist/chunks/calendar.d4ab387d.js.map +1 -0
  116. package/dist/chunks/checkbox.03c4b0fe.js +265 -0
  117. package/dist/chunks/checkbox.03c4b0fe.js.map +1 -0
  118. package/dist/chunks/controls-group.807b5fb0.js +95 -0
  119. package/dist/chunks/controls-group.807b5fb0.js.map +1 -0
  120. package/dist/chunks/{copy.86236c8d.js → copy.28bd4298.js} +4 -4
  121. package/dist/chunks/{copy.86236c8d.js.map → copy.28bd4298.js.map} +1 -1
  122. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js → dropdown-default-textbox.74c4584a.js} +2 -2
  123. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js.map → dropdown-default-textbox.74c4584a.js.map} +1 -1
  124. package/dist/chunks/{dropdown.afff433b.js → dropdown.502e1f5c.js} +314 -337
  125. package/dist/chunks/dropdown.502e1f5c.js.map +1 -0
  126. package/dist/chunks/field-label.61679178.js +132 -0
  127. package/dist/chunks/field-label.61679178.js.map +1 -0
  128. package/dist/chunks/{fixed-scroller.e5aa7b00.js → fixed-scroller.92bb77a6.js} +2 -2
  129. package/dist/chunks/{fixed-scroller.e5aa7b00.js.map → fixed-scroller.92bb77a6.js.map} +1 -1
  130. package/dist/chunks/{footer-actions.1ce44374.js → footer-actions.cefaf1e2.js} +3 -3
  131. package/dist/chunks/{footer-actions.1ce44374.js.map → footer-actions.cefaf1e2.js.map} +1 -1
  132. package/dist/chunks/{grid-layout.7c919507.js → grid-layout.c2fe3057.js} +43 -34
  133. package/dist/chunks/grid-layout.c2fe3057.js.map +1 -0
  134. package/dist/chunks/{index.fa7b44f1.js → index.0ee895e0.js} +2 -2
  135. package/dist/chunks/{index.fa7b44f1.js.map → index.0ee895e0.js.map} +1 -1
  136. package/dist/chunks/{index.bcc58fdd.js → index.7262642e.js} +3 -3
  137. package/dist/chunks/{index.bcc58fdd.js.map → index.7262642e.js.map} +1 -1
  138. package/dist/chunks/index.726e2f3c.js +339 -0
  139. package/dist/chunks/index.726e2f3c.js.map +1 -0
  140. package/dist/chunks/{index.2bd3812b.js → index.75f3672e.js} +2 -2
  141. package/dist/chunks/{index.2bd3812b.js.map → index.75f3672e.js.map} +1 -1
  142. package/dist/chunks/{index.6a665ade.js → index.abb2a1d5.js} +3 -3
  143. package/dist/chunks/{index.6a665ade.js.map → index.abb2a1d5.js.map} +1 -1
  144. package/dist/chunks/index.b043371e.js +150 -0
  145. package/dist/chunks/index.b043371e.js.map +1 -0
  146. package/dist/chunks/{index.e579bc02.js → index.cf0d3be3.js} +19 -17
  147. package/dist/chunks/{index.e579bc02.js.map → index.cf0d3be3.js.map} +1 -1
  148. package/dist/chunks/{index.c207e9ab.js → index.d2542c6a.js} +132 -135
  149. package/dist/chunks/index.d2542c6a.js.map +1 -0
  150. package/dist/chunks/index.d80206ed.js +10 -0
  151. package/dist/chunks/index.d80206ed.js.map +1 -0
  152. package/dist/chunks/index.e9156fe3.js +817 -0
  153. package/dist/chunks/index.e9156fe3.js.map +1 -0
  154. package/dist/chunks/{listbox-option-tag.809ec40e.js → listbox-option-tag.5b00c85f.js} +3 -3
  155. package/dist/chunks/{listbox-option-tag.809ec40e.js.map → listbox-option-tag.5b00c85f.js.map} +1 -1
  156. package/dist/chunks/{listbox.f6e5a11d.js → listbox.d07c24e6.js} +4 -4
  157. package/dist/chunks/{listbox.f6e5a11d.js.map → listbox.d07c24e6.js.map} +1 -1
  158. package/dist/chunks/loading-button.ad7cfaee.js +108 -0
  159. package/dist/chunks/loading-button.ad7cfaee.js.map +1 -0
  160. package/dist/chunks/{tooltip.f769eb14.js → tooltip.054d2eb6.js} +3 -3
  161. package/dist/chunks/{tooltip.f769eb14.js.map → tooltip.054d2eb6.js.map} +1 -1
  162. package/dist/code-snippet.js +6 -6
  163. package/dist/code-snippet.js.map +1 -1
  164. package/dist/country.js +2 -2
  165. package/dist/currency.js +1 -1
  166. package/dist/data-grid.js +847 -820
  167. package/dist/data-grid.js.map +1 -1
  168. package/dist/date-picker.js +114 -138
  169. package/dist/date-picker.js.map +1 -1
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/date.js +1 -1
  172. package/dist/divider.js +1 -1
  173. package/dist/dropdown.js +4 -4
  174. package/dist/empty-state.js +3 -3
  175. package/dist/filter-bar.js +17 -16
  176. package/dist/filter-bar.js.map +1 -1
  177. package/dist/focus-trap.js +1 -1
  178. package/dist/form-layout.js +2 -2
  179. package/dist/header.js +76 -80
  180. package/dist/header.js.map +1 -1
  181. package/dist/index.js +207 -205
  182. package/dist/index.js.map +1 -1
  183. package/dist/info-icon.js +3 -3
  184. package/dist/input-field.js +136 -158
  185. package/dist/input-field.js.map +1 -1
  186. package/dist/internal.js +14 -13
  187. package/dist/link.js +2 -2
  188. package/dist/loading-indicator.js +1 -1
  189. package/dist/menu.js +1 -1
  190. package/dist/modal.js +4 -4
  191. package/dist/modal.js.map +1 -1
  192. package/dist/pagination.js +4 -4
  193. package/dist/payment-method.js +2 -2
  194. package/dist/popover.js +3 -359
  195. package/dist/popover.js.map +1 -1
  196. package/dist/popper-container.js +1 -1
  197. package/dist/radio-group.js +4 -4
  198. package/dist/search-bar.js +2 -2
  199. package/dist/segmented-control.js +3 -3
  200. package/dist/sidepanel.js +5 -5
  201. package/dist/status.js +2 -2
  202. package/dist/stepper.js +3 -3
  203. package/dist/structured-list.js +1 -1
  204. package/dist/summary-grid.js +4 -4
  205. package/dist/summary-grid.js.map +1 -1
  206. package/dist/tabs.js +3 -3
  207. package/dist/tag.js +3 -3
  208. package/dist/textarea.js +125 -149
  209. package/dist/textarea.js.map +1 -1
  210. package/dist/timeline.js +312 -229
  211. package/dist/timeline.js.map +1 -1
  212. package/dist/toast.js +3 -3
  213. package/dist/toggle.js +2 -2
  214. package/dist/tutorial.js +49 -49
  215. package/dist/typography.js +1 -1
  216. package/dist/web-types.json +1 -1
  217. package/package.json +2 -2
  218. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -120
  219. package/dist/assets/error-message.css +0 -1
  220. package/dist/chunks/base-modal.0c85e7cb.js.map +0 -1
  221. package/dist/chunks/button.e5177388.js.map +0 -1
  222. package/dist/chunks/calendar.c83d4e99.js +0 -898
  223. package/dist/chunks/calendar.c83d4e99.js.map +0 -1
  224. package/dist/chunks/checkbox.3cdbdd52.js +0 -235
  225. package/dist/chunks/checkbox.3cdbdd52.js.map +0 -1
  226. package/dist/chunks/controls-group.38b436f6.js +0 -136
  227. package/dist/chunks/controls-group.38b436f6.js.map +0 -1
  228. package/dist/chunks/dropdown.afff433b.js.map +0 -1
  229. package/dist/chunks/error-message.64e1964b.js +0 -49
  230. package/dist/chunks/error-message.64e1964b.js.map +0 -1
  231. package/dist/chunks/grid-layout.7c919507.js.map +0 -1
  232. package/dist/chunks/index.369b0e66.js +0 -734
  233. package/dist/chunks/index.369b0e66.js.map +0 -1
  234. package/dist/chunks/index.77f35162.js +0 -134
  235. package/dist/chunks/index.77f35162.js.map +0 -1
  236. package/dist/chunks/index.c207e9ab.js.map +0 -1
  237. package/dist/chunks/loading-button.746b7fa1.js +0 -109
  238. package/dist/chunks/loading-button.746b7fa1.js.map +0 -1
package/dist/timeline.js CHANGED
@@ -1,68 +1,84 @@
1
- import { defineComponent as x, ref as q, computed as _, toRefs as me, provide as j, openBlock as i, createElementBlock as f, renderSlot as ee, mergeProps as B, toDisplayString as y, createCommentVNode as I, pushScopeId as te, popScopeId as ie, createElementVNode as p, inject as z, onUnmounted as de, resolveComponent as E, createVNode as w, withCtx as b, createTextVNode as S, createBlock as T, resolveDynamicComponent as ue, normalizeClass as J, Fragment as U, renderList as ce } from "vue";
2
- import { _ as Y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as _e } from "./chunks/button.e5177388.js";
4
- import { B as fe } from "./chunks/index.fa7b44f1.js";
5
- import { BentoLink as ve } from "./link.js";
6
- import { BentoTag as pe } from "./tag.js";
7
- import { B as he } from "./chunks/index.2bd3812b.js";
8
- import { B as ge, a as be, S as ye } from "./chunks/index.77f35162.js";
9
- import { C as Ie } from "./chunks/checkmark-circle-fill.e6b84561.js";
10
- import { C as Se } from "./chunks/cross-circle-fill.0feb37b3.js";
11
- import { r as Ee, e as we, t as N, g as K } from "./chunks/index.f55fdc32.js";
12
- import { c as Te, a as Ce } from "./chunks/index.86453263.js";
13
- import { g as Me } from "./chunks/unique-id.a2a2b458.js";
14
- import { u as ke } from "./chunks/i18n.6c402773.js";
15
- import { u as Le } from "./chunks/use-has-slot.4d98bf29.js";
16
- import "./assets/index41.css";
17
- var P = 1e3 * 60, O = 60 * 24, Z = O * 30, Q = O * 365;
18
- function W(e, t) {
1
+ import { defineComponent as ie, computed as a, ref as F, toRefs as ve, provide as z, resolveComponent as T, openBlock as t, createElementBlock as f, createBlock as S, withCtx as g, createTextVNode as N, toDisplayString as y, createCommentVNode as _, createVNode as M, createElementVNode as h, renderSlot as ne, mergeProps as H, pushScopeId as oe, popScopeId as ae, inject as P, onUnmounted as pe, normalizeClass as Y, resolveDynamicComponent as he, Fragment as V, renderList as be } from "vue";
2
+ import { a as se } from "./chunks/button.82ed953e.js";
3
+ import { BentoTextarea as ge } from "./textarea.js";
4
+ import { u as le } from "./chunks/i18n.6c402773.js";
5
+ import { BentoButtonActions as ye } from "./button.js";
6
+ import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
7
+ import { B as Ie } from "./chunks/index.0ee895e0.js";
8
+ import { BentoLink as Te } from "./link.js";
9
+ import { BentoTag as Se } from "./tag.js";
10
+ import { B as Ne } from "./chunks/index.75f3672e.js";
11
+ import { B as we, a as Ce, S as Ee } from "./chunks/index.b043371e.js";
12
+ import { C as Me } from "./chunks/checkmark-circle-fill.e6b84561.js";
13
+ import { C as ke } from "./chunks/cross-circle-fill.0feb37b3.js";
14
+ import { r as Le, e as Ae, t as B, g as Z } from "./chunks/index.f55fdc32.js";
15
+ import { c as $e, a as Oe } from "./chunks/index.86453263.js";
16
+ import { g as De } from "./chunks/unique-id.a2a2b458.js";
17
+ import { u as Re } from "./chunks/use-has-slot.4d98bf29.js";
18
+ import "./assets/index44.css";
19
+ var Q = 1e3 * 60, U = 60 * 24, W = U * 30, X = U * 365;
20
+ function G(e, p) {
19
21
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
20
- Ee(2, arguments);
21
- var d = s.locale || we;
22
- if (!d.formatDistance)
22
+ Le(2, arguments);
23
+ var n = s.locale || Ae;
24
+ if (!n.formatDistance)
23
25
  throw new RangeError("locale must contain localize.formatDistance property");
24
- var h = Te(e, t);
25
- if (isNaN(h))
26
+ var I = $e(e, p);
27
+ if (isNaN(I))
26
28
  throw new RangeError("Invalid time value");
27
- var a = Ce(s);
28
- a.addSuffix = !!s.addSuffix, a.comparison = h;
29
- var o, u;
30
- h > 0 ? (o = N(t), u = N(e)) : (o = N(e), u = N(t));
31
- var g = s.roundingMethod == null ? "round" : String(s.roundingMethod), r;
32
- if (g === "floor")
33
- r = Math.floor;
34
- else if (g === "ceil")
35
- r = Math.ceil;
36
- else if (g === "round")
37
- r = Math.round;
29
+ var l = Oe(s);
30
+ l.addSuffix = !!s.addSuffix, l.comparison = I;
31
+ var r, u;
32
+ I > 0 ? (r = B(p), u = B(e)) : (r = B(e), u = B(p));
33
+ var v = s.roundingMethod == null ? "round" : String(s.roundingMethod), d;
34
+ if (v === "floor")
35
+ d = Math.floor;
36
+ else if (v === "ceil")
37
+ d = Math.ceil;
38
+ else if (v === "round")
39
+ d = Math.round;
38
40
  else
39
41
  throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
40
- var n = u.getTime() - o.getTime(), c = n / P, v = K(u) - K(o), l = (n - v) / P, m;
41
- if (s.unit == null ? c < 1 ? m = "second" : c < 60 ? m = "minute" : c < O ? m = "hour" : l < Z ? m = "day" : l < Q ? m = "month" : m = "year" : m = String(s.unit), m === "second") {
42
- var A = r(n / 1e3);
43
- return d.formatDistance("xSeconds", A, a);
44
- } else if (m === "minute") {
45
- var $ = r(c);
46
- return d.formatDistance("xMinutes", $, a);
47
- } else if (m === "hour") {
48
- var R = r(c / 60);
49
- return d.formatDistance("xHours", R, a);
50
- } else if (m === "day") {
51
- var k = r(l / O);
52
- return d.formatDistance("xDays", k, a);
53
- } else if (m === "month") {
54
- var L = r(l / Z);
55
- return L === 12 && s.unit !== "month" ? d.formatDistance("xYears", 1, a) : d.formatDistance("xMonths", L, a);
56
- } else if (m === "year") {
57
- var D = r(l / Q);
58
- return d.formatDistance("xYears", D, a);
42
+ var i = u.getTime() - r.getTime(), b = i / Q, w = Z(u) - Z(r), c = (i - w) / Q, o;
43
+ if (s.unit == null ? b < 1 ? o = "second" : b < 60 ? o = "minute" : b < U ? o = "hour" : c < W ? o = "day" : c < X ? o = "month" : o = "year" : o = String(s.unit), o === "second") {
44
+ var k = d(i / 1e3);
45
+ return n.formatDistance("xSeconds", k, l);
46
+ } else if (o === "minute") {
47
+ var L = d(b);
48
+ return n.formatDistance("xMinutes", L, l);
49
+ } else if (o === "hour") {
50
+ var A = d(b / 60);
51
+ return n.formatDistance("xHours", A, l);
52
+ } else if (o === "day") {
53
+ var R = d(c / U);
54
+ return n.formatDistance("xDays", R, l);
55
+ } else if (o === "month") {
56
+ var m = d(c / W);
57
+ return m === 12 && s.unit !== "month" ? n.formatDistance("xYears", 1, l) : n.formatDistance("xMonths", m, l);
58
+ } else if (o === "year") {
59
+ var C = d(c / X);
60
+ return n.formatDistance("xYears", C, l);
59
61
  }
60
62
  throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
61
63
  }
62
- var M = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(M || {}), Ne = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Ne || {}), C = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(C || {});
63
- const ne = Symbol("timeline register entry injection key"), oe = Symbol("timeline config obj injection key"), Oe = x({
64
+ var D = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(D || {}), Fe = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Fe || {}), E = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(E || {});
65
+ const re = Symbol("timeline register entry injection key"), de = Symbol("timeline config obj injection key"), x = {
66
+ "en-US": {
67
+ addNote: "Add note",
68
+ cancel: "Cancel"
69
+ }
70
+ }, Be = ie({
71
+ i18n: { messages: x },
64
72
  name: "bento-timeline",
73
+ components: { BentoButton: se, BentoButtonActions: ye, BentoTextarea: ge },
65
74
  props: {
75
+ /**
76
+ * If set to true, gives the possibility to manually add notes to the timeline via a textarea
77
+ */
78
+ addNote: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
66
82
  /**
67
83
  * Object that determines the max number of items to show without clicking the show more button
68
84
  * and where in the timeline is the show more button placed
@@ -81,95 +97,145 @@ const ne = Symbol("timeline register entry injection key"), oe = Symbol("timelin
81
97
  default: null
82
98
  }
83
99
  },
84
- setup(e) {
85
- const t = q([]), s = _(
86
- () => e.showMore && t.value.length > e.showMore.limit ? t.value.length - e.showMore.limit : null
87
- ), d = q(!1), { timegapLimit: h } = me(e), a = _(() => {
100
+ emits: ["add-timeline-note"],
101
+ setup(e, { emit: p }) {
102
+ const { t: s } = le({ messages: x }), n = a(() => s("addNote")), I = a(() => s("cancel")), l = F(), r = (m) => {
103
+ l.value = m;
104
+ }, u = F(!1), v = () => {
105
+ u.value = !u.value;
106
+ }, d = () => {
107
+ p("add-timeline-note", {
108
+ description: l.value,
109
+ timestamp: { date: /* @__PURE__ */ new Date() },
110
+ type: "note"
111
+ }), v();
112
+ }, i = F([]), b = a(
113
+ () => e.showMore && i.value.length > e.showMore.limit ? i.value.length - e.showMore.limit : null
114
+ ), w = F(!1), { timegapLimit: c } = ve(e), o = a(() => {
88
115
  if (!e.showMore)
89
116
  return null;
90
- const n = Array.from(t.value.keys());
91
- return e.showMore.placement === M.BEFORE_LAST ? [
92
- ...n.slice(0, e.showMore.limit - 1),
93
- n[n.length - 1]
94
- ] : e.showMore.placement === M.AFTER_FIRST ? [n[0], ...n.slice(-(e.showMore.limit - 1))] : n.slice(0, e.showMore.limit);
95
- }), o = _(() => {
117
+ const m = Array.from(i.value.keys());
118
+ return e.showMore.placement === D.BEFORE_LAST ? [
119
+ ...m.slice(0, e.showMore.limit - 1),
120
+ m[m.length - 1]
121
+ ] : e.showMore.placement === D.AFTER_FIRST ? [m[0], ...m.slice(-(e.showMore.limit - 1))] : m.slice(0, e.showMore.limit);
122
+ }), k = a(() => {
96
123
  if (!e.showMore)
97
124
  return null;
98
125
  switch (e.showMore.placement) {
99
- case M.BEFORE_LAST:
126
+ case D.BEFORE_LAST:
100
127
  return e.showMore.limit - 2;
101
- case M.AFTER_FIRST:
128
+ case D.AFTER_FIRST:
102
129
  return 0;
103
- case M.BOTTOM:
130
+ case D.BOTTOM:
104
131
  default:
105
132
  return e.showMore.limit - 1;
106
133
  }
107
- }), u = (n) => () => {
108
- var c;
109
- t.value = (c = t.value) == null ? void 0 : c.filter((v, l) => l !== n);
110
- }, g = ({ title: n, date: c }) => {
111
- const v = t.value.length;
112
- return t.value.push({ title: n, date: c }), { timelineEntries: t, index: v, unregisterTimelineEntry: u(v) };
113
- }, r = {
114
- showAll: d,
115
- showMoreIndex: o,
116
- hiddenItems: s,
117
- visibleIndexes: a,
118
- timegapLimit: h
134
+ }), L = (m) => () => {
135
+ var C;
136
+ i.value = (C = i.value) == null ? void 0 : C.filter(($, O) => O !== m);
137
+ }, A = ({ title: m, description: C, date: $ }) => {
138
+ const O = i.value.length;
139
+ return i.value.push({ title: m, description: C, date: $ }), { timelineEntries: i, index: O, unregisterTimelineEntry: L(O) };
140
+ }, R = {
141
+ showAll: w,
142
+ showMoreIndex: k,
143
+ hiddenItems: b,
144
+ visibleIndexes: o,
145
+ timegapLimit: c
146
+ };
147
+ return z(re, A), z(de, R), {
148
+ addNoteLabel: n,
149
+ cancelLabel: I,
150
+ toggleAddNote: v,
151
+ updateNoteContent: r,
152
+ addNoteToTimeline: d,
153
+ showAddNoteTextArea: u
119
154
  };
120
- j(ne, g), j(oe, r);
121
155
  }
122
156
  });
123
- const Ae = { class: "b-timeline" };
124
- function $e(e, t, s, d, h, a) {
125
- return i(), f("ol", Ae, [
126
- ee(e.$slots, "default", {}, void 0, !0)
157
+ const Ue = { class: "b-timeline" }, je = {
158
+ key: 0,
159
+ class: "b-timeline__add-note-section"
160
+ }, Ye = { key: 1 }, Ve = { class: "b-timeline__items" };
161
+ function ze(e, p, s, n, I, l) {
162
+ const r = T("bento-button"), u = T("bento-textarea"), v = T("bento-button-actions");
163
+ return t(), f("div", Ue, [
164
+ e.addNote ? (t(), f("div", je, [
165
+ e.showAddNoteTextArea ? _("", !0) : (t(), S(r, {
166
+ key: 0,
167
+ variant: "tertiary",
168
+ onClick: e.toggleAddNote
169
+ }, {
170
+ default: g(() => [
171
+ N(y(e.addNoteLabel), 1)
172
+ ]),
173
+ _: 1
174
+ }, 8, ["onClick"])),
175
+ e.showAddNoteTextArea ? (t(), f("div", Ye, [
176
+ M(u, {
177
+ label: e.addNoteLabel,
178
+ "character-limit": 150,
179
+ resizable: "vertical",
180
+ onInput: e.updateNoteContent
181
+ }, null, 8, ["label", "onInput"]),
182
+ M(v, {
183
+ actions: [
184
+ { title: e.addNoteLabel, event: e.addNoteToTimeline },
185
+ { title: e.cancelLabel, event: e.toggleAddNote }
186
+ ]
187
+ }, null, 8, ["actions"])
188
+ ])) : _("", !0)
189
+ ])) : _("", !0),
190
+ h("ol", Ve, [
191
+ ne(e.$slots, "default", {}, void 0, !0)
192
+ ])
127
193
  ]);
128
194
  }
129
- const pt = /* @__PURE__ */ Y(Oe, [["render", $e], ["__scopeId", "data-v-2dc17695"]]);
130
- let X = 0;
131
- const Re = {
195
+ const Ct = /* @__PURE__ */ q(Be, [["render", ze], ["__scopeId", "data-v-f844f908"]]);
196
+ let ee = 0;
197
+ const He = {
132
198
  beforeCreate() {
133
- this.uuid = X.toString(), X += 1;
199
+ this.uuid = ee.toString(), ee += 1;
134
200
  }
135
- }, De = (e) => (te("data-v-f702de38"), e = e(), ie(), e), Fe = { key: 0 }, Ue = /* @__PURE__ */ De(() => /* @__PURE__ */ p("path", {
201
+ }, qe = (e) => (oe("data-v-f702de38"), e = e(), ae(), e), Je = { key: 0 }, Ke = /* @__PURE__ */ qe(() => /* @__PURE__ */ h("path", {
136
202
  fill: "#00112C",
137
203
  "fill-rule": "evenodd",
138
204
  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",
139
205
  "clip-rule": "evenodd"
140
206
  }, null, -1));
141
- function je(e, t, s, d, h, a) {
142
- return i(), f("svg", B({ role: "img" }, e.$attrs, {
207
+ function Pe(e, p, s, n, I, l) {
208
+ return t(), f("svg", H({ role: "img" }, e.$attrs, {
143
209
  xmlns: "http://www.w3.org/2000/svg",
144
210
  width: "16",
145
211
  height: "16",
146
212
  fill: "none"
147
213
  }), [
148
- e.$attrs["svg-title"] ? (i(), f("title", Fe, y(e.$attrs["svg-title"]), 1)) : I("", !0),
149
- Ue
214
+ e.$attrs["svg-title"] ? (t(), f("title", Je, y(e.$attrs["svg-title"]), 1)) : _("", !0),
215
+ Ke
150
216
  ], 16);
151
217
  }
152
- const Be = /* @__PURE__ */ Y(Re, [["render", je], ["__scopeId", "data-v-f702de38"]]), G = {
218
+ const Ze = /* @__PURE__ */ q(He, [["render", Pe], ["__scopeId", "data-v-f702de38"]]), te = {
153
219
  "en-US": {
154
220
  timegap: "{timegap} passed between the timeline events",
155
221
  showMore: "Show {items} more",
156
222
  showLess: "Show less"
157
223
  }
158
- }, Ye = x({
224
+ }, Qe = ie({
159
225
  name: "bento-timeline-item",
160
226
  components: {
161
- BentoButton: _e,
162
- BentoDate: fe,
163
- BentoLink: ve,
164
- BentoTag: pe,
165
- BentoTypography: he,
166
- BentoStructuredList: ge,
167
- BentoStructuredListItem: be,
168
- CrossCircleIcon: Se,
169
- CheckedCircleIcon: Ie,
170
- SquareSmallIcon: Be
227
+ BentoButton: se,
228
+ BentoDate: Ie,
229
+ BentoLink: Te,
230
+ BentoTag: Se,
231
+ BentoTypography: Ne,
232
+ BentoStructuredList: we,
233
+ BentoStructuredListItem: Ce,
234
+ CrossCircleIcon: ke,
235
+ CheckedCircleIcon: Me,
236
+ SquareSmallIcon: Ze
171
237
  },
172
- i18n: { messages: G },
238
+ i18n: { messages: te },
173
239
  props: {
174
240
  /**
175
241
  * Additional timestamp of the event
@@ -211,7 +277,16 @@ const Be = /* @__PURE__ */ Y(Re, [["render", je], ["__scopeId", "data-v-f702de38
211
277
  */
212
278
  title: {
213
279
  type: [Object, String],
214
- required: !0
280
+ default: null
281
+ },
282
+ /**
283
+ * Type of the timeline item. If set to 'note', it renders a note item in the timeline. Defaults to 'milestone'.
284
+ * @values milestone, note
285
+ */
286
+ type: {
287
+ type: String,
288
+ default: "milestone",
289
+ validator: (e) => ["milestone", "note"].includes(e)
215
290
  },
216
291
  /**
217
292
  * Variant for the timeline item
@@ -219,186 +294,194 @@ const Be = /* @__PURE__ */ Y(Re, [["render", je], ["__scopeId", "data-v-f702de38
219
294
  */
220
295
  variant: {
221
296
  type: String,
222
- default: C.DEFAULT,
223
- validator: (e) => Object.values(C).includes(e)
297
+ default: E.DEFAULT,
298
+ validator: (e) => Object.values(E).includes(e)
224
299
  }
225
300
  },
226
- setup(e, { slots: t }) {
227
- const { t: s } = ke({ messages: G }), d = _(() => ({
228
- "b-timeline-item__icon--default": e.variant === C.DEFAULT,
229
- "b-timeline-item__icon--success": e.variant === C.SUCCESS,
230
- "b-timeline-item__icon--critical": e.variant === C.CRITICAL
231
- })), h = _(() => ({
232
- "b-timeline-item__title--default": e.variant === C.DEFAULT
301
+ setup(e, { slots: p }) {
302
+ const { t: s } = le({ messages: te }), n = a(() => e.type === "note"), I = a(
303
+ () => n.value ? E.DEFAULT : e.variant
304
+ ), l = a(() => ({
305
+ "b-timeline-item__icon--default": e.variant === E.DEFAULT || n.value,
306
+ "b-timeline-item__icon--success": e.variant === E.SUCCESS && !n.value,
307
+ "b-timeline-item__icon--critical": e.variant === E.CRITICAL && !n.value
308
+ })), r = a(() => ({
309
+ "b-timeline-item__title--default": e.variant === E.DEFAULT
310
+ })), u = a(() => ({
311
+ "b-timeline-item--note": n.value
233
312
  }));
234
- j(ye, !0);
235
- const a = z(ne), { timelineEntries: o, index: u, unregisterTimelineEntry: g } = a({
313
+ z(Ee, !0);
314
+ const v = P(re), { timelineEntries: d, index: i, unregisterTimelineEntry: b } = v({
236
315
  title: e.title,
237
316
  date: e.timestamp.date
238
317
  });
239
- de(() => g());
240
- const { showAll: r, showMoreIndex: n, hiddenItems: c, visibleIndexes: v, timegapLimit: l } = z(oe), m = _(() => r.value || !v.value), A = _(() => m.value ? !0 : v.value.includes(u)), $ = _(() => typeof e.title == "object"), R = _(() => e.title), k = _(() => {
241
- var V;
242
- if (!l.value)
318
+ pe(() => b());
319
+ const { showAll: w, showMoreIndex: c, hiddenItems: o, visibleIndexes: k, timegapLimit: L } = P(de), A = a(() => w.value || !k.value), R = a(() => A.value ? !0 : k.value.includes(i)), m = a(() => typeof e.title == "object"), C = a(() => e.title), $ = a(() => {
320
+ var K;
321
+ if (!L.value)
243
322
  return null;
244
- const F = (V = o.value[u - 1]) == null ? void 0 : V.date, re = m.value || v.value.includes(u - 1);
245
- if (!F || !re)
323
+ const j = (K = d.value[i - 1]) == null ? void 0 : K.date, _e = A.value || k.value.includes(i - 1);
324
+ if (!j || !_e)
246
325
  return null;
247
- const { date: H } = o.value[u], le = parseInt(
248
- W(F, H, { unit: l.value.unit }),
326
+ const { date: J } = d.value[i], fe = parseInt(
327
+ G(j, J, { unit: L.value.unit }),
249
328
  10
250
329
  );
251
- return l.value.amount < le ? W(F, H, { roundingMethod: "floor" }) : null;
252
- }), L = _(() => k.value ? s("timegap", { timegap: k.value }) : ""), D = _(() => c.value && n.value === u), ae = _(() => u === o.value.length - 1);
330
+ return L.value.amount < fe ? G(j, J, { roundingMethod: "floor" }) : null;
331
+ }), O = a(() => $.value ? s("timegap", { timegap: $.value }) : ""), ue = a(() => o.value && c.value === i), ce = a(() => i === d.value.length - 1);
253
332
  return {
254
333
  // Values
255
- iconConditionalClasses: d,
256
- titleConditionalClasses: h,
257
- displayShowMoreButton: D,
258
- showAll: r,
259
- hiddenItems: c,
260
- isVisible: A,
261
- isLinkTitle: $,
262
- linkTitleProps: R,
263
- timegap: k,
264
- timegapAriaLabel: L,
265
- isLastItem: ae,
334
+ isNoteType: n,
335
+ iconConditionalClasses: l,
336
+ titleConditionalClasses: r,
337
+ conditionalClasses: u,
338
+ displayShowMoreButton: ue,
339
+ showAll: w,
340
+ hiddenItems: o,
341
+ isVisible: R,
342
+ isLinkTitle: m,
343
+ linkTitleProps: C,
344
+ timegap: $,
345
+ timegapAriaLabel: O,
346
+ isLastItem: ce,
347
+ computedIconVariant: I,
266
348
  // Methods
267
- generateUid: Me,
268
- hasSlot: Le(t),
349
+ generateUid: De,
350
+ hasSlot: Re(p),
269
351
  t: s
270
352
  };
271
353
  }
272
354
  });
273
- const se = (e) => (te("data-v-5ee3448b"), e = e(), ie(), e), He = {
274
- key: 0,
275
- class: "b-timeline-item"
276
- }, Ve = {
355
+ const me = (e) => (oe("data-v-a49f9329"), e = e(), ae(), e), We = {
277
356
  key: 0,
278
357
  class: "b-timeline-item__row"
279
- }, qe = /* @__PURE__ */ se(() => /* @__PURE__ */ p("div", {
358
+ }, Xe = /* @__PURE__ */ me(() => /* @__PURE__ */ h("div", {
280
359
  class: "b-timeline-item__marker",
281
360
  "aria-hidden": "true"
282
361
  }, [
283
- /* @__PURE__ */ p("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
284
- /* @__PURE__ */ p("div", { class: "b-timeline-item__separator" })
285
- ], -1)), ze = { class: "b-timeline-item__content" }, Je = { class: "b-timeline-item__row" }, Ke = {
362
+ /* @__PURE__ */ h("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
363
+ /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
364
+ ], -1)), Ge = { class: "b-timeline-item__content" }, xe = { class: "b-timeline-item__row" }, et = {
286
365
  class: "b-timeline-item__marker",
287
366
  "aria-hidden": "true"
288
- }, Pe = {
367
+ }, tt = {
289
368
  key: 0,
290
369
  class: "b-timeline-item__separator",
291
370
  "data-testid": "last-timeline-item-separator"
292
- }, Ze = { class: "b-timeline-item__content" }, Qe = { key: 1 }, We = {
293
- key: 3,
371
+ }, it = { class: "b-timeline-item__content" }, nt = { key: 1 }, ot = {
372
+ key: 4,
294
373
  class: "b-timeline-item__data-list"
295
- }, Xe = {
374
+ }, at = {
296
375
  key: 1,
297
376
  class: "b-timeline-item__row"
298
- }, Ge = /* @__PURE__ */ se(() => /* @__PURE__ */ p("div", {
377
+ }, st = /* @__PURE__ */ me(() => /* @__PURE__ */ h("div", {
299
378
  class: "b-timeline-item__marker",
300
379
  "aria-hidden": "true"
301
380
  }, [
302
- /* @__PURE__ */ p("div", { class: "b-timeline-item__separator" })
303
- ], -1)), xe = { class: "b-timeline-item__content" };
304
- function et(e, t, s, d, h, a) {
305
- const o = E("bento-typography"), u = E("bento-link"), g = E("bento-date"), r = E("bento-structured-list-item"), n = E("bento-structured-list"), c = E("bento-tag"), v = E("bento-button");
306
- return e.isVisible ? (i(), f("li", He, [
307
- e.timegap ? (i(), f("div", Ve, [
308
- qe,
309
- p("div", ze, [
310
- w(o, {
381
+ /* @__PURE__ */ h("div", { class: "b-timeline-item__separator" })
382
+ ], -1)), lt = { class: "b-timeline-item__content" };
383
+ function rt(e, p, s, n, I, l) {
384
+ const r = T("bento-typography"), u = T("bento-link"), v = T("bento-date"), d = T("bento-structured-list-item"), i = T("bento-structured-list"), b = T("bento-tag"), w = T("bento-button");
385
+ return e.isVisible ? (t(), f("li", {
386
+ key: 0,
387
+ class: Y(["b-timeline-item", e.conditionalClasses])
388
+ }, [
389
+ e.timegap ? (t(), f("div", We, [
390
+ Xe,
391
+ h("div", Ge, [
392
+ M(r, {
311
393
  class: "b-timeline-item__timegap",
312
394
  "aria-label": e.timegapAriaLabel
313
395
  }, {
314
- default: b(() => [
315
- S(y(e.timegap), 1)
396
+ default: g(() => [
397
+ N(y(e.timegap), 1)
316
398
  ]),
317
399
  _: 1
318
400
  }, 8, ["aria-label"])
319
401
  ])
320
- ])) : I("", !0),
321
- p("div", Je, [
322
- p("div", Ke, [
323
- (i(), T(ue(e.variant), {
324
- class: J(["b-timeline-item__icon", e.iconConditionalClasses])
402
+ ])) : _("", !0),
403
+ h("div", xe, [
404
+ h("div", et, [
405
+ (t(), S(he(e.computedIconVariant), {
406
+ class: Y(["b-timeline-item__icon", e.iconConditionalClasses])
325
407
  }, null, 8, ["class"])),
326
- e.isLastItem ? I("", !0) : (i(), f("div", Pe))
408
+ e.isLastItem ? _("", !0) : (t(), f("div", tt))
327
409
  ]),
328
- p("div", Ze, [
329
- w(o, {
410
+ h("div", it, [
411
+ e.isNoteType ? _("", !0) : (t(), S(r, {
412
+ key: 0,
330
413
  el: "div",
331
414
  variant: "body",
332
415
  strongest: "",
333
- class: J(["b-timeline-item__title", e.titleConditionalClasses]),
416
+ class: Y(["b-timeline-item__title", e.titleConditionalClasses]),
334
417
  role: "heading"
335
418
  }, {
336
- default: b(() => [
337
- e.isLinkTitle ? (i(), T(u, B({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
338
- default: b(() => [
339
- S(y(e.linkTitleProps.title), 1)
419
+ default: g(() => [
420
+ e.isLinkTitle ? (t(), S(u, H({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
421
+ default: g(() => [
422
+ N(y(e.linkTitleProps.title), 1)
340
423
  ]),
341
424
  _: 1
342
- }, 16)) : (i(), f("span", Qe, y(e.title), 1))
425
+ }, 16)) : (t(), f("span", nt, y(e.title), 1))
343
426
  ]),
344
427
  _: 1
345
- }, 8, ["class"]),
346
- e.timestamp ? (i(), T(o, {
347
- key: 0,
428
+ }, 8, ["class"])),
429
+ e.timestamp ? (t(), S(r, {
430
+ key: 1,
348
431
  class: "b-timeline-item__timestamp",
349
432
  el: "div",
350
433
  variant: "caption"
351
434
  }, {
352
- default: b(() => [
353
- w(g, {
435
+ default: g(() => [
436
+ M(v, {
354
437
  date: e.timestamp.date,
355
438
  format: e.timestamp.format,
356
439
  "disable-typography": ""
357
440
  }, null, 8, ["date", "format"]),
358
- S(" " + y(e.timestamp.value), 1)
441
+ N(" " + y(e.timestamp.value), 1)
359
442
  ]),
360
443
  _: 1
361
- })) : I("", !0),
362
- e.additionalTimestamp ? (i(), T(o, {
363
- key: 1,
444
+ })) : _("", !0),
445
+ !e.isNoteType && e.additionalTimestamp ? (t(), S(r, {
446
+ key: 2,
364
447
  class: "b-timeline-item__timestamp",
365
448
  el: "div",
366
449
  variant: "caption"
367
450
  }, {
368
- default: b(() => [
369
- w(g, {
451
+ default: g(() => [
452
+ M(v, {
370
453
  date: e.additionalTimestamp.date,
371
454
  format: e.additionalTimestamp.format,
372
455
  "disable-typography": ""
373
456
  }, null, 8, ["date", "format"]),
374
- S(" " + y(e.additionalTimestamp.value), 1)
457
+ N(" " + y(e.additionalTimestamp.value), 1)
375
458
  ]),
376
459
  _: 1
377
- })) : I("", !0),
378
- e.description || e.hasSlot("default") ? (i(), T(o, {
379
- key: 2,
460
+ })) : _("", !0),
461
+ e.description || e.hasSlot("default") ? (t(), S(r, {
462
+ key: 3,
380
463
  el: "div",
381
464
  variant: "body",
382
465
  class: "b-timeline-item__description"
383
466
  }, {
384
- default: b(() => [
385
- ee(e.$slots, "default", {}, () => [
386
- S(y(e.description), 1)
467
+ default: g(() => [
468
+ ne(e.$slots, "default", {}, () => [
469
+ N(y(e.description), 1)
387
470
  ], !0)
388
471
  ]),
389
472
  _: 3
390
- })) : I("", !0),
391
- e.dataList ? (i(), f("div", We, [
392
- w(n, null, {
393
- default: b(() => [
394
- (i(!0), f(U, null, ce(e.dataList, (l) => (i(), T(r, {
395
- key: e.generateUid(l.label),
396
- label: l.label
473
+ })) : _("", !0),
474
+ !e.isNoteType && e.dataList ? (t(), f("div", ot, [
475
+ M(i, null, {
476
+ default: g(() => [
477
+ (t(!0), f(V, null, be(e.dataList, (c) => (t(), S(d, {
478
+ key: e.generateUid(c.label),
479
+ label: c.label
397
480
  }, {
398
- default: b(() => [
399
- w(o, { variant: "caption" }, {
400
- default: b(() => [
401
- S(y(l.value), 1)
481
+ default: g(() => [
482
+ M(r, { variant: "caption" }, {
483
+ default: g(() => [
484
+ N(y(c.value), 1)
402
485
  ]),
403
486
  _: 2
404
487
  }, 1024)
@@ -408,37 +491,37 @@ function et(e, t, s, d, h, a) {
408
491
  ]),
409
492
  _: 1
410
493
  })
411
- ])) : I("", !0),
412
- e.tag ? (i(), T(c, B({ key: 4 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : I("", !0)
494
+ ])) : _("", !0),
495
+ !e.isNoteType && e.tag ? (t(), S(b, H({ key: 5 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : _("", !0)
413
496
  ])
414
497
  ]),
415
- e.displayShowMoreButton ? (i(), f("div", Xe, [
416
- Ge,
417
- p("div", xe, [
418
- w(v, {
498
+ e.displayShowMoreButton ? (t(), f("div", at, [
499
+ st,
500
+ h("div", lt, [
501
+ M(w, {
419
502
  class: "b-timeline__show-more",
420
503
  variant: "tertiary",
421
- onClick: t[0] || (t[0] = (l) => e.showAll = !e.showAll)
504
+ onClick: p[0] || (p[0] = (c) => e.showAll = !e.showAll)
422
505
  }, {
423
- default: b(() => [
424
- e.showAll ? (i(), f(U, { key: 1 }, [
425
- S(y(e.t("showLess")), 1)
426
- ], 64)) : (i(), f(U, { key: 0 }, [
427
- S(y(e.t("showMore", { items: e.hiddenItems })), 1)
506
+ default: g(() => [
507
+ e.showAll ? (t(), f(V, { key: 1 }, [
508
+ N(y(e.t("showLess")), 1)
509
+ ], 64)) : (t(), f(V, { key: 0 }, [
510
+ N(y(e.t("showMore", { items: e.hiddenItems })), 1)
428
511
  ], 64))
429
512
  ]),
430
513
  _: 1
431
514
  })
432
515
  ])
433
- ])) : I("", !0)
434
- ])) : I("", !0);
516
+ ])) : _("", !0)
517
+ ], 2)) : _("", !0);
435
518
  }
436
- const ht = /* @__PURE__ */ Y(Ye, [["render", et], ["__scopeId", "data-v-5ee3448b"]]);
519
+ const Et = /* @__PURE__ */ q(Qe, [["render", rt], ["__scopeId", "data-v-a49f9329"]]);
437
520
  export {
438
- pt as BentoTimeline,
439
- Ne as BentoTimelineGapUnit,
440
- ht as BentoTimelineItem,
441
- C as BentoTimelineItemVariant,
442
- M as BentoTimelineShowMorePlacement
521
+ Ct as BentoTimeline,
522
+ Fe as BentoTimelineGapUnit,
523
+ Et as BentoTimelineItem,
524
+ E as BentoTimelineItemVariant,
525
+ D as BentoTimelineShowMorePlacement
443
526
  };
444
527
  //# sourceMappingURL=timeline.js.map