rc-lib-ui 1.2.22 → 1.2.23
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.
|
@@ -7,6 +7,7 @@ import { RenderListProps } from './ui/RenderList';
|
|
|
7
7
|
interface ItemListMenuCommonProps extends Pick<RenderIconProps, 'icon'>, Pick<ListTextProps, 'title'>, Pick<ListButtonProps, 'onClick'> {
|
|
8
8
|
action?: ReactNode;
|
|
9
9
|
sx?: SxProps<Theme>;
|
|
10
|
+
id?: string;
|
|
10
11
|
}
|
|
11
12
|
type OneVariantMenuList = {
|
|
12
13
|
children?: Array<ItemListMenuCommonProps & {
|
package/dist/dashboard.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import { styled as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { U as
|
|
8
|
-
import { ExpandLess as
|
|
9
|
-
import { T as
|
|
10
|
-
import { NavLink as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
1
|
+
import { jsx as d, jsxs as s, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { styled as g, ListItemButton as hi, Typography as di, ListItemIcon as si, List as ai, ListItem as fi, Collapse as pi, Box as J, AppBar as gi, Container as ui, Toolbar as xi, Drawer as mi, Divider as Z, IconButton as wi } from "@mui/material";
|
|
3
|
+
import { useTheme as bi } from "@mui/material/styles";
|
|
4
|
+
import N, { useState as O, useCallback as P, useRef as K, useEffect as Q, forwardRef as V, useMemo as li, Fragment as vi, useImperativeHandle as Si } from "react";
|
|
5
|
+
import Ci from "@mui/icons-material/ChevronLeft";
|
|
6
|
+
import Li from "@mui/icons-material/ChevronRight";
|
|
7
|
+
import { U as yi, s as Ii } from "./index-B7GqTJat.js";
|
|
8
|
+
import { ExpandLess as Wi, ExpandMore as Hi } from "@mui/icons-material";
|
|
9
|
+
import { T as ki } from "./Tooltips-Q_C8jHNF.js";
|
|
10
|
+
import { NavLink as Di } from "react-router-dom";
|
|
11
|
+
import _ from "classnames";
|
|
12
|
+
const Mi = g("main")(() => ({
|
|
13
13
|
display: "flex",
|
|
14
14
|
flexDirection: "column",
|
|
15
15
|
flexGrow: 1
|
|
16
|
-
})),
|
|
16
|
+
})), Ti = g("div")(({ theme: i }) => ({
|
|
17
17
|
display: "flex",
|
|
18
18
|
alignItems: "center",
|
|
19
19
|
justifyContent: "center",
|
|
@@ -30,7 +30,7 @@ const Di = p("main")(() => ({
|
|
|
30
30
|
easing: i.transitions.easing.sharp,
|
|
31
31
|
duration: i.transitions.duration.enteringScreen
|
|
32
32
|
})
|
|
33
|
-
})), ii = (i) => typeof i == "number" ? i + "px" : i,
|
|
33
|
+
})), ii = (i) => typeof i == "number" ? i + "px" : i, $i = (i, a = {}) => {
|
|
34
34
|
const { newProp: l = "marginLeft", positionCorrect: e = "- 0px" } = a;
|
|
35
35
|
let n = {};
|
|
36
36
|
for (const [t, o] of Object.entries(i))
|
|
@@ -42,14 +42,14 @@ const Di = p("main")(() => ({
|
|
|
42
42
|
n[l] = `calc(${r} ${e})`;
|
|
43
43
|
}
|
|
44
44
|
return n;
|
|
45
|
-
},
|
|
46
|
-
const [l, e] =
|
|
45
|
+
}, Ri = ({ render: i, defaultStatus: a = !1 }) => {
|
|
46
|
+
const [l, e] = O({ is: a, id: "" }), n = P(() => {
|
|
47
47
|
e((o) => ({ ...o, is: !o.is }));
|
|
48
48
|
}, []), t = P((o) => {
|
|
49
49
|
e((r) => ({ ...r, id: o }));
|
|
50
50
|
}, []);
|
|
51
51
|
return i({ ...l, setID: t, handleToggle: n });
|
|
52
|
-
},
|
|
52
|
+
}, Bi = g(hi, {
|
|
53
53
|
shouldForwardProp: (i) => !["minHeight"].includes(i)
|
|
54
54
|
})(({ minHeight: i }) => ({
|
|
55
55
|
minHeight: i,
|
|
@@ -58,15 +58,15 @@ const Di = p("main")(() => ({
|
|
|
58
58
|
transition: "height .1s ease-in-out",
|
|
59
59
|
overflow: "hidden"
|
|
60
60
|
// ':hover': { backgroundColor: 'transparent' },
|
|
61
|
-
})),
|
|
62
|
-
const n = K(null), [t, o] =
|
|
61
|
+
})), A = { minHeight: 48, height: 0 }, U = ({ sx: i = {}, isWrapText: a, isOpen: l, ...e }) => {
|
|
62
|
+
const n = K(null), [t, o] = O(A);
|
|
63
63
|
return Q(() => {
|
|
64
64
|
if (a && (n != null && n.current)) {
|
|
65
65
|
const { scrollHeight: r, clientHeight: c } = n == null ? void 0 : n.current;
|
|
66
|
-
l ? (!t.height && o((
|
|
66
|
+
l ? (!t.height && o((m) => ({ ...m, height: c })), r !== c && o({ ...A, height: r + c })) : o({ ...A, height: A.minHeight });
|
|
67
67
|
}
|
|
68
68
|
}, [l]), /* @__PURE__ */ d(
|
|
69
|
-
|
|
69
|
+
Bi,
|
|
70
70
|
{
|
|
71
71
|
minHeight: t.minHeight,
|
|
72
72
|
ref: n,
|
|
@@ -74,25 +74,25 @@ const Di = p("main")(() => ({
|
|
|
74
74
|
...e
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
},
|
|
78
|
-
const [n, t] =
|
|
77
|
+
}, zi = ({ unmount: i, isWrapText: a, title: l, sx: e = {} }) => {
|
|
78
|
+
const [n, t] = O(""), o = K(null);
|
|
79
79
|
return Q(() => {
|
|
80
80
|
if (!i && o.current) {
|
|
81
81
|
const r = o.current, c = setTimeout(() => {
|
|
82
82
|
r != null && r.offsetWidth && (r == null ? void 0 : r.scrollWidth) > (r == null ? void 0 : r.offsetWidth) && typeof l == "string" && t(l), clearTimeout(c);
|
|
83
83
|
}, 200);
|
|
84
84
|
}
|
|
85
|
-
}, [l, i]), a ? !i && /* @__PURE__ */ d(di, { children: l, sx: { textWrap: "wrap", overflowWrap: "break-word", ...e } }) : !i && /* @__PURE__ */ d(
|
|
86
|
-
}, E =
|
|
87
|
-
|
|
85
|
+
}, [l, i]), a ? !i && /* @__PURE__ */ d(di, { children: l, sx: { textWrap: "wrap", overflowWrap: "break-word", ...e } }) : !i && /* @__PURE__ */ d(Ni, { ref: o, tooltipText: n, title: l, sx: e });
|
|
86
|
+
}, E = N.memo(zi), Ni = V(({ tooltipText: i, title: a, sx: l }, e) => /* @__PURE__ */ d(ki, { variant: "default", title: i, children: /* @__PURE__ */ d(di, { component: "div", ref: e, children: a, noWrap: !0, sx: { ...l, width: "100%" } }) })), Oi = V(({ className: i = "", ...a }, l) => /* @__PURE__ */ d(
|
|
87
|
+
Di,
|
|
88
88
|
{
|
|
89
89
|
ref: l,
|
|
90
90
|
className: ({ isActive: e }) => e ? i + " Mui-selected" : i,
|
|
91
91
|
end: !0,
|
|
92
92
|
...a
|
|
93
93
|
}
|
|
94
|
-
)), ni =
|
|
95
|
-
|
|
94
|
+
)), ni = N.memo(Oi), X = ({ icon: i, sx: a }) => /* @__PURE__ */ d(
|
|
95
|
+
si,
|
|
96
96
|
{
|
|
97
97
|
sx: {
|
|
98
98
|
minWidth: 40,
|
|
@@ -102,7 +102,7 @@ const Di = p("main")(() => ({
|
|
|
102
102
|
},
|
|
103
103
|
children: i
|
|
104
104
|
}
|
|
105
|
-
),
|
|
105
|
+
), Fi = g(ai, {
|
|
106
106
|
shouldForwardProp: (i) => !["styleList", "isScrollIndentation"].includes(i)
|
|
107
107
|
})(({ theme: i, styleList: a = "variant1" }) => ({
|
|
108
108
|
display: "flex",
|
|
@@ -152,7 +152,7 @@ const Di = p("main")(() => ({
|
|
|
152
152
|
// }
|
|
153
153
|
// },
|
|
154
154
|
// }
|
|
155
|
-
})), Y =
|
|
155
|
+
})), Y = g(fi, {
|
|
156
156
|
shouldForwardProp: (i) => !["visual"].includes(i)
|
|
157
157
|
})(({ theme: i, visual: a }) => ({
|
|
158
158
|
...a === "variant2" && {
|
|
@@ -169,112 +169,112 @@ const Di = p("main")(() => ({
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
})), q = ({ isIcon: i }) => ({ paddingRight: 1.2, ...!i && { paddingLeft: 1.2 } }),
|
|
173
|
-
const { minWidthColumn:
|
|
174
|
-
const
|
|
175
|
-
|
|
172
|
+
})), q = ({ isIcon: i }) => ({ paddingRight: 1.2, ...!i && { paddingLeft: 1.2 } }), ji = V(({ styleList: i = "variant1", isRight: a, columnMenu: l, isWrapText: e = !1, listMenu: n, isOpen: t, sx: o, className: r }, c) => {
|
|
173
|
+
const { minWidthColumn: m } = l, [I, S] = O(""), W = li(() => n.map(({ action: H, icon: u, title: F, sx: k = {}, onClick: C, children: w, to: D, id: h }, L) => {
|
|
174
|
+
const p = `${h || L}`, b = (x) => {
|
|
175
|
+
S(p), C && C(x);
|
|
176
176
|
};
|
|
177
|
-
return
|
|
178
|
-
|
|
177
|
+
return w && Array.isArray(w) ? /* @__PURE__ */ d(vi, { children: /* @__PURE__ */ d(
|
|
178
|
+
Ri,
|
|
179
179
|
{
|
|
180
180
|
defaultStatus: t,
|
|
181
|
-
render: (
|
|
182
|
-
/* @__PURE__ */ d(Y, { disablePadding: !0, sx:
|
|
181
|
+
render: (x) => /* @__PURE__ */ s(G, { children: [
|
|
182
|
+
/* @__PURE__ */ d(Y, { disablePadding: !0, sx: k, visual: i, children: /* @__PURE__ */ s(
|
|
183
183
|
U,
|
|
184
184
|
{
|
|
185
|
-
isOpen:
|
|
185
|
+
isOpen: x.is,
|
|
186
186
|
isWrapText: e,
|
|
187
187
|
onClick: (M) => {
|
|
188
|
-
|
|
188
|
+
x.handleToggle(), typeof C == "function" && C(M);
|
|
189
189
|
},
|
|
190
|
-
sx: { ...q({ isIcon:
|
|
190
|
+
sx: { ...q({ isIcon: u }) },
|
|
191
191
|
children: [
|
|
192
|
-
|
|
192
|
+
u && /* @__PURE__ */ d(
|
|
193
193
|
X,
|
|
194
194
|
{
|
|
195
|
-
icon:
|
|
196
|
-
sx:
|
|
195
|
+
icon: u,
|
|
196
|
+
sx: m
|
|
197
197
|
}
|
|
198
198
|
),
|
|
199
199
|
/* @__PURE__ */ d(
|
|
200
200
|
E,
|
|
201
201
|
{
|
|
202
202
|
unmount: !t,
|
|
203
|
-
title:
|
|
203
|
+
title: F,
|
|
204
204
|
sx: { flexGrow: 1 },
|
|
205
205
|
isWrapText: e
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
|
-
t && /* @__PURE__ */
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
t && /* @__PURE__ */ s(G, { children: [
|
|
209
|
+
H,
|
|
210
|
+
x.is ? /* @__PURE__ */ d(Wi, {}) : /* @__PURE__ */ d(Hi, {})
|
|
211
211
|
] })
|
|
212
212
|
]
|
|
213
213
|
}
|
|
214
214
|
) }),
|
|
215
|
-
/* @__PURE__ */ d(
|
|
216
|
-
const
|
|
217
|
-
|
|
215
|
+
/* @__PURE__ */ d(pi, { in: x.is && t, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(ai, { disablePadding: !0, children: w.map(({ action: M, icon: y, title: T, to: $, sx: j = {}, id: R, onClick: B }, v) => {
|
|
216
|
+
const f = `${L}-${R || v}`, z = (ci) => {
|
|
217
|
+
S(f), B && B(ci);
|
|
218
218
|
};
|
|
219
|
-
return /* @__PURE__ */ d(Y, { disablePadding: !0, sx:
|
|
219
|
+
return /* @__PURE__ */ d(Y, { disablePadding: !0, sx: j, visual: i, children: /* @__PURE__ */ s(
|
|
220
220
|
U,
|
|
221
221
|
{
|
|
222
|
-
sx: { paddingRight: 1.2, ...!
|
|
222
|
+
sx: { paddingRight: 1.2, ...!y && { paddingLeft: 2.5 } },
|
|
223
223
|
isOpen: !0,
|
|
224
|
-
onClick:
|
|
224
|
+
onClick: z,
|
|
225
225
|
isWrapText: e,
|
|
226
|
-
|
|
226
|
+
...$ ? { to: $, component: ni } : { to: "", className: _({ "Mui-selected": I === f }) },
|
|
227
227
|
children: [
|
|
228
|
-
|
|
228
|
+
y && /* @__PURE__ */ d(X, { icon: y, sx: { ...m, marginLeft: "8px !important" } }),
|
|
229
229
|
/* @__PURE__ */ d(
|
|
230
230
|
E,
|
|
231
231
|
{
|
|
232
232
|
unmount: !t,
|
|
233
|
-
title:
|
|
233
|
+
title: T,
|
|
234
234
|
isWrapText: e
|
|
235
235
|
}
|
|
236
236
|
),
|
|
237
237
|
t && M
|
|
238
238
|
]
|
|
239
239
|
}
|
|
240
|
-
) },
|
|
240
|
+
) }, f);
|
|
241
241
|
}) }) })
|
|
242
242
|
] })
|
|
243
243
|
}
|
|
244
|
-
) }, h) : /* @__PURE__ */ d(Y, { disablePadding: !0, sx:
|
|
244
|
+
) }, h || L) : /* @__PURE__ */ d(Y, { disablePadding: !0, sx: k, visual: i, children: /* @__PURE__ */ s(
|
|
245
245
|
U,
|
|
246
246
|
{
|
|
247
247
|
isOpen: t,
|
|
248
|
-
onClick:
|
|
248
|
+
onClick: b,
|
|
249
249
|
isWrapText: e,
|
|
250
|
-
...
|
|
251
|
-
sx: { ...q({ isIcon:
|
|
250
|
+
...D ? { to: D, component: ni } : { to: "", className: _({ "Mui-selected": I === p }) },
|
|
251
|
+
sx: { ...q({ isIcon: u }) },
|
|
252
252
|
children: [
|
|
253
|
-
|
|
253
|
+
u && /* @__PURE__ */ d(X, { icon: u, sx: m }),
|
|
254
254
|
/* @__PURE__ */ d(
|
|
255
255
|
E,
|
|
256
256
|
{
|
|
257
257
|
unmount: !t,
|
|
258
|
-
title:
|
|
258
|
+
title: F,
|
|
259
259
|
isWrapText: e
|
|
260
260
|
}
|
|
261
261
|
),
|
|
262
|
-
t &&
|
|
262
|
+
t && H
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
|
-
) },
|
|
266
|
-
}), [n, t,
|
|
265
|
+
) }, p);
|
|
266
|
+
}), [n, t, I, a, q]);
|
|
267
267
|
return /* @__PURE__ */ d(
|
|
268
|
-
|
|
268
|
+
Fi,
|
|
269
269
|
{
|
|
270
270
|
ref: c,
|
|
271
271
|
styleList: i,
|
|
272
272
|
sx: o,
|
|
273
273
|
className: r,
|
|
274
|
-
children:
|
|
274
|
+
children: W
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
|
-
}),
|
|
277
|
+
}), Ai = N.memo(ji), Gi = g(J, {
|
|
278
278
|
target: "MuiFooter-root",
|
|
279
279
|
shouldForwardProp: (i) => ![""].includes(i)
|
|
280
280
|
})(({}) => ({
|
|
@@ -283,7 +283,7 @@ const Di = p("main")(() => ({
|
|
|
283
283
|
// bottom: 0,
|
|
284
284
|
// right: 0,
|
|
285
285
|
minHeight: 48
|
|
286
|
-
})),
|
|
286
|
+
})), _i = ({
|
|
287
287
|
initWidth: i,
|
|
288
288
|
isOpen: a,
|
|
289
289
|
children: l,
|
|
@@ -293,8 +293,8 @@ const Di = p("main")(() => ({
|
|
|
293
293
|
className: o,
|
|
294
294
|
AfterComponent: r,
|
|
295
295
|
sx: c
|
|
296
|
-
}) => /* @__PURE__ */
|
|
297
|
-
|
|
296
|
+
}) => /* @__PURE__ */ s(
|
|
297
|
+
Ui,
|
|
298
298
|
{
|
|
299
299
|
className: o,
|
|
300
300
|
bgColor: t,
|
|
@@ -305,14 +305,14 @@ const Di = p("main")(() => ({
|
|
|
305
305
|
isHeaderResize: n,
|
|
306
306
|
sx: c,
|
|
307
307
|
children: [
|
|
308
|
-
/* @__PURE__ */ d(
|
|
308
|
+
/* @__PURE__ */ d(ui, { maxWidth: "xl", children: /* @__PURE__ */ d(xi, { sx: { flexGrow: 1 }, disableGutters: !0, children: l }) }),
|
|
309
309
|
r && r
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
|
-
),
|
|
312
|
+
), Vi = N.memo(_i), Ui = g(gi, {
|
|
313
313
|
shouldForwardProp: (i) => !["isOpen", "isRight", "initWidth", "bgColor", "isHeaderResize"].includes(i)
|
|
314
314
|
})(({ theme: i, isOpen: a, isRight: l, initWidth: e = 250, bgColor: n = "primary", isHeaderResize: t }) => ({
|
|
315
|
-
backgroundColor:
|
|
315
|
+
backgroundColor: yi.colors.getColorPalette(i, n),
|
|
316
316
|
zIndex: i.zIndex.drawer + 1,
|
|
317
317
|
color: "info.main",
|
|
318
318
|
transition: i.transitions.create(["width", "margin"], {
|
|
@@ -350,7 +350,7 @@ const Di = p("main")(() => ({
|
|
|
350
350
|
// [theme.breakpoints.up('sm')]: {
|
|
351
351
|
// width: `calc(${theme.spacing(8)} + 1px)`,
|
|
352
352
|
// },
|
|
353
|
-
}),
|
|
353
|
+
}), Ei = g(mi, {
|
|
354
354
|
shouldForwardProp: (i) => !["open", "isWrapText", "columnMenu", "isRight", "styleList"].includes(i)
|
|
355
355
|
})(
|
|
356
356
|
({ theme: i, open: a, isRight: l, columnMenu: e }) => {
|
|
@@ -373,77 +373,77 @@ const Di = p("main")(() => ({
|
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
), oi =
|
|
376
|
+
), oi = g("div")(({ theme: i }) => ({
|
|
377
377
|
display: "flex",
|
|
378
378
|
padding: i.spacing(0, 1),
|
|
379
379
|
...i.mixins.toolbar
|
|
380
380
|
})), ei = (i) => {
|
|
381
381
|
const { clientWidth: a, offsetWidth: l } = i;
|
|
382
382
|
return l - a;
|
|
383
|
-
},
|
|
384
|
-
var
|
|
385
|
-
const
|
|
383
|
+
}, Xi = V(({ Footer: i, listMenu: a, children: l, HeaderContent: e, statuses: n, itemsProps: t, classes: o, columnMenu: r, styleList: c, sx: m }, I) => {
|
|
384
|
+
var $, j, R, B;
|
|
385
|
+
const S = bi(), W = (r == null ? void 0 : r.position) === "right", H = !1, u = !0;
|
|
386
386
|
//!!statuses?.isScrollIndentation
|
|
387
|
-
const
|
|
388
|
-
width: `calc(${
|
|
389
|
-
[
|
|
390
|
-
width: `calc(${
|
|
387
|
+
const F = (n == null ? void 0 : n.isHeaderDefault) === void 0 ? !0 : n == null ? void 0 : n.isHeaderDefault, k = (n == null ? void 0 : n.isHeader) === void 0 ? !0 : n == null ? void 0 : n.isHeader, C = (n == null ? void 0 : n.isMenu) === void 0 ? !0 : n == null ? void 0 : n.isMenu, w = (r == null ? void 0 : r.initWidth) || 250, D = li(() => r != null && r.minWidthColumn && Object.keys(r == null ? void 0 : r.minWidthColumn).length ? r == null ? void 0 : r.minWidthColumn : {
|
|
388
|
+
width: `calc(${S.spacing(7)} + 1px)`,
|
|
389
|
+
[S.breakpoints.up("sm")]: {
|
|
390
|
+
width: `calc(${S.spacing(8)} + 1px)`
|
|
391
391
|
}
|
|
392
|
-
}, [r == null ? void 0 : r.minWidthColumn]), [h,
|
|
392
|
+
}, [r == null ? void 0 : r.minWidthColumn]), [h, L] = O({
|
|
393
393
|
isOpen: !!(n != null && n.isDefaultOpen),
|
|
394
394
|
widthCloseColumn: 0,
|
|
395
395
|
widthScroll: 0
|
|
396
|
-
}),
|
|
396
|
+
}), p = Ii(h, L), b = K(null);
|
|
397
397
|
Q(() => {
|
|
398
|
-
if (
|
|
399
|
-
const
|
|
400
|
-
let
|
|
401
|
-
|
|
402
|
-
if (
|
|
403
|
-
const
|
|
404
|
-
|
|
398
|
+
if (b.current) {
|
|
399
|
+
const v = ei(b.current);
|
|
400
|
+
let f = !1;
|
|
401
|
+
v > 0 && (f = !0), p({ widthScroll: f ? v + 1 : 0 }), window.onresize = function() {
|
|
402
|
+
if (b.current) {
|
|
403
|
+
const z = ei(b.current);
|
|
404
|
+
f && !z && (f = !1, p({ widthScroll: 0 })), !f && z && (f = !0, p({ widthScroll: z + 1 }));
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
}, [
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
},
|
|
414
|
-
|
|
415
|
-
},
|
|
408
|
+
}, [u]);
|
|
409
|
+
const x = () => {
|
|
410
|
+
p({ isOpen: !0 });
|
|
411
|
+
}, M = () => {
|
|
412
|
+
p({ isOpen: !1 });
|
|
413
|
+
}, y = () => {
|
|
414
|
+
L((v) => ({ ...v, isOpen: !v.isOpen }));
|
|
415
|
+
}, T = {
|
|
416
416
|
isOpen: h.isOpen,
|
|
417
|
-
handleMenuOpen:
|
|
418
|
-
handleMenuClose:
|
|
419
|
-
handleMenuToggle:
|
|
417
|
+
handleMenuOpen: x,
|
|
418
|
+
handleMenuClose: M,
|
|
419
|
+
handleMenuToggle: y
|
|
420
420
|
};
|
|
421
|
-
return
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
return Si(I, () => T), /* @__PURE__ */ s(J, { className: _("Dashboard", o == null ? void 0 : o.dashboard), sx: { display: "flex", height: "inherit", ...m }, children: [
|
|
422
|
+
k ? F ? /* @__PURE__ */ d(
|
|
423
|
+
Vi,
|
|
424
424
|
{
|
|
425
|
-
initWidth:
|
|
425
|
+
initWidth: w,
|
|
426
426
|
isOpen: h.isOpen,
|
|
427
|
-
bgColor: (
|
|
428
|
-
isRight:
|
|
427
|
+
bgColor: ($ = t == null ? void 0 : t.MuiHeader) == null ? void 0 : $.bgColor,
|
|
428
|
+
isRight: W,
|
|
429
429
|
isHeaderResize: n == null ? void 0 : n.isHeaderResize,
|
|
430
|
-
sx: (
|
|
430
|
+
sx: (j = t == null ? void 0 : t.MuiHeader) == null ? void 0 : j.sx,
|
|
431
431
|
className: o == null ? void 0 : o.header,
|
|
432
|
-
AfterComponent: (
|
|
433
|
-
children: typeof e == "function" ? e(
|
|
432
|
+
AfterComponent: (R = t == null ? void 0 : t.MuiHeader) == null ? void 0 : R.AfterComponent,
|
|
433
|
+
children: typeof e == "function" ? e(T) : e
|
|
434
434
|
}
|
|
435
|
-
) : typeof e == "function" ? e(
|
|
436
|
-
|
|
437
|
-
|
|
435
|
+
) : typeof e == "function" ? e(T) : e : null,
|
|
436
|
+
C && /* @__PURE__ */ s(
|
|
437
|
+
Ei,
|
|
438
438
|
{
|
|
439
439
|
variant: "permanent",
|
|
440
440
|
open: h.isOpen,
|
|
441
|
-
isRight:
|
|
442
|
-
isWrapText:
|
|
443
|
-
columnMenu: { initWidth:
|
|
441
|
+
isRight: W,
|
|
442
|
+
isWrapText: H,
|
|
443
|
+
columnMenu: { initWidth: w, minWidthColumn: D },
|
|
444
444
|
styleList: c,
|
|
445
445
|
children: [
|
|
446
|
-
(n == null ? void 0 : n.isMenuHeader) !== !1 && /* @__PURE__ */
|
|
446
|
+
(n == null ? void 0 : n.isMenuHeader) !== !1 && /* @__PURE__ */ s(G, { children: [
|
|
447
447
|
/* @__PURE__ */ d(oi, {}),
|
|
448
448
|
/* @__PURE__ */ d(Z, {})
|
|
449
449
|
] }),
|
|
@@ -453,37 +453,37 @@ const Di = p("main")(() => ({
|
|
|
453
453
|
flexGrow: 1,
|
|
454
454
|
overflow: "hidden"
|
|
455
455
|
}, children: /* @__PURE__ */ d(
|
|
456
|
-
|
|
456
|
+
Ai,
|
|
457
457
|
{
|
|
458
|
-
ref:
|
|
459
|
-
isRight:
|
|
458
|
+
ref: b,
|
|
459
|
+
isRight: W,
|
|
460
460
|
columnMenu: {
|
|
461
|
-
initWidth:
|
|
462
|
-
minWidthColumn:
|
|
461
|
+
initWidth: w,
|
|
462
|
+
minWidthColumn: $i(D, { newProp: "width", positionCorrect: `- ${h.widthScroll}px` })
|
|
463
463
|
},
|
|
464
464
|
listMenu: a,
|
|
465
465
|
isOpen: h.isOpen,
|
|
466
|
-
sx: (
|
|
466
|
+
sx: (B = t == null ? void 0 : t.MuiListMenu) == null ? void 0 : B.sx,
|
|
467
467
|
className: o == null ? void 0 : o.listMenu,
|
|
468
|
-
isWrapText:
|
|
468
|
+
isWrapText: H,
|
|
469
469
|
styleList: c
|
|
470
470
|
}
|
|
471
471
|
) }),
|
|
472
|
-
(n == null ? void 0 : n.isButtonCenterMenu) !== !1 && /* @__PURE__ */ d(
|
|
473
|
-
i && /* @__PURE__ */ d(
|
|
472
|
+
(n == null ? void 0 : n.isButtonCenterMenu) !== !1 && /* @__PURE__ */ d(Ti, { children: /* @__PURE__ */ d(wi, { onClick: y, sx: { pointerEvents: "auto" }, children: h.isOpen ? /* @__PURE__ */ d(Li, {}) : /* @__PURE__ */ d(Ci, {}) }) }),
|
|
473
|
+
i && /* @__PURE__ */ d(G, { children: /* @__PURE__ */ s(Gi, { children: [
|
|
474
474
|
/* @__PURE__ */ d(Z, {}),
|
|
475
475
|
i
|
|
476
476
|
] }) })
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
|
|
480
|
+
/* @__PURE__ */ s(Mi, { className: _("Dashboard-main", o == null ? void 0 : o.main), children: [
|
|
481
|
+
k && /* @__PURE__ */ d(oi, {}),
|
|
482
482
|
l
|
|
483
483
|
] })
|
|
484
484
|
] });
|
|
485
|
-
}),
|
|
485
|
+
}), en = N.memo(Xi);
|
|
486
486
|
export {
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
en as Dashboard,
|
|
488
|
+
Vi as MuiHeader
|
|
489
489
|
};
|