@sheetxl/studio-mui 0.7.12 → 0.7.14
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/-SJdVflEYXFC2raH.cjs +6 -0
- package/browser/cjs/BE0n-qrL7I0lr2f8.cjs +7 -0
- package/browser/cjs/CAxeR5WYtM_OKUqg.cjs +6 -0
- package/browser/cjs/CC-q_GCvhI_uweI4.cjs +6 -0
- package/browser/cjs/{wyak0LMoe5SYbD51.cjs → CHc92OjHJrS2B3rB.cjs} +2 -2
- package/browser/cjs/CN5q08lr4Coj9gzy.cjs +6 -0
- package/browser/cjs/{CcsfLc43Qp-vN_dY.cjs → CYMqmv5IamB1x14k.cjs} +3 -3
- package/browser/cjs/CwHuP4ot4XxM1FbL.cjs +6 -0
- package/browser/cjs/{CMEmwUuGpnOyILAu.cjs → DjU4LQ7p0jFx8PsW.cjs} +1 -1
- package/browser/cjs/DqwSkMX3TSwbvSfO.cjs +20 -0
- package/browser/cjs/Ij3b1ONhNaWLtkRT.cjs +6 -0
- package/browser/cjs/NpKL7qsDwzMarfjO.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/BLiSCviFgWhD9SmC.mjs +53 -0
- package/browser/esm/BNF5wwVTFO0bKhDb.mjs +50 -0
- package/browser/esm/BlDN4JPF9n_TeCyQ.mjs +155 -0
- package/browser/esm/{DK1cCQD1jHxZbFAp.mjs → BzS-7g64cdTk8pFd.mjs} +1 -1
- package/browser/esm/BzkODf-EDNHsbeYC.mjs +26 -0
- package/browser/esm/{B7ChnkonDRA2zazH.mjs → Cd127EllJy0H1x8s.mjs} +3 -3
- package/browser/esm/CfkKWfDbYhDDort6.mjs +46 -0
- package/browser/esm/{CRmCo9Jr1gvSFGVp.mjs → D8YtOXZWnL-YI48g.mjs} +2121 -2108
- package/browser/esm/DezB6LbrlA_MqNpH.mjs +50 -0
- package/browser/esm/{fsGSNDVe9urk2cLB.mjs → DlZXGLXt7KBqpCgX.mjs} +2 -2
- package/browser/esm/{aeHM-2IGRQaGFohd.mjs → XGwUZoREuZ029cPM.mjs} +28 -27
- package/browser/esm/aWQ7-rGmyvVU_nRK.mjs +25 -0
- package/browser/esm/index.mjs +2 -2
- package/licenses/dependencies.txt +142 -142
- package/node/esm/4D3fLVzYqPTas9nR.mjs +25 -0
- package/node/esm/B6-CF_32FCaDZJDm.mjs +52 -0
- package/node/esm/C21w0yQGlygcFqHI.mjs +156 -0
- package/node/esm/{H012qdl97RHln5MW.mjs → C62EF6LSsPD4LAL6.mjs} +1 -1
- package/node/esm/{Df6HNjgJTgShGC-O.mjs → C8TcDhw9hCrJxqfJ.mjs} +1 -1
- package/node/esm/{CwKoYwlrp9nnVHln.mjs → CM8Jkahi0myGVt_v.mjs} +22 -22
- package/node/esm/{CGaHni9C2sipjSMn.mjs → CREPL1yvIjmYpU-r.mjs} +9 -7
- package/node/esm/CeJ5myvgfYOUSKGq.mjs +26 -0
- package/node/esm/{BEFwnAOkyd0CWlex.mjs → D9PLpUGQqMmk1V9n.mjs} +13 -13
- package/node/esm/index.mjs +531 -523
- package/node/esm/{BSTIZiKBGgwjXLtp.mjs → xCdMLxN5xcpczFUI.mjs} +18 -18
- package/package.json +17 -15
- package/browser/cjs/BYfcSe1JgcohGr-C.cjs +0 -7
- package/browser/cjs/BZPmbh6TWeAN2tiY.cjs +0 -6
- package/browser/cjs/CrkutQSHB1Buy5oQ.cjs +0 -6
- package/browser/cjs/D2KC31HOMCGQMLvD.cjs +0 -6
- package/browser/cjs/DiQXaxwfHcQfkYKX.cjs +0 -6
- package/browser/cjs/Dmw2IW35YLNmLgvP.cjs +0 -20
- package/browser/cjs/bItCE_-c88dO7Izw.cjs +0 -6
- package/browser/cjs/fa-Q2vHsld47aqrE.cjs +0 -6
- package/browser/esm/BZPlU0oT2oGTQQgK.mjs +0 -46
- package/browser/esm/BzGH26JDt4xKZfM7.mjs +0 -49
- package/browser/esm/CA-_Kya2gsMrF9Ef.mjs +0 -26
- package/browser/esm/CGBRrUgnGzuP9FGo.mjs +0 -156
- package/browser/esm/csScKLYnqrrlL197.mjs +0 -25
- package/browser/esm/lm9H6CMj_7o_ra2l.mjs +0 -53
- package/node/esm/BqLlyKyVXFNiRaJv.mjs +0 -25
- package/node/esm/Cq6TadzONqFlX07d.mjs +0 -26
- package/node/esm/D71WQjM6hP5FzBql.mjs +0 -157
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as i, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as L, useMemo as y, useState as w, useCallback as V } from "react";
|
|
3
|
+
import { alpha as p, getOverlayAlpha as c } from "@mui/material/styles";
|
|
4
|
+
import { Box as C, FormControl as P, TextField as A, InputLabel as N, Select as W, Typography as E, MenuItem as H } from "@mui/material";
|
|
5
|
+
import { IRange as K } from "@sheetxl/sdk";
|
|
6
|
+
import { useCallbackRef as s, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
|
+
import { OptionsDialog as q } from "@sheetxl/utils-mui";
|
|
8
|
+
/**
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
10
|
+
*
|
|
11
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
+
*/
|
|
14
|
+
const J = ["Autofit", "Ok", "Cancel"], te = L((T) => {
|
|
15
|
+
const { initialValue: k, context: a, onOption: O, onValidateOption: u, onInput: b, onDone: d, options: z = J, defaultOption: l = z?.[1], cancelOption: m = "Cancel", sx: I, ...D } = T, F = y(() => a?.().getOrientation() === K.Orientation.Column, [a]), [t, v] = w(k), [U, M] = w(!1), g = V(async (e, n) => !0, []), f = y(() => {
|
|
16
|
+
if (!a().toUnits) return null;
|
|
17
|
+
let e = t?.size ?? 0, n = "Px";
|
|
18
|
+
return t.unit === "Px" ? (e = a().toUnits?.(e), n = a().getUnitText()) : (e = a().toPixels?.(e), n = "Px"), { size: e, unit: n };
|
|
19
|
+
}, [t?.unit, t?.size]), x = s(async (e) => {
|
|
20
|
+
const n = e === m;
|
|
21
|
+
n || b?.(t, e), O?.(e, n, e === l), d?.();
|
|
22
|
+
}, [t, b, d, O, m, l]), R = s(async (e) => {
|
|
23
|
+
e.keyCode === G.Enter && await g?.(t, null) !== !1 && x(l);
|
|
24
|
+
}, [t, x]), S = s(async (e) => {
|
|
25
|
+
let n = await Promise.resolve(u?.(e));
|
|
26
|
+
try {
|
|
27
|
+
n !== !1 && (n = await Promise.resolve(g?.(t, e)) ?? !0);
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
return n ?? !0;
|
|
31
|
+
}, [u]), $ = s((e) => {
|
|
32
|
+
const n = { ...t, size: Number(e.target.value) };
|
|
33
|
+
v(n), g?.(n, null);
|
|
34
|
+
}, [t, u]), j = s((e) => {
|
|
35
|
+
const n = e.target.value, o = { ...t, unit: n };
|
|
36
|
+
v(o);
|
|
37
|
+
}, [t]), B = y(() => {
|
|
38
|
+
const e = a().getUnitText(), n = (h) => i(H, { value: h, children: h }, h), o = [];
|
|
39
|
+
return o.push(n("Px")), o.push(n(e)), o;
|
|
40
|
+
}, []);
|
|
41
|
+
return i(q, { title: "Resize " + (F ? "Columns" : "Rows"), options: z, onDone: d, onOption: (e) => x(e), onValidateOption: S, defaultOption: l, cancelOption: m, autoFocusSel: ".autoFocus", sx: { width: "380px", ...I }, ...D, children: r(C, { sx: { paddingTop: (e) => e.spacing(0), paddingBottom: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [r(C, { sx: { rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "row", gap: (e) => e.spacing(0.5), alignItems: "end", justifyContent: "center" }, children: [i(P, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { label: "Size", onFocus: (e) => {
|
|
42
|
+
U || e.target?.select(), M(!0);
|
|
43
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", type: "number", inputMode: "numeric", pattern: "[0-9]*", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` } } }, value: t.size, onChange: $, onKeyDown: R, onContextMenu: (e) => {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
} }) }), r(P, { sx: { minWidth: 85 }, size: "small", children: [i(N, { children: "Unit" }), i(W, { value: t.unit, label: "Unit", onChange: j, sx: { backgroundImage: `linear-gradient(${p("#fff", c(5))}, ${p("#fff", c(5))})` }, children: B })] })] }), f && i(C, { children: r(E, { variant: "body2", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: [f.size, " ", f.unit] }) })] }) });
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
te as ResizeHeaderDialog,
|
|
49
|
+
te as default
|
|
50
|
+
};
|
|
@@ -2,10 +2,10 @@ 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 { useTheme as Ju } from "@mui/material/styles";
|
|
4
4
|
import { Box as Qu } from "@mui/material";
|
|
5
|
-
import { g as mu, r as Zu, c as ve, C as es } from "./
|
|
5
|
+
import { g as mu, r as Zu, c as ve, C as es } from "./D8YtOXZWnL-YI48g.mjs";
|
|
6
6
|
import { ReactUtils as ts } from "@sheetxl/utils-react";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,51 +1,52 @@
|
|
|
1
1
|
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import { memo as W, useState as h, useCallback as
|
|
3
|
-
import { alpha as
|
|
2
|
+
import { memo as W, useState as h, useCallback as O, useEffect as G, useMemo as S } from "react";
|
|
3
|
+
import { alpha as i, getOverlayAlpha as p } from "@mui/material/styles";
|
|
4
4
|
import { Box as w, FormControl as D, InputLabel as H, Select as q, TextField as A, Typography as I, MenuItem as J } from "@mui/material";
|
|
5
5
|
import { NumberFormat as n } from "@sheetxl/sdk";
|
|
6
6
|
import { useCallbackRef as c, KeyCodes as Q } from "@sheetxl/utils-react";
|
|
7
7
|
import { OptionsDialog as U } from "@sheetxl/utils-mui";
|
|
8
8
|
/**
|
|
9
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
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 X = ["Ok", "Cancel"], ne = W((P) => {
|
|
15
|
-
const { initialValue: $, context: x, onOption: b, onValidateOption:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const { initialValue: $, context: x, onOption: b, onValidateOption: u, onInput: C, onDone: m, options: v = X, defaultOption: l = v?.[0], cancelOption: d = "Cancel", sx: N, ...M } = P, [o, T] = h($), [V, j] = h(!1), g = O(async (e, a) => !0, []), f = c(async (e) => {
|
|
16
|
+
const a = e === d;
|
|
17
|
+
a || C?.(o, e), b?.(e, a, e === l), m?.();
|
|
18
|
+
}, [o, C, m, b, d, l]), B = c(async (e) => {
|
|
19
|
+
e.keyCode === Q.Enter && await g?.(o, null) !== !1 && f(l);
|
|
20
|
+
}, [o, f]), L = c((e) => {
|
|
20
21
|
T(e.target.value), g?.(e.target.value, null);
|
|
21
|
-
}, [
|
|
22
|
-
let
|
|
22
|
+
}, [u]), R = c(async (e) => {
|
|
23
|
+
let a = await Promise.resolve(u?.(e));
|
|
23
24
|
try {
|
|
24
|
-
|
|
25
|
+
a !== !1 && (a = await Promise.resolve(g?.(o, e)) ?? !0);
|
|
25
26
|
} catch {
|
|
26
27
|
}
|
|
27
|
-
return
|
|
28
|
-
}, [
|
|
28
|
+
return a ?? !0;
|
|
29
|
+
}, [u]), [k, F] = h(n.Styles.lookupStyle(o).formatType ?? n.Type.Custom);
|
|
29
30
|
G(() => {
|
|
30
|
-
|
|
31
|
-
}, [
|
|
31
|
+
F(n.Styles.lookupStyle(o).formatType ?? n.Type.Custom);
|
|
32
|
+
}, [o]);
|
|
32
33
|
const z = S(() => {
|
|
33
|
-
const e = n.Styles.lookupPrimary(),
|
|
34
|
-
return s.push(
|
|
35
|
-
}, []), E =
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const s = n.Styles.lookupDefault(
|
|
34
|
+
const e = n.Styles.lookupPrimary(), a = (r) => t(J, { value: r, children: r }, r), s = Object.keys(e).map((r) => a(e[r].formatType));
|
|
35
|
+
return s.push(a(n.Type.Custom)), s;
|
|
36
|
+
}, []), E = O((e) => {
|
|
37
|
+
const a = e.target.value;
|
|
38
|
+
F(a);
|
|
39
|
+
const s = n.Styles.lookupDefault(a);
|
|
39
40
|
s && T(s);
|
|
40
41
|
}, []), K = S(() => {
|
|
41
|
-
const e = x();
|
|
42
|
-
return e.createTemporaryCell({ value: e.getValue() ?? 12345, style: { numberFormat:
|
|
43
|
-
}, [k,
|
|
44
|
-
return t(U, { title: "Number Format", options: v, onDone:
|
|
42
|
+
const e = x?.();
|
|
43
|
+
return e ? e.createTemporaryCell({ value: e.getValue() ?? 12345, style: { numberFormat: o } }) : null;
|
|
44
|
+
}, [k, o, x]);
|
|
45
|
+
return t(U, { title: "Number Format", options: v, onDone: m, onOption: (e) => f(e), onValidateOption: R, defaultOption: l, cancelOption: d, autoFocusSel: ".autoFocus", sx: { width: "580px", ...N }, ...M, children: y(w, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [y(D, { sx: { minWidth: 135 }, size: "small", children: [t(H, { children: "Category" }), t(q, { value: k, label: "Category", onChange: E, sx: { backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` }, children: z })] }), t(D, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(A, { label: "Code", onFocus: (e) => {
|
|
45
46
|
V || e.target?.select(), j(!0);
|
|
46
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${
|
|
47
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` } } }, value: o, onChange: L, onKeyDown: B, onContextMenu: (e) => {
|
|
47
48
|
e.stopPropagation();
|
|
48
|
-
} }) }), y(w, { children: [t(I, { variant: "caption", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: "Preview" }), t(I, { variant: "body2", component: "div", sx: { borderRadius: (e) => `${e.shape.borderRadius}px`, padding: (e) => e.spacing(1), border: (e) => `1px solid ${e.palette.grey[400]}` }, children: K
|
|
49
|
+
} }) }), y(w, { children: [t(I, { variant: "caption", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: "Preview" }), t(I, { variant: "body2", component: "div", sx: { borderRadius: (e) => `${e.shape.borderRadius}px`, padding: (e) => e.spacing(1), border: (e) => `1px solid ${e.palette.grey[400]}` }, children: K?.getNumberFormat().displayText || "(empty)" })] })] }) });
|
|
49
50
|
});
|
|
50
51
|
export {
|
|
51
52
|
ne as NumberFormatDialog,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as n, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { memo as v, useState as p, useCallback as w } from "react";
|
|
3
|
+
import { Box as I, FormControlLabel as V, Checkbox as j } from "@mui/material";
|
|
4
|
+
import { useCallbackRef as y } from "@sheetxl/utils-react";
|
|
5
|
+
import { OptionsDialog as F } from "@sheetxl/utils-mui";
|
|
6
|
+
import { R } from "./D8YtOXZWnL-YI48g.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
const B = ["Ok", "Cancel"], z = v((g) => {
|
|
14
|
+
const { onInput: f, onOption: c, onValidateOption: H, onDone: d, options: m = B, defaultOption: t = m?.[0], cancelOption: s = "Cancel", sx: x, initialValue: e, context: l, ...b } = g, [h, O] = p(!1), [o, C] = p(() => e?.hasHeader ?? !1), [i, k] = p(() => e?.ranges ?? null), D = y((a) => {
|
|
15
|
+
const r = { ...e, hasHeader: o, ranges: i }, u = a === s;
|
|
16
|
+
u || f?.(r), c?.(a, u, a === t), d?.({ option: a, tableOptions: r });
|
|
17
|
+
}, [d, c, t, s, o, i, e]), N = w(async (a, r) => null, []);
|
|
18
|
+
return n(F, { title: "Insert Table", options: m, onDone: D, onValidateOption: N, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...x }, ...b, children: T(I, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [n(R, { formName: "range", value: i, onChangeInput: (a) => k(a), resolvedAddress: l ? l().getNames().getRanges.bind(l().getNames()) : void 0, onFocus: (a) => {
|
|
19
|
+
h || a.target?.select(), O(!0);
|
|
20
|
+
} }), n(V, { control: n(j, { checked: o, onChange: () => C(!o) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
z as TableNewDialog,
|
|
24
|
+
z as default
|
|
25
|
+
};
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_11z3j_1{display:block;margin:0;padding:0;line-height:1}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{display:grid;grid-template-columns:1fr;user-select:none}@container (width > 600px){._table-style-options_1kfn2_1{grid-template-rows:repeat(3,auto);grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}}._range-row_akhf4_1{display:flex;flex-direction:column;flex:1 1 100%;width:100%;align-items:center}@container (width > 600px){._range-row_akhf4_1{flex-direction:row;gap:12px;justify-content:space-between}}._action-row_akhf4_15{display:flex;align-items:start;flex-direction:column;width:100%;gap:4px}@container (width > 600px){._action-row_akhf4_15{align-items:center;flex-direction:row;justify-content:space-evenly}}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_g5t6x_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;outline:none}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_g5t6x_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_g5t6x_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
import { LicenseManager as t } from "@sheetxl/sdk";
|
|
3
3
|
import { DefaultTaskPaneRegistry as n, useModelListener as s, useRangeListener as m } from "@sheetxl/react";
|
|
4
|
-
import { E as u, Z as r, B as d, O as C, X as B, n as i, o as p, m as S, k, a0 as P, a1 as T, t as b, $ as F, Y as c, a2 as g, D as y, at as I, l as f, aa as h, s as W, ab as x, h as M, v as w, i as L, a8 as v, F as A, G as D, H as E, L as O, K as R, I as N, M as V, a9 as z, N as H, j as U, P as G, z as j, A as q, R as Z, ai as J, aj as K, a7 as Q, ak as X, q as Y, a6 as _, S as $, Q as aa, af as oa, ag as ta, ah as ea, ad as na, ae as sa, ac as ma, w as la, T as ua, f as ra, a3 as da, a4 as Ca, a5 as Ba, x as ia, U as pa, V as Sa, p as ka, y as Pa, J as Ta, ao as ba, am as Fa, av as ca, ap as ga, an as ya, W as Ia, au as fa, as as ha, S as Wa, ar as xa, al as Ma, aq as wa } from "./
|
|
4
|
+
import { E as u, Z as r, B as d, O as C, X as B, n as i, o as p, m as S, k, a0 as P, a1 as T, t as b, $ as F, Y as c, a2 as g, D as y, at as I, l as f, aa as h, s as W, ab as x, h as M, v as w, i as L, a8 as v, F as A, G as D, H as E, L as O, K as R, I as N, M as V, a9 as z, N as H, j as U, P as G, z as j, A as q, R as Z, ai as J, aj as K, a7 as Q, ak as X, q as Y, a6 as _, S as $, Q as aa, af as oa, ag as ta, ah as ea, ad as na, ae as sa, ac as ma, w as la, T as ua, f as ra, a3 as da, a4 as Ca, a5 as Ba, x as ia, U as pa, V as Sa, p as ka, y as Pa, J as Ta, ao as ba, am as Fa, av as ca, ap as ga, an as ya, W as Ia, au as fa, as as ha, S as Wa, ar as xa, al as Ma, aq as wa } from "./D8YtOXZWnL-YI48g.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
6
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
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.
|
|
@@ -213,6 +213,145 @@ License Copyright:
|
|
|
213
213
|
|
|
214
214
|
---
|
|
215
215
|
|
|
216
|
+
Name: @babel/runtime
|
|
217
|
+
Version: 7.28.4
|
|
218
|
+
License: MIT
|
|
219
|
+
Private: false
|
|
220
|
+
Description: babel's modular runtime helpers
|
|
221
|
+
Repository: https://github.com/babel/babel.git
|
|
222
|
+
Homepage: https://babel.dev/docs/en/next/babel-runtime
|
|
223
|
+
Author: The Babel Team (https://babel.dev/team)
|
|
224
|
+
License Copyright:
|
|
225
|
+
===
|
|
226
|
+
|
|
227
|
+
MIT License
|
|
228
|
+
|
|
229
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
230
|
+
|
|
231
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
232
|
+
a copy of this software and associated documentation files (the
|
|
233
|
+
"Software"), to deal in the Software without restriction, including
|
|
234
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
235
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
236
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
237
|
+
the following conditions:
|
|
238
|
+
|
|
239
|
+
The above copyright notice and this permission notice shall be
|
|
240
|
+
included in all copies or substantial portions of the Software.
|
|
241
|
+
|
|
242
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
243
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
244
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
245
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
246
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
247
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
248
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
Name: react-lifecycles-compat
|
|
253
|
+
Version: 3.0.4
|
|
254
|
+
License: MIT
|
|
255
|
+
Private: false
|
|
256
|
+
Description: Backwards compatibility polyfill for React class components
|
|
257
|
+
Repository: undefined
|
|
258
|
+
License Copyright:
|
|
259
|
+
===
|
|
260
|
+
|
|
261
|
+
MIT License
|
|
262
|
+
|
|
263
|
+
Copyright (c) 2013-present, Facebook, Inc.
|
|
264
|
+
|
|
265
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
266
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
267
|
+
in the Software without restriction, including without limitation the rights
|
|
268
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
269
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
270
|
+
furnished to do so, subject to the following conditions:
|
|
271
|
+
|
|
272
|
+
The above copyright notice and this permission notice shall be included in all
|
|
273
|
+
copies or substantial portions of the Software.
|
|
274
|
+
|
|
275
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
276
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
277
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
278
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
279
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
280
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
281
|
+
SOFTWARE.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
Name: react-virtualized
|
|
286
|
+
Version: 9.22.6
|
|
287
|
+
License: MIT
|
|
288
|
+
Private: false
|
|
289
|
+
Description: React components for efficiently rendering large, scrollable lists and tabular data
|
|
290
|
+
Repository: https://github.com/bvaughn/react-virtualized.git
|
|
291
|
+
Homepage: https://github.com/bvaughn/react-virtualized
|
|
292
|
+
Author: Brian Vaughn <brian.david.vaughn@gmail.com>
|
|
293
|
+
License Copyright:
|
|
294
|
+
===
|
|
295
|
+
|
|
296
|
+
The MIT License (MIT)
|
|
297
|
+
|
|
298
|
+
Copyright (c) 2015 Brian Vaughn
|
|
299
|
+
|
|
300
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
301
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
302
|
+
in the Software without restriction, including without limitation the rights
|
|
303
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
304
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
305
|
+
furnished to do so, subject to the following conditions:
|
|
306
|
+
|
|
307
|
+
The above copyright notice and this permission notice shall be included in all
|
|
308
|
+
copies or substantial portions of the Software.
|
|
309
|
+
|
|
310
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
311
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
312
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
313
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
314
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
315
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
316
|
+
SOFTWARE.
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
Name: dom-helpers
|
|
321
|
+
Version: 5.2.1
|
|
322
|
+
License: MIT
|
|
323
|
+
Private: false
|
|
324
|
+
Description: tiny modular DOM lib for ie9+
|
|
325
|
+
Repository: git+https://github.com/react-bootstrap/dom-helpers.git
|
|
326
|
+
Homepage: https://github.com/react-bootstrap/dom-helpers#readme
|
|
327
|
+
Author: Jason Quense <monastic.panic@gmail.com>
|
|
328
|
+
License Copyright:
|
|
329
|
+
===
|
|
330
|
+
|
|
331
|
+
The MIT License (MIT)
|
|
332
|
+
|
|
333
|
+
Copyright (c) 2015 Jason Quense
|
|
334
|
+
|
|
335
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
336
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
337
|
+
in the Software without restriction, including without limitation the rights
|
|
338
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
339
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
340
|
+
furnished to do so, subject to the following conditions:
|
|
341
|
+
|
|
342
|
+
The above copyright notice and this permission notice shall be included in all
|
|
343
|
+
copies or substantial portions of the Software.
|
|
344
|
+
|
|
345
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
346
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
347
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
348
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
349
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
350
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
351
|
+
SOFTWARE.
|
|
352
|
+
|
|
353
|
+
---
|
|
354
|
+
|
|
216
355
|
Name: prop-types
|
|
217
356
|
Version: 15.8.1
|
|
218
357
|
License: MIT
|
|
@@ -477,145 +616,6 @@ terms above.
|
|
|
477
616
|
|
|
478
617
|
---
|
|
479
618
|
|
|
480
|
-
Name: @babel/runtime
|
|
481
|
-
Version: 7.28.4
|
|
482
|
-
License: MIT
|
|
483
|
-
Private: false
|
|
484
|
-
Description: babel's modular runtime helpers
|
|
485
|
-
Repository: https://github.com/babel/babel.git
|
|
486
|
-
Homepage: https://babel.dev/docs/en/next/babel-runtime
|
|
487
|
-
Author: The Babel Team (https://babel.dev/team)
|
|
488
|
-
License Copyright:
|
|
489
|
-
===
|
|
490
|
-
|
|
491
|
-
MIT License
|
|
492
|
-
|
|
493
|
-
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
494
|
-
|
|
495
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
496
|
-
a copy of this software and associated documentation files (the
|
|
497
|
-
"Software"), to deal in the Software without restriction, including
|
|
498
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
499
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
500
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
501
|
-
the following conditions:
|
|
502
|
-
|
|
503
|
-
The above copyright notice and this permission notice shall be
|
|
504
|
-
included in all copies or substantial portions of the Software.
|
|
505
|
-
|
|
506
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
507
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
508
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
509
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
510
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
511
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
512
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
513
|
-
|
|
514
|
-
---
|
|
515
|
-
|
|
516
|
-
Name: react-lifecycles-compat
|
|
517
|
-
Version: 3.0.4
|
|
518
|
-
License: MIT
|
|
519
|
-
Private: false
|
|
520
|
-
Description: Backwards compatibility polyfill for React class components
|
|
521
|
-
Repository: undefined
|
|
522
|
-
License Copyright:
|
|
523
|
-
===
|
|
524
|
-
|
|
525
|
-
MIT License
|
|
526
|
-
|
|
527
|
-
Copyright (c) 2013-present, Facebook, Inc.
|
|
528
|
-
|
|
529
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
530
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
531
|
-
in the Software without restriction, including without limitation the rights
|
|
532
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
533
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
534
|
-
furnished to do so, subject to the following conditions:
|
|
535
|
-
|
|
536
|
-
The above copyright notice and this permission notice shall be included in all
|
|
537
|
-
copies or substantial portions of the Software.
|
|
538
|
-
|
|
539
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
540
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
541
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
542
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
543
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
544
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
545
|
-
SOFTWARE.
|
|
546
|
-
|
|
547
|
-
---
|
|
548
|
-
|
|
549
|
-
Name: react-virtualized
|
|
550
|
-
Version: 9.22.6
|
|
551
|
-
License: MIT
|
|
552
|
-
Private: false
|
|
553
|
-
Description: React components for efficiently rendering large, scrollable lists and tabular data
|
|
554
|
-
Repository: https://github.com/bvaughn/react-virtualized.git
|
|
555
|
-
Homepage: https://github.com/bvaughn/react-virtualized
|
|
556
|
-
Author: Brian Vaughn <brian.david.vaughn@gmail.com>
|
|
557
|
-
License Copyright:
|
|
558
|
-
===
|
|
559
|
-
|
|
560
|
-
The MIT License (MIT)
|
|
561
|
-
|
|
562
|
-
Copyright (c) 2015 Brian Vaughn
|
|
563
|
-
|
|
564
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
565
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
566
|
-
in the Software without restriction, including without limitation the rights
|
|
567
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
568
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
569
|
-
furnished to do so, subject to the following conditions:
|
|
570
|
-
|
|
571
|
-
The above copyright notice and this permission notice shall be included in all
|
|
572
|
-
copies or substantial portions of the Software.
|
|
573
|
-
|
|
574
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
575
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
576
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
577
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
578
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
579
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
580
|
-
SOFTWARE.
|
|
581
|
-
|
|
582
|
-
---
|
|
583
|
-
|
|
584
|
-
Name: dom-helpers
|
|
585
|
-
Version: 5.2.1
|
|
586
|
-
License: MIT
|
|
587
|
-
Private: false
|
|
588
|
-
Description: tiny modular DOM lib for ie9+
|
|
589
|
-
Repository: git+https://github.com/react-bootstrap/dom-helpers.git
|
|
590
|
-
Homepage: https://github.com/react-bootstrap/dom-helpers#readme
|
|
591
|
-
Author: Jason Quense <monastic.panic@gmail.com>
|
|
592
|
-
License Copyright:
|
|
593
|
-
===
|
|
594
|
-
|
|
595
|
-
The MIT License (MIT)
|
|
596
|
-
|
|
597
|
-
Copyright (c) 2015 Jason Quense
|
|
598
|
-
|
|
599
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
600
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
601
|
-
in the Software without restriction, including without limitation the rights
|
|
602
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
603
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
604
|
-
furnished to do so, subject to the following conditions:
|
|
605
|
-
|
|
606
|
-
The above copyright notice and this permission notice shall be included in all
|
|
607
|
-
copies or substantial portions of the Software.
|
|
608
|
-
|
|
609
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
610
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
611
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
612
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
613
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
614
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
615
|
-
SOFTWARE.
|
|
616
|
-
|
|
617
|
-
---
|
|
618
|
-
|
|
619
619
|
Name: clsx
|
|
620
620
|
Version: 2.1.1
|
|
621
621
|
License: MIT
|
|
@@ -711,7 +711,7 @@ For more information, please refer to <https://unlicense.org>
|
|
|
711
711
|
---
|
|
712
712
|
|
|
713
713
|
Name: react-hook-form
|
|
714
|
-
Version: 7.
|
|
714
|
+
Version: 7.64.0
|
|
715
715
|
License: MIT
|
|
716
716
|
Private: false
|
|
717
717
|
Description: Performant, flexible and extensible forms library for React Hooks
|
|
@@ -926,7 +926,7 @@ terms above.
|
|
|
926
926
|
---
|
|
927
927
|
|
|
928
928
|
Name: use-sync-external-store
|
|
929
|
-
Version: 1.
|
|
929
|
+
Version: 1.6.0
|
|
930
930
|
License: MIT
|
|
931
931
|
Private: false
|
|
932
932
|
Description: Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.
|
|
@@ -1036,7 +1036,7 @@ SOFTWARE.
|
|
|
1036
1036
|
---
|
|
1037
1037
|
|
|
1038
1038
|
Name: goober
|
|
1039
|
-
Version: 2.1.
|
|
1039
|
+
Version: 2.1.18
|
|
1040
1040
|
License: MIT
|
|
1041
1041
|
Private: false
|
|
1042
1042
|
Description: A less than 1KB css-in-js solution
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
8
|
+
import { memo as t, useState as o, useCallback as a } from "react";
|
|
9
|
+
import { Box as i, FormControlLabel as l, Checkbox as r } from "@mui/material";
|
|
10
|
+
import { useCallbackRef as s } from "@sheetxl/utils-react";
|
|
11
|
+
import { OptionsDialog as p } from "@sheetxl/utils-mui";
|
|
12
|
+
import { RangeInput as c } from "./index.mjs";
|
|
13
|
+
const d = ["Ok", "Cancel"], m = t((t2) => {
|
|
14
|
+
const { onInput: m2, onOption: u, onValidateOption: g, onDone: f, options: h = d, defaultOption: x = h?.[0], cancelOption: O = "Cancel", sx: b, initialValue: C, context: v, ...D } = t2, [I, N] = o(false), [T, V] = o(() => C?.hasHeader ?? false), [j, k] = o(() => C?.ranges ?? null), w = s((e2) => {
|
|
15
|
+
const n2 = { ...C, hasHeader: T, ranges: j }, t3 = e2 === O;
|
|
16
|
+
t3 || m2?.(n2), u?.(e2, t3, e2 === x), f?.({ option: e2, tableOptions: n2 });
|
|
17
|
+
}, [f, u, x, O, T, j, C]), y = a(async (e2, n2) => null, []);
|
|
18
|
+
return e(p, { title: "Insert Table", options: h, onDone: w, onValidateOption: y, defaultOption: x, cancelOption: O, autoFocusSel: ".range-input input", sx: { width: "360px", ...b }, ...D, children: n(i, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [e(c, { formName: "range", value: j, onChangeInput: (e2) => k(e2), resolvedAddress: v ? v().getNames().getRanges.bind(v().getNames()) : void 0, onFocus: (e2) => {
|
|
19
|
+
I || e2.target?.select(), N(true);
|
|
20
|
+
} }), e(l, { control: e(r, { checked: T, onChange: () => V(!T) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
m as TableNewDialog,
|
|
24
|
+
m as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.14
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
8
|
+
import { memo as e, useMemo as i, useState as o, useCallback as a } from "react";
|
|
9
|
+
import { alpha as s, getOverlayAlpha as l } from "@mui/material/styles";
|
|
10
|
+
import { Box as r, FormControl as p, TextField as c, InputLabel as u, Select as d, Typography as m, MenuItem as f } from "@mui/material";
|
|
11
|
+
import { IRange as g } from "@sheetxl/sdk";
|
|
12
|
+
import { useCallbackRef as x, KeyCodes as h } from "@sheetxl/utils-react";
|
|
13
|
+
import { OptionsDialog as y } from "@sheetxl/utils-mui";
|
|
14
|
+
const C = ["Autofit", "Ok", "Cancel"], O = e((e2) => {
|
|
15
|
+
const { initialValue: O2, context: z, onOption: v, onValidateOption: w, onInput: P, onDone: b, options: k = C, defaultOption: T = k?.[1], cancelOption: U = "Cancel", sx: D, ...F } = e2, I = i(() => z?.().getOrientation() === g.Orientation.Column, [z]), [$, M] = o(O2), [V, j] = o(false), B = a(async (t2, n2) => true, []), L = i(() => {
|
|
16
|
+
if (!z().toUnits) return null;
|
|
17
|
+
let t2 = $?.size ?? 0, n2 = "Px";
|
|
18
|
+
return "Px" === $.unit ? (t2 = z().toUnits?.(t2), n2 = z().getUnitText()) : (t2 = z().toPixels?.(t2), n2 = "Px"), { size: t2, unit: n2 };
|
|
19
|
+
}, [$?.unit, $?.size]), N = x(async (t2) => {
|
|
20
|
+
const n2 = t2 === U;
|
|
21
|
+
n2 || P?.($, t2), v?.(t2, n2, t2 === T), b?.();
|
|
22
|
+
}, [$, P, b, v, U, T]), R = x(async (t2) => {
|
|
23
|
+
if (t2.keyCode === h.Enter) {
|
|
24
|
+
false !== await B?.($, null) && N(T);
|
|
25
|
+
}
|
|
26
|
+
}, [$, N]), S = x(async (t2) => {
|
|
27
|
+
let n2 = await Promise.resolve(w?.(t2));
|
|
28
|
+
try {
|
|
29
|
+
false !== n2 && (n2 = await Promise.resolve(B?.($, t2)) ?? true);
|
|
30
|
+
} catch (t3) {
|
|
31
|
+
}
|
|
32
|
+
return n2 ?? true;
|
|
33
|
+
}, [w]), W = x((t2) => {
|
|
34
|
+
const n2 = { ...$, size: Number(t2.target.value) };
|
|
35
|
+
M(n2), B?.(n2, null);
|
|
36
|
+
}, [$, w]), A = x((t2) => {
|
|
37
|
+
const n2 = t2.target.value, e3 = { ...$, unit: n2 };
|
|
38
|
+
M(e3);
|
|
39
|
+
}, [$]), E = i(() => {
|
|
40
|
+
const n2 = z().getUnitText(), e3 = (n3) => t(f, { value: n3, children: n3 }, n3), i2 = [];
|
|
41
|
+
return i2.push(e3("Px")), i2.push(e3(n2)), i2;
|
|
42
|
+
}, []);
|
|
43
|
+
return t(y, { title: "Resize " + (I ? "Columns" : "Rows"), options: k, onDone: b, onOption: (t2) => N(t2), onValidateOption: S, defaultOption: T, cancelOption: U, autoFocusSel: ".autoFocus", sx: { width: "380px", ...D }, ...F, children: n(r, { sx: { paddingTop: (t2) => t2.spacing(0), paddingBottom: (t2) => t2.spacing(1), display: "flex", flexDirection: "column" }, children: [n(r, { sx: { rowGap: (t2) => t2.spacing(1), display: "flex", flexDirection: "row", gap: (t2) => t2.spacing(0.5), alignItems: "end", justifyContent: "center" }, children: [t(p, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(c, { label: "Size", onFocus: (t2) => {
|
|
44
|
+
V || t2.target?.select(), j(true);
|
|
45
|
+
}, sx: { "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5) } }, slotProps: { inputLabel: { shrink: true }, htmlInput: { className: "autoFocus", spellCheck: false, autoComplete: "off", type: "number", inputMode: "numeric", pattern: "[0-9]*", sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${s("#fff", l(5))}, ${s("#fff", l(5))})` } } }, value: $.size, onChange: W, onKeyDown: R, onContextMenu: (t2) => {
|
|
46
|
+
t2.stopPropagation();
|
|
47
|
+
} }) }), n(p, { sx: { minWidth: 85 }, size: "small", children: [t(u, { children: "Unit" }), t(d, { value: $.unit, label: "Unit", onChange: A, sx: { backgroundImage: `linear-gradient(${s("#fff", l(5))}, ${s("#fff", l(5))})` }, children: E })] })] }), L && t(r, { children: n(m, { variant: "body2", component: "div", sx: { paddingLeft: (t2) => t2.spacing(2) }, children: [L.size, " ", L.unit] }) })] }) });
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
O as ResizeHeaderDialog,
|
|
51
|
+
O as default
|
|
52
|
+
};
|