sprintify-ui 0.0.50 → 0.0.51
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/sprintify-ui.es.js
CHANGED
|
@@ -7139,7 +7139,7 @@ const Mc = /* @__PURE__ */ Pe(Ic, [["render", Lc]]), Oc = { class: "flex justify
|
|
|
7139
7139
|
!0
|
|
7140
7140
|
), y = T(() => {
|
|
7141
7141
|
var S;
|
|
7142
|
-
return n.modelValue && (S = ot.fromISO(n.modelValue).toISODate()) != null ? S : null;
|
|
7142
|
+
return n.modelValue && (S = ot.fromISO(n.modelValue, { zone: "utc" }).toISODate()) != null ? S : null;
|
|
7143
7143
|
});
|
|
7144
7144
|
Ae(
|
|
7145
7145
|
() => y.value,
|
|
@@ -7168,7 +7168,7 @@ const Mc = /* @__PURE__ */ Pe(Ic, [["render", Lc]]), Oc = { class: "flex justify
|
|
|
7168
7168
|
parse(S) {
|
|
7169
7169
|
if (!S)
|
|
7170
7170
|
return null;
|
|
7171
|
-
const M = ot.fromISO(S), b = M.year, E = M.month - 1, t = M.day;
|
|
7171
|
+
const M = ot.fromISO(S, { zone: "utc" }), b = M.year, E = M.month - 1, t = M.day;
|
|
7172
7172
|
return new Date(b, E, t);
|
|
7173
7173
|
},
|
|
7174
7174
|
minDate: n.minDate,
|
|
@@ -7296,7 +7296,7 @@ const Mc = /* @__PURE__ */ Pe(Ic, [["render", Lc]]), Oc = { class: "flex justify
|
|
|
7296
7296
|
() => n.modelValue,
|
|
7297
7297
|
() => {
|
|
7298
7298
|
if (n.modelValue) {
|
|
7299
|
-
const S = ot.fromISO(n.modelValue);
|
|
7299
|
+
const S = ot.fromISO(n.modelValue, { zone: "utc" });
|
|
7300
7300
|
f.value.year = S.year, f.value.month = S.month, f.value.day = S.day;
|
|
7301
7301
|
}
|
|
7302
7302
|
},
|
|
@@ -7311,7 +7311,8 @@ const Mc = /* @__PURE__ */ Pe(Ic, [["render", Lc]]), Oc = { class: "flex justify
|
|
|
7311
7311
|
}
|
|
7312
7312
|
function I() {
|
|
7313
7313
|
return !f.value.year || !f.value.month || !f.value.day ? null : ot.fromISO(
|
|
7314
|
-
gt(f.value.year + "", 4, "0") + "-" + gt(f.value.month + "", 2, "0") + "-" + gt(f.value.day + "", 2, "0")
|
|
7314
|
+
gt(f.value.year + "", 4, "0") + "-" + gt(f.value.month + "", 2, "0") + "-" + gt(f.value.day + "", 2, "0"),
|
|
7315
|
+
{ zone: "utc" }
|
|
7315
7316
|
);
|
|
7316
7317
|
}
|
|
7317
7318
|
const A = T(() => p.value.length == 0 || n.disabled);
|
|
@@ -12054,9 +12055,9 @@ const fp = ml.exports, mp = ["innerHTML"], pp = {
|
|
|
12054
12055
|
o.value.plus({ second: 1 });
|
|
12055
12056
|
}, 1e3), s = T(() => {
|
|
12056
12057
|
if (n.notification.created_at) {
|
|
12057
|
-
const p = ot.fromISO(n.notification.created_at
|
|
12058
|
-
|
|
12059
|
-
).milliseconds, f = fp(p, {
|
|
12058
|
+
const p = ot.fromISO(n.notification.created_at, {
|
|
12059
|
+
zone: "utc"
|
|
12060
|
+
}).diff(o.value).milliseconds, f = fp(p, {
|
|
12060
12061
|
language: l.locale.value,
|
|
12061
12062
|
round: !0,
|
|
12062
12063
|
largest: 1
|
package/package.json
CHANGED
|
@@ -109,7 +109,9 @@ const modelValueFormatted = computed((): string | null => {
|
|
|
109
109
|
if (!props.modelValue) {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return (
|
|
113
|
+
DateTime.fromISO(props.modelValue, { zone: 'utc' }).toISODate() ?? null
|
|
114
|
+
);
|
|
113
115
|
});
|
|
114
116
|
|
|
115
117
|
// Make sure the model value is always formatted on the parent component
|
|
@@ -153,7 +155,7 @@ onMounted(() => {
|
|
|
153
155
|
return null;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
const datetime = DateTime.fromISO(dateString);
|
|
158
|
+
const datetime = DateTime.fromISO(dateString, { zone: 'utc' });
|
|
157
159
|
const year = datetime.year;
|
|
158
160
|
const month = datetime.month - 1;
|
|
159
161
|
const day = datetime.day;
|
|
@@ -161,7 +161,7 @@ watch(
|
|
|
161
161
|
() => props.modelValue,
|
|
162
162
|
() => {
|
|
163
163
|
if (props.modelValue) {
|
|
164
|
-
const datetime = DateTime.fromISO(props.modelValue);
|
|
164
|
+
const datetime = DateTime.fromISO(props.modelValue, { zone: 'utc' });
|
|
165
165
|
date.value.year = datetime.year;
|
|
166
166
|
date.value.month = datetime.month;
|
|
167
167
|
date.value.day = datetime.day;
|
|
@@ -198,7 +198,8 @@ function getDateTime(): DateTime | null {
|
|
|
198
198
|
'-' +
|
|
199
199
|
padStart(date.value.month + '', 2, '0') +
|
|
200
200
|
'-' +
|
|
201
|
-
padStart(date.value.day + '', 2, '0')
|
|
201
|
+
padStart(date.value.day + '', 2, '0'),
|
|
202
|
+
{ zone: 'utc' }
|
|
202
203
|
);
|
|
203
204
|
}
|
|
204
205
|
|
|
@@ -44,9 +44,9 @@ const intervalId = setInterval(() => {
|
|
|
44
44
|
|
|
45
45
|
const createdAt = computed(() => {
|
|
46
46
|
if (props.notification.created_at) {
|
|
47
|
-
const duration = DateTime.fromISO(props.notification.created_at
|
|
48
|
-
|
|
49
|
-
).milliseconds;
|
|
47
|
+
const duration = DateTime.fromISO(props.notification.created_at, {
|
|
48
|
+
zone: 'utc',
|
|
49
|
+
}).diff(now.value).milliseconds;
|
|
50
50
|
|
|
51
51
|
const durationHuman = humanizeDuration(duration, {
|
|
52
52
|
language: i18n.locale.value,
|