react-luminus-components 1.2.35 → 1.2.37
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/README.md +355 -355
- package/dist/.vite/manifest.json +46 -46
- package/dist/{EventType-SEEDuisM.js → EventType--bYeqoGO.js} +1 -1
- package/dist/{EventType-Dodj1wMo.cjs → EventType-DXVXbODv.cjs} +1 -1
- package/dist/{UserAvatarToggle-rzyVxLmG.cjs → NoInputContainer-BkFSaMQy.cjs} +1 -1
- package/dist/{UserAvatarToggle-CH7OqxNp.js → NoInputContainer-LdJeEMWI.js} +57 -58
- package/dist/SimpleTooltip-C_iRq-Q0.cjs +1 -0
- package/dist/SimpleTooltip-mxX4RNUy.js +5 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +28 -28
- package/dist/hooks/useZodSchemaTypes/useZodSchemaTypes.d.ts +6 -6
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +77 -74
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +15 -15
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +729 -729
- package/dist/style.css +1 -1
- package/dist/useConfirm-BK_yKNWQ.cjs +1 -0
- package/dist/{useConfirm-B3BI8PzR.js → useConfirm-ee4Czv-n.js} +1 -1
- package/dist/{usePermissions-DVO-znuB.js → usePermissions-CHfDy8Yx.js} +1 -1
- package/dist/usePermissions-yA39pMjm.cjs +1 -0
- package/package.json +100 -100
- package/dist/SimpleTooltip-MhGCEWts.js +0 -5
- package/dist/SimpleTooltip-OE_cbcNU.cjs +0 -1
- package/dist/useConfirm-9zGqmWEb.cjs +0 -1
- package/dist/usePermissions-CO93mmCn.cjs +0 -1
package/dist/hooks.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { N as We } from "./
|
|
2
|
-
import { aF as ir,
|
|
3
|
-
import { a as lr, u as fr } from "./useConfirm-
|
|
1
|
+
import { N as We } from "./NoInputContainer-LdJeEMWI.js";
|
|
2
|
+
import { aF as ir, a9 as or, a5 as dr, aE as cr } from "./NoInputContainer-LdJeEMWI.js";
|
|
3
|
+
import { a as lr, u as fr } from "./useConfirm-ee4Czv-n.js";
|
|
4
4
|
import { useContext as Ye } from "react";
|
|
5
5
|
import { f as Je } from "./textUtils-BbxuIsKq.js";
|
|
6
6
|
import { i as He } from "./dateUtils-Crak7ii9.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
8
|
import { a as mr, u as pr } from "./useKeyPress-CwWcvmEW.js";
|
|
9
|
-
import { u as _r } from "./usePermissions-
|
|
9
|
+
import { u as _r } from "./usePermissions-CHfDy8Yx.js";
|
|
10
10
|
var x;
|
|
11
11
|
(function(r) {
|
|
12
12
|
r.assertEqual = (s) => s;
|
|
@@ -72,7 +72,7 @@ const f = x.arrayToEnum([
|
|
|
72
72
|
"never",
|
|
73
73
|
"map",
|
|
74
74
|
"set"
|
|
75
|
-
]),
|
|
75
|
+
]), P = (r) => {
|
|
76
76
|
switch (typeof r) {
|
|
77
77
|
case "undefined":
|
|
78
78
|
return f.undefined;
|
|
@@ -337,7 +337,7 @@ class A {
|
|
|
337
337
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
const
|
|
340
|
+
const Ie = (r, e) => {
|
|
341
341
|
if (ee(e))
|
|
342
342
|
return { success: !0, data: e.value };
|
|
343
343
|
if (!r.common.issues.length)
|
|
@@ -372,13 +372,13 @@ class v {
|
|
|
372
372
|
return this._def.description;
|
|
373
373
|
}
|
|
374
374
|
_getType(e) {
|
|
375
|
-
return
|
|
375
|
+
return P(e.data);
|
|
376
376
|
}
|
|
377
377
|
_getOrReturnCtx(e, t) {
|
|
378
378
|
return t || {
|
|
379
379
|
common: e.parent.common,
|
|
380
380
|
data: e.data,
|
|
381
|
-
parsedType:
|
|
381
|
+
parsedType: P(e.data),
|
|
382
382
|
schemaErrorMap: this._def.errorMap,
|
|
383
383
|
path: e.path,
|
|
384
384
|
parent: e.parent
|
|
@@ -390,7 +390,7 @@ class v {
|
|
|
390
390
|
ctx: {
|
|
391
391
|
common: e.parent.common,
|
|
392
392
|
data: e.data,
|
|
393
|
-
parsedType:
|
|
393
|
+
parsedType: P(e.data),
|
|
394
394
|
schemaErrorMap: this._def.errorMap,
|
|
395
395
|
path: e.path,
|
|
396
396
|
parent: e.parent
|
|
@@ -425,9 +425,9 @@ class v {
|
|
|
425
425
|
schemaErrorMap: this._def.errorMap,
|
|
426
426
|
parent: null,
|
|
427
427
|
data: e,
|
|
428
|
-
parsedType:
|
|
428
|
+
parsedType: P(e)
|
|
429
429
|
}, a = this._parseSync({ data: e, path: s.path, parent: s });
|
|
430
|
-
return
|
|
430
|
+
return Ie(s, a);
|
|
431
431
|
}
|
|
432
432
|
async parseAsync(e, t) {
|
|
433
433
|
const n = await this.safeParseAsync(e, t);
|
|
@@ -446,9 +446,9 @@ class v {
|
|
|
446
446
|
schemaErrorMap: this._def.errorMap,
|
|
447
447
|
parent: null,
|
|
448
448
|
data: e,
|
|
449
|
-
parsedType:
|
|
449
|
+
parsedType: P(e)
|
|
450
450
|
}, s = this._parse({ data: e, path: n.path, parent: n }), a = await (te(s) ? s : Promise.resolve(s));
|
|
451
|
-
return
|
|
451
|
+
return Ie(n, a);
|
|
452
452
|
}
|
|
453
453
|
refine(e, t) {
|
|
454
454
|
const n = (s) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(s) : t;
|
|
@@ -464,7 +464,7 @@ class v {
|
|
|
464
464
|
return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof t == "function" ? t(n, s) : t), !1));
|
|
465
465
|
}
|
|
466
466
|
_refinement(e) {
|
|
467
|
-
return new
|
|
467
|
+
return new I({
|
|
468
468
|
schema: this,
|
|
469
469
|
typeName: m.ZodEffects,
|
|
470
470
|
effect: { type: "refinement", refinement: e }
|
|
@@ -483,7 +483,7 @@ class v {
|
|
|
483
483
|
return this.nullable().optional();
|
|
484
484
|
}
|
|
485
485
|
array() {
|
|
486
|
-
return
|
|
486
|
+
return R.create(this, this._def);
|
|
487
487
|
}
|
|
488
488
|
promise() {
|
|
489
489
|
return K.create(this, this._def);
|
|
@@ -495,7 +495,7 @@ class v {
|
|
|
495
495
|
return ie.create(this, e, this._def);
|
|
496
496
|
}
|
|
497
497
|
transform(e) {
|
|
498
|
-
return new
|
|
498
|
+
return new I({
|
|
499
499
|
..._(this._def),
|
|
500
500
|
schema: this,
|
|
501
501
|
typeName: m.ZodEffects,
|
|
@@ -550,15 +550,15 @@ class v {
|
|
|
550
550
|
const Qe = /^c[^\s-]{8,}$/i, Fe = /^[0-9a-z]+$/, et = /^[0-9A-HJKMNP-TV-Z]{26}$/, tt = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, rt = /^[a-z0-9_-]{21}$/i, nt = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, st = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, at = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
551
551
|
let Ze;
|
|
552
552
|
const it = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ot = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, dt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, $e = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", ct = new RegExp(`^${$e}$`);
|
|
553
|
-
function
|
|
553
|
+
function ze(r) {
|
|
554
554
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
555
555
|
return r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
556
556
|
}
|
|
557
557
|
function ut(r) {
|
|
558
|
-
return new RegExp(`^${
|
|
558
|
+
return new RegExp(`^${ze(r)}$`);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
let e = `${$e}T${
|
|
560
|
+
function Pe(r) {
|
|
561
|
+
let e = `${$e}T${ze(r)}`;
|
|
562
562
|
const t = [];
|
|
563
563
|
return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
564
564
|
}
|
|
@@ -682,7 +682,7 @@ class E extends v {
|
|
|
682
682
|
code: d.invalid_string,
|
|
683
683
|
validation: { endsWith: a.value },
|
|
684
684
|
message: a.message
|
|
685
|
-
}), n.dirty()) : a.kind === "datetime" ?
|
|
685
|
+
}), n.dirty()) : a.kind === "datetime" ? Pe(a).test(e.data) || (s = this._getOrReturnCtx(e, s), l(s, {
|
|
686
686
|
code: d.invalid_string,
|
|
687
687
|
validation: "datetime",
|
|
688
688
|
message: a.message
|
|
@@ -1399,7 +1399,7 @@ B.create = (r) => new B({
|
|
|
1399
1399
|
typeName: m.ZodUnknown,
|
|
1400
1400
|
..._(r)
|
|
1401
1401
|
});
|
|
1402
|
-
class
|
|
1402
|
+
class z extends v {
|
|
1403
1403
|
_parse(e) {
|
|
1404
1404
|
const t = this._getOrReturnCtx(e);
|
|
1405
1405
|
return l(t, {
|
|
@@ -1409,7 +1409,7 @@ class P extends v {
|
|
|
1409
1409
|
}), p;
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
|
|
1412
|
+
z.create = (r) => new z({
|
|
1413
1413
|
typeName: m.ZodNever,
|
|
1414
1414
|
..._(r)
|
|
1415
1415
|
});
|
|
@@ -1430,7 +1430,7 @@ xe.create = (r) => new xe({
|
|
|
1430
1430
|
typeName: m.ZodVoid,
|
|
1431
1431
|
..._(r)
|
|
1432
1432
|
});
|
|
1433
|
-
class
|
|
1433
|
+
class R extends v {
|
|
1434
1434
|
_parse(e) {
|
|
1435
1435
|
const { ctx: t, status: n } = this._processInputParams(e), s = this._def;
|
|
1436
1436
|
if (t.parsedType !== f.array)
|
|
@@ -1474,19 +1474,19 @@ class I extends v {
|
|
|
1474
1474
|
return this._def.type;
|
|
1475
1475
|
}
|
|
1476
1476
|
min(e, t) {
|
|
1477
|
-
return new
|
|
1477
|
+
return new R({
|
|
1478
1478
|
...this._def,
|
|
1479
1479
|
minLength: { value: e, message: h.toString(t) }
|
|
1480
1480
|
});
|
|
1481
1481
|
}
|
|
1482
1482
|
max(e, t) {
|
|
1483
|
-
return new
|
|
1483
|
+
return new R({
|
|
1484
1484
|
...this._def,
|
|
1485
1485
|
maxLength: { value: e, message: h.toString(t) }
|
|
1486
1486
|
});
|
|
1487
1487
|
}
|
|
1488
1488
|
length(e, t) {
|
|
1489
|
-
return new
|
|
1489
|
+
return new R({
|
|
1490
1490
|
...this._def,
|
|
1491
1491
|
exactLength: { value: e, message: h.toString(t) }
|
|
1492
1492
|
});
|
|
@@ -1495,7 +1495,7 @@ class I extends v {
|
|
|
1495
1495
|
return this.min(1, e);
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
|
|
1498
|
+
R.create = (r, e) => new R({
|
|
1499
1499
|
type: r,
|
|
1500
1500
|
minLength: null,
|
|
1501
1501
|
maxLength: null,
|
|
@@ -1504,23 +1504,23 @@ I.create = (r, e) => new I({
|
|
|
1504
1504
|
..._(e)
|
|
1505
1505
|
});
|
|
1506
1506
|
function Y(r) {
|
|
1507
|
-
if (r instanceof
|
|
1507
|
+
if (r instanceof b) {
|
|
1508
1508
|
const e = {};
|
|
1509
1509
|
for (const t in r.shape) {
|
|
1510
1510
|
const n = r.shape[t];
|
|
1511
1511
|
e[t] = j.create(Y(n));
|
|
1512
1512
|
}
|
|
1513
|
-
return new
|
|
1513
|
+
return new b({
|
|
1514
1514
|
...r._def,
|
|
1515
1515
|
shape: () => e
|
|
1516
1516
|
});
|
|
1517
1517
|
} else
|
|
1518
|
-
return r instanceof
|
|
1518
|
+
return r instanceof R ? new R({
|
|
1519
1519
|
...r._def,
|
|
1520
1520
|
type: Y(r.element)
|
|
1521
1521
|
}) : r instanceof j ? j.create(Y(r.unwrap())) : r instanceof U ? U.create(Y(r.unwrap())) : r instanceof M ? M.create(r.items.map((e) => Y(e))) : r;
|
|
1522
1522
|
}
|
|
1523
|
-
class
|
|
1523
|
+
class b extends v {
|
|
1524
1524
|
constructor() {
|
|
1525
1525
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
1526
1526
|
}
|
|
@@ -1540,7 +1540,7 @@ class k extends v {
|
|
|
1540
1540
|
}), p;
|
|
1541
1541
|
}
|
|
1542
1542
|
const { status: n, ctx: s } = this._processInputParams(e), { shape: a, keys: i } = this._getCached(), o = [];
|
|
1543
|
-
if (!(this._def.catchall instanceof
|
|
1543
|
+
if (!(this._def.catchall instanceof z && this._def.unknownKeys === "strip"))
|
|
1544
1544
|
for (const c in s.data)
|
|
1545
1545
|
i.includes(c) || o.push(c);
|
|
1546
1546
|
const u = [];
|
|
@@ -1552,7 +1552,7 @@ class k extends v {
|
|
|
1552
1552
|
alwaysSet: c in s.data
|
|
1553
1553
|
});
|
|
1554
1554
|
}
|
|
1555
|
-
if (this._def.catchall instanceof
|
|
1555
|
+
if (this._def.catchall instanceof z) {
|
|
1556
1556
|
const c = this._def.unknownKeys;
|
|
1557
1557
|
if (c === "passthrough")
|
|
1558
1558
|
for (const y of o)
|
|
@@ -1598,7 +1598,7 @@ class k extends v {
|
|
|
1598
1598
|
return this._def.shape();
|
|
1599
1599
|
}
|
|
1600
1600
|
strict(e) {
|
|
1601
|
-
return h.errToObj, new
|
|
1601
|
+
return h.errToObj, new b({
|
|
1602
1602
|
...this._def,
|
|
1603
1603
|
unknownKeys: "strict",
|
|
1604
1604
|
...e !== void 0 ? {
|
|
@@ -1615,13 +1615,13 @@ class k extends v {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
strip() {
|
|
1618
|
-
return new
|
|
1618
|
+
return new b({
|
|
1619
1619
|
...this._def,
|
|
1620
1620
|
unknownKeys: "strip"
|
|
1621
1621
|
});
|
|
1622
1622
|
}
|
|
1623
1623
|
passthrough() {
|
|
1624
|
-
return new
|
|
1624
|
+
return new b({
|
|
1625
1625
|
...this._def,
|
|
1626
1626
|
unknownKeys: "passthrough"
|
|
1627
1627
|
});
|
|
@@ -1644,7 +1644,7 @@ class k extends v {
|
|
|
1644
1644
|
// }) as any;
|
|
1645
1645
|
// };
|
|
1646
1646
|
extend(e) {
|
|
1647
|
-
return new
|
|
1647
|
+
return new b({
|
|
1648
1648
|
...this._def,
|
|
1649
1649
|
shape: () => ({
|
|
1650
1650
|
...this._def.shape(),
|
|
@@ -1658,7 +1658,7 @@ class k extends v {
|
|
|
1658
1658
|
* upgrade if you are experiencing issues.
|
|
1659
1659
|
*/
|
|
1660
1660
|
merge(e) {
|
|
1661
|
-
return new
|
|
1661
|
+
return new b({
|
|
1662
1662
|
unknownKeys: e._def.unknownKeys,
|
|
1663
1663
|
catchall: e._def.catchall,
|
|
1664
1664
|
shape: () => ({
|
|
@@ -1728,7 +1728,7 @@ class k extends v {
|
|
|
1728
1728
|
// return merged;
|
|
1729
1729
|
// }
|
|
1730
1730
|
catchall(e) {
|
|
1731
|
-
return new
|
|
1731
|
+
return new b({
|
|
1732
1732
|
...this._def,
|
|
1733
1733
|
catchall: e
|
|
1734
1734
|
});
|
|
@@ -1737,7 +1737,7 @@ class k extends v {
|
|
|
1737
1737
|
const t = {};
|
|
1738
1738
|
return x.objectKeys(e).forEach((n) => {
|
|
1739
1739
|
e[n] && this.shape[n] && (t[n] = this.shape[n]);
|
|
1740
|
-
}), new
|
|
1740
|
+
}), new b({
|
|
1741
1741
|
...this._def,
|
|
1742
1742
|
shape: () => t
|
|
1743
1743
|
});
|
|
@@ -1746,7 +1746,7 @@ class k extends v {
|
|
|
1746
1746
|
const t = {};
|
|
1747
1747
|
return x.objectKeys(this.shape).forEach((n) => {
|
|
1748
1748
|
e[n] || (t[n] = this.shape[n]);
|
|
1749
|
-
}), new
|
|
1749
|
+
}), new b({
|
|
1750
1750
|
...this._def,
|
|
1751
1751
|
shape: () => t
|
|
1752
1752
|
});
|
|
@@ -1762,7 +1762,7 @@ class k extends v {
|
|
|
1762
1762
|
return x.objectKeys(this.shape).forEach((n) => {
|
|
1763
1763
|
const s = this.shape[n];
|
|
1764
1764
|
e && !e[n] ? t[n] = s : t[n] = s.optional();
|
|
1765
|
-
}), new
|
|
1765
|
+
}), new b({
|
|
1766
1766
|
...this._def,
|
|
1767
1767
|
shape: () => t
|
|
1768
1768
|
});
|
|
@@ -1778,7 +1778,7 @@ class k extends v {
|
|
|
1778
1778
|
a = a._def.innerType;
|
|
1779
1779
|
t[n] = a;
|
|
1780
1780
|
}
|
|
1781
|
-
}), new
|
|
1781
|
+
}), new b({
|
|
1782
1782
|
...this._def,
|
|
1783
1783
|
shape: () => t
|
|
1784
1784
|
});
|
|
@@ -1787,24 +1787,24 @@ class k extends v {
|
|
|
1787
1787
|
return Ve(x.objectKeys(this.shape));
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
|
-
|
|
1790
|
+
b.create = (r, e) => new b({
|
|
1791
1791
|
shape: () => r,
|
|
1792
1792
|
unknownKeys: "strip",
|
|
1793
|
-
catchall:
|
|
1793
|
+
catchall: z.create(),
|
|
1794
1794
|
typeName: m.ZodObject,
|
|
1795
1795
|
..._(e)
|
|
1796
1796
|
});
|
|
1797
|
-
|
|
1797
|
+
b.strictCreate = (r, e) => new b({
|
|
1798
1798
|
shape: () => r,
|
|
1799
1799
|
unknownKeys: "strict",
|
|
1800
|
-
catchall:
|
|
1800
|
+
catchall: z.create(),
|
|
1801
1801
|
typeName: m.ZodObject,
|
|
1802
1802
|
..._(e)
|
|
1803
1803
|
});
|
|
1804
|
-
|
|
1804
|
+
b.lazycreate = (r, e) => new b({
|
|
1805
1805
|
shape: r,
|
|
1806
1806
|
unknownKeys: "strip",
|
|
1807
|
-
catchall:
|
|
1807
|
+
catchall: z.create(),
|
|
1808
1808
|
typeName: m.ZodObject,
|
|
1809
1809
|
..._(e)
|
|
1810
1810
|
});
|
|
@@ -1881,7 +1881,7 @@ ae.create = (r, e) => new ae({
|
|
|
1881
1881
|
typeName: m.ZodUnion,
|
|
1882
1882
|
..._(e)
|
|
1883
1883
|
});
|
|
1884
|
-
const $ = (r) => r instanceof de ? $(r.schema) : r instanceof
|
|
1884
|
+
const $ = (r) => r instanceof de ? $(r.schema) : r instanceof I ? $(r.innerType()) : r instanceof ce ? [r.value] : r instanceof L ? r.options : r instanceof ue ? x.objectValues(r.enum) : r instanceof le ? $(r._def.innerType) : r instanceof ne ? [void 0] : r instanceof se ? [null] : r instanceof j ? [void 0, ...$(r.unwrap())] : r instanceof U ? [null, ...$(r.unwrap())] : r instanceof Ee || r instanceof he ? $(r.unwrap()) : r instanceof fe ? $(r._def.innerType) : [];
|
|
1885
1885
|
class we extends v {
|
|
1886
1886
|
_parse(e) {
|
|
1887
1887
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -1945,7 +1945,7 @@ class we extends v {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
function Oe(r, e) {
|
|
1948
|
-
const t =
|
|
1948
|
+
const t = P(r), n = P(e);
|
|
1949
1949
|
if (r === e)
|
|
1950
1950
|
return { valid: !0, data: r };
|
|
1951
1951
|
if (t === f.object && n === f.object) {
|
|
@@ -2472,7 +2472,7 @@ K.create = (r, e) => new K({
|
|
|
2472
2472
|
typeName: m.ZodPromise,
|
|
2473
2473
|
..._(e)
|
|
2474
2474
|
});
|
|
2475
|
-
class
|
|
2475
|
+
class I extends v {
|
|
2476
2476
|
innerType() {
|
|
2477
2477
|
return this._def.schema;
|
|
2478
2478
|
}
|
|
@@ -2549,13 +2549,13 @@ class R extends v {
|
|
|
2549
2549
|
x.assertNever(s);
|
|
2550
2550
|
}
|
|
2551
2551
|
}
|
|
2552
|
-
|
|
2552
|
+
I.create = (r, e, t) => new I({
|
|
2553
2553
|
schema: r,
|
|
2554
2554
|
typeName: m.ZodEffects,
|
|
2555
2555
|
effect: e,
|
|
2556
2556
|
..._(t)
|
|
2557
2557
|
});
|
|
2558
|
-
|
|
2558
|
+
I.createWithPreprocess = (r, e, t) => new I({
|
|
2559
2559
|
schema: e,
|
|
2560
2560
|
effect: { type: "preprocess", transform: r },
|
|
2561
2561
|
typeName: m.ZodEffects,
|
|
@@ -2745,7 +2745,7 @@ function De(r, e = {}, t) {
|
|
|
2745
2745
|
}) : X.create();
|
|
2746
2746
|
}
|
|
2747
2747
|
const mt = {
|
|
2748
|
-
object:
|
|
2748
|
+
object: b.lazycreate
|
|
2749
2749
|
};
|
|
2750
2750
|
var m;
|
|
2751
2751
|
(function(r) {
|
|
@@ -2753,7 +2753,7 @@ var m;
|
|
|
2753
2753
|
})(m || (m = {}));
|
|
2754
2754
|
const pt = (r, e = {
|
|
2755
2755
|
message: `Input not instance of ${r.name}`
|
|
2756
|
-
}) => De((t) => t instanceof r, e), Le = E.create, Ue = V.create, yt = be.create, _t = D.create, Be = re.create, vt = q.create, gt = ge.create, xt = ne.create, kt = se.create, bt = X.create, wt = B.create, Tt =
|
|
2756
|
+
}) => De((t) => t instanceof r, e), Le = E.create, Ue = V.create, yt = be.create, _t = D.create, Be = re.create, vt = q.create, gt = ge.create, xt = ne.create, kt = se.create, bt = X.create, wt = B.create, Tt = z.create, Zt = xe.create, St = R.create, Ct = b.create, Nt = b.strictCreate, Ot = ae.create, Et = we.create, Rt = ie.create, It = M.create, jt = oe.create, At = ke.create, Mt = W.create, $t = H.create, zt = de.create, Pt = ce.create, Vt = L.create, Dt = ue.create, Lt = K.create, je = I.create, Ut = j.create, Bt = U.create, qt = I.createWithPreprocess, Wt = me.create, Yt = () => Le().optional(), Jt = () => Ue().optional(), Ht = () => Be().optional(), Gt = {
|
|
2757
2757
|
string: (r) => E.create({ ...r, coerce: !0 }),
|
|
2758
2758
|
number: (r) => V.create({ ...r, coerce: !0 }),
|
|
2759
2759
|
boolean: (r) => re.create({
|
|
@@ -2786,9 +2786,9 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2786
2786
|
return Se;
|
|
2787
2787
|
},
|
|
2788
2788
|
ZodParsedType: f,
|
|
2789
|
-
getParsedType:
|
|
2789
|
+
getParsedType: P,
|
|
2790
2790
|
ZodType: v,
|
|
2791
|
-
datetimeRegex:
|
|
2791
|
+
datetimeRegex: Pe,
|
|
2792
2792
|
ZodString: E,
|
|
2793
2793
|
ZodNumber: V,
|
|
2794
2794
|
ZodBigInt: D,
|
|
@@ -2799,10 +2799,10 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2799
2799
|
ZodNull: se,
|
|
2800
2800
|
ZodAny: X,
|
|
2801
2801
|
ZodUnknown: B,
|
|
2802
|
-
ZodNever:
|
|
2802
|
+
ZodNever: z,
|
|
2803
2803
|
ZodVoid: xe,
|
|
2804
|
-
ZodArray:
|
|
2805
|
-
ZodObject:
|
|
2804
|
+
ZodArray: R,
|
|
2805
|
+
ZodObject: b,
|
|
2806
2806
|
ZodUnion: ae,
|
|
2807
2807
|
ZodDiscriminatedUnion: we,
|
|
2808
2808
|
ZodIntersection: ie,
|
|
@@ -2816,8 +2816,8 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2816
2816
|
ZodEnum: L,
|
|
2817
2817
|
ZodNativeEnum: ue,
|
|
2818
2818
|
ZodPromise: K,
|
|
2819
|
-
ZodEffects:
|
|
2820
|
-
ZodTransformer:
|
|
2819
|
+
ZodEffects: I,
|
|
2820
|
+
ZodTransformer: I,
|
|
2821
2821
|
ZodOptional: j,
|
|
2822
2822
|
ZodNullable: U,
|
|
2823
2823
|
ZodDefault: le,
|
|
@@ -2845,9 +2845,9 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2845
2845
|
enum: Vt,
|
|
2846
2846
|
function: $t,
|
|
2847
2847
|
instanceof: pt,
|
|
2848
|
-
intersection:
|
|
2849
|
-
lazy:
|
|
2850
|
-
literal:
|
|
2848
|
+
intersection: Rt,
|
|
2849
|
+
lazy: zt,
|
|
2850
|
+
literal: Pt,
|
|
2851
2851
|
map: At,
|
|
2852
2852
|
nan: yt,
|
|
2853
2853
|
nativeEnum: Dt,
|
|
@@ -2869,7 +2869,7 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2869
2869
|
string: Le,
|
|
2870
2870
|
symbol: gt,
|
|
2871
2871
|
transformer: je,
|
|
2872
|
-
tuple:
|
|
2872
|
+
tuple: It,
|
|
2873
2873
|
undefined: xt,
|
|
2874
2874
|
union: Ot,
|
|
2875
2875
|
unknown: wt,
|
|
@@ -2882,11 +2882,14 @@ var C = /* @__PURE__ */ Object.freeze({
|
|
|
2882
2882
|
const nr = () => {
|
|
2883
2883
|
const { formValidationTexts: r } = Ye(We), e = (g) => (g != null && g.useCoerce ? C.coerce : C).string({
|
|
2884
2884
|
invalid_type_error: r.required
|
|
2885
|
-
}).transform((w) => w ?? null), t = (g) => e(g).nullable().optional().transform((
|
|
2886
|
-
|
|
2887
|
-
|
|
2885
|
+
}).transform((w) => w ?? null), t = (g) => e(g).nullable().optional().transform((k) => k ?? null), n = (g) => {
|
|
2886
|
+
const k = (g != null && g.useCoerce ? C.coerce : C).number({
|
|
2887
|
+
invalid_type_error: r.required
|
|
2888
|
+
});
|
|
2889
|
+
return (g == null ? void 0 : g.min) !== void 0 && k.min(g.min), (g == null ? void 0 : g.max) !== void 0 && k.max(g.max), k.transform((w) => Number.isNaN(w) ? null : w ?? null);
|
|
2890
|
+
}, s = (g) => n(g).nullable().optional().transform((k) => Number.isNaN(k) ? null : k ?? null), a = (g) => (g != null && g.useCoerce ? C.coerce : C).boolean({
|
|
2888
2891
|
invalid_type_error: r.required
|
|
2889
|
-
}).transform((
|
|
2892
|
+
}).transform((k) => k ?? null), i = (g) => (g != null && g.useCoerce ? C.coerce : C).string({ invalid_type_error: r.required }).refine(He, { message: r.invalidDate }).transform((w) => w ?? null), o = (g) => i(g).nullable().transform((k) => k ?? null), u = (g, k) => C.enum(g, { invalid_type_error: r.required }).transform((Re) => Re ?? null);
|
|
2890
2893
|
return {
|
|
2891
2894
|
zString: t,
|
|
2892
2895
|
zStringRequired: e,
|
|
@@ -2895,13 +2898,13 @@ const nr = () => {
|
|
|
2895
2898
|
zBool: a,
|
|
2896
2899
|
zDate: o,
|
|
2897
2900
|
zDateRequired: i,
|
|
2898
|
-
zEnum: (g,
|
|
2901
|
+
zEnum: (g, k) => u(g).nullable().transform((w) => w ?? null),
|
|
2899
2902
|
zEnumRequired: u,
|
|
2900
2903
|
zObjectIdInt: (g) => C.object({ id: s({ useCoerce: !0 }) }).nullable().transform((w) => w ?? null),
|
|
2901
2904
|
zObjectIdIntRequired: (g) => C.object({ id: n() }).transform((w) => w ?? null),
|
|
2902
2905
|
zObjectIdStr: (g) => C.object({ id: t({ useCoerce: !0 }) }).nullable().transform((w) => w ?? null),
|
|
2903
2906
|
zObjectIdStrRequired: (g) => C.object({ id: e() }).transform((w) => w ?? null),
|
|
2904
|
-
zFile: ({ required: g, multiple:
|
|
2907
|
+
zFile: ({ required: g, multiple: k, maxFileSize: w }) => C.any().transform((T) => Array.from(T ?? [])).refine((T) => !g || (T == null ? void 0 : T.length) > 0, "File is required.").refine((T) => k || (T == null ? void 0 : T.length) <= 1, "Multiple files not allowed.").refine((T) => T.every((qe) => qe.size <= w), `Maximum file size is ${Je(w)}.`).transform((T) => (k ? T : T == null ? void 0 : T[0]) ?? null)
|
|
2905
2908
|
};
|
|
2906
2909
|
};
|
|
2907
2910
|
export {
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./NoInputContainer-BkFSaMQy.cjs"),d=require("react");require("react-hook-form");const w=require("./usePermissions-yA39pMjm.cjs"),C=require("./SimpleTooltip-C_iRq-Q0.cjs"),M="_side-menu-item_6vbwa_1",B="_disabled_6vbwa_5",k="_nav-button_6vbwa_9",S="_child_6vbwa_17",P="_text_6vbwa_21",f="_icon_6vbwa_28",g="_collapse-icon_6vbwa_34",I="_collapsed_6vbwa_44",y="_expanded_6vbwa_51",T="_children-container_6vbwa_57",$="_visible_6vbwa_65",H="_children_6vbwa_57",o={"side-menu-item":"_side-menu-item_6vbwa_1",sideMenuItem:M,disabled:B,"nav-button":"_nav-button_6vbwa_9",navButton:k,child:S,text:P,icon:f,"collapse-icon":"_collapse-icon_6vbwa_34",collapseIcon:g,collapsed:I,expanded:y,"children-container":"_children-container_6vbwa_57",childrenContainer:T,visible:$,children:H},L=({item:e,menuExpanded:t,children:i})=>e.tooltip&&!t?s.jsxRuntimeExports.jsx(C.SimpleTooltip,{text:e.tooltip,placement:"right",children:i}):i,N=({item:e,menuExpanded:t,collapsed:i,onCollapse:a,currentPath:l})=>{var v,_;const{LinkComponent:m}=d.useContext(s.LuminusComponentsContext),[p,u]=d.useState(!1),[c]=l.split("?"),h=e.linkTo===c||((v=e.children)==null?void 0:v.some(n=>n.linkTo===c));return s.jsxRuntimeExports.jsxs("li",{className:s.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.expanded]:t},{active:p||h},{open:i&&e.children},{[o.disabled]:e.disabled||e.notPermitted},{disabled:e.disabled||e.notPermitted}),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[s.jsxRuntimeExports.jsx(L,{item:e,menuExpanded:t,children:e.children?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:s.jsxRuntimeExports.jsxs("button",{type:"button",className:s.classNames("nav-link",o.navButton),onClick:()=>a(),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("collapse-icon",o.collapseIcon,{[o.collapsed]:i}),children:s.jsxRuntimeExports.jsx(s.MdOutlineKeyboardArrowRight,{})})]})}):s.jsxRuntimeExports.jsxs(m,{to:e.disabled||e.notPermitted?"/":e.linkTo??"/",className:s.classNames("nav-link",o.navButton),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("icon",o.icon),children:e.icon}),t&&s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:e.title})]})}),s.jsxRuntimeExports.jsx("div",{className:s.classNames("children-container",o.childrenContainer,{[o.visible]:i}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("shadow rounded children",o.children),children:(_=e.children)==null?void 0:_.map(n=>s.jsxRuntimeExports.jsx(m,{to:n.disabled||n.notPermitted?"/":n.linkTo??"/",className:s.classNames("nav-link child rounded",o.navButton,o.child,{[o.disabled]:n.disabled||n.notPermitted},{disabled:n.disabled||n.notPermitted}),children:s.jsxRuntimeExports.jsx("div",{className:s.classNames("text",o.text,"text-nowrap"),children:n.title})},n.linkTo))})})]})},q="_side-menu_n1hvm_1",F="_sidebar-header_n1hvm_13",A="_side-menu-content_n1hvm_18",K="_expand_n1hvm_22",U="_divider_n1hvm_26",j={"side-menu":"_side-menu_n1hvm_1",sideMenu:q,"sidebar-header":"_sidebar-header_n1hvm_13",sidebarHeader:F,"side-menu-content":"_side-menu-content_n1hvm_18",sideMenuContent:A,expand:K,divider:U},z=({headerItem:e,mainItems:t,secondaryItems:i,expanded:a,setExpanded:l,currentPath:m})=>{const[p,u]=d.useState(-1),{checkUserHasPermissions:c}=w.usePermissions(),h=d.useMemo(()=>t.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(x=>({...x,notPermitted:!c(x.permissions??[]),disabled:n.disabled||x.disabled}))}}),[t,c]),v=d.useMemo(()=>i.map(n=>{var r;return{...n,notPermitted:!c(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(x=>({...x,notPermitted:!c(x.permissions??[])}))}}),[i,c]),_=n=>{u(n===p?-1:n)};return d.useEffect(()=>{a||u(-1)},[a]),s.jsxRuntimeExports.jsxs("section",{className:s.classNames("luminus-side-menu shadow",j.sideMenu,{[j.expand]:a},{expand:a}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:[s.jsxRuntimeExports.jsx("div",{className:s.classNames("sidebar-header",j.sidebarHeader),children:e}),s.jsxRuntimeExports.jsxs("ul",{className:j.sideMenuContent,children:[h.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title)),s.jsxRuntimeExports.jsx("hr",{className:s.classNames("divider",j.divider)}),v.map((n,r)=>s.jsxRuntimeExports.jsx(N,{item:n,menuExpanded:a,collapsed:r===p,onCollapse:()=>_(r),currentPath:m},n.title))]})]})},D="_top-bar_1lk80_1",G="_top-bar-brand_1lk80_14",R={"top-bar":"_top-bar_1lk80_1",topBar:D,"top-bar-brand":"_top-bar-brand_1lk80_14",topBarBrand:G},J=({appName:e,leftOffset:t,centerContent:i,rightContent:a})=>{const{LinkComponent:l}=d.useContext(s.LuminusComponentsContext);return s.jsxRuntimeExports.jsxs("nav",{className:s.classNames("luminus-top-bar shadow",R.topBar),style:{width:t?`calc(100% - ${t}px)`:void 0,left:t?`${t}px`:void 0},children:[s.jsxRuntimeExports.jsx(l,{to:"/",className:s.classNames("luminus-top-bar-brand",R.topBarBrand),children:e}),i&&s.jsxRuntimeExports.jsx("div",{children:i}),s.jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-end align-items-center gap-2",children:a??null})]})},O="_side-content-bar_17kwd_1",Q={"side-content-bar":"_side-content-bar_17kwd_1",sideContentBar:O},b=({width:e,children:t})=>s.jsxRuntimeExports.jsx("section",{className:s.classNames("luminus-side-content-bar shadow",Q.sideContentBar),style:{width:`${e}px`},children:t}),E=({title:e})=>s.jsxRuntimeExports.jsx("div",{className:"mb-3",children:typeof e=="string"?s.jsxRuntimeExports.jsx(s.Typography,{variant:"h3",children:e}):e}),V=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("container-fluid",a?"p-0":"p-3",l),children:[s.jsxRuntimeExports.jsxs("div",{style:{paddingRight:i?"250px":void 0},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]}),W="_full-screen-container_1rm4r_1",X={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:W},Y=({title:e,children:t,sideContent:i,noPadding:a,className:l})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("overflow-hidden luminus-full-screen-container",a?"p-0":"p-3",l,X.fullScreenContainer),style:{width:i?"calc(100% - 250px)":"100%"},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:250,children:i})]});exports.FullScreenContainer=Y;exports.MainContainer=V;exports.SideContentBar=b;exports.SideMenu=z;exports.TopBar=J;
|
package/dist/layout.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as C, j as e, b as i, W as I,
|
|
1
|
+
import { N as C, j as e, b as i, W as I, X as P } from "./NoInputContainer-LdJeEMWI.js";
|
|
2
2
|
import { useContext as B, useState as M, useMemo as j, useEffect as g } from "react";
|
|
3
3
|
import "react-hook-form";
|
|
4
|
-
import { u as y } from "./usePermissions-
|
|
5
|
-
import { S } from "./SimpleTooltip-
|
|
6
|
-
const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6vbwa_9", L = "_child_6vbwa_17", E = "_text_6vbwa_21", F = "_icon_6vbwa_28", R = "_collapse-icon_6vbwa_34", A = "_collapsed_6vbwa_44", K = "_expanded_6vbwa_51", U = "_children-container_6vbwa_57", W = "_visible_6vbwa_65",
|
|
4
|
+
import { u as y } from "./usePermissions-CHfDy8Yx.js";
|
|
5
|
+
import { S } from "./SimpleTooltip-mxX4RNUy.js";
|
|
6
|
+
const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6vbwa_9", L = "_child_6vbwa_17", E = "_text_6vbwa_21", F = "_icon_6vbwa_28", R = "_collapse-icon_6vbwa_34", A = "_collapsed_6vbwa_44", K = "_expanded_6vbwa_51", U = "_children-container_6vbwa_57", W = "_visible_6vbwa_65", X = "_children_6vbwa_57", o = {
|
|
7
7
|
"side-menu-item": "_side-menu-item_6vbwa_1",
|
|
8
8
|
sideMenuItem: T,
|
|
9
9
|
disabled: $,
|
|
@@ -19,14 +19,14 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
19
19
|
"children-container": "_children-container_6vbwa_57",
|
|
20
20
|
childrenContainer: U,
|
|
21
21
|
visible: W,
|
|
22
|
-
children:
|
|
23
|
-
},
|
|
22
|
+
children: X
|
|
23
|
+
}, q = ({ item: n, menuExpanded: t, children: a }) => n.tooltip && !t ? /* @__PURE__ */ e.jsx(S, { text: n.tooltip, placement: "right", children: a }) : a, w = ({ item: n, menuExpanded: t, collapsed: a, onCollapse: r, currentPath: l }) => {
|
|
24
24
|
var b, h;
|
|
25
25
|
const { LinkComponent: m } = B(C), [p, _] = M(!1), [c] = l.split("?"), x = n.linkTo === c || ((b = n.children) == null ? void 0 : b.some((s) => s.linkTo === c));
|
|
26
26
|
return /* @__PURE__ */ e.jsxs("li", { className: i("luminus-side-menu-item", o.sideMenuItem, {
|
|
27
27
|
[o.expanded]: t
|
|
28
28
|
}, { active: p || x }, { open: a && n.children }, { [o.disabled]: n.disabled || n.notPermitted }, { disabled: n.disabled || n.notPermitted }), onMouseEnter: () => _(!0), onMouseLeave: () => _(!1), children: [
|
|
29
|
-
/* @__PURE__ */ e.jsx(
|
|
29
|
+
/* @__PURE__ */ e.jsx(q, { item: n, menuExpanded: t, children: n.children ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("button", { type: "button", className: i("nav-link", o.navButton), onClick: () => r(), children: [
|
|
30
30
|
/* @__PURE__ */ e.jsx("div", { className: i("icon", o.icon), children: n.icon }),
|
|
31
31
|
t && /* @__PURE__ */ e.jsx("div", { className: i("text", o.text, "text-nowrap"), children: n.title }),
|
|
32
32
|
t && /* @__PURE__ */ e.jsx("div", { className: i("collapse-icon", o.collapseIcon, {
|
|
@@ -40,15 +40,15 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
40
40
|
[o.visible]: a
|
|
41
41
|
}), children: /* @__PURE__ */ e.jsx("div", { className: i("shadow rounded children", o.children), children: (h = n.children) == null ? void 0 : h.map((s) => /* @__PURE__ */ e.jsx(m, { to: s.disabled || s.notPermitted ? "/" : s.linkTo ?? "/", className: i("nav-link child rounded", o.navButton, o.child, { [o.disabled]: s.disabled || s.notPermitted }, { disabled: s.disabled || s.notPermitted }), children: /* @__PURE__ */ e.jsx("div", { className: i("text", o.text, "text-nowrap"), children: s.title }) }, s.linkTo)) }) })
|
|
42
42
|
] });
|
|
43
|
-
},
|
|
43
|
+
}, z = "_side-menu_n1hvm_1", D = "_sidebar-header_n1hvm_13", G = "_side-menu-content_n1hvm_18", J = "_expand_n1hvm_22", Q = "_divider_n1hvm_26", v = {
|
|
44
44
|
"side-menu": "_side-menu_n1hvm_1",
|
|
45
|
-
sideMenu:
|
|
45
|
+
sideMenu: z,
|
|
46
46
|
"sidebar-header": "_sidebar-header_n1hvm_13",
|
|
47
|
-
sidebarHeader:
|
|
47
|
+
sidebarHeader: D,
|
|
48
48
|
"side-menu-content": "_side-menu-content_n1hvm_18",
|
|
49
|
-
sideMenuContent:
|
|
50
|
-
expand:
|
|
51
|
-
divider:
|
|
49
|
+
sideMenuContent: G,
|
|
50
|
+
expand: J,
|
|
51
|
+
divider: Q
|
|
52
52
|
}, re = ({ headerItem: n, mainItems: t, secondaryItems: a, expanded: r, setExpanded: l, currentPath: m }) => {
|
|
53
53
|
const [p, _] = M(-1), { checkUserHasPermissions: c } = y(), x = j(() => t.map((s) => {
|
|
54
54
|
var d;
|
|
@@ -86,9 +86,9 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
86
86
|
b.map((s, d) => /* @__PURE__ */ e.jsx(w, { item: s, menuExpanded: r, collapsed: d === p, onCollapse: () => h(d), currentPath: m }, s.title))
|
|
87
87
|
] })
|
|
88
88
|
] });
|
|
89
|
-
},
|
|
89
|
+
}, V = "_top-bar_1lk80_1", Y = "_top-bar-brand_1lk80_14", N = {
|
|
90
90
|
"top-bar": "_top-bar_1lk80_1",
|
|
91
|
-
topBar:
|
|
91
|
+
topBar: V,
|
|
92
92
|
"top-bar-brand": "_top-bar-brand_1lk80_14",
|
|
93
93
|
topBarBrand: Y
|
|
94
94
|
}, de = ({ appName: n, leftOffset: t, centerContent: a, rightContent: r }) => {
|