@sheetxl/utils-mui 0.8.0-beta.10 → 0.8.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{Cijezc4MPpSmVgKY.mjs → DWxAqsopmTKYk46G.mjs} +630 -624
- package/browser/esm/index.mjs +271 -240
- package/browser/esm/{C9y4YEtSjLoI4eoI.mjs → u1uhi8u00MqBLY6C.mjs} +2 -2
- package/node/esm/{CDbyr3-seMLR2Y_3.mjs → CYuCEbb0exvLvO8J.mjs} +1 -1
- package/node/esm/index.mjs +783 -746
- package/package.json +3 -3
- package/types/src/command/CommandGroup.d.ts +1 -1
- package/types/src/command/CommandPopupButton.d.ts +3 -3
- package/types/src/components/ContextMenu.d.ts +2 -2
- package/types/src/components/ScrollButtons.d.ts +3 -3
- package/types/src/components/index.d.ts +1 -0
- package/types/src/components/lazyPanel.d.ts +23 -0
- package/types/src/float/ExhibitFloatPanel.d.ts +4 -4
- package/types/src/float/ExhibitFloatProvider.d.ts +1 -1
- package/types/src/float/ExhibitPopup.d.ts +15 -7
package/node/esm/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
|
|
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
|
|
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 f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
|
|
8
8
|
import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
|
-
import { Children as P,
|
|
10
|
-
import
|
|
11
|
-
import { alpha as
|
|
12
|
-
import { CommonUtils as
|
|
13
|
-
import { Command as
|
|
9
|
+
import { Children as P, Suspense as T, cloneElement as R, createContext as D, forwardRef as I, isValidElement as $, memo as z, useCallback as B, useContext as L, useEffect as N, useId as O, useLayoutEffect as E, useMemo as A, useReducer as F, useRef as K, useState as W } from "react";
|
|
10
|
+
import H from "clsx";
|
|
11
|
+
import { alpha as V, darken as q, lighten as j } from "@mui/system";
|
|
12
|
+
import { CommonUtils as Q, ErrorUtils as G, defineLazyModule as U } from "@sheetxl/utils";
|
|
13
|
+
import { Command as X, CommandButtonType as Y, CommandFocusProvider as _, DynamicIcon as J, FloatPopper as Z, FloatProvider as ee, FloatStackProvider as te, KeyCodes as re, KeyModifiers as oe, NotifierType as ne, ReactUtils as ie, RenderSlot as ae, ScrollbarOrientation as le, defaultRenderScrollButtonEdge as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
|
|
14
14
|
import { useMergeRefs as Se } from "react-merge-refs";
|
|
15
15
|
import { deepmerge as Pe } from "@mui/utils";
|
|
16
16
|
import Te, { useModal as Re } from "mui-modal-provider";
|
|
@@ -28,32 +28,32 @@ var Ne = {
|
|
|
28
28
|
paddingLeft: (e) => e.spacing(.25),
|
|
29
29
|
paddingRight: (e) => e.spacing(.25)
|
|
30
30
|
};
|
|
31
|
-
function Oe(e,
|
|
32
|
-
const
|
|
31
|
+
function Oe(e, r) {
|
|
32
|
+
const o = null != r && !1 !== r && "" !== r ? M(b, {
|
|
33
33
|
component: "div",
|
|
34
34
|
sx: Ne,
|
|
35
|
-
children:
|
|
35
|
+
children: r
|
|
36
36
|
}) : null;
|
|
37
|
-
return e &&
|
|
37
|
+
return e && o ? S(t, {
|
|
38
38
|
sx: {
|
|
39
39
|
display: "flex",
|
|
40
40
|
alignItems: "center"
|
|
41
41
|
},
|
|
42
|
-
children: [e,
|
|
43
|
-
}) : e ??
|
|
42
|
+
children: [e, o]
|
|
43
|
+
}) : e ?? o ?? void 0;
|
|
44
44
|
}
|
|
45
45
|
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
46
|
-
const
|
|
47
|
-
return M(C, t ? { children:
|
|
48
|
-
},
|
|
46
|
+
const r = Ce();
|
|
47
|
+
return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
48
|
+
}, Ae = (e) => {
|
|
49
49
|
const t = {
|
|
50
50
|
style: { cursor: "pointer" },
|
|
51
51
|
...e
|
|
52
52
|
};
|
|
53
|
-
let
|
|
53
|
+
let r = se(t);
|
|
54
54
|
if (void 0 !== e.isBefore && !e.disabled) {
|
|
55
55
|
const t = e.orientation === le.Horizontal;
|
|
56
|
-
|
|
56
|
+
r = M(Bt, {
|
|
57
57
|
title: M(Ee, {
|
|
58
58
|
isHorizontal: t,
|
|
59
59
|
isBefore: e.isBefore
|
|
@@ -62,12 +62,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
62
62
|
enterNextDelay: 1600,
|
|
63
63
|
children: e.disabled ? M("div", {
|
|
64
64
|
style: { display: "flex" },
|
|
65
|
-
children:
|
|
66
|
-
}) :
|
|
65
|
+
children: r
|
|
66
|
+
}) : r
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
70
|
-
},
|
|
69
|
+
return r;
|
|
70
|
+
}, Fe = (e, t, r, o) => {
|
|
71
71
|
const { style: n, ...i } = e, a = M(d, {
|
|
72
72
|
component: "div",
|
|
73
73
|
...i,
|
|
@@ -77,12 +77,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
77
77
|
},
|
|
78
78
|
sx: { padding: "0" },
|
|
79
79
|
color: e.disabled ? void 0 : "primary",
|
|
80
|
-
"aria-label":
|
|
80
|
+
"aria-label": r,
|
|
81
81
|
size: "small",
|
|
82
82
|
children: t
|
|
83
83
|
});
|
|
84
|
-
return M(
|
|
85
|
-
title: e.disabled ?
|
|
84
|
+
return M(Bt, {
|
|
85
|
+
title: e.disabled ? r : o,
|
|
86
86
|
enterDelay: 800,
|
|
87
87
|
enterNextDelay: 1600,
|
|
88
88
|
children: e.disabled ? M("div", {
|
|
@@ -90,20 +90,20 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
90
90
|
children: a
|
|
91
91
|
}) : a
|
|
92
92
|
});
|
|
93
|
-
}, Ke = (e) =>
|
|
93
|
+
}, Ke = (e) => Fe(e, le.Horizontal ? M(J, {
|
|
94
94
|
iconKey: "ArrowLeft",
|
|
95
95
|
size: "small"
|
|
96
|
-
}) : M(
|
|
96
|
+
}) : M(J, {
|
|
97
97
|
iconKey: "ArrowUpward",
|
|
98
98
|
size: "small"
|
|
99
|
-
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) =>
|
|
99
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Fe(e, le.Horizontal ? M(J, {
|
|
100
100
|
iconKey: "ArrowRight",
|
|
101
101
|
size: "small"
|
|
102
|
-
}) : M(
|
|
102
|
+
}) : M(J, {
|
|
103
103
|
iconKey: "ArrowDownward",
|
|
104
104
|
size: "small"
|
|
105
|
-
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He =
|
|
106
|
-
const { orientation:
|
|
105
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = z(I((e, t) => {
|
|
106
|
+
const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
|
|
107
107
|
return M(s, {
|
|
108
108
|
ref: t,
|
|
109
109
|
sx: {
|
|
@@ -113,15 +113,15 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
113
113
|
minHeight: i ? "1em" : void 0,
|
|
114
114
|
minWidth: i ? void 0 : "1em",
|
|
115
115
|
borderColor: (e) => e.palette.divider,
|
|
116
|
-
...
|
|
116
|
+
...o
|
|
117
117
|
},
|
|
118
|
-
orientation:
|
|
118
|
+
orientation: r,
|
|
119
119
|
variant: "middle",
|
|
120
120
|
flexItem: !0,
|
|
121
121
|
...n
|
|
122
122
|
});
|
|
123
|
-
})), Ve = "_traverse-ellipsis_14l1h_1", qe =
|
|
124
|
-
const { sx:
|
|
123
|
+
})), Ve = "_traverse-ellipsis_14l1h_1", qe = z((e) => {
|
|
124
|
+
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
125
125
|
return M(t, {
|
|
126
126
|
sx: {
|
|
127
127
|
width: `${n}px`,
|
|
@@ -131,7 +131,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
131
131
|
stroke: (e) => e.palette.grey[600],
|
|
132
132
|
fill: "none"
|
|
133
133
|
},
|
|
134
|
-
...
|
|
134
|
+
...r
|
|
135
135
|
},
|
|
136
136
|
...i,
|
|
137
137
|
children: S("svg", {
|
|
@@ -156,7 +156,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
156
156
|
y2: "50.5",
|
|
157
157
|
children: M("animateTransform", {
|
|
158
158
|
attributeName: "transform",
|
|
159
|
-
dur: `${
|
|
159
|
+
dur: `${o}s`,
|
|
160
160
|
type: "rotate",
|
|
161
161
|
from: "0 50 50",
|
|
162
162
|
to: "360 50 50",
|
|
@@ -173,7 +173,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
173
173
|
y2: "74",
|
|
174
174
|
children: M("animateTransform", {
|
|
175
175
|
attributeName: "transform",
|
|
176
|
-
dur: 7.5 *
|
|
176
|
+
dur: 7.5 * o + "s",
|
|
177
177
|
type: "rotate",
|
|
178
178
|
from: "0 50 50",
|
|
179
179
|
to: "360 50 50",
|
|
@@ -183,8 +183,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
183
183
|
]
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
|
-
}), je =
|
|
187
|
-
const { sx:
|
|
186
|
+
}), je = z((e) => {
|
|
187
|
+
const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
|
|
188
188
|
return M(t, {
|
|
189
189
|
sx: {
|
|
190
190
|
width: `${n}px`,
|
|
@@ -196,7 +196,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
196
196
|
fill: "none",
|
|
197
197
|
opacity: .5
|
|
198
198
|
},
|
|
199
|
-
...
|
|
199
|
+
...r
|
|
200
200
|
},
|
|
201
201
|
...i,
|
|
202
202
|
children: S("svg", {
|
|
@@ -215,7 +215,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
215
215
|
children: M("animateTransform", {
|
|
216
216
|
attributeName: "transform",
|
|
217
217
|
type: "rotate",
|
|
218
|
-
dur: 1 *
|
|
218
|
+
dur: 1 * o + "s",
|
|
219
219
|
from: "0 50 50",
|
|
220
220
|
to: "360 50 50",
|
|
221
221
|
repeatCount: "indefinite"
|
|
@@ -223,14 +223,14 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
223
223
|
})]
|
|
224
224
|
})
|
|
225
225
|
});
|
|
226
|
-
}), Qe =
|
|
227
|
-
const { sx:
|
|
226
|
+
}), Qe = z((e) => {
|
|
227
|
+
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
228
228
|
return M(t, {
|
|
229
229
|
sx: {
|
|
230
230
|
width: `${n}px`,
|
|
231
231
|
height: `${n}px`,
|
|
232
232
|
zIndex: 1,
|
|
233
|
-
...
|
|
233
|
+
...r
|
|
234
234
|
},
|
|
235
235
|
...i,
|
|
236
236
|
children: S("svg", {
|
|
@@ -245,7 +245,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
245
245
|
r: "6",
|
|
246
246
|
children: M("animate", {
|
|
247
247
|
attributeName: "opacity",
|
|
248
|
-
dur: `${
|
|
248
|
+
dur: `${o}s`,
|
|
249
249
|
values: "0;1;0",
|
|
250
250
|
repeatCount: "indefinite",
|
|
251
251
|
begin: "0.1"
|
|
@@ -258,7 +258,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
258
258
|
r: "6",
|
|
259
259
|
children: M("animate", {
|
|
260
260
|
attributeName: "opacity",
|
|
261
|
-
dur: `${
|
|
261
|
+
dur: `${o}s`,
|
|
262
262
|
values: "0;1;0",
|
|
263
263
|
repeatCount: "indefinite",
|
|
264
264
|
begin: "0.2"
|
|
@@ -271,7 +271,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
271
271
|
r: "6",
|
|
272
272
|
children: M("animate", {
|
|
273
273
|
attributeName: "opacity",
|
|
274
|
-
dur: `${
|
|
274
|
+
dur: `${o}s`,
|
|
275
275
|
values: "0;1;0",
|
|
276
276
|
repeatCount: "indefinite",
|
|
277
277
|
begin: "0.3"
|
|
@@ -280,8 +280,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
280
280
|
]
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
|
-
}), Ge =
|
|
284
|
-
const { sx:
|
|
283
|
+
}), Ge = z((e) => {
|
|
284
|
+
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
285
285
|
return M(t, {
|
|
286
286
|
sx: {
|
|
287
287
|
width: `${n}px`,
|
|
@@ -291,7 +291,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
291
291
|
fill: (e) => e.palette.grey[600],
|
|
292
292
|
stroke: "none"
|
|
293
293
|
},
|
|
294
|
-
...
|
|
294
|
+
...r
|
|
295
295
|
},
|
|
296
296
|
...i,
|
|
297
297
|
children: S("svg", {
|
|
@@ -306,7 +306,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
306
306
|
r: "6",
|
|
307
307
|
children: M("animateTransform", {
|
|
308
308
|
attributeName: "transform",
|
|
309
|
-
dur: `${
|
|
309
|
+
dur: `${o}s`,
|
|
310
310
|
type: "translate",
|
|
311
311
|
values: "0 15 ; 0 -15; 0 15",
|
|
312
312
|
repeatCount: "indefinite",
|
|
@@ -320,7 +320,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
320
320
|
r: "6",
|
|
321
321
|
children: M("animateTransform", {
|
|
322
322
|
attributeName: "transform",
|
|
323
|
-
dur: `${
|
|
323
|
+
dur: `${o}s`,
|
|
324
324
|
type: "translate",
|
|
325
325
|
values: "0 10 ; 0 -10; 0 10",
|
|
326
326
|
repeatCount: "indefinite",
|
|
@@ -334,7 +334,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
334
334
|
r: "6",
|
|
335
335
|
children: M("animateTransform", {
|
|
336
336
|
attributeName: "transform",
|
|
337
|
-
dur: `${
|
|
337
|
+
dur: `${o}s`,
|
|
338
338
|
type: "translate",
|
|
339
339
|
values: "0 5 ; 0 -5; 0 5",
|
|
340
340
|
repeatCount: "indefinite",
|
|
@@ -344,8 +344,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
344
344
|
]
|
|
345
345
|
})
|
|
346
346
|
});
|
|
347
|
-
}), Ue =
|
|
348
|
-
const { sx:
|
|
347
|
+
}), Ue = z((e) => {
|
|
348
|
+
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
349
349
|
return M(t, {
|
|
350
350
|
sx: {
|
|
351
351
|
width: `${n}px`,
|
|
@@ -361,7 +361,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
361
361
|
opacity: .8,
|
|
362
362
|
stroke: (e) => e.palette.background.paper
|
|
363
363
|
},
|
|
364
|
-
...
|
|
364
|
+
...r
|
|
365
365
|
},
|
|
366
366
|
...i,
|
|
367
367
|
children: S("svg", {
|
|
@@ -382,7 +382,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
382
382
|
r: "6",
|
|
383
383
|
children: M("animateTransform", {
|
|
384
384
|
attributeName: "transform",
|
|
385
|
-
dur: `${
|
|
385
|
+
dur: `${o}s`,
|
|
386
386
|
type: "rotate",
|
|
387
387
|
from: "0 50 48",
|
|
388
388
|
to: "360 50 52",
|
|
@@ -391,8 +391,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
391
391
|
})]
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
|
-
}), Xe =
|
|
395
|
-
const { sx:
|
|
394
|
+
}), Xe = z((e) => {
|
|
395
|
+
const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
|
|
396
396
|
return S(t, {
|
|
397
397
|
sx: {
|
|
398
398
|
width: `${i}px`,
|
|
@@ -403,9 +403,9 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
403
403
|
width: () => `${n}px`,
|
|
404
404
|
height: () => `${n}px`
|
|
405
405
|
},
|
|
406
|
-
...
|
|
406
|
+
...r
|
|
407
407
|
},
|
|
408
|
-
className:
|
|
408
|
+
className: H(Ve, "animated-icon"),
|
|
409
409
|
...l,
|
|
410
410
|
children: [
|
|
411
411
|
M("div", { className: "primary" }),
|
|
@@ -417,22 +417,22 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
417
417
|
}), Ye = M(je, {}), _e = (e, t) => {
|
|
418
418
|
if (!e) return null;
|
|
419
419
|
if (void 0 !== t) {
|
|
420
|
-
const
|
|
421
|
-
|
|
420
|
+
const r = e.querySelector("[data-sxl-loading-label]");
|
|
421
|
+
r && (r.textContent = t);
|
|
422
422
|
}
|
|
423
423
|
if (e.classList.contains("animating")) return null;
|
|
424
424
|
e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
|
|
425
|
-
const
|
|
426
|
-
return 0 ===
|
|
427
|
-
const t = setTimeout(e, 250),
|
|
425
|
+
const r = "function" == typeof e.getAnimations ? e.getAnimations() : null;
|
|
426
|
+
return 0 === r?.length ? null : new Promise((e) => {
|
|
427
|
+
const t = setTimeout(e, 250), o = () => {
|
|
428
428
|
clearTimeout(t), e();
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
r ? Promise.all(r.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
|
|
431
431
|
});
|
|
432
432
|
}, Je = (e) => {
|
|
433
433
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
434
|
-
}, Ze =
|
|
435
|
-
const { sx:
|
|
434
|
+
}, Ze = z(I((e, r) => {
|
|
435
|
+
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, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
|
|
436
436
|
"data-sxl-loading-label": "",
|
|
437
437
|
variant: "caption",
|
|
438
438
|
component: "div",
|
|
@@ -472,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
472
472
|
}
|
|
473
473
|
})
|
|
474
474
|
});
|
|
475
|
-
}, [h, p]), v =
|
|
475
|
+
}, [h, p]), v = K(null), w = Se([v, r]), k = A(() => {
|
|
476
476
|
let e = S(t, {
|
|
477
477
|
sx: {
|
|
478
478
|
display: "flex",
|
|
@@ -482,7 +482,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
482
482
|
},
|
|
483
483
|
children: [x, y]
|
|
484
484
|
});
|
|
485
|
-
return !0 === s && (e = M(
|
|
485
|
+
return !0 === s && (e = M(f, {
|
|
486
486
|
elevation: 0,
|
|
487
487
|
sx: {
|
|
488
488
|
display: "flex",
|
|
@@ -501,7 +501,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
501
501
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
502
502
|
boxShadow: (e) => e.shadows[2],
|
|
503
503
|
"& .primary": {
|
|
504
|
-
background: (e) => `${
|
|
504
|
+
background: (e) => `${V(e.palette.info.contrastText, .9)} !important`,
|
|
505
505
|
boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
|
|
506
506
|
boxSizing: "content-box",
|
|
507
507
|
border: "solid transparent"
|
|
@@ -510,7 +510,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
510
510
|
},
|
|
511
511
|
children: e
|
|
512
512
|
})), M(t, {
|
|
513
|
-
...
|
|
513
|
+
...g,
|
|
514
514
|
ref: w,
|
|
515
515
|
className: "animatable",
|
|
516
516
|
sx: {
|
|
@@ -540,7 +540,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
540
540
|
opacity: 0,
|
|
541
541
|
transition: "opacity 210ms"
|
|
542
542
|
},
|
|
543
|
-
...
|
|
543
|
+
...o,
|
|
544
544
|
...n
|
|
545
545
|
},
|
|
546
546
|
children: S(t, {
|
|
@@ -572,56 +572,56 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
572
572
|
})
|
|
573
573
|
});
|
|
574
574
|
}, [
|
|
575
|
-
|
|
575
|
+
o,
|
|
576
576
|
s,
|
|
577
577
|
x,
|
|
578
578
|
y,
|
|
579
579
|
w
|
|
580
|
-
]), C =
|
|
580
|
+
]), C = K(!1);
|
|
581
581
|
return ve(() => {
|
|
582
582
|
if (!1 === c) return;
|
|
583
583
|
const e = v.current;
|
|
584
584
|
e && !C.current && (C.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
|
|
585
|
-
}, [v.current, c]),
|
|
585
|
+
}, [v.current, c]), N(() => () => {
|
|
586
586
|
C.current && (v.current?.classList.remove("animating"), C.current = !1, a?.());
|
|
587
587
|
}, []), k;
|
|
588
588
|
}));
|
|
589
589
|
Ze.displayName = "AnimatedLoadingPanel";
|
|
590
|
-
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,
|
|
590
|
+
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) => {
|
|
591
591
|
if (!e) return "";
|
|
592
592
|
try {
|
|
593
593
|
e = new URL(e).pathname;
|
|
594
594
|
} catch {}
|
|
595
595
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
596
|
-
},
|
|
597
|
-
const n = Ce(), [i, a] =
|
|
596
|
+
}, ot = z(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
597
|
+
const n = Ce(), [i, a] = W(null);
|
|
598
598
|
if (!e?.stack) return null;
|
|
599
|
-
const l =
|
|
599
|
+
const l = G.collectErrorChain(e).reverse(), s = [];
|
|
600
600
|
l.forEach(({ error: e }, t) => {
|
|
601
|
-
const
|
|
601
|
+
const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
602
602
|
let t = e.match(et);
|
|
603
603
|
if (t) {
|
|
604
|
-
const [, e = "",
|
|
604
|
+
const [, e = "", r, o, n, i] = t;
|
|
605
605
|
return {
|
|
606
|
-
line: `at ${e ? e + " " : ""}${
|
|
607
|
-
location: `${
|
|
606
|
+
line: `at ${e ? e + " " : ""}${r}`,
|
|
607
|
+
location: `${rt(o).split(/[\\/]/).pop()}:${n}:${i}`
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
if (t = e.match(tt), t) {
|
|
611
|
-
const [, e = "",
|
|
611
|
+
const [, e = "", r, o, n] = t, i = rt(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
|
|
612
612
|
return {
|
|
613
613
|
line: `at ${e ? e + " " : ""}${a}`,
|
|
614
|
-
location: i !== a ? `${i}:${
|
|
614
|
+
location: i !== a ? `${i}:${o}:${n}` : void 0
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
return { line: e.trim() };
|
|
618
618
|
});
|
|
619
|
-
|
|
620
|
-
line: t ? `Caused by: ${
|
|
619
|
+
r.length && (s.push({
|
|
620
|
+
line: t ? `Caused by: ${r[0].line}` : r[0].line,
|
|
621
621
|
isBoundary: !0
|
|
622
|
-
}), s.push(...
|
|
622
|
+
}), s.push(...r.slice(1)));
|
|
623
623
|
});
|
|
624
|
-
const c =
|
|
624
|
+
const c = r ? s.slice(0, r) : s, p = r && s.length > r;
|
|
625
625
|
return S(t, {
|
|
626
626
|
sx: {
|
|
627
627
|
width: "100%",
|
|
@@ -664,8 +664,8 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
664
664
|
const t = s.map((t) => {
|
|
665
665
|
if (t.isBoundary) return e = 0, t.line;
|
|
666
666
|
e++;
|
|
667
|
-
let
|
|
668
|
-
return e >= 1 && (
|
|
667
|
+
let r = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
|
|
668
|
+
return e >= 1 && (r = ` ${r}`), r;
|
|
669
669
|
}).join("\n");
|
|
670
670
|
await navigator.clipboard.writeText(t), a("Copied!"), setTimeout(() => a(null), 2e3);
|
|
671
671
|
} catch (e) {
|
|
@@ -678,7 +678,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
678
678
|
"&:hover": { opacity: 1 }
|
|
679
679
|
},
|
|
680
680
|
title: n("stackTrace.copy"),
|
|
681
|
-
children: M(
|
|
681
|
+
children: M(J, {
|
|
682
682
|
iconKey: "ContentCopy",
|
|
683
683
|
style: { fontSize: "0.875rem" }
|
|
684
684
|
})
|
|
@@ -694,7 +694,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
694
694
|
"&:hover": { opacity: 1 }
|
|
695
695
|
},
|
|
696
696
|
title: n("stackTrace.log"),
|
|
697
|
-
children: M(
|
|
697
|
+
children: M(J, {
|
|
698
698
|
iconKey: "BugReport",
|
|
699
699
|
style: { fontSize: "0.875rem" }
|
|
700
700
|
})
|
|
@@ -712,12 +712,12 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
712
712
|
fontSize: "0.75rem",
|
|
713
713
|
lineHeight: 1.4
|
|
714
714
|
},
|
|
715
|
-
children: [c.map((e,
|
|
715
|
+
children: [c.map((e, r) => e.isBoundary ? M(t, {
|
|
716
716
|
sx: {
|
|
717
717
|
py: 1,
|
|
718
|
-
mt:
|
|
718
|
+
mt: r > 0 ? 1 : 0,
|
|
719
719
|
mb: .5,
|
|
720
|
-
borderTop:
|
|
720
|
+
borderTop: r > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
|
|
721
721
|
},
|
|
722
722
|
children: M(b, {
|
|
723
723
|
variant: "caption",
|
|
@@ -730,7 +730,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
730
730
|
},
|
|
731
731
|
children: e.line
|
|
732
732
|
})
|
|
733
|
-
}, `error-${
|
|
733
|
+
}, `error-${r}`) : S(t, {
|
|
734
734
|
sx: {
|
|
735
735
|
display: "flex",
|
|
736
736
|
alignItems: "flex-start",
|
|
@@ -739,7 +739,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
739
739
|
pl: 1,
|
|
740
740
|
"&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
|
|
741
741
|
},
|
|
742
|
-
children: [!
|
|
742
|
+
children: [!o && M(b, {
|
|
743
743
|
variant: "caption",
|
|
744
744
|
component: "div",
|
|
745
745
|
sx: {
|
|
@@ -749,7 +749,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
749
749
|
textAlign: "right",
|
|
750
750
|
userSelect: "none"
|
|
751
751
|
},
|
|
752
|
-
children:
|
|
752
|
+
children: r + 1
|
|
753
753
|
}), S(t, {
|
|
754
754
|
sx: {
|
|
755
755
|
flex: 1,
|
|
@@ -777,7 +777,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
777
777
|
children: e.location
|
|
778
778
|
})]
|
|
779
779
|
})]
|
|
780
|
-
}, `stack-${
|
|
780
|
+
}, `stack-${r}`)), p && M(b, {
|
|
781
781
|
variant: "caption",
|
|
782
782
|
component: "div",
|
|
783
783
|
sx: {
|
|
@@ -788,14 +788,14 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
788
788
|
display: "block",
|
|
789
789
|
mt: 1
|
|
790
790
|
},
|
|
791
|
-
children: n("stackTrace.moreFrames", { count: s.length -
|
|
791
|
+
children: n("stackTrace.moreFrames", { count: s.length - r })
|
|
792
792
|
})]
|
|
793
793
|
})]
|
|
794
794
|
});
|
|
795
795
|
});
|
|
796
|
-
|
|
797
|
-
var nt =
|
|
798
|
-
const { sx:
|
|
796
|
+
ot.displayName = "StackTrace";
|
|
797
|
+
var nt = z(I((e, r) => {
|
|
798
|
+
const { sx: o, icon: n = M(J, {
|
|
799
799
|
iconKey: "Error",
|
|
800
800
|
style: { fontSize: 48 }
|
|
801
801
|
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
|
|
@@ -806,7 +806,7 @@ var nt = B($((e, o) => {
|
|
|
806
806
|
d
|
|
807
807
|
]);
|
|
808
808
|
return A(() => M(t, {
|
|
809
|
-
ref:
|
|
809
|
+
ref: r,
|
|
810
810
|
sx: {
|
|
811
811
|
boxSizing: "border-box",
|
|
812
812
|
alignItems: "center",
|
|
@@ -816,7 +816,7 @@ var nt = B($((e, o) => {
|
|
|
816
816
|
overflow: "hidden",
|
|
817
817
|
width: "100%",
|
|
818
818
|
height: "100%",
|
|
819
|
-
...
|
|
819
|
+
...o
|
|
820
820
|
},
|
|
821
821
|
...c,
|
|
822
822
|
children: S(t, {
|
|
@@ -840,7 +840,7 @@ var nt = B($((e, o) => {
|
|
|
840
840
|
height: "100%",
|
|
841
841
|
boxSizing: "border-box"
|
|
842
842
|
}
|
|
843
|
-
}), M(
|
|
843
|
+
}), M(f, {
|
|
844
844
|
elevation: 0,
|
|
845
845
|
sx: {
|
|
846
846
|
display: "flex",
|
|
@@ -879,7 +879,7 @@ var nt = B($((e, o) => {
|
|
|
879
879
|
display: "flex",
|
|
880
880
|
color: (e) => e.palette.error.main
|
|
881
881
|
},
|
|
882
|
-
children: "string" == typeof n ? M(
|
|
882
|
+
children: "string" == typeof n ? M(J, {
|
|
883
883
|
iconKey: n,
|
|
884
884
|
style: { fontSize: 48 }
|
|
885
885
|
}) : n
|
|
@@ -889,14 +889,14 @@ var nt = B($((e, o) => {
|
|
|
889
889
|
})]
|
|
890
890
|
})
|
|
891
891
|
}), [
|
|
892
|
-
|
|
892
|
+
o,
|
|
893
893
|
n,
|
|
894
894
|
p
|
|
895
895
|
]);
|
|
896
896
|
}));
|
|
897
897
|
nt.displayName = "StackTraceErrorPanel";
|
|
898
|
-
var it = (e,
|
|
899
|
-
if (
|
|
898
|
+
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
899
|
+
if ($(e)) return e;
|
|
900
900
|
if (e instanceof Error) return S(t, {
|
|
901
901
|
sx: {
|
|
902
902
|
display: "flex",
|
|
@@ -928,7 +928,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
928
928
|
},
|
|
929
929
|
children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
|
|
930
930
|
}) : null,
|
|
931
|
-
!
|
|
931
|
+
!r && M(ot, {
|
|
932
932
|
error: e,
|
|
933
933
|
hideLineNumbers: !0
|
|
934
934
|
})
|
|
@@ -945,8 +945,8 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
945
945
|
},
|
|
946
946
|
children: a
|
|
947
947
|
});
|
|
948
|
-
}, at =
|
|
949
|
-
const { error:
|
|
948
|
+
}, at = z((e) => {
|
|
949
|
+
const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
|
|
950
950
|
return M(nt, {
|
|
951
951
|
hideStackTrace: !0,
|
|
952
952
|
error: S(t, {
|
|
@@ -960,7 +960,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
960
960
|
variant: "body2",
|
|
961
961
|
component: "div",
|
|
962
962
|
children: l
|
|
963
|
-
}), i ? M(
|
|
963
|
+
}), i ? M(r, {
|
|
964
964
|
variant: "outlined",
|
|
965
965
|
size: "small",
|
|
966
966
|
onClick: i,
|
|
@@ -970,25 +970,32 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
970
970
|
...n
|
|
971
971
|
});
|
|
972
972
|
});
|
|
973
|
+
function lt(e) {
|
|
974
|
+
const t = pe(e, { renderError: ({ error: e }) => M(at, { error: e }) });
|
|
975
|
+
return (e) => M(T, {
|
|
976
|
+
fallback: M(Ze, {}),
|
|
977
|
+
children: M(t, { ...e })
|
|
978
|
+
});
|
|
979
|
+
}
|
|
973
980
|
at.displayName = "LazyLoadErrorPanel";
|
|
974
|
-
var
|
|
981
|
+
var st = z(I((e, r) => {
|
|
975
982
|
const { chips: n, sx: i, ...a } = e, l = A(() => {
|
|
976
983
|
if (!n) return null;
|
|
977
|
-
const e = Array.isArray(n) ? n : [n], t = [],
|
|
978
|
-
for (let n = 0; n <
|
|
979
|
-
const
|
|
984
|
+
const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
|
|
985
|
+
for (let n = 0; n < r; n++) {
|
|
986
|
+
const r = e[n];
|
|
980
987
|
let i = null;
|
|
981
|
-
"string" == typeof
|
|
982
|
-
label:
|
|
988
|
+
"string" == typeof r ? i = M(o, {
|
|
989
|
+
label: r,
|
|
983
990
|
color: "primary",
|
|
984
991
|
size: "small",
|
|
985
992
|
sx: { scale: "0.8" }
|
|
986
|
-
}, "chip-" + n) :
|
|
993
|
+
}, "chip-" + n) : R(r, { key: "chip-" + n }), t.push(i);
|
|
987
994
|
}
|
|
988
995
|
return t;
|
|
989
996
|
}, [n]);
|
|
990
997
|
return M(t, {
|
|
991
|
-
ref:
|
|
998
|
+
ref: r,
|
|
992
999
|
sx: {
|
|
993
1000
|
display: "flex",
|
|
994
1001
|
flexDirection: "row",
|
|
@@ -999,41 +1006,41 @@ var lt = B($((e, o) => {
|
|
|
999
1006
|
...a,
|
|
1000
1007
|
children: l
|
|
1001
1008
|
});
|
|
1002
|
-
})),
|
|
1009
|
+
})), ct = (e) => {
|
|
1003
1010
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
1004
|
-
},
|
|
1011
|
+
}, dt = (e = 1) => (t) => {
|
|
1005
1012
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
1006
|
-
},
|
|
1013
|
+
}, pt = (e) => M(J, {
|
|
1007
1014
|
...e,
|
|
1008
1015
|
iconKey: "ArrowDownOutline"
|
|
1009
|
-
}),
|
|
1016
|
+
}), ut = (e) => M(J, {
|
|
1010
1017
|
...e,
|
|
1011
1018
|
iconKey: "ArrowRightOutline"
|
|
1012
|
-
}),
|
|
1019
|
+
}), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
|
|
1013
1020
|
if (!e) return e;
|
|
1014
|
-
e = e.replace(
|
|
1015
|
-
return t + t +
|
|
1021
|
+
e = e.replace(mt, function(e, t, r, o) {
|
|
1022
|
+
return t + t + r + r + o + o;
|
|
1016
1023
|
});
|
|
1017
|
-
let
|
|
1018
|
-
return
|
|
1019
|
-
}, gt = function(e, t = .2,
|
|
1024
|
+
let r = ht.exec(e);
|
|
1025
|
+
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;
|
|
1026
|
+
}, gt = function(e, t = .2, r = "light") {
|
|
1020
1027
|
if (!e) return e;
|
|
1021
|
-
let
|
|
1022
|
-
t < 0 && (
|
|
1028
|
+
let o = "dark" !== r;
|
|
1029
|
+
t < 0 && (o = !o, t *= -1), e = ft(e);
|
|
1023
1030
|
try {
|
|
1024
|
-
return
|
|
1031
|
+
return o ? q(e, Math.max(0, Math.min(1, 1 * t))) : j(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
1025
1032
|
} catch {
|
|
1026
1033
|
return e;
|
|
1027
1034
|
}
|
|
1028
|
-
},
|
|
1035
|
+
}, xt = (e) => {
|
|
1029
1036
|
e.stopPropagation();
|
|
1030
|
-
},
|
|
1031
|
-
onMouseDown:
|
|
1032
|
-
onTouchStart:
|
|
1033
|
-
},
|
|
1034
|
-
let
|
|
1035
|
-
const
|
|
1036
|
-
"--icon-shadow": e ?
|
|
1037
|
+
}, bt = {
|
|
1038
|
+
onMouseDown: xt,
|
|
1039
|
+
onTouchStart: xt
|
|
1040
|
+
}, yt = (e, t) => {
|
|
1041
|
+
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
1042
|
+
const o = {
|
|
1043
|
+
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
1037
1044
|
"--icon-size": "1.25rem",
|
|
1038
1045
|
"@media (pointer: coarse)": { "--icon-size": "1.75rem" }
|
|
1039
1046
|
};
|
|
@@ -1042,18 +1049,18 @@ var lt = B($((e, o) => {
|
|
|
1042
1049
|
palette: {
|
|
1043
1050
|
mode: e ? "dark" : "light",
|
|
1044
1051
|
text: {
|
|
1045
|
-
secondary: e ?
|
|
1046
|
-
icon: e ?
|
|
1052
|
+
secondary: e ? r.palette.text.secondary : V(r.palette.text.secondary, .75),
|
|
1053
|
+
icon: e ? V(r.palette.text.secondary, .7) : V(r.palette.text.primary, .75)
|
|
1047
1054
|
}
|
|
1048
1055
|
},
|
|
1049
1056
|
components: {
|
|
1050
1057
|
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1051
1058
|
MuiSelect: {
|
|
1052
1059
|
defaultProps: {
|
|
1053
|
-
IconComponent:
|
|
1060
|
+
IconComponent: pt,
|
|
1054
1061
|
MenuProps: {
|
|
1055
1062
|
container: () => document.fullscreenElement,
|
|
1056
|
-
...
|
|
1063
|
+
...bt
|
|
1057
1064
|
}
|
|
1058
1065
|
},
|
|
1059
1066
|
styleOverrides: { icon: { top: "unset" } }
|
|
@@ -1082,7 +1089,7 @@ var lt = B($((e, o) => {
|
|
|
1082
1089
|
MuiMenu: {
|
|
1083
1090
|
defaultProps: {
|
|
1084
1091
|
container: () => document.fullscreenElement,
|
|
1085
|
-
...
|
|
1092
|
+
...bt
|
|
1086
1093
|
},
|
|
1087
1094
|
styleOverrides: { root: {
|
|
1088
1095
|
paddingTop: "2px",
|
|
@@ -1113,11 +1120,11 @@ var lt = B($((e, o) => {
|
|
|
1113
1120
|
} } },
|
|
1114
1121
|
MuiInputBase: { styleOverrides: { root: {} } },
|
|
1115
1122
|
MuiPaper: { styleOverrides: { root: {
|
|
1116
|
-
...
|
|
1123
|
+
...o,
|
|
1117
1124
|
backgroundImage: "none"
|
|
1118
1125
|
} } },
|
|
1119
1126
|
MuiPopover: { styleOverrides: { paper: {
|
|
1120
|
-
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${
|
|
1127
|
+
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
|
|
1121
1128
|
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1122
1129
|
} } },
|
|
1123
1130
|
MuiPopper: { styleOverrides: { root: { "& .menu": {
|
|
@@ -1129,13 +1136,13 @@ var lt = B($((e, o) => {
|
|
|
1129
1136
|
automatic: {
|
|
1130
1137
|
transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1131
1138
|
color: function() {
|
|
1132
|
-
return
|
|
1139
|
+
return r.palette.text.secondary;
|
|
1133
1140
|
}
|
|
1134
1141
|
},
|
|
1135
1142
|
dirty: {
|
|
1136
1143
|
fontStyle: "italic",
|
|
1137
1144
|
color: function() {
|
|
1138
|
-
return
|
|
1145
|
+
return r.palette.text.secondary;
|
|
1139
1146
|
}
|
|
1140
1147
|
}
|
|
1141
1148
|
} }
|
|
@@ -1143,7 +1150,7 @@ var lt = B($((e, o) => {
|
|
|
1143
1150
|
}, i = n;
|
|
1144
1151
|
return t && (i = Pe(n, t)), v(i);
|
|
1145
1152
|
};
|
|
1146
|
-
function
|
|
1153
|
+
function vt(e, t) {
|
|
1147
1154
|
return t = Pe({
|
|
1148
1155
|
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1149
1156
|
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
@@ -1151,7 +1158,7 @@ function yt(e, t) {
|
|
|
1151
1158
|
corner: e.palette.background.paper,
|
|
1152
1159
|
outline: !1
|
|
1153
1160
|
}, t || {}), de({
|
|
1154
|
-
track:
|
|
1161
|
+
track: V(t.track, .2),
|
|
1155
1162
|
thumb: t.thumb,
|
|
1156
1163
|
button: t.button,
|
|
1157
1164
|
active: t.active,
|
|
@@ -1159,10 +1166,10 @@ function yt(e, t) {
|
|
|
1159
1166
|
border: t.track
|
|
1160
1167
|
});
|
|
1161
1168
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const
|
|
1164
|
-
...
|
|
1165
|
-
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...
|
|
1169
|
+
function wt(e, t) {
|
|
1170
|
+
const r = vt(e, t), o = {
|
|
1171
|
+
...r,
|
|
1172
|
+
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1166
1173
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
1167
1174
|
backgroundColor: "var(--scrollbar-track-color)",
|
|
1168
1175
|
width: "var(--scrollbar-width)",
|
|
@@ -1201,22 +1208,22 @@ function vt(e, t) {
|
|
|
1201
1208
|
},
|
|
1202
1209
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1203
1210
|
};
|
|
1204
|
-
return
|
|
1211
|
+
return Q.getPlatform() === Q.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
|
|
1205
1212
|
}
|
|
1206
|
-
var
|
|
1213
|
+
var kt = {
|
|
1207
1214
|
Popup: "popup",
|
|
1208
1215
|
Anchor: "anchor"
|
|
1209
|
-
},
|
|
1216
|
+
}, Ct = {
|
|
1210
1217
|
ByPopup: "popupDone",
|
|
1211
1218
|
Cancel: "popupCancel",
|
|
1212
1219
|
ClickAway: "clickAway"
|
|
1213
|
-
},
|
|
1220
|
+
}, Mt = {
|
|
1214
1221
|
Toolbar: "toolbar",
|
|
1215
1222
|
Menuitem: "menuitem"
|
|
1216
|
-
},
|
|
1217
|
-
const { closeFloat:
|
|
1223
|
+
}, St = (e) => {
|
|
1224
|
+
const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
|
|
1218
1225
|
return M(t, {
|
|
1219
|
-
className:
|
|
1226
|
+
className: H("menu", l),
|
|
1220
1227
|
sx: {
|
|
1221
1228
|
display: "flex",
|
|
1222
1229
|
flexDirection: "column",
|
|
@@ -1227,18 +1234,18 @@ var wt = {
|
|
|
1227
1234
|
...c,
|
|
1228
1235
|
children: a
|
|
1229
1236
|
});
|
|
1230
|
-
},
|
|
1231
|
-
let
|
|
1232
|
-
return
|
|
1237
|
+
}, Pt = (e, t, r) => {
|
|
1238
|
+
let o = "";
|
|
1239
|
+
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
|
|
1233
1240
|
style: {
|
|
1234
1241
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1235
1242
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
1236
|
-
transform:
|
|
1243
|
+
transform: o
|
|
1237
1244
|
},
|
|
1238
1245
|
color: "inherit"
|
|
1239
1246
|
});
|
|
1240
|
-
},
|
|
1241
|
-
const { open:
|
|
1247
|
+
}, Tt = z(I((e, t) => {
|
|
1248
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, renderPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = W(), S = K(null), P = ue((e, t) => {
|
|
1242
1249
|
C(e), c?.(S.current, t);
|
|
1243
1250
|
}, [c]), T = A(() => {
|
|
1244
1251
|
const e = {
|
|
@@ -1246,8 +1253,8 @@ var wt = {
|
|
|
1246
1253
|
floatReference: a,
|
|
1247
1254
|
children: h,
|
|
1248
1255
|
...x
|
|
1249
|
-
}
|
|
1250
|
-
return M(
|
|
1256
|
+
};
|
|
1257
|
+
return M(f, {
|
|
1251
1258
|
elevation: 8,
|
|
1252
1259
|
ref: S,
|
|
1253
1260
|
sx: {
|
|
@@ -1257,10 +1264,13 @@ var wt = {
|
|
|
1257
1264
|
outline: "none",
|
|
1258
1265
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1259
1266
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
1260
|
-
"&.MuiPaper-root": (e) =>
|
|
1267
|
+
"&.MuiPaper-root": (e) => wt(e)
|
|
1261
1268
|
},
|
|
1262
1269
|
tabIndex: 0,
|
|
1263
|
-
children:
|
|
1270
|
+
children: M(ae, {
|
|
1271
|
+
render: l,
|
|
1272
|
+
props: e
|
|
1273
|
+
})
|
|
1264
1274
|
});
|
|
1265
1275
|
}, [
|
|
1266
1276
|
l,
|
|
@@ -1268,12 +1278,12 @@ var wt = {
|
|
|
1268
1278
|
k,
|
|
1269
1279
|
a
|
|
1270
1280
|
]);
|
|
1271
|
-
return M(
|
|
1281
|
+
return M(Z, {
|
|
1272
1282
|
ref: t,
|
|
1273
|
-
anchorEl:
|
|
1283
|
+
anchorEl: o,
|
|
1274
1284
|
anchorPosition: n,
|
|
1275
1285
|
label: i,
|
|
1276
|
-
open:
|
|
1286
|
+
open: r,
|
|
1277
1287
|
onMount: P,
|
|
1278
1288
|
onOpening: v,
|
|
1279
1289
|
onOpen: w,
|
|
@@ -1283,26 +1293,26 @@ var wt = {
|
|
|
1283
1293
|
children: T
|
|
1284
1294
|
});
|
|
1285
1295
|
}));
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}),
|
|
1292
|
-
const { nestedChildren:
|
|
1296
|
+
Tt.displayName = "ExhibitFloatPanel";
|
|
1297
|
+
var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(ee, {
|
|
1298
|
+
...e,
|
|
1299
|
+
renderFloatPanel: Rt,
|
|
1300
|
+
renderPopupPanel: St
|
|
1301
|
+
}), It = z(I((e, r) => {
|
|
1302
|
+
const { nestedChildren: o, variant: n, disabled: i, renderPopupPanel: a, ...l } = e, s = {
|
|
1293
1303
|
disabled: i,
|
|
1294
|
-
|
|
1295
|
-
if (!
|
|
1304
|
+
renderPopupPanel: ue((e) => {
|
|
1305
|
+
if (!o || 0 === o.length) return M(C, {});
|
|
1296
1306
|
const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1297
|
-
for (let e = 0; e <
|
|
1298
|
-
const t =
|
|
1299
|
-
t && s.push(M(
|
|
1307
|
+
for (let e = 0; e < o.length; e++) {
|
|
1308
|
+
const t = o[e];
|
|
1309
|
+
t && s.push(M(It, {
|
|
1300
1310
|
...l,
|
|
1301
1311
|
...t
|
|
1302
1312
|
}, e));
|
|
1303
1313
|
}
|
|
1304
1314
|
return S(t, {
|
|
1305
|
-
ref:
|
|
1315
|
+
ref: r,
|
|
1306
1316
|
sx: {
|
|
1307
1317
|
display: "flex",
|
|
1308
1318
|
flexDirection: "column",
|
|
@@ -1312,50 +1322,50 @@ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
|
|
|
1312
1322
|
children: [
|
|
1313
1323
|
"Children here",
|
|
1314
1324
|
s,
|
|
1315
|
-
M(
|
|
1325
|
+
M(Vt, { children: "Close other children" })
|
|
1316
1326
|
]
|
|
1317
1327
|
});
|
|
1318
|
-
}, [
|
|
1328
|
+
}, [o]),
|
|
1319
1329
|
...l
|
|
1320
1330
|
};
|
|
1321
|
-
return M(n ===
|
|
1322
|
-
})),
|
|
1323
|
-
const { children:
|
|
1324
|
-
if (
|
|
1325
|
-
const c =
|
|
1331
|
+
return M(n === Mt.Toolbar ? jt : Ut, { ...s });
|
|
1332
|
+
})), $t = { placement: "right-start" }, zt = z(I((e, t) => {
|
|
1333
|
+
const { children: r, sx: o, parentFloat: n, renderPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
|
|
1334
|
+
if (!$(r)) throw new Error("Must supply a child component to enable a context menu.");
|
|
1335
|
+
const c = r, d = A(() => ({
|
|
1326
1336
|
...c?.props,
|
|
1327
1337
|
...s,
|
|
1328
1338
|
onContextMenu: (e) => {
|
|
1329
1339
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1330
1340
|
}
|
|
1331
|
-
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] =
|
|
1341
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = W(null), { reference: h, component: f } = ge({
|
|
1332
1342
|
label: l ?? "contextMenu",
|
|
1333
1343
|
propsPopper: a,
|
|
1334
1344
|
parentFloat: n,
|
|
1335
1345
|
anchor: { getBoundingClientRect: () => new DOMRect(u?.clientX || 0, u?.clientY || 0) },
|
|
1336
1346
|
onClose: () => m(null),
|
|
1337
|
-
|
|
1347
|
+
renderPopupPanel: p
|
|
1338
1348
|
});
|
|
1339
|
-
return
|
|
1349
|
+
return N(() => {
|
|
1340
1350
|
u ? h.open(0) : h.close(0);
|
|
1341
|
-
}, [u]), S(C, { children: [
|
|
1342
|
-
})),
|
|
1343
|
-
const { slotProps:
|
|
1351
|
+
}, [u]), S(C, { children: [R(r, d), f] });
|
|
1352
|
+
})), Bt = I((e, t) => {
|
|
1353
|
+
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1344
1354
|
return M(x, {
|
|
1345
1355
|
ref: t,
|
|
1346
1356
|
slotProps: {
|
|
1347
|
-
...
|
|
1357
|
+
...r,
|
|
1348
1358
|
popper: {
|
|
1349
1359
|
container: i ? n : void 0,
|
|
1350
|
-
...
|
|
1360
|
+
...r?.popper || {}
|
|
1351
1361
|
}
|
|
1352
1362
|
},
|
|
1353
|
-
...
|
|
1363
|
+
...o
|
|
1354
1364
|
});
|
|
1355
1365
|
});
|
|
1356
|
-
|
|
1357
|
-
var
|
|
1358
|
-
const { modifier:
|
|
1366
|
+
Bt.displayName = "SimpleTooltip";
|
|
1367
|
+
var Lt = z((e) => {
|
|
1368
|
+
const { modifier: r, sx: o, ...n } = e;
|
|
1359
1369
|
return M(t, {
|
|
1360
1370
|
sx: {
|
|
1361
1371
|
marginLeft: "1px",
|
|
@@ -1366,11 +1376,11 @@ var Bt = B((e) => {
|
|
|
1366
1376
|
borderLeftWidth: "1px",
|
|
1367
1377
|
borderRightWidth: "1px",
|
|
1368
1378
|
borderBottomWidth: "2px",
|
|
1369
|
-
borderTopColor: (e) =>
|
|
1370
|
-
borderLeftColor: (e) =>
|
|
1371
|
-
borderRightColor: (e) =>
|
|
1372
|
-
borderBottomColor: (e) =>
|
|
1373
|
-
backgroundColor: (e) =>
|
|
1379
|
+
borderTopColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1380
|
+
borderLeftColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1381
|
+
borderRightColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1382
|
+
borderBottomColor: (e) => V(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
|
|
1383
|
+
backgroundColor: (e) => V(e.palette.action.hover, e.palette.action.disabledOpacity),
|
|
1374
1384
|
paddingLeft: "4px",
|
|
1375
1385
|
paddingRight: "4px",
|
|
1376
1386
|
minHeight: "1.6em",
|
|
@@ -1379,7 +1389,7 @@ var Bt = B((e) => {
|
|
|
1379
1389
|
alignItems: "center",
|
|
1380
1390
|
boxSizing: "content-box",
|
|
1381
1391
|
overflow: "hidden",
|
|
1382
|
-
...
|
|
1392
|
+
...o
|
|
1383
1393
|
},
|
|
1384
1394
|
...n,
|
|
1385
1395
|
children: M(t, {
|
|
@@ -1390,13 +1400,13 @@ var Bt = B((e) => {
|
|
|
1390
1400
|
textAlign: "center",
|
|
1391
1401
|
"& *": { fontWeight: "500" }
|
|
1392
1402
|
},
|
|
1393
|
-
children:
|
|
1403
|
+
children: r
|
|
1394
1404
|
})
|
|
1395
1405
|
});
|
|
1396
|
-
}),
|
|
1406
|
+
}), Nt = (e, r, o = !1, n = null) => {
|
|
1397
1407
|
if (Array.isArray(e)) {
|
|
1398
1408
|
let i = [], a = e;
|
|
1399
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1409
|
+
for (let e = 0; e < a.length; e++) i.push(Nt(a[e], r, o, n ?? "" + e));
|
|
1400
1410
|
return M(t, {
|
|
1401
1411
|
sx: {
|
|
1402
1412
|
display: "flex",
|
|
@@ -1409,17 +1419,17 @@ var Bt = B((e) => {
|
|
|
1409
1419
|
if (!e?.key) return null;
|
|
1410
1420
|
const i = {};
|
|
1411
1421
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1412
|
-
const a = [], l =
|
|
1413
|
-
return i?.[
|
|
1422
|
+
const a = [], l = Q.getPlatform() === Q.OSType.MacOS || Q.getPlatform() === Q.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
|
|
1423
|
+
return i?.[oe.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
|
|
1414
1424
|
style: { paddingRight: "1px" },
|
|
1415
1425
|
children: l
|
|
1416
|
-
}) }, "ctrl")), a.push("+")), i?.[
|
|
1426
|
+
}) }, "ctrl")), a.push("+")), i?.[oe.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[oe.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
|
|
1417
1427
|
style: { paddingRight: "1px" },
|
|
1418
|
-
children:
|
|
1419
|
-
}) }, "shift")), a.push("+")), i?.[
|
|
1428
|
+
children: r("shortcut.modifier.shift")
|
|
1429
|
+
}) }, "shift")), a.push("+")), i?.[oe.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
|
|
1420
1430
|
style: { paddingTop: "1px" },
|
|
1421
1431
|
children: "⌘"
|
|
1422
|
-
}) :
|
|
1432
|
+
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ie.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1423
1433
|
sx: {
|
|
1424
1434
|
display: "flex",
|
|
1425
1435
|
alignItems: "center",
|
|
@@ -1428,17 +1438,17 @@ var Bt = B((e) => {
|
|
|
1428
1438
|
},
|
|
1429
1439
|
children: a
|
|
1430
1440
|
}, n);
|
|
1431
|
-
},
|
|
1432
|
-
const { disabled:
|
|
1433
|
-
let
|
|
1434
|
-
i && (
|
|
1435
|
-
const [x, y] =
|
|
1436
|
-
|
|
1441
|
+
}, Ot = z(I((e, r) => {
|
|
1442
|
+
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, f = Ce();
|
|
1443
|
+
let g = null;
|
|
1444
|
+
i && (g = Nt(i, f, c));
|
|
1445
|
+
const [x, y] = W(null);
|
|
1446
|
+
N(() => {
|
|
1437
1447
|
Promise.resolve(n).then((e) => {
|
|
1438
1448
|
y(e);
|
|
1439
1449
|
});
|
|
1440
1450
|
}, [n]);
|
|
1441
|
-
return M(
|
|
1451
|
+
return M(Bt, {
|
|
1442
1452
|
slotProps: { popper: {
|
|
1443
1453
|
sx: {
|
|
1444
1454
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1451,9 +1461,9 @@ var Bt = B((e) => {
|
|
|
1451
1461
|
} },
|
|
1452
1462
|
className: "tooltip-wrapper",
|
|
1453
1463
|
tabIndex: -1,
|
|
1454
|
-
title: !
|
|
1464
|
+
title: !o && x ? S(t, {
|
|
1455
1465
|
sx: { maxWidth: `${s}px` },
|
|
1456
|
-
ref:
|
|
1466
|
+
ref: r,
|
|
1457
1467
|
children: [S(t, {
|
|
1458
1468
|
sx: {
|
|
1459
1469
|
display: "flex",
|
|
@@ -1467,9 +1477,9 @@ var Bt = B((e) => {
|
|
|
1467
1477
|
sx: { flex: "1 1 100%" },
|
|
1468
1478
|
children: x
|
|
1469
1479
|
}),
|
|
1470
|
-
a ? M(
|
|
1471
|
-
|
|
1472
|
-
|
|
1480
|
+
a ? M(st, { chips: a }) : null,
|
|
1481
|
+
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1482
|
+
g
|
|
1473
1483
|
]
|
|
1474
1484
|
}), l ? M(b, {
|
|
1475
1485
|
variant: "caption",
|
|
@@ -1494,16 +1504,16 @@ var Bt = B((e) => {
|
|
|
1494
1504
|
children: d
|
|
1495
1505
|
})
|
|
1496
1506
|
});
|
|
1497
|
-
})),
|
|
1498
|
-
const { dense:
|
|
1507
|
+
})), Et = M(J, {}), At = M(J, { iconKey: "Check" }), Ft = z(I((e, r) => {
|
|
1508
|
+
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: f, onBlur: g, ...x } = e, [b, y] = W(!1), v = {
|
|
1499
1509
|
marginRight: "0px",
|
|
1500
|
-
padding:
|
|
1510
|
+
padding: o ? "2px" : "7px",
|
|
1501
1511
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1502
1512
|
color: (e) => p ? void 0 : e.palette.text.icon ?? e.palette.action.active,
|
|
1503
1513
|
border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
|
|
1504
1514
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1505
1515
|
"&.Mui-selected": {
|
|
1506
|
-
backgroundColor: (e) =>
|
|
1516
|
+
backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1507
1517
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1508
1518
|
},
|
|
1509
1519
|
"&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
|
|
@@ -1517,14 +1527,13 @@ var Bt = B((e) => {
|
|
|
1517
1527
|
},
|
|
1518
1528
|
...u
|
|
1519
1529
|
}, w = {
|
|
1520
|
-
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1530
|
+
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1521
1531
|
color: (e) => e.palette.text.primary,
|
|
1522
1532
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1523
|
-
"&.Mui-selected": { backgroundColor: (e) =>
|
|
1533
|
+
"&.Mui-selected": { backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1524
1534
|
"> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1525
|
-
backgroundColor: (e) =>
|
|
1526
|
-
|
|
1527
|
-
},
|
|
1535
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1536
|
+
} },
|
|
1528
1537
|
"&.Mui-focusVisible": {
|
|
1529
1538
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1530
1539
|
border: (e) => `1px solid ${e.palette?.primary?.main}`,
|
|
@@ -1532,24 +1541,24 @@ var Bt = B((e) => {
|
|
|
1532
1541
|
}
|
|
1533
1542
|
};
|
|
1534
1543
|
let k = v;
|
|
1535
|
-
i || (k =
|
|
1544
|
+
i || (k = Q.mergeContentful(v, w));
|
|
1536
1545
|
const C = A(() => {
|
|
1537
1546
|
let e = "function" == typeof l ? l() : l;
|
|
1538
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1547
|
+
return null === e ? e : e || (void 0 === a ? Et : At);
|
|
1539
1548
|
}, [l, a]);
|
|
1540
1549
|
let P = S(d, {
|
|
1541
1550
|
component: "div",
|
|
1542
|
-
ref:
|
|
1543
|
-
className:
|
|
1551
|
+
ref: r,
|
|
1552
|
+
className: H({
|
|
1544
1553
|
"Mui-focusVisible": b,
|
|
1545
1554
|
"Mui-selected": a,
|
|
1546
1555
|
"Mui-disabled": m
|
|
1547
1556
|
}, h),
|
|
1548
1557
|
onFocus: (e) => {
|
|
1549
|
-
y(!0),
|
|
1558
|
+
y(!0), f?.(e);
|
|
1550
1559
|
},
|
|
1551
1560
|
onBlur: (e) => {
|
|
1552
|
-
y(!1),
|
|
1561
|
+
y(!1), g?.(e);
|
|
1553
1562
|
},
|
|
1554
1563
|
size: "small",
|
|
1555
1564
|
TouchRippleProps: { center: !1 },
|
|
@@ -1560,8 +1569,8 @@ var Bt = B((e) => {
|
|
|
1560
1569
|
children: [C, c]
|
|
1561
1570
|
});
|
|
1562
1571
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1563
|
-
const { label: e, description:
|
|
1564
|
-
P = M(
|
|
1572
|
+
const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
|
|
1573
|
+
P = M(Bt, {
|
|
1565
1574
|
disableInteractive: !0,
|
|
1566
1575
|
title: e ?? "",
|
|
1567
1576
|
...p,
|
|
@@ -1570,25 +1579,25 @@ var Bt = B((e) => {
|
|
|
1570
1579
|
children: P
|
|
1571
1580
|
})
|
|
1572
1581
|
});
|
|
1573
|
-
} else P = M(
|
|
1582
|
+
} else P = M(Ot, {
|
|
1574
1583
|
children: P,
|
|
1575
1584
|
...s
|
|
1576
1585
|
});
|
|
1577
1586
|
return P;
|
|
1578
|
-
})),
|
|
1587
|
+
})), Kt = M(J, {}), Wt = {
|
|
1579
1588
|
marginLeft: "4px",
|
|
1580
1589
|
marginRight: "4px",
|
|
1581
1590
|
paddingLeft: "6px",
|
|
1582
1591
|
paddingRight: "18px"
|
|
1583
|
-
},
|
|
1584
|
-
const { icon:
|
|
1585
|
-
const e =
|
|
1586
|
-
icon:
|
|
1592
|
+
}, Ht = (e) => e.icon, Vt = z(I((e, t) => {
|
|
1593
|
+
const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = W(!1), [C, P] = W(!1), T = A(() => {
|
|
1594
|
+
const e = o?.({
|
|
1595
|
+
icon: r,
|
|
1587
1596
|
disabled: p,
|
|
1588
1597
|
selected: a
|
|
1589
1598
|
});
|
|
1590
1599
|
return e ? M(h, {
|
|
1591
|
-
className:
|
|
1600
|
+
className: H({
|
|
1592
1601
|
"Mui-focusVisible": w,
|
|
1593
1602
|
"Mui-hovered": C
|
|
1594
1603
|
}),
|
|
@@ -1599,9 +1608,9 @@ var Bt = B((e) => {
|
|
|
1599
1608
|
children: e
|
|
1600
1609
|
}) : null;
|
|
1601
1610
|
}, [
|
|
1602
|
-
r,
|
|
1603
|
-
p,
|
|
1604
1611
|
o,
|
|
1612
|
+
p,
|
|
1613
|
+
r,
|
|
1605
1614
|
w,
|
|
1606
1615
|
C,
|
|
1607
1616
|
b,
|
|
@@ -1621,7 +1630,7 @@ var Bt = B((e) => {
|
|
|
1621
1630
|
d?.(e), e.isDefaultPrevented() || v?.closeChild();
|
|
1622
1631
|
},
|
|
1623
1632
|
TouchRippleProps: { center: !1 },
|
|
1624
|
-
className:
|
|
1633
|
+
className: H({
|
|
1625
1634
|
"Mui-focusVisible": w,
|
|
1626
1635
|
"Mui-hovered": C
|
|
1627
1636
|
}, n),
|
|
@@ -1639,7 +1648,7 @@ var Bt = B((e) => {
|
|
|
1639
1648
|
lineHeight: 1.5,
|
|
1640
1649
|
paddingTop: "2px",
|
|
1641
1650
|
paddingBottom: "2px",
|
|
1642
|
-
...
|
|
1651
|
+
...Wt,
|
|
1643
1652
|
borderRadius: "4px",
|
|
1644
1653
|
fontSize: "0.875em",
|
|
1645
1654
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1647,22 +1656,22 @@ var Bt = B((e) => {
|
|
|
1647
1656
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1648
1657
|
color: (e) => e.palette.text.secondary,
|
|
1649
1658
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1650
|
-
...
|
|
1659
|
+
...f
|
|
1651
1660
|
},
|
|
1652
1661
|
...y,
|
|
1653
1662
|
children: [
|
|
1654
1663
|
T,
|
|
1655
1664
|
u,
|
|
1656
|
-
x ? M(
|
|
1665
|
+
x ? M(st, { chips: x }) : null
|
|
1657
1666
|
]
|
|
1658
1667
|
});
|
|
1659
|
-
return
|
|
1668
|
+
return g && (R = M(Ot, {
|
|
1660
1669
|
children: R,
|
|
1661
1670
|
placement: "right-start",
|
|
1662
|
-
...
|
|
1671
|
+
...g
|
|
1663
1672
|
})), R;
|
|
1664
|
-
})),
|
|
1665
|
-
const { children:
|
|
1673
|
+
})), qt = z(I((e, t) => {
|
|
1674
|
+
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
1666
1675
|
return M(C, { children: M(b, {
|
|
1667
1676
|
ref: t,
|
|
1668
1677
|
variant: i,
|
|
@@ -1674,16 +1683,16 @@ var Bt = B((e) => {
|
|
|
1674
1683
|
paddingTop: "subtitle1" === i ? "2px" : void 0,
|
|
1675
1684
|
paddingBottom: "subtitle1" === i ? "2px" : void 0,
|
|
1676
1685
|
color: (e) => n ? void 0 : e.palette.text.secondary,
|
|
1677
|
-
...
|
|
1686
|
+
...o
|
|
1678
1687
|
},
|
|
1679
1688
|
...a,
|
|
1680
|
-
children:
|
|
1689
|
+
children: r
|
|
1681
1690
|
}) });
|
|
1682
|
-
})),
|
|
1683
|
-
const { dense:
|
|
1684
|
-
const e = (e, t,
|
|
1691
|
+
})), jt = z(I((e, r) => {
|
|
1692
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, renderPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", renderTooltip: b, icon: y, disabled: v, propsButton: k = Q.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
|
|
1693
|
+
const e = (e, t, r, o = r) => {
|
|
1685
1694
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1686
|
-
return "function" == typeof i ? i(t) : i || (n ?
|
|
1695
|
+
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
1687
1696
|
};
|
|
1688
1697
|
return {
|
|
1689
1698
|
outline: {
|
|
@@ -1694,10 +1703,10 @@ var Bt = B((e) => {
|
|
|
1694
1703
|
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1695
1704
|
text: B.palette.text.icon ?? B.palette.action.active
|
|
1696
1705
|
};
|
|
1697
|
-
}, [n, B]), [N, O] =
|
|
1698
|
-
anchor:
|
|
1706
|
+
}, [n, B]), [N, O] = W(!1), [E, F] = W(!1), [q, j] = W(!1), G = K(null), U = K(null), X = ge({
|
|
1707
|
+
anchor: G.current,
|
|
1699
1708
|
label: i,
|
|
1700
|
-
|
|
1709
|
+
renderPopupPanel: p,
|
|
1701
1710
|
parentFloat: c,
|
|
1702
1711
|
propsPopper: u?.propsPopper,
|
|
1703
1712
|
onClose: () => {
|
|
@@ -1749,24 +1758,24 @@ var Bt = B((e) => {
|
|
|
1749
1758
|
},
|
|
1750
1759
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
|
|
1751
1760
|
}, t = { "&.Mui-selected": {
|
|
1752
|
-
backgroundColor: (e) =>
|
|
1761
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1753
1762
|
"&:hover:not(.Mui-disabled)": {
|
|
1754
|
-
backgroundColor: (e) =>
|
|
1755
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1763
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1764
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1756
1765
|
}
|
|
1757
|
-
} },
|
|
1766
|
+
} }, r = {
|
|
1758
1767
|
maxHeight: "100%",
|
|
1759
1768
|
"&.Mui-selected": {
|
|
1760
|
-
backgroundColor: (e) =>
|
|
1769
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
1761
1770
|
"&:hover:not(.Mui-disabled)": {
|
|
1762
|
-
backgroundColor: (e) =>
|
|
1763
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1771
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1772
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
|
|
1764
1773
|
}
|
|
1765
1774
|
},
|
|
1766
1775
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1767
1776
|
color: (e) => e.palette.text.primary,
|
|
1768
1777
|
...P ? null : {
|
|
1769
|
-
backgroundColor: (e) =>
|
|
1778
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
1770
1779
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1771
1780
|
}
|
|
1772
1781
|
},
|
|
@@ -1776,39 +1785,43 @@ var Bt = B((e) => {
|
|
|
1776
1785
|
filter: "grayscale(65%)",
|
|
1777
1786
|
opacity: ".8"
|
|
1778
1787
|
},
|
|
1779
|
-
padding: () =>
|
|
1788
|
+
padding: () => o ? "2px 3px" : "7px",
|
|
1780
1789
|
marginRight: "0"
|
|
1781
|
-
}, n =
|
|
1790
|
+
}, n = Q.mergeContentful(r, e), i = Q.mergeContentful(n, t), a = Q.mergeContentful(r, e);
|
|
1782
1791
|
return {
|
|
1783
1792
|
quickButtonStyling: n,
|
|
1784
1793
|
openQuickButtonStyling: i,
|
|
1785
1794
|
compoundStyling: a,
|
|
1786
|
-
openCompoundStyling:
|
|
1795
|
+
openCompoundStyling: Q.mergeContentful(a, t)
|
|
1787
1796
|
};
|
|
1788
1797
|
}, [L, P]), Z = ue((e) => {
|
|
1789
|
-
const { children: t, ref: o, ...
|
|
1790
|
-
return M(
|
|
1791
|
-
ref:
|
|
1792
|
-
...
|
|
1798
|
+
const { children: t, ref: r, disabled: o, ...n } = e;
|
|
1799
|
+
return M(Bt, {
|
|
1800
|
+
ref: r,
|
|
1801
|
+
...n,
|
|
1793
1802
|
disableInteractive: !0,
|
|
1794
1803
|
children: t
|
|
1795
1804
|
});
|
|
1796
|
-
}, []), ee = s ||
|
|
1797
|
-
const { tooltip: t,
|
|
1805
|
+
}, []), ee = s || g, te = ee && (f?.tooltip || f?.renderTooltip), oe = (e) => {
|
|
1806
|
+
const { tooltip: t, renderTooltip: r, sx: o, ...n } = e;
|
|
1798
1807
|
let i = M(d, {
|
|
1799
|
-
sx: { ...
|
|
1808
|
+
sx: { ...o },
|
|
1800
1809
|
component: "div",
|
|
1801
1810
|
...n
|
|
1802
1811
|
});
|
|
1803
|
-
return te ? (i = (
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1812
|
+
return te ? (i = M(ae, {
|
|
1813
|
+
render: r ?? Z,
|
|
1814
|
+
props: {
|
|
1815
|
+
title: N ? "" : t ?? x,
|
|
1816
|
+
children: M("div", { children: i }),
|
|
1817
|
+
disabled: N
|
|
1818
|
+
}
|
|
1819
|
+
}), i) : i;
|
|
1807
1820
|
}, ne = { onKeyDown: (e) => {
|
|
1808
1821
|
e.keyCode === re.Space ? _() : e.keyCode === re.F4 || e.keyCode === re.Down ? X.reference.open(0) : e.keyCode === re.Up && X.reference.close(0);
|
|
1809
1822
|
} };
|
|
1810
1823
|
let ie = M(C, {});
|
|
1811
|
-
const
|
|
1824
|
+
const le = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
|
|
1812
1825
|
y,
|
|
1813
1826
|
i,
|
|
1814
1827
|
a,
|
|
@@ -1816,7 +1829,7 @@ var Bt = B((e) => {
|
|
|
1816
1829
|
]);
|
|
1817
1830
|
if (ee) {
|
|
1818
1831
|
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1819
|
-
const t =
|
|
1832
|
+
const t = {
|
|
1820
1833
|
tabIndex: -1,
|
|
1821
1834
|
disabled: v,
|
|
1822
1835
|
size: "small",
|
|
@@ -1828,33 +1841,40 @@ var Bt = B((e) => {
|
|
|
1828
1841
|
0 === e.button && (e.preventDefault(), Y(e));
|
|
1829
1842
|
},
|
|
1830
1843
|
disableRipple: !!T,
|
|
1831
|
-
children: S(C, { children: [
|
|
1832
|
-
...
|
|
1833
|
-
className:
|
|
1844
|
+
children: S(C, { children: [le, T] }),
|
|
1845
|
+
...f,
|
|
1846
|
+
className: H({
|
|
1834
1847
|
"Mui-focusVisible": E || N,
|
|
1835
1848
|
"Mui-selected": l,
|
|
1836
|
-
"Mui-hovered":
|
|
1849
|
+
"Mui-hovered": q || N,
|
|
1837
1850
|
"Mui-disabled": v,
|
|
1838
1851
|
bordered: !0,
|
|
1839
1852
|
left: !0,
|
|
1840
1853
|
"hard-right": !0
|
|
1841
|
-
},
|
|
1854
|
+
}, f?.className),
|
|
1842
1855
|
sx: {
|
|
1843
1856
|
...J.quickButtonStyling,
|
|
1844
1857
|
height: "100%",
|
|
1845
|
-
...
|
|
1858
|
+
...f?.sx
|
|
1846
1859
|
}
|
|
1860
|
+
}, r = M(ae, {
|
|
1861
|
+
render: g ?? oe,
|
|
1862
|
+
props: t
|
|
1847
1863
|
});
|
|
1848
|
-
let
|
|
1849
|
-
te && (
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1864
|
+
let n = Pt(!0, o, N);
|
|
1865
|
+
te && (n = M(ae, {
|
|
1866
|
+
render: b ?? Z,
|
|
1867
|
+
props: {
|
|
1868
|
+
title: N ? "" : x,
|
|
1869
|
+
children: n,
|
|
1870
|
+
disabled: N
|
|
1871
|
+
}
|
|
1872
|
+
})), ie = S(C, { children: [r, M(d, {
|
|
1853
1873
|
ref: U,
|
|
1854
1874
|
component: "div",
|
|
1855
|
-
className:
|
|
1875
|
+
className: H({
|
|
1856
1876
|
"Mui-selected": N,
|
|
1857
|
-
"Mui-hovered":
|
|
1877
|
+
"Mui-hovered": q || N,
|
|
1858
1878
|
"Mui-disabled": v,
|
|
1859
1879
|
"Mui-focusVisible": E || N,
|
|
1860
1880
|
bordered: !0,
|
|
@@ -1862,8 +1882,8 @@ var Bt = B((e) => {
|
|
|
1862
1882
|
divider: !0
|
|
1863
1883
|
}),
|
|
1864
1884
|
sx: {
|
|
1865
|
-
paddingLeft: (
|
|
1866
|
-
paddingRight: (
|
|
1885
|
+
paddingLeft: (o ? 0 : 2) + "px",
|
|
1886
|
+
paddingRight: (o ? 0 : 2) + "px",
|
|
1867
1887
|
width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
|
|
1868
1888
|
...J.quickButtonStyling,
|
|
1869
1889
|
...e
|
|
@@ -1876,7 +1896,7 @@ var Bt = B((e) => {
|
|
|
1876
1896
|
onMouseDown: (e) => {
|
|
1877
1897
|
0 === e.button && (e.preventDefault(), _());
|
|
1878
1898
|
},
|
|
1879
|
-
children:
|
|
1899
|
+
children: n
|
|
1880
1900
|
})] });
|
|
1881
1901
|
} else {
|
|
1882
1902
|
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
@@ -1885,10 +1905,10 @@ var Bt = B((e) => {
|
|
|
1885
1905
|
tabIndex: -1,
|
|
1886
1906
|
disabled: v,
|
|
1887
1907
|
size: "small",
|
|
1888
|
-
icon:
|
|
1889
|
-
className:
|
|
1908
|
+
icon: le,
|
|
1909
|
+
className: H({
|
|
1890
1910
|
"Mui-selected": N || l,
|
|
1891
|
-
"Mui-hovered":
|
|
1911
|
+
"Mui-hovered": q,
|
|
1892
1912
|
"Mui-disabled": v,
|
|
1893
1913
|
"Mui-focusVisible": E || N,
|
|
1894
1914
|
bordered: !0,
|
|
@@ -1903,23 +1923,23 @@ var Bt = B((e) => {
|
|
|
1903
1923
|
onMouseDown: (e) => {
|
|
1904
1924
|
0 === e.button && (e.preventDefault(), _());
|
|
1905
1925
|
},
|
|
1906
|
-
children:
|
|
1926
|
+
children: Pt(!1, o, N)
|
|
1907
1927
|
});
|
|
1908
1928
|
}
|
|
1909
|
-
const { className:
|
|
1910
|
-
let
|
|
1929
|
+
const { className: se, sx: ce, ...de } = k;
|
|
1930
|
+
let pe = M(t, {
|
|
1911
1931
|
onFocus: () => F(!0),
|
|
1912
1932
|
onBlur: () => F(!1),
|
|
1913
1933
|
onMouseOver: () => j(!0),
|
|
1914
1934
|
onMouseOut: () => j(!1),
|
|
1915
1935
|
...ne,
|
|
1916
1936
|
"aria-label": "split button",
|
|
1917
|
-
ref:
|
|
1937
|
+
ref: G,
|
|
1918
1938
|
tabIndex: v ? void 0 : 0,
|
|
1919
|
-
className:
|
|
1939
|
+
className: H(se, "split-button-root", {
|
|
1920
1940
|
"Mui-focusVisible": E || N,
|
|
1921
1941
|
"Mui-selected": N || l,
|
|
1922
|
-
"Mui-hovered":
|
|
1942
|
+
"Mui-hovered": q,
|
|
1923
1943
|
"Mui-disabled": v
|
|
1924
1944
|
}),
|
|
1925
1945
|
sx: {
|
|
@@ -1935,17 +1955,21 @@ var Bt = B((e) => {
|
|
|
1935
1955
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1936
1956
|
zIndex: 2
|
|
1937
1957
|
},
|
|
1938
|
-
...
|
|
1958
|
+
...ce
|
|
1939
1959
|
},
|
|
1940
|
-
...
|
|
1960
|
+
...de,
|
|
1941
1961
|
children: ie
|
|
1942
1962
|
});
|
|
1943
|
-
return te || (
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1963
|
+
return te || (pe = M(ae, {
|
|
1964
|
+
render: b ?? Z,
|
|
1965
|
+
props: {
|
|
1966
|
+
title: N ? "" : x,
|
|
1967
|
+
children: pe,
|
|
1968
|
+
disabled: N
|
|
1969
|
+
}
|
|
1970
|
+
})), S(t, {
|
|
1971
|
+
className: H($, "popupIconButton"),
|
|
1972
|
+
ref: r,
|
|
1949
1973
|
...z,
|
|
1950
1974
|
sx: {
|
|
1951
1975
|
zIndex: E || N ? 2 : void 0,
|
|
@@ -1953,12 +1977,12 @@ var Bt = B((e) => {
|
|
|
1953
1977
|
alignItems: "center",
|
|
1954
1978
|
...I
|
|
1955
1979
|
},
|
|
1956
|
-
children: [
|
|
1980
|
+
children: [pe, X.component]
|
|
1957
1981
|
});
|
|
1958
1982
|
}));
|
|
1959
|
-
|
|
1960
|
-
var
|
|
1961
|
-
const { selected:
|
|
1983
|
+
jt.displayName = "ExhibitPopupIconButton";
|
|
1984
|
+
var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
1985
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, renderPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", renderTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = W(!1), [I, $] = W(!1), [z, L] = W(!1), [N, O] = W(!1), E = K(null), F = K(null), V = A(() => {
|
|
1962
1986
|
if (!d) return;
|
|
1963
1987
|
const { propsPopper: e } = d;
|
|
1964
1988
|
return {
|
|
@@ -1966,12 +1990,12 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
1966
1990
|
offsets: [-4, -2],
|
|
1967
1991
|
...e
|
|
1968
1992
|
};
|
|
1969
|
-
}, [d]), q =
|
|
1993
|
+
}, [d]), q = ge({
|
|
1970
1994
|
anchor: E.current,
|
|
1971
1995
|
label: n,
|
|
1972
|
-
|
|
1996
|
+
renderPopupPanel: c,
|
|
1973
1997
|
parentFloat: l,
|
|
1974
|
-
propsPopper:
|
|
1998
|
+
propsPopper: V,
|
|
1975
1999
|
onClose: () => {
|
|
1976
2000
|
D(!1), u?.();
|
|
1977
2001
|
},
|
|
@@ -1980,28 +2004,28 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
1980
2004
|
}
|
|
1981
2005
|
}), j = ue((e) => {
|
|
1982
2006
|
0 === e.button && (a?.(e), q.reference.close(0));
|
|
1983
|
-
}, [a]), Q = M(
|
|
2007
|
+
}, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
|
|
1984
2008
|
color: (e) => e.palette.text.primary,
|
|
1985
2009
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1986
|
-
} }, U =
|
|
1987
|
-
const { children: t, ref: o, ...
|
|
1988
|
-
return M(
|
|
1989
|
-
ref:
|
|
1990
|
-
...
|
|
2010
|
+
} }, U = B((e) => {
|
|
2011
|
+
const { children: t, ref: r, disabled: o, ...n } = e;
|
|
2012
|
+
return M(Bt, {
|
|
2013
|
+
ref: r,
|
|
2014
|
+
...n,
|
|
1991
2015
|
disableInteractive: !0,
|
|
1992
2016
|
children: t
|
|
1993
2017
|
});
|
|
1994
|
-
}, []), X = a ||
|
|
1995
|
-
const { tooltip: t,
|
|
1996
|
-
return S(
|
|
2018
|
+
}, []), X = a || f, Y = (e) => {
|
|
2019
|
+
const { tooltip: t, renderTooltip: r, ...o } = e;
|
|
2020
|
+
return S(Vt, {
|
|
1997
2021
|
icon: b,
|
|
1998
2022
|
disableRipple: !!v,
|
|
1999
|
-
className:
|
|
2023
|
+
className: H({ "Mui-hovered": z }),
|
|
2000
2024
|
sx: {
|
|
2001
2025
|
flex: "1 1 100%",
|
|
2002
2026
|
...G
|
|
2003
2027
|
},
|
|
2004
|
-
...
|
|
2028
|
+
...o,
|
|
2005
2029
|
children: [n, v]
|
|
2006
2030
|
});
|
|
2007
2031
|
}, _ = {
|
|
@@ -2010,10 +2034,10 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2010
2034
|
},
|
|
2011
2035
|
onBlur: () => $(!1),
|
|
2012
2036
|
onMouseOver: () => {
|
|
2013
|
-
|
|
2037
|
+
L(!0);
|
|
2014
2038
|
},
|
|
2015
2039
|
onMouseLeave: () => {
|
|
2016
|
-
|
|
2040
|
+
L(!1);
|
|
2017
2041
|
},
|
|
2018
2042
|
onMouseEnter: (e) => {
|
|
2019
2043
|
e.preventDefault(), q.reference.open();
|
|
@@ -2024,7 +2048,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2024
2048
|
};
|
|
2025
2049
|
let J = M(C, {});
|
|
2026
2050
|
if (X) {
|
|
2027
|
-
const e =
|
|
2051
|
+
const e = {
|
|
2028
2052
|
tabIndex: -1,
|
|
2029
2053
|
disabled: y,
|
|
2030
2054
|
onMouseEnter: () => {
|
|
@@ -2033,11 +2057,14 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2033
2057
|
onMouseDown: (e) => {
|
|
2034
2058
|
0 === e.button && (e.preventDefault(), j(e));
|
|
2035
2059
|
},
|
|
2036
|
-
className:
|
|
2060
|
+
className: H("quick-left", {}, h?.className),
|
|
2037
2061
|
...h
|
|
2038
|
-
}
|
|
2062
|
+
};
|
|
2039
2063
|
J = S(C, { children: [
|
|
2040
|
-
|
|
2064
|
+
M(ae, {
|
|
2065
|
+
render: f ?? Y,
|
|
2066
|
+
props: e
|
|
2067
|
+
}),
|
|
2041
2068
|
M(s, {
|
|
2042
2069
|
sx: {
|
|
2043
2070
|
ml: "0px",
|
|
@@ -2049,7 +2076,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2049
2076
|
}),
|
|
2050
2077
|
M(m, {
|
|
2051
2078
|
ref: F,
|
|
2052
|
-
className:
|
|
2079
|
+
className: H({
|
|
2053
2080
|
"Mui-selected": R,
|
|
2054
2081
|
"Mui-hovered": z
|
|
2055
2082
|
}),
|
|
@@ -2093,13 +2120,13 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2093
2120
|
})
|
|
2094
2121
|
})
|
|
2095
2122
|
] });
|
|
2096
|
-
} else J = S(
|
|
2123
|
+
} else J = S(Vt, {
|
|
2097
2124
|
ref: F,
|
|
2098
2125
|
tabIndex: -1,
|
|
2099
2126
|
disabled: y,
|
|
2100
2127
|
icon: b,
|
|
2101
|
-
className:
|
|
2102
|
-
"Mui-selected": R ||
|
|
2128
|
+
className: H({
|
|
2129
|
+
"Mui-selected": R || o,
|
|
2103
2130
|
"Mui-hovered": z
|
|
2104
2131
|
}),
|
|
2105
2132
|
sx: {
|
|
@@ -2128,7 +2155,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2128
2155
|
"aria-label": "split button",
|
|
2129
2156
|
ref: E,
|
|
2130
2157
|
tabIndex: y ? void 0 : 0,
|
|
2131
|
-
className:
|
|
2158
|
+
className: H({
|
|
2132
2159
|
"Mui-disabled": y,
|
|
2133
2160
|
"Mui-selected": R,
|
|
2134
2161
|
"Mui-focusVisible": I || R,
|
|
@@ -2150,11 +2177,15 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2150
2177
|
...T,
|
|
2151
2178
|
children: J
|
|
2152
2179
|
});
|
|
2153
|
-
return X && !N && (h?.tooltip || h?.
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2180
|
+
return X && !N && (h?.tooltip || h?.renderTooltip) && (Z = M(ae, {
|
|
2181
|
+
render: h?.renderTooltip ?? U,
|
|
2182
|
+
props: {
|
|
2183
|
+
title: R ? "" : Z ?? h?.tooltip,
|
|
2184
|
+
children: Z,
|
|
2185
|
+
disabled: R
|
|
2186
|
+
}
|
|
2187
|
+
})), S(t, {
|
|
2188
|
+
ref: r,
|
|
2158
2189
|
sx: {
|
|
2159
2190
|
zIndex: I || R ? 2 : void 0,
|
|
2160
2191
|
display: "flex",
|
|
@@ -2165,43 +2196,43 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2165
2196
|
},
|
|
2166
2197
|
children: [Z, q.component]
|
|
2167
2198
|
});
|
|
2168
|
-
})),
|
|
2169
|
-
const { onSelectToggle:
|
|
2170
|
-
return M(
|
|
2199
|
+
})), Xt = z(I((e, t) => {
|
|
2200
|
+
const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2201
|
+
return M(Ot, {
|
|
2171
2202
|
label: n,
|
|
2172
2203
|
shortcut: i,
|
|
2173
2204
|
children: M(Ft, {
|
|
2174
2205
|
ref: t,
|
|
2175
2206
|
outlined: !1,
|
|
2176
2207
|
tabIndex: a,
|
|
2177
|
-
selected:
|
|
2208
|
+
selected: o,
|
|
2178
2209
|
onMouseDown: (e) => {
|
|
2179
2210
|
l && e.preventDefault();
|
|
2180
2211
|
},
|
|
2181
2212
|
onClick: () => {
|
|
2182
|
-
|
|
2213
|
+
r?.(!o);
|
|
2183
2214
|
},
|
|
2184
2215
|
...s
|
|
2185
2216
|
})
|
|
2186
2217
|
});
|
|
2187
|
-
})),
|
|
2188
|
-
const { children:
|
|
2218
|
+
})), Yt = M(J, {}), _t = M(J, { iconKey: "Check" }), Jt = z(I((e, r) => {
|
|
2219
|
+
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2189
2220
|
display: "flex",
|
|
2190
2221
|
border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2191
2222
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
2192
2223
|
backgroundColor: (e) => {
|
|
2193
|
-
if (n) return
|
|
2224
|
+
if (n) return V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
2194
2225
|
},
|
|
2195
2226
|
...a
|
|
2196
2227
|
}), [a]);
|
|
2197
|
-
let c =
|
|
2198
|
-
return null === c && (c =
|
|
2199
|
-
ref:
|
|
2228
|
+
let c = o;
|
|
2229
|
+
return null === c && (c = Yt), c || (c = _t), M(t, {
|
|
2230
|
+
ref: r,
|
|
2200
2231
|
sx: s,
|
|
2201
2232
|
...l,
|
|
2202
2233
|
children: c
|
|
2203
2234
|
});
|
|
2204
|
-
})),
|
|
2235
|
+
})), Zt = {
|
|
2205
2236
|
"dialog.cancel": "Cancel",
|
|
2206
2237
|
"dialog.ok": "Ok",
|
|
2207
2238
|
"lazyLoad.retry": "Retry",
|
|
@@ -2223,113 +2254,113 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2223
2254
|
"stackTrace.log": "Log error to console",
|
|
2224
2255
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2225
2256
|
"window.close": "Close"
|
|
2226
|
-
}, { DefaultCommandCatalogService:
|
|
2227
|
-
function
|
|
2228
|
-
|
|
2257
|
+
}, { DefaultCommandCatalogService: er } = X, tr = !1;
|
|
2258
|
+
function rr() {
|
|
2259
|
+
tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
|
|
2229
2260
|
}
|
|
2230
|
-
|
|
2231
|
-
var
|
|
2261
|
+
rr();
|
|
2262
|
+
var or = {
|
|
2232
2263
|
inline: null,
|
|
2233
2264
|
popup: []
|
|
2234
|
-
},
|
|
2235
|
-
const { children:
|
|
2265
|
+
}, nr = z(I((e, r) => {
|
|
2266
|
+
const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = K(null), p = K(null), [u, m] = F((e) => e + 1, 0), [h, f] = W(null), [g, x] = W(null), b = g?.popup ?? null, y = K(0), [v, w] = W(!1), k = K(!1), C = fe(), T = K(C);
|
|
2236
2267
|
T.current = C;
|
|
2237
|
-
const
|
|
2268
|
+
const D = B(() => {
|
|
2238
2269
|
T.current?.closeChild(0);
|
|
2239
|
-
}, []), I =
|
|
2270
|
+
}, []), I = B(() => {
|
|
2240
2271
|
k.current = !0, w(!0);
|
|
2241
|
-
}, []), $ =
|
|
2272
|
+
}, []), $ = B(() => {
|
|
2242
2273
|
k.current = !1, w(!1);
|
|
2243
|
-
}, []), z =
|
|
2244
|
-
|
|
2274
|
+
}, []), z = K(null), L = K(/* @__PURE__ */ new Map()), N = B(() => {
|
|
2275
|
+
L.current.clear(), x(null), m();
|
|
2245
2276
|
}, []);
|
|
2246
|
-
|
|
2277
|
+
E(() => {
|
|
2247
2278
|
p.current = { refs: [] };
|
|
2248
|
-
const e = [],
|
|
2279
|
+
const e = [], r = P.toArray(o);
|
|
2249
2280
|
let n = 0;
|
|
2250
|
-
|
|
2281
|
+
r.forEach((o, i) => {
|
|
2251
2282
|
e.push(M(t, {
|
|
2252
2283
|
sx: {
|
|
2253
2284
|
display: "flex",
|
|
2254
2285
|
flex: "0 0 auto"
|
|
2255
2286
|
},
|
|
2256
2287
|
ref: (e) => {
|
|
2257
|
-
n++, n ===
|
|
2288
|
+
n++, n === r.length && m();
|
|
2258
2289
|
const t = { current: null };
|
|
2259
2290
|
t.current = e, p.current.refs[i] = t;
|
|
2260
2291
|
},
|
|
2261
|
-
children:
|
|
2292
|
+
children: o
|
|
2262
2293
|
}, i));
|
|
2263
|
-
}),
|
|
2264
|
-
}, [
|
|
2294
|
+
}), f(e);
|
|
2295
|
+
}, [o, c]), E(() => {
|
|
2265
2296
|
if (!h) return;
|
|
2266
2297
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2267
2298
|
if (!l.current || 0 === t) return void x(null);
|
|
2268
|
-
const
|
|
2269
|
-
let
|
|
2270
|
-
|
|
2299
|
+
const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
|
|
2300
|
+
let r = z.current;
|
|
2301
|
+
r ? r.disconnect() : r = z.current = new ResizeObserver((e) => {
|
|
2271
2302
|
for (let t = 0; t < e.length; t++) {
|
|
2272
|
-
const
|
|
2273
|
-
if (!
|
|
2274
|
-
const
|
|
2275
|
-
if (void 0 !==
|
|
2303
|
+
const r = e[t].target;
|
|
2304
|
+
if (!r.isConnected) continue;
|
|
2305
|
+
const o = L.current.get(r);
|
|
2306
|
+
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
|
|
2276
2307
|
}
|
|
2277
|
-
}),
|
|
2278
|
-
for (let
|
|
2279
|
-
const t = e[
|
|
2280
|
-
t && (
|
|
2308
|
+
}), L.current.clear();
|
|
2309
|
+
for (let o = 0; o < t; o++) {
|
|
2310
|
+
const t = e[o]?.current;
|
|
2311
|
+
t && (L.current.set(t, t.getBoundingClientRect().width), r.observe(t));
|
|
2281
2312
|
}
|
|
2282
2313
|
};
|
|
2283
2314
|
let a = 0, s = !1;
|
|
2284
|
-
for (let
|
|
2285
|
-
const t = e[
|
|
2315
|
+
for (let o = 0; !s && o < t; o++) {
|
|
2316
|
+
const t = e[o];
|
|
2286
2317
|
if (!t) continue;
|
|
2287
2318
|
if (!t.current) {
|
|
2288
2319
|
s = !0;
|
|
2289
2320
|
continue;
|
|
2290
2321
|
}
|
|
2291
2322
|
const n = t.current.getBoundingClientRect();
|
|
2292
|
-
a += n?.width, a >
|
|
2323
|
+
a += n?.width, a > r.width && (s = !0);
|
|
2293
2324
|
}
|
|
2294
|
-
if (!s) return i(), k.current &&
|
|
2325
|
+
if (!s) return i(), k.current && D(), void x(or);
|
|
2295
2326
|
const c = d.current?.getBoundingClientRect();
|
|
2296
2327
|
c?.width && (y.current = c.width);
|
|
2297
|
-
const u =
|
|
2328
|
+
const u = r.width - y.current;
|
|
2298
2329
|
a = 0;
|
|
2299
|
-
for (let
|
|
2300
|
-
const t = e[
|
|
2330
|
+
for (let r = 0; r < t; r++) {
|
|
2331
|
+
const t = e[r];
|
|
2301
2332
|
let i = !1;
|
|
2302
2333
|
if (t.current) {
|
|
2303
2334
|
const e = t.current.getBoundingClientRect();
|
|
2304
2335
|
a += e?.width, a <= u && (i = !0);
|
|
2305
2336
|
}
|
|
2306
|
-
i ?
|
|
2337
|
+
i ? o.push(h[r]) : n.push(h[r]);
|
|
2307
2338
|
}
|
|
2308
2339
|
i(), x({
|
|
2309
|
-
inline:
|
|
2340
|
+
inline: o,
|
|
2310
2341
|
popup: n
|
|
2311
2342
|
});
|
|
2312
2343
|
}, [
|
|
2313
|
-
|
|
2344
|
+
o,
|
|
2314
2345
|
h,
|
|
2315
2346
|
c,
|
|
2316
2347
|
u
|
|
2317
|
-
]),
|
|
2348
|
+
]), E(() => () => {
|
|
2318
2349
|
z.current?.disconnect(), z.current = null;
|
|
2319
2350
|
}, []);
|
|
2320
|
-
const O =
|
|
2321
|
-
const
|
|
2322
|
-
for (let e = 0; e <
|
|
2351
|
+
const O = B((e) => {
|
|
2352
|
+
const r = [], o = b?.length ?? 0;
|
|
2353
|
+
for (let e = 0; e < o; e++) {
|
|
2323
2354
|
const t = P.toArray(b[e])[0];
|
|
2324
|
-
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t,
|
|
2355
|
+
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2325
2356
|
const n = t, i = {
|
|
2326
2357
|
...n.props,
|
|
2327
|
-
key: `overflow-${e}-${
|
|
2328
|
-
}, a =
|
|
2329
|
-
|
|
2358
|
+
key: `overflow-${e}-${o}${n.key ?? ""}`
|
|
2359
|
+
}, a = R(n, i);
|
|
2360
|
+
r.push(a);
|
|
2330
2361
|
});
|
|
2331
2362
|
}
|
|
2332
|
-
return
|
|
2363
|
+
return St({
|
|
2333
2364
|
...e,
|
|
2334
2365
|
children: M(t, {
|
|
2335
2366
|
className: "overflow-palette-popup-panel",
|
|
@@ -2344,13 +2375,13 @@ var oo = {
|
|
|
2344
2375
|
paddingRight: (e) => e.spacing(1),
|
|
2345
2376
|
overflow: "hidden"
|
|
2346
2377
|
},
|
|
2347
|
-
children:
|
|
2378
|
+
children: r
|
|
2348
2379
|
})
|
|
2349
2380
|
});
|
|
2350
|
-
}, [b]),
|
|
2381
|
+
}, [b]), A = Se([
|
|
2351
2382
|
l,
|
|
2352
2383
|
s,
|
|
2353
|
-
|
|
2384
|
+
r
|
|
2354
2385
|
]);
|
|
2355
2386
|
return S(t, {
|
|
2356
2387
|
className: "overflow-palette",
|
|
@@ -2365,7 +2396,7 @@ var oo = {
|
|
|
2365
2396
|
overflow: "hidden",
|
|
2366
2397
|
...n
|
|
2367
2398
|
},
|
|
2368
|
-
ref:
|
|
2399
|
+
ref: A,
|
|
2369
2400
|
...i,
|
|
2370
2401
|
children: [M(t, {
|
|
2371
2402
|
sx: {
|
|
@@ -2378,7 +2409,7 @@ var oo = {
|
|
|
2378
2409
|
overflow: "hidden",
|
|
2379
2410
|
alignItems: "center"
|
|
2380
2411
|
},
|
|
2381
|
-
children:
|
|
2412
|
+
children: g?.inline ?? h
|
|
2382
2413
|
}), M(t, {
|
|
2383
2414
|
className: "overflow-palette-popup-button",
|
|
2384
2415
|
sx: {
|
|
@@ -2386,117 +2417,117 @@ var oo = {
|
|
|
2386
2417
|
flex: "0 0 auto",
|
|
2387
2418
|
alignItems: "center"
|
|
2388
2419
|
},
|
|
2389
|
-
children: M(
|
|
2390
|
-
|
|
2420
|
+
children: M(jt, {
|
|
2421
|
+
renderPopupPanel: O,
|
|
2391
2422
|
ref: d,
|
|
2392
2423
|
onPopupOpen: I,
|
|
2393
2424
|
onPopupClose: $,
|
|
2394
|
-
|
|
2425
|
+
renderTooltip: ({ children: e, disabled: t }) => M(Ot, {
|
|
2395
2426
|
label: a("overflow.more"),
|
|
2396
2427
|
description: a("overflow.moreDescription"),
|
|
2397
2428
|
disabled: t,
|
|
2398
2429
|
children: e
|
|
2399
2430
|
}),
|
|
2400
|
-
icon: M(
|
|
2431
|
+
icon: M(J, { iconKey: "MoreHorizontal" })
|
|
2401
2432
|
})
|
|
2402
2433
|
})]
|
|
2403
2434
|
});
|
|
2404
|
-
})),
|
|
2405
|
-
const t =
|
|
2406
|
-
return
|
|
2435
|
+
})), ir = D(void 0), ar = ({ error: e }) => {
|
|
2436
|
+
const t = L(ir);
|
|
2437
|
+
return N(() => {
|
|
2407
2438
|
t?.(e);
|
|
2408
2439
|
}, [e]), null;
|
|
2409
2440
|
};
|
|
2410
|
-
function
|
|
2411
|
-
const t = pe(e, { renderError: (e) => M(
|
|
2441
|
+
function lr(e) {
|
|
2442
|
+
const t = pe(e, { renderError: ({ error: e }) => M(ar, { error: e }) });
|
|
2412
2443
|
return (e) => {
|
|
2413
|
-
const { onLoadError:
|
|
2414
|
-
return M(
|
|
2415
|
-
value:
|
|
2416
|
-
children: M(
|
|
2444
|
+
const { onLoadError: r, ...o } = e;
|
|
2445
|
+
return M(ir.Provider, {
|
|
2446
|
+
value: r,
|
|
2447
|
+
children: M(T, {
|
|
2417
2448
|
fallback: null,
|
|
2418
|
-
children: M(t, { ...
|
|
2449
|
+
children: M(t, { ...o })
|
|
2419
2450
|
})
|
|
2420
2451
|
});
|
|
2421
2452
|
};
|
|
2422
2453
|
}
|
|
2423
|
-
function
|
|
2424
|
-
const [t,
|
|
2425
|
-
null ===
|
|
2454
|
+
function sr(e) {
|
|
2455
|
+
const [t, r] = W(() => /* @__PURE__ */ new Map()), o = K(null);
|
|
2456
|
+
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2426
2457
|
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2427
2458
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2428
2459
|
let h = !1;
|
|
2429
2460
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
2430
|
-
let
|
|
2431
|
-
if (void 0 !== d?.prewarm && (
|
|
2432
|
-
const
|
|
2461
|
+
let f = !1;
|
|
2462
|
+
if (void 0 !== d?.prewarm && (f = d.prewarm, delete (d = { ...d }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
|
|
2463
|
+
const g = {
|
|
2433
2464
|
...e,
|
|
2434
2465
|
...d,
|
|
2435
2466
|
...p,
|
|
2436
2467
|
onHide: () => {
|
|
2437
2468
|
if (p?.onHide?.(), h) return;
|
|
2438
2469
|
const e = t.get(s);
|
|
2439
|
-
|
|
2470
|
+
r((e) => (e.delete(s), e)), e?.id && l(e.id);
|
|
2440
2471
|
},
|
|
2441
2472
|
onDone: (e) => {
|
|
2442
2473
|
if (p?.onDone?.(e), h) return;
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2474
|
+
const o = t.get(s);
|
|
2475
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id);
|
|
2445
2476
|
},
|
|
2446
2477
|
onShown: (e) => {
|
|
2447
|
-
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
...
|
|
2451
|
-
element: e ??
|
|
2478
|
+
r((t) => {
|
|
2479
|
+
const r = t.get(s);
|
|
2480
|
+
return r && t.set(s, {
|
|
2481
|
+
...r,
|
|
2482
|
+
element: e ?? r.element
|
|
2452
2483
|
}), t;
|
|
2453
2484
|
}), u(e);
|
|
2454
2485
|
},
|
|
2455
2486
|
onLoadError: (e) => {
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2487
|
+
const o = t.get(s);
|
|
2488
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
|
|
2458
2489
|
},
|
|
2459
2490
|
disableAutoDestroy: h,
|
|
2460
2491
|
revealToken: 0,
|
|
2461
|
-
startHidden:
|
|
2492
|
+
startHidden: f,
|
|
2462
2493
|
open: !0
|
|
2463
2494
|
}, x = t.get(s);
|
|
2464
2495
|
if (x) {
|
|
2465
2496
|
const e = (x.revealToken ?? 0) + 1;
|
|
2466
2497
|
i(x.id, {
|
|
2467
|
-
...
|
|
2498
|
+
...g,
|
|
2468
2499
|
revealToken: e
|
|
2469
|
-
}),
|
|
2470
|
-
const
|
|
2471
|
-
return
|
|
2472
|
-
...
|
|
2500
|
+
}), r((t) => {
|
|
2501
|
+
const r = t.get(s);
|
|
2502
|
+
return r && t.set(s, {
|
|
2503
|
+
...r,
|
|
2473
2504
|
revealToken: e
|
|
2474
2505
|
}), t;
|
|
2475
2506
|
}), u(x.element);
|
|
2476
2507
|
return;
|
|
2477
2508
|
}
|
|
2478
2509
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2479
|
-
let b =
|
|
2480
|
-
b || (b =
|
|
2481
|
-
const y = n(b,
|
|
2482
|
-
|
|
2510
|
+
let b = o.current.get(s);
|
|
2511
|
+
b || (b = lr(c), o.current.set(s, b));
|
|
2512
|
+
const y = n(b, g, { destroyOnClose: !h });
|
|
2513
|
+
r((e) => (e.set(s, {
|
|
2483
2514
|
id: y.id,
|
|
2484
2515
|
element: null,
|
|
2485
2516
|
revealToken: 0
|
|
2486
|
-
}), e)),
|
|
2517
|
+
}), e)), f && u(null);
|
|
2487
2518
|
});
|
|
2488
2519
|
}
|
|
2489
|
-
|
|
2490
|
-
var
|
|
2520
|
+
rr();
|
|
2521
|
+
var cr = {
|
|
2491
2522
|
x: 0,
|
|
2492
2523
|
y: 0
|
|
2493
|
-
},
|
|
2494
|
-
const { defaultPosition:
|
|
2524
|
+
}, dr = z(I((e, t) => {
|
|
2525
|
+
const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = K(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2495
2526
|
left: 0,
|
|
2496
2527
|
top: 0,
|
|
2497
2528
|
right: s.width - l.width,
|
|
2498
2529
|
bottom: s.height - l.height
|
|
2499
|
-
} : null, [l, s]), [u, m] =
|
|
2530
|
+
} : null, [l, s]), [u, m] = W(null), [h, g] = W(null), x = u ?? r ?? null, b = A(() => x && p ? {
|
|
2500
2531
|
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2501
2532
|
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2502
2533
|
} : x, [x, p]), y = Se([d, t]);
|
|
@@ -2509,46 +2540,46 @@ var so = {
|
|
|
2509
2540
|
enableUserSelectHack: !1,
|
|
2510
2541
|
onStop: n,
|
|
2511
2542
|
onStart: (e, t) => {
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2514
|
-
x: (
|
|
2515
|
-
y: (
|
|
2543
|
+
const r = e;
|
|
2544
|
+
g({
|
|
2545
|
+
x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
|
|
2546
|
+
y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
|
|
2516
2547
|
});
|
|
2517
2548
|
},
|
|
2518
2549
|
onDrag: (e, t) => {
|
|
2519
|
-
const
|
|
2550
|
+
const r = e;
|
|
2520
2551
|
if (!h) return;
|
|
2521
|
-
const
|
|
2552
|
+
const o = r.clientX ?? r.touches?.[0]?.clientX, n = r.clientY ?? r.touches?.[0]?.clientY;
|
|
2522
2553
|
m({
|
|
2523
|
-
x:
|
|
2554
|
+
x: o - h.x,
|
|
2524
2555
|
y: n - h.y
|
|
2525
2556
|
});
|
|
2526
2557
|
},
|
|
2527
|
-
children: M(
|
|
2558
|
+
children: M(o, {
|
|
2528
2559
|
ref: y,
|
|
2529
2560
|
...c
|
|
2530
2561
|
})
|
|
2531
2562
|
});
|
|
2532
|
-
})),
|
|
2563
|
+
})), pr = {
|
|
2533
2564
|
x: "50",
|
|
2534
2565
|
y: "50"
|
|
2535
|
-
},
|
|
2566
|
+
}, ur = z(I((r, o) => {
|
|
2536
2567
|
const n = k({
|
|
2537
|
-
props:
|
|
2568
|
+
props: r,
|
|
2538
2569
|
name: "MuiDialog"
|
|
2539
2570
|
}), i = w(), a = Ce(), s = {
|
|
2540
2571
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2541
2572
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2542
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown:
|
|
2573
|
+
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = Q.EmptyArray, slotProps: I = Q.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: A = !1, suspendModal: F = !1, restoreFocus: q = !0, disableAutoDestroy: j = !1, revealToken: G, startHidden: U = !1, ...X } = n;
|
|
2543
2574
|
let Y = D.transition ?? c;
|
|
2544
|
-
const _ = D.backdrop ?? e,
|
|
2575
|
+
const _ = D.backdrop ?? e, Z = D.paper ?? f;
|
|
2545
2576
|
let ee = I.transition;
|
|
2546
2577
|
R && (ee = {
|
|
2547
2578
|
...R,
|
|
2548
2579
|
...ee
|
|
2549
2580
|
});
|
|
2550
|
-
const te = I.backdrop, oe = I.paper, [ne, ie] =
|
|
2551
|
-
|
|
2581
|
+
const te = I.backdrop, oe = I.paper, [ne, ie] = W(null), [ae, le] = W(!1), [se, de] = W(!1), pe = K(null), [me, he] = ke(), fe = K(null), ge = K(null), [ve, we] = ke(), Pe = K(null), Te = O(), Re = K(null);
|
|
2582
|
+
E(() => {
|
|
2552
2583
|
if (!ne || U) return;
|
|
2553
2584
|
const e = !!v;
|
|
2554
2585
|
Re.current !== e && (Re.current = e, le(e));
|
|
@@ -2560,59 +2591,59 @@ var so = {
|
|
|
2560
2591
|
const Ie = ue(() => {
|
|
2561
2592
|
u?.(), le(!1);
|
|
2562
2593
|
}, [u]);
|
|
2563
|
-
|
|
2594
|
+
E(() => {
|
|
2564
2595
|
if (ne) return;
|
|
2565
|
-
const e =
|
|
2596
|
+
const e = fe.current, t = Pe.current;
|
|
2566
2597
|
if (!e || !t) return;
|
|
2567
|
-
const
|
|
2568
|
-
if (0 ===
|
|
2569
|
-
const n =
|
|
2598
|
+
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2599
|
+
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
2600
|
+
const n = r.height - o.height, i = r.width - o.width;
|
|
2570
2601
|
let a = .5 * i, l = .5 * n;
|
|
2571
2602
|
"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({
|
|
2572
2603
|
x: a,
|
|
2573
2604
|
y: l
|
|
2574
2605
|
});
|
|
2575
2606
|
});
|
|
2576
|
-
const [$e, ze] =
|
|
2607
|
+
const [$e, ze] = W(!1), [Be, Le] = W(null), [Ne, Oe] = W(null), Ee = ue((e) => {
|
|
2577
2608
|
if (Be) return Be.focus(e), !0;
|
|
2578
2609
|
if (C) {
|
|
2579
|
-
const t =
|
|
2610
|
+
const t = ge.current?.querySelectorAll?.(C);
|
|
2580
2611
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2581
2612
|
}
|
|
2582
|
-
return
|
|
2583
|
-
}, [Be, C]),
|
|
2613
|
+
return ge.current?.focus?.(e), !1;
|
|
2614
|
+
}, [Be, C]), Ae = ye(o, () => ({ focus: (e) => {
|
|
2584
2615
|
Ee(e);
|
|
2585
|
-
} }), []),
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
}, [
|
|
2616
|
+
} }), []), Fe = K(G);
|
|
2617
|
+
N(() => {
|
|
2618
|
+
G !== Fe.current && (Fe.current = G, le(!0));
|
|
2619
|
+
}, [G]);
|
|
2589
2620
|
const Ke = {
|
|
2590
2621
|
...ee,
|
|
2591
2622
|
onExited: (e) => {
|
|
2592
2623
|
m?.(null), j || ee?.onExited?.(e);
|
|
2593
2624
|
},
|
|
2594
2625
|
onExit: (e) => {
|
|
2595
|
-
const t = Ne,
|
|
2596
|
-
t && !1 !==
|
|
2597
|
-
|
|
2626
|
+
const t = Ne, r = "function" == typeof q ? q() : q;
|
|
2627
|
+
t && !1 !== r && requestAnimationFrame(() => {
|
|
2628
|
+
Ae.current?.contains(document.activeElement) && t.focus();
|
|
2598
2629
|
}), x?.(), de(!1), ee?.onExit?.(e);
|
|
2599
2630
|
},
|
|
2600
2631
|
onEntered: (e, t) => {
|
|
2601
2632
|
h?.(), ee?.onEntered?.(e, t);
|
|
2602
2633
|
},
|
|
2603
2634
|
onEntering: (e, t) => {
|
|
2604
|
-
de(!0),
|
|
2635
|
+
de(!0), g?.(Ae.current);
|
|
2605
2636
|
}
|
|
2606
2637
|
};
|
|
2607
|
-
|
|
2638
|
+
N(() => {
|
|
2608
2639
|
se && Ee();
|
|
2609
2640
|
}, [se]);
|
|
2610
|
-
const We = Se([Pe,
|
|
2641
|
+
const We = Se([Pe, o]);
|
|
2611
2642
|
let He = M(y, {
|
|
2612
2643
|
open: se,
|
|
2613
2644
|
disableAutoFocus: !0,
|
|
2614
2645
|
disableEnforceFocus: !$e,
|
|
2615
|
-
disableRestoreFocus: !0 !==
|
|
2646
|
+
disableRestoreFocus: !0 !== q,
|
|
2616
2647
|
children: M(Y, {
|
|
2617
2648
|
in: ae,
|
|
2618
2649
|
timeout: T,
|
|
@@ -2620,7 +2651,7 @@ var so = {
|
|
|
2620
2651
|
...Ke,
|
|
2621
2652
|
children: M(t, {
|
|
2622
2653
|
className: "MuiDialog-container",
|
|
2623
|
-
ref:
|
|
2654
|
+
ref: ge,
|
|
2624
2655
|
tabIndex: 0,
|
|
2625
2656
|
sx: {
|
|
2626
2657
|
outline: "none",
|
|
@@ -2629,17 +2660,17 @@ var so = {
|
|
|
2629
2660
|
onKeyDown: (e) => {
|
|
2630
2661
|
e.which === re.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
|
|
2631
2662
|
},
|
|
2632
|
-
children: S(
|
|
2663
|
+
children: S(dr, {
|
|
2633
2664
|
ref: We,
|
|
2634
|
-
className:
|
|
2665
|
+
className: H({ "Mui-focusVisible": $e }, z, "draggable"),
|
|
2635
2666
|
sx: {
|
|
2636
|
-
"& *": (e) =>
|
|
2667
|
+
"& *": (e) => wt(e),
|
|
2637
2668
|
pointerEvents: "auto",
|
|
2638
2669
|
userSelect: "none",
|
|
2639
2670
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
2640
2671
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
2641
|
-
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${
|
|
2642
|
-
"&.Mui-focusVisible": { outline: (e) => `solid ${
|
|
2672
|
+
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
|
|
2673
|
+
"&.Mui-focusVisible": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
|
|
2643
2674
|
position: "absolute",
|
|
2644
2675
|
maxWidth: "100%",
|
|
2645
2676
|
...$
|
|
@@ -2647,11 +2678,11 @@ var so = {
|
|
|
2647
2678
|
defaultPosition: ne,
|
|
2648
2679
|
titleSize: we,
|
|
2649
2680
|
rootSize: he,
|
|
2650
|
-
PaperComponent:
|
|
2681
|
+
PaperComponent: Z,
|
|
2651
2682
|
...X,
|
|
2652
2683
|
...oe,
|
|
2653
2684
|
children: [p ? M(l, {
|
|
2654
|
-
className:
|
|
2685
|
+
className: H({ "Mui-selected": $e }, "draggable-title"),
|
|
2655
2686
|
sx: {
|
|
2656
2687
|
cursor: "move",
|
|
2657
2688
|
display: "flex",
|
|
@@ -2665,7 +2696,7 @@ var so = {
|
|
|
2665
2696
|
opacity: 1,
|
|
2666
2697
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
2667
2698
|
},
|
|
2668
|
-
backgroundColor: (e) =>
|
|
2699
|
+
backgroundColor: (e) => V(e.palette.action.hover, .03)
|
|
2669
2700
|
},
|
|
2670
2701
|
ref: ve,
|
|
2671
2702
|
children: S(t, {
|
|
@@ -2685,7 +2716,7 @@ var so = {
|
|
|
2685
2716
|
paddingLeft: (e) => e.spacing(1)
|
|
2686
2717
|
},
|
|
2687
2718
|
children: p
|
|
2688
|
-
}), M(
|
|
2719
|
+
}), M(Ot, {
|
|
2689
2720
|
label: a("window.close"),
|
|
2690
2721
|
children: M(d, {
|
|
2691
2722
|
"aria-label": "close",
|
|
@@ -2695,7 +2726,7 @@ var so = {
|
|
|
2695
2726
|
pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
2696
2727
|
},
|
|
2697
2728
|
onPointerUp: Ie,
|
|
2698
|
-
children: M(
|
|
2729
|
+
children: M(J, { iconKey: "Close" })
|
|
2699
2730
|
})
|
|
2700
2731
|
})]
|
|
2701
2732
|
})
|
|
@@ -2704,7 +2735,7 @@ var so = {
|
|
|
2704
2735
|
})
|
|
2705
2736
|
})
|
|
2706
2737
|
}), Ve = null;
|
|
2707
|
-
|
|
2738
|
+
A && !F && (Ve = M(_, {
|
|
2708
2739
|
...te,
|
|
2709
2740
|
open: ae,
|
|
2710
2741
|
onMouseDown: (e) => {
|
|
@@ -2719,12 +2750,12 @@ var so = {
|
|
|
2719
2750
|
}
|
|
2720
2751
|
}));
|
|
2721
2752
|
const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
|
|
2722
|
-
|
|
2753
|
+
Ae,
|
|
2723
2754
|
me,
|
|
2724
|
-
|
|
2755
|
+
fe
|
|
2725
2756
|
]);
|
|
2726
2757
|
return De(S(t, {
|
|
2727
|
-
className:
|
|
2758
|
+
className: H("MuiModal-root", je),
|
|
2728
2759
|
...Qe,
|
|
2729
2760
|
sx: {
|
|
2730
2761
|
position: "fixed",
|
|
@@ -2739,93 +2770,99 @@ var so = {
|
|
|
2739
2770
|
},
|
|
2740
2771
|
ref: Ge,
|
|
2741
2772
|
onPointerDown: (e) => {
|
|
2742
|
-
$e && (e.target ===
|
|
2773
|
+
$e && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
|
|
2743
2774
|
},
|
|
2744
2775
|
onContextMenu: (e) => {
|
|
2745
2776
|
e.isPropagationStopped() || e.preventDefault();
|
|
2746
2777
|
},
|
|
2747
2778
|
onFocus: (e) => {
|
|
2748
|
-
!$e && (e.target ===
|
|
2779
|
+
!$e && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2749
2780
|
Ee();
|
|
2750
|
-
}, 100), ze(!0),
|
|
2781
|
+
}, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
|
|
2751
2782
|
},
|
|
2752
2783
|
onBlur: (e) => {
|
|
2753
|
-
|
|
2784
|
+
Ae?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
|
|
2754
2785
|
},
|
|
2755
2786
|
children: [Ve, He]
|
|
2756
2787
|
}), qe(), Te);
|
|
2757
|
-
})),
|
|
2758
|
-
[
|
|
2759
|
-
[
|
|
2760
|
-
[
|
|
2761
|
-
[
|
|
2762
|
-
},
|
|
2763
|
-
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h =
|
|
2764
|
-
const e = "string" == typeof c ? c : c ? void 0 :
|
|
2765
|
-
return e ? M(
|
|
2788
|
+
})), mr = ["Ok", "Cancel"], hr = {
|
|
2789
|
+
[ne.Info]: "ValidationInformation",
|
|
2790
|
+
[ne.Warning]: "ValidationWarning",
|
|
2791
|
+
[ne.Error]: "ValidationStop",
|
|
2792
|
+
[ne.Success]: "Check"
|
|
2793
|
+
}, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = z(I((e, o) => {
|
|
2794
|
+
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, T = K(null), R = K(null), D = Ce(), I = A(() => {
|
|
2795
|
+
const e = "string" == typeof c ? c : c ? void 0 : hr[s];
|
|
2796
|
+
return e ? M(J, {
|
|
2766
2797
|
iconKey: e,
|
|
2767
2798
|
size: 32,
|
|
2768
2799
|
ariaHidden: !0
|
|
2769
2800
|
}) : c ?? null;
|
|
2770
|
-
}, [c, s]),
|
|
2771
|
-
const t =
|
|
2772
|
-
if (null !==
|
|
2773
|
-
if (
|
|
2774
|
-
const
|
|
2775
|
-
let
|
|
2801
|
+
}, [c, s]), $ = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? D("dialog.ok") : "Cancel" === e ? D("dialog.cancel") : e, [D]), z = K(null), [B, L] = W(null), N = ue(async (e) => {
|
|
2802
|
+
const t = fr(e);
|
|
2803
|
+
if (null !== B) return;
|
|
2804
|
+
if (xr(e)) return;
|
|
2805
|
+
const r = gr(e, x);
|
|
2806
|
+
let o;
|
|
2776
2807
|
try {
|
|
2777
|
-
if (
|
|
2778
|
-
await Promise.resolve(p?.(t,
|
|
2808
|
+
if (L(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2809
|
+
await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
|
|
2779
2810
|
} catch (e) {} finally {
|
|
2780
|
-
|
|
2811
|
+
L(null);
|
|
2781
2812
|
}
|
|
2782
2813
|
}, [
|
|
2783
2814
|
p,
|
|
2784
2815
|
u,
|
|
2785
2816
|
m,
|
|
2786
2817
|
x,
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
]),
|
|
2818
|
+
g,
|
|
2819
|
+
B
|
|
2820
|
+
]), O = ue((e, t) => {
|
|
2790
2821
|
setTimeout(() => {
|
|
2791
|
-
|
|
2822
|
+
N(g);
|
|
2792
2823
|
}, 180);
|
|
2793
|
-
}, [
|
|
2794
|
-
p?.(
|
|
2824
|
+
}, [N, g]), E = ue(() => {
|
|
2825
|
+
p?.(fr(x), !0, !1), d?.(), u?.(null);
|
|
2795
2826
|
}, [
|
|
2796
2827
|
p,
|
|
2797
2828
|
x,
|
|
2798
2829
|
d,
|
|
2799
2830
|
u
|
|
2800
|
-
]),
|
|
2801
|
-
const i =
|
|
2831
|
+
]), F = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), H = ue((e, t, o) => {
|
|
2832
|
+
const i = gr(e, x), a = {
|
|
2802
2833
|
className: t ? "defaultOption" : "action",
|
|
2803
2834
|
type: t ? "submit" : "button",
|
|
2804
2835
|
style: { minWidth: "75px" },
|
|
2805
2836
|
onClick: () => {
|
|
2806
|
-
i ?
|
|
2837
|
+
i ? E() : t || N(e);
|
|
2807
2838
|
}
|
|
2808
2839
|
}, l = "string" != typeof e ? e.renderButton : void 0;
|
|
2809
|
-
if (l) return M(
|
|
2810
|
-
|
|
2840
|
+
if (l) return M(ae, {
|
|
2841
|
+
render: l,
|
|
2842
|
+
props: {
|
|
2843
|
+
buttonProps: a,
|
|
2844
|
+
isDefaultOption: t
|
|
2845
|
+
}
|
|
2846
|
+
}, `action:${o}`);
|
|
2847
|
+
const s = null !== B && gr(e, B), c = {
|
|
2811
2848
|
className: t ? "defaultOption" : "action",
|
|
2812
2849
|
variant: t ? "contained" : "outlined",
|
|
2813
2850
|
size: "small",
|
|
2814
|
-
disabled: !i && (
|
|
2851
|
+
disabled: !i && (F || xr(e)) || null !== B && !s,
|
|
2815
2852
|
color: "primary",
|
|
2816
2853
|
...a
|
|
2817
2854
|
};
|
|
2818
2855
|
if (t || i) {
|
|
2819
|
-
const e = t ?
|
|
2856
|
+
const e = t ? T : R;
|
|
2820
2857
|
c.touchRippleRef = e, c.onPointerDown = (t) => {
|
|
2821
2858
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2822
2859
|
};
|
|
2823
2860
|
}
|
|
2824
|
-
return S(
|
|
2861
|
+
return S(r, {
|
|
2825
2862
|
...c,
|
|
2826
2863
|
children: [M("div", {
|
|
2827
2864
|
style: { visibility: s ? "hidden" : void 0 },
|
|
2828
|
-
children:
|
|
2865
|
+
children: $(e)
|
|
2829
2866
|
}), m && !i ? M(n, {
|
|
2830
2867
|
size: 16,
|
|
2831
2868
|
color: "inherit",
|
|
@@ -2839,57 +2876,57 @@ var so = {
|
|
|
2839
2876
|
transition: "opacity 120ms"
|
|
2840
2877
|
}
|
|
2841
2878
|
}) : null]
|
|
2842
|
-
}, `action:${
|
|
2879
|
+
}, `action:${o}`);
|
|
2843
2880
|
}, [
|
|
2844
2881
|
h,
|
|
2845
|
-
|
|
2882
|
+
g,
|
|
2846
2883
|
x,
|
|
2847
2884
|
P,
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
]),
|
|
2885
|
+
$,
|
|
2886
|
+
B
|
|
2887
|
+
]), q = A(() => {
|
|
2851
2888
|
const e = [];
|
|
2852
2889
|
for (let t = 0; t < h.length; t++) {
|
|
2853
|
-
const
|
|
2854
|
-
e.push(
|
|
2890
|
+
const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
|
|
2891
|
+
e.push(H(r, o, t));
|
|
2855
2892
|
}
|
|
2856
2893
|
return e;
|
|
2857
2894
|
}, [
|
|
2858
2895
|
h,
|
|
2859
|
-
|
|
2896
|
+
g,
|
|
2860
2897
|
P,
|
|
2861
|
-
|
|
2862
|
-
|
|
2898
|
+
D,
|
|
2899
|
+
B
|
|
2863
2900
|
]);
|
|
2864
|
-
return M(
|
|
2865
|
-
onCancel:
|
|
2901
|
+
return M(ur, {
|
|
2902
|
+
onCancel: E,
|
|
2866
2903
|
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2867
2904
|
onDone: u,
|
|
2868
|
-
autoFocusSel:
|
|
2905
|
+
autoFocusSel: f,
|
|
2869
2906
|
isModal: !0,
|
|
2870
|
-
ref:
|
|
2907
|
+
ref: o,
|
|
2871
2908
|
...w,
|
|
2872
2909
|
children: M(ze, {
|
|
2873
2910
|
...k,
|
|
2874
2911
|
children: S("form", {
|
|
2875
|
-
ref:
|
|
2876
|
-
onSubmit: C(
|
|
2912
|
+
ref: z,
|
|
2913
|
+
onSubmit: C(O),
|
|
2877
2914
|
children: [M(a, {
|
|
2878
2915
|
dividers: !0,
|
|
2879
2916
|
onKeyDown: (e) => {
|
|
2880
2917
|
if (e.isDefaultPrevented()) return;
|
|
2881
2918
|
e.stopPropagation();
|
|
2882
|
-
let t = null,
|
|
2883
|
-
const
|
|
2884
|
-
if (
|
|
2885
|
-
if (null !==
|
|
2886
|
-
t = x,
|
|
2919
|
+
let t = null, r = null;
|
|
2920
|
+
const o = e.which === re.Escape && x;
|
|
2921
|
+
if (o) {
|
|
2922
|
+
if (null !== B) return;
|
|
2923
|
+
t = x, r = R;
|
|
2887
2924
|
} else {
|
|
2888
|
-
if (
|
|
2889
|
-
e.which === re.Enter && (t =
|
|
2925
|
+
if (F || null !== B) return;
|
|
2926
|
+
e.which === re.Enter && (t = g ?? h[0], r = T);
|
|
2890
2927
|
}
|
|
2891
|
-
t && (
|
|
2892
|
-
|
|
2928
|
+
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2929
|
+
r?.current?.stop(e), o && E();
|
|
2893
2930
|
}, 180));
|
|
2894
2931
|
},
|
|
2895
2932
|
children: S(t, {
|
|
@@ -2897,7 +2934,7 @@ var so = {
|
|
|
2897
2934
|
display: "flex",
|
|
2898
2935
|
flexDirection: "column",
|
|
2899
2936
|
whiteSpace: "pre-wrap",
|
|
2900
|
-
rowGap: (e) => e.spacing(
|
|
2937
|
+
rowGap: (e) => e.spacing(I || l ? 1.5 : 0)
|
|
2901
2938
|
},
|
|
2902
2939
|
children: [S(t, {
|
|
2903
2940
|
sx: {
|
|
@@ -2906,12 +2943,12 @@ var so = {
|
|
|
2906
2943
|
alignItems: "flex-start",
|
|
2907
2944
|
columnGap: (e) => e.spacing(2)
|
|
2908
2945
|
},
|
|
2909
|
-
children: [
|
|
2946
|
+
children: [I ? M(t, {
|
|
2910
2947
|
sx: {
|
|
2911
2948
|
display: "flex",
|
|
2912
2949
|
flex: "none"
|
|
2913
2950
|
},
|
|
2914
|
-
children:
|
|
2951
|
+
children: I
|
|
2915
2952
|
}) : null, M(b, {
|
|
2916
2953
|
sx: { alignSelf: "center" },
|
|
2917
2954
|
children: l
|
|
@@ -2924,45 +2961,45 @@ var so = {
|
|
|
2924
2961
|
paddingBottom: (e) => e.spacing(1),
|
|
2925
2962
|
paddingLeft: (e) => e.spacing(1),
|
|
2926
2963
|
paddingRight: (e) => e.spacing(1),
|
|
2927
|
-
backgroundColor: (e) =>
|
|
2964
|
+
backgroundColor: (e) => V(e.palette.action.hover, .03)
|
|
2928
2965
|
},
|
|
2929
|
-
children:
|
|
2966
|
+
children: q
|
|
2930
2967
|
})]
|
|
2931
2968
|
})
|
|
2932
2969
|
})
|
|
2933
2970
|
});
|
|
2934
|
-
})),
|
|
2971
|
+
})), yr = (e) => {
|
|
2935
2972
|
const { showModal: t } = Re();
|
|
2936
|
-
return (
|
|
2937
|
-
const n = t(
|
|
2973
|
+
return (r) => new Promise((o) => {
|
|
2974
|
+
const n = t(br, {
|
|
2938
2975
|
...e,
|
|
2939
|
-
...
|
|
2976
|
+
...r,
|
|
2940
2977
|
onOption(e, t, n) {
|
|
2941
|
-
|
|
2978
|
+
r?.onOption?.(e, t, n), o(e);
|
|
2942
2979
|
},
|
|
2943
2980
|
onDone: () => {
|
|
2944
|
-
|
|
2981
|
+
r?.onDone?.(), n.hide();
|
|
2945
2982
|
}
|
|
2946
2983
|
});
|
|
2947
2984
|
});
|
|
2948
|
-
},
|
|
2985
|
+
}, vr = lr(U("utils-mui:inputDialog", () => import("./CYuCEbb0exvLvO8J.mjs")).load), wr = (e) => {
|
|
2949
2986
|
const { showModal: t } = Re();
|
|
2950
|
-
return (
|
|
2951
|
-
const { defaultOption:
|
|
2952
|
-
return new Promise((
|
|
2953
|
-
const l = t(
|
|
2987
|
+
return (r) => {
|
|
2988
|
+
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
2989
|
+
return new Promise((r, a) => {
|
|
2990
|
+
const l = t(vr, {
|
|
2954
2991
|
...e,
|
|
2955
|
-
defaultOption:
|
|
2992
|
+
defaultOption: o,
|
|
2956
2993
|
cancelOption: n,
|
|
2957
2994
|
...i,
|
|
2958
|
-
onOption(e, t,
|
|
2959
|
-
i?.onOption?.(e, t,
|
|
2995
|
+
onOption(e, t, o) {
|
|
2996
|
+
i?.onOption?.(e, t, o), r({
|
|
2960
2997
|
input: "",
|
|
2961
2998
|
option: e
|
|
2962
2999
|
});
|
|
2963
3000
|
},
|
|
2964
3001
|
onInput(e, t) {
|
|
2965
|
-
i?.onInput?.(e, t),
|
|
3002
|
+
i?.onInput?.(e, t), r({
|
|
2966
3003
|
input: e,
|
|
2967
3004
|
option: t
|
|
2968
3005
|
});
|
|
@@ -2976,9 +3013,9 @@ var so = {
|
|
|
2976
3013
|
});
|
|
2977
3014
|
});
|
|
2978
3015
|
};
|
|
2979
|
-
},
|
|
2980
|
-
const { commandKey:
|
|
2981
|
-
return M(
|
|
3016
|
+
}, kr = z(I((e, t) => {
|
|
3017
|
+
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
|
|
3018
|
+
return M(Ot, {
|
|
2982
3019
|
ref: t,
|
|
2983
3020
|
label: void 0 !== n ? c?.getLabel() : "",
|
|
2984
3021
|
shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
|
|
@@ -2994,32 +3031,32 @@ var so = {
|
|
|
2994
3031
|
children: a
|
|
2995
3032
|
})
|
|
2996
3033
|
});
|
|
2997
|
-
})),
|
|
2998
|
-
function
|
|
2999
|
-
const e =
|
|
3034
|
+
})), Cr = Le;
|
|
3035
|
+
function Mr() {
|
|
3036
|
+
const e = K(null);
|
|
3000
3037
|
return {
|
|
3001
|
-
ripple: A(() => M(
|
|
3038
|
+
ripple: A(() => M(Cr, {
|
|
3002
3039
|
ref: e,
|
|
3003
3040
|
center: !1
|
|
3004
3041
|
}), []),
|
|
3005
|
-
trigger:
|
|
3042
|
+
trigger: B(() => {
|
|
3006
3043
|
e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
|
|
3007
3044
|
}, [])
|
|
3008
3045
|
};
|
|
3009
3046
|
}
|
|
3010
|
-
var
|
|
3011
|
-
const { commandKey:
|
|
3012
|
-
|
|
3013
|
-
} }), [
|
|
3047
|
+
var Sr = M(J, {}), Pr = z(I((e, t) => {
|
|
3048
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = Y.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3049
|
+
f();
|
|
3050
|
+
} }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = B((e) => {
|
|
3014
3051
|
0 === e.button && e.preventDefault();
|
|
3015
|
-
}, []), v =
|
|
3052
|
+
}, []), v = B(async (e) => {
|
|
3016
3053
|
0 === e.button && b && await b.execute(p);
|
|
3017
|
-
}, [b, p]), w =
|
|
3054
|
+
}, [b, p]), w = B((e) => {
|
|
3018
3055
|
e.keyCode !== re.Enter && e.keyCode !== re.Space || b?.execute(p);
|
|
3019
3056
|
}, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
|
|
3020
|
-
if (null === i) return
|
|
3057
|
+
if (null === i) return Sr;
|
|
3021
3058
|
let e;
|
|
3022
|
-
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(
|
|
3059
|
+
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : c === Y.Toolbar || C ? void 0 : Sr;
|
|
3023
3060
|
}, [
|
|
3024
3061
|
b,
|
|
3025
3062
|
n,
|
|
@@ -3030,7 +3067,7 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3030
3067
|
tabIndex: 0,
|
|
3031
3068
|
ref: t,
|
|
3032
3069
|
selected: !!C,
|
|
3033
|
-
icon: c ===
|
|
3070
|
+
icon: c === Y.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
|
|
3034
3071
|
selected: C ?? !1,
|
|
3035
3072
|
children: P
|
|
3036
3073
|
}),
|
|
@@ -3041,7 +3078,7 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3041
3078
|
onKeyDown: w
|
|
3042
3079
|
};
|
|
3043
3080
|
let R;
|
|
3044
|
-
return R = c ===
|
|
3081
|
+
return R = c === Y.Menuitem ? S(Vt, {
|
|
3045
3082
|
...m,
|
|
3046
3083
|
...T,
|
|
3047
3084
|
children: [a ?? b?.getLabel(n), h]
|
|
@@ -3049,21 +3086,21 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3049
3086
|
...m,
|
|
3050
3087
|
...T,
|
|
3051
3088
|
children: h
|
|
3052
|
-
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(
|
|
3053
|
-
commandKey:
|
|
3054
|
-
command:
|
|
3089
|
+
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(kr, {
|
|
3090
|
+
commandKey: r,
|
|
3091
|
+
command: o,
|
|
3055
3092
|
disabled: k,
|
|
3056
|
-
placement: c ===
|
|
3093
|
+
placement: c === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3057
3094
|
shortcut: d,
|
|
3058
3095
|
...u,
|
|
3059
3096
|
children: R
|
|
3060
3097
|
}), R) : R;
|
|
3061
3098
|
}));
|
|
3062
|
-
|
|
3063
|
-
var
|
|
3064
|
-
const { commandKey:
|
|
3065
|
-
|
|
3066
|
-
} }), [
|
|
3099
|
+
Pr.displayName = "CommandButton";
|
|
3100
|
+
var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
3101
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = Y.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
|
|
3102
|
+
g();
|
|
3103
|
+
} }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = W(""), k = K(y()), C = ue(() => {
|
|
3067
3104
|
let e = v;
|
|
3068
3105
|
if (c) try {
|
|
3069
3106
|
e = c(v);
|
|
@@ -3078,14 +3115,14 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3078
3115
|
v,
|
|
3079
3116
|
c
|
|
3080
3117
|
]);
|
|
3081
|
-
|
|
3118
|
+
N(() => {
|
|
3082
3119
|
w(y());
|
|
3083
3120
|
}, [b?.getState()]);
|
|
3084
3121
|
const P = A(() => {
|
|
3085
|
-
if (null === n) return
|
|
3122
|
+
if (null === n) return Tr;
|
|
3086
3123
|
let e;
|
|
3087
|
-
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(
|
|
3088
|
-
}, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(
|
|
3124
|
+
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : l === Y.Toolbar || b?.getState() ? void 0 : Tr;
|
|
3125
|
+
}, [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, {
|
|
3089
3126
|
...h,
|
|
3090
3127
|
sx: {
|
|
3091
3128
|
paddingTop: "0px",
|
|
@@ -3172,31 +3209,31 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3172
3209
|
}
|
|
3173
3210
|
};
|
|
3174
3211
|
let $;
|
|
3175
|
-
return $ = l ===
|
|
3212
|
+
return $ = l === Y.Menuitem ? S(Vt, {
|
|
3176
3213
|
...h,
|
|
3177
3214
|
...I,
|
|
3178
3215
|
children: [
|
|
3179
3216
|
T,
|
|
3180
3217
|
D,
|
|
3181
|
-
|
|
3218
|
+
f
|
|
3182
3219
|
]
|
|
3183
3220
|
}) : M(Ft, {
|
|
3184
3221
|
...h,
|
|
3185
3222
|
...I,
|
|
3186
|
-
children:
|
|
3187
|
-
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(
|
|
3188
|
-
commandKey:
|
|
3189
|
-
placement: l ===
|
|
3223
|
+
children: f
|
|
3224
|
+
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
|
|
3225
|
+
commandKey: r,
|
|
3226
|
+
placement: l === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3190
3227
|
children: $
|
|
3191
3228
|
}), $) : $;
|
|
3192
|
-
})),
|
|
3193
|
-
const { variant:
|
|
3194
|
-
|
|
3195
|
-
} }), [
|
|
3229
|
+
})), Dr = z(I((e, t) => {
|
|
3230
|
+
const { variant: r = Y.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, renderPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3231
|
+
f();
|
|
3232
|
+
} }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
|
|
3196
3233
|
let e = null;
|
|
3197
3234
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3198
3235
|
let t = s;
|
|
3199
|
-
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(
|
|
3236
|
+
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(J, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
|
|
3200
3237
|
label: e,
|
|
3201
3238
|
icon: t
|
|
3202
3239
|
};
|
|
@@ -3205,101 +3242,101 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3205
3242
|
l,
|
|
3206
3243
|
s
|
|
3207
3244
|
]), v = {
|
|
3208
|
-
disabled: a || !(x || !
|
|
3245
|
+
disabled: a || !(x || !o),
|
|
3209
3246
|
ripple: h,
|
|
3210
3247
|
onQuickClick: n,
|
|
3211
3248
|
tooltip: d,
|
|
3212
3249
|
label: b,
|
|
3213
3250
|
icon: y
|
|
3214
3251
|
};
|
|
3215
|
-
(b || d) && (v.
|
|
3252
|
+
(b || d) && (v.renderTooltip = ({ children: e, disabled: t }) => M(Ot, {
|
|
3216
3253
|
label: b,
|
|
3217
3254
|
description: d,
|
|
3218
3255
|
disabled: t,
|
|
3219
3256
|
children: e
|
|
3220
3257
|
}));
|
|
3221
3258
|
const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
|
|
3222
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.
|
|
3223
|
-
commandKey:
|
|
3224
|
-
placement: t ??
|
|
3259
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => M(kr, {
|
|
3260
|
+
commandKey: o,
|
|
3261
|
+
placement: t ?? r === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3225
3262
|
disabled: n,
|
|
3226
3263
|
children: e
|
|
3227
|
-
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) :
|
|
3264
|
+
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.renderPopupPanel = w, r === Y.Toolbar ? M(jt, {
|
|
3228
3265
|
...m,
|
|
3229
3266
|
...v,
|
|
3230
3267
|
ref: t
|
|
3231
|
-
}) : M(
|
|
3268
|
+
}) : M(Ut, {
|
|
3232
3269
|
...m,
|
|
3233
3270
|
...v,
|
|
3234
3271
|
ref: t
|
|
3235
3272
|
});
|
|
3236
3273
|
}));
|
|
3237
|
-
function
|
|
3238
|
-
const { variant:
|
|
3239
|
-
void 0 !==
|
|
3274
|
+
function Ir(e, t = {}) {
|
|
3275
|
+
const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
|
|
3276
|
+
void 0 !== r && (c.variant = r);
|
|
3240
3277
|
const d = { ...l };
|
|
3241
|
-
void 0 !==
|
|
3242
|
-
const p = (e, t,
|
|
3243
|
-
const
|
|
3278
|
+
void 0 !== r && (d.variant = r);
|
|
3279
|
+
const p = (e, t, r) => {
|
|
3280
|
+
const o = {
|
|
3244
3281
|
...c,
|
|
3245
3282
|
groupKey: n,
|
|
3246
3283
|
commandKey: e,
|
|
3247
3284
|
commandState: void 0 !== t ? t : i,
|
|
3248
|
-
label:
|
|
3249
|
-
icon:
|
|
3250
|
-
showLabel:
|
|
3285
|
+
label: r?.getLabel?.(n),
|
|
3286
|
+
icon: r?.getIcon?.(n),
|
|
3287
|
+
showLabel: r?.showLabel
|
|
3251
3288
|
};
|
|
3252
|
-
return (
|
|
3289
|
+
return (r?.render ? r.render(o, n) : M(Pr, { ...o })) ?? null;
|
|
3253
3290
|
}, u = (e) => {
|
|
3254
|
-
const t = "string" == typeof e ? e : e.key,
|
|
3255
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($
|
|
3291
|
+
const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
|
|
3292
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($r, {
|
|
3256
3293
|
...d,
|
|
3257
3294
|
members: e.members,
|
|
3258
3295
|
icon: e.getIcon?.(),
|
|
3259
3296
|
label: e.getLabel?.(),
|
|
3260
3297
|
tooltip: e.getDescription?.()
|
|
3261
3298
|
}) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
|
|
3262
|
-
const
|
|
3263
|
-
return
|
|
3264
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($
|
|
3299
|
+
const o = s?.get(t) ?? null;
|
|
3300
|
+
return o ? ((e, t, r) => {
|
|
3301
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($r, {
|
|
3265
3302
|
...d,
|
|
3266
3303
|
groupKey: t,
|
|
3267
|
-
icon:
|
|
3268
|
-
label:
|
|
3269
|
-
showLabel:
|
|
3304
|
+
icon: r?.getIcon?.(t),
|
|
3305
|
+
label: r?.getLabel?.(t),
|
|
3306
|
+
showLabel: r?.showLabel
|
|
3270
3307
|
});
|
|
3271
3308
|
if (e.render) return e.render({ ...d }, n) ?? null;
|
|
3272
|
-
const
|
|
3309
|
+
const o = r ? {
|
|
3273
3310
|
...e,
|
|
3274
|
-
...
|
|
3311
|
+
...r
|
|
3275
3312
|
} : e;
|
|
3276
|
-
return p(e.defaultKey ?? t,
|
|
3277
|
-
})(
|
|
3313
|
+
return p(e.defaultKey ?? t, o.state, o);
|
|
3314
|
+
})(o, t, r) : p(t, r?.state, r);
|
|
3278
3315
|
}, m = [];
|
|
3279
|
-
let h = 0,
|
|
3316
|
+
let h = 0, f = !1, g = !1;
|
|
3280
3317
|
const x = e ?? [];
|
|
3281
3318
|
for (let e = 0; e < x.length; e++) {
|
|
3282
3319
|
const t = x[e];
|
|
3283
3320
|
if (!t || "-" === t) {
|
|
3284
|
-
|
|
3321
|
+
g && (f = !0);
|
|
3285
3322
|
continue;
|
|
3286
3323
|
}
|
|
3287
|
-
const
|
|
3288
|
-
|
|
3324
|
+
const r = u(t);
|
|
3325
|
+
r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(R(r, { key: "member-" + h++ })), g = !0);
|
|
3289
3326
|
}
|
|
3290
3327
|
return m;
|
|
3291
3328
|
}
|
|
3292
|
-
|
|
3293
|
-
var $
|
|
3294
|
-
const { groupKey:
|
|
3295
|
-
r,
|
|
3329
|
+
Dr.displayName = "CommandPopupButton";
|
|
3330
|
+
var $r = z(I((e, t) => {
|
|
3331
|
+
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, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
|
|
3296
3332
|
o,
|
|
3333
|
+
r,
|
|
3297
3334
|
h
|
|
3298
|
-
]), b =
|
|
3335
|
+
]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), w = l ?? g?.getLabel?.(b), k = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
|
|
3299
3336
|
const e = [], t = x ?? [];
|
|
3300
|
-
for (let
|
|
3301
|
-
const
|
|
3302
|
-
|
|
3337
|
+
for (let r = 0; r < t.length; r++) {
|
|
3338
|
+
const o = t[r];
|
|
3339
|
+
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3303
3340
|
}
|
|
3304
3341
|
return e;
|
|
3305
3342
|
}, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
|
|
@@ -3308,11 +3345,11 @@ var $o = B($((e, t) => {
|
|
|
3308
3345
|
if (t && !t.disabled()) return !1;
|
|
3309
3346
|
}
|
|
3310
3347
|
return !0;
|
|
3311
|
-
}, [P]), R =
|
|
3348
|
+
}, [P]), R = B((e) => {
|
|
3312
3349
|
const t = {};
|
|
3313
3350
|
void 0 !== p && (t.disabled = p);
|
|
3314
|
-
const
|
|
3315
|
-
variant:
|
|
3351
|
+
const r = Ir(x, {
|
|
3352
|
+
variant: Y.Menuitem,
|
|
3316
3353
|
dividerOrientation: "horizontal",
|
|
3317
3354
|
groupKey: b,
|
|
3318
3355
|
commandState: d,
|
|
@@ -3320,9 +3357,9 @@ var $o = B($((e, t) => {
|
|
|
3320
3357
|
propsCommandPopup: t,
|
|
3321
3358
|
registry: h
|
|
3322
3359
|
});
|
|
3323
|
-
return
|
|
3360
|
+
return St({
|
|
3324
3361
|
...e,
|
|
3325
|
-
children:
|
|
3362
|
+
children: r
|
|
3326
3363
|
});
|
|
3327
3364
|
}, [
|
|
3328
3365
|
x,
|
|
@@ -3331,7 +3368,7 @@ var $o = B($((e, t) => {
|
|
|
3331
3368
|
d,
|
|
3332
3369
|
p
|
|
3333
3370
|
]);
|
|
3334
|
-
return x ? M(
|
|
3371
|
+
return x ? M(Dr, {
|
|
3335
3372
|
ref: t,
|
|
3336
3373
|
quickCommand: y,
|
|
3337
3374
|
icon: v,
|
|
@@ -3340,16 +3377,16 @@ var $o = B($((e, t) => {
|
|
|
3340
3377
|
tooltip: C,
|
|
3341
3378
|
commandState: d,
|
|
3342
3379
|
disabled: p ?? T,
|
|
3343
|
-
|
|
3380
|
+
renderPopupPanel: R,
|
|
3344
3381
|
...u
|
|
3345
3382
|
}) : null;
|
|
3346
3383
|
}));
|
|
3347
|
-
$
|
|
3348
|
-
var
|
|
3349
|
-
const { commandKey:
|
|
3384
|
+
$r.displayName = "CommandGroup";
|
|
3385
|
+
var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
3386
|
+
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
|
|
3350
3387
|
if (void 0 !== i) return i;
|
|
3351
3388
|
let e = s?.getIcon(n);
|
|
3352
|
-
return e ? ("string" == typeof e && (e = M(
|
|
3389
|
+
return e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : zr;
|
|
3353
3390
|
}, [
|
|
3354
3391
|
i,
|
|
3355
3392
|
n,
|
|
@@ -3374,32 +3411,32 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3374
3411
|
paddingRight: (e) => e.spacing(.25),
|
|
3375
3412
|
fontSize: "inherit"
|
|
3376
3413
|
},
|
|
3377
|
-
children:
|
|
3414
|
+
children: o ?? s?.getLabel(n)
|
|
3378
3415
|
})]
|
|
3379
3416
|
});
|
|
3380
|
-
},
|
|
3381
|
-
const { sx:
|
|
3417
|
+
}, Lr = z(I((e, t) => {
|
|
3418
|
+
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, [
|
|
3382
3419
|
a,
|
|
3383
3420
|
i,
|
|
3384
3421
|
u,
|
|
3385
3422
|
u.getVersion()
|
|
3386
|
-
]), h = ye(t, () => ({}), []), [
|
|
3423
|
+
]), h = ye(t, () => ({}), []), [f, x] = W(null), { reference: b } = ge({
|
|
3387
3424
|
label: "toolbar",
|
|
3388
3425
|
anchor: h.current,
|
|
3389
3426
|
parentFloat: n,
|
|
3390
|
-
|
|
3427
|
+
renderPopupPanel: null
|
|
3391
3428
|
}), y = ue(() => {
|
|
3392
|
-
const e =
|
|
3429
|
+
const e = f;
|
|
3393
3430
|
e && requestAnimationFrame(() => {
|
|
3394
3431
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3395
3432
|
});
|
|
3396
|
-
}, [
|
|
3433
|
+
}, [f]), v = A(() => ({
|
|
3397
3434
|
dense: !0,
|
|
3398
3435
|
outlined: !1
|
|
3399
|
-
}), []), w = A(() => ({ ...
|
|
3436
|
+
}), []), w = A(() => ({ ...o || {} }), [o]), k = A(() => ({
|
|
3400
3437
|
...v,
|
|
3401
3438
|
...w
|
|
3402
|
-
}), [v, w]), C = A(() => ({ ...w }), [k,
|
|
3439
|
+
}), [v, w]), C = A(() => ({ ...w }), [k, o]);
|
|
3403
3440
|
let S = 0;
|
|
3404
3441
|
v.dense || (S += 2), v.outlined && S++;
|
|
3405
3442
|
let P = 2;
|
|
@@ -3409,10 +3446,10 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3409
3446
|
propsCommandButton: k,
|
|
3410
3447
|
propsCommandPopup: {
|
|
3411
3448
|
...C,
|
|
3412
|
-
...
|
|
3449
|
+
...o
|
|
3413
3450
|
}
|
|
3414
3451
|
};
|
|
3415
|
-
return s ? s(e) : m ? M(
|
|
3452
|
+
return s ? s(e) : m ? M(nr, { children: Ir(m, {
|
|
3416
3453
|
dividerOrientation: "vertical",
|
|
3417
3454
|
groupKey: i,
|
|
3418
3455
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3422,13 +3459,13 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3422
3459
|
}, [
|
|
3423
3460
|
k,
|
|
3424
3461
|
C,
|
|
3425
|
-
|
|
3462
|
+
o,
|
|
3426
3463
|
s,
|
|
3427
3464
|
m,
|
|
3428
3465
|
i,
|
|
3429
3466
|
u
|
|
3430
3467
|
]);
|
|
3431
|
-
return M(
|
|
3468
|
+
return M(g, {
|
|
3432
3469
|
variant: "dense",
|
|
3433
3470
|
sx: {
|
|
3434
3471
|
minHeight: "unset",
|
|
@@ -3443,17 +3480,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3443
3480
|
flexGrow: 1,
|
|
3444
3481
|
display: "flex",
|
|
3445
3482
|
overflow: "hidden",
|
|
3446
|
-
...
|
|
3483
|
+
...r
|
|
3447
3484
|
},
|
|
3448
3485
|
ref: h,
|
|
3449
3486
|
onFocus: (e) => {
|
|
3450
|
-
e.relatedTarget && !
|
|
3487
|
+
e.relatedTarget && !f && x(e.relatedTarget);
|
|
3451
3488
|
},
|
|
3452
3489
|
onBlur: (e) => {
|
|
3453
|
-
|
|
3490
|
+
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3454
3491
|
},
|
|
3455
3492
|
onKeyDown: (e) => {
|
|
3456
|
-
|
|
3493
|
+
f && e.which === re.Escape && f.focus();
|
|
3457
3494
|
},
|
|
3458
3495
|
...d,
|
|
3459
3496
|
children: M("div", {
|
|
@@ -3467,9 +3504,9 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3467
3504
|
alignItems: "center",
|
|
3468
3505
|
maxWidth: "100%"
|
|
3469
3506
|
},
|
|
3470
|
-
children: M(
|
|
3507
|
+
children: M(te, {
|
|
3471
3508
|
value: b,
|
|
3472
|
-
children: M(
|
|
3509
|
+
children: M(_, {
|
|
3473
3510
|
value: y,
|
|
3474
3511
|
children: T
|
|
3475
3512
|
})
|
|
@@ -3477,17 +3514,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3477
3514
|
})
|
|
3478
3515
|
});
|
|
3479
3516
|
}));
|
|
3480
|
-
|
|
3481
|
-
var
|
|
3482
|
-
const { groupKey:
|
|
3483
|
-
r,
|
|
3517
|
+
Lr.displayName = "CommandToolbar";
|
|
3518
|
+
var Nr = z(I((e, t) => {
|
|
3519
|
+
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, [
|
|
3484
3520
|
o,
|
|
3521
|
+
r,
|
|
3485
3522
|
c
|
|
3486
3523
|
]), p = A(() => {
|
|
3487
3524
|
const e = [], t = d ?? [];
|
|
3488
|
-
for (let
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3525
|
+
for (let r = 0; r < t.length; r++) {
|
|
3526
|
+
const o = t[r];
|
|
3527
|
+
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3491
3528
|
}
|
|
3492
3529
|
return e;
|
|
3493
3530
|
}, [d]), u = he(p);
|
|
@@ -3496,21 +3533,21 @@ var No = B($((e, t) => {
|
|
|
3496
3533
|
const t = u[e];
|
|
3497
3534
|
t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
|
|
3498
3535
|
}
|
|
3499
|
-
const
|
|
3536
|
+
const f = "icon" === i ? {
|
|
3500
3537
|
icon: h ?? a,
|
|
3501
3538
|
quickCommand: void 0
|
|
3502
3539
|
} : {
|
|
3503
3540
|
quickCommand: m ?? p[0],
|
|
3504
3541
|
icon: void 0
|
|
3505
3542
|
};
|
|
3506
|
-
return M($
|
|
3543
|
+
return M($r, {
|
|
3507
3544
|
ref: t,
|
|
3508
|
-
groupKey:
|
|
3509
|
-
members:
|
|
3545
|
+
groupKey: r,
|
|
3546
|
+
members: o,
|
|
3510
3547
|
registry: c,
|
|
3511
3548
|
...l,
|
|
3512
|
-
...
|
|
3549
|
+
...f
|
|
3513
3550
|
});
|
|
3514
3551
|
}));
|
|
3515
|
-
|
|
3516
|
-
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon,
|
|
3552
|
+
Nr.displayName = "ToggleGroupButton";
|
|
3553
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, Ft as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Fe as createScrollButton, dt as createStrokeShadowFilter, St as defaultRenderPopupPanel, Ae as defaultRenderScrollButtonEdge, We as defaultRenderScrollButtonEnd, Ke as defaultRenderScrollButtonStart, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };
|