@sheetxl/studio-mui 0.3.18 → 0.3.20
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/8yJKDn6FG4qXm6C_.cjs +6 -0
- package/browser/cjs/{CvVjY72BJUTQvkkP.cjs → B1jZEfhC-UDnqHyx.cjs} +2 -2
- package/browser/cjs/B6SNtC4e_WvQXSbH.cjs +87 -0
- package/browser/cjs/{BWJGFEIQCBdTEl6B.cjs → BDNJoQLDNwBKjkfN.cjs} +2 -2
- package/browser/cjs/{BLcValtf97N7iwR5.cjs → BNRt1gPcV30KL-_2.cjs} +1 -1
- package/browser/cjs/Br-k5vmbo_70osX8.cjs +12 -0
- package/browser/cjs/{C6UymVKpB0f_aOz4.cjs → BxHOEF80SAdnbAt9.cjs} +1 -1
- package/browser/cjs/{tzUSfMyL4rscAPOw.cjs → ByE3VEEpczj3xLVa.cjs} +1 -1
- package/browser/cjs/{BNyVm7np2bfgLvot.cjs → C70cMil2r-R9L7x8.cjs} +3 -3
- package/browser/cjs/{CJQdEaRRBvm3gCqh.cjs → CLx2YONMFeXbGBO3.cjs} +1 -1
- package/browser/cjs/{ckZ4F6Ezl3aCnh5Z.cjs → C_V7M1p_CSqFgZ5C.cjs} +3 -3
- package/browser/cjs/{BkCmVm6sA_avib9h.cjs → CaqQouPOAX3k7acG.cjs} +2 -2
- package/browser/cjs/{B5eQzk5WyXy8IAA8.cjs → ClDyjEAo5O3N7VH4.cjs} +4 -4
- package/browser/cjs/{CKF-dWfZku6ebHzj.cjs → Co714rETH_sBPMIE.cjs} +2 -2
- package/browser/cjs/{D6MmQYTV_-2r6TNA.cjs → D5lC4NJu4zIU1Zs7.cjs} +4 -4
- package/browser/cjs/{2OSBl2r7IttrCdtA.cjs → Dd3jhRCtgjzn-Q_j.cjs} +1 -1
- package/browser/cjs/{CYlWk3JZne2DVAvj.cjs → Dw-60Ix8trelSf49.cjs} +2 -2
- package/browser/cjs/{CMQnksVdFNTGCcuL.cjs → ERubX2VhTgExTjPs.cjs} +1 -1
- package/browser/cjs/{B1SUaFgnsimk42bG.cjs → HU2wyYTngkzRIfcp.cjs} +2 -2
- package/browser/cjs/{Dsf7iNkpZ-XRvkri.cjs → IJjqthMv8sYE3zk5.cjs} +2 -2
- package/browser/cjs/{Dt-_lF8cbqIQeFDT.cjs → Mkgw7-OjsOuATlTu.cjs} +2 -2
- package/browser/cjs/{CTVwwijxWyTj1-To.cjs → hNe2uQuNlEZUxHVc.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BBB1d8xHkY7ltQWw.cjs → omB-b0WJWPLOvoDW.cjs} +2 -2
- package/browser/cjs/{DtfIBBSWwGnFn5da.cjs → r3IRuRCfr7z3EIua.cjs} +1 -1
- package/browser/cjs/y6pSQIuEtIXm0Nrb.cjs +6 -0
- package/browser/esm/{dyvLjt-D32wPaGoj.mjs → BAg5b-CxAJZIccnx.mjs} +2 -2
- package/browser/esm/{CvzuJmImMn0DC78K.mjs → BGDtHuaoSHSUbpFS.mjs} +40 -40
- package/browser/esm/{B9JJu0VnIIYWT5lt.mjs → BnJG8TC71fG1mf91.mjs} +3 -3
- package/browser/esm/{B-rFSfciMrAt40UW.mjs → BxSZJMB3FJ6E3VQm.mjs} +1 -1
- package/browser/esm/{COZ6r5iZ8TyK00AP.mjs → BzYtHnJ9YtmP06qB.mjs} +1 -1
- package/browser/esm/{DAABl4IjtZoiB_ZM.mjs → CACmHB-fbLy04wZd.mjs} +2 -2
- package/browser/esm/{DWhxo1LUgYMKPIl6.mjs → CBktOJulH0O7hLGQ.mjs} +8 -8
- package/browser/esm/{Bm90soyGjT9Iu1LC.mjs → CCTPmbQSUB0QnmRa.mjs} +2 -2
- package/browser/esm/{D85IfpCrfIBFDqe8.mjs → CMc3J0D7OFGYJ-c9.mjs} +2 -2
- package/browser/esm/CSA6yBKvhJGmIb1K.mjs +84 -0
- package/browser/esm/{DRnTwfoTxrtXBFC7.mjs → CYsNgnaP27Wh2Sp0.mjs} +1 -1
- package/browser/esm/{CvsYx4oxcqsUUtrr.mjs → ChqC2YqQOdxyO-yL.mjs} +1 -1
- package/browser/esm/{Cbz-BdHkkb_IX1IO.mjs → CwY4b2WKnvnRRk9n.mjs} +4 -4
- package/browser/esm/{DrGVTfUVlughL_d0.mjs → D1Upf6elHEvN6BvD.mjs} +1 -1
- package/browser/esm/DGQh7NK1O5vxTFbY.mjs +43 -0
- package/browser/esm/{BQQcYbNIADI7dSX4.mjs → DQZnd1NQGxJbVV61.mjs} +2 -2
- package/browser/esm/{DOtIN-2juYEPtB8A.mjs → DSyt7euUXqyQE6wJ.mjs} +4 -4
- package/browser/esm/{kag30q_f2OyzNEpu.mjs → Dnlx2SfcuqIfXAuA.mjs} +1 -1
- package/browser/esm/{B_GtXHanCbWYSw3u.mjs → DtrcnJnkGUDsjn70.mjs} +1 -1
- package/browser/esm/{D7VfJjp49e_MDYZN.mjs → Epq0t9gZ5n9jR9fk.mjs} +2 -2
- package/browser/esm/{qnS7YH5ry4bwFwmH.mjs → Ra0uzwzBLLZ-3x5M.mjs} +1 -1
- package/browser/esm/{CHo7Pe-qLRr6D7Zb.mjs → VA1ZILAJsv7M5eeq.mjs} +12 -12
- package/browser/esm/{BJiFVIVZgstircY0.mjs → WY7bB02qrit-yNWs.mjs} +9079 -8988
- package/browser/esm/index.mjs +16 -16
- package/browser/esm/{wk6kyK0HvQWZcF9v.mjs → jh3hpFpR0p1T4JLc.mjs} +7 -7
- package/browser/esm/{IW0FN0JJihUjmUhl.mjs → q1N22YChJlGT72Pc.mjs} +2 -2
- package/licenses/dependencies.txt +7 -7
- package/node/esm/{DyLBbEMRFc3oCumP.mjs → 7P6cCNWpeCh60raM.mjs} +2 -2
- package/node/esm/{DwU05hEZ7gmV6D81.mjs → 7pybVbMMrYvkgqo9.mjs} +2 -2
- package/node/esm/{BMwY3wpsb5LC-oha.mjs → B8JB14t2M1ROyBkd.mjs} +1 -1
- package/node/esm/{Bjq64rdekFLv2Pk6.mjs → BAETN9DFz0tUoXIp.mjs} +10 -10
- package/node/esm/{DOyVcSa6UGUQpjJ8.mjs → BN1OHyhHhXzVvWHA.mjs} +12 -12
- package/node/esm/BWAaL8-EYBs6vY6s.mjs +78 -0
- package/node/esm/{CN_9EpYFfSahI0tk.mjs → BhUbhNqcdaTWybXe.mjs} +27 -27
- package/node/esm/{Bt5SOQDsxPC-egr0.mjs → BjeTLq8pChIWnYWi.mjs} +5 -5
- package/node/esm/{hYDFyrnl76Q8TbVg.mjs → BkyFc92-aUY-wmW4.mjs} +4 -4
- package/node/esm/{CkG4RfZYIEpgMYHF.mjs → C0LHsgaW5_sBdiDi.mjs} +84 -84
- package/node/esm/{D37x0J7Pp7Ovk7U6.mjs → C6X-zKtwMSEFUmHG.mjs} +1 -1
- package/node/esm/{CVcSQEeEQOVzGI-N.mjs → CATzhyyc6fqHMLUL.mjs} +1 -1
- package/node/esm/{SDYCTfAbHCT1NUVT.mjs → CCNbV253HUVpRz3U.mjs} +7 -7
- package/node/esm/{BTyx75rKO81NBrpD.mjs → C__9KMBW0m5KFw3m.mjs} +2 -2
- package/node/esm/{DZTAP_s1UBqFpZWn.mjs → D6zrNfT4CrAssYik.mjs} +1 -1
- package/node/esm/{qTHmpgXiWFDs-DpN.mjs → DCjKIE1BmIXBswF0.mjs} +1 -1
- package/node/esm/{C-K5UNI5JYn9db2u.mjs → DCr306y2KVQnDJ7Q.mjs} +6 -6
- package/node/esm/{DCqwwPMoosi5CmNI.mjs → DNHrDFkT_y0MPSWZ.mjs} +27 -27
- package/node/esm/{BwhDUQgAy49WUvzS.mjs → DT7b6dvdVukPKg4l.mjs} +4 -4
- package/node/esm/{DET5hZx0KEr6Xvkf.mjs → DgTOFZPvhbvehrEy.mjs} +2 -2
- package/node/esm/{CfC4Y9itv3zxli6a.mjs → DtR80dy_xh4e2mfQ.mjs} +1 -1
- package/node/esm/{DNg39nLT0gHqmPlz.mjs → XxfPUjXZVLZfzpYZ.mjs} +1 -1
- package/node/esm/{BKWvOu_IeRMuC8Xk.mjs → gtQdInhawjIRtXyg.mjs} +2 -2
- package/node/esm/index.mjs +4000 -3897
- package/package.json +8 -8
- package/types/index.d.ts +50 -45
- package/browser/cjs/AQdyOmNsNjlI3zZX.cjs +0 -6
- package/browser/cjs/B50pi_DZlxL44FZa.cjs +0 -87
- package/browser/cjs/BpriOx_ASGcmQgAv.cjs +0 -6
- package/browser/cjs/Clxk_WuA_PRn6KW9.cjs +0 -12
- package/browser/esm/D5U2mNtg-sHAxwUo.mjs +0 -80
- package/browser/esm/DivcgoJCzXwVgCcg.mjs +0 -43
- package/node/esm/2eYi7rphLL5H13FB.mjs +0 -74
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as h, jsxs as ie, Fragment as It } from "react/jsx-runtime";
|
|
2
|
-
import S, { Component as At, createElement as le, createContext as an, memo as Ee, forwardRef as oe, useRef as ne, useState as ee, useCallback as
|
|
3
|
-
import { u as un,
|
|
2
|
+
import S, { Component as At, createElement as le, createContext as an, memo as Ee, forwardRef as oe, useRef as ne, useState as ee, useCallback as Z, useEffect as j, useMemo as $, useContext as sn, isValidElement as ln, cloneElement as cn, useLayoutEffect as st } from "react";
|
|
3
|
+
import { u as un, a as lt, L as dn, T as te, v as Je, x as Te, y as pn, M as mn, P as fn, z as hn, b as kt, W as pe, d as gn, H as kn, e as bt, V as bn, f as xn, h as wn, j as yn, k as vn, m as Ht, n as En, l as Cn, A as Sn, Y as Ln, Q as K, Z as De, X as xt, K as Rt, w as Tn, o as jt, p as ct, E as Dn, q as Mn, s as On, t as Wn, $ as qt, G as Fn, B as Pn, D as Re, U as Nn, F as wt, R as In, I as An, J as Hn, N as Rn, O as jn, S as qn } from "./WY7bB02qrit-yNWs.mjs";
|
|
4
4
|
import { createPortal as Bn } from "react-dom";
|
|
5
5
|
import { Card as _n, CardActions as Vn, Typography as zn, IconButton as ut, Collapse as Un, Box as ue, SvgIcon as Gn, CssBaseline as Kn } from "@mui/material";
|
|
6
|
-
import { PartialError as $n, CommonUtils as et, UndoManager as
|
|
7
|
-
import { ExpandMore as
|
|
6
|
+
import { PartialError as $n, CommonUtils as et, UndoManager as Zn, Workbook as yt } from "@sheetxl/sdk";
|
|
7
|
+
import { ExpandMore as Xn, Close as Qn, CancelOutlined as Yn } from "@mui/icons-material";
|
|
8
8
|
/**
|
|
9
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
10
10
|
*
|
|
11
11
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
12
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -287,7 +287,7 @@ function Be(t, a) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
var $t = oe(function(t, a) {
|
|
290
|
-
var r = t.children, e = t.direction, n = e === void 0 ? "down" : e, o = t.in, i = t.style, c = t.timeout, s = c === void 0 ? 0 : c, l = t.onEnter, u = t.onEntered, d = t.onExit, m = t.onExited, b = Ne(t, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), w = ne(null), x = pt(r.ref, w), y = pt(x, a), g =
|
|
290
|
+
var r = t.children, e = t.direction, n = e === void 0 ? "down" : e, o = t.in, i = t.style, c = t.timeout, s = c === void 0 ? 0 : c, l = t.onEnter, u = t.onEntered, d = t.onExit, m = t.onExited, b = Ne(t, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), w = ne(null), x = pt(r.ref, w), y = pt(x, a), g = Z(function() {
|
|
291
291
|
w.current && Be(n, w.current);
|
|
292
292
|
}, [n]);
|
|
293
293
|
return j(function() {
|
|
@@ -295,7 +295,7 @@ var $t = oe(function(t, a) {
|
|
|
295
295
|
var f = function(C, Y) {
|
|
296
296
|
var R;
|
|
297
297
|
function q() {
|
|
298
|
-
for (var B = this, z = arguments.length, _ = new Array(z),
|
|
298
|
+
for (var B = this, z = arguments.length, _ = new Array(z), X = 0; X < z; X++) _[X] = arguments[X];
|
|
299
299
|
clearTimeout(R), R = setTimeout(function() {
|
|
300
300
|
C.apply(B, _);
|
|
301
301
|
}, Y);
|
|
@@ -362,9 +362,9 @@ function Ie(t) {
|
|
|
362
362
|
return L({}, a, ((e = {})[n] = dt(o), e));
|
|
363
363
|
}, {});
|
|
364
364
|
}
|
|
365
|
-
var ho = "notistack-SnackbarContainer", go = "notistack-Snackbar",
|
|
365
|
+
var ho = "notistack-SnackbarContainer", go = "notistack-Snackbar", Zt = "notistack-CollapseWrapper", ko = "notistack-MuiContent", bo = function(t) {
|
|
366
366
|
return "notistack-MuiContent-" + t;
|
|
367
|
-
}, Mt = Ie({ root: { height: 0 }, entered: { height: "auto" } }), ot = "0px",
|
|
367
|
+
}, Mt = Ie({ root: { height: 0 }, entered: { height: "auto" } }), ot = "0px", Xt = oe(function(t, a) {
|
|
368
368
|
var r = t.children, e = t.in, n = t.onExited, o = ne(null), i = ne(null), c = pt(a, i), s = function() {
|
|
369
369
|
return o.current ? o.current.clientHeight : 0;
|
|
370
370
|
};
|
|
@@ -382,10 +382,10 @@ var ho = "notistack-SnackbarContainer", go = "notistack-Snackbar", Xt = "notista
|
|
|
382
382
|
var u = Ke({ timeout: 175, mode: "exit" }), d = u.duration, m = u.easing;
|
|
383
383
|
l.style.transitionDuration = typeof d == "string" ? d : d + "ms", l.style.height = ot, l.style.transitionTimingFunction = m || "";
|
|
384
384
|
}, nodeRef: i, timeout: 175 }, function(l, u) {
|
|
385
|
-
return le("div", Object.assign({ ref: c, className: fe(Mt.root, l === "entered" && Mt.entered), style: L({ pointerEvents: "all", overflow: "hidden", minHeight: ot, transition: ve("height") }, l === "entered" && { overflow: "visible" }, {}, l === "exited" && !e && { visibility: "hidden" }) }, u), le("div", { ref: o, className:
|
|
385
|
+
return le("div", Object.assign({ ref: c, className: fe(Mt.root, l === "entered" && Mt.entered), style: L({ pointerEvents: "all", overflow: "hidden", minHeight: ot, transition: ve("height") }, l === "entered" && { overflow: "visible" }, {}, l === "exited" && !e && { visibility: "hidden" }) }, u), le("div", { ref: o, className: Zt, style: { display: "flex", width: "100%" } }, r));
|
|
386
386
|
});
|
|
387
387
|
});
|
|
388
|
-
|
|
388
|
+
Xt.displayName = "Collapse";
|
|
389
389
|
var Ot = { right: "left", left: "right", bottom: "up", top: "down" }, xo = function(t) {
|
|
390
390
|
return "anchorOrigin" + mt(t);
|
|
391
391
|
}, wo = function() {
|
|
@@ -404,7 +404,7 @@ function Wt(t) {
|
|
|
404
404
|
var a = ne(t);
|
|
405
405
|
return yo(function() {
|
|
406
406
|
a.current = t;
|
|
407
|
-
}),
|
|
407
|
+
}), Z(function() {
|
|
408
408
|
return a.current.apply(void 0, arguments);
|
|
409
409
|
}, []);
|
|
410
410
|
}
|
|
@@ -423,7 +423,7 @@ var rt, Qt = oe(function(t, a) {
|
|
|
423
423
|
}, [l, n, w]);
|
|
424
424
|
var x = function() {
|
|
425
425
|
m.current && clearTimeout(m.current);
|
|
426
|
-
}, y =
|
|
426
|
+
}, y = Z(function() {
|
|
427
427
|
n != null && w(0.5 * n);
|
|
428
428
|
}, [n, w]);
|
|
429
429
|
return j(function() {
|
|
@@ -448,7 +448,7 @@ var Oe = Ie({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeig
|
|
|
448
448
|
});
|
|
449
449
|
Yt.displayName = "MaterialDesignContent";
|
|
450
450
|
var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), So = function(t) {
|
|
451
|
-
var a = ne(), r = ee(!0), e = r[0], n = r[1], o = Pe([t.snack.onClose, t.onClose]), i =
|
|
451
|
+
var a = ne(), r = ee(!0), e = r[0], n = r[1], o = Pe([t.snack.onClose, t.onClose]), i = Z(function() {
|
|
452
452
|
a.current = setTimeout(function() {
|
|
453
453
|
n(function(B) {
|
|
454
454
|
return !B;
|
|
@@ -466,9 +466,9 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
|
|
|
466
466
|
var z = { containerRoot: !0, containerAnchorOriginTopCenter: !0, containerAnchorOriginBottomCenter: !0, containerAnchorOriginTopRight: !0, containerAnchorOriginBottomRight: !0, containerAnchorOriginTopLeft: !0, containerAnchorOriginBottomLeft: !0 };
|
|
467
467
|
return Object.keys(B).filter(function(_) {
|
|
468
468
|
return !z[_];
|
|
469
|
-
}).reduce(function(_,
|
|
469
|
+
}).reduce(function(_, X) {
|
|
470
470
|
var he;
|
|
471
|
-
return L({}, _, ((he = {})[
|
|
471
|
+
return L({}, _, ((he = {})[X] = B[X], he));
|
|
472
472
|
}, {});
|
|
473
473
|
}(l);
|
|
474
474
|
}, [l]), b = s.open, w = s.SnackbarProps, x = s.TransitionComponent, y = s.TransitionProps, g = s.transitionDuration, f = s.disableWindowBlurListener, O = s.content, C = Ne(s, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), Y = L({ direction: (c = C.anchorOrigin, c.horizontal !== "center" ? Ot[c.horizontal] : Ot[c.vertical]), timeout: g }, y), R = O;
|
|
@@ -477,10 +477,10 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
|
|
|
477
477
|
var _;
|
|
478
478
|
return L({}, B, ((_ = {})[z] = Pe([t.snack[z], t[z]], C.id), _));
|
|
479
479
|
}, {});
|
|
480
|
-
return S.createElement(
|
|
480
|
+
return S.createElement(Xt, { in: e, onExited: q.onExited }, S.createElement(Qt, { open: b, id: C.id, disableWindowBlurListener: f, autoHideDuration: C.autoHideDuration, className: fe(Co.wrappedRoot, m.root, m[xo(C.anchorOrigin)]), SnackbarProps: w, onClose: o }, S.createElement(x, Object.assign({}, Y, { appear: !0, in: b, onExit: q.onExit, onExited: i, onEnter: q.onEnter, onEntered: Pe([q.onEntered, function() {
|
|
481
481
|
t.snack.requestClose && o(null, "instructed", t.snack.id);
|
|
482
482
|
}], C.id) }), R || S.createElement(d, Object.assign({}, C)))));
|
|
483
|
-
}, Fe = { default: 20 }, ze = { default: 6, dense: 2 }, Pt = "." +
|
|
483
|
+
}, Fe = { default: 20 }, ze = { default: 6, dense: 2 }, Pt = "." + Zt, Ue = Ie({ root: (We = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: ve(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, We[Pt] = { padding: ze.default + "px 0px", transition: "padding 300ms ease 0ms" }, We.maxWidth = "calc(100% - " + 2 * Fe.default + "px)", We[nt] = { width: "100%", maxWidth: "calc(100% - 32px)" }, We), rootDense: (at = {}, at[Pt] = { padding: ze.dense + "px 0px" }, at), top: { top: Fe.default - ze.default + "px", flexDirection: "column" }, bottom: { bottom: Fe.default - ze.default + "px", flexDirection: "column-reverse" }, left: (_e = { left: Fe.default + "px" }, _e[Ge] = { alignItems: "flex-start" }, _e[nt] = { left: "16px" }, _e), right: (Ve = { right: Fe.default + "px" }, Ve[Ge] = { alignItems: "flex-end" }, Ve[nt] = { right: "16px" }, Ve), center: (it = { left: "50%", transform: "translateX(-50%)" }, it[Ge] = { alignItems: "center" }, it) }), Lo = Ee(function(t) {
|
|
484
484
|
var a = t.classes, r = a === void 0 ? {} : a, e = t.anchorOrigin, n = t.dense, o = t.children, i = fe(ho, Ue[e.vertical], Ue[e.horizontal], Ue.root, r.containerRoot, r["containerAnchorOrigin" + mt(e)], n && Ue.rootDense);
|
|
485
485
|
return S.createElement("div", { className: i }, o);
|
|
486
486
|
}), Nt = function(t) {
|
|
@@ -568,12 +568,12 @@ var We, at, _e, Ve, it, Eo = Ee(Yt), Co = Ie({ wrappedRoot: { width: "100%", pos
|
|
|
568
568
|
return sn(Ut);
|
|
569
569
|
};
|
|
570
570
|
const ae = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, en = oe((t, a) => {
|
|
571
|
-
const { id: r, message: e, iconVariant: n, error: o, hideIconVariant: i, ...c } = t, { closeSnackbar: s } = Jt(), l = un(), [u, d] = ee(!1), m =
|
|
571
|
+
const { id: r, message: e, iconVariant: n, error: o, hideIconVariant: i, ...c } = t, { closeSnackbar: s } = Jt(), l = un(), [u, d] = ee(!1), m = Z(() => {
|
|
572
572
|
d((x) => !x);
|
|
573
|
-
}, []), b =
|
|
573
|
+
}, []), b = Z(() => {
|
|
574
574
|
s(r);
|
|
575
575
|
}, [r, s]), w = o?.message || String(e);
|
|
576
|
-
return h(ht, { ref: a, className: lt(ae.root, "error-snackbar"), children: ie(_n, { className: ae.card, style: { backgroundColor: l.palette.error.dark, border: `1px solid ${l.palette.error.dark}` }, children: [ie(Vn, { className: ae.actionRoot, children: [i ? null : n?.error, h(zn, { variant: "body2", component: "div", className: ae.typography, style: { color: l.palette.text.primary }, children: w }), h("div", { style: { flex: "1 1 auto" } }), ie("div", { className: ae.icons, children: [o ? h(ut, { "aria-label": "Show more", size: "small", className: lt(ae.expand, { [ae.expandOpen]: u }), style: { color: l.palette.action.active }, onClick: m, children: h(
|
|
576
|
+
return h(ht, { ref: a, className: lt(ae.root, "error-snackbar"), children: ie(_n, { className: ae.card, style: { backgroundColor: l.palette.error.dark, border: `1px solid ${l.palette.error.dark}` }, children: [ie(Vn, { className: ae.actionRoot, children: [i ? null : n?.error, h(zn, { variant: "body2", component: "div", className: ae.typography, style: { color: l.palette.text.primary }, children: w }), h("div", { style: { flex: "1 1 auto" } }), ie("div", { className: ae.icons, children: [o ? h(ut, { "aria-label": "Show more", size: "small", className: lt(ae.expand, { [ae.expandOpen]: u }), style: { color: l.palette.action.active }, onClick: m, children: h(Xn, {}) }) : null, h(ut, { size: "small", className: ae.expand, style: { color: l.palette.action.active }, onClick: b, children: h(Qn, { fontSize: "small" }) })] })] }), o ? h(Un, { in: u, timeout: "auto", unmountOnExit: !0, children: h("div", { className: ae.stackTraceContainer, style: { backgroundColor: l.palette.error.light, borderTop: `1px solid ${l.palette.error.main}` }, children: h(dn, { error: o, hideLineNumbers: !0 }) }) }) : null] }) });
|
|
577
577
|
});
|
|
578
578
|
en.displayName = "ToastError";
|
|
579
579
|
const tn = Ee(oe((t, a) => {
|
|
@@ -613,9 +613,9 @@ nn.displayName = "StandaloneWorkbookToolbar";
|
|
|
613
613
|
const on = Ee(oe((t, a) => {
|
|
614
614
|
const { workbook: r, setWorkbook: e, refWorkbookTitle: n, titleWorkbook: o, setWorkbookTitle: i, titlePlaceHolder: c, children: s, undoManager: l, commands: u, importExportDisabled: d, themeModeOptions: m } = t, b = Jt(), w = b ? b.enqueueSnackbar : () => {
|
|
615
615
|
}, x = b ? b.closeSnackbar : () => {
|
|
616
|
-
}, [y, g] = ee({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), f =
|
|
616
|
+
}, [y, g] = ee({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), f = Z(() => {
|
|
617
617
|
g((M) => ({ ...M, isMounted: !0 }));
|
|
618
|
-
}, []), O =
|
|
618
|
+
}, []), O = Z(() => {
|
|
619
619
|
g((M) => ({ ...M, isMounted: !1 }));
|
|
620
620
|
}, []), C = Mn(), Y = On(), R = Wn(), q = ne(/* @__PURE__ */ new Set()), B = $(() => {
|
|
621
621
|
const M = (v, E) => {
|
|
@@ -640,14 +640,14 @@ const on = Ee(oe((t, a) => {
|
|
|
640
640
|
const T = { ...E, onKeyDown: (H) => {
|
|
641
641
|
u?.dispatchToFocusedCommand(H), H.isDefaultPrevented() || H.isPropagationStopped() || E?.onKeyDown?.(H);
|
|
642
642
|
} };
|
|
643
|
-
return C(v, { sort: () => import("./
|
|
643
|
+
return C(v, { sort: () => import("./CACmHB-fbLy04wZd.mjs"), numberFormat: () => import("./Epq0t9gZ5n9jR9fk.mjs"), hyperlink: () => import("./q1N22YChJlGT72Pc.mjs"), comments: () => import("./BAg5b-CxAJZIccnx.mjs"), find: () => import("./CBktOJulH0O7hLGQ.mjs"), tableDetails: () => import("./VA1ZILAJsv7M5eeq.mjs"), tableNew: () => import("./CMc3J0D7OFGYJ-c9.mjs"), namedDetails: () => import("./DQZnd1NQGxJbVV61.mjs") }[v], T, W);
|
|
644
644
|
}, showOptions: Y, showInputOptions: R, showError: (v) => {
|
|
645
645
|
let E, W = Re.Error, T = "Unknown Error";
|
|
646
646
|
typeof v == "string" ? T = v : v instanceof Error && (E = v, v.message && (T = v.message)), v instanceof $n && (W = Re.Info), M(T, { type: W, enqueueProps: { error: E } });
|
|
647
647
|
} };
|
|
648
|
-
}, []), z =
|
|
648
|
+
}, []), z = Z(() => {
|
|
649
649
|
}, []), _ = ((M) => {
|
|
650
|
-
const { workbook: v, setWorkbook: E, importExportDisabled: W, workbookTitle: T = "export", setWorkbookTitle: H, notifier: I, requestWorkbookTitle: J, themeModeOptions: F, undoManager: Ae, commands: Q, onExecute: ke } = M, He = te(F?.onForceModeChange, [F?.onForceModeChange]),
|
|
650
|
+
const { workbook: v, setWorkbook: E, importExportDisabled: W, workbookTitle: T = "export", setWorkbookTitle: H, notifier: I, requestWorkbookTitle: J, themeModeOptions: F, undoManager: Ae, commands: Q, onExecute: ke } = M, He = te(F?.onForceModeChange, [F?.onForceModeChange]), Ze = te(F?.onForceLightGridChange, [F?.onForceLightGridChange]), be = te(F?.onForceLightImagesChange, [F?.onForceLightImagesChange]), Xe = te(async (D = null, U = null) => {
|
|
651
651
|
const p = [];
|
|
652
652
|
let k, P = null, G = null;
|
|
653
653
|
if (typeof D == "string" ? G = D : P = D, k = P ? D : await Ln.openFileDialog(G ?? pe.getAllReadFormatTypeAsString().join(",")), !k) return null;
|
|
@@ -663,7 +663,7 @@ const on = Ee(oe((t, a) => {
|
|
|
663
663
|
return k !== null && pe.writeFile(k, D, { formatType: p.key });
|
|
664
664
|
}
|
|
665
665
|
return pe.writeFile(U, D, { formatType: p.key });
|
|
666
|
-
}, [I, v, J]), A =
|
|
666
|
+
}, [I, v, J]), A = Z(() => ({ contains: (D) => !0, focus() {
|
|
667
667
|
} }), []), ce = $(() => {
|
|
668
668
|
const D = [];
|
|
669
669
|
W || (pe.getWriteFormats().forEach((p) => {
|
|
@@ -682,7 +682,7 @@ const on = Ee(oe((t, a) => {
|
|
|
682
682
|
}), D.push(new K("openWorkbook", A, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [De.Ctrl] } }, async (p = null) => {
|
|
683
683
|
const k = { date1904: v.isDate1904(), ...v.options };
|
|
684
684
|
try {
|
|
685
|
-
const P = await
|
|
685
|
+
const P = await Xe(p, k);
|
|
686
686
|
if (!P) return;
|
|
687
687
|
const G = P.title, se = P.workbook, Le = se.getSelectedSheet();
|
|
688
688
|
if (P.formatType.mimeType === "text/csv") {
|
|
@@ -730,7 +730,7 @@ const on = Ee(oe((t, a) => {
|
|
|
730
730
|
}), V.getCommand("defaultThemeMode").update({ state: !F.forceMode }).updateCallback(() => {
|
|
731
731
|
He(null);
|
|
732
732
|
}), V.getCommand("forceLightGrid").update({ state: F.forceLightGrid }).updateCallback(() => {
|
|
733
|
-
|
|
733
|
+
Ze(!F.forceLightGrid);
|
|
734
734
|
}), V.getCommand("forceLightImages").update({ state: F.forceLightImages }).updateCallback(() => {
|
|
735
735
|
be(!F.forceLightImages);
|
|
736
736
|
});
|
|
@@ -738,7 +738,7 @@ const on = Ee(oe((t, a) => {
|
|
|
738
738
|
const { showModal: Qe } = Dn();
|
|
739
739
|
return j(() => {
|
|
740
740
|
const D = () => new Promise((U, p) => {
|
|
741
|
-
const k = S.lazy(() => import("./
|
|
741
|
+
const k = S.lazy(() => import("./DSyt7euUXqyQE6wJ.mjs")), P = Qe(k, { title: "Shortcut Keys Reference", commands: V, onDone: () => {
|
|
742
742
|
P.hide();
|
|
743
743
|
}, TransitionProps: { onExited: () => {
|
|
744
744
|
U(!0);
|
|
@@ -765,18 +765,18 @@ const on = Ee(oe((t, a) => {
|
|
|
765
765
|
}), { ...M, starting: /* @__PURE__ */ new Map(), running: v };
|
|
766
766
|
});
|
|
767
767
|
}, [y]);
|
|
768
|
-
const [
|
|
768
|
+
const [X, he] = ee(null);
|
|
769
769
|
j(() => {
|
|
770
770
|
y.starting.size !== 0 || y.running.size !== 0 ? he(h(qt, { icon: h(Fn, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: y.label, onMount: f, onUnmount: O, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : he(null);
|
|
771
771
|
}, [y.starting, y.running]);
|
|
772
772
|
const N = $(() => h(Pn, { commands: _, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [_]), ge = { notifier: B, commands: _ };
|
|
773
|
-
return r && (ge.statusBarProps = { childrenEnd: N }), ie(It, { children: [
|
|
773
|
+
return r && (ge.statusBarProps = { childrenEnd: N }), ie(It, { children: [X, s ? S.cloneElement(s, ge) : null] });
|
|
774
774
|
}));
|
|
775
775
|
on.displayName = "SnackbarAndCommandsWrapper";
|
|
776
776
|
const rn = Ee(oe((t, a) => {
|
|
777
|
-
const { className: r, sx: e, style: n, onElementLoad: o, onError: i, undoManager: c, errorPanel: s = Nn, onKeyDown: l, workbook: u, createWorkbookOptions: d, onWorkbookChange: m, logo: b, importExportDisabled: w = !1, themeModeOptions: x, autoFocus: y = !1, commands: g, title: f, onTitleChange: O, titleProps: C, ...Y } = t, R = ne(null), q = te(m, [m]), B = te(O ?? C?.onTitleChange, [O ?? C?.onTitleChange]), z = C?.placeHolder ?? "Untitled", _ = x?.forceMode, { themeMode:
|
|
777
|
+
const { className: r, sx: e, style: n, onElementLoad: o, onError: i, undoManager: c, errorPanel: s = Nn, onKeyDown: l, workbook: u, createWorkbookOptions: d, onWorkbookChange: m, logo: b, importExportDisabled: w = !1, themeModeOptions: x, autoFocus: y = !1, commands: g, title: f, onTitleChange: O, titleProps: C, ...Y } = t, R = ne(null), q = te(m, [m]), B = te(O ?? C?.onTitleChange, [O ?? C?.onTitleChange]), z = C?.placeHolder ?? "Untitled", _ = x?.forceMode, { themeMode: X, source: he } = jt({ mode: _ }), N = $(() => ({ ...x, light: wt(!1, et.deepMerge(x?.theme ?? {}, x?.light ?? {})), dark: wt(!0, et.deepMerge(x?.theme ?? {}, x?.dark ?? {})) }), [x]), ge = X === ct.Dark, [M, v] = ee(null);
|
|
778
778
|
j(() => {
|
|
779
|
-
v(c ?? new
|
|
779
|
+
v(c ?? new Zn());
|
|
780
780
|
}, [c]);
|
|
781
781
|
const [E, W] = ee(null), [T, H] = ee(null), I = In();
|
|
782
782
|
st(() => {
|
|
@@ -817,17 +817,17 @@ const rn = Ee(oe((t, a) => {
|
|
|
817
817
|
}, [f ?? C?.title]), j(() => {
|
|
818
818
|
B?.(Q);
|
|
819
819
|
}, [Q]);
|
|
820
|
-
const [He,
|
|
820
|
+
const [He, Ze] = ee(null), be = $(() => {
|
|
821
821
|
const p = () => ({ contains: (k) => !0, focus() {
|
|
822
822
|
} });
|
|
823
823
|
return g ? g.createChildGroup(p, "application", !1) : new Rt(p, "application");
|
|
824
|
-
}, [g]),
|
|
825
|
-
|
|
824
|
+
}, [g]), Xe = te((p) => {
|
|
825
|
+
Ze(p.source.getViewportElement()), F(p), be.activate("sheet"), o?.(p);
|
|
826
826
|
}, [be]);
|
|
827
827
|
j(() => {
|
|
828
828
|
J && y && J.source?.focus(typeof y == "object" ? y : void 0);
|
|
829
829
|
}, [J]);
|
|
830
|
-
const Ce = ne(null), A =
|
|
830
|
+
const Ce = ne(null), A = Z((p) => {
|
|
831
831
|
let k = null;
|
|
832
832
|
return C?.hidden || (k = h(An, { ...C, style: { maxWidth: "100%", ...C?.style }, workbook: R.current, ref: Ce, title: Q, placeHolder: z, onTitleChange: (P) => {
|
|
833
833
|
ke(P);
|
|
@@ -839,11 +839,11 @@ const rn = Ee(oe((t, a) => {
|
|
|
839
839
|
R.current?.removeEventListener("wheel", p);
|
|
840
840
|
};
|
|
841
841
|
}, []);
|
|
842
|
-
const ce = $(() => h(qt, { transparentBackground: !0, sx: e, style: n }), [e, n]), V =
|
|
842
|
+
const ce = $(() => h(qt, { transparentBackground: !0, sx: e, style: n }), [e, n]), V = Z(({ error: p }) => (i?.(p), h(s, { sx: e, style: n, error: p ?? "Unable to display empty workbook." })), [e, n, i]), Se = $(() => ({ ...e, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (p) => p.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [e]), Qe = Ht([R, a]), D = $(() => {
|
|
843
843
|
if (!E) return ce;
|
|
844
844
|
if (E.error || !E.workbook) return V({ error: E.error });
|
|
845
845
|
let p = null, k = null, P = !1;
|
|
846
|
-
return N && (p = ge ? N.dark : N.light, k = ge && !N.forceLightGrid ? N.dark : N.light, P = N.forceLightImages), h(Hn, { sx: Se, style: n, tabIndex: 0, autoFocus: !0, workbook: E.workbook, ref: Qe, renderToolbar: A, onElementLoad:
|
|
846
|
+
return N && (p = ge ? N.dark : N.light, k = ge && !N.forceLightGrid ? N.dark : N.light, P = N.forceLightImages), h(Hn, { sx: Se, style: n, tabIndex: 0, autoFocus: !0, workbook: E.workbook, ref: Qe, renderToolbar: A, onElementLoad: Xe, onRepeatCommandChange: Ae, onKeyDown: (G) => {
|
|
847
847
|
l?.(G);
|
|
848
848
|
}, gridTheme: k, headersTheme: p, forceLightImages: P, className: lt(r, "sheetxl-workbook"), onContextMenu: (G) => G.preventDefault(), ...Y }, "WorkbookElement");
|
|
849
849
|
}, [E, Q, M, ce, N, Y, A, Se]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Y } from "./
|
|
2
|
-
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./
|
|
1
|
+
import { Y } from "./WY7bB02qrit-yNWs.mjs";
|
|
2
|
+
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./jh3hpFpR0p1T4JLc.mjs";
|
|
3
3
|
import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Oe from "react";
|
|
2
2
|
import { createElement as Er, forwardRef as la, useRef as fa, useImperativeHandle as pa, useEffect as da } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
4
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -2,9 +2,9 @@ import { jsx as n, jsxs as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as v } from "react";
|
|
3
3
|
import { Box as O, FormControlLabel as a, Checkbox as s } from "@mui/material";
|
|
4
4
|
import { Sort as l, IRange as r } from "@sheetxl/sdk";
|
|
5
|
-
import { T as b, a1 as S } from "./
|
|
5
|
+
import { T as b, a1 as S } from "./WY7bB02qrit-yNWs.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -3,33 +3,33 @@ import { memo as ie, useRef as C, useState as b, useEffect as D, useLayoutEffect
|
|
|
3
3
|
import { DialogContent as de, Box as O, TextField as Y, InputAdornment as ue, Collapse as _, MenuItem as fe, FormControl as ge, InputLabel as me, Select as xe } from "@mui/material";
|
|
4
4
|
import { ArrowBack as he, ArrowUpward as Oe, ArrowForward as Ce, ArrowDownward as ye } from "@mui/icons-material";
|
|
5
5
|
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
6
|
-
import { T as W, a4 as be, j as Te, a6 as ve, a7 as m, x, a8 as Re,
|
|
6
|
+
import { T as W, a4 as be, j as Te, a6 as ve, a7 as m, x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, P as De } from "./WY7bB02qrit-yNWs.mjs";
|
|
7
7
|
import { alpha as w } from "@mui/system";
|
|
8
8
|
/**
|
|
9
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
10
10
|
*
|
|
11
11
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
12
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
13
|
*/
|
|
14
14
|
const $ = ie((I) => {
|
|
15
|
-
const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...
|
|
15
|
+
const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...P } = I, [A, v] = b(() => ne(r, s));
|
|
16
16
|
D(() => {
|
|
17
17
|
v(ne(r, s));
|
|
18
18
|
}, [r, s]);
|
|
19
19
|
const K = W((u) => {
|
|
20
20
|
v(u.target.value), d?.(s[u.target.value]);
|
|
21
21
|
}, [d, s]), l = pe(() => Object.keys(s).map((u) => i(fe, { value: u, children: u }, u)), [s]);
|
|
22
|
-
return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value:
|
|
22
|
+
return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: A, label: h, onChange: K, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...P, children: l })] });
|
|
23
23
|
}), ee = { Workbook: "workbook", Sheet: "sheet" }, te = { enter: 140, exit: 140 }, oe = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...oe };
|
|
24
24
|
delete se.Values;
|
|
25
|
-
const
|
|
25
|
+
const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
|
|
26
26
|
const r = Object.keys(h);
|
|
27
27
|
for (let s = 0; s < r.length; s++) {
|
|
28
28
|
const d = r[s];
|
|
29
29
|
if (h[d] === I) return d;
|
|
30
30
|
}
|
|
31
31
|
}, je = ie((I) => {
|
|
32
|
-
const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title:
|
|
32
|
+
const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: P, onHide: A, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), j = C(null), V = C(null), N = C(null), H = C(null), z = (e, t) => {
|
|
33
33
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
34
34
|
}, [U, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), S = W(async (e, t, n, E) => {
|
|
35
35
|
if (!v) return;
|
|
@@ -63,7 +63,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
|
|
|
63
63
|
}, { once: !0 });
|
|
64
64
|
}, [U, o]);
|
|
65
65
|
const [ae, { width: Q }] = Te();
|
|
66
|
-
return i(ve, { title:
|
|
66
|
+
return i(ve, { title: P ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: J, onHide: A, onFocus: () => Z(!0), onBlur: () => {
|
|
67
67
|
Z(!1), L(!1);
|
|
68
68
|
}, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
69
69
|
if (e.key === "h" && e.ctrlKey) B(!0), l.current?.contains(document.activeElement) && u.current?.focus();
|
|
@@ -134,7 +134,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
|
|
|
134
134
|
const n = { ...t };
|
|
135
135
|
return n.scope = e, n;
|
|
136
136
|
});
|
|
137
|
-
} }), i($, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options:
|
|
137
|
+
} }), i($, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Pe, onSelect: (e) => {
|
|
138
138
|
a((t) => {
|
|
139
139
|
const n = { ...t };
|
|
140
140
|
return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as ie, jsx as U } from "react/jsx-runtime";
|
|
2
2
|
import O, { isValidElement as qu, PureComponent as pe, Component as de, memo as Ku, useState as ft, useCallback as ct, useLayoutEffect as Gu } from "react";
|
|
3
3
|
import { Box as Ju } from "@mui/material";
|
|
4
|
-
import { g as mu, r as Qu, c as ve,
|
|
4
|
+
import { g as mu, r as Qu, c as ve, i as Zu, u as es, C as ts } from "./WY7bB02qrit-yNWs.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as D, useState as i, useCallback as N } from "react";
|
|
3
3
|
import { Box as j, FormControlLabel as w, Checkbox as F } from "@mui/material";
|
|
4
|
-
import { T as v, a1 as y, aj as B } from "./
|
|
4
|
+
import { T as v, a1 as y, aj as B } from "./WY7bB02qrit-yNWs.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Workbook as J } from "@sheetxl/sdk";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
const k = async (p, l) => {
|
|
9
|
+
const c = await p.toJSON(), b = l?.whiteSpace ?? 0;
|
|
10
|
+
let g;
|
|
11
|
+
l?.beforeWrite?.(p, c), g = b === 0 ? JSON.stringify(c) : function(i, r = 2) {
|
|
12
|
+
const n = [];
|
|
13
|
+
function s(o) {
|
|
14
|
+
const e = r * o;
|
|
15
|
+
return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
|
|
16
|
+
}
|
|
17
|
+
return function o(e, f, a, B) {
|
|
18
|
+
if (e == null || typeof e != "object") return JSON.stringify(e);
|
|
19
|
+
const A = s(f), d = s(f + 1);
|
|
20
|
+
if (Array.isArray(e)) {
|
|
21
|
+
const u = e.length;
|
|
22
|
+
if (u === 0) return "[]";
|
|
23
|
+
if (a !== 0) return JSON.stringify(e);
|
|
24
|
+
let y = `[
|
|
25
|
+
`;
|
|
26
|
+
for (let h = 0; h < u; h++) y += d + o(e[h], f + 1, a + 1, !0), h < u - 1 && (y += `,
|
|
27
|
+
`);
|
|
28
|
+
return y += `
|
|
29
|
+
` + A + "]", y;
|
|
30
|
+
}
|
|
31
|
+
const m = Object.keys(e), O = m.length;
|
|
32
|
+
if (O === 0) return "{}";
|
|
33
|
+
if (!(a < 2)) return JSON.stringify(e);
|
|
34
|
+
let S = `{
|
|
35
|
+
`;
|
|
36
|
+
B || (a = 0);
|
|
37
|
+
for (let u = 0; u < O; u++) {
|
|
38
|
+
const y = m[u];
|
|
39
|
+
S += d + JSON.stringify(y) + ": " + o(e[y], f + 1, a, !1), u < O - 1 && (S += `,
|
|
40
|
+
`);
|
|
41
|
+
}
|
|
42
|
+
return S += `
|
|
43
|
+
` + A + "}", S;
|
|
44
|
+
}(i, 0, 0, !1);
|
|
45
|
+
}(c, b);
|
|
46
|
+
let w = new TextEncoder().encode(g).buffer;
|
|
47
|
+
const t = l?.compress ?? !0;
|
|
48
|
+
return t && (w = await async function(i, r = "gzip") {
|
|
49
|
+
let n;
|
|
50
|
+
i instanceof SharedArrayBuffer ? (n = new ArrayBuffer(i.byteLength), new Uint8Array(n).set(new Uint8Array(i))) : n = i;
|
|
51
|
+
const s = new ReadableStream({ start(f) {
|
|
52
|
+
f.enqueue(n), f.close();
|
|
53
|
+
} }), o = new CompressionStream(r), e = s.pipeThrough(o);
|
|
54
|
+
return (await new Response(e).blob()).arrayBuffer();
|
|
55
|
+
}(w, typeof t == "string" ? t : void 0)), w;
|
|
56
|
+
}, z = async (p, l) => {
|
|
57
|
+
let c = p;
|
|
58
|
+
(function(t) {
|
|
59
|
+
if (t.byteLength < 4) return !1;
|
|
60
|
+
const i = new Uint8Array(t), r = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n = Object.keys(r);
|
|
61
|
+
for (let s = 0; s < n.length; s++) {
|
|
62
|
+
const o = n[s], e = r[o];
|
|
63
|
+
let f = !0;
|
|
64
|
+
for (let a = 0; a < e.length; a++) if (i[a] !== e[a]) {
|
|
65
|
+
f = !1;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
if (f) return o;
|
|
69
|
+
}
|
|
70
|
+
return !1;
|
|
71
|
+
})(c) && (c = await async function(t, i = "gzip") {
|
|
72
|
+
let r;
|
|
73
|
+
t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
|
|
74
|
+
const n = new Blob([r]).stream(), s = new DecompressionStream(i), o = n.pipeThrough(s);
|
|
75
|
+
return (await new Response(o).blob()).arrayBuffer();
|
|
76
|
+
}(c));
|
|
77
|
+
let b = new TextDecoder().decode(c);
|
|
78
|
+
const g = JSON.parse(b), w = { ...l?.constructorOptions ?? {}, json: g };
|
|
79
|
+
return new J(w);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
z as fromBufferJSON,
|
|
83
|
+
k as toBufferJSON
|
|
84
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Workbook as y, IRange as C } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
8
|
const k = async (a, p) => {
|
|
9
|
-
const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: u = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, f = await import("./
|
|
9
|
+
const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: u = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, f = await import("./Ra0uzwzBLLZ-3x5M.mjs").then((s) => s.p);
|
|
10
10
|
if (!a) throw new Error("workbook must be specified");
|
|
11
11
|
let t = null;
|
|
12
12
|
if (r === null ? t = a.getSelectedSheet() : typeof r == "number" ? t = a.getSheets().search()[r] : typeof r == "string" && (t = a.getSheets().getByName(r)), !t) throw new Error("invalid sheetKey specified");
|
|
@@ -25,9 +25,9 @@ const k = async (a, p) => {
|
|
|
25
25
|
e.push(S);
|
|
26
26
|
}, { includeEmpty: !0, address: null }), e && d.push(e);
|
|
27
27
|
const o = { ...m }, g = f.unparse(d, o);
|
|
28
|
-
return new TextEncoder().encode(g);
|
|
28
|
+
return new TextEncoder().encode(g).buffer;
|
|
29
29
|
}, R = async (a, p) => {
|
|
30
|
-
const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, r = await import("./
|
|
30
|
+
const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, r = await import("./Ra0uzwzBLLZ-3x5M.mjs").then((o) => o.p), m = new TextDecoder().decode(a);
|
|
31
31
|
let f = -1;
|
|
32
32
|
const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: C.Orientation.Row }), d = p?.onProgress;
|
|
33
33
|
let e = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C, { memo as ne, useState as z, useRef as m, useCallback as re, useEffect as S } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as z, forwardRef as E, useState as p } from "react";
|
|
3
|
+
import { _ as t, a0 as K, a1 as R, a2 as W, a3 as O } from "./WY7bB02qrit-yNWs.mjs";
|
|
4
|
+
import { Box as _, FormControl as q, TextField as A } from "@mui/material";
|
|
5
|
+
import { alpha as y } from "@mui/system";
|
|
6
|
+
/**
|
|
7
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
8
|
+
*
|
|
9
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
+
*/
|
|
12
|
+
const G = ["Input"], Z = z(E((w, F) => {
|
|
13
|
+
const { initialValue: T = "", onOption: C, onValidateOption: r, onInputOption: l, onValidateInputOption: s, onDone: u, inputProps: c, inputLabel: I, inputType: P, inputPlaceHolder: v, options: d = G, autoFocusSel: b = ".autoFocus", cancelOption: m, defaultOption: g = d?.[0], ...k } = w, [V, B] = p(!1), [o, D] = p(T), [S, H] = p(""), [L, M] = p(!0), e = t(async (a, n) => {
|
|
14
|
+
if (!s) return !0;
|
|
15
|
+
const h = await s?.(a, n);
|
|
16
|
+
H(h?.message ?? "");
|
|
17
|
+
const x = h?.valid ?? !0;
|
|
18
|
+
return M(x), x;
|
|
19
|
+
}, [s]), f = t(async (a) => {
|
|
20
|
+
l?.(o, a);
|
|
21
|
+
}, [o, l, u, C, m, g]), N = t(async (a) => {
|
|
22
|
+
a.keyCode === K.Enter && await e?.(o, null);
|
|
23
|
+
}, [o, f]), $ = t((a) => {
|
|
24
|
+
D(a.target.value), e?.(a.target.value, null);
|
|
25
|
+
}, [r]), j = t(async (a) => {
|
|
26
|
+
let n = await e(o, a);
|
|
27
|
+
try {
|
|
28
|
+
n !== !1 && (n = await e(o, a));
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
return n ?? !0;
|
|
32
|
+
}, [o, r]);
|
|
33
|
+
return i(R, { options: d, onDone: u, onOption: (a, n) => {
|
|
34
|
+
n || f(a);
|
|
35
|
+
}, onValidateOption: j, cancelOption: m, defaultOption: g, autoFocusSel: b, ref: F, ...k, children: i(_, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(q, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { onFocus: (a) => {
|
|
36
|
+
V || a.target?.select(), B(!0);
|
|
37
|
+
}, type: P, label: I, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: v, spellCheck: !1, autoComplete: "off", ...c, className: W("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${y("#fff", O(5))}, ${y("#fff", O(5))})` } } }, value: o, onChange: $, onKeyDown: N, onContextMenu: (a) => {
|
|
38
|
+
a.stopPropagation();
|
|
39
|
+
} }) }) }) });
|
|
40
|
+
}));
|
|
41
|
+
export {
|
|
42
|
+
Z as default
|
|
43
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as d, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as V, useState as p, useCallback as h } from "react";
|
|
3
3
|
import { Box as L } from "@mui/material";
|
|
4
|
-
import { T as u, a1 as S, ai as A, aj as G } from "./
|
|
4
|
+
import { T as u, a1 as S, ai as A, aj as G } from "./WY7bB02qrit-yNWs.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.20
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|