@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,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.
|
|
@@ -11,11 +11,11 @@ import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles/index.js"
|
|
|
11
11
|
import { DialogContent as d, Box as u, TextField as f, InputAdornment as m, Collapse as g, MenuItem as x, FormControl as h, InputLabel as O, Select as C } from "@mui/material";
|
|
12
12
|
import { ArrowBack as y, ArrowUpward as b, ArrowForward as T, ArrowDownward as v } from "@mui/icons-material";
|
|
13
13
|
import { ICell as k, IRange as R } from "@sheetxl/sdk";
|
|
14
|
-
import { P as E,
|
|
14
|
+
import { P as E, z as S, A as I, B as w, a as F, D, c as P, G as K, H as A, I as $, J as B, O as M, Q as j, d as L } from "./index.mjs";
|
|
15
15
|
const V = t((t2) => {
|
|
16
|
-
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() =>
|
|
16
|
+
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() => J(r2, a2));
|
|
17
17
|
l(() => {
|
|
18
|
-
g2(
|
|
18
|
+
g2(J(r2, a2));
|
|
19
19
|
}, [r2, a2]);
|
|
20
20
|
const y2 = E((e2) => {
|
|
21
21
|
g2(e2.target.value), d2?.(a2[e2.target.value]);
|
|
@@ -23,23 +23,23 @@ const V = t((t2) => {
|
|
|
23
23
|
return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(C, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: y2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
|
|
24
24
|
}), W = { Workbook: "workbook", Sheet: "sheet" }, H = { enter: 140, exit: 140 }, N = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, z = { ...N };
|
|
25
25
|
delete z.Values;
|
|
26
|
-
const G = { "By Rows": true, "By Columns": false },
|
|
26
|
+
const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
|
|
27
27
|
const t2 = Object.keys(n2);
|
|
28
28
|
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
29
29
|
const o2 = t2[i2];
|
|
30
30
|
if (n2[o2] === e2) return o2;
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title:
|
|
32
|
+
}, Q = t((t2) => {
|
|
33
|
+
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: J2, onHide: Q2, onFindOrReplace: U, ...X } = t2, q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), ne = i(null), te = (e2, n2) => {
|
|
34
34
|
if (!n2) return;
|
|
35
35
|
n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
|
|
36
36
|
}, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: W.Sheet }), ge = E(async (e2, n2, t3, i2) => {
|
|
37
|
-
if (!
|
|
37
|
+
if (!U) return;
|
|
38
38
|
const o2 = { ...fe };
|
|
39
39
|
o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = t3 ? void 0 : 1, o2.replace = n2, n2 && fe.findOptions.fields?.[0] === k.Content.Values && (o2.findOptions.fields = [k.Content.Formulas]), o2.findOptions.reverse = !e2;
|
|
40
|
-
const l2 = await
|
|
40
|
+
const l2 = await U({ autoFocus: i2, ...o2 });
|
|
41
41
|
pe(0 === l2);
|
|
42
|
-
}, [fe,
|
|
42
|
+
}, [fe, U]);
|
|
43
43
|
l(() => {
|
|
44
44
|
pe(false);
|
|
45
45
|
}, [fe, le, se]);
|
|
@@ -60,16 +60,16 @@ const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
|
60
60
|
}, [x2, h2, O2, C2]), l(() => {
|
|
61
61
|
se ? (fe.findOptions.fields[0], k.Content.Values) : oe(true);
|
|
62
62
|
}, [se]), l(() => {
|
|
63
|
-
if (ie &&
|
|
64
|
-
|
|
63
|
+
if (ie && q.current && fe.findText === q.current.value) return q.current === document.activeElement || q.current.contains(document.activeElement) ? (q.current?.select(), void oe(false)) : void q.current.addEventListener("focus", () => {
|
|
64
|
+
q.current?.select(), oe(false);
|
|
65
65
|
}, { once: true });
|
|
66
66
|
}, [ie, fe]);
|
|
67
67
|
const [Oe, { width: Ce }] = a();
|
|
68
|
-
return e(I, { title:
|
|
68
|
+
return e(I, { title: J2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: he, onHide: Q2, onFocus: () => ue(true), onBlur: () => {
|
|
69
69
|
ue(false), pe(false);
|
|
70
|
-
}, PaperProps: { elevation: de ? 3 : 1 }, ...
|
|
71
|
-
if ("h" === e2.key && e2.ctrlKey) ae(true),
|
|
72
|
-
else if ("f" === e2.key && e2.ctrlKey)
|
|
70
|
+
}, PaperProps: { elevation: de ? 3 : 1 }, ...X, children: n(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
|
|
71
|
+
if ("h" === e2.key && e2.ctrlKey) ae(true), q.current?.contains(document.activeElement) && Y.current?.focus();
|
|
72
|
+
else if ("f" === e2.key && e2.ctrlKey) q.current?.focus();
|
|
73
73
|
else if ("c" === e2.key && e2.altKey) me((e3) => {
|
|
74
74
|
const n2 = { ...e3 };
|
|
75
75
|
return n2.findOptions.matchCase = !e3.findOptions.matchCase, n2;
|
|
@@ -90,22 +90,22 @@ const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
|
90
90
|
re(e2);
|
|
91
91
|
}, preventFocus: true, label: "Toggle Additional Options", icon: F(e(D, {})) }), e(w, { selected: se, onSelectToggle: (e2) => {
|
|
92
92
|
ae(e2);
|
|
93
|
-
}, preventFocus: true, label: "Toggle Replace", icon: F(e(
|
|
93
|
+
}, preventFocus: true, label: "Toggle Replace", icon: F(e(K, {})), shortcut: { key: se ? "F" : "H", modifiers: [P.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(w, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
|
|
94
94
|
me((n2) => {
|
|
95
95
|
const t3 = { ...n2 };
|
|
96
96
|
return t3.findOptions.matchCase = e2, t3;
|
|
97
97
|
});
|
|
98
|
-
}, label: "Match Case", shortcut: { key: "C", modifiers: [
|
|
98
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [P.Alt] }, icon: F(e(A, {})) }), e(w, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
|
|
99
99
|
me((n2) => {
|
|
100
100
|
const t3 = { ...n2 };
|
|
101
101
|
return t3.findOptions.matchEntireCell = e2, t3;
|
|
102
102
|
});
|
|
103
|
-
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [
|
|
103
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [P.Alt] }, icon: F(e($, {})) }), e(w, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
|
|
104
104
|
me((n2) => {
|
|
105
105
|
const t3 = { ...n2 };
|
|
106
106
|
return t3.findOptions.useRegex = e2, t3;
|
|
107
107
|
});
|
|
108
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [
|
|
108
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [P.Alt] }, icon: F(e(B, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
|
|
109
109
|
me((n2) => {
|
|
110
110
|
const t3 = { ...n2 };
|
|
111
111
|
return t3.findText = e2.target.value, t3;
|
|
@@ -114,10 +114,10 @@ const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
|
114
114
|
e2.stopPropagation();
|
|
115
115
|
} }), e(w, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
116
116
|
ge(false, false);
|
|
117
|
-
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [
|
|
117
|
+
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [P.Shift] }, icon: F(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(w, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
118
118
|
ge(true, false);
|
|
119
119
|
}, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: F(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: H, onExit: () => {
|
|
120
|
-
|
|
120
|
+
q.current?.focus();
|
|
121
121
|
}, children: n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: Y, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: fe.replaceText ?? "", onChange: (e2) => {
|
|
122
122
|
me((n2) => {
|
|
123
123
|
const t3 = { ...n2 };
|
|
@@ -129,9 +129,9 @@ const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
|
129
129
|
ge(true, true);
|
|
130
130
|
}, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: F(e(M, {})), disabled: !fe.findText }), e(w, { onSelectToggle: (e2) => {
|
|
131
131
|
ge(true, true, true);
|
|
132
|
-
}, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [
|
|
133
|
-
|
|
134
|
-
}, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(
|
|
132
|
+
}, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [P.Ctrl, P.Alt] }, icon: F(e(j, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: H, onExit: () => {
|
|
133
|
+
q.current?.focus();
|
|
134
|
+
}, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(L, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(V, { label: "Within", value: fe.scope, options: W, onSelect: (e2) => {
|
|
135
135
|
me((n2) => {
|
|
136
136
|
const t3 = { ...n2 };
|
|
137
137
|
return t3.scope = e2, t3;
|
|
@@ -149,7 +149,7 @@ const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
|
149
149
|
} })] })] }) })] }) });
|
|
150
150
|
});
|
|
151
151
|
export {
|
|
152
|
-
|
|
152
|
+
Q as FindReplaceWindow,
|
|
153
153
|
W as ScopeOptions,
|
|
154
|
-
|
|
154
|
+
Q as default
|
|
155
155
|
};
|
|
@@ -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.
|
|
@@ -9,9 +9,9 @@ import { memo as o, useState as a, useCallback as n, useEffect as i, useMemo as
|
|
|
9
9
|
import { alpha as l, getOverlayAlpha as s } from "@mui/material/styles/index.js";
|
|
10
10
|
import { Box as p, FormControl as c, InputLabel as d, Select as u, TextField as m, Typography as g, MenuItem as f } from "@mui/material";
|
|
11
11
|
import { NumberFormat as y } from "@sheetxl/sdk";
|
|
12
|
-
import { P as x,
|
|
12
|
+
import { P as x, z as h, x as C } from "./index.mjs";
|
|
13
13
|
const v = ["Ok", "Cancel"], b = o((o2) => {
|
|
14
|
-
const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options: P = v, defaultOption: S = P?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [j, V] = a(b2), [
|
|
14
|
+
const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options: P = v, defaultOption: S = P?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [j, V] = a(b2), [z, N] = a(false), B = n(async (e2, t2) => true, []), L = x(async (e2) => {
|
|
15
15
|
w?.(j, e2), k?.(e2, e2 === $, e2 === S), F?.();
|
|
16
16
|
}, [j, w, F, k, $, S]), M = x(async (e2) => {
|
|
17
17
|
if (e2.keyCode === h.Enter) {
|
|
@@ -43,7 +43,7 @@ const v = ["Ok", "Cancel"], b = o((o2) => {
|
|
|
43
43
|
return e2.createTemporaryCell({ value: e2.getValue() ?? 12345, style: { numberFormat: j } });
|
|
44
44
|
}, [E, j, T]);
|
|
45
45
|
return e(C, { title: "Number Format", options: P, onDone: F, onOption: (e2) => L(e2), onValidateOption: W, defaultOption: S, cancelOption: $, autoFocusSel: ".autoFocus", sx: { width: "580px", ...D }, ...I, children: t(p, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(c, { sx: { minWidth: 135 }, size: "small", children: [e(d, { children: "Category" }), e(u, { value: E, label: "Category", onChange: K, sx: { backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` }, children: H })] }), e(c, { sx: { paddingTop: (e2) => e2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: e(m, { label: "Code", onFocus: (e2) => {
|
|
46
|
-
|
|
46
|
+
z || e2.target?.select(), N(true);
|
|
47
47
|
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e2) => e2.spacing(0.5) } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: j, onChange: R, onKeyDown: M, onContextMenu: (e2) => {
|
|
48
48
|
e2.stopPropagation();
|
|
49
49
|
} }) }), t(p, { children: [e(g, { variant: "caption", component: "div", sx: { paddingLeft: (e2) => e2.spacing(2) }, children: "Preview" }), e(g, { variant: "body2", component: "div", sx: { borderRadius: (e2) => `${e2.shape.borderRadius}px`, padding: (e2) => e2.spacing(1), border: (e2) => `1px solid ${e2.palette.grey[400]}` }, children: q.getNumberFormat().displayText || "(empty)" })] })] }) });
|
|
@@ -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.
|
|
@@ -11,7 +11,7 @@ import { Box as h } from "@mui/material";
|
|
|
11
11
|
import p from "tinycolor2";
|
|
12
12
|
import { Alpha as d, Hue as c } from "react-color/es/components/common/index.js";
|
|
13
13
|
import g from "react-color/es/components/sketch/SketchFields.js";
|
|
14
|
-
import {
|
|
14
|
+
import { q as u, C as b } from "./index.mjs";
|
|
15
15
|
class m extends (n || i) {
|
|
16
16
|
constructor(e2) {
|
|
17
17
|
super(e2), this.handleChange = (e3) => {
|
|
@@ -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,11 +1,11 @@
|
|
|
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.
|
|
6
6
|
*/
|
|
7
7
|
import { e as t } from "./index.mjs";
|
|
8
|
-
import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./
|
|
8
|
+
import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./DCr306y2KVQnDJ7Q.mjs";
|
|
9
9
|
import { IFont as a, IAutoFilter as c, Sort as u, IRange as h, AddressUtils as p, IFill as g, IStyle as d, ITextFrame as m, FormulaError as b, IBorder as f } from "@sheetxl/sdk";
|
|
10
10
|
class A {
|
|
11
11
|
constructor(t2) {
|