@sheetxl/studio-vanilla 0.3.19 → 0.3.21
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/{DPk0an7l4dAKSvt4.cjs → A0ZpV19LaWJPBAxJ.cjs} +4 -4
- package/browser/cjs/{DJC4cn9wXv_q5aHy.cjs → B7WGeMLC9lgABFgY.cjs} +2 -2
- package/browser/cjs/{MSGlzfMbdkBj2ODr.cjs → BGWtPoTr963pJzTW.cjs} +1 -1
- package/browser/cjs/BnNcqIyf3d4Wo10J.cjs +6 -0
- package/browser/cjs/{Ce6oHmr7gMYWd8Yd.cjs → BvFrlXQvToKhtXLW.cjs} +3 -3
- package/browser/cjs/{vWIDSfediysRj8eo.cjs → BzHchdqGU9q9HTeZ.cjs} +3 -3
- package/browser/cjs/{CY7-VXmdgBslTVMX.cjs → C1sBXcJs37gnCnc-.cjs} +2 -2
- package/browser/cjs/{2FwFu5228wr-ARkA.cjs → CJCx7wwzFV741BED.cjs} +2 -2
- package/browser/cjs/{D0TmTI_7aDwkiyE4.cjs → CQX6ALG7Qr92NrCM.cjs} +2 -2
- package/browser/cjs/{Cfdd6ktavWDYX9ND.cjs → CS7_TMcjyCfeYdbY.cjs} +1 -1
- package/browser/cjs/{Cnk7ISRHexlfGYia.cjs → CUiXfQBocDM-aa0u.cjs} +1 -1
- package/browser/cjs/{BKPCa_z6dnIQn-0l.cjs → ClME44iJKK4moOy9.cjs} +1 -1
- package/browser/cjs/Cm1pYmFuE37XPNan.cjs +12 -0
- package/browser/cjs/{CDKv578p0EwvHjZp.cjs → CpBGGoKGISFU613h.cjs} +1 -1
- package/browser/cjs/{gPTujfwB4RqxIcij.cjs → Cv6uuFVYpIpSWumJ.cjs} +1 -1
- package/browser/cjs/{bLAfby6zV0qLxdQi.cjs → D-3hB9a92Wmlhdsj.cjs} +2 -2
- package/browser/cjs/{BA4eX47IpP00-8so.cjs → D72CmfA6LyzyYKOL.cjs} +2 -2
- package/browser/cjs/{DtwZ1dCv4IJK54Md.cjs → D9MtUC01fSyQjEXn.cjs} +2 -2
- package/browser/cjs/{Do4JoiMPrmr8e_3I.cjs → DCSmIFv_295K4p_D.cjs} +2 -2
- package/browser/cjs/{CIo606dkZ8lkuDJ3.cjs → DCd6Xp33YPy7XtIR.cjs} +1 -1
- package/browser/cjs/{lObc2MW6JiaOpm-q.cjs → DFipaP6WIEjIRKpU.cjs} +2 -2
- package/browser/cjs/{BWs24EHW-tVFgT-x.cjs → DJiDhpGqt3RH221S.cjs} +2 -2
- package/browser/cjs/{Cjh4Y6CzIKElfhND.cjs → D_DF4cTaE6bzNHK8.cjs} +2 -2
- package/browser/cjs/{USAsNV7756AJ-v-3.cjs → PwyYYJ0i3kzVUKxf.cjs} +1 -1
- package/browser/cjs/hi65j9YMBmyhYJaN.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DQu9kotW1g223yHH.cjs → wCzH0lwNjvL3JNmJ.cjs} +31 -31
- package/{cdn/assets/zovGkWpLePhgQd_n.js → browser/esm/-Xax2UkvV3m5N2PC.mjs} +1 -1
- package/browser/esm/Af0zxijC_EHsCFbp.mjs +41 -0
- package/browser/esm/{FNXLcvV7DgUq6zwL.mjs → B8OoQFw1EdDz1mF4.mjs} +1 -1
- package/browser/esm/{BnmsWZ7pB-RvN8Ce.mjs → BA__mlm_NBmnqW1c.mjs} +2 -2
- package/{cdn/assets/vsx7PlJlMQvNPm_L.js → browser/esm/BXWSRx7-5tPS3vUl.mjs} +1 -1
- package/browser/esm/{B8OZHivNmO5OFLTi.mjs → Bz12E8PBp7bh2Ne8.mjs} +3 -3
- package/browser/esm/{DNEd6u6uOJT1ngWx.mjs → C6wdtwDSDMPcFb2Z.mjs} +2 -2
- package/browser/esm/{BorGhlvsrSc8KIw4.mjs → CUC59v6HTXx4Es99.mjs} +2 -2
- package/browser/esm/{D8V8o3E9AIpGCaJ0.mjs → CYexcml6Sg5N7mjr.mjs} +2 -2
- package/browser/esm/{DzowkvQRyggO7Ijl.mjs → C_0XgQWvfYrvtAs-.mjs} +1 -1
- package/{cdn/assets/Bm440-d54x4naZeO.js → browser/esm/C_jT9nSC356mv2c9.mjs} +1 -1
- package/browser/esm/{DHtJbuH4VrIp2owl.mjs → CfcwzzyL5XAP9tQp.mjs} +4 -4
- package/browser/esm/{CHNBfqp5n8JaC7UU.mjs → D-rXQ2igPpbGrVG9.mjs} +3 -3
- package/browser/esm/{C2UMejLEXH1i7UT_.mjs → D5PDG9rPIUpCWQ2j.mjs} +4 -4
- package/browser/esm/{BGvOrkSiilN4Dt_5.mjs → DYS1PKCmbUWBBVVY.mjs} +2 -2
- package/browser/esm/{CDha50D0Zqdh75RO.mjs → Dg0-QY55dhPYDynG.mjs} +7 -7
- package/browser/esm/{BjXzbYB0kCMhwN3Y.mjs → DiWxJBKUIIkhPVsm.mjs} +1794 -1789
- package/browser/esm/{DGbBeyHSDhhZ67G7.mjs → DmkkuaWcJuQOt1Kh.mjs} +6 -6
- package/browser/esm/{DTW0B_xW-HuS3NuK.mjs → DqMfleN4g5teyJ21.mjs} +2 -2
- package/browser/esm/{CxJ9wqppH10FCE7E.mjs → DsMcLKI35e4Ceuzp.mjs} +2 -2
- package/browser/esm/{vYT-yKp90JOPBqDa.mjs → DuO2P_kzPmMjNWjm.mjs} +2 -2
- package/browser/esm/DwFbsV8BR3w8h5mM.mjs +84 -0
- package/{cdn/assets/Brg-pw5qowVCqKUF.js → browser/esm/FeVOPB10QnZtmbE8.mjs} +1 -1
- package/{cdn/assets/C6ty7TIqMKf0jms4.js → browser/esm/Rf_wtn_sm9HefBk1.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CkOpEOqipQhoCXbp.mjs → wr6GJMD7IemKdkLx.mjs} +2 -2
- package/browser/esm/{SWAv_VgEKg95ORt5.mjs → zLDoUuID5BQ6UPNH.mjs} +1 -1
- package/{browser/esm/zovGkWpLePhgQd_n.mjs → cdn/assets/-Xax2UkvV3m5N2PC.js} +1 -1
- package/cdn/assets/{CD48E90J73F2rFJF.js → 0hopqPyQYidgMrJK.js} +3 -3
- package/cdn/assets/{FNXLcvV7DgUq6zwL.js → B8OoQFw1EdDz1mF4.js} +1 -1
- package/cdn/assets/{aAVhloO6mFh8WJzi.js → BCMEj5u_Rj9QSSeI.js} +4 -4
- package/cdn/assets/BExRcM51_Oah_jDb.js +41 -0
- package/{browser/esm/vsx7PlJlMQvNPm_L.mjs → cdn/assets/BXWSRx7-5tPS3vUl.js} +1 -1
- package/cdn/assets/{D3-MLKMldcoobrMe.js → BZLQc9DyICQtl3K7.js} +2 -2
- package/cdn/assets/{yLoKmwpXykv9-Elu.js → CNONDIHIjxm10COZ.js} +2 -2
- package/cdn/assets/{DzowkvQRyggO7Ijl.js → C_0XgQWvfYrvtAs-.js} +1 -1
- package/{browser/esm/Bm440-d54x4naZeO.mjs → cdn/assets/C_jT9nSC356mv2c9.js} +1 -1
- package/cdn/assets/{BtcEbQwXXgpwi-Wc.js → D1hnXRh-r0_SGcfM.js} +3 -3
- package/cdn/assets/{C4-fZEqFmgf4Ryrf.js → DLp1frYISl4S3Nl8.js} +2 -2
- package/cdn/assets/{TXu1jpI8ASN4INNu.js → DmqAIp-cGa0by-zJ.js} +7 -7
- package/cdn/assets/{BNcPMWtsY8_g-EN4.js → Doy8xYr4ca73DDoT.js} +2 -2
- package/cdn/assets/DwFbsV8BR3w8h5mM.js +84 -0
- package/cdn/assets/{DoNQnutyjVRliOV0.js → FUpZ5kiCYNg9bMpN.js} +2 -2
- package/{browser/esm/Brg-pw5qowVCqKUF.mjs → cdn/assets/FeVOPB10QnZtmbE8.js} +1 -1
- package/cdn/assets/{BhwpQU1T51VKYXPZ.js → KIp8V597sg7xVYj4.js} +2 -2
- package/cdn/assets/{DkRkxpsLaXOm1dGc.js → QtO9WDOsu_ywkxD6.js} +2 -2
- package/{browser/esm/C6ty7TIqMKf0jms4.mjs → cdn/assets/Rf_wtn_sm9HefBk1.js} +1 -1
- package/cdn/assets/{DVoDFCX7Bv_zFVVi.js → RrzPm_vac0SNIlIE.js} +3916 -3911
- package/cdn/assets/{BJlG0NMA-JM_rPkc.js → a2C0H5-rRMy7rv7D.js} +6 -6
- package/cdn/assets/{8xNW6edqjY-klal3.js → j9H6seAceQPMZnP0.js} +2 -2
- package/cdn/assets/{BrkvsmfqGj5-gULd.js → yhF0dYM0VZxJaIV7.js} +2 -2
- package/cdn/assets/{8QCrFIzHmtIoeBJm.js → zFnIGjVJJCgdMPfT.js} +4 -4
- package/cdn/assets/{SWAv_VgEKg95ORt5.js → zLDoUuID5BQ6UPNH.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +1 -1
- package/browser/cjs/B32tWc1qRv4tY12p.cjs +0 -6
- package/browser/cjs/BdvCvAgiry0f4S23.cjs +0 -12
- package/browser/cjs/mSxg83umiyMZNf9-.cjs +0 -6
- package/browser/esm/4b-cAFWAwXYZkw0D.mjs +0 -80
- package/browser/esm/BlxEnptsgkGA0_21.mjs +0 -41
- package/cdn/assets/4b-cAFWAwXYZkw0D.js +0 -80
- package/cdn/assets/DzXbXyuxyjtFLOXt.js +0 -41
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as g, jsxs as se, Fragment as Kt } from "react/jsx-runtime";
|
|
2
2
|
import * as ve from "react";
|
|
3
3
|
import T, { memo as Me, forwardRef as ce, useRef as le, useMemo as te, useState as ae, useEffect as G, useLayoutEffect as dt, useCallback as ne, Component as Gt, createElement as fe, createContext as xn, useContext as yn, isValidElement as wn, cloneElement as vn } from "react";
|
|
4
|
-
import { g as xt, d as yt, u as Qe, e as En, f as Cn, h as Sn, j as Ln, l as Mn, s as je, m as wt, n as vt, o as Mt, p as Dn, q as Tn, r as Zt, t as On, x as Wn, v as ie, U as Xt, D as Dt, W as pt, X as Fn, w as ye, y as Jt, z as Nn, A as Qt, C as An, H as mt, K as Yt, L as Rn, N as In, O as Pn, Q as jn, R as Hn, V as zn, Z as _n, B as xe, _ as qn, E as Bn, $ as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Kn, a4 as Gn, a5 as Zn, a6 as Xn, J as Jn, a7 as ee, a8 as We, a9 as Tt, aa as Qn, ab as Yn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as _e } from "./
|
|
4
|
+
import { g as xt, d as yt, u as Qe, e as En, f as Cn, h as Sn, j as Ln, l as Mn, s as je, m as wt, n as vt, o as Mt, p as Dn, q as Tn, r as Zt, t as On, x as Wn, v as ie, U as Xt, D as Dt, W as pt, X as Fn, w as ye, y as Jt, z as Nn, A as Qt, C as An, H as mt, K as Yt, L as Rn, N as In, O as Pn, Q as jn, R as Hn, V as zn, Z as _n, B as xe, _ as qn, E as Bn, $ as Vn, a0 as ht, a1 as $n, a2 as Un, a3 as Kn, a4 as Gn, a5 as Zn, a6 as Xn, J as Jn, a7 as ee, a8 as We, a9 as Tt, aa as Qn, ab as Yn, ac as eo, ad as to, ae as no, af as oo, ag as nt, ah as Fe, ai as ro, aj as ao, ak as io, al as so, am as Ot, an as Wt, ao as lo, ap as co, aq as uo, ar as po, as as _e } from "./DiWxJBKUIIkhPVsm.mjs";
|
|
5
5
|
import { createPortal as mo } from "react-dom";
|
|
6
6
|
import { CommonUtils as ot, UndoManager as ho, Workbook as Ft, PartialError as fo } from "@sheetxl/sdk";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
8
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -721,7 +721,7 @@ const kn = Me(ce((e, o) => {
|
|
|
721
721
|
const D = { ...S, onKeyDown: (B) => {
|
|
722
722
|
u?.dispatchToFocusedCommand(B), B.isDefaultPrevented() || B.isPropagationStopped() || S?.onKeyDown?.(B);
|
|
723
723
|
} };
|
|
724
|
-
return w(E, { sort: () => import("./
|
|
724
|
+
return w(E, { sort: () => import("./CYexcml6Sg5N7mjr.mjs"), numberFormat: () => import("./wr6GJMD7IemKdkLx.mjs"), hyperlink: () => import("./DYS1PKCmbUWBBVVY.mjs"), comments: () => import("./C6wdtwDSDMPcFb2Z.mjs"), find: () => import("./Bz12E8PBp7bh2Ne8.mjs"), tableDetails: () => import("./CUC59v6HTXx4Es99.mjs"), tableNew: () => import("./BA__mlm_NBmnqW1c.mjs"), namedDetails: () => import("./DqMfleN4g5teyJ21.mjs") }[E], D, P);
|
|
725
725
|
}, showOptions: R, showInputOptions: M, showError: (E) => {
|
|
726
726
|
let S, P = _e.Error, D = "Unknown Error";
|
|
727
727
|
typeof E == "string" ? D = E : E instanceof Error && (S = E, E.message && (D = E.message)), E instanceof fo && (P = _e.Info), A(D, { type: P, enqueueProps: { error: S } });
|
|
@@ -818,7 +818,7 @@ const kn = Me(ce((e, o) => {
|
|
|
818
818
|
const { showModal: et } = Yn();
|
|
819
819
|
return G(() => {
|
|
820
820
|
const F = () => new Promise((X, p) => {
|
|
821
|
-
const v = T.lazy(() => import("./
|
|
821
|
+
const v = T.lazy(() => import("./CfcwzzyL5XAP9tQp.mjs")), $ = et(v, { title: "Shortcut Keys Reference", commands: Z, onDone: () => {
|
|
822
822
|
$.hide();
|
|
823
823
|
}, TransitionProps: { onExited: () => {
|
|
824
824
|
X(!0);
|
|
@@ -934,7 +934,7 @@ const bn = Me(ce((e, o) => {
|
|
|
934
934
|
bn.displayName = "EagerStandaloneWorkbook";
|
|
935
935
|
const Go = Object.freeze(Object.defineProperty({ __proto__: null, default: bn }, Symbol.toStringTag, { value: "Module" })), er = Object.freeze(Object.defineProperty({ __proto__: null, E: Go, c: ge }, Symbol.toStringTag, { value: "Module" }));
|
|
936
936
|
export {
|
|
937
|
+
er as B,
|
|
937
938
|
ft as C,
|
|
938
|
-
ge as f
|
|
939
|
-
er as z
|
|
939
|
+
ge as f
|
|
940
940
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { v as u, b as L, B as S, aO as A, aP as G } from "./
|
|
3
|
+
import { v as u, b as L, B as S, aO as A, aP as G } from "./DiWxJBKUIIkhPVsm.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.21
|
|
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.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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("./DiWxJBKUIIkhPVsm.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,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, E as as, I as is, B as us, P as Su, c as ss, S as xt } from "./
|
|
3
|
+
import { M as os, E as as, I as is, B as us, P as Su, c as ss, S as xt } from "./DiWxJBKUIIkhPVsm.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.21
|
|
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.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Workbook as J } from "@sheetxl/sdk";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
const k = async (p, l) => {
|
|
9
|
+
const c = await p.toJSON(), b = l?.whiteSpace ?? 0;
|
|
10
|
+
let g;
|
|
11
|
+
l?.beforeWrite?.(p, c), g = b === 0 ? JSON.stringify(c) : function(i, r = 2) {
|
|
12
|
+
const n = [];
|
|
13
|
+
function s(o) {
|
|
14
|
+
const e = r * o;
|
|
15
|
+
return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
|
|
16
|
+
}
|
|
17
|
+
return function o(e, f, a, B) {
|
|
18
|
+
if (e == null || typeof e != "object") return JSON.stringify(e);
|
|
19
|
+
const A = s(f), d = s(f + 1);
|
|
20
|
+
if (Array.isArray(e)) {
|
|
21
|
+
const u = e.length;
|
|
22
|
+
if (u === 0) return "[]";
|
|
23
|
+
if (a !== 0) return JSON.stringify(e);
|
|
24
|
+
let y = `[
|
|
25
|
+
`;
|
|
26
|
+
for (let h = 0; h < u; h++) y += d + o(e[h], f + 1, a + 1, !0), h < u - 1 && (y += `,
|
|
27
|
+
`);
|
|
28
|
+
return y += `
|
|
29
|
+
` + A + "]", y;
|
|
30
|
+
}
|
|
31
|
+
const m = Object.keys(e), O = m.length;
|
|
32
|
+
if (O === 0) return "{}";
|
|
33
|
+
if (!(a < 2)) return JSON.stringify(e);
|
|
34
|
+
let S = `{
|
|
35
|
+
`;
|
|
36
|
+
B || (a = 0);
|
|
37
|
+
for (let u = 0; u < O; u++) {
|
|
38
|
+
const y = m[u];
|
|
39
|
+
S += d + JSON.stringify(y) + ": " + o(e[y], f + 1, a, !1), u < O - 1 && (S += `,
|
|
40
|
+
`);
|
|
41
|
+
}
|
|
42
|
+
return S += `
|
|
43
|
+
` + A + "}", S;
|
|
44
|
+
}(i, 0, 0, !1);
|
|
45
|
+
}(c, b);
|
|
46
|
+
let w = new TextEncoder().encode(g).buffer;
|
|
47
|
+
const t = l?.compress ?? !0;
|
|
48
|
+
return t && (w = await async function(i, r = "gzip") {
|
|
49
|
+
let n;
|
|
50
|
+
i instanceof SharedArrayBuffer ? (n = new ArrayBuffer(i.byteLength), new Uint8Array(n).set(new Uint8Array(i))) : n = i;
|
|
51
|
+
const s = new ReadableStream({ start(f) {
|
|
52
|
+
f.enqueue(n), f.close();
|
|
53
|
+
} }), o = new CompressionStream(r), e = s.pipeThrough(o);
|
|
54
|
+
return (await new Response(e).blob()).arrayBuffer();
|
|
55
|
+
}(w, typeof t == "string" ? t : void 0)), w;
|
|
56
|
+
}, z = async (p, l) => {
|
|
57
|
+
let c = p;
|
|
58
|
+
(function(t) {
|
|
59
|
+
if (t.byteLength < 4) return !1;
|
|
60
|
+
const i = new Uint8Array(t), r = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n = Object.keys(r);
|
|
61
|
+
for (let s = 0; s < n.length; s++) {
|
|
62
|
+
const o = n[s], e = r[o];
|
|
63
|
+
let f = !0;
|
|
64
|
+
for (let a = 0; a < e.length; a++) if (i[a] !== e[a]) {
|
|
65
|
+
f = !1;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
if (f) return o;
|
|
69
|
+
}
|
|
70
|
+
return !1;
|
|
71
|
+
})(c) && (c = await async function(t, i = "gzip") {
|
|
72
|
+
let r;
|
|
73
|
+
t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
|
|
74
|
+
const n = new Blob([r]).stream(), s = new DecompressionStream(i), o = n.pipeThrough(s);
|
|
75
|
+
return (await new Response(o).blob()).arrayBuffer();
|
|
76
|
+
}(c));
|
|
77
|
+
let b = new TextDecoder().decode(c);
|
|
78
|
+
const g = JSON.parse(b), w = { ...l?.constructorOptions ?? {}, json: g };
|
|
79
|
+
return new J(w);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
z as fromBufferJSON,
|
|
83
|
+
k as toBufferJSON
|
|
84
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-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.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as 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.3.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "react-dom/client";
|
|
4
|
-
import { b6 as i } from "./
|
|
4
|
+
import { b6 as i } from "./DiWxJBKUIIkhPVsm.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as 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 { v 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 "./
|
|
4
|
+
import { v 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 "./DiWxJBKUIIkhPVsm.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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,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.21
|
|
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.21
|
|
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 "./RrzPm_vac0SNIlIE.js";
|
|
2
|
+
import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./DmqAIp-cGa0by-zJ.js";
|
|
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.3.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Workbook as y, IRange as C } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-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.21
|
|
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("./-Xax2UkvV3m5N2PC.js").then((s) => s.p);
|
|
10
10
|
if (!a) throw new Error("workbook must be specified");
|
|
11
11
|
let t = null;
|
|
12
12
|
if (r === null ? t = a.getSelectedSheet() : typeof r == "number" ? t = a.getSheets().search()[r] : typeof r == "string" && (t = a.getSheets().getByName(r)), !t) throw new Error("invalid sheetKey specified");
|
|
@@ -25,9 +25,9 @@ const k = async (a, p) => {
|
|
|
25
25
|
e.push(S);
|
|
26
26
|
}, { includeEmpty: !0, address: null }), e && d.push(e);
|
|
27
27
|
const o = { ...m }, g = f.unparse(d, o);
|
|
28
|
-
return new TextEncoder().encode(g);
|
|
28
|
+
return new TextEncoder().encode(g).buffer;
|
|
29
29
|
}, R = async (a, p) => {
|
|
30
|
-
const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, r = await import("
|
|
30
|
+
const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, r = await import("./-Xax2UkvV3m5N2PC.js").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;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
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 "./RrzPm_vac0SNIlIE.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
6
|
+
*
|
|
7
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
|
+
*/
|
|
10
|
+
const A = ["Input"], X = z(E((w, T) => {
|
|
11
|
+
const { initialValue: F = "", onOption: I, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: P, inputType: b, inputPlaceHolder: k, options: d = A, autoFocusSel: v = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...C } = w, [V, B] = s(!1), [o, D] = s(F), [S, H] = s(""), [L, M] = s(!0), e = t(async (a, n) => {
|
|
12
|
+
if (!p) return !0;
|
|
13
|
+
const h = await p?.(a, n);
|
|
14
|
+
H(h?.message ?? "");
|
|
15
|
+
const O = h?.valid ?? !0;
|
|
16
|
+
return M(O), O;
|
|
17
|
+
}, [p]), f = t(async (a) => {
|
|
18
|
+
l?.(o, a);
|
|
19
|
+
}, [o, l, u, I, g, m]), N = t(async (a) => {
|
|
20
|
+
a.keyCode === G.Enter && await e?.(o, null);
|
|
21
|
+
}, [o, f]), $ = t((a) => {
|
|
22
|
+
D(a.target.value), e?.(a.target.value, null);
|
|
23
|
+
}, [r]), j = t(async (a) => {
|
|
24
|
+
let n = await e(o, a);
|
|
25
|
+
try {
|
|
26
|
+
n !== !1 && (n = await e(o, a));
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
return n ?? !0;
|
|
30
|
+
}, [o, r]);
|
|
31
|
+
return i(K, { options: d, onDone: u, onOption: (a, n) => {
|
|
32
|
+
n || f(a);
|
|
33
|
+
}, onValidateOption: j, cancelOption: g, defaultOption: m, autoFocusSel: v, ref: T, ...C, children: i(R, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(W, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(Y, { onFocus: (a) => {
|
|
34
|
+
V || a.target?.select(), B(!0);
|
|
35
|
+
}, type: b, label: P, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: k, spellCheck: !1, autoComplete: "off", ...c, className: q("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${x("#fff", y(5))}, ${x("#fff", y(5))})` } } }, value: o, onChange: $, onKeyDown: N, onContextMenu: (a) => {
|
|
36
|
+
a.stopPropagation();
|
|
37
|
+
} }) }) }) });
|
|
38
|
+
}));
|
|
39
|
+
export {
|
|
40
|
+
X as default
|
|
41
|
+
};
|
|
@@ -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.21
|
|
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 o, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import { memo as T, useState as i, useCallback as k } from "react";
|
|
3
|
-
import { v, b as w, B as j, aP as y, at as B, au as F } from "./
|
|
3
|
+
import { v, b as w, B as j, aP as y, at as B, au as F } from "./RrzPm_vac0SNIlIE.js";
|
|
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.21
|
|
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 { v 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 "./
|
|
4
|
+
import { v 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 "./RrzPm_vac0SNIlIE.js";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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,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.21
|
|
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,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.21
|
|
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,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 { t as D, v as H, av as ue, V 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 "./
|
|
5
|
-
import { C as ee } from "./
|
|
4
|
+
import { t as D, v as H, av as ue, V 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 "./RrzPm_vac0SNIlIE.js";
|
|
5
|
+
import { C as ee } from "./a2C0H5-rRMy7rv7D.js";
|
|
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.21
|
|
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.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n, jsxs as m } 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 { v as O, b as S, B as b, at as s, au as l } from "./
|
|
4
|
+
import { v as O, b as S, B as b, at as s, au as l } from "./RrzPm_vac0SNIlIE.js";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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,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 "./RrzPm_vac0SNIlIE.js";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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, constructorOptions: n = {}, ...a } = t ?? {}, c = import("./
|
|
900
|
+
const { password: s, onWarning: o, constructorOptions: n = {}, ...a } = t ?? {}, c = import("./C_0XgQWvfYrvtAs-.js"), m = import("./0hopqPyQYidgMrJK.js");
|
|
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("./BXWSRx7-5tPS3vUl.js").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,8 +1311,8 @@ 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("./
|
|
1315
|
-
|
|
1314
|
+
const { ReadableStream: J } = await import("./zLDoUuID5BQ6UPNH.js");
|
|
1315
|
+
globalThis.ReadableStream = J;
|
|
1316
1316
|
} else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
|
|
1317
1317
|
})();
|
|
1318
1318
|
const te = new TextDecoder("utf-8");
|
|
@@ -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("./C_0XgQWvfYrvtAs-.js"), 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,8 +1,8 @@
|
|
|
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 { v as u, b as L, B as S, aO as A, aP as G } from "./
|
|
3
|
+
import { v as u, b as L, B as S, aO as A, aP as G } from "./RrzPm_vac0SNIlIE.js";
|
|
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.21
|
|
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.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Workbook as J } from "@sheetxl/sdk";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
const k = async (p, l) => {
|
|
9
|
+
const c = await p.toJSON(), b = l?.whiteSpace ?? 0;
|
|
10
|
+
let g;
|
|
11
|
+
l?.beforeWrite?.(p, c), g = b === 0 ? JSON.stringify(c) : function(i, r = 2) {
|
|
12
|
+
const n = [];
|
|
13
|
+
function s(o) {
|
|
14
|
+
const e = r * o;
|
|
15
|
+
return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
|
|
16
|
+
}
|
|
17
|
+
return function o(e, f, a, B) {
|
|
18
|
+
if (e == null || typeof e != "object") return JSON.stringify(e);
|
|
19
|
+
const A = s(f), d = s(f + 1);
|
|
20
|
+
if (Array.isArray(e)) {
|
|
21
|
+
const u = e.length;
|
|
22
|
+
if (u === 0) return "[]";
|
|
23
|
+
if (a !== 0) return JSON.stringify(e);
|
|
24
|
+
let y = `[
|
|
25
|
+
`;
|
|
26
|
+
for (let h = 0; h < u; h++) y += d + o(e[h], f + 1, a + 1, !0), h < u - 1 && (y += `,
|
|
27
|
+
`);
|
|
28
|
+
return y += `
|
|
29
|
+
` + A + "]", y;
|
|
30
|
+
}
|
|
31
|
+
const m = Object.keys(e), O = m.length;
|
|
32
|
+
if (O === 0) return "{}";
|
|
33
|
+
if (!(a < 2)) return JSON.stringify(e);
|
|
34
|
+
let S = `{
|
|
35
|
+
`;
|
|
36
|
+
B || (a = 0);
|
|
37
|
+
for (let u = 0; u < O; u++) {
|
|
38
|
+
const y = m[u];
|
|
39
|
+
S += d + JSON.stringify(y) + ": " + o(e[y], f + 1, a, !1), u < O - 1 && (S += `,
|
|
40
|
+
`);
|
|
41
|
+
}
|
|
42
|
+
return S += `
|
|
43
|
+
` + A + "}", S;
|
|
44
|
+
}(i, 0, 0, !1);
|
|
45
|
+
}(c, b);
|
|
46
|
+
let w = new TextEncoder().encode(g).buffer;
|
|
47
|
+
const t = l?.compress ?? !0;
|
|
48
|
+
return t && (w = await async function(i, r = "gzip") {
|
|
49
|
+
let n;
|
|
50
|
+
i instanceof SharedArrayBuffer ? (n = new ArrayBuffer(i.byteLength), new Uint8Array(n).set(new Uint8Array(i))) : n = i;
|
|
51
|
+
const s = new ReadableStream({ start(f) {
|
|
52
|
+
f.enqueue(n), f.close();
|
|
53
|
+
} }), o = new CompressionStream(r), e = s.pipeThrough(o);
|
|
54
|
+
return (await new Response(e).blob()).arrayBuffer();
|
|
55
|
+
}(w, typeof t == "string" ? t : void 0)), w;
|
|
56
|
+
}, z = async (p, l) => {
|
|
57
|
+
let c = p;
|
|
58
|
+
(function(t) {
|
|
59
|
+
if (t.byteLength < 4) return !1;
|
|
60
|
+
const i = new Uint8Array(t), r = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n = Object.keys(r);
|
|
61
|
+
for (let s = 0; s < n.length; s++) {
|
|
62
|
+
const o = n[s], e = r[o];
|
|
63
|
+
let f = !0;
|
|
64
|
+
for (let a = 0; a < e.length; a++) if (i[a] !== e[a]) {
|
|
65
|
+
f = !1;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
if (f) return o;
|
|
69
|
+
}
|
|
70
|
+
return !1;
|
|
71
|
+
})(c) && (c = await async function(t, i = "gzip") {
|
|
72
|
+
let r;
|
|
73
|
+
t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
|
|
74
|
+
const n = new Blob([r]).stream(), s = new DecompressionStream(i), o = n.pipeThrough(s);
|
|
75
|
+
return (await new Response(o).blob()).arrayBuffer();
|
|
76
|
+
}(c));
|
|
77
|
+
let b = new TextDecoder().decode(c);
|
|
78
|
+
const g = JSON.parse(b), w = { ...l?.constructorOptions ?? {}, json: g };
|
|
79
|
+
return new J(w);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
z as fromBufferJSON,
|
|
83
|
+
k as toBufferJSON
|
|
84
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-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.21
|
|
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("./RrzPm_vac0SNIlIE.js").then((e) => e.b6)]);
|
|
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.21
|
|
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 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 { v as f, b as S, B as U, F as P, T as D, a as l, ay as p } from "./
|
|
3
|
+
import { v as f, b as S, B as U, F as P, T as D, a as l, ay as p } from "./RrzPm_vac0SNIlIE.js";
|
|
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.21
|
|
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 E, useMemo as M, useState as x, useCallback as j } from "react";
|
|
3
|
-
import { v as r, b as S, B as V, F as $, T as z, a as h, ay as C } from "./
|
|
3
|
+
import { v as r, b as S, B as V, F as $, T as z, a as h, ay as C } from "./RrzPm_vac0SNIlIE.js";
|
|
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.21
|
|
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,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.3.
|
|
4
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.21
|
|
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.
|