@sheetxl/studio-vanilla 0.4.6 → 0.4.8
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/README.md +3 -3
- package/browser/cjs/{CO2670BoVR60TAIO.cjs → 3nTDo2EiTknjadbt.cjs} +1 -1
- package/browser/cjs/6Wu3sLyx-7NM6CXS.cjs +301 -0
- package/browser/cjs/B11W4AIKbkJQG6ug.cjs +6 -0
- package/browser/cjs/{BDVO5vEdK7Wah9u6.cjs → BCnlTOmUDmizyvVV.cjs} +2 -2
- package/browser/cjs/{hlMzhbyi3yXzEax6.cjs → BIPxYhhi1F-y0gSm.cjs} +3 -3
- package/browser/cjs/{DJ3lRRtgGNfZ_GK7.cjs → BYhOQCFEzewgsKDn.cjs} +2 -2
- package/browser/cjs/{rf4-78JGGhtQMtw3.cjs → BqLDj2GlSzX8ZN3l.cjs} +1 -1
- package/browser/cjs/{ClnAKZeWBp1OEjmi.cjs → C2B3wbeahcHlbOBZ.cjs} +2 -2
- package/browser/cjs/C6nZKAevPqj8zJY-.cjs +6 -0
- package/browser/cjs/{BC1EuCQ2stuFE3uE.cjs → CD_HItzF2RneMAER.cjs} +2 -2
- package/browser/cjs/{Cg56Q7yFUDqoNyPz.cjs → CE5NVYltiso41NzK.cjs} +1 -1
- package/browser/cjs/{BEJCfS2GnnCHB_Mm.cjs → CHSE1pa8SMApg4BM.cjs} +2 -2
- package/browser/cjs/{D_BIUeiHuQDwD6QN.cjs → CTXKzcsm-W1ujL_U.cjs} +6 -6
- package/browser/cjs/{mzGAr1pI91e1sd2y.cjs → CcQjGGiCx6Qz7yJ4.cjs} +1 -1
- package/browser/cjs/{Ckn4M7Qh3E3gxz2w.cjs → Cqymi9AOXO_JYvY4.cjs} +2 -2
- package/browser/cjs/{CcvjqZjjmoPDS0vK.cjs → D6pPBbRPLTNFSXuO.cjs} +1 -1
- package/browser/cjs/DMUSzq5n2k0WNFw6.cjs +12 -0
- package/browser/cjs/DWTMnPR33rKK87Xt.cjs +12 -0
- package/browser/cjs/{VWWxZ8TRgMDlwBgU.cjs → Dds58NEqJ0OalWH3.cjs} +4 -4
- package/browser/cjs/{D52XNI-phrNzLrWS.cjs → Dy4SB47It0LGbh2I.cjs} +1 -1
- package/browser/cjs/{DAoqhWARDCCMxYfu.cjs → VJLb1uMfbKAUW1QF.cjs} +8 -8
- package/browser/cjs/{CRbLTUE75pKqxTAE.cjs → bHWvGntvmuk8t7sX.cjs} +2 -2
- package/browser/cjs/{CyL3JLfSqByl6NJK.cjs → euAV1pPrNOIb6DV4.cjs} +2 -2
- package/browser/cjs/{B0L2HuliuW9aTvJM.cjs → i0D2haODisHW8uGg.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Ch1N2RfTkexbaLQZ.cjs → oNi7wirDlZ81Lm0Z.cjs} +1 -1
- package/browser/cjs/z1aNSOtWsEE21p2H.cjs +6 -0
- package/browser/esm/{DpJ6rBC_S3qKpTTz.mjs → 2RGq163l1wYJKGsa.mjs} +10887 -10878
- package/{cdn/assets/D7VphVLqKl6argvu.js → browser/esm/4C7Rg83L5RYFoOvl.mjs} +5 -5
- package/browser/esm/{BEb33qzyvFCELL-3.mjs → 6KgR81NK4yzANTBT.mjs} +8 -8
- package/{cdn/assets/BWgkRW6hv3jQZREe.js → browser/esm/B1CYiJmSpyx4TD5r.mjs} +20 -20
- package/{cdn/assets/Mf5PGnpvo2ab2ron.js → browser/esm/B7qUiL1xPnzfOHZw.mjs} +1 -1
- package/{cdn/assets/AWcFdkqHbjuM31T8.js → browser/esm/BEFQcBJ71bA297Zu.mjs} +1 -1
- package/browser/esm/{BcNJxq2cuxPkAW4q.mjs → BEIn7yNWsHNJisB6.mjs} +3 -3
- package/browser/esm/{DfNICWSvz9QDZQhb.mjs → BM74iVi-iQkHbrfo.mjs} +2 -2
- package/browser/esm/{Cj2uX_OMjmaU3fNR.mjs → BP8kNG31HYSkk1VW.mjs} +12 -12
- package/browser/esm/{DmlVS3gIBTC4kUV7.mjs → CA_DRvBOFOlhezCt.mjs} +8 -8
- package/browser/esm/{D0GrOZjFUR2HlnMz.mjs → CDkmbShJijwq4EBo.mjs} +6 -6
- package/browser/esm/{DzTywDe5V3E28PWl.mjs → CPi83FXApMlTaVbs.mjs} +1 -1
- package/browser/esm/{CyTYBSnJvDp00EQS.mjs → C_hRuPoaT857EnC1.mjs} +5 -5
- package/browser/esm/{nPC0QB7Y32vNdKJ6.mjs → CjVsKZEPAncg5mIk.mjs} +1 -1
- package/browser/esm/{Ka_EOSR_2pEe_9bW.mjs → Ckz080o58XOgRhqj.mjs} +2 -2
- package/browser/esm/{BefI9PT_BgRNGb7_.mjs → ClXspoNrNV-A8BaL.mjs} +2 -2
- package/browser/esm/{bnNlX3wyLfzCzkPl.mjs → DQ0Li3WfKbZxSFuB.mjs} +2 -2
- package/browser/esm/{yULhUqAUufR5kUwn.mjs → DXyJaUwHLq39-Jfa.mjs} +5 -5
- package/{cdn/assets/C_kr_6FpZ17pfLXi.js → browser/esm/D_FC0zteMRPriWTD.mjs} +1 -1
- package/browser/esm/{B10LhnZcMt1ayTsN.mjs → DnWiOUNTPvi_llPT.mjs} +1 -1
- package/browser/esm/{DB6PulwZ7VZjKPA8.mjs → DyUvHYGMNA9W2zL6.mjs} +1 -1
- package/browser/esm/{anzhTAYYl_AYExOH.mjs → EUFvcP5R4HFDLn2V.mjs} +5 -5
- package/browser/esm/cSe92c0HnvbRwiVM.mjs +944 -0
- package/{cdn/assets/DtxnQukkOL0CjEuQ.js → browser/esm/eXQ_1uhRMyN-hfDZ.mjs} +1 -1
- package/browser/esm/{Cy4td5Lr__p7Rygx.mjs → h4NbNvV8KCL9Tl1v.mjs} +16 -16
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/xlL3Ai-ka9qMVeua.mjs +84 -0
- package/cdn/assets/{mJrwxSI9ER8tcfM5.js → B2hDWpWSEoChxhVY.js} +11896 -11887
- package/{browser/esm/Mf5PGnpvo2ab2ron.mjs → cdn/assets/B7qUiL1xPnzfOHZw.js} +1 -1
- package/{browser/esm/AWcFdkqHbjuM31T8.mjs → cdn/assets/BEFQcBJ71bA297Zu.js} +1 -1
- package/cdn/assets/{jzOOsUtK1t6fHp7l.js → BXBP2rNGQxrgUPvU.js} +5 -5
- package/cdn/assets/{yNhs_10ijt0MpP-T.js → BgChN-ZVYUOMDX9_.js} +12 -12
- package/cdn/assets/{DYHqPNPZiXqt-4Ux.js → Bvy1txLm7c3LbPL7.js} +6 -6
- package/cdn/assets/{zdC5k0nNqnRyMFF0.js → C1x5-f1q8NeSwRA2.js} +16 -16
- package/{browser/esm/Bhv6QhNtkfdin_7u.mjs → cdn/assets/C5NMOq74C3Sme49x.js} +20 -20
- package/cdn/assets/{D6ibgkGY0zdJZVdP.js → CLA1BGtRbWm0K0U0.js} +2 -2
- package/cdn/assets/{DzTywDe5V3E28PWl.js → CPi83FXApMlTaVbs.js} +1 -1
- package/cdn/assets/{nPC0QB7Y32vNdKJ6.js → CjVsKZEPAncg5mIk.js} +1 -1
- package/cdn/assets/{Bg1gxl7R7pEDQJ_e.js → CpVan9KpuEGXgwIK.js} +2 -2
- package/cdn/assets/{BH2PfED5elf6o2V9.js → CtDntnnwJW1rZ3sM.js} +5 -5
- package/cdn/assets/{A8kiDhrng-S3d7bC.js → CuG5WoZ4OOj9RCsv.js} +3 -3
- package/{browser/esm/ar5lDYhxFfJDlI4q.mjs → cdn/assets/DTvvMKZZfsVRhbow.js} +5 -5
- package/{browser/esm/C_kr_6FpZ17pfLXi.mjs → cdn/assets/D_FC0zteMRPriWTD.js} +1 -1
- package/cdn/assets/{BSywdRZwPRE8kvep.js → Dbd0AFDlzQDW0tOg.js} +5 -5
- package/cdn/assets/{B10LhnZcMt1ayTsN.js → DnWiOUNTPvi_llPT.js} +1 -1
- package/cdn/assets/{DOZC168cRHRH_MNy.js → DppHXtCDGzttFdS4.js} +2 -2
- package/cdn/assets/{BiXCdxCfyppsYKdi.js → DuU1-7vd87A1wfGJ.js} +2 -2
- package/cdn/assets/{DB6PulwZ7VZjKPA8.js → DyUvHYGMNA9W2zL6.js} +1 -1
- package/cdn/assets/{CGRxpUrPJQySyydG.js → O1XID2whLDb1cTWS.js} +8 -8
- package/{browser/esm/DtxnQukkOL0CjEuQ.mjs → cdn/assets/eXQ_1uhRMyN-hfDZ.js} +1 -1
- package/cdn/assets/{DgLqE4amKIfxfXZt.js → g4FhlroGKmJM7Utd.js} +8 -8
- package/cdn/assets/tJI1G_FjDgqWo3rJ.js +944 -0
- package/cdn/assets/xlL3Ai-ka9qMVeua.js +84 -0
- package/cdn/index.js +24 -24
- package/cdn/loader.js +2 -2
- package/package.json +3 -3
- package/types/index.d.ts +8 -8
- package/browser/cjs/C0AMVPCvA-TujT5K.cjs +0 -12
- package/browser/cjs/Cf2_qMNBs2gVwbh1.cjs +0 -12
- package/browser/cjs/CiQE7e1h2nORtvH-.cjs +0 -6
- package/browser/cjs/CndX6WxBX5l14erU.cjs +0 -301
- package/browser/cjs/D4J2MWfhcQh5QfIS.cjs +0 -6
- package/browser/cjs/D8mduMF3arHBud5b.cjs +0 -6
- package/browser/esm/C3Oq5rZbPE2to2eI.mjs +0 -940
- package/browser/esm/pQgC_MfgVvqv6lyK.mjs +0 -84
- package/cdn/assets/YtJ5y2-cVhR5MGYz.js +0 -940
- package/cdn/assets/pQgC_MfgVvqv6lyK.js +0 -84
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { memo as O, useState as r, useRef as M, useReducer as A, useMemo as E } from "react";
|
|
3
|
-
import { aL as
|
|
3
|
+
import { aL as Q, Q as W, aM as k, 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 b, ai as w, aS as S } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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:
|
|
11
|
+
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l = Q, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = M(null), [Y, B] = A((e) => e + 1, 0), [H, { width: Z }] = W();
|
|
12
12
|
k(c);
|
|
13
13
|
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j = E(() => t?.getName() ?? "", [t]);
|
|
14
|
-
|
|
14
|
+
V(o.table(), { onAnchorCoordsChange(e) {
|
|
15
15
|
I(o.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
B();
|
|
@@ -22,7 +22,7 @@ const te = O((C) => {
|
|
|
22
22
|
o?.table().resize(e.at(0));
|
|
23
23
|
}, [o]);
|
|
24
24
|
let u = null;
|
|
25
|
-
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(q, { title:
|
|
25
|
+
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(q, { ref: h, title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: v, onHide: R, onFocus: () => g(!0), onBlur: (e) => {
|
|
26
26
|
h?.current?.contains(e.relatedTarget) || g(!1);
|
|
27
27
|
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(G, { dividers: !0, ref: H, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(J, { formName: "name", defaultInput: j, value: t?.getName() ?? "No table", onChangeInput: L, onValidate: (e) => {
|
|
28
28
|
t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, useState as i, useCallback as T } from "react";
|
|
3
|
+
import { w as k, b as j, B as v, aP as y, at as B, au as F } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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
|
-
const H = ["Ok", "Cancel"], A =
|
|
11
|
-
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C =
|
|
10
|
+
const H = ["Ok", "Cancel"], A = N((u) => {
|
|
11
|
+
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = k((a) => {
|
|
12
12
|
const g = { ...e, hasHeader: n, ranges: l };
|
|
13
13
|
c?.(a, a === s, a === t), r?.({ option: a, tableOptions: g });
|
|
14
|
-
}, [r, c, t, s, n, l, e]),
|
|
15
|
-
return o(
|
|
14
|
+
}, [r, c, t, s, n, l, e]), w = T(async (a, g) => null, []);
|
|
15
|
+
return o(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: w, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...b, children: D(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
|
|
16
16
|
h || a.target?.select(), x(!0);
|
|
17
17
|
} }), o(B, { control: o(F, { checked: n, onChange: () => O(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
18
18
|
});
|
|
@@ -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 { v as D, w as H, av as ue, Q 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, T as _, a 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 "./2RGq163l1wYJKGsa.mjs";
|
|
5
|
+
import { C as ee } from "./cSe92c0HnvbRwiVM.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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.
|
|
@@ -29,17 +29,17 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
29
29
|
}, ze = oe((E) => {
|
|
30
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), $ = C(null), W = 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), [Q, V] = b(!1), [U, X] = 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,
|
|
42
|
-
const
|
|
40
|
+
V(!1);
|
|
41
|
+
}, [o, B, f]);
|
|
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;
|
|
@@ -51,8 +51,8 @@ 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 &&
|
|
55
|
-
}),
|
|
54
|
+
return n && M(n), t;
|
|
55
|
+
}), U || Y.current?.focus();
|
|
56
56
|
}, [r, a, d, v]), L(() => {
|
|
57
57
|
f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
|
|
58
58
|
}, [f]), L(() => {
|
|
@@ -61,10 +61,10 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
61
61
|
}, { once: !0 });
|
|
62
62
|
}, [J, o]);
|
|
63
63
|
const [re, { width: Z }] = fe();
|
|
64
|
-
return i(ge, { title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input",
|
|
65
|
-
|
|
66
|
-
}, PaperProps: { elevation:
|
|
67
|
-
if (e.key === "h" && e.ctrlKey)
|
|
64
|
+
return i(ge, { ref: Y, title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: K, onFocus: () => X(!0), onBlur: () => {
|
|
65
|
+
X(!1), V(!1);
|
|
66
|
+
}, PaperProps: { elevation: U ? 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) 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 };
|
|
@@ -101,12 +101,12 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
101
101
|
const n = { ...t };
|
|
102
102
|
return n.findOptions.useRegex = e, n;
|
|
103
103
|
});
|
|
104
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) =>
|
|
104
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => Q ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => Q ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
|
|
105
105
|
l((t) => {
|
|
106
106
|
const n = { ...t };
|
|
107
107
|
return n.findText = e.target.value, n;
|
|
108
108
|
});
|
|
109
|
-
}, onKeyDown: (e) =>
|
|
109
|
+
}, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
|
|
110
110
|
e.stopPropagation();
|
|
111
111
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
112
112
|
F(!1, !1);
|
|
@@ -119,13 +119,13 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
119
119
|
const n = { ...t };
|
|
120
120
|
return n.replaceText = e.target.value, n;
|
|
121
121
|
});
|
|
122
|
-
}, onKeyDown: (e) =>
|
|
122
|
+
}, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
|
|
123
123
|
e.stopPropagation();
|
|
124
124
|
} }), i(m, { onSelectToggle: (e) => {
|
|
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,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.4.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { J as Y } from "./
|
|
2
|
-
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./
|
|
1
|
+
import { J as Y } from "./2RGq163l1wYJKGsa.mjs";
|
|
2
|
+
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./CDkmbShJijwq4EBo.mjs";
|
|
3
3
|
import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { memo as G, useState as x, useCallback as O, useEffect as H, useMemo as w } from "react";
|
|
3
3
|
import { NumberFormat as n } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
4
|
+
import { w as l, av as K, b as q, B as P, F as S, aw as A, ax as J, a as p, ay as c, T as Q, $, az as U } from "./2RGq163l1wYJKGsa.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as to, g as oo, u as no, s as ro, n as io, aT as Q, o as lo, q as so, aU as ao, aV as co, a as Z, aA as uo, aB as ho, av as wt, J as fo, B as he, T as po, aF as mo, a0 as go, a2 as vo, ay as fe, at as _o, au as So, $ as yo, aW as wo, aX as Co, aY as De, aZ as xo, a_ as Ro, a$ as bo, E as ye, b0 as To, b1 as zo, b2 as K, b3 as Io, b4 as V, b5 as Po } from "./2RGq163l1wYJKGsa.mjs";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import Ct, { useState as pe, useMemo as ko, useEffect as je, cloneElement as Oo } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { h as N } from "./cSe92c0HnvbRwiVM.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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.
|
|
@@ -2110,13 +2110,13 @@ class ln extends Ct.PureComponent {
|
|
|
2110
2110
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2111
2111
|
const { onRowClick: t } = this.props;
|
|
2112
2112
|
return ye(Qt, se, { [eo]: e !== -1 && t != null });
|
|
2113
|
-
}, this.cellRenderer = ({ cellData: e,
|
|
2114
|
-
const { columns:
|
|
2115
|
-
let
|
|
2116
|
-
return
|
|
2117
|
-
}, this.headerRenderer = ({ label: e, columnIndex: t }) => {
|
|
2118
|
-
const { headerHeight:
|
|
2119
|
-
return H(Fe, { component: "div", className: ye(Me, se, Le), variant: "head", sx: {
|
|
2113
|
+
}, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: n, width: r }) => {
|
|
2114
|
+
const { columns: l, rowHeight: i, onRowClick: a } = this.props;
|
|
2115
|
+
let s = e, c = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
|
|
2116
|
+
return t === "shortcut" ? s = To(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), H(Fe, { component: "div", className: ye(Me, se, { [Le]: a == null }), variant: "body", style: c, align: n != null && l[n].numeric ? "right" : "left", children: s });
|
|
2117
|
+
}, this.headerRenderer = ({ label: e, columnIndex: t, width: n }) => {
|
|
2118
|
+
const { headerHeight: r, columns: l } = this.props, i = l[t];
|
|
2119
|
+
return H(Fe, { component: "div", className: ye(Me, se, Le), variant: "head", sx: { width: n, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: i.numeric ? "right" : "left", children: H("span", { children: i.label }) });
|
|
2120
2120
|
};
|
|
2121
2121
|
}
|
|
2122
2122
|
static {
|
|
@@ -2126,7 +2126,7 @@ class ln extends Ct.PureComponent {
|
|
|
2126
2126
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2127
2127
|
return H(Ot, { children: ({ height: l, width: i }) => H(Oe, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, h) => {
|
|
2128
2128
|
const f = c ? i - c : s;
|
|
2129
|
-
return H(Se, { headerRenderer: (u) => this.headerRenderer({ ...u, columnIndex: h }), className: se, cellRenderer: this.cellRenderer, dataKey: a, width: f, ...d }, a);
|
|
2129
|
+
return H(Se, { style: { flex: `1 1 ${f}px` }, headerRenderer: (u) => this.headerRenderer({ ...u, width: f, columnIndex: h }), className: se, cellDataGetter: ({ rowData: u, columnData: v, dataKey: m }) => u[m], cellRenderer: (u) => this.cellRenderer({ ...u, width: f, columnIndex: h }), dataKey: a, width: f, ...d }, a);
|
|
2130
2130
|
}) }) });
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
@@ -2147,7 +2147,7 @@ function an(o) {
|
|
|
2147
2147
|
return v;
|
|
2148
2148
|
}, [n, e]), [s, c] = pe(null);
|
|
2149
2149
|
je(() => {
|
|
2150
|
-
import("./
|
|
2150
|
+
import("./BEFQcBJ71bA297Zu.mjs").then((u) => {
|
|
2151
2151
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2152
|
});
|
|
2153
2153
|
}, [a]);
|
|
@@ -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 $, T as z, a as h, ay as C } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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, ...T } = 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, b] = x(g), [k, P] = 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
|
+
b(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,8 +38,8 @@ 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) =>
|
|
42
|
-
|
|
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 }, ...T, 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
|
+
k || n.target?.select(), P(!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();
|
|
45
45
|
} }) }) }) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NumberFormat as Ht, ScalarType as Ft, ResourceCollection as vs, Tuple as Ss, IAutoFilter as Jt, AddressUtils as at, CoordUtils as De, FormulaError as Cs, IRange as ks, CommonUtils as es, Theme as As, JSONStableStringify as Es, Workbook as Ds, IColor as Ps, OutOfBoundsError as Os } from "@sheetxl/sdk";
|
|
2
|
-
import { J as cs } from "./
|
|
2
|
+
import { J as cs } from "./2RGq163l1wYJKGsa.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -897,14 +897,14 @@ class Bt {
|
|
|
897
897
|
const Ks = (i, t, s) => {
|
|
898
898
|
if (i[0].value[0] === i[1].value[0]) return t;
|
|
899
899
|
}, ls = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, ri = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
|
|
900
|
-
const { password: s, onWarning: o,
|
|
900
|
+
const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./DyUvHYGMNA9W2zL6.mjs"), m = import("./BEIn7yNWsHNJisB6.mjs");
|
|
901
901
|
let v = null;
|
|
902
902
|
try {
|
|
903
903
|
v = new DOMParser();
|
|
904
904
|
} catch {
|
|
905
905
|
}
|
|
906
906
|
let b = null;
|
|
907
|
-
v || (b = import("./
|
|
907
|
+
v || (b = import("./DnWiOUNTPvi_llPT.mjs").then((u) => u.i));
|
|
908
908
|
let x = null, E = null, y = null;
|
|
909
909
|
try {
|
|
910
910
|
const u = await Promise.all([c, m, b]);
|
|
@@ -1311,7 +1311,7 @@ const Ks = (i, t, s) => {
|
|
|
1311
1311
|
}, W), _t = ns(R, ce), xt = await (async (V, U = 8388608) => {
|
|
1312
1312
|
await (async () => {
|
|
1313
1313
|
if (typeof ReadableStream > "u") if (typeof window > "u") {
|
|
1314
|
-
const { ReadableStream: J } = await import("./
|
|
1314
|
+
const { ReadableStream: J } = await import("./CjVsKZEPAncg5mIk.mjs");
|
|
1315
1315
|
globalThis.ReadableStream = J;
|
|
1316
1316
|
} else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
|
|
1317
1317
|
})();
|
|
@@ -1409,7 +1409,7 @@ const Ks = (i, t, s) => {
|
|
|
1409
1409
|
throw u instanceof Os && (D = "Unable to open XLSX. There are too many rows or columns."), new Error(D, { cause: u });
|
|
1410
1410
|
}
|
|
1411
1411
|
}, toBufferXLSX: async (i, t) => {
|
|
1412
|
-
const s = await import("./
|
|
1412
|
+
const s = await import("./DyUvHYGMNA9W2zL6.mjs"), o = await i.toJSON(!0), n = s.utils.book_new();
|
|
1413
1413
|
for (let a = 0; a < o.sheets.length; a++) {
|
|
1414
1414
|
const c = o.sheets[a], m = s.utils.json_to_sheet([{}]);
|
|
1415
1415
|
s.utils.book_append_sheet(n, m, c.name);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,20 +1,20 @@
|
|
|
1
1
|
import { jsx as o, jsxs as A } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as b, useState as g, useCallback as O } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as f, b as S, B as U, F as P, T as D, a as l, ay as p } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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 V = ["Ok", "Cancel"], J = E((F) => {
|
|
11
|
-
const { initialHyperlink: n = null, initialDisplay:
|
|
11
|
+
const { initialHyperlink: n = null, initialDisplay: w = null, onUpdateHyperlink: m, context: s, onOption: x, onValidateOption: r, onDone: d, options: h = V, defaultOption: c = h?.[0], cancelOption: i = "Cancel", sx: H, ...I } = F, v = b(() => (n ?? s?.()?.getHyperlink()) !== null, []), y = b(() => {
|
|
12
12
|
let a = null, t = null;
|
|
13
13
|
n && (typeof n == "string" ? t = n : a = n);
|
|
14
14
|
const C = a ?? s?.()?.getHyperlink();
|
|
15
15
|
return { address: t ?? C?.getAddress() ?? "", textToDisplay: C?.getDisplayText() ?? "" };
|
|
16
16
|
}, [n, s]), [e, M] = g(y.address), [u, B] = g(() => {
|
|
17
|
-
const a = s?.().toTextUnformatted() ??
|
|
17
|
+
const a = s?.().toTextUnformatted() ?? w;
|
|
18
18
|
return a === y.address ? "" : a;
|
|
19
19
|
}), [$, k] = g(!1), L = O((a) => {
|
|
20
20
|
B(a.target.value);
|
|
@@ -30,7 +30,7 @@ const V = ["Ok", "Cancel"], J = E((F) => {
|
|
|
30
30
|
}
|
|
31
31
|
return t ?? !0;
|
|
32
32
|
}, [r]);
|
|
33
|
-
return o(S, { title: (
|
|
33
|
+
return o(S, { title: (v ? "Edit" : "Insert") + " Link", options: h, onDone: d, onOption: (a) => W(a), onValidateOption: z, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...H }, ...I, children: A(U, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(P, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(D, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (a) => {
|
|
34
34
|
$ || a.target?.select(), k(!0);
|
|
35
35
|
}, sx: { "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", p(5))}, ${l("#fff", p(5))})` } } }, value: e, onChange: j, onContextMenu: (a) => {
|
|
36
36
|
a.stopPropagation();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,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 { M as os,
|
|
3
|
+
import { M as os, c as as, I as is, B as us, P as Su, R as ss, d as xt } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as z, forwardRef as E, useState as s } from "react";
|
|
3
|
-
import { k as t, i as G, b as K, B as R, F as W, T as Y, a as x, G as q, Y as y } from "./
|
|
3
|
+
import { k as t, i as G, b as K, B as R, F as W, T as Y, a as x, G as q, Y as y } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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("./2RGq163l1wYJKGsa.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,19 +1,19 @@
|
|
|
1
1
|
import { jsx as n, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C } from "react";
|
|
3
3
|
import { Sort as a, IRange as r } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
4
|
+
import { w as O, b as S, B as b, at as s, au as l } from "./2RGq163l1wYJKGsa.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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.
|
|
10
10
|
*/
|
|
11
|
-
const D = ({ range: p, options: c, cell: u, onDone: d, ...
|
|
12
|
-
const [t, o] = C(c ?? a.DefaultRangeOptions),
|
|
11
|
+
const D = ({ range: p, options: c, cell: u, onDone: d, ...m }) => {
|
|
12
|
+
const [t, o] = C(c ?? a.DefaultRangeOptions), v = O((e) => {
|
|
13
13
|
let i = null;
|
|
14
14
|
e === "Sort" && (i = { ...c, options: t }), d?.(i);
|
|
15
15
|
}, [t, d, c]);
|
|
16
|
-
return n(S, { title: "Sort", options: ["Sort", "Cancel"], onDone:
|
|
16
|
+
return n(S, { title: "Sort", options: ["Sort", "Cancel"], onDone: v, ...m, children: h(b, { sx: { display: "flex", flexDirection: "column" }, children: [n(s, { control: n(l, { checked: !t.reverse, onChange: () => o((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.hasHeader, onChange: () => o((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity, onChange: () => o((e) => ({ ...e, collatorOptions: t.collatorOptions?.sensitivity === a.CaseSensitiveOptions.sensitivity ? a.CaseInsensitiveOptions : a.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.orientation === r.Orientation.Row, onChange: () => o((e) => {
|
|
17
17
|
const i = e.orientation === r.Orientation.Row ? r.Orientation.Column : r.Orientation.Row;
|
|
18
18
|
return { ...p.getDefaultSortCriteria(i, u).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: i };
|
|
19
19
|
}) }), label: "Row Sort", labelPlacement: "end" }), n(s, { control: n(l, { checked: t.includeHidden, onChange: () => o((e) => ({ ...e, includeHidden: !e.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Je from "react";
|
|
2
2
|
import { createElement as $r, forwardRef as Ya, useRef as Xa, useImperativeHandle as Wa, useEffect as Ha } from "react";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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,14 +1,14 @@
|
|
|
1
1
|
import { jsx as d, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as V, useState as p, useCallback as h } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { w as u, b as L, B as S, aO as A, aP as G } from "./2RGq163l1wYJKGsa.mjs";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.8
|
|
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
|
-
const M = ["Ok", "Cancel"], z = E((
|
|
11
|
-
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx:
|
|
10
|
+
const M = ["Ok", "Cancel"], z = E((C) => {
|
|
11
|
+
const { value: a = null, context: t, onOption: c, onValidateOption: P, onDone: m, onUpdate: g, options: x = M, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx: R, ...v } = C, y = V(() => t?.getNames().findValidName("Range1"), []), i = V(() => {
|
|
12
12
|
if (!a) return !0;
|
|
13
13
|
}, []), [n, w] = p({ displayText: a?.getName() ?? y, errorText: null }), [l, D] = p({ displayValue: a?.getRanges() ?? t?.selection() ?? null, errorText: null }), [T, O] = p(!1), F = h(async (e) => !n.errorText && !l.errorText, [t]), b = u((e, s, r) => {
|
|
14
14
|
if (!s) {
|
|
@@ -31,7 +31,7 @@ const M = ["Ok", "Cancel"], z = E((v) => {
|
|
|
31
31
|
}, [t, a]), j = h((e) => {
|
|
32
32
|
D({ displayValue: e ?? null, errorText: null });
|
|
33
33
|
}, []);
|
|
34
|
-
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...
|
|
34
|
+
return d(L, { title: (i ? "Define" : "Edit") + " Range", options: x, onOption: b, onValidateOption: F, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...R }, ...v, children: k(S, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [d(A, { formName: "name", defaultInput: y, value: n.displayText, onChangeInput: B, onValidate: I, onFocus: (e) => {
|
|
35
35
|
T || e.target?.select(), O(!0);
|
|
36
36
|
} }), d(G, { formName: "range", value: l.displayValue, onChangeInput: j, resolvedAddress: t.getNames().getRanges.bind(t.getNames()), onFocus: (e) => {
|
|
37
37
|
T || e.target?.select(), O(!0);
|