@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 "./RrzPm_vac0SNIlIE.js";
|
|
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("./DLp1frYISl4S3Nl8.js"), numberFormat: () => import("./CNONDIHIjxm10COZ.js"), hyperlink: () => import("./KIp8V597sg7xVYj4.js"), comments: () => import("./QtO9WDOsu_ywkxD6.js"), find: () => import("./D1hnXRh-r0_SGcfM.js"), tableDetails: () => import("./j9H6seAceQPMZnP0.js"), tableNew: () => import("./BZLQc9DyICQtl3K7.js"), namedDetails: () => import("./Doy8xYr4ca73DDoT.js") }[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("./zFnIGjVJJCgdMPfT.js")), $ = 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 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 W, V, aM as k, aN as Q, v 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 "./
|
|
3
|
+
import { aL as W, V, aM as k, aN as Q, v 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 "./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 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 "./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,10 +1,10 @@
|
|
|
1
1
|
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
-
import { d as to, g as oo, u as no, s as ro, m as io, aT as Q, n as lo, p 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, H as ye, b0 as To, b1 as zo, b2 as K, b3 as Io, b4 as V, b5 as Po } from "./
|
|
2
|
+
import { d as to, g as oo, u as no, s as ro, m as io, aT as Q, n as lo, p 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, H as ye, b0 as To, b1 as zo, b2 as K, b3 as Io, b4 as V, b5 as Po } from "./RrzPm_vac0SNIlIE.js";
|
|
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 { f as N } from "./
|
|
5
|
+
import { f as N } 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.
|
|
@@ -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("./FeVOPB10QnZtmbE8.js").then((u) => {
|
|
2151
2151
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2152
|
});
|
|
2153
2153
|
}, [a]);
|
|
@@ -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.
|
package/cdn/index.js
CHANGED
|
@@ -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.
|
|
@@ -115,7 +115,7 @@ let c;
|
|
|
115
115
|
const b = async (e) => c || (c = await (async (n, t) => {
|
|
116
116
|
try {
|
|
117
117
|
if (t?.selector && C(t?.selector, t?.loading), !n) {
|
|
118
|
-
const { resolveDependencies: r } = await import("./assets/
|
|
118
|
+
const { resolveDependencies: r } = await import("./assets/FUpZ5kiCYNg9bMpN.js");
|
|
119
119
|
n = await r(t?.dependencies);
|
|
120
120
|
}
|
|
121
121
|
t?.licenseKey && await n.StudioMUI.LicenseManager.setLicenseKey(t.licenseKey), t?.selector && h(t?.selector);
|
package/cdn/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(e){typeof define=="function"&&define.amd?define(e):e()})(function(){"use strict";/**
|
|
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.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-vanilla",
|
|
3
3
|
"description": "SheetXL Studio - Vanilla entry point for integrating SheetXL UI.",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.21",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./browser/esm/index.mjs",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@mui/styled-engine": "^6.5.0",
|
|
42
42
|
"@mui/system": "^6.5.0",
|
|
43
43
|
"@mui/utils": "^6.4.9",
|
|
44
|
-
"@sheetxl/studio-mui": "^0.3.
|
|
44
|
+
"@sheetxl/studio-mui": "^0.3.21",
|
|
45
45
|
"csstype": "^3.1.3",
|
|
46
46
|
"http-server": "^14.1.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@sheetxl/sdk": "^0.3.
|
|
49
|
+
"@sheetxl/sdk": "^0.3.21",
|
|
50
50
|
"react": "^19.1.0",
|
|
51
51
|
"react-dom": "^19.1.0"
|
|
52
52
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ export declare type StandaloneWorkbookProps = StandaloneWorkbookProps_2;
|
|
|
138
138
|
/**
|
|
139
139
|
* Reference to StudioMUI module.
|
|
140
140
|
*
|
|
141
|
-
*
|
|
141
|
+
* [@sheetxl/studio-mui](../modules/_sheetxl_studio-mui.html)
|
|
142
142
|
*/
|
|
143
143
|
export declare type StudioMUIModule = sheetxlStudioMui;
|
|
144
144
|
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),a=require("react"),n=require("./DQu9kotW1g223yHH.cjs"),H=["Input"],L=a.memo(a.forwardRef((y,N)=>{const{initialValue:O="",onOption:b,onValidateOption:r,onInputOption:s,onValidateInputOption:l,onDone:u,inputProps:c,inputLabel:k,inputType:T,inputPlaceHolder:w,options:d=H,autoFocusSel:F=".autoFocus",cancelOption:g,defaultOption:m=d?.[0],...S}=y,[P,v]=a.useState(!1),[t,C]=a.useState(O),[I,j]=a.useState(""),[V,q]=a.useState(!0),i=n.kn(async(e,o)=>{if(!l)return!0;const h=await l?.(e,o);j(h?.message??"");const x=h?.valid??!0;return q(x),x},[l]),f=n.kn(async e=>{s?.(t,e)},[t,s,u,b,g,m]),B=n.kn(async e=>{e.keyCode===n.ir.Enter&&await i?.(t,null)},[t,f]),D=n.kn(e=>{C(e.target.value),i?.(e.target.value,null)},[r]),M=n.kn(async e=>{let o=await i(t,e);try{o!==!1&&(o=await i(t,e))}catch{}return o??!0},[t,r]);return p.jsx(n.b4,{options:d,onDone:u,onOption:(e,o)=>{o||f(e)},onValidateOption:M,cancelOption:g,defaultOption:m,autoFocusSel:F,...S,children:p.jsx(n.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:p.jsx(n.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:p.jsx(n.TextField,{onFocus:e=>{P||e.target?.select(),v(!0)},type:T,label:k,helperText:I||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:w,spellCheck:!1,autoComplete:"off",...c,className:n.Go("autoFocus",c?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${n.alpha("#fff",n.Yb(5))}, ${n.alpha("#fff",n.Yb(5))})`}}},value:t,onChange:D,onKeyDown:B,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=L;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("@sheetxl/sdk");exports.fromBufferJSON=async(g,y)=>{let i=g;(function(s){if(s.byteLength<4)return!1;const u=new Uint8Array(s),c={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},r=Object.keys(c);for(let n=0;n<r.length;n++){const o=r[n],e=c[o];let a=!0;for(let t=0;t<e.length;t++)if(u[t]!==e[t]){a=!1;break}if(a)return o}return!1})(i)&&(i=await async function(s,u="gzip"){const c=new Blob([s]).stream(),r=new DecompressionStream(u),n=c.pipeThrough(r);return(await new Response(n).blob()).arrayBuffer()}(i));let b=new TextDecoder().decode(i);const w=JSON.parse(b),p={...y?.constructorOptions??{},json:w};return new j.Workbook(p)},exports.toBufferJSON=async(g,y)=>{const i=await g.toJSON(),b=y?.whiteSpace??0;let w;y?.beforeWrite?.(g,i),w=b===0?JSON.stringify(i):function(u,c=2){const r=[];function n(o){const e=c*o;return r[e]===void 0&&(r[e]=" ".repeat(e)),r[e]}return function o(e,a,t,N){if(e==null||typeof e!="object")return JSON.stringify(e);const h=n(a),m=n(a+1);if(Array.isArray(e)){const f=e.length;if(f===0)return"[]";if(t!==0)return JSON.stringify(e);let l=`[
|
|
7
|
-
`;for(let O=0;O<f;O++)l+=m+o(e[O],a+1,t+1,!0),O<f-1&&(l+=`,
|
|
8
|
-
`);return l+=`
|
|
9
|
-
`+h+"]",l}const J=Object.keys(e),d=J.length;if(d===0)return"{}";if(!(t<2))return JSON.stringify(e);let S=`{
|
|
10
|
-
`;N||(t=0);for(let f=0;f<d;f++){const l=J[f];S+=m+JSON.stringify(l)+": "+o(e[l],a+1,t,!1),f<d-1&&(S+=`,
|
|
11
|
-
`)}return S+=`
|
|
12
|
-
`+h+"}",S}(u,0,0,!1)}(i,b);let p=new TextEncoder().encode(w);const s=y?.compress??!0;return s&&(p=await async function(u,c="gzip"){const r=new ReadableStream({start(e){e.enqueue(u),e.close()}}),n=new CompressionStream(c),o=r.pipeThrough(n);return(await new Response(o).blob()).arrayBuffer()}(p,typeof s=="string"?s:void 0)),p};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@sheetxl/sdk");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:g,constructorOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./gPTujfwB4RqxIcij.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new S.Workbook(h),c=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:S.IRange.Orientation.Row}),u=d?.onProgress;let e=0;const r={...i,transform:(n,f)=>{i?.transform&&(n=i.transform(n,f));const s=f;s===0&&p++;let l=n??"";return c.pushAt(p,s,l),e++,e%1e5==0&&u?.(e),n}};return o.parse(m,r).data,c.apply({textParser:!0,...g}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:g=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},p=await Promise.resolve().then(()=>require("./gPTujfwB4RqxIcij.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let c=null;const u=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!g){const s=i?r.getRowStart():0,l=g?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),y=l.getCell();c!==w.rowIndex&&(e&&u.push(e),e=[],c=w.rowIndex);const x=y.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&u.push(e);const n={...m},f=p.unparse(u,n);return new TextEncoder().encode(f)};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Workbook as k } from "@sheetxl/sdk";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
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 B = async (g, p) => {
|
|
9
|
-
const i = await g.toJSON(), w = p?.whiteSpace ?? 0;
|
|
10
|
-
let b;
|
|
11
|
-
p?.beforeWrite?.(g, i), b = w === 0 ? JSON.stringify(i) : function(a, c = 2) {
|
|
12
|
-
const r = [];
|
|
13
|
-
function n(o) {
|
|
14
|
-
const e = c * o;
|
|
15
|
-
return r[e] === void 0 && (r[e] = " ".repeat(e)), r[e];
|
|
16
|
-
}
|
|
17
|
-
return function o(e, u, t, d) {
|
|
18
|
-
if (e == null || typeof e != "object") return JSON.stringify(e);
|
|
19
|
-
const m = n(u), J = n(u + 1);
|
|
20
|
-
if (Array.isArray(e)) {
|
|
21
|
-
const f = e.length;
|
|
22
|
-
if (f === 0) return "[]";
|
|
23
|
-
if (t !== 0) return JSON.stringify(e);
|
|
24
|
-
let l = `[
|
|
25
|
-
`;
|
|
26
|
-
for (let O = 0; O < f; O++) l += J + o(e[O], u + 1, t + 1, !0), O < f - 1 && (l += `,
|
|
27
|
-
`);
|
|
28
|
-
return l += `
|
|
29
|
-
` + m + "]", l;
|
|
30
|
-
}
|
|
31
|
-
const N = Object.keys(e), h = N.length;
|
|
32
|
-
if (h === 0) return "{}";
|
|
33
|
-
if (!(t < 2)) return JSON.stringify(e);
|
|
34
|
-
let S = `{
|
|
35
|
-
`;
|
|
36
|
-
d || (t = 0);
|
|
37
|
-
for (let f = 0; f < h; f++) {
|
|
38
|
-
const l = N[f];
|
|
39
|
-
S += J + JSON.stringify(l) + ": " + o(e[l], u + 1, t, !1), f < h - 1 && (S += `,
|
|
40
|
-
`);
|
|
41
|
-
}
|
|
42
|
-
return S += `
|
|
43
|
-
` + m + "}", S;
|
|
44
|
-
}(a, 0, 0, !1);
|
|
45
|
-
}(i, w);
|
|
46
|
-
let y = new TextEncoder().encode(b);
|
|
47
|
-
const s = p?.compress ?? !0;
|
|
48
|
-
return s && (y = await async function(a, c = "gzip") {
|
|
49
|
-
const r = new ReadableStream({ start(e) {
|
|
50
|
-
e.enqueue(a), e.close();
|
|
51
|
-
} }), n = new CompressionStream(c), o = r.pipeThrough(n);
|
|
52
|
-
return (await new Response(o).blob()).arrayBuffer();
|
|
53
|
-
}(y, typeof s == "string" ? s : void 0)), y;
|
|
54
|
-
}, j = async (g, p) => {
|
|
55
|
-
let i = g;
|
|
56
|
-
(function(s) {
|
|
57
|
-
if (s.byteLength < 4) return !1;
|
|
58
|
-
const a = new Uint8Array(s), c = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, r = Object.keys(c);
|
|
59
|
-
for (let n = 0; n < r.length; n++) {
|
|
60
|
-
const o = r[n], e = c[o];
|
|
61
|
-
let u = !0;
|
|
62
|
-
for (let t = 0; t < e.length; t++) if (a[t] !== e[t]) {
|
|
63
|
-
u = !1;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
if (u) return o;
|
|
67
|
-
}
|
|
68
|
-
return !1;
|
|
69
|
-
})(i) && (i = await async function(s, a = "gzip") {
|
|
70
|
-
const c = new Blob([s]).stream(), r = new DecompressionStream(a), n = c.pipeThrough(r);
|
|
71
|
-
return (await new Response(n).blob()).arrayBuffer();
|
|
72
|
-
}(i));
|
|
73
|
-
let w = new TextDecoder().decode(i);
|
|
74
|
-
const b = JSON.parse(w), y = { ...p?.constructorOptions ?? {}, json: b };
|
|
75
|
-
return new k(y);
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
j as fromBufferJSON,
|
|
79
|
-
B as toBufferJSON
|
|
80
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { memo as j, forwardRef as z, useState as s } from "react";
|
|
3
|
-
import { k as n, i as E, b as G, B as K, F as R, T as W, a as x, G as Y, Y as y } from "./BjXzbYB0kCMhwN3Y.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
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 q = ["Input"], X = j(z((w, A) => {
|
|
11
|
-
const { initialValue: T = "", onOption: F, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: I, inputType: P, inputPlaceHolder: b, options: d = q, autoFocusSel: k = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...v } = w, [C, V] = s(!1), [o, B] = s(T), [D, S] = s(""), [H, L] = s(!0), e = n(async (a, t) => {
|
|
12
|
-
if (!p) return !0;
|
|
13
|
-
const h = await p?.(a, t);
|
|
14
|
-
S(h?.message ?? "");
|
|
15
|
-
const O = h?.valid ?? !0;
|
|
16
|
-
return L(O), O;
|
|
17
|
-
}, [p]), f = n(async (a) => {
|
|
18
|
-
l?.(o, a);
|
|
19
|
-
}, [o, l, u, F, g, m]), M = n(async (a) => {
|
|
20
|
-
a.keyCode === E.Enter && await e?.(o, null);
|
|
21
|
-
}, [o, f]), N = n((a) => {
|
|
22
|
-
B(a.target.value), e?.(a.target.value, null);
|
|
23
|
-
}, [r]), $ = n(async (a) => {
|
|
24
|
-
let t = await e(o, a);
|
|
25
|
-
try {
|
|
26
|
-
t !== !1 && (t = await e(o, a));
|
|
27
|
-
} catch {
|
|
28
|
-
}
|
|
29
|
-
return t ?? !0;
|
|
30
|
-
}, [o, r]);
|
|
31
|
-
return i(G, { options: d, onDone: u, onOption: (a, t) => {
|
|
32
|
-
t || f(a);
|
|
33
|
-
}, onValidateOption: $, cancelOption: g, defaultOption: m, autoFocusSel: k, ...v, children: i(K, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(R, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(W, { onFocus: (a) => {
|
|
34
|
-
C || a.target?.select(), V(!0);
|
|
35
|
-
}, type: P, label: I, helperText: D || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: b, spellCheck: !1, autoComplete: "off", ...c, className: Y("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: N, onKeyDown: M, onContextMenu: (a) => {
|
|
36
|
-
a.stopPropagation();
|
|
37
|
-
} }) }) }) });
|
|
38
|
-
}));
|
|
39
|
-
export {
|
|
40
|
-
X as default
|
|
41
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Workbook as k } from "@sheetxl/sdk";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
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 B = async (g, p) => {
|
|
9
|
-
const i = await g.toJSON(), w = p?.whiteSpace ?? 0;
|
|
10
|
-
let b;
|
|
11
|
-
p?.beforeWrite?.(g, i), b = w === 0 ? JSON.stringify(i) : function(a, c = 2) {
|
|
12
|
-
const r = [];
|
|
13
|
-
function n(o) {
|
|
14
|
-
const e = c * o;
|
|
15
|
-
return r[e] === void 0 && (r[e] = " ".repeat(e)), r[e];
|
|
16
|
-
}
|
|
17
|
-
return function o(e, u, t, d) {
|
|
18
|
-
if (e == null || typeof e != "object") return JSON.stringify(e);
|
|
19
|
-
const m = n(u), J = n(u + 1);
|
|
20
|
-
if (Array.isArray(e)) {
|
|
21
|
-
const f = e.length;
|
|
22
|
-
if (f === 0) return "[]";
|
|
23
|
-
if (t !== 0) return JSON.stringify(e);
|
|
24
|
-
let l = `[
|
|
25
|
-
`;
|
|
26
|
-
for (let O = 0; O < f; O++) l += J + o(e[O], u + 1, t + 1, !0), O < f - 1 && (l += `,
|
|
27
|
-
`);
|
|
28
|
-
return l += `
|
|
29
|
-
` + m + "]", l;
|
|
30
|
-
}
|
|
31
|
-
const N = Object.keys(e), h = N.length;
|
|
32
|
-
if (h === 0) return "{}";
|
|
33
|
-
if (!(t < 2)) return JSON.stringify(e);
|
|
34
|
-
let S = `{
|
|
35
|
-
`;
|
|
36
|
-
d || (t = 0);
|
|
37
|
-
for (let f = 0; f < h; f++) {
|
|
38
|
-
const l = N[f];
|
|
39
|
-
S += J + JSON.stringify(l) + ": " + o(e[l], u + 1, t, !1), f < h - 1 && (S += `,
|
|
40
|
-
`);
|
|
41
|
-
}
|
|
42
|
-
return S += `
|
|
43
|
-
` + m + "}", S;
|
|
44
|
-
}(a, 0, 0, !1);
|
|
45
|
-
}(i, w);
|
|
46
|
-
let y = new TextEncoder().encode(b);
|
|
47
|
-
const s = p?.compress ?? !0;
|
|
48
|
-
return s && (y = await async function(a, c = "gzip") {
|
|
49
|
-
const r = new ReadableStream({ start(e) {
|
|
50
|
-
e.enqueue(a), e.close();
|
|
51
|
-
} }), n = new CompressionStream(c), o = r.pipeThrough(n);
|
|
52
|
-
return (await new Response(o).blob()).arrayBuffer();
|
|
53
|
-
}(y, typeof s == "string" ? s : void 0)), y;
|
|
54
|
-
}, j = async (g, p) => {
|
|
55
|
-
let i = g;
|
|
56
|
-
(function(s) {
|
|
57
|
-
if (s.byteLength < 4) return !1;
|
|
58
|
-
const a = new Uint8Array(s), c = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, r = Object.keys(c);
|
|
59
|
-
for (let n = 0; n < r.length; n++) {
|
|
60
|
-
const o = r[n], e = c[o];
|
|
61
|
-
let u = !0;
|
|
62
|
-
for (let t = 0; t < e.length; t++) if (a[t] !== e[t]) {
|
|
63
|
-
u = !1;
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
if (u) return o;
|
|
67
|
-
}
|
|
68
|
-
return !1;
|
|
69
|
-
})(i) && (i = await async function(s, a = "gzip") {
|
|
70
|
-
const c = new Blob([s]).stream(), r = new DecompressionStream(a), n = c.pipeThrough(r);
|
|
71
|
-
return (await new Response(n).blob()).arrayBuffer();
|
|
72
|
-
}(i));
|
|
73
|
-
let w = new TextDecoder().decode(i);
|
|
74
|
-
const b = JSON.parse(w), y = { ...p?.constructorOptions ?? {}, json: b };
|
|
75
|
-
return new k(y);
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
j as fromBufferJSON,
|
|
79
|
-
B as toBufferJSON
|
|
80
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { memo as j, forwardRef as z, useState as s } from "react";
|
|
3
|
-
import { k as n, i as E, b as G, B as K, F as R, T as W, a as x, G as Y, Y as y } from "./DVoDFCX7Bv_zFVVi.js";
|
|
4
|
-
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.19
|
|
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 q = ["Input"], X = j(z((w, A) => {
|
|
11
|
-
const { initialValue: T = "", onOption: F, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: I, inputType: P, inputPlaceHolder: b, options: d = q, autoFocusSel: k = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...v } = w, [C, V] = s(!1), [o, B] = s(T), [D, S] = s(""), [H, L] = s(!0), e = n(async (a, t) => {
|
|
12
|
-
if (!p) return !0;
|
|
13
|
-
const h = await p?.(a, t);
|
|
14
|
-
S(h?.message ?? "");
|
|
15
|
-
const O = h?.valid ?? !0;
|
|
16
|
-
return L(O), O;
|
|
17
|
-
}, [p]), f = n(async (a) => {
|
|
18
|
-
l?.(o, a);
|
|
19
|
-
}, [o, l, u, F, g, m]), M = n(async (a) => {
|
|
20
|
-
a.keyCode === E.Enter && await e?.(o, null);
|
|
21
|
-
}, [o, f]), N = n((a) => {
|
|
22
|
-
B(a.target.value), e?.(a.target.value, null);
|
|
23
|
-
}, [r]), $ = n(async (a) => {
|
|
24
|
-
let t = await e(o, a);
|
|
25
|
-
try {
|
|
26
|
-
t !== !1 && (t = await e(o, a));
|
|
27
|
-
} catch {
|
|
28
|
-
}
|
|
29
|
-
return t ?? !0;
|
|
30
|
-
}, [o, r]);
|
|
31
|
-
return i(G, { options: d, onDone: u, onOption: (a, t) => {
|
|
32
|
-
t || f(a);
|
|
33
|
-
}, onValidateOption: $, cancelOption: g, defaultOption: m, autoFocusSel: k, ...v, children: i(K, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(R, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(W, { onFocus: (a) => {
|
|
34
|
-
C || a.target?.select(), V(!0);
|
|
35
|
-
}, type: P, label: I, helperText: D || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: b, spellCheck: !1, autoComplete: "off", ...c, className: Y("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: N, onKeyDown: M, onContextMenu: (a) => {
|
|
36
|
-
a.stopPropagation();
|
|
37
|
-
} }) }) }) });
|
|
38
|
-
}));
|
|
39
|
-
export {
|
|
40
|
-
X as default
|
|
41
|
-
};
|