@sheetxl/studio-vanilla 0.3.5 → 0.3.7
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/{CvESC6HiL0-peppq.cjs → 3Z5ZVyA4M3n9q9T5.cjs} +4 -4
- package/browser/cjs/3rqWL42XEv7Zqb32.cjs +6 -0
- package/browser/cjs/{DKit140jXAUUSf-_.cjs → B1YWrCVgU7Kmnm1T.cjs} +2 -2
- package/browser/cjs/{D7NgrO__M-IUmM8o.cjs → BCU2ws0EwyUhMfyT.cjs} +1 -1
- package/browser/cjs/{BwocMiKAPb8s__1Z.cjs → BOV2jjPfpuXBZAW7.cjs} +2 -2
- package/browser/cjs/{BNtn_2pcq6Dd-2HL.cjs → BmhVFpv9CfTQVTjI.cjs} +3 -3
- package/browser/cjs/{CuY7mAREmYhHuYWx.cjs → BsMm_Huxnau2vwTD.cjs} +2 -2
- package/browser/cjs/{6e91IXsvk9_k3W5c.cjs → C-QeKeBTOY15puEV.cjs} +2 -2
- package/browser/cjs/{BW_fZwvTtMLqteuJ.cjs → C33i51TmHf4SHKrk.cjs} +1 -1
- package/browser/cjs/{Biyqj-Wu75uxLHv1.cjs → C3VTtTsAWlGWi885.cjs} +2 -2
- package/browser/cjs/{yvA5FY7oe6FILMqB.cjs → C7hVKc9K7iuGRIL7.cjs} +1 -1
- package/browser/cjs/{DCWZ2ZkLp-Horeca.cjs → CJJnLrYPa7KMRsHb.cjs} +1 -1
- package/browser/cjs/COHiox3mogLWfFMx.cjs +301 -0
- package/browser/cjs/{BiiW2FlRZHxGIWso.cjs → CRbPjo0Nd1eBuNIW.cjs} +1 -1
- package/browser/cjs/{BLHbDre9R0bvyb9G.cjs → CcUeWbB8gJ2hYZ0t.cjs} +2 -2
- package/browser/cjs/{DIawrhwQ7E_1l99b.cjs → CeLUWiIQ6znvqNGl.cjs} +6 -6
- package/browser/cjs/{qjPE6k7aYlu-R90s.cjs → Cp0Tq3YIgLuqFBEQ.cjs} +2 -2
- package/browser/cjs/{-aNm3r-RpjcRRCbw.cjs → CqQeZ0R_l-gQXaQx.cjs} +2 -2
- package/browser/cjs/{DeAt9vyyaeB2vbxQ.cjs → DNIUbptETcIIsG7h.cjs} +2 -2
- package/browser/cjs/{CdWBtYv7LuuDLPL2.cjs → DNomiR3OWZad9wQS.cjs} +1 -1
- package/browser/cjs/DOn5sCCoip2vELe9.cjs +19 -0
- package/browser/cjs/{Bg9KIoDuqtkhIYfN.cjs → DPDH_CuXvPlEStyU.cjs} +1 -1
- package/browser/cjs/{hSI9QVPgIxqt3pXc.cjs → DQuuY3WVgI5hH9Sc.cjs} +1 -1
- package/browser/cjs/{Ya4f5p9go_UndgNy.cjs → DtXRdjx-n_RIyAdz.cjs} +2 -2
- package/browser/cjs/{DKsZXMMHWKP9IZ4E.cjs → fE77FrBh8QMuUNxk.cjs} +1 -1
- package/browser/cjs/{BN0MiwKQ8NjKXgue.cjs → g35lb9qfQ7H4ytKa.cjs} +3 -3
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{DDD5zfwNNPKuc_zZ.mjs → 1pCNUoxFKepRuyfa.mjs} +1 -1
- package/browser/esm/{CLTP12OHGQ2k4_Kt.mjs → B7vV_BImqZyJbVxt.mjs} +3 -3
- package/{cdn/assets/BzptX9H_YCM2l0DE.js → browser/esm/BJvTXvPtfJHHEwCI.mjs} +5 -5
- package/browser/esm/{BLsIMzjofsOnRFrU.mjs → BL-MGLoZVjIZRC8f.mjs} +6 -6
- package/browser/esm/BNrrWDYFBvlrgKLr.mjs +46 -0
- package/browser/esm/{ChMaIhqaEhF3SLLt.mjs → BY7jrGTT-6LIotvc.mjs} +7 -7
- package/browser/esm/{DFa_tXqv1VN1OZdv.mjs → BasVdd3zd4rzMJ3z.mjs} +17 -17
- package/browser/esm/{Btk74VwCVJ1T5LQD.mjs → BemHnQ5HC0MMwwpk.mjs} +3 -3
- package/{cdn/assets/mq5uPzTIc1x8unBP.js → browser/esm/Bvw4Wd4QZWwHwySN.mjs} +1 -1
- package/{cdn/assets/Did46-x6ZVwk_-r-.js → browser/esm/CARuwR8LCkOqbEvg.mjs} +1 -1
- package/browser/esm/{D0-tgawYa4KXYT2c.mjs → CHXrslW6QpPqYlQJ.mjs} +2 -2
- package/{cdn/assets/CvFAAktSd9TQK1h4.js → browser/esm/CNzhDDB3GbcIr1f1.mjs} +1 -1
- package/{cdn/assets/Bs-psXrTRw1jFety.js → browser/esm/CYOe-PNU1ddwNZxf.mjs} +8 -8
- package/browser/esm/{D244UwY3qPC_LNc5.mjs → Cgzk91uNsHby3_Xq.mjs} +2 -2
- package/browser/esm/{DdrICyX8Ead15N32.mjs → ClwDPpKvrRbivt_C.mjs} +1 -1
- package/{cdn/assets/DXMyzCcyP7039z13.js → browser/esm/DKgnlbWYgEPNFHp4.mjs} +799 -796
- package/browser/esm/DMgXE7S--oWb9q_g.mjs +22 -0
- package/browser/esm/{DJxioSY-hxyM7dmk.mjs → DSAItP5tyetml0Nl.mjs} +3 -3
- package/{cdn/assets/F-RqJeKWiW4i5344.js → browser/esm/Dh_t4LKcuJndwsWc.mjs} +10475 -10290
- package/browser/esm/{Q1yWEkJBu4cVEF33.mjs → Dm-FdeP6gtNunE-O.mjs} +6 -6
- package/{cdn/assets/CsVV_QnEl77BQM3V.js → browser/esm/F7X6GD2vCOnG9bfS.mjs} +1 -1
- package/{cdn/assets/C8omEbSXHWI_wNjp.js → browser/esm/FtQ1ejKmzNzLipib.mjs} +8 -8
- package/browser/esm/{CPWh2H15145LP-d5.mjs → dPSQKKcoZdfzlSna.mjs} +1 -1
- package/browser/esm/{CAm14rTtmPL5-rvQ.mjs → gPrNWR3Q7AraDNA8.mjs} +125 -125
- package/{cdn/assets/DCuLWmzd9eLWgI03.js → browser/esm/ggsYdlbjeTopGPhi.mjs} +1 -1
- package/{cdn/assets/C60KakDbde-A4anI.js → browser/esm/hZL13mv_yL17yqpF.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/cdn/assets/{DDD5zfwNNPKuc_zZ.js → 1pCNUoxFKepRuyfa.js} +1 -1
- package/cdn/assets/{NHbXgEQMftGzY01r.js → B8qc1imSfDsRgnKK.js} +3 -3
- package/{browser/esm/CntwHkPpskE88Ixu.mjs → cdn/assets/BHYIY8ekfU8GIx-v.js} +5 -5
- package/{browser/esm/mq5uPzTIc1x8unBP.mjs → cdn/assets/Bvw4Wd4QZWwHwySN.js} +1 -1
- package/cdn/assets/{DLYF-18qErpwF9Q-.js → C0q06BpM_YiTdvYY.js} +6 -6
- package/{browser/esm/Did46-x6ZVwk_-r-.mjs → cdn/assets/CARuwR8LCkOqbEvg.js} +1 -1
- package/{browser/esm/Di2tNceI3NodSsgU.mjs → cdn/assets/CFDj1TcgC6DrzkQU.js} +8 -8
- package/{browser/esm/CvFAAktSd9TQK1h4.mjs → cdn/assets/CNzhDDB3GbcIr1f1.js} +1 -1
- package/cdn/assets/Cb8SYExA8SBt8-a7.js +22 -0
- package/cdn/assets/{Cz33L9W3cdQckAL5.js → CgJM1Sr8R1PNImSR.js} +3 -3
- package/cdn/assets/{CEXK9SXjFf1dGHZe.js → ClbAQfGnO0nqDI3Z.js} +6 -6
- package/cdn/assets/{DdrICyX8Ead15N32.js → ClwDPpKvrRbivt_C.js} +1 -1
- package/cdn/assets/{DBgbBl_3O65WhfWN.js → D7SAqf3XrQ0v7mGH.js} +7 -7
- package/cdn/assets/{BOl7blN8JotSzCHJ.js → DAOPH9ojNmrcS6Lb.js} +2 -2
- package/cdn/assets/{ClFGbVy7cnhMW-dO.js → DFfcguJ0tQZoGOZc.js} +2 -2
- package/cdn/assets/{CoCIP7n4THmzOggq.js → DIXOHjZSHBv_HKpE.js} +17 -17
- package/{browser/esm/BTQ-TGJnw7w1Y0CX.mjs → cdn/assets/DiomQ_bqytYxNeaP.js} +8 -8
- package/cdn/assets/{B41q92oKD_VR31Dd.js → Dkkb9tE81Tx0AvXw.js} +3 -3
- package/{browser/esm/CsVV_QnEl77BQM3V.mjs → cdn/assets/F7X6GD2vCOnG9bfS.js} +1 -1
- package/{browser/esm/CYXzmWJtZn5OJVBF.mjs → cdn/assets/UTibqrn6UrrGPGLU.js} +9723 -9844
- package/cdn/assets/{CPWh2H15145LP-d5.js → dPSQKKcoZdfzlSna.js} +1 -1
- package/{browser/esm/DCuLWmzd9eLWgI03.mjs → cdn/assets/ggsYdlbjeTopGPhi.js} +1 -1
- package/{browser/esm/C60KakDbde-A4anI.mjs → cdn/assets/hZL13mv_yL17yqpF.js} +1 -1
- package/{browser/esm/BdLAPrmXIfjGFhhA.mjs → cdn/assets/kLAnuk6Hj3XXu7B_.js} +799 -796
- package/cdn/assets/l2XreUqHdSx2sK06.js +46 -0
- package/cdn/assets/{Dj3GhNedlKE9TeTn.js → mjbXH-pivN9OKW3k.js} +125 -125
- package/cdn/index.js +8 -8
- package/cdn/loader.js +1 -1
- package/package.json +8 -8
- package/browser/cjs/Cxt39d6l0pu9k1vT.cjs +0 -19
- package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +0 -301
- package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +0 -6
- package/browser/esm/BsDYj6xix3mlXry2.mjs +0 -46
- package/browser/esm/wziCLl5xvHu6Guu_.mjs +0 -22
- package/cdn/assets/C_E1C68wCcRpC6XN.js +0 -46
- package/cdn/assets/lM5it-aJgI7DLNH9.js +0 -22
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as M, useState as x, useCallback as j } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as r, b as S, B as V, F as $, a as z, c as h, ay as C } from "./Dh_t4LKcuJndwsWc.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|
|
9
9
|
*/
|
|
10
10
|
const G = ["Ok", "Cancel"], U = E((O) => {
|
|
11
|
-
const { initialComments:
|
|
12
|
-
const n =
|
|
11
|
+
const { initialComments: w = null, onUpdateComments: m, context: y, onOption: u, onValidateOption: l, onDone: p, options: d = G, defaultOption: c = d?.[0], cancelOption: s = "Cancel", sx: F, ...b } = O, g = M(() => {
|
|
12
|
+
const n = w ?? y?.()?.getComments();
|
|
13
13
|
let t = "";
|
|
14
14
|
if (n && n.content && n.content.runs) {
|
|
15
15
|
const a = n.content.runs;
|
|
@@ -19,7 +19,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
|
-
}, []), [e,
|
|
22
|
+
}, []), [e, k] = x(g), [P, T] = x(!1), f = j(async (n, t) => null, []), v = r(async (n) => {
|
|
23
23
|
const t = e === "" ? [] : e.split(`
|
|
24
24
|
`);
|
|
25
25
|
if (n !== s) {
|
|
@@ -29,7 +29,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
29
29
|
}
|
|
30
30
|
u?.(n, n === s, n === c), p?.();
|
|
31
31
|
}, [e, m, p, u, c, s]), D = r((n) => {
|
|
32
|
-
|
|
32
|
+
k(n.target.value), f(n.target.value, null);
|
|
33
33
|
}, [l]), I = r(async (n) => {
|
|
34
34
|
let t = await Promise.resolve(l?.(n));
|
|
35
35
|
try {
|
|
@@ -38,7 +38,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
38
38
|
}
|
|
39
39
|
return t ?? !0;
|
|
40
40
|
}, [l, e]);
|
|
41
|
-
return i(S, { title: (g ? "Edit" : "Insert") + " Comments", options: d, onDone: p, onOption: (n) => v(n), onValidateOption: I, defaultOption: c, cancelOption: s, autoFocusSel: ".autoFocus", sx: { width: "480px", ...
|
|
41
|
+
return i(S, { title: (g ? "Edit" : "Insert") + " Comments", options: d, onDone: p, onOption: (n) => v(n), onValidateOption: I, defaultOption: c, cancelOption: s, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...b, children: i(V, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: i($, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(z, { label: "Comments", placeholder: "Enter a comment.", onFocus: (n) => {
|
|
42
42
|
P || n.target?.select(), T(!0);
|
|
43
43
|
}, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${h("#fff", C(5))}, ${h("#fff", C(5))})` } } }, value: e, onChange: D, onContextMenu: (n) => {
|
|
44
44
|
n.stopPropagation();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
|
|
3
3
|
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
5
|
-
import { C as ee } from "./
|
|
4
|
+
import { t as D, w as H, av as ue, W as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, a as _, c as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./Dh_t4LKcuJndwsWc.mjs";
|
|
5
|
+
import { C as ee } from "./gPrNWR3Q7AraDNA8.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|
|
@@ -27,23 +27,23 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
27
27
|
if (h[d] === E) return d;
|
|
28
28
|
}
|
|
29
29
|
}, ze = oe((E) => {
|
|
30
|
-
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null),
|
|
30
|
+
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), W = C(null), $ = C(null), j = C(null), N = C(null), G = (e, t) => {
|
|
31
31
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
32
|
-
}, [J, I] = b(!1), [
|
|
32
|
+
}, [J, I] = b(!1), [B, le] = b(!1), [f, M] = b(h), [U, V] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
|
|
33
33
|
if (!T) return;
|
|
34
34
|
const g = { ...o };
|
|
35
35
|
g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
|
|
36
36
|
const ce = await T({ autoFocus: S, ...g });
|
|
37
|
-
|
|
37
|
+
V(ce === 0);
|
|
38
38
|
}, [o, T]);
|
|
39
39
|
L(() => {
|
|
40
|
-
|
|
41
|
-
}, [o,
|
|
40
|
+
V(!1);
|
|
41
|
+
}, [o, B, f]);
|
|
42
42
|
const Q = H((e, t) => {
|
|
43
43
|
if (e.keyCode === ue.Enter) {
|
|
44
44
|
if (!o.findText) return;
|
|
45
45
|
let n = !0, S = !1;
|
|
46
|
-
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ?
|
|
46
|
+
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), G(e, S ? N.current : j.current)) : G(e, n ? $.current : W.current), F(n, t, S, !1);
|
|
47
47
|
}
|
|
48
48
|
}, [o]), Y = C(null);
|
|
49
49
|
pe(() => {
|
|
@@ -51,7 +51,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
51
51
|
const t = { ...e };
|
|
52
52
|
t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
|
|
53
53
|
const n = !(!v && a === void 0);
|
|
54
|
-
return n &&
|
|
54
|
+
return n && M(n), t;
|
|
55
55
|
}), X || Y.current?.focus();
|
|
56
56
|
}, [r, a, d, v]), L(() => {
|
|
57
57
|
f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
|
|
@@ -62,9 +62,9 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
62
62
|
}, [J, o]);
|
|
63
63
|
const [re, { width: Z }] = fe();
|
|
64
64
|
return i(ge, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: Y, onHide: K, onFocus: () => q(!0), onBlur: () => {
|
|
65
|
-
q(!1),
|
|
65
|
+
q(!1), V(!1);
|
|
66
66
|
}, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
67
|
-
if (e.key === "h" && e.ctrlKey)
|
|
67
|
+
if (e.key === "h" && e.ctrlKey) M(!0), s.current?.contains(document.activeElement) && u.current?.focus();
|
|
68
68
|
else if (e.key === "f" && e.ctrlKey) s.current?.focus();
|
|
69
69
|
else if (e.key === "c" && e.altKey) l((t) => {
|
|
70
70
|
const n = { ...t };
|
|
@@ -82,10 +82,10 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
e.preventDefault();
|
|
85
|
-
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected:
|
|
85
|
+
}, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: B, onSelectToggle: (e) => {
|
|
86
86
|
le(e);
|
|
87
87
|
}, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(xe, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
|
|
88
|
-
|
|
88
|
+
M(e);
|
|
89
89
|
}, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(Oe, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
|
|
90
90
|
l((t) => {
|
|
91
91
|
const n = { ...t };
|
|
@@ -110,9 +110,9 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
110
110
|
e.stopPropagation();
|
|
111
111
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
112
112
|
F(!1, !1);
|
|
113
|
-
}, touchRippleRef:
|
|
113
|
+
}, touchRippleRef: W, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Se, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
|
|
114
114
|
F(!0, !1);
|
|
115
|
-
}, touchRippleRef:
|
|
115
|
+
}, touchRippleRef: $, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
|
|
116
116
|
s.current?.focus();
|
|
117
117
|
}, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
|
|
118
118
|
l((t) => {
|
|
@@ -125,7 +125,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
125
125
|
F(!0, !0);
|
|
126
126
|
}, touchRippleRef: j, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(ve, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
|
|
127
127
|
F(!0, !0, !0);
|
|
128
|
-
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in:
|
|
128
|
+
}, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: B, timeout: ne, onExit: () => {
|
|
129
129
|
s.current?.focus();
|
|
130
130
|
}, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
|
|
131
131
|
l((t) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Workbook as y, IRange as C } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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("./F7X6GD2vCOnG9bfS.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");
|
|
@@ -27,7 +27,7 @@ const k = async (a, p) => {
|
|
|
27
27
|
const o = { ...m }, g = f.unparse(d, o);
|
|
28
28
|
return new TextEncoder().encode(g);
|
|
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("./F7X6GD2vCOnG9bfS.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 _, useRef as m, useCallback as re, useEffect as S } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|
|
@@ -13,7 +13,7 @@ const i = { reactUrl: "https://esm.sh/react@19.1.0", reactJsxTransform: "https:/
|
|
|
13
13
|
e.type = "importmap", e.textContent = JSON.stringify({ imports: { react: n, "react/jsx-runtime": a, "react-dom": s, "react-dom/client": c } }), document.head.appendChild(e), console.log("SheetXL: Import map injected:", e.textContent);
|
|
14
14
|
}
|
|
15
15
|
await new Promise((e) => setTimeout(e, 0));
|
|
16
|
-
const o = await Promise.all([import("react"), import("react/jsx-runtime"), import("react-dom"), import("react-dom/client"), import("./
|
|
16
|
+
const o = await Promise.all([import("react"), import("react/jsx-runtime"), import("react-dom"), import("react-dom/client"), import("./Dh_t4LKcuJndwsWc.mjs").then((e) => e.b7)]);
|
|
17
17
|
return console.log("SheetXL: Dependencies resolved:", o), { React: o[0], ReactJSXTransform: o[1], ReactDOM: o[2], ReactDOMClient: o[3], StudioMUI: o[4] };
|
|
18
18
|
})(), r));
|
|
19
19
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { memo as O, useState as r, useRef as M, useReducer as
|
|
3
|
-
import { aL as
|
|
2
|
+
import { memo as O, useState as r, useRef as M, useReducer as W, useMemo as A } from "react";
|
|
3
|
+
import { aL as E, W as k, aM as Q, aN as V, w as x, aA as q, aB as G, B as n, aO as J, aP as K, ak as f, aQ as U, aR as X, ag as y, ah as w, ai as b, aS as S } from "./Dh_t4LKcuJndwsWc.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|
|
9
9
|
*/
|
|
10
10
|
const te = O((C) => {
|
|
11
|
-
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l =
|
|
12
|
-
|
|
13
|
-
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j =
|
|
14
|
-
|
|
11
|
+
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l = E, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = M(null), [Y, B] = W((e) => e + 1, 0), [H, { width: Z }] = k();
|
|
12
|
+
Q(c);
|
|
13
|
+
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j = A(() => t?.getName() ?? "", [t]);
|
|
14
|
+
V(o.table(), { onAnchorCoordsChange(e) {
|
|
15
15
|
I(o.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
B();
|
|
@@ -50,7 +50,7 @@ const te = O((C) => {
|
|
|
50
50
|
} catch (i) {
|
|
51
51
|
l.showError(i);
|
|
52
52
|
}
|
|
53
|
-
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(f, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant:
|
|
53
|
+
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(f, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant: b.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: w(a(S, {})) }), a(y, { variant: b.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: w(a(S, {})) })] })] })] }), u] }) });
|
|
54
54
|
});
|
|
55
55
|
export {
|
|
56
56
|
te as TableDetailsWindow,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as z, jsxs as lt } from "react/jsx-runtime";
|
|
2
2
|
import k, { memo as es, useState as pe, useCallback as de, useLayoutEffect as rs, PureComponent as mt, Component as _t, isValidElement as ns } from "react";
|
|
3
|
-
import { D as os, E as as,
|
|
3
|
+
import { D as os, E as as, O as is, B as us, z as Su, d as ss, S as xt } from "./Dh_t4LKcuJndwsWc.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { Workbook as k } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.7
|
|
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.
|