@leapdevuk/component-toolbox 0.0.10 → 0.0.12
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/components/formdialog/FormDialog.d.ts +1 -2
- package/dist/index.cjs.js +16 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +124 -128
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -32,7 +32,7 @@ function Ja(e) {
|
|
|
32
32
|
});
|
|
33
33
|
}), t;
|
|
34
34
|
}
|
|
35
|
-
var Pr = { exports: {} },
|
|
35
|
+
var Pr = { exports: {} }, pt = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.production.min.js
|
|
@@ -44,7 +44,7 @@ var Pr = { exports: {} }, yt = {};
|
|
|
44
44
|
*/
|
|
45
45
|
var gn;
|
|
46
46
|
function Za() {
|
|
47
|
-
if (gn) return
|
|
47
|
+
if (gn) return pt;
|
|
48
48
|
gn = 1;
|
|
49
49
|
var e = io, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
50
50
|
function i(c, l, f) {
|
|
@@ -54,9 +54,9 @@ function Za() {
|
|
|
54
54
|
if (c && c.defaultProps) for (d in l = c.defaultProps, l) h[d] === void 0 && (h[d] = l[d]);
|
|
55
55
|
return { $$typeof: r, type: c, key: p, ref: x, props: h, _owner: o.current };
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return pt.Fragment = t, pt.jsx = i, pt.jsxs = i, pt;
|
|
58
58
|
}
|
|
59
|
-
var
|
|
59
|
+
var yt = {};
|
|
60
60
|
/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-jsx-runtime.development.js
|
|
@@ -307,7 +307,7 @@ function ei() {
|
|
|
307
307
|
} finally {
|
|
308
308
|
K = !1, B.current = ue, Q(), Error.prepareStackTrace = te;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
310
|
+
var nt = u ? u.displayName || u.name : "", Ze = nt ? z(nt) : "";
|
|
311
311
|
return typeof u == "function" && G.set(u, Ze), Ze;
|
|
312
312
|
}
|
|
313
313
|
function _e(u, T, _) {
|
|
@@ -346,7 +346,7 @@ function ei() {
|
|
|
346
346
|
}
|
|
347
347
|
return "";
|
|
348
348
|
}
|
|
349
|
-
var Ye = Object.prototype.hasOwnProperty,
|
|
349
|
+
var Ye = Object.prototype.hasOwnProperty, ht = {}, nn = k.ReactDebugCurrentFrame;
|
|
350
350
|
function At(u) {
|
|
351
351
|
if (u) {
|
|
352
352
|
var T = u._owner, _ = Ne(u.type, u._source, T ? T.type : null);
|
|
@@ -369,7 +369,7 @@ function ei() {
|
|
|
369
369
|
} catch (be) {
|
|
370
370
|
X = be;
|
|
371
371
|
}
|
|
372
|
-
X && !(X instanceof Error) && (At(te), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", _, J, typeof X), At(null)), X instanceof Error && !(X.message in
|
|
372
|
+
X && !(X instanceof Error) && (At(te), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Y || "React class", _, J, typeof X), At(null)), X instanceof Error && !(X.message in ht) && (ht[X.message] = !0, At(te), S("Failed %s type: %s", _, X.message), At(null));
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -397,7 +397,7 @@ function ei() {
|
|
|
397
397
|
if (oa(u))
|
|
398
398
|
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", na(u)), on(u);
|
|
399
399
|
}
|
|
400
|
-
var
|
|
400
|
+
var mt = k.ReactCurrentOwner, aa = {
|
|
401
401
|
key: !0,
|
|
402
402
|
ref: !0,
|
|
403
403
|
__self: !0,
|
|
@@ -421,9 +421,9 @@ function ei() {
|
|
|
421
421
|
return u.key !== void 0;
|
|
422
422
|
}
|
|
423
423
|
function ca(u, T) {
|
|
424
|
-
if (typeof u.ref == "string" &&
|
|
425
|
-
var _ = Z(
|
|
426
|
-
sr[_] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(
|
|
424
|
+
if (typeof u.ref == "string" && mt.current && T && mt.current.stateNode !== T) {
|
|
425
|
+
var _ = Z(mt.current.type);
|
|
426
|
+
sr[_] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(mt.current.type), u.ref), sr[_] = !0);
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function ua(u, T) {
|
|
@@ -492,11 +492,11 @@ function ei() {
|
|
|
492
492
|
var Ce = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
493
493
|
X && ua(J, Ce), ke && la(J, Ce);
|
|
494
494
|
}
|
|
495
|
-
return fa(u, X, ke, te, Y,
|
|
495
|
+
return fa(u, X, ke, te, Y, mt.current, J);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
var cr = k.ReactCurrentOwner, un = k.ReactDebugCurrentFrame;
|
|
499
|
-
function
|
|
499
|
+
function rt(u) {
|
|
500
500
|
if (u) {
|
|
501
501
|
var T = u._owner, _ = Ne(u.type, u._source, T ? T.type : null);
|
|
502
502
|
un.setExtraStackFrame(_);
|
|
@@ -546,7 +546,7 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
546
546
|
return;
|
|
547
547
|
fn[_] = !0;
|
|
548
548
|
var Y = "";
|
|
549
|
-
u && u._owner && u._owner !== cr.current && (Y = " It was passed a child from " + Z(u._owner.type) + "."),
|
|
549
|
+
u && u._owner && u._owner !== cr.current && (Y = " It was passed a child from " + Z(u._owner.type) + "."), rt(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', _, Y), rt(null);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
function hn(u, T) {
|
|
@@ -598,11 +598,11 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
598
598
|
for (var T = Object.keys(u.props), _ = 0; _ < T.length; _++) {
|
|
599
599
|
var Y = T[_];
|
|
600
600
|
if (Y !== "children" && Y !== "key") {
|
|
601
|
-
|
|
601
|
+
rt(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Y), rt(null);
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
u.ref !== null && (
|
|
605
|
+
u.ref !== null && (rt(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), rt(null));
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
var mn = {};
|
|
@@ -625,8 +625,8 @@ Check the top-level render call using <` + _ + ">.");
|
|
|
625
625
|
if (Re !== void 0)
|
|
626
626
|
if (Y)
|
|
627
627
|
if (ir(Re)) {
|
|
628
|
-
for (var
|
|
629
|
-
hn(Re[
|
|
628
|
+
for (var nt = 0; nt < Re.length; nt++)
|
|
629
|
+
hn(Re[nt], u);
|
|
630
630
|
Object.freeze && Object.freeze(Re);
|
|
631
631
|
} else
|
|
632
632
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -657,8 +657,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
657
657
|
return pn(u, T, _, !1);
|
|
658
658
|
}
|
|
659
659
|
var wa = ba, va = ga;
|
|
660
|
-
|
|
661
|
-
}()),
|
|
660
|
+
yt.Fragment = n, yt.jsx = wa, yt.jsxs = va;
|
|
661
|
+
}()), yt;
|
|
662
662
|
}
|
|
663
663
|
process.env.NODE_ENV === "production" ? Pr.exports = Za() : Pr.exports = ei();
|
|
664
664
|
var b = Pr.exports;
|
|
@@ -689,7 +689,7 @@ const Gf = ({
|
|
|
689
689
|
children: "Help"
|
|
690
690
|
}
|
|
691
691
|
) }) })
|
|
692
|
-
] }),
|
|
692
|
+
] }), Tt = ({
|
|
693
693
|
disabled: e,
|
|
694
694
|
onClick: r,
|
|
695
695
|
primary: t,
|
|
@@ -799,12 +799,12 @@ function wn(e) {
|
|
|
799
799
|
return r.setHours(23, 59, 59, 999), r;
|
|
800
800
|
}
|
|
801
801
|
let ci = {};
|
|
802
|
-
function
|
|
802
|
+
function tt() {
|
|
803
803
|
return ci;
|
|
804
804
|
}
|
|
805
805
|
function ui(e, r) {
|
|
806
806
|
var c, l, f, d;
|
|
807
|
-
const t =
|
|
807
|
+
const t = tt(), n = (r == null ? void 0 : r.weekStartsOn) ?? ((l = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((d = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = I(e), a = o.getDay(), i = (a < n ? -7 : 0) + 6 - (a - n);
|
|
808
808
|
return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
|
|
809
809
|
}
|
|
810
810
|
function vn(e) {
|
|
@@ -920,7 +920,7 @@ const fi = {
|
|
|
920
920
|
nextWeek: "eeee 'at' p",
|
|
921
921
|
other: "P"
|
|
922
922
|
}, zt = (e, r, t, n) => pi[e];
|
|
923
|
-
function
|
|
923
|
+
function gt(e) {
|
|
924
924
|
return (r, t) => {
|
|
925
925
|
const n = t != null && t.context ? String(t.context) : "standalone";
|
|
926
926
|
let o;
|
|
@@ -1062,31 +1062,31 @@ const yi = {
|
|
|
1062
1062
|
return t + "th";
|
|
1063
1063
|
}, Gt = {
|
|
1064
1064
|
ordinalNumber: Ti,
|
|
1065
|
-
era:
|
|
1065
|
+
era: gt({
|
|
1066
1066
|
values: yi,
|
|
1067
1067
|
defaultWidth: "wide"
|
|
1068
1068
|
}),
|
|
1069
|
-
quarter:
|
|
1069
|
+
quarter: gt({
|
|
1070
1070
|
values: gi,
|
|
1071
1071
|
defaultWidth: "wide",
|
|
1072
1072
|
argumentCallback: (e) => e - 1
|
|
1073
1073
|
}),
|
|
1074
|
-
month:
|
|
1074
|
+
month: gt({
|
|
1075
1075
|
values: bi,
|
|
1076
1076
|
defaultWidth: "wide"
|
|
1077
1077
|
}),
|
|
1078
|
-
day:
|
|
1078
|
+
day: gt({
|
|
1079
1079
|
values: wi,
|
|
1080
1080
|
defaultWidth: "wide"
|
|
1081
1081
|
}),
|
|
1082
|
-
dayPeriod:
|
|
1082
|
+
dayPeriod: gt({
|
|
1083
1083
|
values: vi,
|
|
1084
1084
|
defaultWidth: "wide",
|
|
1085
1085
|
formattingValues: xi,
|
|
1086
1086
|
defaultFormattingWidth: "wide"
|
|
1087
1087
|
})
|
|
1088
1088
|
};
|
|
1089
|
-
function
|
|
1089
|
+
function bt(e) {
|
|
1090
1090
|
return (r, t = {}) => {
|
|
1091
1091
|
const n = t.width, o = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], a = r.match(o);
|
|
1092
1092
|
if (!a)
|
|
@@ -1199,32 +1199,32 @@ const Oi = /^(\d+)(th|st|nd|rd)?/i, ki = /\d+/i, _i = {
|
|
|
1199
1199
|
parsePattern: ki,
|
|
1200
1200
|
valueCallback: (e) => parseInt(e, 10)
|
|
1201
1201
|
}),
|
|
1202
|
-
era:
|
|
1202
|
+
era: bt({
|
|
1203
1203
|
matchPatterns: _i,
|
|
1204
1204
|
defaultMatchWidth: "wide",
|
|
1205
1205
|
parsePatterns: Mi,
|
|
1206
1206
|
defaultParseWidth: "any"
|
|
1207
1207
|
}),
|
|
1208
|
-
quarter:
|
|
1208
|
+
quarter: bt({
|
|
1209
1209
|
matchPatterns: Pi,
|
|
1210
1210
|
defaultMatchWidth: "wide",
|
|
1211
1211
|
parsePatterns: Di,
|
|
1212
1212
|
defaultParseWidth: "any",
|
|
1213
1213
|
valueCallback: (e) => e + 1
|
|
1214
1214
|
}),
|
|
1215
|
-
month:
|
|
1215
|
+
month: bt({
|
|
1216
1216
|
matchPatterns: Ri,
|
|
1217
1217
|
defaultMatchWidth: "wide",
|
|
1218
1218
|
parsePatterns: $i,
|
|
1219
1219
|
defaultParseWidth: "any"
|
|
1220
1220
|
}),
|
|
1221
|
-
day:
|
|
1221
|
+
day: bt({
|
|
1222
1222
|
matchPatterns: Ai,
|
|
1223
1223
|
defaultMatchWidth: "wide",
|
|
1224
1224
|
parsePatterns: ji,
|
|
1225
1225
|
defaultParseWidth: "any"
|
|
1226
1226
|
}),
|
|
1227
|
-
dayPeriod:
|
|
1227
|
+
dayPeriod: bt({
|
|
1228
1228
|
matchPatterns: Ii,
|
|
1229
1229
|
defaultMatchWidth: "any",
|
|
1230
1230
|
parsePatterns: Ni,
|
|
@@ -1274,31 +1274,31 @@ function Li(e) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
function Ge(e, r) {
|
|
1276
1276
|
var c, l, f, d;
|
|
1277
|
-
const t =
|
|
1277
|
+
const t = tt(), n = (r == null ? void 0 : r.weekStartsOn) ?? ((l = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((d = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? 0, o = I(e), a = o.getDay(), i = (a < n ? 7 : 0) + a - n;
|
|
1278
1278
|
return o.setDate(o.getDate() - i), o.setHours(0, 0, 0, 0), o;
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function ft(e) {
|
|
1281
1281
|
return Ge(e, { weekStartsOn: 1 });
|
|
1282
1282
|
}
|
|
1283
1283
|
function wo(e) {
|
|
1284
1284
|
const r = I(e), t = r.getFullYear(), n = se(e, 0);
|
|
1285
1285
|
n.setFullYear(t + 1, 0, 4), n.setHours(0, 0, 0, 0);
|
|
1286
|
-
const o =
|
|
1286
|
+
const o = ft(n), a = se(e, 0);
|
|
1287
1287
|
a.setFullYear(t, 0, 4), a.setHours(0, 0, 0, 0);
|
|
1288
|
-
const i =
|
|
1288
|
+
const i = ft(a);
|
|
1289
1289
|
return r.getTime() >= o.getTime() ? t + 1 : r.getTime() >= i.getTime() ? t : t - 1;
|
|
1290
1290
|
}
|
|
1291
1291
|
function Yi(e) {
|
|
1292
1292
|
const r = wo(e), t = se(e, 0);
|
|
1293
|
-
return t.setFullYear(r, 0, 4), t.setHours(0, 0, 0, 0),
|
|
1293
|
+
return t.setFullYear(r, 0, 4), t.setHours(0, 0, 0, 0), ft(t);
|
|
1294
1294
|
}
|
|
1295
1295
|
function vo(e) {
|
|
1296
|
-
const r = I(e), t = +
|
|
1296
|
+
const r = I(e), t = +ft(r) - +Yi(r);
|
|
1297
1297
|
return Math.round(t / mo) + 1;
|
|
1298
1298
|
}
|
|
1299
1299
|
function Hr(e, r) {
|
|
1300
1300
|
var d, h, p, x;
|
|
1301
|
-
const t = I(e), n = t.getFullYear(), o =
|
|
1301
|
+
const t = I(e), n = t.getFullYear(), o = tt(), a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((h = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? o.firstWeekContainsDate ?? ((x = (p = o.locale) == null ? void 0 : p.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, i = se(e, 0);
|
|
1302
1302
|
i.setFullYear(n + 1, 0, a), i.setHours(0, 0, 0, 0);
|
|
1303
1303
|
const c = Ge(i, r), l = se(e, 0);
|
|
1304
1304
|
l.setFullYear(n, 0, a), l.setHours(0, 0, 0, 0);
|
|
@@ -1307,7 +1307,7 @@ function Hr(e, r) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function Wi(e, r) {
|
|
1309
1309
|
var c, l, f, d;
|
|
1310
|
-
const t =
|
|
1310
|
+
const t = tt(), n = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((l = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((d = (f = t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, o = Hr(e, r), a = se(e, 0);
|
|
1311
1311
|
return a.setFullYear(o, 0, n), a.setHours(0, 0, 0, 0), Ge(a, r);
|
|
1312
1312
|
}
|
|
1313
1313
|
function Vr(e, r) {
|
|
@@ -1372,7 +1372,7 @@ const Qe = {
|
|
|
1372
1372
|
);
|
|
1373
1373
|
return ie(o, r.length);
|
|
1374
1374
|
}
|
|
1375
|
-
},
|
|
1375
|
+
}, ot = {
|
|
1376
1376
|
am: "am",
|
|
1377
1377
|
pm: "pm",
|
|
1378
1378
|
midnight: "midnight",
|
|
@@ -1716,7 +1716,7 @@ const Qe = {
|
|
|
1716
1716
|
b: function(e, r, t) {
|
|
1717
1717
|
const n = e.getHours();
|
|
1718
1718
|
let o;
|
|
1719
|
-
switch (n === 12 ? o =
|
|
1719
|
+
switch (n === 12 ? o = ot.noon : n === 0 ? o = ot.midnight : o = n / 12 >= 1 ? "pm" : "am", r) {
|
|
1720
1720
|
case "b":
|
|
1721
1721
|
case "bb":
|
|
1722
1722
|
return t.dayPeriod(o, {
|
|
@@ -1745,7 +1745,7 @@ const Qe = {
|
|
|
1745
1745
|
B: function(e, r, t) {
|
|
1746
1746
|
const n = e.getHours();
|
|
1747
1747
|
let o;
|
|
1748
|
-
switch (n >= 17 ? o =
|
|
1748
|
+
switch (n >= 17 ? o = ot.evening : n >= 12 ? o = ot.afternoon : n >= 4 ? o = ot.morning : o = ot.night, r) {
|
|
1749
1749
|
case "B":
|
|
1750
1750
|
case "BB":
|
|
1751
1751
|
case "BBB":
|
|
@@ -1955,7 +1955,7 @@ function Co(e) {
|
|
|
1955
1955
|
const Ui = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Qi = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Xi = /^'([^]*?)'?$/, Ki = /''/g, Ji = /[a-zA-Z]/;
|
|
1956
1956
|
function Zi(e, r, t) {
|
|
1957
1957
|
var d, h, p, x, C, g, m, k;
|
|
1958
|
-
const n =
|
|
1958
|
+
const n = tt(), o = (t == null ? void 0 : t.locale) ?? n.locale ?? St, a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((x = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, i = (t == null ? void 0 : t.weekStartsOn) ?? ((g = (C = t == null ? void 0 : t.locale) == null ? void 0 : C.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((k = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : k.weekStartsOn) ?? 0, c = I(e);
|
|
1959
1959
|
if (!Co(c))
|
|
1960
1960
|
throw new RangeError("Invalid time value");
|
|
1961
1961
|
let l = r.match(Qi).map((S) => {
|
|
@@ -2055,7 +2055,7 @@ function ds(e, r) {
|
|
|
2055
2055
|
return +t == +n;
|
|
2056
2056
|
}
|
|
2057
2057
|
function hs() {
|
|
2058
|
-
return Object.assign({},
|
|
2058
|
+
return Object.assign({}, tt());
|
|
2059
2059
|
}
|
|
2060
2060
|
function ms(e, r) {
|
|
2061
2061
|
const t = r instanceof Date ? se(r, 0) : new r(0);
|
|
@@ -2403,7 +2403,7 @@ class xs extends ee {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
set(t, n, o) {
|
|
2405
2405
|
const a = se(t, 0);
|
|
2406
|
-
return a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0),
|
|
2406
|
+
return a.setFullYear(o, 0, 4), a.setHours(0, 0, 0, 0), ft(a);
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
2409
|
class Ts extends ee {
|
|
@@ -2747,7 +2747,7 @@ class Ps extends ee {
|
|
|
2747
2747
|
return n >= 1 && n <= 53;
|
|
2748
2748
|
}
|
|
2749
2749
|
set(t, n, o) {
|
|
2750
|
-
return
|
|
2750
|
+
return ft(Ms(t, o));
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
const Ds = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rs = [
|
|
@@ -2846,7 +2846,7 @@ class As extends ee {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
function zr(e, r, t) {
|
|
2848
2848
|
var h, p, x, C;
|
|
2849
|
-
const n =
|
|
2849
|
+
const n = tt(), o = (t == null ? void 0 : t.weekStartsOn) ?? ((p = (h = t == null ? void 0 : t.locale) == null ? void 0 : h.options) == null ? void 0 : p.weekStartsOn) ?? n.weekStartsOn ?? ((C = (x = n.locale) == null ? void 0 : x.options) == null ? void 0 : C.weekStartsOn) ?? 0, a = I(e), i = a.getDay(), l = (r % 7 + 7) % 7, f = 7 - o, d = r < 0 || r > 6 ? r - (i + f) % 7 : (l + f) % 7 - (i + f) % 7;
|
|
2850
2850
|
return Ct(a, d);
|
|
2851
2851
|
}
|
|
2852
2852
|
class js extends ee {
|
|
@@ -4099,26 +4099,26 @@ const Cc = {
|
|
|
4099
4099
|
weekStartsOn: 1,
|
|
4100
4100
|
firstWeekContainsDate: 4
|
|
4101
4101
|
}
|
|
4102
|
-
}, Mn = "Invalid date",
|
|
4103
|
-
Ae(Lc,
|
|
4102
|
+
}, Mn = "Invalid date", dt = "dd/MM/yyyy", Fc = "yyyy-MM-dd HH:mm:ss", Lc = /* @__PURE__ */ new Date("1900-01-01"), Po = Intl.DateTimeFormat().resolvedOptions().timeZone, Yt = "yyyy-MM-dd HH:mm:ss";
|
|
4103
|
+
Ae(Lc, dt);
|
|
4104
4104
|
Ae(
|
|
4105
4105
|
Yr(/* @__PURE__ */ new Date(), {
|
|
4106
4106
|
weeks: 1
|
|
4107
4107
|
}),
|
|
4108
|
-
|
|
4108
|
+
dt
|
|
4109
4109
|
);
|
|
4110
|
-
Ae(/* @__PURE__ */ new Date(),
|
|
4110
|
+
Ae(/* @__PURE__ */ new Date(), dt);
|
|
4111
4111
|
Ae(
|
|
4112
4112
|
Yr(/* @__PURE__ */ new Date(), {
|
|
4113
4113
|
days: 1
|
|
4114
4114
|
}),
|
|
4115
|
-
|
|
4115
|
+
dt
|
|
4116
4116
|
);
|
|
4117
4117
|
Ae(
|
|
4118
4118
|
Yr(/* @__PURE__ */ new Date(), {
|
|
4119
4119
|
weeks: 2
|
|
4120
4120
|
}),
|
|
4121
|
-
|
|
4121
|
+
dt
|
|
4122
4122
|
);
|
|
4123
4123
|
const br = (e, r, t, n) => {
|
|
4124
4124
|
if (!e)
|
|
@@ -4133,7 +4133,7 @@ const br = (e, r, t, n) => {
|
|
|
4133
4133
|
return o = La(o, Ya(a)), o = Wa(o, Ba(a)), o = Ha(o, Va(a)), Qa(o, Po).toISOString();
|
|
4134
4134
|
} else
|
|
4135
4135
|
return Ae(new Date(o), Yt);
|
|
4136
|
-
}, Yc = (e, r =
|
|
4136
|
+
}, Yc = (e, r = dt, t) => {
|
|
4137
4137
|
var l;
|
|
4138
4138
|
if (e === null)
|
|
4139
4139
|
return null;
|
|
@@ -5034,15 +5034,15 @@ function eu() {
|
|
|
5034
5034
|
case d:
|
|
5035
5035
|
return Ye;
|
|
5036
5036
|
default:
|
|
5037
|
-
var
|
|
5038
|
-
switch (
|
|
5037
|
+
var ht = Ye && Ye.$$typeof;
|
|
5038
|
+
switch (ht) {
|
|
5039
5039
|
case c:
|
|
5040
5040
|
case i:
|
|
5041
5041
|
case l:
|
|
5042
5042
|
case p:
|
|
5043
5043
|
case h:
|
|
5044
5044
|
case a:
|
|
5045
|
-
return
|
|
5045
|
+
return ht;
|
|
5046
5046
|
default:
|
|
5047
5047
|
return Ne;
|
|
5048
5048
|
}
|
|
@@ -5658,22 +5658,22 @@ const Hu = xe({
|
|
|
5658
5658
|
prop: "gridArea"
|
|
5659
5659
|
});
|
|
5660
5660
|
er(rr, nr, or, Hu, Vu, qu, zu, Gu, Uu, Qu, Xu, Ku);
|
|
5661
|
-
function
|
|
5661
|
+
function lt(e, r) {
|
|
5662
5662
|
return r === "grey" ? r : e;
|
|
5663
5663
|
}
|
|
5664
5664
|
const Ju = xe({
|
|
5665
5665
|
prop: "color",
|
|
5666
5666
|
themeKey: "palette",
|
|
5667
|
-
transform:
|
|
5667
|
+
transform: lt
|
|
5668
5668
|
}), Zu = xe({
|
|
5669
5669
|
prop: "bgcolor",
|
|
5670
5670
|
cssProperty: "backgroundColor",
|
|
5671
5671
|
themeKey: "palette",
|
|
5672
|
-
transform:
|
|
5672
|
+
transform: lt
|
|
5673
5673
|
}), el = xe({
|
|
5674
5674
|
prop: "backgroundColor",
|
|
5675
5675
|
themeKey: "palette",
|
|
5676
|
-
transform:
|
|
5676
|
+
transform: lt
|
|
5677
5677
|
});
|
|
5678
5678
|
er(Ju, Zu, el);
|
|
5679
5679
|
function Pe(e) {
|
|
@@ -5778,16 +5778,16 @@ const Rt = {
|
|
|
5778
5778
|
// palette
|
|
5779
5779
|
color: {
|
|
5780
5780
|
themeKey: "palette",
|
|
5781
|
-
transform:
|
|
5781
|
+
transform: lt
|
|
5782
5782
|
},
|
|
5783
5783
|
bgcolor: {
|
|
5784
5784
|
themeKey: "palette",
|
|
5785
5785
|
cssProperty: "backgroundColor",
|
|
5786
|
-
transform:
|
|
5786
|
+
transform: lt
|
|
5787
5787
|
},
|
|
5788
5788
|
backgroundColor: {
|
|
5789
5789
|
themeKey: "palette",
|
|
5790
|
-
transform:
|
|
5790
|
+
transform: lt
|
|
5791
5791
|
},
|
|
5792
5792
|
// spacing
|
|
5793
5793
|
p: {
|
|
@@ -6432,7 +6432,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
6432
6432
|
const Cl = (e) => {
|
|
6433
6433
|
const r = Ke(e);
|
|
6434
6434
|
return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
|
|
6435
|
-
},
|
|
6435
|
+
}, vt = (e, r) => {
|
|
6436
6436
|
try {
|
|
6437
6437
|
return Cl(e);
|
|
6438
6438
|
} catch {
|
|
@@ -6732,7 +6732,7 @@ const _t = {
|
|
|
6732
6732
|
A200: "#eeeeee",
|
|
6733
6733
|
A400: "#bdbdbd",
|
|
6734
6734
|
A700: "#616161"
|
|
6735
|
-
},
|
|
6735
|
+
}, at = {
|
|
6736
6736
|
50: "#f3e5f5",
|
|
6737
6737
|
100: "#e1bee7",
|
|
6738
6738
|
200: "#ce93d8",
|
|
@@ -6747,7 +6747,7 @@ const _t = {
|
|
|
6747
6747
|
A200: "#e040fb",
|
|
6748
6748
|
A400: "#d500f9",
|
|
6749
6749
|
A700: "#aa00ff"
|
|
6750
|
-
},
|
|
6750
|
+
}, it = {
|
|
6751
6751
|
50: "#ffebee",
|
|
6752
6752
|
100: "#ffcdd2",
|
|
6753
6753
|
200: "#ef9a9a",
|
|
@@ -6762,7 +6762,7 @@ const _t = {
|
|
|
6762
6762
|
A200: "#ff5252",
|
|
6763
6763
|
A400: "#ff1744",
|
|
6764
6764
|
A700: "#d50000"
|
|
6765
|
-
},
|
|
6765
|
+
}, wt = {
|
|
6766
6766
|
50: "#fff3e0",
|
|
6767
6767
|
100: "#ffe0b2",
|
|
6768
6768
|
200: "#ffcc80",
|
|
@@ -6777,7 +6777,7 @@ const _t = {
|
|
|
6777
6777
|
A200: "#ffab40",
|
|
6778
6778
|
A400: "#ff9100",
|
|
6779
6779
|
A700: "#ff6d00"
|
|
6780
|
-
},
|
|
6780
|
+
}, st = {
|
|
6781
6781
|
50: "#e3f2fd",
|
|
6782
6782
|
100: "#bbdefb",
|
|
6783
6783
|
200: "#90caf9",
|
|
@@ -6792,7 +6792,7 @@ const _t = {
|
|
|
6792
6792
|
A200: "#448aff",
|
|
6793
6793
|
A400: "#2979ff",
|
|
6794
6794
|
A700: "#2962ff"
|
|
6795
|
-
},
|
|
6795
|
+
}, ct = {
|
|
6796
6796
|
50: "#e1f5fe",
|
|
6797
6797
|
100: "#b3e5fc",
|
|
6798
6798
|
200: "#81d4fa",
|
|
@@ -6807,7 +6807,7 @@ const _t = {
|
|
|
6807
6807
|
A200: "#40c4ff",
|
|
6808
6808
|
A400: "#00b0ff",
|
|
6809
6809
|
A700: "#0091ea"
|
|
6810
|
-
},
|
|
6810
|
+
}, ut = {
|
|
6811
6811
|
50: "#e8f5e9",
|
|
6812
6812
|
100: "#c8e6c9",
|
|
6813
6813
|
200: "#a5d6a7",
|
|
@@ -6891,69 +6891,69 @@ function Jn(e, r, t, n) {
|
|
|
6891
6891
|
}
|
|
6892
6892
|
function Il(e = "light") {
|
|
6893
6893
|
return e === "dark" ? {
|
|
6894
|
-
main:
|
|
6895
|
-
light:
|
|
6896
|
-
dark:
|
|
6894
|
+
main: st[200],
|
|
6895
|
+
light: st[50],
|
|
6896
|
+
dark: st[400]
|
|
6897
6897
|
} : {
|
|
6898
|
-
main:
|
|
6899
|
-
light:
|
|
6900
|
-
dark:
|
|
6898
|
+
main: st[700],
|
|
6899
|
+
light: st[400],
|
|
6900
|
+
dark: st[800]
|
|
6901
6901
|
};
|
|
6902
6902
|
}
|
|
6903
6903
|
function Nl(e = "light") {
|
|
6904
6904
|
return e === "dark" ? {
|
|
6905
|
-
main:
|
|
6906
|
-
light:
|
|
6907
|
-
dark:
|
|
6905
|
+
main: at[200],
|
|
6906
|
+
light: at[50],
|
|
6907
|
+
dark: at[400]
|
|
6908
6908
|
} : {
|
|
6909
|
+
main: at[500],
|
|
6910
|
+
light: at[300],
|
|
6911
|
+
dark: at[700]
|
|
6912
|
+
};
|
|
6913
|
+
}
|
|
6914
|
+
function Fl(e = "light") {
|
|
6915
|
+
return e === "dark" ? {
|
|
6909
6916
|
main: it[500],
|
|
6910
6917
|
light: it[300],
|
|
6911
6918
|
dark: it[700]
|
|
6919
|
+
} : {
|
|
6920
|
+
main: it[700],
|
|
6921
|
+
light: it[400],
|
|
6922
|
+
dark: it[800]
|
|
6912
6923
|
};
|
|
6913
6924
|
}
|
|
6914
|
-
function
|
|
6925
|
+
function Ll(e = "light") {
|
|
6915
6926
|
return e === "dark" ? {
|
|
6916
|
-
main:
|
|
6917
|
-
light:
|
|
6918
|
-
dark:
|
|
6927
|
+
main: ct[400],
|
|
6928
|
+
light: ct[300],
|
|
6929
|
+
dark: ct[700]
|
|
6919
6930
|
} : {
|
|
6920
|
-
main:
|
|
6921
|
-
light:
|
|
6922
|
-
dark:
|
|
6931
|
+
main: ct[700],
|
|
6932
|
+
light: ct[500],
|
|
6933
|
+
dark: ct[900]
|
|
6923
6934
|
};
|
|
6924
6935
|
}
|
|
6925
|
-
function
|
|
6936
|
+
function Yl(e = "light") {
|
|
6926
6937
|
return e === "dark" ? {
|
|
6927
6938
|
main: ut[400],
|
|
6928
6939
|
light: ut[300],
|
|
6929
6940
|
dark: ut[700]
|
|
6930
6941
|
} : {
|
|
6931
|
-
main: ut[
|
|
6942
|
+
main: ut[800],
|
|
6932
6943
|
light: ut[500],
|
|
6933
6944
|
dark: ut[900]
|
|
6934
6945
|
};
|
|
6935
6946
|
}
|
|
6936
|
-
function Yl(e = "light") {
|
|
6937
|
-
return e === "dark" ? {
|
|
6938
|
-
main: lt[400],
|
|
6939
|
-
light: lt[300],
|
|
6940
|
-
dark: lt[700]
|
|
6941
|
-
} : {
|
|
6942
|
-
main: lt[800],
|
|
6943
|
-
light: lt[500],
|
|
6944
|
-
dark: lt[900]
|
|
6945
|
-
};
|
|
6946
|
-
}
|
|
6947
6947
|
function Wl(e = "light") {
|
|
6948
6948
|
return e === "dark" ? {
|
|
6949
|
-
main:
|
|
6950
|
-
light:
|
|
6951
|
-
dark:
|
|
6949
|
+
main: wt[400],
|
|
6950
|
+
light: wt[300],
|
|
6951
|
+
dark: wt[700]
|
|
6952
6952
|
} : {
|
|
6953
6953
|
main: "#ed6c02",
|
|
6954
6954
|
// closest to orange[800] that pass 3:1.
|
|
6955
|
-
light:
|
|
6956
|
-
dark:
|
|
6955
|
+
light: wt[500],
|
|
6956
|
+
dark: wt[900]
|
|
6957
6957
|
};
|
|
6958
6958
|
}
|
|
6959
6959
|
function en(e) {
|
|
@@ -7411,11 +7411,11 @@ function lf(e, r) {
|
|
|
7411
7411
|
function y(e, r, t) {
|
|
7412
7412
|
!e[r] && t && (e[r] = t);
|
|
7413
7413
|
}
|
|
7414
|
-
function
|
|
7414
|
+
function xt(e) {
|
|
7415
7415
|
return !e || !e.startsWith("hsl") ? e : Go(e);
|
|
7416
7416
|
}
|
|
7417
7417
|
function ze(e, r) {
|
|
7418
|
-
`${r}Channel` in e || (e[`${r}Channel`] = xt(
|
|
7418
|
+
`${r}Channel` in e || (e[`${r}Channel`] = vt(xt(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
7419
7419
|
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
7420
7420
|
}
|
|
7421
7421
|
function ff(e) {
|
|
@@ -7516,7 +7516,7 @@ function hf(e = {}, ...r) {
|
|
|
7516
7516
|
}
|
|
7517
7517
|
ze(s.background, "default"), ze(s.background, "paper"), ze(s.common, "background"), ze(s.common, "onBackground"), ze(s, "divider"), Object.keys(s).forEach((L) => {
|
|
7518
7518
|
const N = s[L];
|
|
7519
|
-
N && typeof N == "object" && (N.main && y(s[L], "mainChannel", xt(
|
|
7519
|
+
N && typeof N == "object" && (N.main && y(s[L], "mainChannel", vt(xt(N.main))), N.light && y(s[L], "lightChannel", vt(xt(N.light))), N.dark && y(s[L], "darkChannel", vt(xt(N.dark))), N.contrastText && y(s[L], "contrastTextChannel", vt(xt(N.contrastText))), L === "text" && (ze(s[L], "primary"), ze(s[L], "secondary")), L === "action" && (N.active && ze(s[L], "active"), N.selected && ze(s[L], "selected")));
|
|
7520
7520
|
});
|
|
7521
7521
|
}), v = r.reduce((F, s) => De(F, s), v);
|
|
7522
7522
|
const D = {
|
|
@@ -8239,7 +8239,7 @@ const Rf = ({
|
|
|
8239
8239
|
{
|
|
8240
8240
|
actions: /* @__PURE__ */ b.jsxs(b.Fragment, { children: [
|
|
8241
8241
|
(m == null ? void 0 : m.keepButton) && /* @__PURE__ */ b.jsx("div", { style: { marginRight: 5 }, children: /* @__PURE__ */ b.jsx(
|
|
8242
|
-
|
|
8242
|
+
Tt,
|
|
8243
8243
|
{
|
|
8244
8244
|
onClick: () => {
|
|
8245
8245
|
k(null);
|
|
@@ -8248,7 +8248,7 @@ const Rf = ({
|
|
|
8248
8248
|
}
|
|
8249
8249
|
) }),
|
|
8250
8250
|
/* @__PURE__ */ b.jsx(
|
|
8251
|
-
|
|
8251
|
+
Tt,
|
|
8252
8252
|
{
|
|
8253
8253
|
variant: "outlined",
|
|
8254
8254
|
onClick: () => {
|
|
@@ -8276,10 +8276,9 @@ const Rf = ({
|
|
|
8276
8276
|
isOpen: o,
|
|
8277
8277
|
maxWidth: a,
|
|
8278
8278
|
minWidth: i,
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
title: d
|
|
8279
|
+
onClose: c,
|
|
8280
|
+
actions: l,
|
|
8281
|
+
title: f
|
|
8283
8282
|
}) => /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsxs(
|
|
8284
8283
|
co,
|
|
8285
8284
|
{
|
|
@@ -8303,7 +8302,7 @@ const Rf = ({
|
|
|
8303
8302
|
style: { alignItems: "center", paddingLeft: 8, minHeight: 28 },
|
|
8304
8303
|
children: [
|
|
8305
8304
|
/* @__PURE__ */ b.jsx(Jo, {}),
|
|
8306
|
-
/* @__PURE__ */ b.jsx("div", { className: "flex1", style: { paddingLeft: 5 }, children: /* @__PURE__ */ b.jsx(qt, { variant: "body1", children:
|
|
8305
|
+
/* @__PURE__ */ b.jsx("div", { className: "flex1", style: { paddingLeft: 5 }, children: /* @__PURE__ */ b.jsx(qt, { variant: "body1", children: f }) }),
|
|
8307
8306
|
/* @__PURE__ */ b.jsx("div", { children: r && /* @__PURE__ */ b.jsx(
|
|
8308
8307
|
lo,
|
|
8309
8308
|
{
|
|
@@ -8320,7 +8319,7 @@ const Rf = ({
|
|
|
8320
8319
|
}
|
|
8321
8320
|
},
|
|
8322
8321
|
onClick: () => {
|
|
8323
|
-
|
|
8322
|
+
c && c();
|
|
8324
8323
|
},
|
|
8325
8324
|
children: /* @__PURE__ */ b.jsx(rn, { style: { height: 20 } })
|
|
8326
8325
|
}
|
|
@@ -8339,10 +8338,7 @@ const Rf = ({
|
|
|
8339
8338
|
]
|
|
8340
8339
|
}
|
|
8341
8340
|
),
|
|
8342
|
-
/* @__PURE__ */ b.
|
|
8343
|
-
f && /* @__PURE__ */ b.jsx("div", { style: { marginRight: 5 }, children: /* @__PURE__ */ b.jsx(tt, { onClick: f, primary: !0, size: "small", children: "Save & Close" }) }),
|
|
8344
|
-
c && /* @__PURE__ */ b.jsx(tt, { onClick: c, size: "small", children: "Cancel" })
|
|
8345
|
-
] })
|
|
8341
|
+
/* @__PURE__ */ b.jsx(fo, { children: l })
|
|
8346
8342
|
]
|
|
8347
8343
|
}
|
|
8348
8344
|
) }), ed = ({
|
|
@@ -8356,9 +8352,9 @@ const Rf = ({
|
|
|
8356
8352
|
e && /* @__PURE__ */ b.jsx(b.Fragment, { children: e }),
|
|
8357
8353
|
/* @__PURE__ */ b.jsx("div", { className: "flex1" }),
|
|
8358
8354
|
r && /* @__PURE__ */ b.jsx(b.Fragment, { children: r }),
|
|
8359
|
-
t && /* @__PURE__ */ b.jsx(
|
|
8355
|
+
t && /* @__PURE__ */ b.jsx(Tt, { onClick: t, primary: !1, size: "small", children: "Cancel" }),
|
|
8360
8356
|
o && /* @__PURE__ */ b.jsx("div", { style: { marginRight: 5 }, children: /* @__PURE__ */ b.jsx(
|
|
8361
|
-
|
|
8357
|
+
Tt,
|
|
8362
8358
|
{
|
|
8363
8359
|
disabled: a || !1,
|
|
8364
8360
|
onClick: o,
|
|
@@ -8367,7 +8363,7 @@ const Rf = ({
|
|
|
8367
8363
|
children: "OK"
|
|
8368
8364
|
}
|
|
8369
8365
|
) }),
|
|
8370
|
-
n && /* @__PURE__ */ b.jsx(
|
|
8366
|
+
n && /* @__PURE__ */ b.jsx(Tt, { variant: "outlined", onClick: n, size: "small", children: "Close" })
|
|
8371
8367
|
] }), td = ({ overlay: e }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsx($a, { open: !0, invisible: !e, style: { zIndex: 1350 }, children: /* @__PURE__ */ b.jsx(
|
|
8372
8368
|
Aa,
|
|
8373
8369
|
{
|
|
@@ -8713,7 +8709,7 @@ const od = ({
|
|
|
8713
8709
|
}) => /* @__PURE__ */ b.jsx(ea, { variant: r, children: e });
|
|
8714
8710
|
export {
|
|
8715
8711
|
Gf as LCTAppBar,
|
|
8716
|
-
|
|
8712
|
+
Tt as LCTButton,
|
|
8717
8713
|
Uf as LCTCurrencyInput,
|
|
8718
8714
|
Jf as LCTDatePicker,
|
|
8719
8715
|
Rf as LCTDialog,
|