@club-employes/utopia 4.405.0 → 4.406.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/index.js +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5999,17 +5999,17 @@ function Hh(e, t) {
|
|
|
5999
5999
|
date: (l) => {
|
|
6000
6000
|
if (e.value?.formatDate) return e.value.formatDate(l);
|
|
6001
6001
|
if (!l) return "";
|
|
6002
|
-
const a = new Date(l);
|
|
6002
|
+
const a = new Date(l.replace(" ", "T"));
|
|
6003
6003
|
return isNaN(a.getTime()) ? l : a.toLocaleDateString(o.value, jh);
|
|
6004
6004
|
},
|
|
6005
6005
|
time: (l) => {
|
|
6006
6006
|
if (!l) return "";
|
|
6007
6007
|
if (e.value?.formatTime) return e.value.formatTime(l);
|
|
6008
|
-
if (typeof l == "string" && l.includes(":") && !l.includes("T")) {
|
|
6008
|
+
if (typeof l == "string" && l.includes(":") && !l.includes("T") && !l.includes(" ")) {
|
|
6009
6009
|
const c = `1970-01-01T${l.split(":").length === 2 ? `${l}:00` : l}Z`, d = new Date(c);
|
|
6010
6010
|
return isNaN(d.getTime()) ? l : d.toLocaleTimeString(o.value, gc);
|
|
6011
6011
|
}
|
|
6012
|
-
const i = new Date(l);
|
|
6012
|
+
const i = new Date(l.replace(" ", "T"));
|
|
6013
6013
|
return isNaN(i.getTime()) ? l : i.toLocaleTimeString(o.value, gc);
|
|
6014
6014
|
},
|
|
6015
6015
|
dateTime: (l) => l ? {
|
|
@@ -9164,7 +9164,7 @@ function Bo(e, t = "DD/MM/YYYY") {
|
|
|
9164
9164
|
const a = Number.parseInt(n[1], 10), i = Number.parseInt(n[2], 10), s = Number.parseInt(n[3], 10), [c, d] = t === "MM/DD/YYYY" ? [i, a - 1] : [a, i - 1], u = new Date(s, d, c);
|
|
9165
9165
|
return Number.isNaN(u.getTime()) ? null : u;
|
|
9166
9166
|
}
|
|
9167
|
-
const l = new Date(o);
|
|
9167
|
+
const l = new Date(o.replace(" ", "T"));
|
|
9168
9168
|
if (!Number.isNaN(l.getTime())) return l;
|
|
9169
9169
|
}
|
|
9170
9170
|
return null;
|
|
@@ -40748,7 +40748,7 @@ function ZT(e, t, o) {
|
|
|
40748
40748
|
return S({
|
|
40749
40749
|
get() {
|
|
40750
40750
|
const n = e();
|
|
40751
|
-
return n ? new Date(n) : void 0;
|
|
40751
|
+
return n ? new Date(n.replace(" ", "T")) : void 0;
|
|
40752
40752
|
},
|
|
40753
40753
|
set(n) {
|
|
40754
40754
|
if (!n) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@club-employes/utopia",
|
|
3
3
|
"description": "🎨 Modern Vue 3 design system with multi-brand theming, design tokens, and 30+ components. Supports Club Employés & Gifteo brands with light/dark modes.",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.406.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|