@adyen/bento-vue2 1.75.0 → 1.76.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.
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/chunks/calendar.Fm_dfQC5.js +1871 -0
- package/dist/chunks/calendar.Fm_dfQC5.js.map +1 -0
- package/dist/chunks/constructNow.CHWWeLPc.js +8 -0
- package/dist/chunks/constructNow.CHWWeLPc.js.map +1 -0
- package/dist/chunks/{dashboard-section.jIpBvP6X.js → dashboard-section.D1l7wDX3.js} +2 -2
- package/dist/chunks/{dashboard-section.jIpBvP6X.js.map → dashboard-section.D1l7wDX3.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CozTcWQ0.js → data-grid-template.DGUDqzjj.js} +2 -2
- package/dist/chunks/{data-grid-template.CozTcWQ0.js.map → data-grid-template.DGUDqzjj.js.map} +1 -1
- package/dist/chunks/{data-grid.D5fTwSvx.js → data-grid.B5aCkT0o.js} +25 -28
- package/dist/chunks/{data-grid.D5fTwSvx.js.map → data-grid.B5aCkT0o.js.map} +1 -1
- package/dist/chunks/{date-picker.BLii86mM.js → date-picker.DImAYvoM.js} +4 -4
- package/dist/chunks/date-picker.DImAYvoM.js.map +1 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js +914 -0
- package/dist/chunks/date-range-picker.DgZMERzx.js.map +1 -0
- package/dist/chunks/{get-date-locale.CAyOIbcp.js → differenceInMonths.C8FyCrav.js} +580 -364
- package/dist/chunks/differenceInMonths.C8FyCrav.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.DfTOz6xI.js → filter-bar.C0S87JZD.js} +507 -482
- package/dist/chunks/filter-bar.C0S87JZD.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/{index.BrH1t1iu.js → getTimezoneOffsetInMilliseconds.BW7U6PxE.js} +254 -177
- package/dist/chunks/getTimezoneOffsetInMilliseconds.BW7U6PxE.js.map +1 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js +170 -0
- package/dist/chunks/header-meta.D-6dL1Vg.js.map +1 -0
- package/dist/chunks/{header-with-views.AKprhFPj.js → header-with-views.j16q5wEc.js} +2 -2
- package/dist/chunks/{header-with-views.AKprhFPj.js.map → header-with-views.j16q5wEc.js.map} +1 -1
- package/dist/chunks/{header.DwSyDQ68.js → header.DoWKsA15.js} +2 -2
- package/dist/chunks/{header.DwSyDQ68.js.map → header.DoWKsA15.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.CKWtFjkF.js → rich-text-editor.eYW8X_YP.js} +353 -351
- package/dist/chunks/{rich-text-editor.CKWtFjkF.js.map → rich-text-editor.eYW8X_YP.js.map} +1 -1
- package/dist/chunks/{timeline-item.VSw9vKdO.js → timeline-item.CZBuknZ_.js} +156 -168
- package/dist/chunks/timeline-item.CZBuknZ_.js.map +1 -0
- package/dist/dashboard-template.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +11 -11
- package/dist/internal.js +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/styles/bento-dark.css +7 -5
- package/dist/styles/bento-light.css +7 -5
- package/dist/styles/bento.css +7 -5
- package/dist/styles/legacy.css +7 -5
- package/dist/styles/styleguide.css +7 -5
- package/dist/timeline.js +1 -1
- package/dist/web-types.json +18 -10
- package/package.json +12 -27
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +0 -1
- package/dist/chunks/calendar.EfqJlztU.js +0 -2093
- package/dist/chunks/calendar.EfqJlztU.js.map +0 -1
- package/dist/chunks/date-picker.BLii86mM.js.map +0 -1
- package/dist/chunks/date-range-picker.Btgdly1q.js +0 -917
- package/dist/chunks/date-range-picker.Btgdly1q.js.map +0 -1
- package/dist/chunks/filter-bar.DfTOz6xI.js.map +0 -1
- package/dist/chunks/get-date-locale.CAyOIbcp.js.map +0 -1
- package/dist/chunks/header-meta.uiIO1wHP.js +0 -185
- package/dist/chunks/header-meta.uiIO1wHP.js.map +0 -1
- package/dist/chunks/index.BrH1t1iu.js.map +0 -1
- package/dist/chunks/index.BxBB1rsx.js +0 -15
- package/dist/chunks/index.BxBB1rsx.js.map +0 -1
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +0 -1
|
@@ -1,67 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { B as
|
|
4
|
-
import { u as
|
|
5
|
-
import { B as
|
|
6
|
-
import { n as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as
|
|
11
|
-
import { a as
|
|
1
|
+
import { defineComponent as P, computed as s, ref as y, toRefs as Z, watch as G, provide as x, nextTick as Q, inject as D, onUnmounted as X } from "vue";
|
|
2
|
+
import { B as z } from "./button.CS_kdxYh.js";
|
|
3
|
+
import { B as ee } from "./textarea.CIQuLWQ8.js";
|
|
4
|
+
import { u as H } from "./index.B6WW_F-J.js";
|
|
5
|
+
import { B as te } from "./button-actions.B81vY51z.js";
|
|
6
|
+
import { n as A } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
7
|
+
import { B as ae } from "./date.C1z2TXzM.js";
|
|
8
|
+
import { B as ie } from "./link.D8qpqg3W.js";
|
|
9
|
+
import { B as se } from "./tag.BwKc2d2E.js";
|
|
10
|
+
import { B as ne, d as le } from "./typography.hlOAxsEn.js";
|
|
11
|
+
import { a as oe, B as re, S as ce } from "./structured-list-item.CMsVwwA6.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { g as
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { g as me } from "./generate-uid.NJ8tVoha.js";
|
|
14
|
+
import { u as de } from "./use-has-slot.C9lQZ6nz.js";
|
|
15
|
+
import { b as ue, e as _e, a as ve, n as fe, g as k, m as B, d as j, f as $, h as F } from "./getTimezoneOffsetInMilliseconds.BW7U6PxE.js";
|
|
16
|
+
import { g as be } from "./getRoundingMethod.C3eaeGLR.js";
|
|
17
17
|
import "../assets/timeline-item.css";
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
21
|
-
_e(2, arguments);
|
|
22
|
-
var i = a.locale || ve;
|
|
23
|
-
if (!i.formatDistance)
|
|
24
|
-
throw new RangeError("locale must contain localize.formatDistance property");
|
|
25
|
-
var f = fe(t, e);
|
|
26
|
-
if (isNaN(f))
|
|
27
|
-
throw new RangeError("Invalid time value");
|
|
28
|
-
var l = pe(a);
|
|
29
|
-
l.addSuffix = !!a.addSuffix, l.comparison = f;
|
|
30
|
-
var p, d;
|
|
31
|
-
f > 0 ? (p = S(e), d = S(t)) : (p = S(t), d = S(e));
|
|
32
|
-
var b = a.roundingMethod == null ? "round" : String(a.roundingMethod), s;
|
|
33
|
-
if (b === "floor")
|
|
34
|
-
s = Math.floor;
|
|
35
|
-
else if (b === "ceil")
|
|
36
|
-
s = Math.ceil;
|
|
37
|
-
else if (b === "round")
|
|
38
|
-
s = Math.round;
|
|
39
|
-
else
|
|
40
|
-
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
41
|
-
var g = d.getTime() - p.getTime(), u = g / j, c = $(d) - $(p), _ = (g - c) / j, n;
|
|
42
|
-
if (a.unit == null ? u < 1 ? n = "second" : u < 60 ? n = "minute" : u < L ? n = "hour" : _ < F ? n = "day" : _ < U ? n = "month" : n = "year" : n = String(a.unit), n === "second") {
|
|
43
|
-
var h = s(g / 1e3);
|
|
44
|
-
return i.formatDistance("xSeconds", h, l);
|
|
45
|
-
} else if (n === "minute") {
|
|
46
|
-
var r = s(u);
|
|
47
|
-
return i.formatDistance("xMinutes", r, l);
|
|
48
|
-
} else if (n === "hour") {
|
|
49
|
-
var y = s(u / 60);
|
|
50
|
-
return i.formatDistance("xHours", y, l);
|
|
51
|
-
} else if (n === "day") {
|
|
52
|
-
var w = s(_ / L);
|
|
53
|
-
return i.formatDistance("xDays", w, l);
|
|
54
|
-
} else if (n === "month") {
|
|
55
|
-
var C = s(_ / F);
|
|
56
|
-
return C === 12 && a.unit !== "month" ? i.formatDistance("xYears", 1, l) : i.formatDistance("xMonths", C, l);
|
|
57
|
-
} else if (n === "year") {
|
|
58
|
-
var E = s(_ / U);
|
|
59
|
-
return i.formatDistance("xYears", E, l);
|
|
60
|
-
}
|
|
61
|
-
throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
|
|
62
|
-
}
|
|
63
|
-
var T = /* @__PURE__ */ ((t) => (t.BOTTOM = "bottom", t.AFTER_FIRST = "after-first", t.BEFORE_LAST = "before-last", t))(T || {}), be = /* @__PURE__ */ ((t) => (t.SECOND = "second", t.MINUTE = "minute", t.HOUR = "hour", t.DAY = "day", t.MONTH = "month", t.YEAR = "year", t))(be || {}), M = /* @__PURE__ */ ((t) => (t.DEFAULT = "SquareSmallIcon", t.SUCCESS = "CheckedCircleIcon", t.CRITICAL = "CrossCircleIcon", t))(M || {}), J = /* @__PURE__ */ ((t) => (t.BLACK = "black", t.BLUE = "blue", t.GREEN = "green", t.GREY = "grey", t.ORANGE = "orange", t.RED = "red", t.YELLOW = "yellow", t))(J || {});
|
|
64
|
-
const K = Symbol("timeline register entry injection key"), V = Symbol("timeline config obj injection key"), ge = {
|
|
18
|
+
var C = /* @__PURE__ */ ((t) => (t.BOTTOM = "bottom", t.AFTER_FIRST = "after-first", t.BEFORE_LAST = "before-last", t))(C || {}), he = /* @__PURE__ */ ((t) => (t.SECOND = "second", t.MINUTE = "minute", t.HOUR = "hour", t.DAY = "day", t.MONTH = "month", t.YEAR = "year", t))(he || {}), N = /* @__PURE__ */ ((t) => (t.DEFAULT = "SquareSmallIcon", t.SUCCESS = "CheckedCircleIcon", t.CRITICAL = "CrossCircleIcon", t))(N || {}), J = /* @__PURE__ */ ((t) => (t.BLACK = "black", t.BLUE = "blue", t.GREEN = "green", t.GREY = "grey", t.ORANGE = "orange", t.RED = "red", t.YELLOW = "yellow", t))(J || {});
|
|
19
|
+
const q = Symbol("timeline register entry injection key"), K = Symbol("timeline config obj injection key"), ge = {
|
|
65
20
|
"en-US": {
|
|
66
21
|
addNote: "Add note",
|
|
67
22
|
cancel: "Cancel"
|
|
@@ -74,10 +29,10 @@ const K = Symbol("timeline register entry injection key"), V = Symbol("timeline
|
|
|
74
29
|
addNote: "Adicionar anotação",
|
|
75
30
|
cancel: "Cancelar"
|
|
76
31
|
}
|
|
77
|
-
},
|
|
32
|
+
}, pe = P({
|
|
78
33
|
i18n: { messages: ge },
|
|
79
34
|
name: "bento-timeline",
|
|
80
|
-
components: { BentoButton:
|
|
35
|
+
components: { BentoButton: z, BentoButtonActions: te, BentoTextarea: ee },
|
|
81
36
|
props: {
|
|
82
37
|
/**
|
|
83
38
|
* If set to true, gives the possibility to manually add notes to the timeline via a textarea
|
|
@@ -106,62 +61,62 @@ const K = Symbol("timeline register entry injection key"), V = Symbol("timeline
|
|
|
106
61
|
},
|
|
107
62
|
emits: ["add-timeline-note"],
|
|
108
63
|
setup(t, { emit: e }) {
|
|
109
|
-
const { t: a } =
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
var
|
|
113
|
-
|
|
64
|
+
const { t: a } = H(), c = s(() => a("addNote")), m = s(() => a("cancel")), b = y(), d = (r) => {
|
|
65
|
+
b.value = r;
|
|
66
|
+
}, h = y(null), p = y(null), l = y(!1), g = async () => {
|
|
67
|
+
var r, f;
|
|
68
|
+
l.value = !l.value, await Q(), l.value ? (r = h.value.$refs.textareaElement) == null || r.focus() : (f = p.value.$el) == null || f.focus();
|
|
114
69
|
}, u = () => {
|
|
115
70
|
e("add-timeline-note", {
|
|
116
|
-
description:
|
|
71
|
+
description: b.value,
|
|
117
72
|
timestamp: { date: /* @__PURE__ */ new Date() },
|
|
118
73
|
type: "note"
|
|
119
74
|
}), g();
|
|
120
|
-
},
|
|
121
|
-
() => t.showMore &&
|
|
122
|
-
),
|
|
123
|
-
...
|
|
124
|
-
|
|
125
|
-
] : t.showMore.placement ===
|
|
75
|
+
}, o = y([]), _ = s(
|
|
76
|
+
() => t.showMore && o.value.length > t.showMore.limit ? o.value.length - t.showMore.limit : null
|
|
77
|
+
), v = y(!1), { timegapLimit: n } = Z(t), i = s(() => Array.from(o.value.keys())), w = s(() => t.showMore ? t.showMore.placement === C.BEFORE_LAST ? [
|
|
78
|
+
...i.value.slice(0, t.showMore.limit - 1),
|
|
79
|
+
i.value[i.value.length - 1]
|
|
80
|
+
] : t.showMore.placement === C.AFTER_FIRST ? [i.value[0], ...i.value.slice(-(t.showMore.limit - 1))] : i.value.slice(0, t.showMore.limit) : null), E = s(() => {
|
|
126
81
|
if (!t.showMore)
|
|
127
82
|
return null;
|
|
128
83
|
switch (t.showMore.placement) {
|
|
129
|
-
case
|
|
84
|
+
case C.BEFORE_LAST:
|
|
130
85
|
return t.showMore.limit - 2;
|
|
131
|
-
case
|
|
86
|
+
case C.AFTER_FIRST:
|
|
132
87
|
return 0;
|
|
133
|
-
case
|
|
88
|
+
case C.BOTTOM:
|
|
134
89
|
default:
|
|
135
90
|
return t.showMore.limit - 1;
|
|
136
91
|
}
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
() =>
|
|
145
|
-
() =>
|
|
92
|
+
}), I = () => {
|
|
93
|
+
o.value.sort((r, f) => new Date(f.date).getTime() - new Date(r.date).getTime());
|
|
94
|
+
}, S = (r) => () => {
|
|
95
|
+
const f = o.value.indexOf(r);
|
|
96
|
+
f > -1 && o.value.splice(f, 1);
|
|
97
|
+
}, T = (r) => (o.value.push(r), { timelineEntries: o, unregisterTimelineEntry: S(r) });
|
|
98
|
+
G(
|
|
99
|
+
() => o.value.length,
|
|
100
|
+
() => I()
|
|
146
101
|
);
|
|
147
|
-
const
|
|
148
|
-
showAll:
|
|
149
|
-
showMoreIndex:
|
|
102
|
+
const L = {
|
|
103
|
+
showAll: v,
|
|
104
|
+
showMoreIndex: E,
|
|
150
105
|
hiddenItems: _,
|
|
151
|
-
visibleIndexes:
|
|
152
|
-
timegapLimit:
|
|
153
|
-
timelineEntries:
|
|
106
|
+
visibleIndexes: w,
|
|
107
|
+
timegapLimit: n,
|
|
108
|
+
timelineEntries: o
|
|
154
109
|
};
|
|
155
|
-
return x(
|
|
156
|
-
addNoteLabel:
|
|
157
|
-
cancelLabel:
|
|
110
|
+
return x(q, T), x(K, L), {
|
|
111
|
+
addNoteLabel: c,
|
|
112
|
+
cancelLabel: m,
|
|
158
113
|
toggleAddNote: g,
|
|
159
|
-
updateNoteContent:
|
|
114
|
+
updateNoteContent: d,
|
|
160
115
|
addNoteToTimeline: u,
|
|
161
|
-
showAddNoteTextArea:
|
|
116
|
+
showAddNoteTextArea: l,
|
|
162
117
|
// refs
|
|
163
|
-
addNoteTextareaRef:
|
|
164
|
-
addNoteButtonRef:
|
|
118
|
+
addNoteTextareaRef: h,
|
|
119
|
+
addNoteButtonRef: p
|
|
165
120
|
};
|
|
166
121
|
}
|
|
167
122
|
});
|
|
@@ -171,33 +126,66 @@ var ye = function() {
|
|
|
171
126
|
{ title: e.addNoteLabel, event: e.addNoteToTimeline },
|
|
172
127
|
{ title: e.cancelLabel, event: e.toggleAddNote }
|
|
173
128
|
] } })], 1) : e._e()], 1) : e._e(), a("ol", { staticClass: "b-timeline__items" }, [e._t("default")], 2)]);
|
|
174
|
-
}, Ce = [],
|
|
175
|
-
|
|
129
|
+
}, Ce = [], Te = /* @__PURE__ */ A(
|
|
130
|
+
pe,
|
|
176
131
|
ye,
|
|
177
132
|
Ce,
|
|
178
133
|
!1,
|
|
179
134
|
null,
|
|
180
135
|
"80180322"
|
|
181
136
|
);
|
|
182
|
-
const We =
|
|
183
|
-
let
|
|
184
|
-
const
|
|
137
|
+
const We = Te.exports;
|
|
138
|
+
let U = 0;
|
|
139
|
+
const we = {
|
|
185
140
|
beforeCreate() {
|
|
186
|
-
this.uuid =
|
|
141
|
+
this.uuid = U.toString(), U += 1;
|
|
187
142
|
}
|
|
188
143
|
};
|
|
189
|
-
var
|
|
144
|
+
var Ne = function() {
|
|
190
145
|
var e = this, a = e._self._c;
|
|
191
146
|
return a("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? a("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), a("path", { attrs: { 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" } })]);
|
|
192
|
-
}, Ee = [], Ie = /* @__PURE__ */
|
|
193
|
-
Te,
|
|
147
|
+
}, Ee = [], Ie = /* @__PURE__ */ A(
|
|
194
148
|
we,
|
|
149
|
+
Ne,
|
|
195
150
|
Ee,
|
|
196
151
|
!1,
|
|
197
152
|
null,
|
|
198
153
|
null
|
|
199
154
|
);
|
|
200
|
-
const Se = Ie.exports
|
|
155
|
+
const Se = Ie.exports;
|
|
156
|
+
function Y(t, e, a) {
|
|
157
|
+
const c = ue(), m = (a == null ? void 0 : a.locale) ?? c.locale ?? _e, b = ve(t, e);
|
|
158
|
+
if (isNaN(b))
|
|
159
|
+
throw new RangeError("Invalid time value");
|
|
160
|
+
const d = Object.assign({}, a, {
|
|
161
|
+
addSuffix: a == null ? void 0 : a.addSuffix,
|
|
162
|
+
comparison: b
|
|
163
|
+
}), [h, p] = fe(
|
|
164
|
+
a == null ? void 0 : a.in,
|
|
165
|
+
...b > 0 ? [e, t] : [t, e]
|
|
166
|
+
), l = be((a == null ? void 0 : a.roundingMethod) ?? "round"), g = p.getTime() - h.getTime(), u = g / F, o = k(p) - k(h), _ = (g - o) / F, v = a == null ? void 0 : a.unit;
|
|
167
|
+
let n;
|
|
168
|
+
if (v ? n = v : u < 1 ? n = "second" : u < 60 ? n = "minute" : u < B ? n = "hour" : _ < j ? n = "day" : _ < $ ? n = "month" : n = "year", n === "second") {
|
|
169
|
+
const i = l(g / 1e3);
|
|
170
|
+
return m.formatDistance("xSeconds", i, d);
|
|
171
|
+
} else if (n === "minute") {
|
|
172
|
+
const i = l(u);
|
|
173
|
+
return m.formatDistance("xMinutes", i, d);
|
|
174
|
+
} else if (n === "hour") {
|
|
175
|
+
const i = l(u / 60);
|
|
176
|
+
return m.formatDistance("xHours", i, d);
|
|
177
|
+
} else if (n === "day") {
|
|
178
|
+
const i = l(_ / B);
|
|
179
|
+
return m.formatDistance("xDays", i, d);
|
|
180
|
+
} else if (n === "month") {
|
|
181
|
+
const i = l(_ / j);
|
|
182
|
+
return i === 12 && v !== "month" ? m.formatDistance("xYears", 1, d) : m.formatDistance("xMonths", i, d);
|
|
183
|
+
} else {
|
|
184
|
+
const i = l(_ / $);
|
|
185
|
+
return m.formatDistance("xYears", i, d);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
const Le = {
|
|
201
189
|
"en-US": {
|
|
202
190
|
showLess: "Show less",
|
|
203
191
|
showMore: "Show {items} more",
|
|
@@ -209,19 +197,19 @@ const Se = Ie.exports, Me = {
|
|
|
209
197
|
"pt-BR": {
|
|
210
198
|
showLess: "Mostrar menos"
|
|
211
199
|
}
|
|
212
|
-
},
|
|
200
|
+
}, Me = P({
|
|
213
201
|
name: "bento-timeline-item",
|
|
214
202
|
components: {
|
|
215
|
-
BentoButton:
|
|
216
|
-
BentoDate:
|
|
217
|
-
BentoLink:
|
|
218
|
-
BentoTag:
|
|
219
|
-
BentoTypography:
|
|
220
|
-
BentoStructuredList:
|
|
221
|
-
BentoStructuredListItem:
|
|
203
|
+
BentoButton: z,
|
|
204
|
+
BentoDate: ae,
|
|
205
|
+
BentoLink: ie,
|
|
206
|
+
BentoTag: se,
|
|
207
|
+
BentoTypography: ne,
|
|
208
|
+
BentoStructuredList: re,
|
|
209
|
+
BentoStructuredListItem: oe,
|
|
222
210
|
SquareSmallIcon: Se
|
|
223
211
|
},
|
|
224
|
-
i18n: { messages:
|
|
212
|
+
i18n: { messages: Le },
|
|
225
213
|
props: {
|
|
226
214
|
/**
|
|
227
215
|
* Additional timestamp of the event
|
|
@@ -292,96 +280,96 @@ const Se = Ie.exports, Me = {
|
|
|
292
280
|
variant: {
|
|
293
281
|
type: String,
|
|
294
282
|
default: null,
|
|
295
|
-
validator: (t) => Object.values(
|
|
283
|
+
validator: (t) => Object.values(N).includes(t)
|
|
296
284
|
}
|
|
297
285
|
},
|
|
298
286
|
setup(t, { slots: e }) {
|
|
299
|
-
const { t: a } =
|
|
300
|
-
t.variant &&
|
|
287
|
+
const { t: a } = H(), c = s(() => t.type === "note"), m = s(() => t.variant === N.CRITICAL ? "red" : t.variant === N.SUCCESS ? "green" : t.status);
|
|
288
|
+
t.variant && le(
|
|
301
289
|
'BentoTimelineItem "variant" property',
|
|
302
290
|
`Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
|
|
303
291
|
<bento-timeline-item status="red" />`,
|
|
304
292
|
"2.0.0"
|
|
305
293
|
);
|
|
306
|
-
const
|
|
307
|
-
[`b-timeline-item__icon--${
|
|
308
|
-
})),
|
|
309
|
-
"b-timeline-item--note":
|
|
294
|
+
const b = s(() => ({
|
|
295
|
+
[`b-timeline-item__icon--${m.value}`]: m.value && !c.value
|
|
296
|
+
})), d = s(() => ({
|
|
297
|
+
"b-timeline-item--note": c.value
|
|
310
298
|
}));
|
|
311
|
-
x(
|
|
312
|
-
const
|
|
299
|
+
x(ce, !0);
|
|
300
|
+
const h = {
|
|
313
301
|
title: t.title,
|
|
314
302
|
date: t.timestamp.date
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
const { showAll: u, showMoreIndex:
|
|
318
|
-
() =>
|
|
319
|
-
),
|
|
320
|
-
var
|
|
321
|
-
if (!
|
|
303
|
+
}, p = D(q), { timelineEntries: l, unregisterTimelineEntry: g } = p(h);
|
|
304
|
+
X(() => g());
|
|
305
|
+
const { showAll: u, showMoreIndex: o, hiddenItems: _, visibleIndexes: v, timegapLimit: n } = D(K), i = s(() => l.value.indexOf(h)), w = s(() => u.value || !v.value), E = s(
|
|
306
|
+
() => w.value ? !0 : v.value.includes(i.value)
|
|
307
|
+
), I = s(() => typeof t.title == "object"), S = s(() => t.title), T = s(() => {
|
|
308
|
+
var O;
|
|
309
|
+
if (!n.value)
|
|
322
310
|
return null;
|
|
323
|
-
const
|
|
324
|
-
if (!
|
|
311
|
+
const M = (O = l.value[i.value - 1]) == null ? void 0 : O.date, V = w.value || v.value.includes(i.value - 1);
|
|
312
|
+
if (!M || !V)
|
|
325
313
|
return null;
|
|
326
|
-
const { date:
|
|
327
|
-
Y(
|
|
314
|
+
const { date: R } = l.value[i.value], W = parseInt(
|
|
315
|
+
Y(M, R, { unit: n.value.unit }),
|
|
328
316
|
10
|
|
329
317
|
);
|
|
330
|
-
return
|
|
331
|
-
}),
|
|
318
|
+
return n.value.amount < W ? Y(M, R, { roundingMethod: "floor" }) : null;
|
|
319
|
+
}), L = s(() => T.value ? a("timegap", { timegap: T.value }) : ""), r = s(() => _.value && o.value === i.value), f = s(() => i.value !== -1 && i.value === l.value.length - 1);
|
|
332
320
|
return {
|
|
333
321
|
// Values
|
|
334
|
-
isNoteType:
|
|
335
|
-
iconConditionalClasses:
|
|
336
|
-
conditionalClasses:
|
|
337
|
-
displayShowMoreButton:
|
|
322
|
+
isNoteType: c,
|
|
323
|
+
iconConditionalClasses: b,
|
|
324
|
+
conditionalClasses: d,
|
|
325
|
+
displayShowMoreButton: r,
|
|
338
326
|
showAll: u,
|
|
339
327
|
hiddenItems: _,
|
|
340
|
-
isVisible:
|
|
341
|
-
isLinkTitle:
|
|
342
|
-
linkTitleProps:
|
|
343
|
-
timegap:
|
|
344
|
-
timegapAriaLabel:
|
|
345
|
-
isLastItem:
|
|
328
|
+
isVisible: E,
|
|
329
|
+
isLinkTitle: I,
|
|
330
|
+
linkTitleProps: S,
|
|
331
|
+
timegap: T,
|
|
332
|
+
timegapAriaLabel: L,
|
|
333
|
+
isLastItem: f,
|
|
346
334
|
// Methods
|
|
347
|
-
generateUid:
|
|
348
|
-
hasSlot:
|
|
335
|
+
generateUid: me,
|
|
336
|
+
hasSlot: de(e),
|
|
349
337
|
t: a
|
|
350
338
|
};
|
|
351
339
|
}
|
|
352
340
|
});
|
|
353
|
-
var
|
|
341
|
+
var xe = function() {
|
|
354
342
|
var e = this, a = e._self._c;
|
|
355
343
|
return e._self._setupProxy, e.isVisible ? a("li", { staticClass: "b-timeline-item", class: e.conditionalClasses }, [e.timegap ? a("div", { staticClass: "b-timeline-item__row" }, [e._m(0), a("div", { staticClass: "b-timeline-item__content" }, [a("bento-typography", { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": e.timegapAriaLabel } }, [e._v(" " + e._s(e.timegap) + " ")])], 1)]) : e._e(), a("div", { staticClass: "b-timeline-item__row" }, [a("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [a("square-small-icon", { staticClass: "b-timeline-item__icon", class: e.iconConditionalClasses }), e.isLastItem ? e._e() : a("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), a("div", { staticClass: "b-timeline-item__content" }, [e.isNoteType ? e._e() : a("bento-typography", { staticClass: "b-timeline-item__title", attrs: { el: "div", variant: "body", strongest: "", role: "heading", "aria-level": "2" } }, [e.isLinkTitle ? a("bento-link", e._b({ attrs: { "disable-typography": "" } }, "bento-link", e.linkTitleProps, !1), [e._v(e._s(e.linkTitleProps.title))]) : a("span", [e._v(e._s(e.title))])], 1), e.isNoteType && (e.description || e.hasSlot("default")) ? a("bento-typography", { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [e._t("default", function() {
|
|
356
344
|
return [e._v(e._s(e.description))];
|
|
357
345
|
})], 2) : e._e(), e.timestamp ? a("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [a("bento-date", { attrs: { date: e.timestamp.date, format: e.timestamp.format, "disable-typography": "" } }), e._v(" " + e._s(e.timestamp.value) + " ")], 1) : e._e(), !e.isNoteType && e.additionalTimestamp ? a("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [a("bento-date", { attrs: { date: e.additionalTimestamp.date, format: e.additionalTimestamp.format, "disable-typography": "" } }), e._v(" " + e._s(e.additionalTimestamp.value) + " ")], 1) : e._e(), !e.isNoteType && (e.description || e.hasSlot("default")) ? a("bento-typography", { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [e._t("default", function() {
|
|
358
346
|
return [e._v(e._s(e.description))];
|
|
359
|
-
})], 2) : e._e(), !e.isNoteType && e.dataList ? a("div", { staticClass: "b-timeline-item__data-list" }, [a("bento-structured-list", e._l(e.dataList, function(
|
|
360
|
-
return a("bento-structured-list-item", { key: e.generateUid(
|
|
361
|
-
}), 1)], 1) : e._e(), !e.isNoteType && e.tag ? a("bento-tag", e._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", e.tag, !1)) : e._e()], 1)]), e.displayShowMoreButton ? a("div", { staticClass: "b-timeline-item__row" }, [e._m(1), a("div", { staticClass: "b-timeline-item__content" }, [a("bento-button", { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(
|
|
347
|
+
})], 2) : e._e(), !e.isNoteType && e.dataList ? a("div", { staticClass: "b-timeline-item__data-list" }, [a("bento-structured-list", e._l(e.dataList, function(c) {
|
|
348
|
+
return a("bento-structured-list-item", { key: e.generateUid(c.label), attrs: { label: c.label } }, [a("bento-typography", { attrs: { variant: "caption" } }, [e._v(e._s(c.value))])], 1);
|
|
349
|
+
}), 1)], 1) : e._e(), !e.isNoteType && e.tag ? a("bento-tag", e._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", e.tag, !1)) : e._e()], 1)]), e.displayShowMoreButton ? a("div", { staticClass: "b-timeline-item__row" }, [e._m(1), a("div", { staticClass: "b-timeline-item__content" }, [a("bento-button", { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(c) {
|
|
362
350
|
e.showAll = !e.showAll;
|
|
363
351
|
} } }, [e.showAll ? [e._v(e._s(e.t("showLess")))] : [e._v(e._s(e.t("showMore", { items: e.hiddenItems })))]], 2)], 1)]) : e._e()]) : e._e();
|
|
364
|
-
},
|
|
352
|
+
}, Ae = [function() {
|
|
365
353
|
var t = this, e = t._self._c;
|
|
366
354
|
return t._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__icon b-timeline-item__icon--timegap" }), e("div", { staticClass: "b-timeline-item__separator" })]);
|
|
367
355
|
}, function() {
|
|
368
356
|
var t = this, e = t._self._c;
|
|
369
357
|
return t._self._setupProxy, e("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [e("div", { staticClass: "b-timeline-item__separator" })]);
|
|
370
|
-
}],
|
|
371
|
-
|
|
358
|
+
}], Re = /* @__PURE__ */ A(
|
|
359
|
+
Me,
|
|
360
|
+
xe,
|
|
372
361
|
Ae,
|
|
373
|
-
Re,
|
|
374
362
|
!1,
|
|
375
363
|
null,
|
|
376
|
-
"
|
|
364
|
+
"862b2546"
|
|
377
365
|
);
|
|
378
|
-
const Ze =
|
|
366
|
+
const Ze = Re.exports;
|
|
379
367
|
export {
|
|
380
|
-
|
|
368
|
+
C as B,
|
|
381
369
|
Ze as a,
|
|
382
|
-
|
|
383
|
-
|
|
370
|
+
he as b,
|
|
371
|
+
N as c,
|
|
384
372
|
J as d,
|
|
385
373
|
We as t
|
|
386
374
|
};
|
|
387
|
-
//# sourceMappingURL=timeline-item.
|
|
375
|
+
//# sourceMappingURL=timeline-item.CZBuknZ_.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline-item.CZBuknZ_.js","sources":["../../src/components/timeline/timeline.types.ts","../../src/components/timeline/timeline.keys.ts","../../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","../../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","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 @input=\"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 lang=\"ts\">\n import { computed, defineComponent, nextTick, type PropType, 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 BentoTimelineGapObject,\n type BentoTimelineShowMoreObject,\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 /**\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 components: { BentoButton, BentoButtonActions, BentoTextarea },\n props: {\n /**\n * If set to true, gives the possibility to manually add notes to the timeline via a textarea\n */\n addNote: {\n type: Boolean,\n default: false,\n },\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: {\n type: Object as PropType<BentoTimelineShowMoreObject>,\n default: null,\n },\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: {\n type: Object as PropType<BentoTimelineGapObject>,\n default: null,\n },\n },\n\n emits: ['add-timeline-note'],\n\n setup(props, { emit }) {\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\n return {\n addNoteLabel,\n cancelLabel,\n toggleAddNote,\n updateNoteContent,\n addNoteToTimeline,\n showAddNoteTextArea,\n\n // refs\n addNoteTextareaRef,\n addNoteButtonRef,\n };\n },\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=\"entry in dataList\"\n :key=\"generateUid(entry.label)\"\n :label=\"entry.label\"\n >\n <bento-typography variant=\"caption\">{{ entry.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 lang=\"ts\">\n import { computed, defineComponent, inject, onUnmounted, type PropType, provide } 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 BentoTimelineDataList,\n type BentoTimelineEntry,\n type BentoTimelineItemTitle,\n BentoTimelineItemVariant,\n type BentoTimelineRegisterEntry,\n BentoTimelineStatus,\n type BentoTimelineTagProps,\n type BentoTimelineTimestamp,\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 * 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 components: {\n BentoButton,\n BentoDate,\n BentoLink,\n BentoTag,\n BentoTypography,\n BentoStructuredList,\n BentoStructuredListItem,\n SquareSmallIcon,\n },\n i18n: { messages },\n props: {\n /**\n * Additional timestamp of the event\n */\n additionalTimestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n default: null,\n },\n /**\n * Relevant key-value pair data to display in the event\n */\n dataList: {\n type: Array as PropType<BentoTimelineDataList>,\n default: null,\n },\n /**\n * Description of the event\n */\n description: {\n type: String,\n default: null,\n },\n /**\n * Modifier that changes the color of the timeline icon\n * @values blue, black, green, grey, orange, red, yellow\n */\n status: {\n type: String as PropType<`${BentoTimelineStatus}`>,\n default: 'black',\n validator: (value: BentoTimelineStatus) => Object.values(BentoTimelineStatus).includes(value),\n },\n /**\n * Tag props that will be passed down to inner tag component\n */\n tag: {\n type: Object as PropType<BentoTimelineTagProps>,\n default: undefined,\n },\n /**\n * Main timestamp of the event. Used for timegap detection.\n */\n timestamp: {\n type: Object as PropType<BentoTimelineTimestamp>,\n required: true,\n },\n /**\n * Title of the event\n */\n title: {\n type: [Object, String] as PropType<BentoTimelineItemTitle | string>,\n default: null,\n },\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: {\n type: String,\n default: 'milestone',\n validator: (value: string) => ['milestone', 'note'].includes(value),\n },\n /**\n * Variant for the timeline item\n * @values DEFAULT, SUCCESS, CRITICAL\n *\n * @deprecated Use \"status\" prop instead\n */\n variant: {\n type: String as PropType<BentoTimelineItemVariant | `${BentoTimelineItemVariant}`>,\n default: null,\n validator: (value: BentoTimelineItemVariant) => Object.values(BentoTimelineItemVariant).includes(value),\n },\n },\n setup(props, { slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\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(() =>\n allItemsShowing.value ? true : visibleIndexes.value.includes(index.value)\n );\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\n return {\n // Values\n isNoteType,\n iconConditionalClasses,\n conditionalClasses,\n displayShowMoreButton,\n showAll,\n hiddenItems,\n isVisible,\n isLinkTitle,\n linkTitleProps,\n timegap,\n timegapAriaLabel,\n isLastItem,\n\n // Methods\n generateUid,\n hasSlot: useHasSlot(slots),\n t,\n };\n },\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","_sfc_main$2","defineComponent","messages$1","BentoButton","BentoButtonActions","BentoTextarea","props","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","_sfc_main$1","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","_sfc_main","BentoDate","BentoLink","BentoTag","BentoTypography","BentoStructuredList","BentoStructuredListItem","SquareSmallIcon","messages","value","slots","isNoteType","computedStatus","deprecate","iconConditionalClasses","conditionalClasses","STRUCTURED_LIST_CONDENSED_INJECTION_KEY","inject","onUnmounted","allItemsShowing","isVisible","isLinkTitle","linkTitleProps","timegap","previousDate","isPreviousItemVisible","date","timegapInSelectedUnit","timegapAriaLabel","displayShowMoreButton","isLastItem","generateUid","useHasSlot"],"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,IAAA,kBAAAC,OACRA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,OAAA,QACAA,EAAA,SAAA,UACAA,EA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AC,GAAAtB,CAAA;AAAA,MACA,GAAAjF;AAAA,IACA;AAAA,EACA;AAEA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[4]}
|
package/dist/data-grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as e, d as o, a as r, b as n, f as i, e as B, c as d, B as s } from "./chunks/data-grid.
|
|
1
|
+
import { g as e, d as o, a as r, b as n, f as i, e as B, c as d, B as s } from "./chunks/data-grid.B5aCkT0o.js";
|
|
2
2
|
export {
|
|
3
3
|
e as BentoColumnOverflow,
|
|
4
4
|
o as BentoDataGrid,
|
package/dist/date-picker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as t, a as r } from "./chunks/date-picker.
|
|
2
|
-
import { C as i, a as n } from "./chunks/calendar.
|
|
1
|
+
import { B as t, a as r } from "./chunks/date-picker.DImAYvoM.js";
|
|
2
|
+
import { C as i, a as n } from "./chunks/calendar.Fm_dfQC5.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BentoDatePicker,
|
|
5
5
|
r as BentoDatePickerEvent,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as t, a as n } from "./chunks/date-range-picker.
|
|
2
|
-
import { C as o, a as i } from "./chunks/calendar.
|
|
1
|
+
import { B as t, a as n } from "./chunks/date-range-picker.DgZMERzx.js";
|
|
2
|
+
import { C as o, a as i } from "./chunks/calendar.Fm_dfQC5.js";
|
|
3
3
|
export {
|
|
4
4
|
t as BentoDateRangePicker,
|
|
5
5
|
n as BentoDateRangePickerEvent,
|
package/dist/filter-bar.js
CHANGED