react-luminus-components 1.2.77 → 1.2.79
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 +50 -50
- package/dist/{EventType-TaCH9oyp.js → EventType-CpXqyU6N.js} +140 -138
- package/dist/EventType-DyGsWo_d.cjs +1 -0
- package/dist/SimpleTooltip-CWolhOb-.cjs +1 -0
- package/dist/SimpleTooltip-Dlu42YM6.js +5 -0
- package/dist/{NoInputContainer-CCGnNOSg.js → UserAvatarToggle-ByG1NTlM.js} +1112 -1109
- package/dist/{NoInputContainer-DMOoy9Pc.cjs → UserAvatarToggle-cJKNvqKT.cjs} +46 -46
- package/dist/components/common/Card/Card.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +8 -0
- package/dist/components/common/Loading/LoadingBlock.d.ts +4 -0
- package/dist/components/common/Widget/WidgetCard.d.ts +8 -0
- package/dist/components/common/Widget/WidgetWrapper.d.ts +7 -0
- package/dist/components/common/index.d.ts +4 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +5 -1
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +7 -3
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +74 -70
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useGetDataBound/useGetDataBound.d.ts +2 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +102 -73
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +13 -13
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +1525 -1482
- package/dist/models/index.d.ts +3 -0
- package/dist/models/prop-types/DashboardWidgetCommonProps.d.ts +5 -0
- package/dist/models/texts/ErrorBoundaryTexts.d.ts +5 -0
- package/dist/models/texts/WidgetTexts.d.ts +4 -0
- package/dist/models/types/DashboardWidget.d.ts +4 -2
- package/dist/style.css +1 -1
- package/dist/{useConfirm-Cbsu_0WS.js → useConfirm-C2tLxO-b.js} +1 -1
- package/dist/useConfirm-HYlAqd-s.cjs +1 -0
- package/dist/{useFormControlType-BAFqxupC.js → useFormControlType-oJGqgThz.js} +3 -3
- package/dist/usePermissions-BlYpl_RP.cjs +1 -0
- package/dist/{usePermissions-CfEdvkjX.js → usePermissions-CPbQAr2_.js} +1 -1
- package/package.json +100 -100
- package/dist/EventType-7wos9_SI.cjs +0 -1
- package/dist/SimpleTooltip-69aeczDW.js +0 -5
- package/dist/SimpleTooltip-DVSE9qqf.cjs +0 -1
- package/dist/useConfirm-DAxHTuPE.cjs +0 -1
- package/dist/usePermissions-ChiH0cXr.cjs +0 -1
package/dist/hooks.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Q as
|
|
2
|
-
import { aF as
|
|
3
|
-
import { a as
|
|
4
|
-
import { useContext as
|
|
1
|
+
import { Q as He, ab as Ae, an as Qe } from "./UserAvatarToggle-ByG1NTlM.js";
|
|
2
|
+
import { aF as pr, af as yr, aE as _r } from "./UserAvatarToggle-ByG1NTlM.js";
|
|
3
|
+
import { a as gr, u as xr } from "./useConfirm-C2tLxO-b.js";
|
|
4
|
+
import { useContext as $e, useRef as Xe, useState as Me, useCallback as Ke, useEffect as ze } from "react";
|
|
5
5
|
import { f as Fe } from "./textUtils-BbxuIsKq.js";
|
|
6
6
|
import { i as et } from "./dateUtils-Crak7ii9.js";
|
|
7
7
|
import "react-hook-form";
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
8
|
+
import { b as kr, u as wr, a as Tr } from "./useFormControlType-oJGqgThz.js";
|
|
9
|
+
import { u as Cr } from "./usePermissions-CPbQAr2_.js";
|
|
10
10
|
var x;
|
|
11
11
|
(function(r) {
|
|
12
12
|
r.assertEqual = (s) => s;
|
|
@@ -171,7 +171,7 @@ class N extends Error {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
N.create = (r) => new N(r);
|
|
174
|
-
const
|
|
174
|
+
const H = (r, e) => {
|
|
175
175
|
let t;
|
|
176
176
|
switch (r.code) {
|
|
177
177
|
case d.invalid_type:
|
|
@@ -227,12 +227,12 @@ const G = (r, e) => {
|
|
|
227
227
|
}
|
|
228
228
|
return { message: t };
|
|
229
229
|
};
|
|
230
|
-
let
|
|
230
|
+
let Pe = H;
|
|
231
231
|
function rt(r) {
|
|
232
|
-
|
|
232
|
+
Pe = r;
|
|
233
233
|
}
|
|
234
234
|
function ye() {
|
|
235
|
-
return
|
|
235
|
+
return Pe;
|
|
236
236
|
}
|
|
237
237
|
const _e = (r) => {
|
|
238
238
|
const { data: e, path: t, errorMaps: n, issueData: s } = r, a = [...t, ...s.path || []], i = {
|
|
@@ -264,7 +264,7 @@ function l(r, e) {
|
|
|
264
264
|
r.common.contextualErrorMap,
|
|
265
265
|
r.schemaErrorMap,
|
|
266
266
|
t,
|
|
267
|
-
t ===
|
|
267
|
+
t === H ? void 0 : H
|
|
268
268
|
// then global default map
|
|
269
269
|
].filter((s) => !!s)
|
|
270
270
|
});
|
|
@@ -319,7 +319,7 @@ function ve(r, e, t, n) {
|
|
|
319
319
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
320
320
|
return e.get(r);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function De(r, e, t, n, s) {
|
|
323
323
|
if (typeof e == "function" ? r !== e || !s : !e.has(r))
|
|
324
324
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
325
325
|
return e.set(r, t), t;
|
|
@@ -549,16 +549,16 @@ class v {
|
|
|
549
549
|
}
|
|
550
550
|
const st = /^c[^\s-]{8,}$/i, at = /^[0-9a-z]+$/, it = /^[0-9A-HJKMNP-TV-Z]{26}$/, ot = /^[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, dt = /^[a-z0-9_-]{21}$/i, ct = /^[-+]?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)?)??$/, ut = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, lt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
551
551
|
let Ze;
|
|
552
|
-
const ft = /^(?:(?: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])$/, ht = /^(([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})))$/, mt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,
|
|
553
|
-
function
|
|
552
|
+
const ft = /^(?:(?: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])$/, ht = /^(([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})))$/, mt = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ve = "((\\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])))", pt = new RegExp(`^${Ve}$`);
|
|
553
|
+
function Le(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 yt(r) {
|
|
558
|
-
return new RegExp(`^${
|
|
558
|
+
return new RegExp(`^${Le(r)}$`);
|
|
559
559
|
}
|
|
560
|
-
function
|
|
561
|
-
let e = `${
|
|
560
|
+
function qe(r) {
|
|
561
|
+
let e = `${Ve}T${Le(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" ? qe(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
|
|
@@ -928,7 +928,7 @@ function vt(r, e) {
|
|
|
928
928
|
const t = (r.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = t > n ? t : n, a = parseInt(r.toFixed(s).replace(".", "")), i = parseInt(e.toFixed(s).replace(".", ""));
|
|
929
929
|
return a % i / Math.pow(10, s);
|
|
930
930
|
}
|
|
931
|
-
class
|
|
931
|
+
class D extends v {
|
|
932
932
|
constructor() {
|
|
933
933
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
934
934
|
}
|
|
@@ -986,7 +986,7 @@ class V extends v {
|
|
|
986
986
|
return this.setLimit("max", e, !1, h.toString(t));
|
|
987
987
|
}
|
|
988
988
|
setLimit(e, t, n, s) {
|
|
989
|
-
return new
|
|
989
|
+
return new D({
|
|
990
990
|
...this._def,
|
|
991
991
|
checks: [
|
|
992
992
|
...this._def.checks,
|
|
@@ -1000,7 +1000,7 @@ class V extends v {
|
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
1002
|
_addCheck(e) {
|
|
1003
|
-
return new
|
|
1003
|
+
return new D({
|
|
1004
1004
|
...this._def,
|
|
1005
1005
|
checks: [...this._def.checks, e]
|
|
1006
1006
|
});
|
|
@@ -1094,13 +1094,13 @@ class V extends v {
|
|
|
1094
1094
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
|
|
1097
|
+
D.create = (r) => new D({
|
|
1098
1098
|
checks: [],
|
|
1099
1099
|
typeName: p.ZodNumber,
|
|
1100
1100
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
1101
1101
|
..._(r)
|
|
1102
1102
|
});
|
|
1103
|
-
class
|
|
1103
|
+
class V extends v {
|
|
1104
1104
|
constructor() {
|
|
1105
1105
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
1106
1106
|
}
|
|
@@ -1148,7 +1148,7 @@ class D extends v {
|
|
|
1148
1148
|
return this.setLimit("max", e, !1, h.toString(t));
|
|
1149
1149
|
}
|
|
1150
1150
|
setLimit(e, t, n, s) {
|
|
1151
|
-
return new
|
|
1151
|
+
return new V({
|
|
1152
1152
|
...this._def,
|
|
1153
1153
|
checks: [
|
|
1154
1154
|
...this._def.checks,
|
|
@@ -1162,7 +1162,7 @@ class D extends v {
|
|
|
1162
1162
|
});
|
|
1163
1163
|
}
|
|
1164
1164
|
_addCheck(e) {
|
|
1165
|
-
return new
|
|
1165
|
+
return new V({
|
|
1166
1166
|
...this._def,
|
|
1167
1167
|
checks: [...this._def.checks, e]
|
|
1168
1168
|
});
|
|
@@ -1219,9 +1219,9 @@ class D extends v {
|
|
|
1219
1219
|
return e;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
|
|
1222
|
+
V.create = (r) => {
|
|
1223
1223
|
var e;
|
|
1224
|
-
return new
|
|
1224
|
+
return new V({
|
|
1225
1225
|
checks: [],
|
|
1226
1226
|
typeName: p.ZodBigInt,
|
|
1227
1227
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
@@ -1784,7 +1784,7 @@ class b extends v {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
}
|
|
1786
1786
|
keyof() {
|
|
1787
|
-
return
|
|
1787
|
+
return Ue(x.objectKeys(this.shape));
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
b.create = (r, e) => new b({
|
|
@@ -2212,7 +2212,7 @@ W.create = (r, e) => new W({
|
|
|
2212
2212
|
typeName: p.ZodSet,
|
|
2213
2213
|
..._(e)
|
|
2214
2214
|
});
|
|
2215
|
-
class
|
|
2215
|
+
class G extends v {
|
|
2216
2216
|
constructor() {
|
|
2217
2217
|
super(...arguments), this.validate = this.implement;
|
|
2218
2218
|
}
|
|
@@ -2232,7 +2232,7 @@ class H extends v {
|
|
|
2232
2232
|
t.common.contextualErrorMap,
|
|
2233
2233
|
t.schemaErrorMap,
|
|
2234
2234
|
ye(),
|
|
2235
|
-
|
|
2235
|
+
H
|
|
2236
2236
|
].filter((c) => !!c),
|
|
2237
2237
|
issueData: {
|
|
2238
2238
|
code: d.invalid_arguments,
|
|
@@ -2248,7 +2248,7 @@ class H extends v {
|
|
|
2248
2248
|
t.common.contextualErrorMap,
|
|
2249
2249
|
t.schemaErrorMap,
|
|
2250
2250
|
ye(),
|
|
2251
|
-
|
|
2251
|
+
H
|
|
2252
2252
|
].filter((c) => !!c),
|
|
2253
2253
|
issueData: {
|
|
2254
2254
|
code: d.invalid_return_type,
|
|
@@ -2287,13 +2287,13 @@ class H extends v {
|
|
|
2287
2287
|
return this._def.returns;
|
|
2288
2288
|
}
|
|
2289
2289
|
args(...e) {
|
|
2290
|
-
return new
|
|
2290
|
+
return new G({
|
|
2291
2291
|
...this._def,
|
|
2292
2292
|
args: $.create(e).rest(U.create())
|
|
2293
2293
|
});
|
|
2294
2294
|
}
|
|
2295
2295
|
returns(e) {
|
|
2296
|
-
return new
|
|
2296
|
+
return new G({
|
|
2297
2297
|
...this._def,
|
|
2298
2298
|
returns: e
|
|
2299
2299
|
});
|
|
@@ -2305,7 +2305,7 @@ class H extends v {
|
|
|
2305
2305
|
return this.parse(e);
|
|
2306
2306
|
}
|
|
2307
2307
|
static create(e, t, n) {
|
|
2308
|
-
return new
|
|
2308
|
+
return new G({
|
|
2309
2309
|
args: e || $.create([]).rest(U.create()),
|
|
2310
2310
|
returns: t || U.create(),
|
|
2311
2311
|
typeName: p.ZodFunction,
|
|
@@ -2348,7 +2348,7 @@ ce.create = (r, e) => new ce({
|
|
|
2348
2348
|
typeName: p.ZodLiteral,
|
|
2349
2349
|
..._(e)
|
|
2350
2350
|
});
|
|
2351
|
-
function
|
|
2351
|
+
function Ue(r, e) {
|
|
2352
2352
|
return new L({
|
|
2353
2353
|
values: r,
|
|
2354
2354
|
typeName: p.ZodEnum,
|
|
@@ -2368,7 +2368,7 @@ class L extends v {
|
|
|
2368
2368
|
code: d.invalid_type
|
|
2369
2369
|
}), y;
|
|
2370
2370
|
}
|
|
2371
|
-
if (ve(this, K) ||
|
|
2371
|
+
if (ve(this, K) || De(this, K, new Set(this._def.values)), !ve(this, K).has(e.data)) {
|
|
2372
2372
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
2373
2373
|
return l(t, {
|
|
2374
2374
|
received: t.data,
|
|
@@ -2413,7 +2413,7 @@ class L extends v {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
2415
|
K = /* @__PURE__ */ new WeakMap();
|
|
2416
|
-
L.create =
|
|
2416
|
+
L.create = Ue;
|
|
2417
2417
|
class ue extends v {
|
|
2418
2418
|
constructor() {
|
|
2419
2419
|
super(...arguments), F.set(this, void 0);
|
|
@@ -2428,7 +2428,7 @@ class ue extends v {
|
|
|
2428
2428
|
code: d.invalid_type
|
|
2429
2429
|
}), y;
|
|
2430
2430
|
}
|
|
2431
|
-
if (ve(this, F) ||
|
|
2431
|
+
if (ve(this, F) || De(this, F, new Set(x.getValidEnumValues(this._def.values))), !ve(this, F).has(e.data)) {
|
|
2432
2432
|
const s = x.objectValues(t);
|
|
2433
2433
|
return l(n, {
|
|
2434
2434
|
received: n.data,
|
|
@@ -2735,7 +2735,7 @@ he.create = (r, e) => new he({
|
|
|
2735
2735
|
typeName: p.ZodReadonly,
|
|
2736
2736
|
..._(e)
|
|
2737
2737
|
});
|
|
2738
|
-
function
|
|
2738
|
+
function Be(r, e = {}, t) {
|
|
2739
2739
|
return r ? Q.create().superRefine((n, s) => {
|
|
2740
2740
|
var a, i;
|
|
2741
2741
|
if (!r(n)) {
|
|
@@ -2753,19 +2753,19 @@ var p;
|
|
|
2753
2753
|
})(p || (p = {}));
|
|
2754
2754
|
const bt = (r, e = {
|
|
2755
2755
|
message: `Input not instance of ${r.name}`
|
|
2756
|
-
}) =>
|
|
2756
|
+
}) => Be((t) => t instanceof r, e), We = E.create, Ye = D.create, kt = ke.create, wt = V.create, Je = re.create, Tt = B.create, Zt = ge.create, Ct = ne.create, St = se.create, Ot = Q.create, Nt = U.create, Et = z.create, Rt = xe.create, It = R.create, jt = b.create, At = b.strictCreate, $t = ae.create, Mt = we.create, zt = ie.create, Pt = $.create, Dt = oe.create, Vt = be.create, Lt = W.create, qt = G.create, Ut = de.create, Bt = ce.create, Wt = L.create, Yt = ue.create, Jt = X.create, je = I.create, Gt = j.create, Ht = q.create, Qt = I.createWithPreprocess, Xt = me.create, Kt = () => We().optional(), Ft = () => Ye().optional(), er = () => Je().optional(), tr = {
|
|
2757
2757
|
string: (r) => E.create({ ...r, coerce: !0 }),
|
|
2758
|
-
number: (r) =>
|
|
2758
|
+
number: (r) => D.create({ ...r, coerce: !0 }),
|
|
2759
2759
|
boolean: (r) => re.create({
|
|
2760
2760
|
...r,
|
|
2761
2761
|
coerce: !0
|
|
2762
2762
|
}),
|
|
2763
|
-
bigint: (r) =>
|
|
2763
|
+
bigint: (r) => V.create({ ...r, coerce: !0 }),
|
|
2764
2764
|
date: (r) => B.create({ ...r, coerce: !0 })
|
|
2765
2765
|
}, rr = y;
|
|
2766
2766
|
var O = /* @__PURE__ */ Object.freeze({
|
|
2767
2767
|
__proto__: null,
|
|
2768
|
-
defaultErrorMap:
|
|
2768
|
+
defaultErrorMap: H,
|
|
2769
2769
|
setErrorMap: rt,
|
|
2770
2770
|
getErrorMap: ye,
|
|
2771
2771
|
makeIssue: _e,
|
|
@@ -2788,10 +2788,10 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2788
2788
|
ZodParsedType: f,
|
|
2789
2789
|
getParsedType: P,
|
|
2790
2790
|
ZodType: v,
|
|
2791
|
-
datetimeRegex:
|
|
2791
|
+
datetimeRegex: qe,
|
|
2792
2792
|
ZodString: E,
|
|
2793
|
-
ZodNumber:
|
|
2794
|
-
ZodBigInt:
|
|
2793
|
+
ZodNumber: D,
|
|
2794
|
+
ZodBigInt: V,
|
|
2795
2795
|
ZodBoolean: re,
|
|
2796
2796
|
ZodDate: B,
|
|
2797
2797
|
ZodSymbol: ge,
|
|
@@ -2810,7 +2810,7 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2810
2810
|
ZodRecord: oe,
|
|
2811
2811
|
ZodMap: be,
|
|
2812
2812
|
ZodSet: W,
|
|
2813
|
-
ZodFunction:
|
|
2813
|
+
ZodFunction: G,
|
|
2814
2814
|
ZodLazy: de,
|
|
2815
2815
|
ZodLiteral: ce,
|
|
2816
2816
|
ZodEnum: L,
|
|
@@ -2827,7 +2827,7 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2827
2827
|
ZodBranded: Ee,
|
|
2828
2828
|
ZodPipeline: me,
|
|
2829
2829
|
ZodReadonly: he,
|
|
2830
|
-
custom:
|
|
2830
|
+
custom: Be,
|
|
2831
2831
|
Schema: v,
|
|
2832
2832
|
ZodSchema: v,
|
|
2833
2833
|
late: xt,
|
|
@@ -2838,7 +2838,7 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2838
2838
|
any: Ot,
|
|
2839
2839
|
array: It,
|
|
2840
2840
|
bigint: wt,
|
|
2841
|
-
boolean:
|
|
2841
|
+
boolean: Je,
|
|
2842
2842
|
date: Tt,
|
|
2843
2843
|
discriminatedUnion: Mt,
|
|
2844
2844
|
effect: je,
|
|
@@ -2848,25 +2848,25 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2848
2848
|
intersection: zt,
|
|
2849
2849
|
lazy: Ut,
|
|
2850
2850
|
literal: Bt,
|
|
2851
|
-
map:
|
|
2851
|
+
map: Vt,
|
|
2852
2852
|
nan: kt,
|
|
2853
2853
|
nativeEnum: Yt,
|
|
2854
2854
|
never: Et,
|
|
2855
2855
|
null: St,
|
|
2856
|
-
nullable:
|
|
2857
|
-
number:
|
|
2856
|
+
nullable: Ht,
|
|
2857
|
+
number: Ye,
|
|
2858
2858
|
object: jt,
|
|
2859
2859
|
oboolean: er,
|
|
2860
2860
|
onumber: Ft,
|
|
2861
|
-
optional:
|
|
2861
|
+
optional: Gt,
|
|
2862
2862
|
ostring: Kt,
|
|
2863
2863
|
pipeline: Xt,
|
|
2864
2864
|
preprocess: Qt,
|
|
2865
2865
|
promise: Jt,
|
|
2866
|
-
record:
|
|
2866
|
+
record: Dt,
|
|
2867
2867
|
set: Lt,
|
|
2868
2868
|
strictObject: At,
|
|
2869
|
-
string:
|
|
2869
|
+
string: We,
|
|
2870
2870
|
symbol: Zt,
|
|
2871
2871
|
transformer: je,
|
|
2872
2872
|
tuple: Pt,
|
|
@@ -2879,8 +2879,8 @@ var O = /* @__PURE__ */ Object.freeze({
|
|
|
2879
2879
|
quotelessJson: tt,
|
|
2880
2880
|
ZodError: N
|
|
2881
2881
|
});
|
|
2882
|
-
const
|
|
2883
|
-
const { formValidationTexts: r } =
|
|
2882
|
+
const ur = () => {
|
|
2883
|
+
const { formValidationTexts: r } = $e(He), e = (g) => (g != null && g.useCoerce ? O.coerce : O).string({
|
|
2884
2884
|
invalid_type_error: r.required,
|
|
2885
2885
|
required_error: r.required
|
|
2886
2886
|
}).transform((w) => w ?? null), t = (g) => e(g).nullable().optional().transform((k) => k ?? null), n = (g) => {
|
|
@@ -2913,10 +2913,10 @@ const cr = () => {
|
|
|
2913
2913
|
zObjectIdIntRequired: (g) => O.object({ id: n() }).transform((w) => w ?? null),
|
|
2914
2914
|
zObjectIdStr: (g) => O.object({ id: t({ useCoerce: !0 }) }).nullable().transform((w) => w ?? null),
|
|
2915
2915
|
zObjectIdStrRequired: (g) => O.object({ id: e() }).transform((w) => w ?? null),
|
|
2916
|
-
zFile: ({ required: g, multiple: k, maxFileSize: w }) => O.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((
|
|
2916
|
+
zFile: ({ required: g, multiple: k, maxFileSize: w }) => O.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((Ge) => Ge.size <= w), `Maximum file size is ${Fe(w)}.`).transform((T) => (k ? T : T == null ? void 0 : T[0]) ?? null)
|
|
2917
2917
|
};
|
|
2918
|
-
},
|
|
2919
|
-
const t =
|
|
2918
|
+
}, lr = (r, e = !1) => {
|
|
2919
|
+
const t = Ae({ silent: e }), { startLoading: n, stopLoading: s } = $e(Qe), a = Xe(0), [i, o] = Me(null), u = Ke(async (c, m) => {
|
|
2920
2920
|
!e && n(`loadData-${r}-${m}`), o(null);
|
|
2921
2921
|
try {
|
|
2922
2922
|
const C = await t.get(r, {
|
|
@@ -2927,24 +2927,53 @@ const cr = () => {
|
|
|
2927
2927
|
!e && s(`loadData-${r}-${m}`);
|
|
2928
2928
|
}
|
|
2929
2929
|
}, [t, n, s, r, e]);
|
|
2930
|
-
return
|
|
2930
|
+
return ze(() => {
|
|
2931
2931
|
const c = new AbortController();
|
|
2932
2932
|
return u(c.signal, ++a.current), () => {
|
|
2933
2933
|
c.abort();
|
|
2934
2934
|
};
|
|
2935
2935
|
}, [u]), { data: i, setData: o };
|
|
2936
|
+
}, nr = (r) => {
|
|
2937
|
+
let e = "pending", t;
|
|
2938
|
+
const n = r.then((s) => {
|
|
2939
|
+
e = "success", t = s;
|
|
2940
|
+
}, (s) => {
|
|
2941
|
+
e = "error", t = s;
|
|
2942
|
+
});
|
|
2943
|
+
return () => {
|
|
2944
|
+
switch (e) {
|
|
2945
|
+
case "pending":
|
|
2946
|
+
throw n;
|
|
2947
|
+
case "success":
|
|
2948
|
+
return t;
|
|
2949
|
+
case "error":
|
|
2950
|
+
throw t;
|
|
2951
|
+
default:
|
|
2952
|
+
throw new Error("Unknown status");
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2936
2955
|
};
|
|
2956
|
+
function fr(r) {
|
|
2957
|
+
const e = Ae({ silent: !0 }), [t, n] = Me(null);
|
|
2958
|
+
return ze(() => {
|
|
2959
|
+
(async () => {
|
|
2960
|
+
const a = e.get(r).then((i) => i.data);
|
|
2961
|
+
n(nr(a));
|
|
2962
|
+
})();
|
|
2963
|
+
}, [e, r]), t;
|
|
2964
|
+
}
|
|
2937
2965
|
export {
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2966
|
+
pr as cancelToken,
|
|
2967
|
+
yr as useAuth,
|
|
2968
|
+
Ae as useAxios,
|
|
2969
|
+
kr as useClickOutside,
|
|
2970
|
+
gr as useConfirm,
|
|
2971
|
+
wr as useFormControlType,
|
|
2972
|
+
lr as useGetApiData,
|
|
2973
|
+
fr as useGetDataBound,
|
|
2974
|
+
Tr as useKeyPress,
|
|
2975
|
+
_r as useNotifications,
|
|
2976
|
+
Cr as usePermissions,
|
|
2977
|
+
xr as usePrompt,
|
|
2978
|
+
ur as useZodSchemaTypes
|
|
2950
2979
|
};
|
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("./UserAvatarToggle-cJKNvqKT.cjs"),x=require("react");require("react-hook-form");const w=require("./usePermissions-BlYpl_RP.cjs"),C=require("./SimpleTooltip-CWolhOb-.cjs"),M="_side-menu-item_6vbwa_1",B="_disabled_6vbwa_5",k="_nav-button_6vbwa_9",g="_child_6vbwa_17",S="_text_6vbwa_21",P="_icon_6vbwa_28",f="_collapse-icon_6vbwa_34",T="_collapsed_6vbwa_44",y="_expanded_6vbwa_51",I="_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:g,text:S,icon:P,"collapse-icon":"_collapse-icon_6vbwa_34",collapseIcon:f,collapsed:T,expanded:y,"children-container":"_children-container_6vbwa_57",childrenContainer:I,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:c}=x.useContext(s.LuminusComponentsContext),[p,u]=x.useState(!1),[d]=l.split("?"),h=e.linkTo===d||((v=e.children)==null?void 0:v.some(n=>n.linkTo===d));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(c,{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(c,{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",U="_expand_n1hvm_22",K="_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:U,divider:K},z=({headerItem:e,mainItems:t,secondaryItems:i,expanded:a,setExpanded:l,currentPath:c})=>{const[p,u]=x.useState(-1),{checkUserHasPermissions:d}=w.usePermissions(),h=x.useMemo(()=>t.map(n=>{var r;return{...n,notPermitted:!d(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(m=>({...m,notPermitted:!d(m.permissions??[]),disabled:n.disabled||m.disabled}))}}),[t,d]),v=x.useMemo(()=>i.map(n=>{var r;return{...n,notPermitted:!d(n.permissions??[]),children:(r=n.children)==null?void 0:r.map(m=>({...m,notPermitted:!d(m.permissions??[])}))}}),[i,d]),_=n=>{u(n===p?-1:n)};return x.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:c},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:c},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}=x.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,sideContentWidth:a=250,noPadding:l,className:c})=>s.jsxRuntimeExports.jsxs("div",{className:s.classNames("container-fluid",l?"p-0":"p-3",c),children:[s.jsxRuntimeExports.jsxs("div",{style:{paddingRight:i?`${a}px`:void 0},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:a,children:i})]}),X="_full-screen-container_1rm4r_1",Y={"full-screen-container":"_full-screen-container_1rm4r_1",fullScreenContainer:X},Z=({title:e,children:t,sideContent:i,sideContentWidth:a=250,noPadding:l,className:c})=>s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:s.classNames("overflow-hidden luminus-full-screen-container",l?"p-0":"p-3",c,Y.fullScreenContainer),style:{width:i?`calc(100% - ${a}px)`:"100%"},children:[e?s.jsxRuntimeExports.jsx(E,{title:e}):null,t]}),i&&s.jsxRuntimeExports.jsx(b,{width:a,children:i})]});exports.FullScreenContainer=Z;exports.MainContainer=V;exports.SideContentBar=b;exports.SideMenu=z;exports.TopBar=J;
|
package/dist/layout.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Q as B, j as e,
|
|
1
|
+
import { Q as B, j as e, c as o, X as I, _ as P } from "./UserAvatarToggle-ByG1NTlM.js";
|
|
2
2
|
import { useContext as C, 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-
|
|
4
|
+
import { u as y } from "./usePermissions-CPbQAr2_.js";
|
|
5
|
+
import { S } from "./SimpleTooltip-Dlu42YM6.js";
|
|
6
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", Q = "_children-container_6vbwa_57", U = "_visible_6vbwa_65", X = "_children_6vbwa_57", i = {
|
|
7
7
|
"side-menu-item": "_side-menu-item_6vbwa_1",
|
|
8
8
|
sideMenuItem: T,
|
|
@@ -20,13 +20,13 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
20
20
|
childrenContainer: Q,
|
|
21
21
|
visible: U,
|
|
22
22
|
children: X
|
|
23
|
-
},
|
|
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: d }) => {
|
|
24
24
|
var b, v;
|
|
25
25
|
const { LinkComponent: c } = C(B), [p, u] = M(!1), [_] = d.split("?"), x = n.linkTo === _ || ((b = n.children) == null ? void 0 : b.some((s) => s.linkTo === _));
|
|
26
26
|
return /* @__PURE__ */ e.jsxs("li", { className: o("luminus-side-menu-item", i.sideMenuItem, {
|
|
27
27
|
[i.expanded]: t
|
|
28
28
|
}, { active: p || x }, { open: a && n.children }, { [i.disabled]: n.disabled || n.notPermitted }, { disabled: n.disabled || n.notPermitted }), onMouseEnter: () => u(!0), onMouseLeave: () => u(!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: o("nav-link", i.navButton), onClick: () => r(), children: [
|
|
30
30
|
/* @__PURE__ */ e.jsx("div", { className: o("icon", i.icon), children: n.icon }),
|
|
31
31
|
t && /* @__PURE__ */ e.jsx("div", { className: o("text", i.text, "text-nowrap"), children: n.title }),
|
|
32
32
|
t && /* @__PURE__ */ e.jsx("div", { className: o("collapse-icon", i.collapseIcon, {
|
|
@@ -40,15 +40,15 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
40
40
|
[i.visible]: a
|
|
41
41
|
}), children: /* @__PURE__ */ e.jsx("div", { className: o("shadow rounded children", i.children), children: (v = n.children) == null ? void 0 : v.map((s) => /* @__PURE__ */ e.jsx(c, { to: s.disabled || s.notPermitted ? "/" : s.linkTo ?? "/", className: o("nav-link child rounded", i.navButton, i.child, { [i.disabled]: s.disabled || s.notPermitted }, { disabled: s.disabled || s.notPermitted }), children: /* @__PURE__ */ e.jsx("div", { className: o("text", i.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", V = "_divider_n1hvm_26", h = {
|
|
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: V
|
|
52
52
|
}, re = ({ headerItem: n, mainItems: t, secondaryItems: a, expanded: r, setExpanded: d, currentPath: c }) => {
|
|
53
53
|
const [p, u] = M(-1), { checkUserHasPermissions: _ } = y(), x = j(() => t.map((s) => {
|
|
54
54
|
var l;
|
|
@@ -86,9 +86,9 @@ const T = "_side-menu-item_6vbwa_1", $ = "_disabled_6vbwa_5", H = "_nav-button_6
|
|
|
86
86
|
b.map((s, l) => /* @__PURE__ */ e.jsx(w, { item: s, menuExpanded: r, collapsed: l === p, onCollapse: () => v(l), currentPath: c }, s.title))
|
|
87
87
|
] })
|
|
88
88
|
] });
|
|
89
|
-
},
|
|
89
|
+
}, Y = "_top-bar_1lk80_1", Z = "_top-bar-brand_1lk80_14", N = {
|
|
90
90
|
"top-bar": "_top-bar_1lk80_1",
|
|
91
|
-
topBar:
|
|
91
|
+
topBar: Y,
|
|
92
92
|
"top-bar-brand": "_top-bar-brand_1lk80_14",
|
|
93
93
|
topBarBrand: Z
|
|
94
94
|
}, le = ({ appName: n, leftOffset: t, centerContent: a, rightContent: r }) => {
|