@sheetxl/utils-mui 0.8.0-beta.6 → 0.8.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{BoIvdNHQ8K9GSQnQ.cjs → BuNmQtxji8I9Yi5e.cjs} +1 -1
- package/browser/cjs/{BUKGN088i3WnPm2X.cjs → DUxTGswhY7-hAb4I.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{C6bHrzt4xQEVPvhp.mjs → B-9Z_PrXy3xrqV-k.mjs} +2 -2
- package/browser/esm/{CFyV2k_7FrmByUL7.mjs → CszJijHEUkwwmT4u.mjs} +4 -2
- package/browser/esm/index.mjs +3 -3
- package/licenses/dependencies.txt +67 -67
- package/node/esm/{yWnhwbbbZJt_ukoD.mjs → CVCkIih_2s2gyrpD.mjs} +1 -1
- package/node/esm/index.mjs +106 -104
- package/package.json +3 -3
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.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as
|
|
7
|
+
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as k, useThemeProps as w } from "@mui/material";
|
|
8
8
|
import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
9
|
import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
|
|
10
10
|
import V from "clsx";
|
|
11
11
|
import { alpha as q, darken as j, lighten as Q } from "@mui/system";
|
|
12
12
|
import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
|
|
13
|
-
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as
|
|
13
|
+
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useLazyRetry as ve, useTranslator as ke } from "@sheetxl/utils-react";
|
|
14
14
|
import { mergeRefs as we } from "react-merge-refs";
|
|
15
15
|
import { useIsomorphicLayoutEffect as Ce, useMeasure as Me } from "react-use";
|
|
16
16
|
import { deepmerge as Se } from "@mui/utils";
|
|
@@ -430,7 +430,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
430
430
|
}, Je = (e) => {
|
|
431
431
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
432
432
|
}, Ze = B($((e, r) => {
|
|
433
|
-
const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...
|
|
433
|
+
const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
|
|
434
434
|
"data-sxl-loading-label": "",
|
|
435
435
|
variant: "caption",
|
|
436
436
|
component: "div",
|
|
@@ -480,7 +480,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
480
480
|
},
|
|
481
481
|
children: [x, y]
|
|
482
482
|
});
|
|
483
|
-
return !0 === s && (e = M(
|
|
483
|
+
return !0 === s && (e = M(f, {
|
|
484
484
|
elevation: 0,
|
|
485
485
|
sx: {
|
|
486
486
|
display: "flex",
|
|
@@ -508,7 +508,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
508
508
|
},
|
|
509
509
|
children: e
|
|
510
510
|
})), M(t, {
|
|
511
|
-
...
|
|
511
|
+
...g,
|
|
512
512
|
ref: we([v, r]),
|
|
513
513
|
className: "animatable",
|
|
514
514
|
sx: {
|
|
@@ -837,7 +837,7 @@ var nt = B($((e, r) => {
|
|
|
837
837
|
height: "100%",
|
|
838
838
|
boxSizing: "border-box"
|
|
839
839
|
}
|
|
840
|
-
}), M(
|
|
840
|
+
}), M(f, {
|
|
841
841
|
elevation: 0,
|
|
842
842
|
sx: {
|
|
843
843
|
display: "flex",
|
|
@@ -1008,7 +1008,7 @@ var lt = B($((e, r) => {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
let r = mt.exec(e);
|
|
1010
1010
|
return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
|
|
1011
|
-
},
|
|
1011
|
+
}, ft = function(e, t = .2, r = "light") {
|
|
1012
1012
|
if (!e) return e;
|
|
1013
1013
|
let o = "dark" !== r;
|
|
1014
1014
|
t < 0 && (o = !o, t *= -1), e = ht(e);
|
|
@@ -1017,7 +1017,7 @@ var lt = B($((e, r) => {
|
|
|
1017
1017
|
} catch {
|
|
1018
1018
|
return e;
|
|
1019
1019
|
}
|
|
1020
|
-
},
|
|
1020
|
+
}, gt = (e, t) => {
|
|
1021
1021
|
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
1022
1022
|
const o = {
|
|
1023
1023
|
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
@@ -1126,8 +1126,8 @@ var lt = B($((e, r) => {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
function xt(e, t) {
|
|
1128
1128
|
return t = Se({
|
|
1129
|
-
track:
|
|
1130
|
-
thumb:
|
|
1129
|
+
track: ft(e.palette.background.paper, .05, e?.palette.mode),
|
|
1130
|
+
thumb: ft(e.palette.background.paper, .3, e?.palette.mode),
|
|
1131
1131
|
active: e.palette.primary.main,
|
|
1132
1132
|
corner: e.palette.background.paper,
|
|
1133
1133
|
outline: !1
|
|
@@ -1219,7 +1219,7 @@ var yt = {
|
|
|
1219
1219
|
color: "inherit"
|
|
1220
1220
|
});
|
|
1221
1221
|
}, Mt = B($((e, t) => {
|
|
1222
|
-
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = wt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx:
|
|
1222
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = wt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), k = ue(m ?? (() => {}), [m]), [w, C] = H(), S = W(null), P = ue((e, t) => {
|
|
1223
1223
|
C(e), c?.(S.current, t);
|
|
1224
1224
|
}, [c]), T = A(() => {
|
|
1225
1225
|
const e = {
|
|
@@ -1228,7 +1228,7 @@ var yt = {
|
|
|
1228
1228
|
children: h,
|
|
1229
1229
|
...x
|
|
1230
1230
|
}, t = l(e);
|
|
1231
|
-
return M(
|
|
1231
|
+
return M(f, {
|
|
1232
1232
|
elevation: 8,
|
|
1233
1233
|
ref: S,
|
|
1234
1234
|
sx: {
|
|
@@ -1309,7 +1309,7 @@ var St = (e) => M(Mt, { ...e }), Pt = (e) => M(te, {
|
|
|
1309
1309
|
onContextMenu: (e) => {
|
|
1310
1310
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1311
1311
|
}
|
|
1312
|
-
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component:
|
|
1312
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: f } = ge({
|
|
1313
1313
|
label: l ?? "contextMenu",
|
|
1314
1314
|
propsPopper: a,
|
|
1315
1315
|
parentFloat: n,
|
|
@@ -1319,7 +1319,7 @@ var St = (e) => M(Mt, { ...e }), Pt = (e) => M(te, {
|
|
|
1319
1319
|
});
|
|
1320
1320
|
return O(() => {
|
|
1321
1321
|
u ? h.open(0) : h.close(0);
|
|
1322
|
-
}, [u]), S(C, { children: [D(r, d),
|
|
1322
|
+
}, [u]), S(C, { children: [D(r, d), f] });
|
|
1323
1323
|
})), It = $((e, t) => {
|
|
1324
1324
|
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1325
1325
|
return M(x, {
|
|
@@ -1403,14 +1403,16 @@ var $t = B((e) => {
|
|
|
1403
1403
|
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M($t, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1404
1404
|
sx: {
|
|
1405
1405
|
display: "flex",
|
|
1406
|
-
alignItems: "center"
|
|
1406
|
+
alignItems: "center",
|
|
1407
|
+
flexShrink: 0,
|
|
1408
|
+
whiteSpace: "nowrap"
|
|
1407
1409
|
},
|
|
1408
1410
|
children: a
|
|
1409
1411
|
}, n);
|
|
1410
1412
|
}, Bt = B($((e, r) => {
|
|
1411
|
-
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e,
|
|
1412
|
-
let
|
|
1413
|
-
i && (
|
|
1413
|
+
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 = ke();
|
|
1414
|
+
let g = null;
|
|
1415
|
+
i && (g = zt(i, f, c));
|
|
1414
1416
|
const [x, y] = H(null);
|
|
1415
1417
|
O(() => {
|
|
1416
1418
|
Promise.resolve(n).then((e) => {
|
|
@@ -1447,8 +1449,8 @@ var $t = B((e) => {
|
|
|
1447
1449
|
children: x
|
|
1448
1450
|
}),
|
|
1449
1451
|
a ? M(lt, { chips: a }) : null,
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
+
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1453
|
+
g
|
|
1452
1454
|
]
|
|
1453
1455
|
}), l ? M(b, {
|
|
1454
1456
|
variant: "caption",
|
|
@@ -1474,7 +1476,7 @@ var $t = B((e) => {
|
|
|
1474
1476
|
})
|
|
1475
1477
|
});
|
|
1476
1478
|
})), Lt = M(Z, {}), Nt = M(Z, { iconKey: "Check" }), Ot = B($((e, r) => {
|
|
1477
|
-
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus:
|
|
1479
|
+
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] = H(!1), v = {
|
|
1478
1480
|
marginRight: "0px",
|
|
1479
1481
|
padding: o ? "2px" : "7px",
|
|
1480
1482
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1524,10 +1526,10 @@ var $t = B((e) => {
|
|
|
1524
1526
|
"Mui-disabled": m
|
|
1525
1527
|
}, h),
|
|
1526
1528
|
onFocus: (e) => {
|
|
1527
|
-
y(!0),
|
|
1529
|
+
y(!0), f?.(e);
|
|
1528
1530
|
},
|
|
1529
1531
|
onBlur: (e) => {
|
|
1530
|
-
y(!1),
|
|
1532
|
+
y(!1), g?.(e);
|
|
1531
1533
|
},
|
|
1532
1534
|
size: "small",
|
|
1533
1535
|
TouchRippleProps: { center: !1 },
|
|
@@ -1559,7 +1561,7 @@ var $t = B((e) => {
|
|
|
1559
1561
|
paddingLeft: "6px",
|
|
1560
1562
|
paddingRight: "18px"
|
|
1561
1563
|
}, At = (e) => e.icon, Kt = B($((e, t) => {
|
|
1562
|
-
const { icon: r = Et, renderIcon: o = At, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx:
|
|
1564
|
+
const { icon: r = Et, renderIcon: o = At, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [k, w] = H(!1), [C, P] = H(!1), T = A(() => {
|
|
1563
1565
|
const e = o?.({
|
|
1564
1566
|
icon: r,
|
|
1565
1567
|
disabled: p,
|
|
@@ -1624,7 +1626,7 @@ var $t = B((e) => {
|
|
|
1624
1626
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1625
1627
|
color: (e) => e.palette.text.secondary,
|
|
1626
1628
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1627
|
-
...
|
|
1629
|
+
...f
|
|
1628
1630
|
},
|
|
1629
1631
|
...y,
|
|
1630
1632
|
children: [
|
|
@@ -1633,10 +1635,10 @@ var $t = B((e) => {
|
|
|
1633
1635
|
x ? M(lt, { chips: x }) : null
|
|
1634
1636
|
]
|
|
1635
1637
|
});
|
|
1636
|
-
return
|
|
1638
|
+
return g && (R = M(Bt, {
|
|
1637
1639
|
children: R,
|
|
1638
1640
|
placement: "right-start",
|
|
1639
|
-
...
|
|
1641
|
+
...g
|
|
1640
1642
|
})), R;
|
|
1641
1643
|
})), Wt = B($((e, t) => {
|
|
1642
1644
|
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
@@ -1657,7 +1659,7 @@ var $t = B((e) => {
|
|
|
1657
1659
|
children: r
|
|
1658
1660
|
}) });
|
|
1659
1661
|
})), Ht = B($((e, r) => {
|
|
1660
|
-
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton:
|
|
1662
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: w = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = k(), L = A(() => {
|
|
1661
1663
|
const e = (e, t, r, o = r) => {
|
|
1662
1664
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1663
1665
|
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
@@ -1671,7 +1673,7 @@ var $t = B((e) => {
|
|
|
1671
1673
|
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1672
1674
|
text: B.palette.text.icon ?? B.palette.action.active
|
|
1673
1675
|
};
|
|
1674
|
-
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X =
|
|
1676
|
+
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = ge({
|
|
1675
1677
|
anchor: Q.current,
|
|
1676
1678
|
label: i,
|
|
1677
1679
|
createPopupPanel: p,
|
|
@@ -1764,7 +1766,7 @@ var $t = B((e) => {
|
|
|
1764
1766
|
disableInteractive: !0,
|
|
1765
1767
|
children: t
|
|
1766
1768
|
});
|
|
1767
|
-
}, []), ee = s ||
|
|
1769
|
+
}, []), ee = s || g, te = ee && (f?.tooltip || f?.createTooltip), re = (e) => {
|
|
1768
1770
|
const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
|
|
1769
1771
|
let i = M(d, {
|
|
1770
1772
|
sx: { ...o },
|
|
@@ -1787,7 +1789,7 @@ var $t = B((e) => {
|
|
|
1787
1789
|
]);
|
|
1788
1790
|
if (ee) {
|
|
1789
1791
|
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1790
|
-
const t = (
|
|
1792
|
+
const t = (g || re)({
|
|
1791
1793
|
tabIndex: -1,
|
|
1792
1794
|
disabled: v,
|
|
1793
1795
|
size: "small",
|
|
@@ -1800,7 +1802,7 @@ var $t = B((e) => {
|
|
|
1800
1802
|
},
|
|
1801
1803
|
disableRipple: !!T,
|
|
1802
1804
|
children: S(C, { children: [ae, T] }),
|
|
1803
|
-
...
|
|
1805
|
+
...f,
|
|
1804
1806
|
className: V({
|
|
1805
1807
|
"Mui-focusVisible": E || N,
|
|
1806
1808
|
"Mui-selected": l,
|
|
@@ -1809,11 +1811,11 @@ var $t = B((e) => {
|
|
|
1809
1811
|
bordered: !0,
|
|
1810
1812
|
left: !0,
|
|
1811
1813
|
"hard-right": !0
|
|
1812
|
-
},
|
|
1814
|
+
}, f?.className),
|
|
1813
1815
|
sx: {
|
|
1814
1816
|
...J.quickButtonStyling,
|
|
1815
1817
|
height: "100%",
|
|
1816
|
-
...
|
|
1818
|
+
...f?.sx
|
|
1817
1819
|
}
|
|
1818
1820
|
});
|
|
1819
1821
|
let r = Ct(!0, o, N);
|
|
@@ -1929,7 +1931,7 @@ var $t = B((e) => {
|
|
|
1929
1931
|
}));
|
|
1930
1932
|
Ht.displayName = "ExhibitPopupIconButton";
|
|
1931
1933
|
var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
1932
|
-
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = qt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton:
|
|
1934
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = qt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: k, children: w, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
|
|
1933
1935
|
if (!d) return;
|
|
1934
1936
|
const { propsPopper: e } = d;
|
|
1935
1937
|
return {
|
|
@@ -1937,7 +1939,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
1937
1939
|
offsets: [-4, -2],
|
|
1938
1940
|
...e
|
|
1939
1941
|
};
|
|
1940
|
-
}, [d]), q =
|
|
1942
|
+
}, [d]), q = ge({
|
|
1941
1943
|
anchor: E.current,
|
|
1942
1944
|
label: n,
|
|
1943
1945
|
createPopupPanel: c,
|
|
@@ -1962,7 +1964,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
1962
1964
|
disableInteractive: !0,
|
|
1963
1965
|
children: t
|
|
1964
1966
|
});
|
|
1965
|
-
}, []), X = a ||
|
|
1967
|
+
}, []), X = a || f, Y = (e) => {
|
|
1966
1968
|
const { tooltip: t, createTooltip: r, ...o } = e;
|
|
1967
1969
|
return S(Kt, {
|
|
1968
1970
|
icon: b,
|
|
@@ -2008,7 +2010,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2008
2010
|
...h
|
|
2009
2011
|
};
|
|
2010
2012
|
J = S(C, { children: [
|
|
2011
|
-
(
|
|
2013
|
+
(f || Y)(e),
|
|
2012
2014
|
M(s, {
|
|
2013
2015
|
sx: {
|
|
2014
2016
|
ml: "0px",
|
|
@@ -2203,7 +2205,7 @@ var er = {
|
|
|
2203
2205
|
inline: null,
|
|
2204
2206
|
popup: []
|
|
2205
2207
|
}, tr = B($((e, r) => {
|
|
2206
|
-
const { children: o, sx: n, ...i } = e, a = ke(), l = ye(r, () => ({}), []), [s, c] = Me(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h,
|
|
2208
|
+
const { children: o, sx: n, ...i } = e, a = ke(), l = ye(r, () => ({}), []), [s, c] = Me(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, f] = H(null), [g, x] = H(null), b = g?.popup ?? null, y = W(0), [v, k] = H(!1), w = W(!1), C = fe(), T = W(C);
|
|
2207
2209
|
T.current = C;
|
|
2208
2210
|
const R = L(() => {
|
|
2209
2211
|
T.current?.closeChild(0);
|
|
@@ -2231,7 +2233,7 @@ var er = {
|
|
|
2231
2233
|
},
|
|
2232
2234
|
children: o
|
|
2233
2235
|
}, i));
|
|
2234
|
-
}),
|
|
2236
|
+
}), f(e);
|
|
2235
2237
|
}, [o, c]), F(() => {
|
|
2236
2238
|
if (!h) return;
|
|
2237
2239
|
const e = p.current?.refs ?? [], t = e.length;
|
|
@@ -2349,7 +2351,7 @@ var er = {
|
|
|
2349
2351
|
overflow: "hidden",
|
|
2350
2352
|
alignItems: "center"
|
|
2351
2353
|
},
|
|
2352
|
-
children:
|
|
2354
|
+
children: g?.inline ?? h
|
|
2353
2355
|
}), M(t, {
|
|
2354
2356
|
className: "overflow-palette-popup-button",
|
|
2355
2357
|
sx: {
|
|
@@ -2398,9 +2400,9 @@ function ir(e) {
|
|
|
2398
2400
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2399
2401
|
let h = !1;
|
|
2400
2402
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
2401
|
-
let
|
|
2402
|
-
if (void 0 !== d?.prewarm && (
|
|
2403
|
-
const
|
|
2403
|
+
let f = !1;
|
|
2404
|
+
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);
|
|
2405
|
+
const g = {
|
|
2404
2406
|
...e,
|
|
2405
2407
|
...d,
|
|
2406
2408
|
...p,
|
|
@@ -2429,13 +2431,13 @@ function ir(e) {
|
|
|
2429
2431
|
},
|
|
2430
2432
|
disableAutoDestroy: h,
|
|
2431
2433
|
revealToken: 0,
|
|
2432
|
-
startHidden:
|
|
2434
|
+
startHidden: f,
|
|
2433
2435
|
open: !0
|
|
2434
2436
|
}, x = t.get(s);
|
|
2435
2437
|
if (x) {
|
|
2436
2438
|
const e = (x.revealToken ?? 0) + 1;
|
|
2437
2439
|
i(x.id, {
|
|
2438
|
-
...
|
|
2440
|
+
...g,
|
|
2439
2441
|
revealToken: e
|
|
2440
2442
|
}), r((t) => {
|
|
2441
2443
|
const r = t.get(s);
|
|
@@ -2449,12 +2451,12 @@ function ir(e) {
|
|
|
2449
2451
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2450
2452
|
let b = o.current.get(s);
|
|
2451
2453
|
b || (b = nr(c), o.current.set(s, b));
|
|
2452
|
-
const y = n(b,
|
|
2454
|
+
const y = n(b, g, { destroyOnClose: !h });
|
|
2453
2455
|
r((e) => (e.set(s, {
|
|
2454
2456
|
id: y.id,
|
|
2455
2457
|
element: null,
|
|
2456
2458
|
revealToken: 0
|
|
2457
|
-
}), e)),
|
|
2459
|
+
}), e)), f && u(null);
|
|
2458
2460
|
});
|
|
2459
2461
|
}
|
|
2460
2462
|
Zt();
|
|
@@ -2462,12 +2464,12 @@ var ar = {
|
|
|
2462
2464
|
x: 0,
|
|
2463
2465
|
y: 0
|
|
2464
2466
|
}, lr = B($((e, t) => {
|
|
2465
|
-
const { defaultPosition: r = ar, PaperComponent: o =
|
|
2467
|
+
const { defaultPosition: r = ar, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2466
2468
|
left: 0,
|
|
2467
2469
|
top: 0,
|
|
2468
2470
|
right: s.width - l.width,
|
|
2469
2471
|
bottom: s.height - l.height
|
|
2470
|
-
} : null, [l, s]), [u, m] = H(null), [h,
|
|
2472
|
+
} : null, [l, s]), [u, m] = H(null), [h, g] = H(null), x = u ?? r ?? null;
|
|
2471
2473
|
return M(Ie, {
|
|
2472
2474
|
nodeRef: d,
|
|
2473
2475
|
handle: a,
|
|
@@ -2481,7 +2483,7 @@ var ar = {
|
|
|
2481
2483
|
onStop: n,
|
|
2482
2484
|
onStart: (e, t) => {
|
|
2483
2485
|
const r = e;
|
|
2484
|
-
|
|
2486
|
+
g({
|
|
2485
2487
|
x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
|
|
2486
2488
|
y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
|
|
2487
2489
|
});
|
|
@@ -2510,15 +2512,15 @@ var ar = {
|
|
|
2510
2512
|
}), i = k(), a = ke(), s = {
|
|
2511
2513
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2512
2514
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2513
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown:
|
|
2515
|
+
}, { 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 = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = sr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
|
|
2514
2516
|
let Y = D.transition ?? c;
|
|
2515
|
-
const _ = D.backdrop ?? e, J = D.paper ??
|
|
2517
|
+
const _ = D.backdrop ?? e, J = D.paper ?? f;
|
|
2516
2518
|
let ee = I.transition;
|
|
2517
2519
|
R && (ee = {
|
|
2518
2520
|
...R,
|
|
2519
2521
|
...ee
|
|
2520
2522
|
});
|
|
2521
|
-
const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = Me(),
|
|
2523
|
+
const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = Me(), fe = W(null), ge = W(null), [ve, Ce] = Me(), Se = W(null), Pe = E(), Te = W(null);
|
|
2522
2524
|
F(() => {
|
|
2523
2525
|
if (!ne || U) return;
|
|
2524
2526
|
const e = !!v;
|
|
@@ -2533,7 +2535,7 @@ var ar = {
|
|
|
2533
2535
|
}, [u]);
|
|
2534
2536
|
F(() => {
|
|
2535
2537
|
if (ne) return;
|
|
2536
|
-
const e =
|
|
2538
|
+
const e = fe.current, t = Se.current;
|
|
2537
2539
|
if (!e || !t) return;
|
|
2538
2540
|
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2539
2541
|
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
@@ -2547,10 +2549,10 @@ var ar = {
|
|
|
2547
2549
|
const [Ie, $e] = H(!1), [ze, Be] = H(null), [Le, Ne] = H(null), Oe = ue((e) => {
|
|
2548
2550
|
if (ze) return ze.focus(e), !0;
|
|
2549
2551
|
if (C) {
|
|
2550
|
-
const t =
|
|
2552
|
+
const t = ge.current?.querySelectorAll?.(C);
|
|
2551
2553
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2552
2554
|
}
|
|
2553
|
-
return
|
|
2555
|
+
return ge.current?.focus?.(e), !1;
|
|
2554
2556
|
}, [ze, C]), Ee = ye(o, () => ({ focus: (e) => {
|
|
2555
2557
|
Oe(e);
|
|
2556
2558
|
} }), []), Fe = W(Q);
|
|
@@ -2572,7 +2574,7 @@ var ar = {
|
|
|
2572
2574
|
h?.(), ee?.onEntered?.(e, t);
|
|
2573
2575
|
},
|
|
2574
2576
|
onEntering: (e, t) => {
|
|
2575
|
-
de(!0),
|
|
2577
|
+
de(!0), g?.(Ee.current);
|
|
2576
2578
|
}
|
|
2577
2579
|
};
|
|
2578
2580
|
O(() => {
|
|
@@ -2590,7 +2592,7 @@ var ar = {
|
|
|
2590
2592
|
...Ae,
|
|
2591
2593
|
children: M(t, {
|
|
2592
2594
|
className: "MuiDialog-container",
|
|
2593
|
-
ref:
|
|
2595
|
+
ref: ge,
|
|
2594
2596
|
tabIndex: 0,
|
|
2595
2597
|
sx: {
|
|
2596
2598
|
outline: "none",
|
|
@@ -2706,18 +2708,18 @@ var ar = {
|
|
|
2706
2708
|
ref: we([
|
|
2707
2709
|
Ee,
|
|
2708
2710
|
me,
|
|
2709
|
-
|
|
2711
|
+
fe
|
|
2710
2712
|
]),
|
|
2711
2713
|
onPointerDown: (e) => {
|
|
2712
|
-
Ie && (e.target ===
|
|
2714
|
+
Ie && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
|
|
2713
2715
|
},
|
|
2714
2716
|
onContextMenu: (e) => {
|
|
2715
2717
|
e.isPropagationStopped() || e.preventDefault();
|
|
2716
2718
|
},
|
|
2717
2719
|
onFocus: (e) => {
|
|
2718
|
-
!Ie && (e.target ===
|
|
2720
|
+
!Ie && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2719
2721
|
Oe();
|
|
2720
|
-
}, 100), $e(!0),
|
|
2722
|
+
}, 100), $e(!0), ge.current?.contains(e.target) && e.target !== ge.current && Be(e.target), e.relatedTarget && !Le && Ne(e.relatedTarget);
|
|
2721
2723
|
},
|
|
2722
2724
|
onBlur: (e) => {
|
|
2723
2725
|
Ee?.current?.contains(e.relatedTarget) || (Ne(null), $e(!1));
|
|
@@ -2729,8 +2731,8 @@ var ar = {
|
|
|
2729
2731
|
[ie.Warning]: "ValidationWarning",
|
|
2730
2732
|
[ie.Error]: "ValidationStop",
|
|
2731
2733
|
[ie.Success]: "Check"
|
|
2732
|
-
}, ur = (e) => "string" == typeof e ? e : e.id ?? e, mr = (e, t) => void 0 !== t && ur(e) === ur(t), hr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled),
|
|
2733
|
-
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = dr, autoFocusSel:
|
|
2734
|
+
}, ur = (e) => "string" == typeof e ? e : e.id ?? e, mr = (e, t) => void 0 !== t && ur(e) === ur(t), hr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), fr = B($((e, o) => {
|
|
2735
|
+
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = dr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...k } = e, w = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = w, R = W(null), D = W(null), I = ke(), $ = A(() => {
|
|
2734
2736
|
const e = "string" == typeof c ? c : c ? void 0 : pr[s];
|
|
2735
2737
|
return e ? M(Z, {
|
|
2736
2738
|
iconKey: e,
|
|
@@ -2745,7 +2747,7 @@ var ar = {
|
|
|
2745
2747
|
let o;
|
|
2746
2748
|
try {
|
|
2747
2749
|
if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2748
|
-
await Promise.resolve(p?.(t, r, mr(e,
|
|
2750
|
+
await Promise.resolve(p?.(t, r, mr(e, g))), u?.(t);
|
|
2749
2751
|
} catch (e) {} finally {
|
|
2750
2752
|
N(null);
|
|
2751
2753
|
}
|
|
@@ -2754,13 +2756,13 @@ var ar = {
|
|
|
2754
2756
|
u,
|
|
2755
2757
|
m,
|
|
2756
2758
|
x,
|
|
2757
|
-
|
|
2759
|
+
g,
|
|
2758
2760
|
L
|
|
2759
2761
|
]), E = ue((e, t) => {
|
|
2760
2762
|
setTimeout(() => {
|
|
2761
|
-
O(
|
|
2763
|
+
O(g);
|
|
2762
2764
|
}, 180);
|
|
2763
|
-
}, [O,
|
|
2765
|
+
}, [O, g]), F = ue(() => {
|
|
2764
2766
|
p?.(ur(x), !0, !1), d?.(), u?.(null);
|
|
2765
2767
|
}, [
|
|
2766
2768
|
p,
|
|
@@ -2812,7 +2814,7 @@ var ar = {
|
|
|
2812
2814
|
}, `action:${o}`);
|
|
2813
2815
|
}, [
|
|
2814
2816
|
h,
|
|
2815
|
-
|
|
2817
|
+
g,
|
|
2816
2818
|
x,
|
|
2817
2819
|
P,
|
|
2818
2820
|
z,
|
|
@@ -2820,13 +2822,13 @@ var ar = {
|
|
|
2820
2822
|
]), j = A(() => {
|
|
2821
2823
|
const e = [];
|
|
2822
2824
|
for (let t = 0; t < h.length; t++) {
|
|
2823
|
-
const r = h[t], o = void 0 !==
|
|
2825
|
+
const r = h[t], o = void 0 !== g ? mr(r, g) : 0 === t;
|
|
2824
2826
|
e.push(V(r, o, t));
|
|
2825
2827
|
}
|
|
2826
2828
|
return e;
|
|
2827
2829
|
}, [
|
|
2828
2830
|
h,
|
|
2829
|
-
|
|
2831
|
+
g,
|
|
2830
2832
|
P,
|
|
2831
2833
|
I,
|
|
2832
2834
|
L
|
|
@@ -2835,7 +2837,7 @@ var ar = {
|
|
|
2835
2837
|
onCancel: F,
|
|
2836
2838
|
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2837
2839
|
onDone: u,
|
|
2838
|
-
autoFocusSel:
|
|
2840
|
+
autoFocusSel: f,
|
|
2839
2841
|
isModal: !0,
|
|
2840
2842
|
ref: o,
|
|
2841
2843
|
...k,
|
|
@@ -2856,7 +2858,7 @@ var ar = {
|
|
|
2856
2858
|
t = x, r = D;
|
|
2857
2859
|
} else {
|
|
2858
2860
|
if (K || null !== L) return;
|
|
2859
|
-
e.which === oe.Enter && (t =
|
|
2861
|
+
e.which === oe.Enter && (t = g ?? h[0], r = R);
|
|
2860
2862
|
}
|
|
2861
2863
|
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2862
2864
|
r?.current?.stop(e), o && F();
|
|
@@ -2901,10 +2903,10 @@ var ar = {
|
|
|
2901
2903
|
})
|
|
2902
2904
|
})
|
|
2903
2905
|
});
|
|
2904
|
-
})),
|
|
2906
|
+
})), gr = (e) => {
|
|
2905
2907
|
const { showModal: t } = Re();
|
|
2906
2908
|
return (r) => new Promise((o) => {
|
|
2907
|
-
const n = t(
|
|
2909
|
+
const n = t(fr, {
|
|
2908
2910
|
...e,
|
|
2909
2911
|
...r,
|
|
2910
2912
|
onOption(e, t, n) {
|
|
@@ -2915,7 +2917,7 @@ var ar = {
|
|
|
2915
2917
|
}
|
|
2916
2918
|
});
|
|
2917
2919
|
});
|
|
2918
|
-
}, xr = nr(X("utils-mui:inputDialog", () => import("./
|
|
2920
|
+
}, xr = nr(X("utils-mui:inputDialog", () => import("./CVCkIih_2s2gyrpD.mjs"), { tier: "common" }).load), br = (e) => {
|
|
2919
2921
|
const { showModal: t } = Re();
|
|
2920
2922
|
return (r) => {
|
|
2921
2923
|
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
@@ -2978,9 +2980,9 @@ function kr() {
|
|
|
2978
2980
|
};
|
|
2979
2981
|
}
|
|
2980
2982
|
var wr = M(Z, {}), Cr = B($((e, t) => {
|
|
2981
|
-
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger:
|
|
2982
|
-
|
|
2983
|
-
} }), [
|
|
2983
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = kr(), g = A(() => ({ onExecute() {
|
|
2984
|
+
f();
|
|
2985
|
+
} }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = L((e) => {
|
|
2984
2986
|
0 === e.button && e.preventDefault();
|
|
2985
2987
|
}, []), v = L(async (e) => {
|
|
2986
2988
|
0 === e.button && b && await b.execute(p);
|
|
@@ -3031,9 +3033,9 @@ var wr = M(Z, {}), Cr = B($((e, t) => {
|
|
|
3031
3033
|
}));
|
|
3032
3034
|
Cr.displayName = "CommandButton";
|
|
3033
3035
|
var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
3034
|
-
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple:
|
|
3035
|
-
|
|
3036
|
-
} }), [
|
|
3036
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = kr(), x = A(() => ({ onExecute() {
|
|
3037
|
+
g();
|
|
3038
|
+
} }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, k] = H(""), w = W(y()), C = ue(() => {
|
|
3037
3039
|
let e = v;
|
|
3038
3040
|
if (c) try {
|
|
3039
3041
|
e = c(v);
|
|
@@ -3148,21 +3150,21 @@ var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
|
3148
3150
|
children: [
|
|
3149
3151
|
T,
|
|
3150
3152
|
D,
|
|
3151
|
-
|
|
3153
|
+
f
|
|
3152
3154
|
]
|
|
3153
3155
|
}) : M(Ot, {
|
|
3154
3156
|
...h,
|
|
3155
3157
|
...I,
|
|
3156
|
-
children:
|
|
3158
|
+
children: f
|
|
3157
3159
|
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(yr, {
|
|
3158
3160
|
commandKey: r,
|
|
3159
3161
|
placement: l === _.Toolbar ? "bottom-start" : "right-start",
|
|
3160
3162
|
children: $
|
|
3161
3163
|
}), $) : $;
|
|
3162
3164
|
})), Pr = B($((e, t) => {
|
|
3163
|
-
const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger:
|
|
3164
|
-
|
|
3165
|
-
} }), [
|
|
3165
|
+
const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = kr(), g = A(() => ({ onExecute() {
|
|
3166
|
+
f();
|
|
3167
|
+
} }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
|
|
3166
3168
|
let e = null;
|
|
3167
3169
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3168
3170
|
let t = s;
|
|
@@ -3246,26 +3248,26 @@ function Tr(e, t = {}) {
|
|
|
3246
3248
|
return p(e.defaultKey ?? t, o.state, o);
|
|
3247
3249
|
})(o, t, r) : p(t, r?.state, r);
|
|
3248
3250
|
}, m = [];
|
|
3249
|
-
let h = 0,
|
|
3251
|
+
let h = 0, f = !1, g = !1;
|
|
3250
3252
|
const x = e ?? [];
|
|
3251
3253
|
for (let e = 0; e < x.length; e++) {
|
|
3252
3254
|
const t = x[e];
|
|
3253
3255
|
if (!t || "-" === t) {
|
|
3254
|
-
|
|
3256
|
+
g && (f = !0);
|
|
3255
3257
|
continue;
|
|
3256
3258
|
}
|
|
3257
3259
|
const r = u(t);
|
|
3258
|
-
r && (
|
|
3260
|
+
r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(D(r, { key: "member-" + h++ })), g = !0);
|
|
3259
3261
|
}
|
|
3260
3262
|
return m;
|
|
3261
3263
|
}
|
|
3262
3264
|
Pr.displayName = "CommandPopupButton";
|
|
3263
3265
|
var Rr = B($((e, t) => {
|
|
3264
|
-
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m,
|
|
3266
|
+
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, [
|
|
3265
3267
|
o,
|
|
3266
3268
|
r,
|
|
3267
3269
|
h
|
|
3268
|
-
]), b = r, y = i ??
|
|
3270
|
+
]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), k = l ?? g?.getLabel?.(b), w = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
|
|
3269
3271
|
const e = [], t = x ?? [];
|
|
3270
3272
|
for (let r = 0; r < t.length; r++) {
|
|
3271
3273
|
const o = t[r];
|
|
@@ -3353,17 +3355,17 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3353
3355
|
i,
|
|
3354
3356
|
u,
|
|
3355
3357
|
u.getVersion()
|
|
3356
|
-
]), h = ye(t, () => ({}), []), [
|
|
3358
|
+
]), h = ye(t, () => ({}), []), [f, x] = H(null), { reference: b } = ge({
|
|
3357
3359
|
label: "toolbar",
|
|
3358
3360
|
anchor: h.current,
|
|
3359
3361
|
parentFloat: n,
|
|
3360
3362
|
createPopupPanel: null
|
|
3361
3363
|
}), y = ue(() => {
|
|
3362
|
-
const e =
|
|
3364
|
+
const e = f;
|
|
3363
3365
|
e && requestAnimationFrame(() => {
|
|
3364
3366
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3365
3367
|
});
|
|
3366
|
-
}, [
|
|
3368
|
+
}, [f]), v = A(() => ({
|
|
3367
3369
|
dense: !0,
|
|
3368
3370
|
outlined: !1
|
|
3369
3371
|
}), []), k = A(() => ({ ...o || {} }), [o]), w = A(() => ({
|
|
@@ -3398,7 +3400,7 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3398
3400
|
i,
|
|
3399
3401
|
u
|
|
3400
3402
|
]);
|
|
3401
|
-
return M(
|
|
3403
|
+
return M(g, {
|
|
3402
3404
|
variant: "dense",
|
|
3403
3405
|
sx: {
|
|
3404
3406
|
minHeight: "unset",
|
|
@@ -3417,13 +3419,13 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3417
3419
|
},
|
|
3418
3420
|
ref: h,
|
|
3419
3421
|
onFocus: (e) => {
|
|
3420
|
-
e.relatedTarget && !
|
|
3422
|
+
e.relatedTarget && !f && x(e.relatedTarget);
|
|
3421
3423
|
},
|
|
3422
3424
|
onBlur: (e) => {
|
|
3423
|
-
|
|
3425
|
+
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3424
3426
|
},
|
|
3425
3427
|
onKeyDown: (e) => {
|
|
3426
|
-
|
|
3428
|
+
f && e.which === oe.Escape && f.focus();
|
|
3427
3429
|
},
|
|
3428
3430
|
...d,
|
|
3429
3431
|
children: M("div", {
|
|
@@ -3466,7 +3468,7 @@ var zr = B($((e, t) => {
|
|
|
3466
3468
|
const t = u[e];
|
|
3467
3469
|
t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
|
|
3468
3470
|
}
|
|
3469
|
-
const
|
|
3471
|
+
const f = "icon" === i ? {
|
|
3470
3472
|
icon: h ?? a,
|
|
3471
3473
|
quickCommand: void 0
|
|
3472
3474
|
} : {
|
|
@@ -3479,8 +3481,8 @@ var zr = B($((e, t) => {
|
|
|
3479
3481
|
members: o,
|
|
3480
3482
|
registry: c,
|
|
3481
3483
|
...l,
|
|
3482
|
-
...
|
|
3484
|
+
...f
|
|
3483
3485
|
});
|
|
3484
3486
|
}));
|
|
3485
3487
|
zr.displayName = "ToggleGroupButton";
|
|
3486
|
-
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, dt as ArrowDownIcon, pt as ArrowRightIcon, lt as ChipStrip, vt as ClosingReason, Cr as CommandButton, Rr as CommandGroup, Pr as CommandPopupButton, $r as CommandToolbar, yr as CommandTooltip, Dt as ContextMenu, He as ExhibitDivider, Mt as ExhibitFloatPanel, Pt as ExhibitFloatProvider, Ot as ExhibitIconButton, Wt as ExhibitMenuHeader, Kt as ExhibitMenuItem, Qt as ExhibitOptionButton, Ht as ExhibitPopupIconButton, jt as ExhibitPopupMenuItem, Bt as ExhibitTooltip, Sr as InputCommandButton, cr as InternalWindow, Ir as LabelIcon, at as LazyLoadErrorPanel, Ft as MenuItemInsets, Te as ModalProvider, Tt as NestingPopupButton,
|
|
3488
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, dt as ArrowDownIcon, pt as ArrowRightIcon, lt as ChipStrip, vt as ClosingReason, Cr as CommandButton, Rr as CommandGroup, Pr as CommandPopupButton, $r as CommandToolbar, yr as CommandTooltip, Dt as ContextMenu, He as ExhibitDivider, Mt as ExhibitFloatPanel, Pt as ExhibitFloatProvider, Ot as ExhibitIconButton, Wt as ExhibitMenuHeader, Kt as ExhibitMenuItem, Qt as ExhibitOptionButton, Ht as ExhibitPopupIconButton, jt as ExhibitPopupMenuItem, Bt as ExhibitTooltip, Sr as InputCommandButton, cr as InternalWindow, Ir as LabelIcon, at as LazyLoadErrorPanel, Ft as MenuItemInsets, Te as ModalProvider, Tt as NestingPopupButton, fr as OptionsDialog, tr as OverflowPalette, yt as PopupAutoFocus, kt as PopupButtonType, Xt as SelectedIcon, It as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, zr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Ct as createDownArrow, gt as createExhibitTheme, Ae as createScrollButton, ct as createStrokeShadowFilter, wt as defaultCreatePopupPanel, ft as elevateColor, xt as getScrollbarCssVariables, ht as hexToRGB, Je as hideLoadingPanel, nr as lazyModal, ur as optionIdentity, Zt as registerUtilsMuiLocales, Tr as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, bt as scrollbarTheming, _e as showLoadingPanel, st as strokeShadowFilter, zt as toShortcutElements, br as useInputDialog, ir as useLazyWindow, gr as useOptionsDialog };
|