@cgi-learning-hub/ui 1.12.0-dev.1774283618 → 1.12.0-dev.1774284986
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.cjs.js +18 -355
- package/dist/index.es.js +13 -355
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -33,6 +33,18 @@ react_dom = __toESM(react_dom);
|
|
|
33
33
|
let react_color = require("react-color");
|
|
34
34
|
let dayjs = require("dayjs");
|
|
35
35
|
dayjs = __toESM(dayjs);
|
|
36
|
+
let dayjs_plugin_weekOfYear_js = require("dayjs/plugin/weekOfYear.js");
|
|
37
|
+
dayjs_plugin_weekOfYear_js = __toESM(dayjs_plugin_weekOfYear_js);
|
|
38
|
+
let dayjs_plugin_customParseFormat_js = require("dayjs/plugin/customParseFormat.js");
|
|
39
|
+
dayjs_plugin_customParseFormat_js = __toESM(dayjs_plugin_customParseFormat_js);
|
|
40
|
+
let dayjs_plugin_localizedFormat_js = require("dayjs/plugin/localizedFormat.js");
|
|
41
|
+
dayjs_plugin_localizedFormat_js = __toESM(dayjs_plugin_localizedFormat_js);
|
|
42
|
+
let dayjs_plugin_isBetween_js = require("dayjs/plugin/isBetween.js");
|
|
43
|
+
dayjs_plugin_isBetween_js = __toESM(dayjs_plugin_isBetween_js);
|
|
44
|
+
let dayjs_plugin_advancedFormat_js = require("dayjs/plugin/advancedFormat.js");
|
|
45
|
+
dayjs_plugin_advancedFormat_js = __toESM(dayjs_plugin_advancedFormat_js);
|
|
46
|
+
require("dayjs/locale/en");
|
|
47
|
+
require("dayjs/locale/fr");
|
|
36
48
|
let react_dropzone = require("react-dropzone");
|
|
37
49
|
let _mui_icons_material = require("@mui/icons-material");
|
|
38
50
|
let _mui_material = require("@mui/material");
|
|
@@ -35178,278 +35190,6 @@ var ColorPicker = ({ disabled = false, options, value, onChange, slotProps, useC
|
|
|
35178
35190
|
});
|
|
35179
35191
|
};
|
|
35180
35192
|
//#endregion
|
|
35181
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/weekOfYear.js
|
|
35182
|
-
var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35183
|
-
(function(e, t) {
|
|
35184
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
|
|
35185
|
-
})(exports, (function() {
|
|
35186
|
-
"use strict";
|
|
35187
|
-
var e = "week", t = "year";
|
|
35188
|
-
return function(i, n, r) {
|
|
35189
|
-
var f = n.prototype;
|
|
35190
|
-
f.week = function(i) {
|
|
35191
|
-
if (void 0 === i && (i = null), null !== i) return this.add(7 * (i - this.week()), "day");
|
|
35192
|
-
var n = this.$locale().yearStart || 1;
|
|
35193
|
-
if (11 === this.month() && this.date() > 25) {
|
|
35194
|
-
var f = r(this).startOf(t).add(1, t).date(n), s = r(this).endOf(e);
|
|
35195
|
-
if (f.isBefore(s)) return 1;
|
|
35196
|
-
}
|
|
35197
|
-
var a = r(this).startOf(t).date(n).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, !0);
|
|
35198
|
-
return o < 0 ? r(this).startOf("week").week() : Math.ceil(o);
|
|
35199
|
-
}, f.weeks = function(e) {
|
|
35200
|
-
return void 0 === e && (e = null), this.week(e);
|
|
35201
|
-
};
|
|
35202
|
-
};
|
|
35203
|
-
}));
|
|
35204
|
-
}));
|
|
35205
|
-
//#endregion
|
|
35206
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/customParseFormat.js
|
|
35207
|
-
var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35208
|
-
(function(e, t) {
|
|
35209
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
|
|
35210
|
-
})(exports, (function() {
|
|
35211
|
-
"use strict";
|
|
35212
|
-
var e = {
|
|
35213
|
-
LTS: "h:mm:ss A",
|
|
35214
|
-
LT: "h:mm A",
|
|
35215
|
-
L: "MM/DD/YYYY",
|
|
35216
|
-
LL: "MMMM D, YYYY",
|
|
35217
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
35218
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
35219
|
-
}, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e) {
|
|
35220
|
-
return (e = +e) + (e > 68 ? 1900 : 2e3);
|
|
35221
|
-
};
|
|
35222
|
-
var f = function(e) {
|
|
35223
|
-
return function(t) {
|
|
35224
|
-
this[e] = +t;
|
|
35225
|
-
};
|
|
35226
|
-
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
|
|
35227
|
-
(this.zone || (this.zone = {})).offset = function(e) {
|
|
35228
|
-
if (!e) return 0;
|
|
35229
|
-
if ("Z" === e) return 0;
|
|
35230
|
-
var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
|
|
35231
|
-
return 0 === n ? 0 : "+" === t[0] ? -n : n;
|
|
35232
|
-
}(e);
|
|
35233
|
-
}], u = function(e) {
|
|
35234
|
-
var t = s[e];
|
|
35235
|
-
return t && (t.indexOf ? t : t.s.concat(t.f));
|
|
35236
|
-
}, d = function(e, t) {
|
|
35237
|
-
var n, r = s.meridiem;
|
|
35238
|
-
if (r) {
|
|
35239
|
-
for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
|
|
35240
|
-
n = i > 12;
|
|
35241
|
-
break;
|
|
35242
|
-
}
|
|
35243
|
-
} else n = e === (t ? "pm" : "PM");
|
|
35244
|
-
return n;
|
|
35245
|
-
}, c = {
|
|
35246
|
-
A: [o, function(e) {
|
|
35247
|
-
this.afternoon = d(e, !1);
|
|
35248
|
-
}],
|
|
35249
|
-
a: [o, function(e) {
|
|
35250
|
-
this.afternoon = d(e, !0);
|
|
35251
|
-
}],
|
|
35252
|
-
Q: [n, function(e) {
|
|
35253
|
-
this.month = 3 * (e - 1) + 1;
|
|
35254
|
-
}],
|
|
35255
|
-
S: [n, function(e) {
|
|
35256
|
-
this.milliseconds = 100 * +e;
|
|
35257
|
-
}],
|
|
35258
|
-
SS: [r, function(e) {
|
|
35259
|
-
this.milliseconds = 10 * +e;
|
|
35260
|
-
}],
|
|
35261
|
-
SSS: [/\d{3}/, function(e) {
|
|
35262
|
-
this.milliseconds = +e;
|
|
35263
|
-
}],
|
|
35264
|
-
s: [i, f("seconds")],
|
|
35265
|
-
ss: [i, f("seconds")],
|
|
35266
|
-
m: [i, f("minutes")],
|
|
35267
|
-
mm: [i, f("minutes")],
|
|
35268
|
-
H: [i, f("hours")],
|
|
35269
|
-
h: [i, f("hours")],
|
|
35270
|
-
HH: [i, f("hours")],
|
|
35271
|
-
hh: [i, f("hours")],
|
|
35272
|
-
D: [i, f("day")],
|
|
35273
|
-
DD: [r, f("day")],
|
|
35274
|
-
Do: [o, function(e) {
|
|
35275
|
-
var t = s.ordinal;
|
|
35276
|
-
if (this.day = e.match(/\d+/)[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
|
|
35277
|
-
}],
|
|
35278
|
-
w: [i, f("week")],
|
|
35279
|
-
ww: [r, f("week")],
|
|
35280
|
-
M: [i, f("month")],
|
|
35281
|
-
MM: [r, f("month")],
|
|
35282
|
-
MMM: [o, function(e) {
|
|
35283
|
-
var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
|
|
35284
|
-
return e.slice(0, 3);
|
|
35285
|
-
}))).indexOf(e) + 1;
|
|
35286
|
-
if (n < 1) throw new Error();
|
|
35287
|
-
this.month = n % 12 || n;
|
|
35288
|
-
}],
|
|
35289
|
-
MMMM: [o, function(e) {
|
|
35290
|
-
var t = u("months").indexOf(e) + 1;
|
|
35291
|
-
if (t < 1) throw new Error();
|
|
35292
|
-
this.month = t % 12 || t;
|
|
35293
|
-
}],
|
|
35294
|
-
Y: [/[+-]?\d+/, f("year")],
|
|
35295
|
-
YY: [r, function(e) {
|
|
35296
|
-
this.year = a(e);
|
|
35297
|
-
}],
|
|
35298
|
-
YYYY: [/\d{4}/, f("year")],
|
|
35299
|
-
Z: h,
|
|
35300
|
-
ZZ: h
|
|
35301
|
-
};
|
|
35302
|
-
function l(n) {
|
|
35303
|
-
var r = n, i = s && s.formats;
|
|
35304
|
-
for (var o = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
|
|
35305
|
-
var o = r && r.toUpperCase();
|
|
35306
|
-
return n || i[r] || e[r] || i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
|
|
35307
|
-
return t || n.slice(1);
|
|
35308
|
-
}));
|
|
35309
|
-
}))).match(t), a = o.length, f = 0; f < a; f += 1) {
|
|
35310
|
-
var h = o[f], u = c[h], d = u && u[0], l = u && u[1];
|
|
35311
|
-
o[f] = l ? {
|
|
35312
|
-
regex: d,
|
|
35313
|
-
parser: l
|
|
35314
|
-
} : h.replace(/^\[|\]$/g, "");
|
|
35315
|
-
}
|
|
35316
|
-
return function(e) {
|
|
35317
|
-
for (var t = {}, n = 0, r = 0; n < a; n += 1) {
|
|
35318
|
-
var i = o[n];
|
|
35319
|
-
if ("string" == typeof i) r += i.length;
|
|
35320
|
-
else {
|
|
35321
|
-
var s = i.regex, f = i.parser, h = e.slice(r), u = s.exec(h)[0];
|
|
35322
|
-
f.call(t, u), e = e.replace(u, "");
|
|
35323
|
-
}
|
|
35324
|
-
}
|
|
35325
|
-
return function(e) {
|
|
35326
|
-
var t = e.afternoon;
|
|
35327
|
-
if (void 0 !== t) {
|
|
35328
|
-
var n = e.hours;
|
|
35329
|
-
t ? n < 12 && (e.hours += 12) : 12 === n && (e.hours = 0), delete e.afternoon;
|
|
35330
|
-
}
|
|
35331
|
-
}(t), t;
|
|
35332
|
-
};
|
|
35333
|
-
}
|
|
35334
|
-
return function(e, t, n) {
|
|
35335
|
-
n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (a = e.parseTwoDigitYear);
|
|
35336
|
-
var r = t.prototype, i = r.parse;
|
|
35337
|
-
r.parse = function(e) {
|
|
35338
|
-
var t = e.date, r = e.utc, o = e.args;
|
|
35339
|
-
this.$u = r;
|
|
35340
|
-
var a = o[1];
|
|
35341
|
-
if ("string" == typeof a) {
|
|
35342
|
-
var f = !0 === o[2], h = !0 === o[3], u = f || h, d = o[2];
|
|
35343
|
-
h && (d = o[2]), s = this.$locale(), !f && d && (s = n.Ls[d]), this.$d = function(e, t, n, r) {
|
|
35344
|
-
try {
|
|
35345
|
-
if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date(("X" === t ? 1e3 : 1) * e);
|
|
35346
|
-
var i = l(t)(e), o = i.year, s = i.month, a = i.day, f = i.hours, h = i.minutes, u = i.seconds, d = i.milliseconds, c = i.zone, m = i.week, M = /* @__PURE__ */ new Date(), Y = a || (o || s ? 1 : M.getDate()), p = o || M.getFullYear(), v = 0;
|
|
35347
|
-
o && !s || (v = s > 0 ? s - 1 : M.getMonth());
|
|
35348
|
-
var D, w = f || 0, g = h || 0, y = u || 0, L = d || 0;
|
|
35349
|
-
return c ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c.offset * 1e3)) : n ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m && (D = r(D).week(m).toDate()), D);
|
|
35350
|
-
} catch (e) {
|
|
35351
|
-
return /* @__PURE__ */ new Date("");
|
|
35352
|
-
}
|
|
35353
|
-
}(t, a, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(a) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
35354
|
-
} else if (a instanceof Array) for (var c = a.length, m = 1; m <= c; m += 1) {
|
|
35355
|
-
o[1] = a[m - 1];
|
|
35356
|
-
var M = n.apply(this, o);
|
|
35357
|
-
if (M.isValid()) {
|
|
35358
|
-
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
35359
|
-
break;
|
|
35360
|
-
}
|
|
35361
|
-
m === c && (this.$d = /* @__PURE__ */ new Date(""));
|
|
35362
|
-
}
|
|
35363
|
-
else i.call(this, e);
|
|
35364
|
-
};
|
|
35365
|
-
};
|
|
35366
|
-
}));
|
|
35367
|
-
}));
|
|
35368
|
-
//#endregion
|
|
35369
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/localizedFormat.js
|
|
35370
|
-
var require_localizedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35371
|
-
(function(e, t) {
|
|
35372
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_localizedFormat = t();
|
|
35373
|
-
})(exports, (function() {
|
|
35374
|
-
"use strict";
|
|
35375
|
-
var e = {
|
|
35376
|
-
LTS: "h:mm:ss A",
|
|
35377
|
-
LT: "h:mm A",
|
|
35378
|
-
L: "MM/DD/YYYY",
|
|
35379
|
-
LL: "MMMM D, YYYY",
|
|
35380
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
35381
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
35382
|
-
};
|
|
35383
|
-
return function(t, o, n) {
|
|
35384
|
-
var r = o.prototype, i = r.format;
|
|
35385
|
-
n.en.formats = e, r.format = function(t) {
|
|
35386
|
-
void 0 === t && (t = "YYYY-MM-DDTHH:mm:ssZ");
|
|
35387
|
-
var o = this.$locale().formats, n = function(t, o) {
|
|
35388
|
-
return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
|
|
35389
|
-
var i = r && r.toUpperCase();
|
|
35390
|
-
return n || o[r] || e[r] || o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, o) {
|
|
35391
|
-
return t || o.slice(1);
|
|
35392
|
-
}));
|
|
35393
|
-
}));
|
|
35394
|
-
}(t, void 0 === o ? {} : o);
|
|
35395
|
-
return i.call(this, n);
|
|
35396
|
-
};
|
|
35397
|
-
};
|
|
35398
|
-
}));
|
|
35399
|
-
}));
|
|
35400
|
-
//#endregion
|
|
35401
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/isBetween.js
|
|
35402
|
-
var require_isBetween = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35403
|
-
(function(e, i) {
|
|
35404
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isBetween = i();
|
|
35405
|
-
})(exports, (function() {
|
|
35406
|
-
"use strict";
|
|
35407
|
-
return function(e, i, t) {
|
|
35408
|
-
i.prototype.isBetween = function(e, i, s, f) {
|
|
35409
|
-
var n = t(e), o = t(i), r = "(" === (f = f || "()")[0], u = ")" === f[1];
|
|
35410
|
-
return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
|
|
35411
|
-
};
|
|
35412
|
-
};
|
|
35413
|
-
}));
|
|
35414
|
-
}));
|
|
35415
|
-
//#endregion
|
|
35416
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/advancedFormat.js
|
|
35417
|
-
var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35418
|
-
(function(e, t) {
|
|
35419
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
|
|
35420
|
-
})(exports, (function() {
|
|
35421
|
-
"use strict";
|
|
35422
|
-
return function(e, t) {
|
|
35423
|
-
var r = t.prototype, n = r.format;
|
|
35424
|
-
r.format = function(e) {
|
|
35425
|
-
var t = this, r = this.$locale();
|
|
35426
|
-
if (!this.isValid()) return n.bind(this)(e);
|
|
35427
|
-
var s = this.$utils(), a = (e || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(e) {
|
|
35428
|
-
switch (e) {
|
|
35429
|
-
case "Q": return Math.ceil((t.$M + 1) / 3);
|
|
35430
|
-
case "Do": return r.ordinal(t.$D);
|
|
35431
|
-
case "gggg": return t.weekYear();
|
|
35432
|
-
case "GGGG": return t.isoWeekYear();
|
|
35433
|
-
case "wo": return r.ordinal(t.week(), "W");
|
|
35434
|
-
case "w":
|
|
35435
|
-
case "ww": return s.s(t.week(), "w" === e ? 1 : 2, "0");
|
|
35436
|
-
case "W":
|
|
35437
|
-
case "WW": return s.s(t.isoWeek(), "W" === e ? 1 : 2, "0");
|
|
35438
|
-
case "k":
|
|
35439
|
-
case "kk": return s.s(String(0 === t.$H ? 24 : t.$H), "k" === e ? 1 : 2, "0");
|
|
35440
|
-
case "X": return Math.floor(t.$d.getTime() / 1e3);
|
|
35441
|
-
case "x": return t.$d.getTime();
|
|
35442
|
-
case "z": return "[" + t.offsetName() + "]";
|
|
35443
|
-
case "zzz": return "[" + t.offsetName("long") + "]";
|
|
35444
|
-
default: return e;
|
|
35445
|
-
}
|
|
35446
|
-
}));
|
|
35447
|
-
return n.bind(this)(a);
|
|
35448
|
-
};
|
|
35449
|
-
};
|
|
35450
|
-
}));
|
|
35451
|
-
}));
|
|
35452
|
-
//#endregion
|
|
35453
35193
|
//#region ../../node_modules/.pnpm/@mui+x-internals@8.26.0_@types+react@19.2.14_react@19.2.4/node_modules/@mui/x-internals/esm/warning/warning.js
|
|
35454
35194
|
var warnedOnceCache = /* @__PURE__ */ new Set();
|
|
35455
35195
|
/**
|
|
@@ -35476,15 +35216,10 @@ function warnOnce(message, gravity = "warning") {
|
|
|
35476
35216
|
//#region ../../node_modules/.pnpm/@mui+x-date-pickers@8.27.2_@emotion+react@11.14.0_@types+react@19.2.14_react@19.2.4__@emotion_iradsty4hh46pwicdbiay7kzb4/node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js
|
|
35477
35217
|
/* v8 ignore start */
|
|
35478
35218
|
/* v8 ignore stop */
|
|
35479
|
-
|
|
35480
|
-
|
|
35481
|
-
|
|
35482
|
-
|
|
35483
|
-
var import_advancedFormat = /* @__PURE__ */ __toESM(require_advancedFormat());
|
|
35484
|
-
dayjs.default.extend(import_localizedFormat.default);
|
|
35485
|
-
dayjs.default.extend(import_weekOfYear.default);
|
|
35486
|
-
dayjs.default.extend(import_isBetween.default);
|
|
35487
|
-
dayjs.default.extend(import_advancedFormat.default);
|
|
35219
|
+
dayjs.default.extend(dayjs_plugin_localizedFormat_js.default);
|
|
35220
|
+
dayjs.default.extend(dayjs_plugin_weekOfYear_js.default);
|
|
35221
|
+
dayjs.default.extend(dayjs_plugin_isBetween_js.default);
|
|
35222
|
+
dayjs.default.extend(dayjs_plugin_advancedFormat_js.default);
|
|
35488
35223
|
var formatTokenMap = {
|
|
35489
35224
|
YY: "year",
|
|
35490
35225
|
YYYY: {
|
|
@@ -35630,7 +35365,7 @@ var AdapterDayjs = class {
|
|
|
35630
35365
|
constructor({ locale, formats } = {}) {
|
|
35631
35366
|
this.locale = locale;
|
|
35632
35367
|
this.formats = _extends({}, defaultFormats, formats);
|
|
35633
|
-
dayjs.default.extend(
|
|
35368
|
+
dayjs.default.extend(dayjs_plugin_customParseFormat_js.default);
|
|
35634
35369
|
}
|
|
35635
35370
|
setLocaleToValue = (value) => {
|
|
35636
35371
|
const expectedLocale = this.getCurrentLocaleCode();
|
|
@@ -45544,79 +45279,7 @@ process.env.NODE_ENV !== "production" && (DatePicker$1.propTypes = {
|
|
|
45544
45279
|
yearsPerRow: import_prop_types.default.oneOf([3, 4])
|
|
45545
45280
|
});
|
|
45546
45281
|
//#endregion
|
|
45547
|
-
//#region
|
|
45548
|
-
var require_en = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45549
|
-
(function(e, n) {
|
|
45550
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_en = n();
|
|
45551
|
-
})(exports, (function() {
|
|
45552
|
-
"use strict";
|
|
45553
|
-
return {
|
|
45554
|
-
name: "en",
|
|
45555
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
45556
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
45557
|
-
ordinal: function(e) {
|
|
45558
|
-
var n = [
|
|
45559
|
-
"th",
|
|
45560
|
-
"st",
|
|
45561
|
-
"nd",
|
|
45562
|
-
"rd"
|
|
45563
|
-
], t = e % 100;
|
|
45564
|
-
return "[" + e + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
45565
|
-
}
|
|
45566
|
-
};
|
|
45567
|
-
}));
|
|
45568
|
-
}));
|
|
45569
|
-
//#endregion
|
|
45570
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/locale/fr.js
|
|
45571
|
-
var require_fr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45572
|
-
(function(e, n) {
|
|
45573
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = n(require("dayjs")) : "function" == typeof define && define.amd ? define(["dayjs"], n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_fr = n(e.dayjs);
|
|
45574
|
-
})(exports, (function(e) {
|
|
45575
|
-
"use strict";
|
|
45576
|
-
function n(e) {
|
|
45577
|
-
return e && "object" == typeof e && "default" in e ? e : { default: e };
|
|
45578
|
-
}
|
|
45579
|
-
var t = n(e), i = {
|
|
45580
|
-
name: "fr",
|
|
45581
|
-
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
45582
|
-
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
45583
|
-
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
45584
|
-
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
|
45585
|
-
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
45586
|
-
weekStart: 1,
|
|
45587
|
-
yearStart: 4,
|
|
45588
|
-
formats: {
|
|
45589
|
-
LT: "HH:mm",
|
|
45590
|
-
LTS: "HH:mm:ss",
|
|
45591
|
-
L: "DD/MM/YYYY",
|
|
45592
|
-
LL: "D MMMM YYYY",
|
|
45593
|
-
LLL: "D MMMM YYYY HH:mm",
|
|
45594
|
-
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
45595
|
-
},
|
|
45596
|
-
relativeTime: {
|
|
45597
|
-
future: "dans %s",
|
|
45598
|
-
past: "il y a %s",
|
|
45599
|
-
s: "quelques secondes",
|
|
45600
|
-
m: "une minute",
|
|
45601
|
-
mm: "%d minutes",
|
|
45602
|
-
h: "une heure",
|
|
45603
|
-
hh: "%d heures",
|
|
45604
|
-
d: "un jour",
|
|
45605
|
-
dd: "%d jours",
|
|
45606
|
-
M: "un mois",
|
|
45607
|
-
MM: "%d mois",
|
|
45608
|
-
y: "un an",
|
|
45609
|
-
yy: "%d ans"
|
|
45610
|
-
},
|
|
45611
|
-
ordinal: function(e) {
|
|
45612
|
-
return "" + e + (1 === e ? "er" : "");
|
|
45613
|
-
}
|
|
45614
|
-
};
|
|
45615
|
-
return t.default.locale(i, null, !0), i;
|
|
45616
|
-
}));
|
|
45617
|
-
}));
|
|
45618
|
-
require_en();
|
|
45619
|
-
require_fr();
|
|
45282
|
+
//#region src/components/DatePicker/DatePicker.tsx
|
|
45620
45283
|
var DatePicker = ({ adapterLocale = "fr", ...pickerProps }) => {
|
|
45621
45284
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LocalizationProvider, {
|
|
45622
45285
|
dateAdapter: AdapterDayjs,
|
package/dist/index.es.js
CHANGED
|
@@ -7,6 +7,13 @@ import * as ReactDOM$1 from "react-dom";
|
|
|
7
7
|
import ReactDOM from "react-dom";
|
|
8
8
|
import { CirclePicker } from "react-color";
|
|
9
9
|
import dayjs from "dayjs";
|
|
10
|
+
import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
|
|
11
|
+
import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
|
|
12
|
+
import localizedFormatPlugin from "dayjs/plugin/localizedFormat.js";
|
|
13
|
+
import isBetweenPlugin from "dayjs/plugin/isBetween.js";
|
|
14
|
+
import advancedFormatPlugin from "dayjs/plugin/advancedFormat.js";
|
|
15
|
+
import "dayjs/locale/en";
|
|
16
|
+
import "dayjs/locale/fr";
|
|
10
17
|
import { useDropzone } from "react-dropzone";
|
|
11
18
|
import { AddRounded, RemoveRounded } from "@mui/icons-material";
|
|
12
19
|
import { Box as Box$1, IconButton as IconButton$1, Typography as Typography$1 } from "@mui/material";
|
|
@@ -35179,278 +35186,6 @@ var ColorPicker = ({ disabled = false, options, value, onChange, slotProps, useC
|
|
|
35179
35186
|
});
|
|
35180
35187
|
};
|
|
35181
35188
|
//#endregion
|
|
35182
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/weekOfYear.js
|
|
35183
|
-
var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35184
|
-
(function(e, t) {
|
|
35185
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
|
|
35186
|
-
})(exports, (function() {
|
|
35187
|
-
"use strict";
|
|
35188
|
-
var e = "week", t = "year";
|
|
35189
|
-
return function(i, n, r) {
|
|
35190
|
-
var f = n.prototype;
|
|
35191
|
-
f.week = function(i) {
|
|
35192
|
-
if (void 0 === i && (i = null), null !== i) return this.add(7 * (i - this.week()), "day");
|
|
35193
|
-
var n = this.$locale().yearStart || 1;
|
|
35194
|
-
if (11 === this.month() && this.date() > 25) {
|
|
35195
|
-
var f = r(this).startOf(t).add(1, t).date(n), s = r(this).endOf(e);
|
|
35196
|
-
if (f.isBefore(s)) return 1;
|
|
35197
|
-
}
|
|
35198
|
-
var a = r(this).startOf(t).date(n).startOf(e).subtract(1, "millisecond"), o = this.diff(a, e, !0);
|
|
35199
|
-
return o < 0 ? r(this).startOf("week").week() : Math.ceil(o);
|
|
35200
|
-
}, f.weeks = function(e) {
|
|
35201
|
-
return void 0 === e && (e = null), this.week(e);
|
|
35202
|
-
};
|
|
35203
|
-
};
|
|
35204
|
-
}));
|
|
35205
|
-
}));
|
|
35206
|
-
//#endregion
|
|
35207
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/customParseFormat.js
|
|
35208
|
-
var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35209
|
-
(function(e, t) {
|
|
35210
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
|
|
35211
|
-
})(exports, (function() {
|
|
35212
|
-
"use strict";
|
|
35213
|
-
var e = {
|
|
35214
|
-
LTS: "h:mm:ss A",
|
|
35215
|
-
LT: "h:mm A",
|
|
35216
|
-
L: "MM/DD/YYYY",
|
|
35217
|
-
LL: "MMMM D, YYYY",
|
|
35218
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
35219
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
35220
|
-
}, t = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, r = /\d\d/, i = /\d\d?/, o = /\d*[^-_:/,()\s\d]+/, s = {}, a = function(e) {
|
|
35221
|
-
return (e = +e) + (e > 68 ? 1900 : 2e3);
|
|
35222
|
-
};
|
|
35223
|
-
var f = function(e) {
|
|
35224
|
-
return function(t) {
|
|
35225
|
-
this[e] = +t;
|
|
35226
|
-
};
|
|
35227
|
-
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(e) {
|
|
35228
|
-
(this.zone || (this.zone = {})).offset = function(e) {
|
|
35229
|
-
if (!e) return 0;
|
|
35230
|
-
if ("Z" === e) return 0;
|
|
35231
|
-
var t = e.match(/([+-]|\d\d)/g), n = 60 * t[1] + (+t[2] || 0);
|
|
35232
|
-
return 0 === n ? 0 : "+" === t[0] ? -n : n;
|
|
35233
|
-
}(e);
|
|
35234
|
-
}], u = function(e) {
|
|
35235
|
-
var t = s[e];
|
|
35236
|
-
return t && (t.indexOf ? t : t.s.concat(t.f));
|
|
35237
|
-
}, d = function(e, t) {
|
|
35238
|
-
var n, r = s.meridiem;
|
|
35239
|
-
if (r) {
|
|
35240
|
-
for (var i = 1; i <= 24; i += 1) if (e.indexOf(r(i, 0, t)) > -1) {
|
|
35241
|
-
n = i > 12;
|
|
35242
|
-
break;
|
|
35243
|
-
}
|
|
35244
|
-
} else n = e === (t ? "pm" : "PM");
|
|
35245
|
-
return n;
|
|
35246
|
-
}, c = {
|
|
35247
|
-
A: [o, function(e) {
|
|
35248
|
-
this.afternoon = d(e, !1);
|
|
35249
|
-
}],
|
|
35250
|
-
a: [o, function(e) {
|
|
35251
|
-
this.afternoon = d(e, !0);
|
|
35252
|
-
}],
|
|
35253
|
-
Q: [n, function(e) {
|
|
35254
|
-
this.month = 3 * (e - 1) + 1;
|
|
35255
|
-
}],
|
|
35256
|
-
S: [n, function(e) {
|
|
35257
|
-
this.milliseconds = 100 * +e;
|
|
35258
|
-
}],
|
|
35259
|
-
SS: [r, function(e) {
|
|
35260
|
-
this.milliseconds = 10 * +e;
|
|
35261
|
-
}],
|
|
35262
|
-
SSS: [/\d{3}/, function(e) {
|
|
35263
|
-
this.milliseconds = +e;
|
|
35264
|
-
}],
|
|
35265
|
-
s: [i, f("seconds")],
|
|
35266
|
-
ss: [i, f("seconds")],
|
|
35267
|
-
m: [i, f("minutes")],
|
|
35268
|
-
mm: [i, f("minutes")],
|
|
35269
|
-
H: [i, f("hours")],
|
|
35270
|
-
h: [i, f("hours")],
|
|
35271
|
-
HH: [i, f("hours")],
|
|
35272
|
-
hh: [i, f("hours")],
|
|
35273
|
-
D: [i, f("day")],
|
|
35274
|
-
DD: [r, f("day")],
|
|
35275
|
-
Do: [o, function(e) {
|
|
35276
|
-
var t = s.ordinal;
|
|
35277
|
-
if (this.day = e.match(/\d+/)[0], t) for (var r = 1; r <= 31; r += 1) t(r).replace(/\[|\]/g, "") === e && (this.day = r);
|
|
35278
|
-
}],
|
|
35279
|
-
w: [i, f("week")],
|
|
35280
|
-
ww: [r, f("week")],
|
|
35281
|
-
M: [i, f("month")],
|
|
35282
|
-
MM: [r, f("month")],
|
|
35283
|
-
MMM: [o, function(e) {
|
|
35284
|
-
var t = u("months"), n = (u("monthsShort") || t.map((function(e) {
|
|
35285
|
-
return e.slice(0, 3);
|
|
35286
|
-
}))).indexOf(e) + 1;
|
|
35287
|
-
if (n < 1) throw new Error();
|
|
35288
|
-
this.month = n % 12 || n;
|
|
35289
|
-
}],
|
|
35290
|
-
MMMM: [o, function(e) {
|
|
35291
|
-
var t = u("months").indexOf(e) + 1;
|
|
35292
|
-
if (t < 1) throw new Error();
|
|
35293
|
-
this.month = t % 12 || t;
|
|
35294
|
-
}],
|
|
35295
|
-
Y: [/[+-]?\d+/, f("year")],
|
|
35296
|
-
YY: [r, function(e) {
|
|
35297
|
-
this.year = a(e);
|
|
35298
|
-
}],
|
|
35299
|
-
YYYY: [/\d{4}/, f("year")],
|
|
35300
|
-
Z: h,
|
|
35301
|
-
ZZ: h
|
|
35302
|
-
};
|
|
35303
|
-
function l(n) {
|
|
35304
|
-
var r = n, i = s && s.formats;
|
|
35305
|
-
for (var o = (n = r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
|
|
35306
|
-
var o = r && r.toUpperCase();
|
|
35307
|
-
return n || i[r] || e[r] || i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, n) {
|
|
35308
|
-
return t || n.slice(1);
|
|
35309
|
-
}));
|
|
35310
|
-
}))).match(t), a = o.length, f = 0; f < a; f += 1) {
|
|
35311
|
-
var h = o[f], u = c[h], d = u && u[0], l = u && u[1];
|
|
35312
|
-
o[f] = l ? {
|
|
35313
|
-
regex: d,
|
|
35314
|
-
parser: l
|
|
35315
|
-
} : h.replace(/^\[|\]$/g, "");
|
|
35316
|
-
}
|
|
35317
|
-
return function(e) {
|
|
35318
|
-
for (var t = {}, n = 0, r = 0; n < a; n += 1) {
|
|
35319
|
-
var i = o[n];
|
|
35320
|
-
if ("string" == typeof i) r += i.length;
|
|
35321
|
-
else {
|
|
35322
|
-
var s = i.regex, f = i.parser, h = e.slice(r), u = s.exec(h)[0];
|
|
35323
|
-
f.call(t, u), e = e.replace(u, "");
|
|
35324
|
-
}
|
|
35325
|
-
}
|
|
35326
|
-
return function(e) {
|
|
35327
|
-
var t = e.afternoon;
|
|
35328
|
-
if (void 0 !== t) {
|
|
35329
|
-
var n = e.hours;
|
|
35330
|
-
t ? n < 12 && (e.hours += 12) : 12 === n && (e.hours = 0), delete e.afternoon;
|
|
35331
|
-
}
|
|
35332
|
-
}(t), t;
|
|
35333
|
-
};
|
|
35334
|
-
}
|
|
35335
|
-
return function(e, t, n) {
|
|
35336
|
-
n.p.customParseFormat = !0, e && e.parseTwoDigitYear && (a = e.parseTwoDigitYear);
|
|
35337
|
-
var r = t.prototype, i = r.parse;
|
|
35338
|
-
r.parse = function(e) {
|
|
35339
|
-
var t = e.date, r = e.utc, o = e.args;
|
|
35340
|
-
this.$u = r;
|
|
35341
|
-
var a = o[1];
|
|
35342
|
-
if ("string" == typeof a) {
|
|
35343
|
-
var f = !0 === o[2], h = !0 === o[3], u = f || h, d = o[2];
|
|
35344
|
-
h && (d = o[2]), s = this.$locale(), !f && d && (s = n.Ls[d]), this.$d = function(e, t, n, r) {
|
|
35345
|
-
try {
|
|
35346
|
-
if (["x", "X"].indexOf(t) > -1) return /* @__PURE__ */ new Date(("X" === t ? 1e3 : 1) * e);
|
|
35347
|
-
var i = l(t)(e), o = i.year, s = i.month, a = i.day, f = i.hours, h = i.minutes, u = i.seconds, d = i.milliseconds, c = i.zone, m = i.week, M = /* @__PURE__ */ new Date(), Y = a || (o || s ? 1 : M.getDate()), p = o || M.getFullYear(), v = 0;
|
|
35348
|
-
o && !s || (v = s > 0 ? s - 1 : M.getMonth());
|
|
35349
|
-
var D, w = f || 0, g = h || 0, y = u || 0, L = d || 0;
|
|
35350
|
-
return c ? new Date(Date.UTC(p, v, Y, w, g, y, L + 60 * c.offset * 1e3)) : n ? new Date(Date.UTC(p, v, Y, w, g, y, L)) : (D = new Date(p, v, Y, w, g, y, L), m && (D = r(D).week(m).toDate()), D);
|
|
35351
|
-
} catch (e) {
|
|
35352
|
-
return /* @__PURE__ */ new Date("");
|
|
35353
|
-
}
|
|
35354
|
-
}(t, a, r, n), this.init(), d && !0 !== d && (this.$L = this.locale(d).$L), u && t != this.format(a) && (this.$d = /* @__PURE__ */ new Date("")), s = {};
|
|
35355
|
-
} else if (a instanceof Array) for (var c = a.length, m = 1; m <= c; m += 1) {
|
|
35356
|
-
o[1] = a[m - 1];
|
|
35357
|
-
var M = n.apply(this, o);
|
|
35358
|
-
if (M.isValid()) {
|
|
35359
|
-
this.$d = M.$d, this.$L = M.$L, this.init();
|
|
35360
|
-
break;
|
|
35361
|
-
}
|
|
35362
|
-
m === c && (this.$d = /* @__PURE__ */ new Date(""));
|
|
35363
|
-
}
|
|
35364
|
-
else i.call(this, e);
|
|
35365
|
-
};
|
|
35366
|
-
};
|
|
35367
|
-
}));
|
|
35368
|
-
}));
|
|
35369
|
-
//#endregion
|
|
35370
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/localizedFormat.js
|
|
35371
|
-
var require_localizedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35372
|
-
(function(e, t) {
|
|
35373
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_localizedFormat = t();
|
|
35374
|
-
})(exports, (function() {
|
|
35375
|
-
"use strict";
|
|
35376
|
-
var e = {
|
|
35377
|
-
LTS: "h:mm:ss A",
|
|
35378
|
-
LT: "h:mm A",
|
|
35379
|
-
L: "MM/DD/YYYY",
|
|
35380
|
-
LL: "MMMM D, YYYY",
|
|
35381
|
-
LLL: "MMMM D, YYYY h:mm A",
|
|
35382
|
-
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
35383
|
-
};
|
|
35384
|
-
return function(t, o, n) {
|
|
35385
|
-
var r = o.prototype, i = r.format;
|
|
35386
|
-
n.en.formats = e, r.format = function(t) {
|
|
35387
|
-
void 0 === t && (t = "YYYY-MM-DDTHH:mm:ssZ");
|
|
35388
|
-
var o = this.$locale().formats, n = function(t, o) {
|
|
35389
|
-
return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(t, n, r) {
|
|
35390
|
-
var i = r && r.toUpperCase();
|
|
35391
|
-
return n || o[r] || e[r] || o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(e, t, o) {
|
|
35392
|
-
return t || o.slice(1);
|
|
35393
|
-
}));
|
|
35394
|
-
}));
|
|
35395
|
-
}(t, void 0 === o ? {} : o);
|
|
35396
|
-
return i.call(this, n);
|
|
35397
|
-
};
|
|
35398
|
-
};
|
|
35399
|
-
}));
|
|
35400
|
-
}));
|
|
35401
|
-
//#endregion
|
|
35402
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/isBetween.js
|
|
35403
|
-
var require_isBetween = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35404
|
-
(function(e, i) {
|
|
35405
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isBetween = i();
|
|
35406
|
-
})(exports, (function() {
|
|
35407
|
-
"use strict";
|
|
35408
|
-
return function(e, i, t) {
|
|
35409
|
-
i.prototype.isBetween = function(e, i, s, f) {
|
|
35410
|
-
var n = t(e), o = t(i), r = "(" === (f = f || "()")[0], u = ")" === f[1];
|
|
35411
|
-
return (r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s)) || (r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s));
|
|
35412
|
-
};
|
|
35413
|
-
};
|
|
35414
|
-
}));
|
|
35415
|
-
}));
|
|
35416
|
-
//#endregion
|
|
35417
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/advancedFormat.js
|
|
35418
|
-
var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
35419
|
-
(function(e, t) {
|
|
35420
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
|
|
35421
|
-
})(exports, (function() {
|
|
35422
|
-
"use strict";
|
|
35423
|
-
return function(e, t) {
|
|
35424
|
-
var r = t.prototype, n = r.format;
|
|
35425
|
-
r.format = function(e) {
|
|
35426
|
-
var t = this, r = this.$locale();
|
|
35427
|
-
if (!this.isValid()) return n.bind(this)(e);
|
|
35428
|
-
var s = this.$utils(), a = (e || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(e) {
|
|
35429
|
-
switch (e) {
|
|
35430
|
-
case "Q": return Math.ceil((t.$M + 1) / 3);
|
|
35431
|
-
case "Do": return r.ordinal(t.$D);
|
|
35432
|
-
case "gggg": return t.weekYear();
|
|
35433
|
-
case "GGGG": return t.isoWeekYear();
|
|
35434
|
-
case "wo": return r.ordinal(t.week(), "W");
|
|
35435
|
-
case "w":
|
|
35436
|
-
case "ww": return s.s(t.week(), "w" === e ? 1 : 2, "0");
|
|
35437
|
-
case "W":
|
|
35438
|
-
case "WW": return s.s(t.isoWeek(), "W" === e ? 1 : 2, "0");
|
|
35439
|
-
case "k":
|
|
35440
|
-
case "kk": return s.s(String(0 === t.$H ? 24 : t.$H), "k" === e ? 1 : 2, "0");
|
|
35441
|
-
case "X": return Math.floor(t.$d.getTime() / 1e3);
|
|
35442
|
-
case "x": return t.$d.getTime();
|
|
35443
|
-
case "z": return "[" + t.offsetName() + "]";
|
|
35444
|
-
case "zzz": return "[" + t.offsetName("long") + "]";
|
|
35445
|
-
default: return e;
|
|
35446
|
-
}
|
|
35447
|
-
}));
|
|
35448
|
-
return n.bind(this)(a);
|
|
35449
|
-
};
|
|
35450
|
-
};
|
|
35451
|
-
}));
|
|
35452
|
-
}));
|
|
35453
|
-
//#endregion
|
|
35454
35189
|
//#region ../../node_modules/.pnpm/@mui+x-internals@8.26.0_@types+react@19.2.14_react@19.2.4/node_modules/@mui/x-internals/esm/warning/warning.js
|
|
35455
35190
|
var warnedOnceCache = /* @__PURE__ */ new Set();
|
|
35456
35191
|
/**
|
|
@@ -35477,15 +35212,10 @@ function warnOnce(message, gravity = "warning") {
|
|
|
35477
35212
|
//#region ../../node_modules/.pnpm/@mui+x-date-pickers@8.27.2_@emotion+react@11.14.0_@types+react@19.2.14_react@19.2.4__@emotion_iradsty4hh46pwicdbiay7kzb4/node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js
|
|
35478
35213
|
/* v8 ignore start */
|
|
35479
35214
|
/* v8 ignore stop */
|
|
35480
|
-
|
|
35481
|
-
|
|
35482
|
-
|
|
35483
|
-
|
|
35484
|
-
var import_advancedFormat = /* @__PURE__ */ __toESM(require_advancedFormat());
|
|
35485
|
-
dayjs.extend(import_localizedFormat.default);
|
|
35486
|
-
dayjs.extend(import_weekOfYear.default);
|
|
35487
|
-
dayjs.extend(import_isBetween.default);
|
|
35488
|
-
dayjs.extend(import_advancedFormat.default);
|
|
35215
|
+
dayjs.extend(localizedFormatPlugin);
|
|
35216
|
+
dayjs.extend(weekOfYearPlugin);
|
|
35217
|
+
dayjs.extend(isBetweenPlugin);
|
|
35218
|
+
dayjs.extend(advancedFormatPlugin);
|
|
35489
35219
|
var formatTokenMap = {
|
|
35490
35220
|
YY: "year",
|
|
35491
35221
|
YYYY: {
|
|
@@ -35631,7 +35361,7 @@ var AdapterDayjs = class {
|
|
|
35631
35361
|
constructor({ locale, formats } = {}) {
|
|
35632
35362
|
this.locale = locale;
|
|
35633
35363
|
this.formats = _extends({}, defaultFormats, formats);
|
|
35634
|
-
dayjs.extend(
|
|
35364
|
+
dayjs.extend(customParseFormatPlugin);
|
|
35635
35365
|
}
|
|
35636
35366
|
setLocaleToValue = (value) => {
|
|
35637
35367
|
const expectedLocale = this.getCurrentLocaleCode();
|
|
@@ -45545,79 +45275,7 @@ process.env.NODE_ENV !== "production" && (DatePicker$1.propTypes = {
|
|
|
45545
45275
|
yearsPerRow: import_prop_types.default.oneOf([3, 4])
|
|
45546
45276
|
});
|
|
45547
45277
|
//#endregion
|
|
45548
|
-
//#region
|
|
45549
|
-
var require_en = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45550
|
-
(function(e, n) {
|
|
45551
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_en = n();
|
|
45552
|
-
})(exports, (function() {
|
|
45553
|
-
"use strict";
|
|
45554
|
-
return {
|
|
45555
|
-
name: "en",
|
|
45556
|
-
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
45557
|
-
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
45558
|
-
ordinal: function(e) {
|
|
45559
|
-
var n = [
|
|
45560
|
-
"th",
|
|
45561
|
-
"st",
|
|
45562
|
-
"nd",
|
|
45563
|
-
"rd"
|
|
45564
|
-
], t = e % 100;
|
|
45565
|
-
return "[" + e + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
45566
|
-
}
|
|
45567
|
-
};
|
|
45568
|
-
}));
|
|
45569
|
-
}));
|
|
45570
|
-
//#endregion
|
|
45571
|
-
//#region ../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/locale/fr.js
|
|
45572
|
-
var require_fr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
45573
|
-
(function(e, n) {
|
|
45574
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = n(__require("dayjs")) : "function" == typeof define && define.amd ? define(["dayjs"], n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_fr = n(e.dayjs);
|
|
45575
|
-
})(exports, (function(e) {
|
|
45576
|
-
"use strict";
|
|
45577
|
-
function n(e) {
|
|
45578
|
-
return e && "object" == typeof e && "default" in e ? e : { default: e };
|
|
45579
|
-
}
|
|
45580
|
-
var t = n(e), i = {
|
|
45581
|
-
name: "fr",
|
|
45582
|
-
weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
|
45583
|
-
weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
|
45584
|
-
weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
|
45585
|
-
months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
|
45586
|
-
monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
|
45587
|
-
weekStart: 1,
|
|
45588
|
-
yearStart: 4,
|
|
45589
|
-
formats: {
|
|
45590
|
-
LT: "HH:mm",
|
|
45591
|
-
LTS: "HH:mm:ss",
|
|
45592
|
-
L: "DD/MM/YYYY",
|
|
45593
|
-
LL: "D MMMM YYYY",
|
|
45594
|
-
LLL: "D MMMM YYYY HH:mm",
|
|
45595
|
-
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
45596
|
-
},
|
|
45597
|
-
relativeTime: {
|
|
45598
|
-
future: "dans %s",
|
|
45599
|
-
past: "il y a %s",
|
|
45600
|
-
s: "quelques secondes",
|
|
45601
|
-
m: "une minute",
|
|
45602
|
-
mm: "%d minutes",
|
|
45603
|
-
h: "une heure",
|
|
45604
|
-
hh: "%d heures",
|
|
45605
|
-
d: "un jour",
|
|
45606
|
-
dd: "%d jours",
|
|
45607
|
-
M: "un mois",
|
|
45608
|
-
MM: "%d mois",
|
|
45609
|
-
y: "un an",
|
|
45610
|
-
yy: "%d ans"
|
|
45611
|
-
},
|
|
45612
|
-
ordinal: function(e) {
|
|
45613
|
-
return "" + e + (1 === e ? "er" : "");
|
|
45614
|
-
}
|
|
45615
|
-
};
|
|
45616
|
-
return t.default.locale(i, null, !0), i;
|
|
45617
|
-
}));
|
|
45618
|
-
}));
|
|
45619
|
-
require_en();
|
|
45620
|
-
require_fr();
|
|
45278
|
+
//#region src/components/DatePicker/DatePicker.tsx
|
|
45621
45279
|
var DatePicker = ({ adapterLocale = "fr", ...pickerProps }) => {
|
|
45622
45280
|
return /* @__PURE__ */ jsx(LocalizationProvider, {
|
|
45623
45281
|
dateAdapter: AdapterDayjs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.12.0-dev.
|
|
3
|
+
"version": "1.12.0-dev.1774284986",
|
|
4
4
|
"description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cgi-learning-hub",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"@mui/lab": "7.0.1-beta.23",
|
|
39
39
|
"@mui/x-date-pickers": "8.27.2",
|
|
40
40
|
"@mui/x-tree-view": "8.27.2",
|
|
41
|
-
"dayjs": "1.11.20",
|
|
42
41
|
"react-color": "2.19.3",
|
|
43
42
|
"react-dropzone": "15.0.0"
|
|
44
43
|
},
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
"@emotion/react": "^11",
|
|
47
46
|
"@emotion/styled": "^11",
|
|
48
47
|
"@mui/material": "^7",
|
|
48
|
+
"dayjs": "^1",
|
|
49
49
|
"react": "^18 || ^19",
|
|
50
50
|
"react-dom": "^18 || ^19"
|
|
51
51
|
},
|