@sheetxl/utils-mui 0.7.28-beta.4 → 0.8.0-beta.2
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/browser/cjs/BUKGN088i3WnPm2X.cjs +3 -0
- package/browser/cjs/{CMDyOaq_TZmhbR3R.cjs → BoIvdNHQ8K9GSQnQ.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{BtypB0nqvk9FmxKZ.mjs → BTjqmdqRredVe5QC.mjs} +563 -543
- package/browser/esm/{j3660jGOxTGgMAzl.mjs → Dypk9nOG6XqTqq_J.mjs} +4 -4
- package/browser/esm/index.mjs +773 -676
- package/node/esm/{CKZStonsPru7gSGW.mjs → CwSLcaHUI7AukMBS.mjs} +1 -1
- package/node/esm/index.mjs +820 -705
- package/package.json +3 -3
- package/resources/locales/en/ui.msg.json +1 -0
- package/types/src/button/ExhibitMenuItem.d.ts +12 -0
- package/types/src/components/AnimatedLoadingPanel.d.ts +42 -0
- package/types/src/components/LazyLoadErrorPanel.d.ts +16 -0
- package/types/src/components/index.d.ts +1 -0
- package/types/src/dialog/index.d.ts +1 -0
- package/types/src/dialog/lazyModal.d.ts +25 -0
- package/types/src/theme/ExhibitTheme.d.ts +0 -28
- package/browser/cjs/GeHQP4M_1ydWv9v4.cjs +0 -3
package/node/esm/index.mjs
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as
|
|
7
|
+
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as g, Toolbar as f, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as k, useThemeProps as w } from "@mui/material";
|
|
8
8
|
import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
|
-
import { Children as
|
|
10
|
-
import
|
|
11
|
-
import { alpha as
|
|
12
|
-
import { CommonUtils as
|
|
13
|
-
import { Command as
|
|
14
|
-
import { mergeRefs as
|
|
15
|
-
import { useIsomorphicLayoutEffect as
|
|
16
|
-
import { deepmerge as
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { createPortal as
|
|
20
|
-
import
|
|
21
|
-
import { primaryInput as
|
|
22
|
-
import { FormProvider as
|
|
23
|
-
import
|
|
9
|
+
import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
|
|
10
|
+
import V from "clsx";
|
|
11
|
+
import { alpha as q, darken as j, lighten as Q } from "@mui/system";
|
|
12
|
+
import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
|
|
13
|
+
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as ge, useFloatStack as fe, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useLazyRetry as ve, useTranslator as ke } from "@sheetxl/utils-react";
|
|
14
|
+
import { mergeRefs as we } from "react-merge-refs";
|
|
15
|
+
import { useIsomorphicLayoutEffect as Ce, useMeasure as Me } from "react-use";
|
|
16
|
+
import { deepmerge as Se } from "@mui/utils";
|
|
17
|
+
import Pe from "tiny-invariant";
|
|
18
|
+
import Te, { useModal as Re } from "mui-modal-provider";
|
|
19
|
+
import { createPortal as De } from "react-dom";
|
|
20
|
+
import Ie from "react-draggable";
|
|
21
|
+
import { primaryInput as $e } from "detect-it";
|
|
22
|
+
import { FormProvider as ze, useForm as Be } from "react-hook-form";
|
|
23
|
+
import Le from "@mui/material/ButtonBase/TouchRipple";
|
|
24
24
|
export * from "mui-modal-provider";
|
|
25
|
-
var
|
|
25
|
+
var Ne = {
|
|
26
26
|
whiteSpace: "nowrap",
|
|
27
27
|
textTransform: "none",
|
|
28
28
|
lineHeight: 1,
|
|
@@ -30,10 +30,10 @@ var De = {
|
|
|
30
30
|
paddingLeft: (e) => e.spacing(.25),
|
|
31
31
|
paddingRight: (e) => e.spacing(.25)
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Oe(e, r) {
|
|
34
34
|
const o = null != r && !1 !== r && "" !== r ? M(b, {
|
|
35
35
|
component: "div",
|
|
36
|
-
sx:
|
|
36
|
+
sx: Ne,
|
|
37
37
|
children: r
|
|
38
38
|
}) : null;
|
|
39
39
|
return e && o ? S(t, {
|
|
@@ -44,17 +44,17 @@ function $e(e, r) {
|
|
|
44
44
|
children: [e, o]
|
|
45
45
|
}) : e ?? o ?? void 0;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
const r =
|
|
47
|
+
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
48
|
+
const r = ke();
|
|
49
49
|
return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
50
|
-
},
|
|
51
|
-
let t =
|
|
50
|
+
}, Fe = (e) => {
|
|
51
|
+
let t = se({
|
|
52
52
|
style: { cursor: "pointer" },
|
|
53
53
|
...e
|
|
54
54
|
});
|
|
55
|
-
if (void 0 !== e.isBefore && !e.disabled) t = M(
|
|
56
|
-
title: M(
|
|
57
|
-
isHorizontal: e.orientation ===
|
|
55
|
+
if (void 0 !== e.isBefore && !e.disabled) t = M(It, {
|
|
56
|
+
title: M(Ee, {
|
|
57
|
+
isHorizontal: e.orientation === le.Horizontal,
|
|
58
58
|
isBefore: e.isBefore
|
|
59
59
|
}),
|
|
60
60
|
enterDelay: 800,
|
|
@@ -65,7 +65,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
65
65
|
}) : t
|
|
66
66
|
});
|
|
67
67
|
return t;
|
|
68
|
-
},
|
|
68
|
+
}, Ae = (e, t, r, o) => {
|
|
69
69
|
const { style: n, ...i } = e, a = M(d, {
|
|
70
70
|
component: "div",
|
|
71
71
|
...i,
|
|
@@ -79,7 +79,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
79
79
|
size: "small",
|
|
80
80
|
children: t
|
|
81
81
|
});
|
|
82
|
-
return M(
|
|
82
|
+
return M(It, {
|
|
83
83
|
title: e.disabled ? r : o,
|
|
84
84
|
enterDelay: 800,
|
|
85
85
|
enterNextDelay: 1600,
|
|
@@ -88,19 +88,19 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
88
88
|
children: a
|
|
89
89
|
}) : a
|
|
90
90
|
});
|
|
91
|
-
},
|
|
91
|
+
}, Ke = (e) => Ae(e, le.Horizontal ? M(Z, {
|
|
92
92
|
iconKey: "ArrowLeft",
|
|
93
93
|
size: "small"
|
|
94
|
-
}) : M(
|
|
94
|
+
}) : M(Z, {
|
|
95
95
|
iconKey: "ArrowUpward",
|
|
96
96
|
size: "small"
|
|
97
|
-
}), "Scroll " + (e.orientation ===
|
|
97
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Ae(e, le.Horizontal ? M(Z, {
|
|
98
98
|
iconKey: "ArrowRight",
|
|
99
99
|
size: "small"
|
|
100
|
-
}) : M(
|
|
100
|
+
}) : M(Z, {
|
|
101
101
|
iconKey: "ArrowDownward",
|
|
102
102
|
size: "small"
|
|
103
|
-
}), "Scroll " + (e.orientation ===
|
|
103
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
|
|
104
104
|
const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
|
|
105
105
|
return M(s, {
|
|
106
106
|
ref: t,
|
|
@@ -118,7 +118,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
118
118
|
flexItem: !0,
|
|
119
119
|
...n
|
|
120
120
|
});
|
|
121
|
-
})),
|
|
121
|
+
})), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
|
|
122
122
|
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
123
123
|
return M(t, {
|
|
124
124
|
sx: {
|
|
@@ -181,7 +181,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
181
181
|
]
|
|
182
182
|
})
|
|
183
183
|
});
|
|
184
|
-
}),
|
|
184
|
+
}), je = B((e) => {
|
|
185
185
|
const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
|
|
186
186
|
return M(t, {
|
|
187
187
|
sx: {
|
|
@@ -221,7 +221,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
221
221
|
})]
|
|
222
222
|
})
|
|
223
223
|
});
|
|
224
|
-
}),
|
|
224
|
+
}), Qe = B((e) => {
|
|
225
225
|
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
226
226
|
return M(t, {
|
|
227
227
|
sx: {
|
|
@@ -278,7 +278,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
278
278
|
]
|
|
279
279
|
})
|
|
280
280
|
});
|
|
281
|
-
}),
|
|
281
|
+
}), Ge = B((e) => {
|
|
282
282
|
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
283
283
|
return M(t, {
|
|
284
284
|
sx: {
|
|
@@ -342,7 +342,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
342
342
|
]
|
|
343
343
|
})
|
|
344
344
|
});
|
|
345
|
-
}),
|
|
345
|
+
}), Ue = B((e) => {
|
|
346
346
|
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
347
347
|
return M(t, {
|
|
348
348
|
sx: {
|
|
@@ -389,7 +389,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
389
389
|
})]
|
|
390
390
|
})
|
|
391
391
|
});
|
|
392
|
-
}),
|
|
392
|
+
}), Xe = B((e) => {
|
|
393
393
|
const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
|
|
394
394
|
return S(t, {
|
|
395
395
|
sx: {
|
|
@@ -403,7 +403,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
403
403
|
},
|
|
404
404
|
...r
|
|
405
405
|
},
|
|
406
|
-
className:
|
|
406
|
+
className: V(Ve, "animated-icon"),
|
|
407
407
|
...l,
|
|
408
408
|
children: [
|
|
409
409
|
M("div", { className: "primary" }),
|
|
@@ -412,8 +412,26 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
412
412
|
M("div", { className: "primary" })
|
|
413
413
|
]
|
|
414
414
|
});
|
|
415
|
-
}),
|
|
416
|
-
|
|
415
|
+
}), Ye = M(je, {}), _e = (e, t) => {
|
|
416
|
+
if (!e) return null;
|
|
417
|
+
if (void 0 !== t) {
|
|
418
|
+
const r = e.querySelector("[data-sxl-loading-label]");
|
|
419
|
+
r && (r.textContent = t);
|
|
420
|
+
}
|
|
421
|
+
if (e.classList.contains("animating")) return null;
|
|
422
|
+
e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
|
|
423
|
+
const r = "function" == typeof e.getAnimations ? e.getAnimations() : null;
|
|
424
|
+
return 0 === r?.length ? null : new Promise((e) => {
|
|
425
|
+
const t = setTimeout(e, 250), o = () => {
|
|
426
|
+
clearTimeout(t), e();
|
|
427
|
+
};
|
|
428
|
+
r ? Promise.all(r.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
|
|
429
|
+
});
|
|
430
|
+
}, Je = (e) => {
|
|
431
|
+
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
432
|
+
}, Ze = B($((e, r) => {
|
|
433
|
+
const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...f } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
|
|
434
|
+
"data-sxl-loading-label": "",
|
|
417
435
|
variant: "caption",
|
|
418
436
|
component: "div",
|
|
419
437
|
sx: {
|
|
@@ -421,10 +439,10 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
421
439
|
lineHeight: 1.43,
|
|
422
440
|
letterSpacing: "0.01071em"
|
|
423
441
|
},
|
|
424
|
-
children:
|
|
425
|
-
}) :
|
|
426
|
-
if ("number" != typeof
|
|
427
|
-
const e = Math.max(0, Math.min(100, Math.round(100 *
|
|
442
|
+
children: "string" == typeof m ? m : ""
|
|
443
|
+
}) : m, [m, c]), y = A(() => {
|
|
444
|
+
if ("number" != typeof h) return p;
|
|
445
|
+
const e = Math.max(0, Math.min(100, Math.round(100 * h)));
|
|
428
446
|
return M(t, {
|
|
429
447
|
sx: {
|
|
430
448
|
display: "flex",
|
|
@@ -452,7 +470,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
452
470
|
}
|
|
453
471
|
})
|
|
454
472
|
});
|
|
455
|
-
}, [
|
|
473
|
+
}, [h, p]), v = W(null), k = A(() => {
|
|
456
474
|
let e = S(t, {
|
|
457
475
|
sx: {
|
|
458
476
|
display: "flex",
|
|
@@ -460,9 +478,9 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
460
478
|
alignItems: "center",
|
|
461
479
|
rowGap: "8px"
|
|
462
480
|
},
|
|
463
|
-
children: [
|
|
481
|
+
children: [x, y]
|
|
464
482
|
});
|
|
465
|
-
return !0 === s && (e = M(
|
|
483
|
+
return !0 === s && (e = M(g, {
|
|
466
484
|
elevation: 0,
|
|
467
485
|
sx: {
|
|
468
486
|
display: "flex",
|
|
@@ -481,7 +499,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
481
499
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
482
500
|
boxShadow: (e) => e.shadows[2],
|
|
483
501
|
"& .primary": {
|
|
484
|
-
background: (e) => `${
|
|
502
|
+
background: (e) => `${q(e.palette.info.contrastText, .9)} !important`,
|
|
485
503
|
boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
|
|
486
504
|
boxSizing: "content-box",
|
|
487
505
|
border: "solid transparent"
|
|
@@ -490,8 +508,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
490
508
|
},
|
|
491
509
|
children: e
|
|
492
510
|
})), M(t, {
|
|
493
|
-
...
|
|
494
|
-
ref:
|
|
511
|
+
...f,
|
|
512
|
+
ref: we([v, r]),
|
|
495
513
|
className: "animatable",
|
|
496
514
|
sx: {
|
|
497
515
|
cursor: "wait",
|
|
@@ -501,7 +519,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
501
519
|
display: "flex",
|
|
502
520
|
flexDirection: "column",
|
|
503
521
|
willChange: "opacity",
|
|
504
|
-
|
|
522
|
+
"&:not(.animating) *": { animationPlayState: "paused" },
|
|
523
|
+
opacity: d ? .001 : 1,
|
|
505
524
|
transitionProperty: "opacity",
|
|
506
525
|
transitionDelay: l,
|
|
507
526
|
transitionDuration: "320ms",
|
|
@@ -514,6 +533,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
514
533
|
minHeight: 0,
|
|
515
534
|
zIndex: 99999,
|
|
516
535
|
"&.animating": { opacity: 1 },
|
|
536
|
+
"&.animating-idle": { transition: "none" },
|
|
517
537
|
"&.animating-exit": {
|
|
518
538
|
opacity: 0,
|
|
519
539
|
transition: "opacity 210ms"
|
|
@@ -536,8 +556,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
536
556
|
children: [M(t, {
|
|
537
557
|
className: "backdrop",
|
|
538
558
|
sx: {
|
|
539
|
-
opacity: (e) =>
|
|
540
|
-
background: (e) =>
|
|
559
|
+
opacity: (e) => d ? 1.5 * e.palette.action.disabledOpacity : void 0,
|
|
560
|
+
background: (e) => d ? void 0 : e.palette.background.paper,
|
|
541
561
|
backdropFilter: "blur(4px)",
|
|
542
562
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
543
563
|
zIndex: -1,
|
|
@@ -552,53 +572,40 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
552
572
|
}, [
|
|
553
573
|
o,
|
|
554
574
|
s,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
]),
|
|
558
|
-
return
|
|
559
|
-
if (
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
y.current && y.current.addEventListener("transitionrun", t, {
|
|
566
|
-
once: !0,
|
|
567
|
-
capture: !0,
|
|
568
|
-
passive: !0
|
|
569
|
-
}), w.current && y.current && (window.getComputedStyle(y.current, null).opacity, y.current.classList.add("animating")), setTimeout(() => {
|
|
570
|
-
!e && w.current && y.current && (y.current?.removeEventListener("transitionrun", t), t());
|
|
571
|
-
}, 100);
|
|
572
|
-
} else k.current = !0, w.current = !1, i?.();
|
|
573
|
-
return () => {};
|
|
574
|
-
}
|
|
575
|
-
}, [y.current]), N(() => () => {
|
|
576
|
-
k.current && (y.current?.classList.remove("animating"), k.current = !1, w.current = !1, a?.());
|
|
577
|
-
}, []), v;
|
|
575
|
+
x,
|
|
576
|
+
y
|
|
577
|
+
]), w = W(!1);
|
|
578
|
+
return Ce(() => {
|
|
579
|
+
if (!1 === c) return;
|
|
580
|
+
const e = v.current;
|
|
581
|
+
e && !w.current && (w.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
|
|
582
|
+
}, [v.current, c]), O(() => () => {
|
|
583
|
+
w.current && (v.current?.classList.remove("animating"), w.current = !1, a?.());
|
|
584
|
+
}, []), k;
|
|
578
585
|
}));
|
|
579
|
-
|
|
580
|
-
var
|
|
586
|
+
Ze.displayName = "AnimatedLoadingPanel";
|
|
587
|
+
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, rt = (e) => {
|
|
581
588
|
if (!e) return "";
|
|
582
589
|
try {
|
|
583
590
|
e = new URL(e).pathname;
|
|
584
591
|
} catch {}
|
|
585
592
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
586
|
-
},
|
|
587
|
-
const n =
|
|
593
|
+
}, ot = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
594
|
+
const n = ke(), [i, a] = H(null);
|
|
588
595
|
if (!e?.stack) return null;
|
|
589
|
-
const l =
|
|
596
|
+
const l = U.collectErrorChain(e).reverse(), s = [];
|
|
590
597
|
l.forEach(({ error: e }, t) => {
|
|
591
598
|
const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
592
|
-
let t = e.match(
|
|
599
|
+
let t = e.match(et);
|
|
593
600
|
if (t) {
|
|
594
601
|
const [, e = "", r, o, n, i] = t;
|
|
595
602
|
return {
|
|
596
603
|
line: `at ${e ? e + " " : ""}${r}`,
|
|
597
|
-
location: `${
|
|
604
|
+
location: `${rt(o).split(/[\\/]/).pop()}:${n}:${i}`
|
|
598
605
|
};
|
|
599
606
|
}
|
|
600
|
-
if (t = e.match(
|
|
601
|
-
const [, e = "", r, o, n] = t, i =
|
|
607
|
+
if (t = e.match(tt), t) {
|
|
608
|
+
const [, e = "", r, o, n] = t, i = rt(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
|
|
602
609
|
return {
|
|
603
610
|
line: `at ${e ? e + " " : ""}${a}`,
|
|
604
611
|
location: i !== a ? `${i}:${o}:${n}` : void 0
|
|
@@ -668,7 +675,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
668
675
|
"&:hover": { opacity: 1 }
|
|
669
676
|
},
|
|
670
677
|
title: n("stackTrace.copy"),
|
|
671
|
-
children: M(
|
|
678
|
+
children: M(Z, {
|
|
672
679
|
iconKey: "ContentCopy",
|
|
673
680
|
style: { fontSize: "0.875rem" }
|
|
674
681
|
})
|
|
@@ -684,7 +691,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
684
691
|
"&:hover": { opacity: 1 }
|
|
685
692
|
},
|
|
686
693
|
title: n("stackTrace.log"),
|
|
687
|
-
children: M(
|
|
694
|
+
children: M(Z, {
|
|
688
695
|
iconKey: "BugReport",
|
|
689
696
|
style: { fontSize: "0.875rem" }
|
|
690
697
|
})
|
|
@@ -783,19 +790,19 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
783
790
|
})]
|
|
784
791
|
});
|
|
785
792
|
});
|
|
786
|
-
|
|
787
|
-
var
|
|
788
|
-
const { sx: o, icon: n = M(
|
|
793
|
+
ot.displayName = "StackTrace";
|
|
794
|
+
var nt = B($((e, r) => {
|
|
795
|
+
const { sx: o, icon: n = M(Z, {
|
|
789
796
|
iconKey: "Error",
|
|
790
797
|
style: { fontSize: 48 }
|
|
791
|
-
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d =
|
|
798
|
+
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = ke(), p = A(() => it(i, a, l, s, d), [
|
|
792
799
|
i,
|
|
793
800
|
a,
|
|
794
801
|
l,
|
|
795
802
|
s,
|
|
796
803
|
d
|
|
797
804
|
]);
|
|
798
|
-
return
|
|
805
|
+
return A(() => M(t, {
|
|
799
806
|
ref: r,
|
|
800
807
|
sx: {
|
|
801
808
|
boxSizing: "border-box",
|
|
@@ -830,7 +837,7 @@ var Ye = B(D((e, r) => {
|
|
|
830
837
|
height: "100%",
|
|
831
838
|
boxSizing: "border-box"
|
|
832
839
|
}
|
|
833
|
-
}), M(
|
|
840
|
+
}), M(g, {
|
|
834
841
|
elevation: 0,
|
|
835
842
|
sx: {
|
|
836
843
|
display: "flex",
|
|
@@ -869,7 +876,7 @@ var Ye = B(D((e, r) => {
|
|
|
869
876
|
display: "flex",
|
|
870
877
|
color: (e) => e.palette.error.main
|
|
871
878
|
},
|
|
872
|
-
children: "string" == typeof n ? M(
|
|
879
|
+
children: "string" == typeof n ? M(Z, {
|
|
873
880
|
iconKey: n,
|
|
874
881
|
style: { fontSize: 48 }
|
|
875
882
|
}) : n
|
|
@@ -884,8 +891,8 @@ var Ye = B(D((e, r) => {
|
|
|
884
891
|
p
|
|
885
892
|
]);
|
|
886
893
|
}));
|
|
887
|
-
|
|
888
|
-
var
|
|
894
|
+
nt.displayName = "StackTraceErrorPanel";
|
|
895
|
+
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => z(e) ? e : e instanceof Error ? S(t, {
|
|
889
896
|
sx: {
|
|
890
897
|
display: "flex",
|
|
891
898
|
flexDirection: "column",
|
|
@@ -916,7 +923,7 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
916
923
|
},
|
|
917
924
|
children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
|
|
918
925
|
}) : null,
|
|
919
|
-
!r && M(
|
|
926
|
+
!r && M(ot, {
|
|
920
927
|
error: e,
|
|
921
928
|
hideLineNumbers: !0
|
|
922
929
|
})
|
|
@@ -930,8 +937,34 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
930
937
|
letterSpacing: "0.01071em"
|
|
931
938
|
},
|
|
932
939
|
children: "string" === e ? e : `Unknown Error: ${String(e)}`
|
|
933
|
-
}),
|
|
934
|
-
const {
|
|
940
|
+
}), at = B((e) => {
|
|
941
|
+
const { error: o, ...n } = e, i = ve(), a = ke();
|
|
942
|
+
return M(nt, {
|
|
943
|
+
hideStackTrace: !0,
|
|
944
|
+
error: S(t, {
|
|
945
|
+
sx: {
|
|
946
|
+
display: "flex",
|
|
947
|
+
flexDirection: "column",
|
|
948
|
+
alignItems: "flex-start",
|
|
949
|
+
gap: 1
|
|
950
|
+
},
|
|
951
|
+
children: [M(b, {
|
|
952
|
+
variant: "body2",
|
|
953
|
+
component: "div",
|
|
954
|
+
children: o instanceof Error ? o.message : String(o)
|
|
955
|
+
}), i ? M(r, {
|
|
956
|
+
variant: "outlined",
|
|
957
|
+
size: "small",
|
|
958
|
+
onClick: i,
|
|
959
|
+
children: a("lazyLoad.retry")
|
|
960
|
+
}) : null]
|
|
961
|
+
}),
|
|
962
|
+
...n
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
at.displayName = "LazyLoadErrorPanel";
|
|
966
|
+
var lt = B($((e, r) => {
|
|
967
|
+
const { chips: n, sx: i, ...a } = e, l = A(() => {
|
|
935
968
|
if (!n) return null;
|
|
936
969
|
const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
|
|
937
970
|
for (let n = 0; n < r; n++) {
|
|
@@ -942,7 +975,7 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
942
975
|
color: "primary",
|
|
943
976
|
size: "small",
|
|
944
977
|
sx: { scale: "0.8" }
|
|
945
|
-
}, "chip-" + n) :
|
|
978
|
+
}, "chip-" + n) : D(r, { key: "chip-" + n }), t.push(i);
|
|
946
979
|
}
|
|
947
980
|
return t;
|
|
948
981
|
}, [n]);
|
|
@@ -958,40 +991,33 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
958
991
|
...a,
|
|
959
992
|
children: l
|
|
960
993
|
});
|
|
961
|
-
})),
|
|
994
|
+
})), st = (e) => {
|
|
962
995
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
963
|
-
},
|
|
996
|
+
}, ct = (e = 1) => (t) => {
|
|
964
997
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
965
|
-
},
|
|
998
|
+
}, dt = (e) => M(Z, {
|
|
966
999
|
...e,
|
|
967
1000
|
iconKey: "ArrowDownOutline"
|
|
968
|
-
}),
|
|
1001
|
+
}), pt = (e) => M(Z, {
|
|
969
1002
|
...e,
|
|
970
1003
|
iconKey: "ArrowRightOutline"
|
|
971
|
-
}),
|
|
1004
|
+
}), ut = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, mt = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ht = function(e, t = null) {
|
|
972
1005
|
if (!e) return e;
|
|
973
|
-
e = e.replace(
|
|
1006
|
+
e = e.replace(ut, function(e, t, r, o) {
|
|
974
1007
|
return t + t + r + r + o + o;
|
|
975
1008
|
});
|
|
976
|
-
let r =
|
|
1009
|
+
let r = mt.exec(e);
|
|
977
1010
|
return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
|
|
978
|
-
},
|
|
1011
|
+
}, gt = function(e, t = .2, r = "light") {
|
|
979
1012
|
if (!e) return e;
|
|
980
1013
|
let o = "dark" !== r;
|
|
981
|
-
t < 0 && (o = !o, t *= -1), e =
|
|
1014
|
+
t < 0 && (o = !o, t *= -1), e = ht(e);
|
|
982
1015
|
try {
|
|
983
|
-
return o ?
|
|
1016
|
+
return o ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
984
1017
|
} catch {
|
|
985
1018
|
return e;
|
|
986
1019
|
}
|
|
987
|
-
},
|
|
988
|
-
let t = 0;
|
|
989
|
-
return t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, Number((t / 100).toFixed(2));
|
|
990
|
-
}, st = (e) => (t) => {
|
|
991
|
-
if ("dark" !== t.palette.mode) return "var(--sxl-surface-raised, none)";
|
|
992
|
-
const r = H("#fff", lt(e));
|
|
993
|
-
return `var(--sxl-surface-raised, linear-gradient(${r}, ${r}))`;
|
|
994
|
-
}, ct = st(2), dt = st(8), pt = (e, t) => {
|
|
1020
|
+
}, ft = (e, t) => {
|
|
995
1021
|
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
996
1022
|
const o = {
|
|
997
1023
|
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
@@ -1003,15 +1029,15 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1003
1029
|
palette: {
|
|
1004
1030
|
mode: e ? "dark" : "light",
|
|
1005
1031
|
text: {
|
|
1006
|
-
secondary: e ? r.palette.text.secondary :
|
|
1007
|
-
icon: e ?
|
|
1032
|
+
secondary: e ? r.palette.text.secondary : q(r.palette.text.secondary, .75),
|
|
1033
|
+
icon: e ? q(r.palette.text.secondary, .7) : q(r.palette.text.primary, .75)
|
|
1008
1034
|
}
|
|
1009
1035
|
},
|
|
1010
1036
|
components: {
|
|
1011
1037
|
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1012
1038
|
MuiSelect: {
|
|
1013
1039
|
defaultProps: {
|
|
1014
|
-
IconComponent:
|
|
1040
|
+
IconComponent: dt,
|
|
1015
1041
|
MenuProps: { container: () => document.fullscreenElement }
|
|
1016
1042
|
},
|
|
1017
1043
|
styleOverrides: { icon: { top: "unset" } }
|
|
@@ -1069,7 +1095,7 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1069
1095
|
MuiInputBase: { styleOverrides: { root: {} } },
|
|
1070
1096
|
MuiPaper: { styleOverrides: { root: {
|
|
1071
1097
|
...o,
|
|
1072
|
-
backgroundImage: "
|
|
1098
|
+
backgroundImage: "none"
|
|
1073
1099
|
} } },
|
|
1074
1100
|
MuiPopover: { styleOverrides: { paper: {
|
|
1075
1101
|
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
|
|
@@ -1096,17 +1122,17 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1096
1122
|
} }
|
|
1097
1123
|
}
|
|
1098
1124
|
}, i = n;
|
|
1099
|
-
return t && (i =
|
|
1125
|
+
return t && (i = Se(n, t)), v(i);
|
|
1100
1126
|
};
|
|
1101
|
-
function
|
|
1102
|
-
return t =
|
|
1103
|
-
track:
|
|
1104
|
-
thumb:
|
|
1127
|
+
function xt(e, t) {
|
|
1128
|
+
return t = Se({
|
|
1129
|
+
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1130
|
+
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
1105
1131
|
active: e.palette.primary.main,
|
|
1106
1132
|
corner: e.palette.background.paper,
|
|
1107
1133
|
outline: !1
|
|
1108
|
-
}, t || {}),
|
|
1109
|
-
track:
|
|
1134
|
+
}, t || {}), de({
|
|
1135
|
+
track: q(t.track, .2),
|
|
1110
1136
|
thumb: t.thumb,
|
|
1111
1137
|
button: t.button,
|
|
1112
1138
|
active: t.active,
|
|
@@ -1114,8 +1140,8 @@ function ut(e, t) {
|
|
|
1114
1140
|
border: t.track
|
|
1115
1141
|
});
|
|
1116
1142
|
}
|
|
1117
|
-
function
|
|
1118
|
-
const r =
|
|
1143
|
+
function bt(e, t) {
|
|
1144
|
+
const r = xt(e, t), o = {
|
|
1119
1145
|
...r,
|
|
1120
1146
|
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1121
1147
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
@@ -1156,22 +1182,22 @@ function mt(e, t) {
|
|
|
1156
1182
|
},
|
|
1157
1183
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1158
1184
|
};
|
|
1159
|
-
return
|
|
1185
|
+
return G.getPlatform() === G.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
|
|
1160
1186
|
}
|
|
1161
|
-
var
|
|
1187
|
+
var yt = {
|
|
1162
1188
|
Popup: "popup",
|
|
1163
1189
|
Anchor: "anchor"
|
|
1164
|
-
},
|
|
1190
|
+
}, vt = {
|
|
1165
1191
|
ByPopup: "popupDone",
|
|
1166
1192
|
Cancel: "popupCancel",
|
|
1167
1193
|
ClickAway: "clickAway"
|
|
1168
|
-
},
|
|
1194
|
+
}, kt = {
|
|
1169
1195
|
Toolbar: "toolbar",
|
|
1170
1196
|
Menuitem: "menuitem"
|
|
1171
|
-
},
|
|
1197
|
+
}, wt = (e) => {
|
|
1172
1198
|
const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
|
|
1173
1199
|
return M(t, {
|
|
1174
|
-
className:
|
|
1200
|
+
className: V("menu", l),
|
|
1175
1201
|
sx: {
|
|
1176
1202
|
display: "flex",
|
|
1177
1203
|
flexDirection: "column",
|
|
@@ -1182,9 +1208,9 @@ var ht = {
|
|
|
1182
1208
|
...c,
|
|
1183
1209
|
children: a
|
|
1184
1210
|
});
|
|
1185
|
-
},
|
|
1211
|
+
}, Ct = (e, t, r) => {
|
|
1186
1212
|
let o = "";
|
|
1187
|
-
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(
|
|
1213
|
+
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(dt, {
|
|
1188
1214
|
style: {
|
|
1189
1215
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1190
1216
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
@@ -1192,17 +1218,17 @@ var ht = {
|
|
|
1192
1218
|
},
|
|
1193
1219
|
color: "inherit"
|
|
1194
1220
|
});
|
|
1195
|
-
},
|
|
1196
|
-
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l =
|
|
1221
|
+
}, Mt = B($((e, t) => {
|
|
1222
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = wt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: f, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), k = ue(m ?? (() => {}), [m]), [w, C] = H(), S = W(null), P = ue((e, t) => {
|
|
1197
1223
|
C(e), c?.(S.current, t);
|
|
1198
|
-
}, [c]),
|
|
1224
|
+
}, [c]), T = A(() => {
|
|
1199
1225
|
const e = {
|
|
1200
1226
|
popupContainer: w,
|
|
1201
1227
|
floatReference: a,
|
|
1202
1228
|
children: h,
|
|
1203
1229
|
...x
|
|
1204
1230
|
}, t = l(e);
|
|
1205
|
-
return M(
|
|
1231
|
+
return M(g, {
|
|
1206
1232
|
elevation: 8,
|
|
1207
1233
|
ref: S,
|
|
1208
1234
|
sx: {
|
|
@@ -1212,7 +1238,7 @@ var ht = {
|
|
|
1212
1238
|
outline: "none",
|
|
1213
1239
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1214
1240
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
1215
|
-
"&.MuiPaper-root": (e) =>
|
|
1241
|
+
"&.MuiPaper-root": (e) => bt(e)
|
|
1216
1242
|
},
|
|
1217
1243
|
tabIndex: 0,
|
|
1218
1244
|
children: t
|
|
@@ -1223,35 +1249,35 @@ var ht = {
|
|
|
1223
1249
|
w,
|
|
1224
1250
|
a
|
|
1225
1251
|
]);
|
|
1226
|
-
return M(
|
|
1252
|
+
return M(ee, {
|
|
1227
1253
|
ref: t,
|
|
1228
1254
|
anchorEl: o,
|
|
1229
1255
|
anchorPosition: n,
|
|
1230
1256
|
label: i,
|
|
1231
1257
|
open: r,
|
|
1232
|
-
onMount:
|
|
1258
|
+
onMount: P,
|
|
1233
1259
|
onOpening: v,
|
|
1234
1260
|
onOpen: k,
|
|
1235
1261
|
onClosing: b,
|
|
1236
1262
|
onClose: y,
|
|
1237
1263
|
...s,
|
|
1238
|
-
children:
|
|
1264
|
+
children: T
|
|
1239
1265
|
});
|
|
1240
1266
|
}));
|
|
1241
|
-
|
|
1242
|
-
var
|
|
1243
|
-
renderFloatPanel:
|
|
1244
|
-
createPopupPanel:
|
|
1267
|
+
Mt.displayName = "ExhibitFloatPanel";
|
|
1268
|
+
var St = (e) => M(Mt, { ...e }), Pt = (e) => M(te, {
|
|
1269
|
+
renderFloatPanel: St,
|
|
1270
|
+
createPopupPanel: wt,
|
|
1245
1271
|
...e
|
|
1246
|
-
}),
|
|
1272
|
+
}), Tt = B($((e, r) => {
|
|
1247
1273
|
const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
|
|
1248
1274
|
disabled: i,
|
|
1249
|
-
createPopupPanel:
|
|
1275
|
+
createPopupPanel: ue((e) => {
|
|
1250
1276
|
if (!o || 0 === o.length) return M(C, {});
|
|
1251
1277
|
const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1252
1278
|
for (let e = 0; e < o.length; e++) {
|
|
1253
1279
|
const t = o[e];
|
|
1254
|
-
t && s.push(M(
|
|
1280
|
+
t && s.push(M(Tt, {
|
|
1255
1281
|
...l,
|
|
1256
1282
|
...t
|
|
1257
1283
|
}, e));
|
|
@@ -1267,23 +1293,23 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1267
1293
|
children: [
|
|
1268
1294
|
"Children here",
|
|
1269
1295
|
s,
|
|
1270
|
-
M(
|
|
1296
|
+
M(Kt, { children: "Close other children" })
|
|
1271
1297
|
]
|
|
1272
1298
|
});
|
|
1273
1299
|
}, [o]),
|
|
1274
1300
|
...l
|
|
1275
1301
|
};
|
|
1276
|
-
return M(n ===
|
|
1277
|
-
})),
|
|
1278
|
-
const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a =
|
|
1279
|
-
|
|
1280
|
-
const c = r, d =
|
|
1302
|
+
return M(n === kt.Toolbar ? Ht : jt, { ...s });
|
|
1303
|
+
})), Rt = { placement: "right-start" }, Dt = B($((e, t) => {
|
|
1304
|
+
const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = Rt, label: l, ...s } = e;
|
|
1305
|
+
Pe(z(r), "Must supply a child component to enable a context menu.");
|
|
1306
|
+
const c = r, d = A(() => ({
|
|
1281
1307
|
...c?.props,
|
|
1282
1308
|
...s,
|
|
1283
1309
|
onContextMenu: (e) => {
|
|
1284
1310
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1285
1311
|
}
|
|
1286
|
-
}), [s, c?.props]), p =
|
|
1312
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: g } = fe({
|
|
1287
1313
|
label: l ?? "contextMenu",
|
|
1288
1314
|
propsPopper: a,
|
|
1289
1315
|
parentFloat: n,
|
|
@@ -1291,11 +1317,11 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1291
1317
|
onClose: () => m(null),
|
|
1292
1318
|
createPopupPanel: p
|
|
1293
1319
|
});
|
|
1294
|
-
return
|
|
1320
|
+
return O(() => {
|
|
1295
1321
|
u ? h.open(0) : h.close(0);
|
|
1296
|
-
}, [u]), S(C, { children: [
|
|
1297
|
-
})),
|
|
1298
|
-
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } =
|
|
1322
|
+
}, [u]), S(C, { children: [D(r, d), g] });
|
|
1323
|
+
})), It = $((e, t) => {
|
|
1324
|
+
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1299
1325
|
return M(x, {
|
|
1300
1326
|
ref: t,
|
|
1301
1327
|
slotProps: {
|
|
@@ -1308,8 +1334,8 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1308
1334
|
...o
|
|
1309
1335
|
});
|
|
1310
1336
|
});
|
|
1311
|
-
|
|
1312
|
-
var
|
|
1337
|
+
It.displayName = "SimpleTooltip";
|
|
1338
|
+
var $t = B((e) => {
|
|
1313
1339
|
const { modifier: r, sx: o, ...n } = e;
|
|
1314
1340
|
return M(t, {
|
|
1315
1341
|
sx: {
|
|
@@ -1321,11 +1347,11 @@ var Tt = B((e) => {
|
|
|
1321
1347
|
borderLeftWidth: "1px",
|
|
1322
1348
|
borderRightWidth: "1px",
|
|
1323
1349
|
borderBottomWidth: "2px",
|
|
1324
|
-
borderTopColor: (e) =>
|
|
1325
|
-
borderLeftColor: (e) =>
|
|
1326
|
-
borderRightColor: (e) =>
|
|
1327
|
-
borderBottomColor: (e) =>
|
|
1328
|
-
backgroundColor: (e) =>
|
|
1350
|
+
borderTopColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1351
|
+
borderLeftColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1352
|
+
borderRightColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1353
|
+
borderBottomColor: (e) => q(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
|
|
1354
|
+
backgroundColor: (e) => q(e.palette.action.hover, e.palette.action.disabledOpacity),
|
|
1329
1355
|
paddingLeft: "4px",
|
|
1330
1356
|
paddingRight: "4px",
|
|
1331
1357
|
minHeight: "1.6em",
|
|
@@ -1348,10 +1374,10 @@ var Tt = B((e) => {
|
|
|
1348
1374
|
children: r
|
|
1349
1375
|
})
|
|
1350
1376
|
});
|
|
1351
|
-
}),
|
|
1377
|
+
}), zt = (e, r, o = !1, n = null) => {
|
|
1352
1378
|
if (Array.isArray(e)) {
|
|
1353
1379
|
let i = [], a = e;
|
|
1354
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1380
|
+
for (let e = 0; e < a.length; e++) i.push(zt(a[e], r, o, n ?? "" + e));
|
|
1355
1381
|
return M(t, {
|
|
1356
1382
|
sx: {
|
|
1357
1383
|
display: "flex",
|
|
@@ -1364,34 +1390,34 @@ var Tt = B((e) => {
|
|
|
1364
1390
|
if (!e?.key) return null;
|
|
1365
1391
|
const i = {};
|
|
1366
1392
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1367
|
-
const a = [], l =
|
|
1368
|
-
return i?.[
|
|
1393
|
+
const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
|
|
1394
|
+
return i?.[ne.Ctrl] && (a.push(M($t, { modifier: o ? "^" : M("div", {
|
|
1369
1395
|
style: { paddingRight: "1px" },
|
|
1370
1396
|
children: l
|
|
1371
|
-
}) }, "ctrl")), a.push("+")), i?.[
|
|
1397
|
+
}) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M($t, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M($t, { modifier: o ? "⇧" : M("div", {
|
|
1372
1398
|
style: { paddingRight: "1px" },
|
|
1373
1399
|
children: r("shortcut.modifier.shift")
|
|
1374
|
-
}) }, "shift")), a.push("+")), i?.[
|
|
1400
|
+
}) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M($t, { modifier: o ? M("div", {
|
|
1375
1401
|
style: { paddingTop: "1px" },
|
|
1376
1402
|
children: "⌘"
|
|
1377
|
-
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(
|
|
1403
|
+
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M($t, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1378
1404
|
sx: {
|
|
1379
1405
|
display: "flex",
|
|
1380
1406
|
alignItems: "center"
|
|
1381
1407
|
},
|
|
1382
1408
|
children: a
|
|
1383
1409
|
}, n);
|
|
1384
|
-
},
|
|
1385
|
-
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e,
|
|
1386
|
-
let
|
|
1387
|
-
i && (
|
|
1388
|
-
const [x, y] =
|
|
1389
|
-
|
|
1410
|
+
}, Bt = B($((e, r) => {
|
|
1411
|
+
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, g = ke();
|
|
1412
|
+
let f = null;
|
|
1413
|
+
i && (f = zt(i, g, c));
|
|
1414
|
+
const [x, y] = H(null);
|
|
1415
|
+
O(() => {
|
|
1390
1416
|
Promise.resolve(n).then((e) => {
|
|
1391
1417
|
y(e);
|
|
1392
1418
|
});
|
|
1393
1419
|
}, [n]);
|
|
1394
|
-
return M(
|
|
1420
|
+
return M(It, {
|
|
1395
1421
|
slotProps: { popper: {
|
|
1396
1422
|
sx: {
|
|
1397
1423
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1420,9 +1446,9 @@ var Tt = B((e) => {
|
|
|
1420
1446
|
sx: { flex: "1 1 100%" },
|
|
1421
1447
|
children: x
|
|
1422
1448
|
}),
|
|
1423
|
-
a ? M(
|
|
1424
|
-
|
|
1425
|
-
|
|
1449
|
+
a ? M(lt, { chips: a }) : null,
|
|
1450
|
+
f ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1451
|
+
f
|
|
1426
1452
|
]
|
|
1427
1453
|
}), l ? M(b, {
|
|
1428
1454
|
variant: "caption",
|
|
@@ -1447,8 +1473,8 @@ var Tt = B((e) => {
|
|
|
1447
1473
|
children: d
|
|
1448
1474
|
})
|
|
1449
1475
|
});
|
|
1450
|
-
})),
|
|
1451
|
-
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus:
|
|
1476
|
+
})), Lt = M(Z, {}), Nt = M(Z, { iconKey: "Check" }), Ot = B($((e, r) => {
|
|
1477
|
+
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: g, onBlur: f, ...x } = e, [b, y] = H(!1), v = {
|
|
1452
1478
|
marginRight: "0px",
|
|
1453
1479
|
padding: o ? "2px" : "7px",
|
|
1454
1480
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1456,7 +1482,7 @@ var Tt = B((e) => {
|
|
|
1456
1482
|
border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
|
|
1457
1483
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1458
1484
|
"&.Mui-selected": {
|
|
1459
|
-
backgroundColor: (e) =>
|
|
1485
|
+
backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1460
1486
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1461
1487
|
},
|
|
1462
1488
|
"&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
|
|
@@ -1473,7 +1499,7 @@ var Tt = B((e) => {
|
|
|
1473
1499
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1474
1500
|
color: (e) => e.palette.text.primary,
|
|
1475
1501
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1476
|
-
"&.Mui-selected": { backgroundColor: (e) =>
|
|
1502
|
+
"&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1477
1503
|
"> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1478
1504
|
backgroundColor: null
|
|
1479
1505
|
},
|
|
@@ -1484,24 +1510,24 @@ var Tt = B((e) => {
|
|
|
1484
1510
|
}
|
|
1485
1511
|
};
|
|
1486
1512
|
let w = v;
|
|
1487
|
-
i || (w =
|
|
1488
|
-
const C =
|
|
1513
|
+
i || (w = G.mergeContentful(v, k));
|
|
1514
|
+
const C = A(() => {
|
|
1489
1515
|
let e = "function" == typeof l ? l() : l;
|
|
1490
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1516
|
+
return null === e ? e : e || (void 0 === a ? Lt : Nt);
|
|
1491
1517
|
}, [l, a]);
|
|
1492
|
-
let
|
|
1518
|
+
let P = S(d, {
|
|
1493
1519
|
component: "div",
|
|
1494
1520
|
ref: r,
|
|
1495
|
-
className:
|
|
1521
|
+
className: V({
|
|
1496
1522
|
"Mui-focusVisible": b,
|
|
1497
1523
|
"Mui-selected": a,
|
|
1498
1524
|
"Mui-disabled": m
|
|
1499
1525
|
}, h),
|
|
1500
1526
|
onFocus: (e) => {
|
|
1501
|
-
y(!0),
|
|
1527
|
+
y(!0), g?.(e);
|
|
1502
1528
|
},
|
|
1503
1529
|
onBlur: (e) => {
|
|
1504
|
-
y(!1),
|
|
1530
|
+
y(!1), f?.(e);
|
|
1505
1531
|
},
|
|
1506
1532
|
size: "small",
|
|
1507
1533
|
TouchRippleProps: { center: !1 },
|
|
@@ -1513,29 +1539,34 @@ var Tt = B((e) => {
|
|
|
1513
1539
|
});
|
|
1514
1540
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1515
1541
|
const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
|
|
1516
|
-
|
|
1542
|
+
P = M(It, {
|
|
1517
1543
|
disableInteractive: !0,
|
|
1518
1544
|
title: e ?? "",
|
|
1519
1545
|
...p,
|
|
1520
1546
|
children: M(t, {
|
|
1521
1547
|
sx: { display: "flex" },
|
|
1522
|
-
children:
|
|
1548
|
+
children: P
|
|
1523
1549
|
})
|
|
1524
1550
|
});
|
|
1525
|
-
} else
|
|
1526
|
-
children:
|
|
1551
|
+
} else P = M(Bt, {
|
|
1552
|
+
children: P,
|
|
1527
1553
|
...s
|
|
1528
1554
|
});
|
|
1529
|
-
return
|
|
1530
|
-
})),
|
|
1531
|
-
|
|
1555
|
+
return P;
|
|
1556
|
+
})), Et = M(Z, {}), Ft = {
|
|
1557
|
+
marginLeft: "4px",
|
|
1558
|
+
marginRight: "4px",
|
|
1559
|
+
paddingLeft: "6px",
|
|
1560
|
+
paddingRight: "18px"
|
|
1561
|
+
}, At = (e) => e.icon, Kt = B($((e, t) => {
|
|
1562
|
+
const { icon: r = Et, renderIcon: o = At, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: g, propsTooltip: f, chips: x, primary: b, ...y } = e, v = ge(), [k, w] = H(!1), [C, P] = H(!1), T = A(() => {
|
|
1532
1563
|
const e = o?.({
|
|
1533
1564
|
icon: r,
|
|
1534
1565
|
disabled: p,
|
|
1535
1566
|
selected: a
|
|
1536
1567
|
});
|
|
1537
1568
|
return e ? M(h, {
|
|
1538
|
-
className:
|
|
1569
|
+
className: V({
|
|
1539
1570
|
"Mui-focusVisible": k,
|
|
1540
1571
|
"Mui-hovered": C
|
|
1541
1572
|
}),
|
|
@@ -1559,16 +1590,16 @@ var Tt = B((e) => {
|
|
|
1559
1590
|
role: "menuitem",
|
|
1560
1591
|
disabled: p,
|
|
1561
1592
|
onMouseOver: (e) => {
|
|
1562
|
-
s?.(e), e.isDefaultPrevented() ||
|
|
1593
|
+
s?.(e), e.isDefaultPrevented() || P(!0);
|
|
1563
1594
|
},
|
|
1564
1595
|
onMouseOut: (e) => {
|
|
1565
|
-
c?.(e), e.isDefaultPrevented() ||
|
|
1596
|
+
c?.(e), e.isDefaultPrevented() || P(!1);
|
|
1566
1597
|
},
|
|
1567
1598
|
onMouseEnter: (e) => {
|
|
1568
1599
|
d?.(e), e.isDefaultPrevented() || v?.closeChild();
|
|
1569
1600
|
},
|
|
1570
1601
|
TouchRippleProps: { center: !1 },
|
|
1571
|
-
className:
|
|
1602
|
+
className: V({
|
|
1572
1603
|
"Mui-focusVisible": k,
|
|
1573
1604
|
"Mui-hovered": C
|
|
1574
1605
|
}, n),
|
|
@@ -1585,10 +1616,7 @@ var Tt = B((e) => {
|
|
|
1585
1616
|
lineHeight: 1.5,
|
|
1586
1617
|
paddingTop: "2px",
|
|
1587
1618
|
paddingBottom: "2px",
|
|
1588
|
-
|
|
1589
|
-
marginRight: "4px",
|
|
1590
|
-
paddingLeft: "6px",
|
|
1591
|
-
paddingRight: "18px",
|
|
1619
|
+
...Ft,
|
|
1592
1620
|
borderRadius: "4px",
|
|
1593
1621
|
fontSize: "0.875em",
|
|
1594
1622
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1596,21 +1624,21 @@ var Tt = B((e) => {
|
|
|
1596
1624
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1597
1625
|
color: (e) => e.palette.text.secondary,
|
|
1598
1626
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1599
|
-
...
|
|
1627
|
+
...g
|
|
1600
1628
|
},
|
|
1601
1629
|
...y,
|
|
1602
1630
|
children: [
|
|
1603
|
-
|
|
1631
|
+
T,
|
|
1604
1632
|
u,
|
|
1605
|
-
x ? M(
|
|
1633
|
+
x ? M(lt, { chips: x }) : null
|
|
1606
1634
|
]
|
|
1607
1635
|
});
|
|
1608
|
-
return
|
|
1636
|
+
return f && (R = M(Bt, {
|
|
1609
1637
|
children: R,
|
|
1610
1638
|
placement: "right-start",
|
|
1611
|
-
...
|
|
1639
|
+
...f
|
|
1612
1640
|
})), R;
|
|
1613
|
-
})),
|
|
1641
|
+
})), Wt = B($((e, t) => {
|
|
1614
1642
|
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
1615
1643
|
return M(C, { children: M(b, {
|
|
1616
1644
|
ref: t,
|
|
@@ -1628,8 +1656,8 @@ var Tt = B((e) => {
|
|
|
1628
1656
|
...a,
|
|
1629
1657
|
children: r
|
|
1630
1658
|
}) });
|
|
1631
|
-
})),
|
|
1632
|
-
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton:
|
|
1659
|
+
})), Ht = B($((e, r) => {
|
|
1660
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: g, renderQuickButton: f, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: w = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = k(), L = A(() => {
|
|
1633
1661
|
const e = (e, t, r, o = r) => {
|
|
1634
1662
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1635
1663
|
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
@@ -1640,11 +1668,11 @@ var Tt = B((e) => {
|
|
|
1640
1668
|
hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
|
|
1641
1669
|
focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
|
|
1642
1670
|
},
|
|
1643
|
-
active: "dark" ===
|
|
1644
|
-
text:
|
|
1671
|
+
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1672
|
+
text: B.palette.text.icon ?? B.palette.action.active
|
|
1645
1673
|
};
|
|
1646
|
-
}, [n,
|
|
1647
|
-
anchor:
|
|
1674
|
+
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = fe({
|
|
1675
|
+
anchor: Q.current,
|
|
1648
1676
|
label: i,
|
|
1649
1677
|
createPopupPanel: p,
|
|
1650
1678
|
parentFloat: c,
|
|
@@ -1655,30 +1683,30 @@ var Tt = B((e) => {
|
|
|
1655
1683
|
onOpen: () => {
|
|
1656
1684
|
O(!0), m?.();
|
|
1657
1685
|
}
|
|
1658
|
-
}), Y =
|
|
1686
|
+
}), Y = ue((e) => {
|
|
1659
1687
|
s?.(e), X.reference.close(0);
|
|
1660
|
-
}, [s, X]), _ =
|
|
1661
|
-
|
|
1688
|
+
}, [s, X]), _ = ue(() => {
|
|
1689
|
+
N ? X.reference.close(0) : X.reference.open(0);
|
|
1662
1690
|
}, [
|
|
1663
|
-
|
|
1691
|
+
N,
|
|
1664
1692
|
X,
|
|
1665
1693
|
c,
|
|
1666
1694
|
i
|
|
1667
|
-
]), J =
|
|
1695
|
+
]), J = A(() => {
|
|
1668
1696
|
const e = {
|
|
1669
1697
|
"&.bordered": {
|
|
1670
1698
|
borderWidth: "1px",
|
|
1671
1699
|
borderRadius: "0px",
|
|
1672
1700
|
borderTopStyle: "solid",
|
|
1673
1701
|
borderBottomStyle: "solid",
|
|
1674
|
-
borderColor: (e) =>
|
|
1675
|
-
"&.Mui-focusVisible": { border: (e) => `1px solid ${
|
|
1702
|
+
borderColor: (e) => L.outline.color(e),
|
|
1703
|
+
"&.Mui-focusVisible": { border: (e) => `1px solid ${L.outline.focusColor(e)} !important` },
|
|
1676
1704
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1677
|
-
borderColor: () =>
|
|
1678
|
-
backgroundColor: () =>
|
|
1705
|
+
borderColor: () => P ? "transparent" : void 0,
|
|
1706
|
+
backgroundColor: () => P ? "transparent" : void 0
|
|
1679
1707
|
},
|
|
1680
|
-
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) =>
|
|
1681
|
-
"&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) =>
|
|
1708
|
+
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
|
|
1709
|
+
"&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
|
|
1682
1710
|
"&.left": {
|
|
1683
1711
|
borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1684
1712
|
borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1687,7 +1715,7 @@ var Tt = B((e) => {
|
|
|
1687
1715
|
"&.hard-right": {
|
|
1688
1716
|
borderRightStyle: "solid",
|
|
1689
1717
|
borderRightWidth: "1px",
|
|
1690
|
-
borderRightColor: (e) =>
|
|
1718
|
+
borderRightColor: (e) => L.outline.color(e)
|
|
1691
1719
|
},
|
|
1692
1720
|
"&.right": {
|
|
1693
1721
|
borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1698,22 +1726,22 @@ var Tt = B((e) => {
|
|
|
1698
1726
|
},
|
|
1699
1727
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
|
|
1700
1728
|
}, t = { "&.Mui-selected": {
|
|
1701
|
-
backgroundColor: (e) =>
|
|
1729
|
+
backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1702
1730
|
"&:hover:not(.Mui-disabled)": {
|
|
1703
|
-
backgroundColor: (e) =>
|
|
1704
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1731
|
+
backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1732
|
+
"@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1705
1733
|
}
|
|
1706
1734
|
} }, r = {
|
|
1707
1735
|
maxHeight: "100%",
|
|
1708
1736
|
"&.Mui-selected": {
|
|
1709
|
-
backgroundColor: (e) =>
|
|
1737
|
+
backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
1710
1738
|
"&:hover:not(.Mui-disabled)": {
|
|
1711
|
-
backgroundColor: (e) =>
|
|
1712
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1739
|
+
backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1740
|
+
"@media (hover: none)": { backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
|
|
1713
1741
|
}
|
|
1714
1742
|
},
|
|
1715
1743
|
"&:hover:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1716
|
-
backgroundColor: () =>
|
|
1744
|
+
backgroundColor: () => P ? "transparent" : void 0,
|
|
1717
1745
|
color: (e) => e.palette.text.icon,
|
|
1718
1746
|
"&.Mui-disabled > .icon path": {
|
|
1719
1747
|
filter: "grayscale(65%)",
|
|
@@ -1721,45 +1749,45 @@ var Tt = B((e) => {
|
|
|
1721
1749
|
},
|
|
1722
1750
|
padding: () => o ? "2px 3px" : "7px",
|
|
1723
1751
|
marginRight: "0"
|
|
1724
|
-
}, n =
|
|
1752
|
+
}, n = G.mergeContentful(r, e), i = G.mergeContentful(n, t), a = G.mergeContentful(r, e);
|
|
1725
1753
|
return {
|
|
1726
1754
|
quickButtonStyling: n,
|
|
1727
1755
|
openQuickButtonStyling: i,
|
|
1728
1756
|
compoundStyling: a,
|
|
1729
|
-
openCompoundStyling:
|
|
1757
|
+
openCompoundStyling: G.mergeContentful(a, t)
|
|
1730
1758
|
};
|
|
1731
|
-
}, [
|
|
1759
|
+
}, [L, P]), Z = ue((e) => {
|
|
1732
1760
|
const { children: t, ref: r, ...o } = e;
|
|
1733
|
-
return M(
|
|
1761
|
+
return M(It, {
|
|
1734
1762
|
ref: r,
|
|
1735
1763
|
...o,
|
|
1736
1764
|
disableInteractive: !0,
|
|
1737
1765
|
children: t
|
|
1738
1766
|
});
|
|
1739
|
-
}, []),
|
|
1767
|
+
}, []), ee = s || f, te = ee && (g?.tooltip || g?.createTooltip), re = (e) => {
|
|
1740
1768
|
const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
|
|
1741
1769
|
let i = M(d, {
|
|
1742
1770
|
sx: { ...o },
|
|
1743
1771
|
component: "div",
|
|
1744
1772
|
...n
|
|
1745
1773
|
});
|
|
1746
|
-
return
|
|
1747
|
-
title:
|
|
1774
|
+
return te ? (i = (r ?? Z)({
|
|
1775
|
+
title: N ? "" : t ?? x,
|
|
1748
1776
|
children: M("div", { children: i })
|
|
1749
|
-
},
|
|
1777
|
+
}, N), i) : i;
|
|
1750
1778
|
}, ne = { onKeyDown: (e) => {
|
|
1751
|
-
e.keyCode ===
|
|
1779
|
+
e.keyCode === oe.Space ? _() : e.keyCode === oe.F4 || e.keyCode === oe.Down ? X.reference.open(0) : e.keyCode === oe.Up && X.reference.close(0);
|
|
1752
1780
|
} };
|
|
1753
1781
|
let ie = M(C, {});
|
|
1754
|
-
const ae =
|
|
1782
|
+
const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Vt : null), a ? i : null), [
|
|
1755
1783
|
y,
|
|
1756
1784
|
i,
|
|
1757
1785
|
a,
|
|
1758
|
-
|
|
1786
|
+
ee
|
|
1759
1787
|
]);
|
|
1760
|
-
if (
|
|
1761
|
-
let e =
|
|
1762
|
-
const t = (
|
|
1788
|
+
if (ee) {
|
|
1789
|
+
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1790
|
+
const t = (f || re)({
|
|
1763
1791
|
tabIndex: -1,
|
|
1764
1792
|
disabled: v,
|
|
1765
1793
|
size: "small",
|
|
@@ -1770,36 +1798,36 @@ var Tt = B((e) => {
|
|
|
1770
1798
|
onMouseDown: (e) => {
|
|
1771
1799
|
0 === e.button && (e.preventDefault(), Y(e));
|
|
1772
1800
|
},
|
|
1773
|
-
disableRipple: !!
|
|
1774
|
-
children: S(C, { children: [ae,
|
|
1775
|
-
...
|
|
1776
|
-
className:
|
|
1777
|
-
"Mui-focusVisible":
|
|
1801
|
+
disableRipple: !!T,
|
|
1802
|
+
children: S(C, { children: [ae, T] }),
|
|
1803
|
+
...g,
|
|
1804
|
+
className: V({
|
|
1805
|
+
"Mui-focusVisible": E || N,
|
|
1778
1806
|
"Mui-selected": l,
|
|
1779
|
-
"Mui-hovered":
|
|
1807
|
+
"Mui-hovered": K || N,
|
|
1780
1808
|
"Mui-disabled": v,
|
|
1781
1809
|
bordered: !0,
|
|
1782
1810
|
left: !0,
|
|
1783
1811
|
"hard-right": !0
|
|
1784
|
-
},
|
|
1812
|
+
}, g?.className),
|
|
1785
1813
|
sx: {
|
|
1786
1814
|
...J.quickButtonStyling,
|
|
1787
1815
|
height: "100%",
|
|
1788
|
-
...
|
|
1816
|
+
...g?.sx
|
|
1789
1817
|
}
|
|
1790
1818
|
});
|
|
1791
|
-
let r =
|
|
1792
|
-
|
|
1793
|
-
title:
|
|
1819
|
+
let r = Ct(!0, o, N);
|
|
1820
|
+
te && (r = (b ?? Z)({
|
|
1821
|
+
title: N ? "" : x,
|
|
1794
1822
|
children: r
|
|
1795
|
-
},
|
|
1796
|
-
ref:
|
|
1823
|
+
}, N)), ie = S(C, { children: [t, M(d, {
|
|
1824
|
+
ref: U,
|
|
1797
1825
|
component: "div",
|
|
1798
|
-
className:
|
|
1799
|
-
"Mui-selected":
|
|
1800
|
-
"Mui-hovered":
|
|
1826
|
+
className: V({
|
|
1827
|
+
"Mui-selected": N,
|
|
1828
|
+
"Mui-hovered": K || N,
|
|
1801
1829
|
"Mui-disabled": v,
|
|
1802
|
-
"Mui-focusVisible":
|
|
1830
|
+
"Mui-focusVisible": E || N,
|
|
1803
1831
|
bordered: !0,
|
|
1804
1832
|
right: !0,
|
|
1805
1833
|
divider: !0
|
|
@@ -1822,46 +1850,47 @@ var Tt = B((e) => {
|
|
|
1822
1850
|
children: r
|
|
1823
1851
|
})] });
|
|
1824
1852
|
} else {
|
|
1825
|
-
let e =
|
|
1826
|
-
ie = M(
|
|
1827
|
-
ref:
|
|
1853
|
+
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
1854
|
+
ie = M(Ot, {
|
|
1855
|
+
ref: U,
|
|
1828
1856
|
tabIndex: -1,
|
|
1829
1857
|
disabled: v,
|
|
1830
1858
|
size: "small",
|
|
1831
1859
|
icon: ae,
|
|
1832
|
-
className:
|
|
1833
|
-
"Mui-selected":
|
|
1834
|
-
"Mui-hovered":
|
|
1860
|
+
className: V({
|
|
1861
|
+
"Mui-selected": N || l,
|
|
1862
|
+
"Mui-hovered": K,
|
|
1835
1863
|
"Mui-disabled": v,
|
|
1836
|
-
"Mui-focusVisible":
|
|
1864
|
+
"Mui-focusVisible": E || N,
|
|
1837
1865
|
bordered: !0,
|
|
1838
1866
|
left: !0,
|
|
1839
1867
|
right: !0
|
|
1840
1868
|
}),
|
|
1841
1869
|
sx: {
|
|
1870
|
+
flex: "1 1 auto",
|
|
1842
1871
|
...J.quickButtonStyling,
|
|
1843
1872
|
...e
|
|
1844
1873
|
},
|
|
1845
1874
|
onMouseDown: (e) => {
|
|
1846
1875
|
0 === e.button && (e.preventDefault(), _());
|
|
1847
1876
|
},
|
|
1848
|
-
children:
|
|
1877
|
+
children: Ct(!1, o, N)
|
|
1849
1878
|
});
|
|
1850
1879
|
}
|
|
1851
|
-
const { className:
|
|
1852
|
-
let
|
|
1853
|
-
onFocus: () =>
|
|
1854
|
-
onBlur: () =>
|
|
1855
|
-
onMouseOver: () =>
|
|
1856
|
-
onMouseOut: () =>
|
|
1880
|
+
const { className: le, sx: se, ...ce } = w;
|
|
1881
|
+
let de = M(t, {
|
|
1882
|
+
onFocus: () => F(!0),
|
|
1883
|
+
onBlur: () => F(!1),
|
|
1884
|
+
onMouseOver: () => j(!0),
|
|
1885
|
+
onMouseOut: () => j(!1),
|
|
1857
1886
|
...ne,
|
|
1858
1887
|
"aria-label": "split button",
|
|
1859
|
-
ref:
|
|
1888
|
+
ref: Q,
|
|
1860
1889
|
tabIndex: v ? void 0 : 0,
|
|
1861
|
-
className:
|
|
1862
|
-
"Mui-focusVisible":
|
|
1863
|
-
"Mui-selected":
|
|
1864
|
-
"Mui-hovered":
|
|
1890
|
+
className: V(le, "split-button-root", {
|
|
1891
|
+
"Mui-focusVisible": E || N,
|
|
1892
|
+
"Mui-selected": N || l,
|
|
1893
|
+
"Mui-hovered": K,
|
|
1865
1894
|
"Mui-disabled": v
|
|
1866
1895
|
}),
|
|
1867
1896
|
sx: {
|
|
@@ -1877,30 +1906,30 @@ var Tt = B((e) => {
|
|
|
1877
1906
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1878
1907
|
zIndex: 2
|
|
1879
1908
|
},
|
|
1880
|
-
...
|
|
1909
|
+
...se
|
|
1881
1910
|
},
|
|
1882
|
-
...
|
|
1911
|
+
...ce,
|
|
1883
1912
|
children: ie
|
|
1884
1913
|
});
|
|
1885
|
-
return
|
|
1886
|
-
title:
|
|
1887
|
-
children:
|
|
1888
|
-
},
|
|
1889
|
-
className:
|
|
1914
|
+
return te || (de = (b ?? Z)({
|
|
1915
|
+
title: N ? "" : x,
|
|
1916
|
+
children: de
|
|
1917
|
+
}, N)), S(t, {
|
|
1918
|
+
className: V($, "popupIconButton"),
|
|
1890
1919
|
ref: r,
|
|
1891
|
-
...
|
|
1920
|
+
...z,
|
|
1892
1921
|
sx: {
|
|
1893
|
-
zIndex:
|
|
1922
|
+
zIndex: E || N ? 2 : void 0,
|
|
1894
1923
|
display: "flex",
|
|
1895
1924
|
alignItems: "center",
|
|
1896
|
-
|
|
1925
|
+
...I
|
|
1897
1926
|
},
|
|
1898
|
-
children: [
|
|
1927
|
+
children: [de, X.component]
|
|
1899
1928
|
});
|
|
1900
1929
|
}));
|
|
1901
|
-
|
|
1902
|
-
var
|
|
1903
|
-
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d =
|
|
1930
|
+
Ht.displayName = "ExhibitPopupIconButton";
|
|
1931
|
+
var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
1932
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = qt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: g, tooltip: f = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: k, children: w, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
|
|
1904
1933
|
if (!d) return;
|
|
1905
1934
|
const { propsPopper: e } = d;
|
|
1906
1935
|
return {
|
|
@@ -1908,54 +1937,54 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1908
1937
|
offsets: [-4, -2],
|
|
1909
1938
|
...e
|
|
1910
1939
|
};
|
|
1911
|
-
}, [d]), q =
|
|
1912
|
-
anchor:
|
|
1940
|
+
}, [d]), q = fe({
|
|
1941
|
+
anchor: E.current,
|
|
1913
1942
|
label: n,
|
|
1914
1943
|
createPopupPanel: c,
|
|
1915
1944
|
parentFloat: l,
|
|
1916
|
-
propsPopper:
|
|
1945
|
+
propsPopper: K,
|
|
1917
1946
|
onClose: () => {
|
|
1918
1947
|
D(!1), u?.();
|
|
1919
1948
|
},
|
|
1920
1949
|
onOpen: () => {
|
|
1921
1950
|
D(!0), p?.();
|
|
1922
1951
|
}
|
|
1923
|
-
}), j =
|
|
1952
|
+
}), j = ue((e) => {
|
|
1924
1953
|
0 === e.button && (a?.(e), q.reference.close(0));
|
|
1925
|
-
}, [a]), Q = M(
|
|
1954
|
+
}, [a]), Q = M(pt, {}), G = { "&.Mui-selected": {
|
|
1926
1955
|
color: (e) => e.palette.text.primary,
|
|
1927
1956
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1928
|
-
} },
|
|
1957
|
+
} }, U = L((e) => {
|
|
1929
1958
|
const { children: t, ref: r, ...o } = e;
|
|
1930
|
-
return M(
|
|
1959
|
+
return M(It, {
|
|
1931
1960
|
ref: r,
|
|
1932
1961
|
...o,
|
|
1933
1962
|
disableInteractive: !0,
|
|
1934
1963
|
children: t
|
|
1935
1964
|
});
|
|
1936
|
-
}, []), X = a ||
|
|
1965
|
+
}, []), X = a || g, Y = (e) => {
|
|
1937
1966
|
const { tooltip: t, createTooltip: r, ...o } = e;
|
|
1938
|
-
return S(
|
|
1967
|
+
return S(Kt, {
|
|
1939
1968
|
icon: b,
|
|
1940
1969
|
disableRipple: !!v,
|
|
1941
|
-
className:
|
|
1970
|
+
className: V({ "Mui-hovered": z }),
|
|
1942
1971
|
sx: {
|
|
1943
1972
|
flex: "1 1 100%",
|
|
1944
|
-
...
|
|
1973
|
+
...G
|
|
1945
1974
|
},
|
|
1946
1975
|
...o,
|
|
1947
1976
|
children: [n, v]
|
|
1948
1977
|
});
|
|
1949
1978
|
}, _ = {
|
|
1950
1979
|
onFocus: () => {
|
|
1951
|
-
|
|
1980
|
+
$(!0);
|
|
1952
1981
|
},
|
|
1953
|
-
onBlur: () =>
|
|
1982
|
+
onBlur: () => $(!1),
|
|
1954
1983
|
onMouseOver: () => {
|
|
1955
|
-
|
|
1984
|
+
B(!0);
|
|
1956
1985
|
},
|
|
1957
1986
|
onMouseLeave: () => {
|
|
1958
|
-
|
|
1987
|
+
B(!1);
|
|
1959
1988
|
},
|
|
1960
1989
|
onMouseEnter: (e) => {
|
|
1961
1990
|
e.preventDefault(), q.reference.open();
|
|
@@ -1975,11 +2004,11 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1975
2004
|
onMouseDown: (e) => {
|
|
1976
2005
|
0 === e.button && (e.preventDefault(), j(e));
|
|
1977
2006
|
},
|
|
1978
|
-
className:
|
|
2007
|
+
className: V("quick-left", {}, h?.className),
|
|
1979
2008
|
...h
|
|
1980
2009
|
};
|
|
1981
2010
|
J = S(C, { children: [
|
|
1982
|
-
(
|
|
2011
|
+
(g || Y)(e),
|
|
1983
2012
|
M(s, {
|
|
1984
2013
|
sx: {
|
|
1985
2014
|
ml: "0px",
|
|
@@ -1990,10 +2019,10 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1990
2019
|
flexItem: !0
|
|
1991
2020
|
}),
|
|
1992
2021
|
M(m, {
|
|
1993
|
-
ref:
|
|
1994
|
-
className:
|
|
2022
|
+
ref: F,
|
|
2023
|
+
className: V({
|
|
1995
2024
|
"Mui-selected": R,
|
|
1996
|
-
"Mui-hovered":
|
|
2025
|
+
"Mui-hovered": z
|
|
1997
2026
|
}),
|
|
1998
2027
|
sx: {
|
|
1999
2028
|
borderTopLeftRadius: "0px",
|
|
@@ -2007,7 +2036,7 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2007
2036
|
marginRight: "6px",
|
|
2008
2037
|
color: (e) => k ? void 0 : e.palette.text.secondary,
|
|
2009
2038
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
2010
|
-
...
|
|
2039
|
+
...G
|
|
2011
2040
|
},
|
|
2012
2041
|
tabIndex: -1,
|
|
2013
2042
|
disabled: y,
|
|
@@ -2035,19 +2064,19 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2035
2064
|
})
|
|
2036
2065
|
})
|
|
2037
2066
|
] });
|
|
2038
|
-
} else J = S(
|
|
2039
|
-
ref:
|
|
2067
|
+
} else J = S(Kt, {
|
|
2068
|
+
ref: F,
|
|
2040
2069
|
tabIndex: -1,
|
|
2041
2070
|
disabled: y,
|
|
2042
2071
|
icon: b,
|
|
2043
|
-
className:
|
|
2072
|
+
className: V({
|
|
2044
2073
|
"Mui-selected": R || o,
|
|
2045
|
-
"Mui-hovered":
|
|
2074
|
+
"Mui-hovered": z
|
|
2046
2075
|
}),
|
|
2047
2076
|
sx: {
|
|
2048
2077
|
flex: "1 1 100%",
|
|
2049
2078
|
paddingRight: "0px",
|
|
2050
|
-
...
|
|
2079
|
+
...G
|
|
2051
2080
|
},
|
|
2052
2081
|
onClick: (e) => {
|
|
2053
2082
|
e.preventDefault(), R ? q.reference.close() : q.reference.open();
|
|
@@ -2068,13 +2097,13 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2068
2097
|
});
|
|
2069
2098
|
let Z = M(t, {
|
|
2070
2099
|
"aria-label": "split button",
|
|
2071
|
-
ref:
|
|
2100
|
+
ref: E,
|
|
2072
2101
|
tabIndex: y ? void 0 : 0,
|
|
2073
|
-
className:
|
|
2102
|
+
className: V({
|
|
2074
2103
|
"Mui-disabled": y,
|
|
2075
2104
|
"Mui-selected": R,
|
|
2076
|
-
"Mui-focusVisible":
|
|
2077
|
-
"Mui-hovered":
|
|
2105
|
+
"Mui-focusVisible": I || R,
|
|
2106
|
+
"Mui-hovered": z
|
|
2078
2107
|
}),
|
|
2079
2108
|
sx: {
|
|
2080
2109
|
display: "flex",
|
|
@@ -2087,18 +2116,18 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2087
2116
|
marginRight: "-1px"
|
|
2088
2117
|
},
|
|
2089
2118
|
"&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
|
|
2090
|
-
...
|
|
2119
|
+
...P
|
|
2091
2120
|
},
|
|
2092
|
-
...
|
|
2121
|
+
...T,
|
|
2093
2122
|
children: J
|
|
2094
2123
|
});
|
|
2095
|
-
return X && !
|
|
2124
|
+
return X && !N && (h?.tooltip || h?.createTooltip) && (Z = (h?.createTooltip ?? U)({
|
|
2096
2125
|
title: R ? "" : Z ?? h?.tooltip,
|
|
2097
2126
|
children: Z
|
|
2098
2127
|
}, R)), S(t, {
|
|
2099
2128
|
ref: r,
|
|
2100
2129
|
sx: {
|
|
2101
|
-
zIndex:
|
|
2130
|
+
zIndex: I || R ? 2 : void 0,
|
|
2102
2131
|
display: "flex",
|
|
2103
2132
|
" .tooltip-wrapper": {
|
|
2104
2133
|
display: "flex",
|
|
@@ -2107,12 +2136,12 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2107
2136
|
},
|
|
2108
2137
|
children: [Z, q.component]
|
|
2109
2138
|
});
|
|
2110
|
-
})),
|
|
2139
|
+
})), Qt = B($((e, t) => {
|
|
2111
2140
|
const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2112
|
-
return M(
|
|
2141
|
+
return M(Bt, {
|
|
2113
2142
|
label: n,
|
|
2114
2143
|
shortcut: i,
|
|
2115
|
-
children: M(
|
|
2144
|
+
children: M(Ot, {
|
|
2116
2145
|
ref: t,
|
|
2117
2146
|
outlined: !1,
|
|
2118
2147
|
tabIndex: a,
|
|
@@ -2126,26 +2155,27 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2126
2155
|
...s
|
|
2127
2156
|
})
|
|
2128
2157
|
});
|
|
2129
|
-
})),
|
|
2130
|
-
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s =
|
|
2158
|
+
})), Gt = M(Z, {}), Ut = M(Z, { iconKey: "Check" }), Xt = B($((e, r) => {
|
|
2159
|
+
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2131
2160
|
display: "flex",
|
|
2132
2161
|
border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2133
2162
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
2134
2163
|
backgroundColor: (e) => {
|
|
2135
|
-
if (n) return
|
|
2164
|
+
if (n) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
2136
2165
|
},
|
|
2137
2166
|
...a
|
|
2138
2167
|
}), [a]);
|
|
2139
2168
|
let c = o;
|
|
2140
|
-
return null === c && (c =
|
|
2169
|
+
return null === c && (c = Gt), c || (c = Ut), M(t, {
|
|
2141
2170
|
ref: r,
|
|
2142
2171
|
sx: s,
|
|
2143
2172
|
...l,
|
|
2144
2173
|
children: c
|
|
2145
2174
|
});
|
|
2146
|
-
})),
|
|
2175
|
+
})), Yt = {
|
|
2147
2176
|
"dialog.cancel": "Cancel",
|
|
2148
2177
|
"dialog.ok": "Ok",
|
|
2178
|
+
"lazyLoad.retry": "Retry",
|
|
2149
2179
|
"overflow.more": "More",
|
|
2150
2180
|
"overflow.moreDescription": "More toolbar options…",
|
|
2151
2181
|
"scroll.edgeBottom": " Bottom: ''Ctrl+Click'' to scroll to the end",
|
|
@@ -2164,22 +2194,36 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2164
2194
|
"stackTrace.log": "Log error to console",
|
|
2165
2195
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2166
2196
|
"window.close": "Close"
|
|
2167
|
-
}, { DefaultCommandCatalogService:
|
|
2168
|
-
function
|
|
2169
|
-
|
|
2197
|
+
}, { DefaultCommandCatalogService: _t } = Y, Jt = !1;
|
|
2198
|
+
function Zt() {
|
|
2199
|
+
Jt || (Jt = !0, _t.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Yt }));
|
|
2170
2200
|
}
|
|
2171
|
-
|
|
2172
|
-
var
|
|
2173
|
-
|
|
2174
|
-
|
|
2201
|
+
Zt();
|
|
2202
|
+
var er = {
|
|
2203
|
+
inline: null,
|
|
2204
|
+
popup: []
|
|
2205
|
+
}, tr = B($((e, r) => {
|
|
2206
|
+
const { children: o, sx: n, ...i } = e, a = ke(), l = ye(r, () => ({}), []), [s, c] = Me(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, g] = H(null), [f, x] = H(null), b = f?.popup ?? null, y = W(0), [v, k] = H(!1), w = W(!1), C = ge(), T = W(C);
|
|
2207
|
+
T.current = C;
|
|
2208
|
+
const R = L(() => {
|
|
2209
|
+
T.current?.closeChild(0);
|
|
2210
|
+
}, []), I = L(() => {
|
|
2211
|
+
w.current = !0, k(!0);
|
|
2212
|
+
}, []), $ = L(() => {
|
|
2213
|
+
w.current = !1, k(!1);
|
|
2214
|
+
}, []), z = W(null), B = W(/* @__PURE__ */ new Map()), N = L(() => {
|
|
2215
|
+
B.current.clear(), x(null), m();
|
|
2175
2216
|
}, []);
|
|
2176
|
-
|
|
2217
|
+
F(() => {
|
|
2177
2218
|
p.current = { refs: [] };
|
|
2178
|
-
const e = [], r =
|
|
2219
|
+
const e = [], r = P.toArray(o);
|
|
2179
2220
|
let n = 0;
|
|
2180
2221
|
r.forEach((o, i) => {
|
|
2181
2222
|
e.push(M(t, {
|
|
2182
|
-
sx: {
|
|
2223
|
+
sx: {
|
|
2224
|
+
display: "flex",
|
|
2225
|
+
flex: "0 0 auto"
|
|
2226
|
+
},
|
|
2183
2227
|
ref: (e) => {
|
|
2184
2228
|
n++, n === r.length && m();
|
|
2185
2229
|
const t = { current: null };
|
|
@@ -2187,24 +2231,24 @@ var Gt = B(D((e, r) => {
|
|
|
2187
2231
|
},
|
|
2188
2232
|
children: o
|
|
2189
2233
|
}, i));
|
|
2190
|
-
}),
|
|
2191
|
-
}, [o, c]),
|
|
2234
|
+
}), g(e);
|
|
2235
|
+
}, [o, c]), F(() => {
|
|
2192
2236
|
if (!h) return;
|
|
2193
2237
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2194
|
-
if (!l.current || 0 === t) return
|
|
2238
|
+
if (!l.current || 0 === t) return void x(null);
|
|
2195
2239
|
const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
|
|
2196
|
-
let r =
|
|
2197
|
-
r ? r.disconnect() : r =
|
|
2240
|
+
let r = z.current;
|
|
2241
|
+
r ? r.disconnect() : r = z.current = new ResizeObserver((e) => {
|
|
2198
2242
|
for (let t = 0; t < e.length; t++) {
|
|
2199
2243
|
const r = e[t].target;
|
|
2200
2244
|
if (!r.isConnected) continue;
|
|
2201
|
-
const o =
|
|
2202
|
-
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void
|
|
2245
|
+
const o = B.current.get(r);
|
|
2246
|
+
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
|
|
2203
2247
|
}
|
|
2204
|
-
}),
|
|
2248
|
+
}), B.current.clear();
|
|
2205
2249
|
for (let o = 0; o < t; o++) {
|
|
2206
2250
|
const t = e[o]?.current;
|
|
2207
|
-
t && (
|
|
2251
|
+
t && (B.current.set(t, t.getBoundingClientRect().width), r.observe(t));
|
|
2208
2252
|
}
|
|
2209
2253
|
};
|
|
2210
2254
|
let a = 0, s = !1;
|
|
@@ -2218,40 +2262,45 @@ var Gt = B(D((e, r) => {
|
|
|
2218
2262
|
const n = t.current.getBoundingClientRect();
|
|
2219
2263
|
a += n?.width, a > r.width && (s = !0);
|
|
2220
2264
|
}
|
|
2221
|
-
if (!s) return i(),
|
|
2265
|
+
if (!s) return i(), w.current && R(), void x(er);
|
|
2222
2266
|
const c = d.current?.getBoundingClientRect();
|
|
2267
|
+
c?.width && (y.current = c.width);
|
|
2268
|
+
const u = r.width - y.current;
|
|
2223
2269
|
a = 0;
|
|
2224
|
-
for (let
|
|
2225
|
-
const t = e[
|
|
2226
|
-
let
|
|
2270
|
+
for (let r = 0; r < t; r++) {
|
|
2271
|
+
const t = e[r];
|
|
2272
|
+
let i = !1;
|
|
2227
2273
|
if (t.current) {
|
|
2228
2274
|
const e = t.current.getBoundingClientRect();
|
|
2229
|
-
a += e?.width, a
|
|
2275
|
+
a += e?.width, a <= u && (i = !0);
|
|
2230
2276
|
}
|
|
2231
|
-
|
|
2277
|
+
i ? o.push(h[r]) : n.push(h[r]);
|
|
2232
2278
|
}
|
|
2233
|
-
i(), x(
|
|
2279
|
+
i(), x({
|
|
2280
|
+
inline: o,
|
|
2281
|
+
popup: n
|
|
2282
|
+
});
|
|
2234
2283
|
}, [
|
|
2235
2284
|
o,
|
|
2236
2285
|
h,
|
|
2237
2286
|
c,
|
|
2238
2287
|
u
|
|
2239
|
-
]),
|
|
2240
|
-
|
|
2288
|
+
]), F(() => () => {
|
|
2289
|
+
z.current?.disconnect(), z.current = null;
|
|
2241
2290
|
}, []);
|
|
2242
|
-
const
|
|
2291
|
+
const O = L((e) => {
|
|
2243
2292
|
const r = [], o = b?.length ?? 0;
|
|
2244
2293
|
for (let e = 0; e < o; e++) {
|
|
2245
|
-
const t =
|
|
2246
|
-
|
|
2247
|
-
const n = t, i =
|
|
2294
|
+
const t = P.toArray(b[e])[0];
|
|
2295
|
+
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2296
|
+
const n = t, i = D(n, {
|
|
2248
2297
|
...n.props,
|
|
2249
2298
|
key: `overflow-${e}-${o}${n.key ?? ""}`
|
|
2250
2299
|
});
|
|
2251
2300
|
r.push(i);
|
|
2252
2301
|
});
|
|
2253
2302
|
}
|
|
2254
|
-
return
|
|
2303
|
+
return wt({
|
|
2255
2304
|
...e,
|
|
2256
2305
|
children: M(t, {
|
|
2257
2306
|
className: "overflow-palette-popup-panel",
|
|
@@ -2275,12 +2324,15 @@ var Gt = B(D((e, r) => {
|
|
|
2275
2324
|
sx: {
|
|
2276
2325
|
display: "flex",
|
|
2277
2326
|
flexDirection: "row",
|
|
2327
|
+
flexWrap: "nowrap",
|
|
2278
2328
|
flex: "1 1 100%",
|
|
2279
2329
|
width: "100%",
|
|
2280
2330
|
maxWidth: "100%",
|
|
2331
|
+
minWidth: 0,
|
|
2332
|
+
overflow: "hidden",
|
|
2281
2333
|
...n
|
|
2282
2334
|
},
|
|
2283
|
-
ref:
|
|
2335
|
+
ref: we([
|
|
2284
2336
|
l,
|
|
2285
2337
|
s,
|
|
2286
2338
|
r
|
|
@@ -2290,41 +2342,65 @@ var Gt = B(D((e, r) => {
|
|
|
2290
2342
|
sx: {
|
|
2291
2343
|
flexDirection: "row",
|
|
2292
2344
|
display: "flex",
|
|
2345
|
+
flexWrap: "nowrap",
|
|
2293
2346
|
maxWidth: "100%",
|
|
2294
2347
|
flex: "1 1 100%",
|
|
2348
|
+
minWidth: 0,
|
|
2349
|
+
overflow: "hidden",
|
|
2295
2350
|
alignItems: "center"
|
|
2296
2351
|
},
|
|
2297
|
-
children:
|
|
2352
|
+
children: f?.inline ?? h
|
|
2298
2353
|
}), M(t, {
|
|
2299
2354
|
className: "overflow-palette-popup-button",
|
|
2300
2355
|
sx: {
|
|
2301
|
-
display: null
|
|
2302
|
-
flex: "
|
|
2356
|
+
display: v || null === b || 0 !== b.length ? "flex" : "none",
|
|
2357
|
+
flex: "0 0 auto",
|
|
2358
|
+
alignItems: "center"
|
|
2303
2359
|
},
|
|
2304
|
-
children: M(
|
|
2305
|
-
createPopupPanel:
|
|
2360
|
+
children: M(Ht, {
|
|
2361
|
+
createPopupPanel: O,
|
|
2306
2362
|
ref: d,
|
|
2307
|
-
|
|
2363
|
+
onPopupOpen: I,
|
|
2364
|
+
onPopupClose: $,
|
|
2365
|
+
createTooltip: ({ children: e }, t) => M(Bt, {
|
|
2308
2366
|
label: a("overflow.more"),
|
|
2309
2367
|
description: a("overflow.moreDescription"),
|
|
2310
2368
|
disabled: t,
|
|
2311
2369
|
children: e
|
|
2312
2370
|
}),
|
|
2313
|
-
icon: M(
|
|
2371
|
+
icon: M(Z, { iconKey: "MoreHorizontal" })
|
|
2314
2372
|
})
|
|
2315
2373
|
})]
|
|
2316
2374
|
});
|
|
2317
|
-
}))
|
|
2318
|
-
|
|
2319
|
-
|
|
2375
|
+
})), rr = I(void 0), or = ({ error: e }) => {
|
|
2376
|
+
const t = N(rr);
|
|
2377
|
+
return O(() => {
|
|
2378
|
+
t?.(e);
|
|
2379
|
+
}, [e]), null;
|
|
2380
|
+
};
|
|
2381
|
+
function nr(e) {
|
|
2382
|
+
const t = pe(e, { renderError: (e) => M(or, { error: e }) });
|
|
2383
|
+
return (e) => {
|
|
2384
|
+
const { onLoadError: r, ...o } = e;
|
|
2385
|
+
return M(rr.Provider, {
|
|
2386
|
+
value: r,
|
|
2387
|
+
children: M(R, {
|
|
2388
|
+
fallback: null,
|
|
2389
|
+
children: M(t, { ...o })
|
|
2390
|
+
})
|
|
2391
|
+
});
|
|
2392
|
+
};
|
|
2393
|
+
}
|
|
2394
|
+
function ir(e) {
|
|
2395
|
+
const [t, r] = H(() => /* @__PURE__ */ new Map()), o = W(null);
|
|
2320
2396
|
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2321
|
-
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } =
|
|
2397
|
+
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2322
2398
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2323
2399
|
let h = !1;
|
|
2324
2400
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
2325
|
-
let
|
|
2326
|
-
if (void 0 !== d?.prewarm && (
|
|
2327
|
-
const
|
|
2401
|
+
let g = !1;
|
|
2402
|
+
if (void 0 !== d?.prewarm && (g = d.prewarm, delete (d = { ...d }).prewarm, g && (h = !0)), g && t.get(s)) return void u(t.get(s).element);
|
|
2403
|
+
const f = {
|
|
2328
2404
|
...e,
|
|
2329
2405
|
...d,
|
|
2330
2406
|
...p,
|
|
@@ -2347,15 +2423,19 @@ function Xt(e) {
|
|
|
2347
2423
|
}), t;
|
|
2348
2424
|
}), u(e);
|
|
2349
2425
|
},
|
|
2426
|
+
onLoadError: (e) => {
|
|
2427
|
+
const o = t.get(s);
|
|
2428
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
|
|
2429
|
+
},
|
|
2350
2430
|
disableAutoDestroy: h,
|
|
2351
2431
|
revealToken: 0,
|
|
2352
|
-
startHidden:
|
|
2432
|
+
startHidden: g,
|
|
2353
2433
|
open: !0
|
|
2354
2434
|
}, x = t.get(s);
|
|
2355
2435
|
if (x) {
|
|
2356
2436
|
const e = (x.revealToken ?? 0) + 1;
|
|
2357
2437
|
i(x.id, {
|
|
2358
|
-
...
|
|
2438
|
+
...f,
|
|
2359
2439
|
revealToken: e
|
|
2360
2440
|
}), r((t) => {
|
|
2361
2441
|
const r = t.get(s);
|
|
@@ -2368,31 +2448,31 @@ function Xt(e) {
|
|
|
2368
2448
|
}
|
|
2369
2449
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2370
2450
|
let b = o.current.get(s);
|
|
2371
|
-
b || (b =
|
|
2372
|
-
const y = n(b,
|
|
2451
|
+
b || (b = nr(c), o.current.set(s, b));
|
|
2452
|
+
const y = n(b, f, { destroyOnClose: !h });
|
|
2373
2453
|
r((e) => (e.set(s, {
|
|
2374
2454
|
id: y.id,
|
|
2375
2455
|
element: null,
|
|
2376
2456
|
revealToken: 0
|
|
2377
|
-
}), e)),
|
|
2457
|
+
}), e)), g && u(null);
|
|
2378
2458
|
});
|
|
2379
2459
|
}
|
|
2380
|
-
|
|
2381
|
-
var
|
|
2460
|
+
Zt();
|
|
2461
|
+
var ar = {
|
|
2382
2462
|
x: 0,
|
|
2383
2463
|
y: 0
|
|
2384
|
-
},
|
|
2385
|
-
const { defaultPosition: r =
|
|
2464
|
+
}, lr = B($((e, t) => {
|
|
2465
|
+
const { defaultPosition: r = ar, PaperComponent: o = g, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2386
2466
|
left: 0,
|
|
2387
2467
|
top: 0,
|
|
2388
2468
|
right: s.width - l.width,
|
|
2389
2469
|
bottom: s.height - l.height
|
|
2390
|
-
} : null, [l, s]), [u, m] =
|
|
2391
|
-
return M(
|
|
2470
|
+
} : null, [l, s]), [u, m] = H(null), [h, f] = H(null), x = u ?? r ?? null;
|
|
2471
|
+
return M(Ie, {
|
|
2392
2472
|
nodeRef: d,
|
|
2393
2473
|
handle: a,
|
|
2394
2474
|
cancel: "[class*=\"MuiDialogContent-root\"]",
|
|
2395
|
-
position:
|
|
2475
|
+
position: A(() => x && p ? {
|
|
2396
2476
|
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2397
2477
|
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2398
2478
|
} : x, [x, p]) ?? void 0,
|
|
@@ -2401,7 +2481,7 @@ var Yt = {
|
|
|
2401
2481
|
onStop: n,
|
|
2402
2482
|
onStart: (e, t) => {
|
|
2403
2483
|
const r = e;
|
|
2404
|
-
|
|
2484
|
+
f({
|
|
2405
2485
|
x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
|
|
2406
2486
|
y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
|
|
2407
2487
|
});
|
|
@@ -2416,130 +2496,132 @@ var Yt = {
|
|
|
2416
2496
|
});
|
|
2417
2497
|
},
|
|
2418
2498
|
children: M(o, {
|
|
2419
|
-
ref:
|
|
2499
|
+
ref: we([d, t]),
|
|
2420
2500
|
...c
|
|
2421
2501
|
})
|
|
2422
2502
|
});
|
|
2423
|
-
})),
|
|
2503
|
+
})), sr = {
|
|
2424
2504
|
x: "50",
|
|
2425
2505
|
y: "50"
|
|
2426
|
-
},
|
|
2506
|
+
}, cr = B($((r, o) => {
|
|
2427
2507
|
const n = w({
|
|
2428
2508
|
props: r,
|
|
2429
2509
|
name: "MuiDialog"
|
|
2430
|
-
}), i = k(), a =
|
|
2510
|
+
}), i = k(), a = ke(), s = {
|
|
2431
2511
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2432
2512
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2433
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown:
|
|
2434
|
-
let
|
|
2435
|
-
const
|
|
2436
|
-
let
|
|
2437
|
-
R && (
|
|
2513
|
+
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: f, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = sr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
|
|
2514
|
+
let Y = D.transition ?? c;
|
|
2515
|
+
const _ = D.backdrop ?? e, J = D.paper ?? g;
|
|
2516
|
+
let ee = I.transition;
|
|
2517
|
+
R && (ee = {
|
|
2438
2518
|
...R,
|
|
2439
|
-
...
|
|
2519
|
+
...ee
|
|
2440
2520
|
});
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2443
|
-
|
|
2521
|
+
const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = Me(), ge = W(null), fe = W(null), [ve, Ce] = Me(), Se = W(null), Pe = E(), Te = W(null);
|
|
2522
|
+
F(() => {
|
|
2523
|
+
if (!ne || U) return;
|
|
2524
|
+
const e = !!v;
|
|
2525
|
+
Te.current !== e && (Te.current = e, le(e));
|
|
2444
2526
|
}, [
|
|
2445
2527
|
v,
|
|
2446
2528
|
ne,
|
|
2447
|
-
|
|
2529
|
+
U
|
|
2448
2530
|
]);
|
|
2449
|
-
const Re =
|
|
2450
|
-
u?.(),
|
|
2531
|
+
const Re = ue(() => {
|
|
2532
|
+
u?.(), le(!1);
|
|
2451
2533
|
}, [u]);
|
|
2452
|
-
|
|
2534
|
+
F(() => {
|
|
2453
2535
|
if (ne) return;
|
|
2454
|
-
const e =
|
|
2536
|
+
const e = ge.current, t = Se.current;
|
|
2455
2537
|
if (!e || !t) return;
|
|
2456
2538
|
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2457
2539
|
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
2458
2540
|
const n = r.height - o.height, i = r.width - o.width;
|
|
2459
2541
|
let a = .5 * i, l = .5 * n;
|
|
2460
|
-
"number" == typeof
|
|
2542
|
+
"number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l = n * (parseFloat(L.y) / 100)), ie({
|
|
2461
2543
|
x: a,
|
|
2462
2544
|
y: l
|
|
2463
2545
|
});
|
|
2464
2546
|
});
|
|
2465
|
-
const [
|
|
2466
|
-
if (
|
|
2547
|
+
const [Ie, $e] = H(!1), [ze, Be] = H(null), [Le, Ne] = H(null), Oe = ue((e) => {
|
|
2548
|
+
if (ze) return ze.focus(e), !0;
|
|
2467
2549
|
if (C) {
|
|
2468
|
-
const t =
|
|
2550
|
+
const t = fe.current?.querySelectorAll?.(C);
|
|
2469
2551
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2470
2552
|
}
|
|
2471
|
-
return
|
|
2472
|
-
}, [
|
|
2473
|
-
|
|
2474
|
-
} }), []),
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
}, [
|
|
2478
|
-
const
|
|
2479
|
-
...
|
|
2553
|
+
return fe.current?.focus?.(e), !1;
|
|
2554
|
+
}, [ze, C]), Ee = ye(o, () => ({ focus: (e) => {
|
|
2555
|
+
Oe(e);
|
|
2556
|
+
} }), []), Fe = W(Q);
|
|
2557
|
+
O(() => {
|
|
2558
|
+
Q !== Fe.current && (Fe.current = Q, le(!0));
|
|
2559
|
+
}, [Q]);
|
|
2560
|
+
const Ae = {
|
|
2561
|
+
...ee,
|
|
2480
2562
|
onExited: (e) => {
|
|
2481
|
-
m?.(null),
|
|
2563
|
+
m?.(null), j || ee?.onExited?.(e);
|
|
2482
2564
|
},
|
|
2483
2565
|
onExit: (e) => {
|
|
2484
|
-
const t =
|
|
2566
|
+
const t = Le, r = "function" == typeof K ? K() : K;
|
|
2485
2567
|
t && !1 !== r && requestAnimationFrame(() => {
|
|
2486
|
-
|
|
2487
|
-
}), x?.(),
|
|
2568
|
+
Ee.current?.contains(document.activeElement) && t.focus();
|
|
2569
|
+
}), x?.(), de(!1), ee?.onExit?.(e);
|
|
2488
2570
|
},
|
|
2489
2571
|
onEntered: (e, t) => {
|
|
2490
|
-
h?.(),
|
|
2572
|
+
h?.(), ee?.onEntered?.(e, t);
|
|
2491
2573
|
},
|
|
2492
2574
|
onEntering: (e, t) => {
|
|
2493
|
-
|
|
2575
|
+
de(!0), f?.(Ee.current);
|
|
2494
2576
|
}
|
|
2495
2577
|
};
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
}, [
|
|
2578
|
+
O(() => {
|
|
2579
|
+
se && Oe();
|
|
2580
|
+
}, [se]);
|
|
2499
2581
|
let Ke = M(y, {
|
|
2500
|
-
open:
|
|
2582
|
+
open: se,
|
|
2501
2583
|
disableAutoFocus: !0,
|
|
2502
|
-
disableEnforceFocus: !
|
|
2503
|
-
disableRestoreFocus: !0 !==
|
|
2504
|
-
children: M(
|
|
2505
|
-
in:
|
|
2506
|
-
timeout:
|
|
2584
|
+
disableEnforceFocus: !Ie,
|
|
2585
|
+
disableRestoreFocus: !0 !== K,
|
|
2586
|
+
children: M(Y, {
|
|
2587
|
+
in: ae,
|
|
2588
|
+
timeout: T,
|
|
2507
2589
|
role: "presentation",
|
|
2508
|
-
...
|
|
2590
|
+
...Ae,
|
|
2509
2591
|
children: M(t, {
|
|
2510
2592
|
className: "MuiDialog-container",
|
|
2511
|
-
ref:
|
|
2593
|
+
ref: fe,
|
|
2512
2594
|
tabIndex: 0,
|
|
2513
2595
|
sx: {
|
|
2514
2596
|
outline: "none",
|
|
2515
2597
|
position: "relative"
|
|
2516
2598
|
},
|
|
2517
2599
|
onKeyDown: (e) => {
|
|
2518
|
-
e.which ===
|
|
2600
|
+
e.which === oe.Escape && (Re(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
|
|
2519
2601
|
},
|
|
2520
|
-
children: S(
|
|
2521
|
-
ref:
|
|
2522
|
-
className:
|
|
2602
|
+
children: S(lr, {
|
|
2603
|
+
ref: we([Se, o]),
|
|
2604
|
+
className: V({ "Mui-focusVisible": Ie }, z, "draggable"),
|
|
2523
2605
|
sx: {
|
|
2524
|
-
"& *": (e) =>
|
|
2606
|
+
"& *": (e) => bt(e),
|
|
2525
2607
|
pointerEvents: "auto",
|
|
2526
2608
|
userSelect: "none",
|
|
2527
2609
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
2528
2610
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
2529
|
-
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${
|
|
2530
|
-
"&.Mui-focusVisible": { outline: (e) => `solid ${
|
|
2611
|
+
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
|
|
2612
|
+
"&.Mui-focusVisible": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
|
|
2531
2613
|
position: "absolute",
|
|
2532
2614
|
maxWidth: "100%",
|
|
2533
|
-
|
|
2615
|
+
...$
|
|
2534
2616
|
},
|
|
2535
2617
|
defaultPosition: ne,
|
|
2536
|
-
titleSize:
|
|
2537
|
-
rootSize:
|
|
2538
|
-
PaperComponent:
|
|
2618
|
+
titleSize: Ce,
|
|
2619
|
+
rootSize: he,
|
|
2620
|
+
PaperComponent: J,
|
|
2539
2621
|
...X,
|
|
2540
|
-
...
|
|
2622
|
+
...re,
|
|
2541
2623
|
children: [p ? M(l, {
|
|
2542
|
-
className:
|
|
2624
|
+
className: V({ "Mui-selected": Ie }, "draggable-title"),
|
|
2543
2625
|
sx: {
|
|
2544
2626
|
cursor: "move",
|
|
2545
2627
|
display: "flex",
|
|
@@ -2553,16 +2635,17 @@ var Yt = {
|
|
|
2553
2635
|
opacity: 1,
|
|
2554
2636
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
2555
2637
|
},
|
|
2556
|
-
backgroundColor: (e) =>
|
|
2638
|
+
backgroundColor: (e) => q(e.palette.action.hover, .03)
|
|
2557
2639
|
},
|
|
2558
|
-
ref:
|
|
2640
|
+
ref: ve,
|
|
2559
2641
|
children: S(t, {
|
|
2560
2642
|
sx: {
|
|
2561
2643
|
display: "flex",
|
|
2562
2644
|
flex: "1 1 10%",
|
|
2563
2645
|
flexDirection: "row",
|
|
2564
2646
|
alignItems: "center",
|
|
2565
|
-
marginTop: (e) => e.spacing(
|
|
2647
|
+
marginTop: (e) => e.spacing(.25),
|
|
2648
|
+
marginBottom: (e) => e.spacing(.25),
|
|
2566
2649
|
marginLeft: (e) => e.spacing(1),
|
|
2567
2650
|
marginRight: (e) => e.spacing(1)
|
|
2568
2651
|
},
|
|
@@ -2572,43 +2655,43 @@ var Yt = {
|
|
|
2572
2655
|
paddingLeft: (e) => e.spacing(1)
|
|
2573
2656
|
},
|
|
2574
2657
|
children: p
|
|
2575
|
-
}), M(
|
|
2658
|
+
}), M(Bt, {
|
|
2576
2659
|
label: a("window.close"),
|
|
2577
2660
|
children: M(d, {
|
|
2578
2661
|
"aria-label": "close",
|
|
2579
2662
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
2580
|
-
touchRippleRef:
|
|
2663
|
+
touchRippleRef: pe,
|
|
2581
2664
|
onPointerDown: (e) => {
|
|
2582
|
-
|
|
2665
|
+
pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
2583
2666
|
},
|
|
2584
2667
|
onPointerUp: Re,
|
|
2585
|
-
children: M(
|
|
2668
|
+
children: M(Z, { iconKey: "Close" })
|
|
2586
2669
|
})
|
|
2587
2670
|
})]
|
|
2588
2671
|
})
|
|
2589
|
-
}) : null,
|
|
2672
|
+
}) : null, P]
|
|
2590
2673
|
})
|
|
2591
2674
|
})
|
|
2592
2675
|
})
|
|
2593
|
-
}),
|
|
2594
|
-
|
|
2595
|
-
...
|
|
2596
|
-
open:
|
|
2676
|
+
}), We = null;
|
|
2677
|
+
N && !A && (We = M(_, {
|
|
2678
|
+
...te,
|
|
2679
|
+
open: ae,
|
|
2597
2680
|
onMouseDown: (e) => {
|
|
2598
|
-
Re(),
|
|
2681
|
+
Re(), te?.onMouseDown?.(e);
|
|
2599
2682
|
},
|
|
2600
2683
|
onClick: (e) => {
|
|
2601
|
-
b?.(e, "backdropClick"),
|
|
2684
|
+
b?.(e, "backdropClick"), te?.onClick?.(e);
|
|
2602
2685
|
},
|
|
2603
2686
|
sx: {
|
|
2604
2687
|
pointerEvents: "auto",
|
|
2605
|
-
...
|
|
2688
|
+
...te?.sx
|
|
2606
2689
|
}
|
|
2607
2690
|
}));
|
|
2608
|
-
const { getPortalContainer:
|
|
2609
|
-
return
|
|
2610
|
-
className:
|
|
2611
|
-
...
|
|
2691
|
+
const { getPortalContainer: He } = be(), { className: Ve, attrs: qe } = ce(xe()?.themeScope);
|
|
2692
|
+
return De(S(t, {
|
|
2693
|
+
className: V("MuiModal-root", Ve),
|
|
2694
|
+
...qe,
|
|
2612
2695
|
sx: {
|
|
2613
2696
|
position: "fixed",
|
|
2614
2697
|
zIndex: "1300",
|
|
@@ -2620,78 +2703,90 @@ var Yt = {
|
|
|
2620
2703
|
display: "block",
|
|
2621
2704
|
pointerEvents: "none"
|
|
2622
2705
|
},
|
|
2623
|
-
ref:
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2706
|
+
ref: we([
|
|
2707
|
+
Ee,
|
|
2708
|
+
me,
|
|
2709
|
+
ge
|
|
2627
2710
|
]),
|
|
2628
2711
|
onPointerDown: (e) => {
|
|
2629
|
-
|
|
2712
|
+
Ie && (e.target === fe.current || e.target.tabIndex < 0) && fe.current?.contains(document.activeElement);
|
|
2630
2713
|
},
|
|
2631
2714
|
onContextMenu: (e) => {
|
|
2632
2715
|
e.isPropagationStopped() || e.preventDefault();
|
|
2633
2716
|
},
|
|
2634
2717
|
onFocus: (e) => {
|
|
2635
|
-
!
|
|
2636
|
-
|
|
2637
|
-
}, 100), $e(!0),
|
|
2718
|
+
!Ie && (e.target === fe.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2719
|
+
Oe();
|
|
2720
|
+
}, 100), $e(!0), fe.current?.contains(e.target) && e.target !== fe.current && Be(e.target), e.relatedTarget && !Le && Ne(e.relatedTarget);
|
|
2638
2721
|
},
|
|
2639
2722
|
onBlur: (e) => {
|
|
2640
|
-
|
|
2641
|
-
},
|
|
2642
|
-
children: [
|
|
2643
|
-
}),
|
|
2644
|
-
})),
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2723
|
+
Ee?.current?.contains(e.relatedTarget) || (Ne(null), $e(!1));
|
|
2724
|
+
},
|
|
2725
|
+
children: [We, Ke]
|
|
2726
|
+
}), He(), Pe);
|
|
2727
|
+
})), dr = ["Ok", "Cancel"], pr = {
|
|
2728
|
+
[ie.Info]: "ValidationInformation",
|
|
2729
|
+
[ie.Warning]: "ValidationWarning",
|
|
2730
|
+
[ie.Error]: "ValidationStop",
|
|
2731
|
+
[ie.Success]: "Check"
|
|
2732
|
+
}, ur = (e) => "string" == typeof e ? e : e.id ?? e, mr = (e, t) => void 0 !== t && ur(e) === ur(t), hr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), gr = B($((e, o) => {
|
|
2733
|
+
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = dr, autoFocusSel: g = ".defaultOption", defaultOption: f = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...k } = e, w = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = w, R = W(null), D = W(null), I = ke(), $ = A(() => {
|
|
2734
|
+
const e = "string" == typeof c ? c : c ? void 0 : pr[s];
|
|
2735
|
+
return e ? M(Z, {
|
|
2736
|
+
iconKey: e,
|
|
2737
|
+
size: 32,
|
|
2738
|
+
ariaHidden: !0
|
|
2739
|
+
}) : c ?? null;
|
|
2740
|
+
}, [c, s]), z = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? I("dialog.ok") : "Cancel" === e ? I("dialog.cancel") : e, [I]), B = W(null), [L, N] = H(null), O = ue(async (e) => {
|
|
2741
|
+
const t = ur(e);
|
|
2742
|
+
if (null !== L) return;
|
|
2743
|
+
if (hr(e)) return;
|
|
2744
|
+
const r = mr(e, x);
|
|
2650
2745
|
let o;
|
|
2651
2746
|
try {
|
|
2652
|
-
if (
|
|
2653
|
-
await Promise.resolve(
|
|
2747
|
+
if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2748
|
+
await Promise.resolve(p?.(t, r, mr(e, f))), u?.(t);
|
|
2654
2749
|
} catch (e) {} finally {
|
|
2655
|
-
|
|
2750
|
+
N(null);
|
|
2656
2751
|
}
|
|
2657
2752
|
}, [
|
|
2658
|
-
d,
|
|
2659
2753
|
p,
|
|
2660
2754
|
u,
|
|
2661
|
-
|
|
2755
|
+
m,
|
|
2756
|
+
x,
|
|
2662
2757
|
f,
|
|
2663
|
-
|
|
2664
|
-
]),
|
|
2758
|
+
L
|
|
2759
|
+
]), E = ue((e, t) => {
|
|
2665
2760
|
setTimeout(() => {
|
|
2666
|
-
|
|
2761
|
+
O(f);
|
|
2667
2762
|
}, 180);
|
|
2668
|
-
}, [
|
|
2669
|
-
|
|
2763
|
+
}, [O, f]), F = ue(() => {
|
|
2764
|
+
p?.(ur(x), !0, !1), d?.(), u?.(null);
|
|
2670
2765
|
}, [
|
|
2766
|
+
p,
|
|
2767
|
+
x,
|
|
2671
2768
|
d,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
]), F = C && (Object.keys(C.errors).length > 0 || C.disabled || C.isSubmitting), W = le((e, t, o) => {
|
|
2676
|
-
const i = rr(e, g), a = {
|
|
2769
|
+
u
|
|
2770
|
+
]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, o) => {
|
|
2771
|
+
const i = mr(e, x), a = {
|
|
2677
2772
|
className: t ? "defaultOption" : "action",
|
|
2678
2773
|
type: t ? "submit" : "button",
|
|
2679
2774
|
style: { minWidth: "75px" },
|
|
2680
2775
|
onClick: () => {
|
|
2681
|
-
i ?
|
|
2776
|
+
i ? F() : t || O(e);
|
|
2682
2777
|
}
|
|
2683
2778
|
}, l = "string" != typeof e ? e.renderButton : void 0;
|
|
2684
|
-
if (l) return M(
|
|
2685
|
-
const s = null !==
|
|
2779
|
+
if (l) return M(T, { children: l(a, t) }, `action:${o}`);
|
|
2780
|
+
const s = null !== L && mr(e, L), c = {
|
|
2686
2781
|
className: t ? "defaultOption" : "action",
|
|
2687
2782
|
variant: t ? "contained" : "outlined",
|
|
2688
2783
|
size: "small",
|
|
2689
|
-
disabled: !i && (
|
|
2784
|
+
disabled: !i && (K || hr(e)) || null !== L && !s,
|
|
2690
2785
|
color: "primary",
|
|
2691
2786
|
...a
|
|
2692
2787
|
};
|
|
2693
2788
|
if (t || i) {
|
|
2694
|
-
const e = t ?
|
|
2789
|
+
const e = t ? R : D;
|
|
2695
2790
|
c.touchRippleRef = e, c.onPointerDown = (t) => {
|
|
2696
2791
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2697
2792
|
};
|
|
@@ -2700,8 +2795,8 @@ var Yt = {
|
|
|
2700
2795
|
...c,
|
|
2701
2796
|
children: [M("div", {
|
|
2702
2797
|
style: { visibility: s ? "hidden" : void 0 },
|
|
2703
|
-
children:
|
|
2704
|
-
}),
|
|
2798
|
+
children: z(e)
|
|
2799
|
+
}), m && !i ? M(n, {
|
|
2705
2800
|
size: 16,
|
|
2706
2801
|
color: "inherit",
|
|
2707
2802
|
style: { opacity: s ? 1 : 0 },
|
|
@@ -2716,55 +2811,55 @@ var Yt = {
|
|
|
2716
2811
|
}) : null]
|
|
2717
2812
|
}, `action:${o}`);
|
|
2718
2813
|
}, [
|
|
2719
|
-
|
|
2814
|
+
h,
|
|
2720
2815
|
f,
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
]),
|
|
2816
|
+
x,
|
|
2817
|
+
P,
|
|
2818
|
+
z,
|
|
2819
|
+
L
|
|
2820
|
+
]), j = A(() => {
|
|
2726
2821
|
const e = [];
|
|
2727
|
-
for (let t = 0; t <
|
|
2728
|
-
const r =
|
|
2729
|
-
e.push(
|
|
2822
|
+
for (let t = 0; t < h.length; t++) {
|
|
2823
|
+
const r = h[t], o = void 0 !== f ? mr(r, f) : 0 === t;
|
|
2824
|
+
e.push(V(r, o, t));
|
|
2730
2825
|
}
|
|
2731
2826
|
return e;
|
|
2732
2827
|
}, [
|
|
2733
|
-
|
|
2828
|
+
h,
|
|
2734
2829
|
f,
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2830
|
+
P,
|
|
2831
|
+
I,
|
|
2832
|
+
L
|
|
2738
2833
|
]);
|
|
2739
|
-
return M(
|
|
2740
|
-
onCancel:
|
|
2741
|
-
initialPosition: { y: "touch" ===
|
|
2742
|
-
onDone:
|
|
2743
|
-
autoFocusSel:
|
|
2834
|
+
return M(cr, {
|
|
2835
|
+
onCancel: F,
|
|
2836
|
+
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2837
|
+
onDone: u,
|
|
2838
|
+
autoFocusSel: g,
|
|
2744
2839
|
isModal: !0,
|
|
2745
2840
|
ref: o,
|
|
2746
|
-
...
|
|
2747
|
-
children: M(
|
|
2748
|
-
...
|
|
2841
|
+
...k,
|
|
2842
|
+
children: M(ze, {
|
|
2843
|
+
...w,
|
|
2749
2844
|
children: S("form", {
|
|
2750
|
-
ref:
|
|
2751
|
-
onSubmit:
|
|
2845
|
+
ref: B,
|
|
2846
|
+
onSubmit: C(E),
|
|
2752
2847
|
children: [M(a, {
|
|
2753
2848
|
dividers: !0,
|
|
2754
2849
|
onKeyDown: (e) => {
|
|
2755
2850
|
if (e.isDefaultPrevented()) return;
|
|
2756
2851
|
e.stopPropagation();
|
|
2757
2852
|
let t = null, r = null;
|
|
2758
|
-
const o = e.which ===
|
|
2853
|
+
const o = e.which === oe.Escape && x;
|
|
2759
2854
|
if (o) {
|
|
2760
|
-
if (null !==
|
|
2761
|
-
t =
|
|
2855
|
+
if (null !== L) return;
|
|
2856
|
+
t = x, r = D;
|
|
2762
2857
|
} else {
|
|
2763
|
-
if (
|
|
2764
|
-
e.which ===
|
|
2858
|
+
if (K || null !== L) return;
|
|
2859
|
+
e.which === oe.Enter && (t = f ?? h[0], r = R);
|
|
2765
2860
|
}
|
|
2766
2861
|
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2767
|
-
r?.current?.stop(e), o &&
|
|
2862
|
+
r?.current?.stop(e), o && F();
|
|
2768
2863
|
}, 180));
|
|
2769
2864
|
},
|
|
2770
2865
|
children: S(t, {
|
|
@@ -2772,15 +2867,26 @@ var Yt = {
|
|
|
2772
2867
|
display: "flex",
|
|
2773
2868
|
flexDirection: "column",
|
|
2774
2869
|
whiteSpace: "pre-wrap",
|
|
2775
|
-
rowGap: (e) => e.spacing(
|
|
2870
|
+
rowGap: (e) => e.spacing($ || l ? 1.5 : 0)
|
|
2776
2871
|
},
|
|
2777
2872
|
children: [S(t, {
|
|
2778
2873
|
sx: {
|
|
2779
2874
|
display: "flex",
|
|
2780
|
-
flexDirection: "
|
|
2875
|
+
flexDirection: "row",
|
|
2876
|
+
alignItems: "flex-start",
|
|
2877
|
+
columnGap: (e) => e.spacing(2)
|
|
2781
2878
|
},
|
|
2782
|
-
children: [
|
|
2783
|
-
|
|
2879
|
+
children: [$ ? M(t, {
|
|
2880
|
+
sx: {
|
|
2881
|
+
display: "flex",
|
|
2882
|
+
flex: "none"
|
|
2883
|
+
},
|
|
2884
|
+
children: $
|
|
2885
|
+
}) : null, M(b, {
|
|
2886
|
+
sx: { alignSelf: "center" },
|
|
2887
|
+
children: l
|
|
2888
|
+
})]
|
|
2889
|
+
}), v]
|
|
2784
2890
|
})
|
|
2785
2891
|
}), M(i, {
|
|
2786
2892
|
sx: {
|
|
@@ -2788,17 +2894,17 @@ var Yt = {
|
|
|
2788
2894
|
paddingBottom: (e) => e.spacing(1),
|
|
2789
2895
|
paddingLeft: (e) => e.spacing(1),
|
|
2790
2896
|
paddingRight: (e) => e.spacing(1),
|
|
2791
|
-
backgroundColor: (e) =>
|
|
2897
|
+
backgroundColor: (e) => q(e.palette.action.hover, .03)
|
|
2792
2898
|
},
|
|
2793
|
-
children:
|
|
2899
|
+
children: j
|
|
2794
2900
|
})]
|
|
2795
2901
|
})
|
|
2796
2902
|
})
|
|
2797
2903
|
});
|
|
2798
|
-
})),
|
|
2799
|
-
const { showModal: t } =
|
|
2904
|
+
})), fr = (e) => {
|
|
2905
|
+
const { showModal: t } = Re();
|
|
2800
2906
|
return (r) => new Promise((o) => {
|
|
2801
|
-
const n = t(
|
|
2907
|
+
const n = t(gr, {
|
|
2802
2908
|
...e,
|
|
2803
2909
|
...r,
|
|
2804
2910
|
onOption(e, t, n) {
|
|
@@ -2809,12 +2915,12 @@ var Yt = {
|
|
|
2809
2915
|
}
|
|
2810
2916
|
});
|
|
2811
2917
|
});
|
|
2812
|
-
},
|
|
2813
|
-
const { showModal: t } =
|
|
2918
|
+
}, xr = nr(X("utils-mui:inputDialog", () => import("./CwSLcaHUI7AukMBS.mjs"), { tier: "common" }).load), br = (e) => {
|
|
2919
|
+
const { showModal: t } = Re();
|
|
2814
2920
|
return (r) => {
|
|
2815
2921
|
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
2816
|
-
return new Promise((r) => {
|
|
2817
|
-
const
|
|
2922
|
+
return new Promise((r, a) => {
|
|
2923
|
+
const l = t(xr, {
|
|
2818
2924
|
...e,
|
|
2819
2925
|
defaultOption: o,
|
|
2820
2926
|
cancelOption: n,
|
|
@@ -2832,14 +2938,17 @@ var Yt = {
|
|
|
2832
2938
|
});
|
|
2833
2939
|
},
|
|
2834
2940
|
onDone: () => {
|
|
2835
|
-
i?.onDone?.(),
|
|
2941
|
+
i?.onDone?.(), l.hide();
|
|
2942
|
+
},
|
|
2943
|
+
onLoadError: (e) => {
|
|
2944
|
+
l.destroy(), a(e);
|
|
2836
2945
|
}
|
|
2837
2946
|
});
|
|
2838
2947
|
});
|
|
2839
2948
|
};
|
|
2840
|
-
},
|
|
2841
|
-
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] =
|
|
2842
|
-
return M(
|
|
2949
|
+
}, yr = B($((e, t) => {
|
|
2950
|
+
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
|
|
2951
|
+
return M(Bt, {
|
|
2843
2952
|
ref: t,
|
|
2844
2953
|
label: void 0 !== n ? c?.getLabel() : "",
|
|
2845
2954
|
shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
|
|
@@ -2855,70 +2964,76 @@ var Yt = {
|
|
|
2855
2964
|
children: a
|
|
2856
2965
|
})
|
|
2857
2966
|
});
|
|
2858
|
-
})),
|
|
2859
|
-
function
|
|
2860
|
-
const e =
|
|
2967
|
+
})), vr = Le;
|
|
2968
|
+
function kr() {
|
|
2969
|
+
const e = W(null);
|
|
2861
2970
|
return {
|
|
2862
|
-
ripple:
|
|
2971
|
+
ripple: A(() => M(vr, {
|
|
2863
2972
|
ref: e,
|
|
2864
2973
|
center: !1
|
|
2865
2974
|
}), []),
|
|
2866
|
-
trigger:
|
|
2975
|
+
trigger: L(() => {
|
|
2867
2976
|
e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
|
|
2868
2977
|
}, [])
|
|
2869
2978
|
};
|
|
2870
2979
|
}
|
|
2871
|
-
var
|
|
2872
|
-
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c =
|
|
2873
|
-
|
|
2874
|
-
} }), [
|
|
2980
|
+
var wr = M(Z, {}), Cr = B($((e, t) => {
|
|
2981
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: g } = kr(), f = A(() => ({ onExecute() {
|
|
2982
|
+
g();
|
|
2983
|
+
} }), [g]), [x] = he(r ?? [], f), b = o ?? x, y = L((e) => {
|
|
2875
2984
|
0 === e.button && e.preventDefault();
|
|
2876
|
-
}, []), v =
|
|
2985
|
+
}, []), v = L(async (e) => {
|
|
2877
2986
|
0 === e.button && b && await b.execute(p);
|
|
2878
|
-
}, [b, p]), k =
|
|
2879
|
-
e.keyCode !==
|
|
2880
|
-
}, [b, p]), w =
|
|
2881
|
-
if (null === i) return
|
|
2987
|
+
}, [b, p]), k = L((e) => {
|
|
2988
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Space || b?.execute(p);
|
|
2989
|
+
}, [b, p]), w = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
|
|
2990
|
+
if (null === i) return wr;
|
|
2882
2991
|
let e;
|
|
2883
|
-
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(
|
|
2884
|
-
}, [
|
|
2992
|
+
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : wr;
|
|
2993
|
+
}, [
|
|
2994
|
+
b,
|
|
2995
|
+
n,
|
|
2996
|
+
i,
|
|
2997
|
+
C,
|
|
2998
|
+
c
|
|
2999
|
+
]), T = {
|
|
2885
3000
|
tabIndex: 0,
|
|
2886
3001
|
ref: t,
|
|
2887
|
-
selected: !!
|
|
2888
|
-
icon: c ===
|
|
2889
|
-
selected:
|
|
2890
|
-
children:
|
|
3002
|
+
selected: !!C,
|
|
3003
|
+
icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Xt, {
|
|
3004
|
+
selected: C ?? !1,
|
|
3005
|
+
children: P
|
|
2891
3006
|
}),
|
|
2892
3007
|
disableRipple: !0,
|
|
2893
|
-
disabled:
|
|
3008
|
+
disabled: w,
|
|
2894
3009
|
onMouseDown: y,
|
|
2895
3010
|
onMouseUp: v,
|
|
2896
3011
|
onKeyDown: k
|
|
2897
3012
|
};
|
|
2898
3013
|
let R;
|
|
2899
|
-
return R = c ===
|
|
3014
|
+
return R = c === _.Menuitem ? S(Kt, {
|
|
2900
3015
|
...m,
|
|
2901
|
-
...
|
|
3016
|
+
...T,
|
|
2902
3017
|
children: [a ?? b?.getLabel(n), h]
|
|
2903
|
-
}) : M(
|
|
3018
|
+
}) : M(Ot, {
|
|
2904
3019
|
...m,
|
|
2905
|
-
...
|
|
3020
|
+
...T,
|
|
2906
3021
|
children: h
|
|
2907
|
-
}), a || b?.getLabel() ? (
|
|
3022
|
+
}), a || b?.getLabel() ? (w && (R = M("div", { children: R })), R = M(yr, {
|
|
2908
3023
|
commandKey: r,
|
|
2909
3024
|
command: o,
|
|
2910
|
-
disabled:
|
|
2911
|
-
placement: c ===
|
|
3025
|
+
disabled: w,
|
|
3026
|
+
placement: c === _.Toolbar ? "bottom-start" : "right-start",
|
|
2912
3027
|
shortcut: d,
|
|
2913
3028
|
...u,
|
|
2914
3029
|
children: R
|
|
2915
3030
|
}), R) : R;
|
|
2916
3031
|
}));
|
|
2917
|
-
|
|
2918
|
-
var
|
|
2919
|
-
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l =
|
|
2920
|
-
|
|
2921
|
-
} }), [
|
|
3032
|
+
Cr.displayName = "CommandButton";
|
|
3033
|
+
var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
3034
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: g, trigger: f } = kr(), x = A(() => ({ onExecute() {
|
|
3035
|
+
f();
|
|
3036
|
+
} }), [f]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, k] = H(""), w = W(y()), C = ue(() => {
|
|
2922
3037
|
let e = v;
|
|
2923
3038
|
if (c) try {
|
|
2924
3039
|
e = c(v);
|
|
@@ -2933,14 +3048,14 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
2933
3048
|
v,
|
|
2934
3049
|
c
|
|
2935
3050
|
]);
|
|
2936
|
-
|
|
3051
|
+
O(() => {
|
|
2937
3052
|
k(y());
|
|
2938
3053
|
}, [b?.getState()]);
|
|
2939
|
-
const
|
|
2940
|
-
if (null === n) return
|
|
3054
|
+
const P = A(() => {
|
|
3055
|
+
if (null === n) return Mr;
|
|
2941
3056
|
let e;
|
|
2942
|
-
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(
|
|
2943
|
-
}, [b?.getIcon(), n]),
|
|
3057
|
+
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : Mr;
|
|
3058
|
+
}, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
|
|
2944
3059
|
...h,
|
|
2945
3060
|
sx: {
|
|
2946
3061
|
paddingTop: "0px",
|
|
@@ -2987,14 +3102,14 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
2987
3102
|
e.target?.select();
|
|
2988
3103
|
},
|
|
2989
3104
|
onKeyDown: (e) => {
|
|
2990
|
-
if (e.which ===
|
|
2991
|
-
else if (e.which ===
|
|
3105
|
+
if (e.which === oe.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
|
|
3106
|
+
else if (e.which === oe.Escape) y() !== v && (k(y()), setTimeout(() => {
|
|
2992
3107
|
e.target?.select();
|
|
2993
3108
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
2994
3109
|
else {
|
|
2995
3110
|
if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
|
|
2996
3111
|
if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
2997
|
-
if (e.which ===
|
|
3112
|
+
if (e.which === oe.Space) return void e.preventDefault();
|
|
2998
3113
|
}
|
|
2999
3114
|
},
|
|
3000
3115
|
onBlur: () => {
|
|
@@ -3010,10 +3125,10 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3010
3125
|
R,
|
|
3011
3126
|
u,
|
|
3012
3127
|
m
|
|
3013
|
-
]),
|
|
3128
|
+
]), I = {
|
|
3014
3129
|
tabIndex: 0,
|
|
3015
3130
|
ref: t,
|
|
3016
|
-
icon:
|
|
3131
|
+
icon: P,
|
|
3017
3132
|
disableRipple: !0,
|
|
3018
3133
|
disabled: s || !b || b.disabled(),
|
|
3019
3134
|
onMouseDown: (e) => {
|
|
@@ -3023,35 +3138,35 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3023
3138
|
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
|
|
3024
3139
|
},
|
|
3025
3140
|
onKeyDown: (e) => {
|
|
3026
|
-
e.keyCode !==
|
|
3141
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Tab || C();
|
|
3027
3142
|
}
|
|
3028
3143
|
};
|
|
3029
|
-
let
|
|
3030
|
-
return
|
|
3144
|
+
let $;
|
|
3145
|
+
return $ = l === _.Menuitem ? S(Kt, {
|
|
3031
3146
|
...h,
|
|
3032
|
-
|
|
3147
|
+
...I,
|
|
3033
3148
|
children: [
|
|
3034
|
-
|
|
3149
|
+
T,
|
|
3035
3150
|
D,
|
|
3036
|
-
|
|
3151
|
+
g
|
|
3037
3152
|
]
|
|
3038
|
-
}) : M(
|
|
3153
|
+
}) : M(Ot, {
|
|
3039
3154
|
...h,
|
|
3040
|
-
|
|
3041
|
-
children:
|
|
3042
|
-
}), b?.getLabel() ? ((b.disabled() || s) && (
|
|
3155
|
+
...I,
|
|
3156
|
+
children: g
|
|
3157
|
+
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(yr, {
|
|
3043
3158
|
commandKey: r,
|
|
3044
|
-
placement: l ===
|
|
3045
|
-
children:
|
|
3046
|
-
}),
|
|
3047
|
-
})),
|
|
3048
|
-
const { variant: r =
|
|
3049
|
-
|
|
3050
|
-
} }), [
|
|
3159
|
+
placement: l === _.Toolbar ? "bottom-start" : "right-start",
|
|
3160
|
+
children: $
|
|
3161
|
+
}), $) : $;
|
|
3162
|
+
})), Pr = B($((e, t) => {
|
|
3163
|
+
const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: g } = kr(), f = A(() => ({ onExecute() {
|
|
3164
|
+
g();
|
|
3165
|
+
} }), [g]), [x] = he(o ?? [], f), { label: b, icon: y } = A(() => {
|
|
3051
3166
|
let e = null;
|
|
3052
3167
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3053
3168
|
let t = s;
|
|
3054
|
-
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(
|
|
3169
|
+
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(Z, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
|
|
3055
3170
|
label: e,
|
|
3056
3171
|
icon: t
|
|
3057
3172
|
};
|
|
@@ -3067,29 +3182,29 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3067
3182
|
label: b,
|
|
3068
3183
|
icon: y
|
|
3069
3184
|
};
|
|
3070
|
-
(b || d) && (v.createTooltip = ({ children: e }, t) => M(
|
|
3185
|
+
(b || d) && (v.createTooltip = ({ children: e }, t) => M(Bt, {
|
|
3071
3186
|
label: b,
|
|
3072
3187
|
description: d,
|
|
3073
3188
|
disabled: t,
|
|
3074
3189
|
children: e
|
|
3075
3190
|
}));
|
|
3076
|
-
const k =
|
|
3077
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(
|
|
3191
|
+
const k = ue((e) => c?.(e), [c]), w = ue((e) => x?.execute(i), [x]);
|
|
3192
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(yr, {
|
|
3078
3193
|
commandKey: o,
|
|
3079
|
-
placement: t ?? r ===
|
|
3194
|
+
placement: t ?? r === _.Toolbar ? "bottom-start" : "right-start",
|
|
3080
3195
|
disabled: n,
|
|
3081
3196
|
children: e
|
|
3082
|
-
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = w)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = k, r ===
|
|
3197
|
+
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = w)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = k, r === _.Toolbar ? M(Ht, {
|
|
3083
3198
|
...m,
|
|
3084
3199
|
...v,
|
|
3085
3200
|
ref: t
|
|
3086
|
-
}) : M(
|
|
3201
|
+
}) : M(jt, {
|
|
3087
3202
|
...m,
|
|
3088
3203
|
...v,
|
|
3089
3204
|
ref: t
|
|
3090
3205
|
});
|
|
3091
3206
|
}));
|
|
3092
|
-
function
|
|
3207
|
+
function Tr(e, t = {}) {
|
|
3093
3208
|
const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
|
|
3094
3209
|
void 0 !== r && (c.variant = r);
|
|
3095
3210
|
const d = { ...l };
|
|
@@ -3104,10 +3219,10 @@ function gr(e, t = {}) {
|
|
|
3104
3219
|
icon: r?.getIcon?.(n),
|
|
3105
3220
|
showLabel: r?.showLabel
|
|
3106
3221
|
};
|
|
3107
|
-
return (r?.render ? r.render(o, n) : M(
|
|
3222
|
+
return (r?.render ? r.render(o, n) : M(Cr, { ...o })) ?? null;
|
|
3108
3223
|
}, u = (e) => {
|
|
3109
3224
|
const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
|
|
3110
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M(
|
|
3225
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M(Rr, {
|
|
3111
3226
|
...d,
|
|
3112
3227
|
members: e.members,
|
|
3113
3228
|
icon: e.getIcon?.(),
|
|
@@ -3116,7 +3231,7 @@ function gr(e, t = {}) {
|
|
|
3116
3231
|
}) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
|
|
3117
3232
|
const o = s?.get(t) ?? null;
|
|
3118
3233
|
return o ? ((e, t, r) => {
|
|
3119
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M(
|
|
3234
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M(Rr, {
|
|
3120
3235
|
...d,
|
|
3121
3236
|
groupKey: t,
|
|
3122
3237
|
icon: r?.getIcon?.(t),
|
|
@@ -3131,43 +3246,43 @@ function gr(e, t = {}) {
|
|
|
3131
3246
|
return p(e.defaultKey ?? t, o.state, o);
|
|
3132
3247
|
})(o, t, r) : p(t, r?.state, r);
|
|
3133
3248
|
}, m = [];
|
|
3134
|
-
let h = 0,
|
|
3249
|
+
let h = 0, g = !1, f = !1;
|
|
3135
3250
|
const x = e ?? [];
|
|
3136
3251
|
for (let e = 0; e < x.length; e++) {
|
|
3137
3252
|
const t = x[e];
|
|
3138
3253
|
if (!t || "-" === t) {
|
|
3139
|
-
|
|
3254
|
+
f && (g = !0);
|
|
3140
3255
|
continue;
|
|
3141
3256
|
}
|
|
3142
3257
|
const r = u(t);
|
|
3143
|
-
r && (
|
|
3258
|
+
r && (g && (m.push(M(He, { orientation: o }, "member-" + h++)), g = !1), m.push(D(r, { key: "member-" + h++ })), f = !0);
|
|
3144
3259
|
}
|
|
3145
3260
|
return m;
|
|
3146
3261
|
}
|
|
3147
|
-
|
|
3148
|
-
var
|
|
3149
|
-
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m =
|
|
3262
|
+
Pr.displayName = "CommandPopupButton";
|
|
3263
|
+
var Rr = B($((e, t) => {
|
|
3264
|
+
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, g = !o && r ? h.get(r) : null, f = g && Array.isArray(g.members) ? g : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
|
|
3150
3265
|
o,
|
|
3151
3266
|
r,
|
|
3152
3267
|
h
|
|
3153
|
-
]), b = r, y = i ??
|
|
3268
|
+
]), b = r, y = i ?? f?.defaultKey, v = a ?? f?.getIcon?.(b), k = l ?? f?.getLabel?.(b), w = s ?? f?.showLabel, C = c ?? f?.getDescription?.(b), S = A(() => {
|
|
3154
3269
|
const e = [], t = x ?? [];
|
|
3155
3270
|
for (let r = 0; r < t.length; r++) {
|
|
3156
3271
|
const o = t[r];
|
|
3157
3272
|
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3158
3273
|
}
|
|
3159
3274
|
return e;
|
|
3160
|
-
}, [x]),
|
|
3161
|
-
for (let e = 0; e <
|
|
3162
|
-
const t =
|
|
3275
|
+
}, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
|
|
3276
|
+
for (let e = 0; e < P.length; e++) {
|
|
3277
|
+
const t = P[e];
|
|
3163
3278
|
if (t && !t.disabled()) return !1;
|
|
3164
3279
|
}
|
|
3165
3280
|
return !0;
|
|
3166
|
-
}, [
|
|
3281
|
+
}, [P]), R = L((e) => {
|
|
3167
3282
|
const t = {};
|
|
3168
3283
|
void 0 !== p && (t.disabled = p);
|
|
3169
|
-
const r =
|
|
3170
|
-
variant:
|
|
3284
|
+
const r = Tr(x, {
|
|
3285
|
+
variant: _.Menuitem,
|
|
3171
3286
|
dividerOrientation: "horizontal",
|
|
3172
3287
|
groupKey: b,
|
|
3173
3288
|
commandState: d,
|
|
@@ -3175,7 +3290,7 @@ var xr = B(D((e, t) => {
|
|
|
3175
3290
|
propsCommandPopup: t,
|
|
3176
3291
|
registry: h
|
|
3177
3292
|
});
|
|
3178
|
-
return
|
|
3293
|
+
return wt({
|
|
3179
3294
|
...e,
|
|
3180
3295
|
children: r
|
|
3181
3296
|
});
|
|
@@ -3186,7 +3301,7 @@ var xr = B(D((e, t) => {
|
|
|
3186
3301
|
d,
|
|
3187
3302
|
p
|
|
3188
3303
|
]);
|
|
3189
|
-
return x ? M(
|
|
3304
|
+
return x ? M(Pr, {
|
|
3190
3305
|
ref: t,
|
|
3191
3306
|
quickCommand: y,
|
|
3192
3307
|
icon: v,
|
|
@@ -3194,17 +3309,17 @@ var xr = B(D((e, t) => {
|
|
|
3194
3309
|
showLabel: w,
|
|
3195
3310
|
tooltip: C,
|
|
3196
3311
|
commandState: d,
|
|
3197
|
-
disabled: p ??
|
|
3312
|
+
disabled: p ?? T,
|
|
3198
3313
|
createPopupPanel: R,
|
|
3199
3314
|
...u
|
|
3200
3315
|
}) : null;
|
|
3201
3316
|
}));
|
|
3202
|
-
|
|
3203
|
-
var
|
|
3204
|
-
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] =
|
|
3317
|
+
Rr.displayName = "CommandGroup";
|
|
3318
|
+
var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
3319
|
+
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
|
|
3205
3320
|
if (void 0 !== i) return i;
|
|
3206
3321
|
let e = s?.getIcon(n);
|
|
3207
|
-
return e ? ("string" == typeof e && (e = M(
|
|
3322
|
+
return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : Dr;
|
|
3208
3323
|
}, [
|
|
3209
3324
|
i,
|
|
3210
3325
|
n,
|
|
@@ -3232,34 +3347,34 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3232
3347
|
children: o ?? s?.getLabel(n)
|
|
3233
3348
|
})]
|
|
3234
3349
|
});
|
|
3235
|
-
},
|
|
3236
|
-
const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p =
|
|
3350
|
+
}, $r = B($((e, t) => {
|
|
3351
|
+
const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
|
|
3237
3352
|
a,
|
|
3238
3353
|
i,
|
|
3239
3354
|
u,
|
|
3240
3355
|
u.getVersion()
|
|
3241
|
-
]), h =
|
|
3356
|
+
]), h = ye(t, () => ({}), []), [g, x] = H(null), { reference: b } = fe({
|
|
3242
3357
|
label: "toolbar",
|
|
3243
3358
|
anchor: h.current,
|
|
3244
3359
|
parentFloat: n,
|
|
3245
3360
|
createPopupPanel: null
|
|
3246
|
-
}), y =
|
|
3247
|
-
const e =
|
|
3361
|
+
}), y = ue(() => {
|
|
3362
|
+
const e = g;
|
|
3248
3363
|
e && requestAnimationFrame(() => {
|
|
3249
3364
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3250
3365
|
});
|
|
3251
|
-
}, [
|
|
3366
|
+
}, [g]), v = A(() => ({
|
|
3252
3367
|
dense: !0,
|
|
3253
3368
|
outlined: !1
|
|
3254
|
-
}), []), k =
|
|
3369
|
+
}), []), k = A(() => ({ ...o || {} }), [o]), w = A(() => ({
|
|
3255
3370
|
...v,
|
|
3256
3371
|
...k
|
|
3257
|
-
}), [v, k]), C =
|
|
3372
|
+
}), [v, k]), C = A(() => ({ ...k }), [w, o]);
|
|
3258
3373
|
let S = 0;
|
|
3259
3374
|
v.dense || (S += 2), v.outlined && S++;
|
|
3260
|
-
let
|
|
3261
|
-
v.dense || (
|
|
3262
|
-
const
|
|
3375
|
+
let P = 2;
|
|
3376
|
+
v.dense || (P = 4);
|
|
3377
|
+
const T = A(() => {
|
|
3263
3378
|
const e = {
|
|
3264
3379
|
propsCommandButton: w,
|
|
3265
3380
|
propsCommandPopup: {
|
|
@@ -3267,7 +3382,7 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3267
3382
|
...o
|
|
3268
3383
|
}
|
|
3269
3384
|
};
|
|
3270
|
-
return s ? s(e) : m ? M(
|
|
3385
|
+
return s ? s(e) : m ? M(tr, { children: Tr(m, {
|
|
3271
3386
|
dividerOrientation: "vertical",
|
|
3272
3387
|
groupKey: i,
|
|
3273
3388
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3283,13 +3398,13 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3283
3398
|
i,
|
|
3284
3399
|
u
|
|
3285
3400
|
]);
|
|
3286
|
-
return M(
|
|
3401
|
+
return M(f, {
|
|
3287
3402
|
variant: "dense",
|
|
3288
3403
|
sx: {
|
|
3289
3404
|
minHeight: "unset",
|
|
3290
3405
|
height: "unset",
|
|
3291
|
-
paddingTop: `${
|
|
3292
|
-
paddingBottom: `${
|
|
3406
|
+
paddingTop: `${P}px`,
|
|
3407
|
+
paddingBottom: `${P}px`,
|
|
3293
3408
|
paddingLeft: "6px !important",
|
|
3294
3409
|
paddingRight: "6px !important",
|
|
3295
3410
|
flex: "1 1 0%",
|
|
@@ -3302,13 +3417,13 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3302
3417
|
},
|
|
3303
3418
|
ref: h,
|
|
3304
3419
|
onFocus: (e) => {
|
|
3305
|
-
e.relatedTarget && !
|
|
3420
|
+
e.relatedTarget && !g && x(e.relatedTarget);
|
|
3306
3421
|
},
|
|
3307
3422
|
onBlur: (e) => {
|
|
3308
|
-
|
|
3423
|
+
g && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3309
3424
|
},
|
|
3310
3425
|
onKeyDown: (e) => {
|
|
3311
|
-
|
|
3426
|
+
g && e.which === oe.Escape && g.focus();
|
|
3312
3427
|
},
|
|
3313
3428
|
...d,
|
|
3314
3429
|
children: M("div", {
|
|
@@ -3317,55 +3432,55 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3317
3432
|
flex: "1 1 100%",
|
|
3318
3433
|
display: "flex",
|
|
3319
3434
|
flexWrap: "wrap",
|
|
3320
|
-
rowGap: `${
|
|
3435
|
+
rowGap: `${P}px`,
|
|
3321
3436
|
columnGap: `${S}px`,
|
|
3322
3437
|
alignItems: "center",
|
|
3323
3438
|
maxWidth: "100%"
|
|
3324
3439
|
},
|
|
3325
|
-
children: M(
|
|
3440
|
+
children: M(re, {
|
|
3326
3441
|
value: b,
|
|
3327
|
-
children: M(
|
|
3442
|
+
children: M(J, {
|
|
3328
3443
|
value: y,
|
|
3329
|
-
children:
|
|
3444
|
+
children: T
|
|
3330
3445
|
})
|
|
3331
3446
|
})
|
|
3332
3447
|
})
|
|
3333
3448
|
});
|
|
3334
3449
|
}));
|
|
3335
|
-
|
|
3336
|
-
var
|
|
3337
|
-
const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s =
|
|
3450
|
+
$r.displayName = "CommandToolbar";
|
|
3451
|
+
var zr = B($((e, t) => {
|
|
3452
|
+
const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => o ?? (r ? c.resolveMembers(r) : null) ?? null, [
|
|
3338
3453
|
o,
|
|
3339
3454
|
r,
|
|
3340
3455
|
c
|
|
3341
|
-
]), p =
|
|
3456
|
+
]), p = A(() => {
|
|
3342
3457
|
const e = [], t = d ?? [];
|
|
3343
3458
|
for (let r = 0; r < t.length; r++) {
|
|
3344
3459
|
const o = t[r];
|
|
3345
3460
|
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3346
3461
|
}
|
|
3347
3462
|
return e;
|
|
3348
|
-
}, [d]), u =
|
|
3463
|
+
}, [d]), u = he(p);
|
|
3349
3464
|
let m = null, h = null;
|
|
3350
3465
|
for (let e = 0; !m && e < u.length; e++) {
|
|
3351
3466
|
const t = u[e];
|
|
3352
3467
|
t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
|
|
3353
3468
|
}
|
|
3354
|
-
const
|
|
3469
|
+
const g = "icon" === i ? {
|
|
3355
3470
|
icon: h ?? a,
|
|
3356
3471
|
quickCommand: void 0
|
|
3357
3472
|
} : {
|
|
3358
3473
|
quickCommand: m ?? p[0],
|
|
3359
3474
|
icon: void 0
|
|
3360
3475
|
};
|
|
3361
|
-
return M(
|
|
3476
|
+
return M(Rr, {
|
|
3362
3477
|
ref: t,
|
|
3363
3478
|
groupKey: r,
|
|
3364
3479
|
members: o,
|
|
3365
3480
|
registry: c,
|
|
3366
3481
|
...l,
|
|
3367
|
-
...
|
|
3482
|
+
...g
|
|
3368
3483
|
});
|
|
3369
3484
|
}));
|
|
3370
|
-
|
|
3371
|
-
export {
|
|
3485
|
+
zr.displayName = "ToggleGroupButton";
|
|
3486
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, dt as ArrowDownIcon, pt as ArrowRightIcon, lt as ChipStrip, vt as ClosingReason, Cr as CommandButton, Rr as CommandGroup, Pr as CommandPopupButton, $r as CommandToolbar, yr as CommandTooltip, Dt as ContextMenu, He as ExhibitDivider, Mt as ExhibitFloatPanel, Pt as ExhibitFloatProvider, Ot as ExhibitIconButton, Wt as ExhibitMenuHeader, Kt as ExhibitMenuItem, Qt as ExhibitOptionButton, Ht as ExhibitPopupIconButton, jt as ExhibitPopupMenuItem, Bt as ExhibitTooltip, Sr as InputCommandButton, cr as InternalWindow, Ir as LabelIcon, at as LazyLoadErrorPanel, Ft as MenuItemInsets, Te as ModalProvider, Tt as NestingPopupButton, gr as OptionsDialog, tr as OverflowPalette, yt as PopupAutoFocus, kt as PopupButtonType, Xt as SelectedIcon, It as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, zr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Ct as createDownArrow, ft as createExhibitTheme, Ae as createScrollButton, ct as createStrokeShadowFilter, wt as defaultCreatePopupPanel, gt as elevateColor, xt as getScrollbarCssVariables, ht as hexToRGB, Je as hideLoadingPanel, nr as lazyModal, ur as optionIdentity, Zt as registerUtilsMuiLocales, Tr as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, bt as scrollbarTheming, _e as showLoadingPanel, st as strokeShadowFilter, zt as toShortcutElements, br as useInputDialog, ir as useLazyWindow, fr as useOptionsDialog };
|