@sheetxl/studio-vanilla 0.1.98
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/LICENSE.md +11 -0
- package/README.md +100 -0
- package/build/browser/cjs/1q6_3-jGNZllbF3R.cjs +6 -0
- package/build/browser/cjs/5KDindu3wyLVvG7F.cjs +6 -0
- package/build/browser/cjs/87m5i_TKPbDn6tke.cjs +30 -0
- package/build/browser/cjs/B0L2YQ9agsyHWOu2.cjs +6 -0
- package/build/browser/cjs/B3HvYH5kqySWdJ0f.cjs +6 -0
- package/build/browser/cjs/B6AOUko0HYRy2MPw.cjs +6 -0
- package/build/browser/cjs/BC5MKXBhHGdPeiJ3.cjs +21 -0
- package/build/browser/cjs/BG0RxkPyZY6Be7Lk.cjs +6 -0
- package/build/browser/cjs/BJsJYwvFiJBFxTov.cjs +6 -0
- package/build/browser/cjs/BMVMyi5NiMBuQrl9.cjs +52 -0
- package/build/browser/cjs/BS_QXQWoKRl_7MiR.cjs +17 -0
- package/build/browser/cjs/BZPhmHWsFBTIA3BQ.cjs +210 -0
- package/build/browser/cjs/B_5ro-VEKfZDMSn_.cjs +6 -0
- package/build/browser/cjs/B_c3i0fXSlX7dH12.cjs +1521 -0
- package/build/browser/cjs/BarieqwSecnaFn0d.cjs +6 -0
- package/build/browser/cjs/BfNo_1u55uW2HhAa.cjs +6 -0
- package/build/browser/cjs/Bl6FyLoMkFiQqhvc.cjs +7 -0
- package/build/browser/cjs/Bsyzteo6tD31A45e.cjs +11 -0
- package/build/browser/cjs/Btzizuqo7zQ_grdS.cjs +16 -0
- package/build/browser/cjs/BxBOlXY9P3Ymi6oT.cjs +6 -0
- package/build/browser/cjs/C0AP85yKTJU5XzPW.cjs +6 -0
- package/build/browser/cjs/C0Pjx18ua-OCdtpy.cjs +6 -0
- package/build/browser/cjs/CA2wSX6txFrM5nXD.cjs +6 -0
- package/build/browser/cjs/CB3jEtNo5ZsjfE5p.cjs +6 -0
- package/build/browser/cjs/CDiYZ1cSoLW8U5Mz.cjs +6 -0
- package/build/browser/cjs/CHD5c5FdcMm6vLyG.cjs +155 -0
- package/build/browser/cjs/COCpf8tSdkj2O19V.cjs +134 -0
- package/build/browser/cjs/CTV1KRGhkieiY4Rf.cjs +42 -0
- package/build/browser/cjs/CUw8AoM-rVbp1W3s.cjs +6 -0
- package/build/browser/cjs/CVTydWBioXRZeoNf.cjs +6 -0
- package/build/browser/cjs/C_uXPPlfjY68-QA8.cjs +6 -0
- package/build/browser/cjs/CaNR-X0TWW9OF1S0.cjs +33 -0
- package/build/browser/cjs/CiySKEsfDr8XnkZh.cjs +6 -0
- package/build/browser/cjs/CtBikymnhpcCzP3X.cjs +6 -0
- package/build/browser/cjs/CyF7bxA0DO13ETpx.cjs +30 -0
- package/build/browser/cjs/D-vkFAlNHXwUvmUT.cjs +16 -0
- package/build/browser/cjs/D2OU29-ZPOAWFVJB.cjs +22 -0
- package/build/browser/cjs/DFX31uXp449or-Xs.cjs +6 -0
- package/build/browser/cjs/DLqNXuHYff_kQuj1.cjs +6 -0
- package/build/browser/cjs/DMKZDMHHXLePvLy3.cjs +524 -0
- package/build/browser/cjs/DP8biA0GQqyPKLyq.cjs +6 -0
- package/build/browser/cjs/DcYrNx0uy99yQNMl.cjs +21 -0
- package/build/browser/cjs/Dcyg_YxTfBgi_6cp.cjs +26 -0
- package/build/browser/cjs/DeR9YbwO2xDBKVWN.cjs +21 -0
- package/build/browser/cjs/DfNbgyjaLMn81dqP.cjs +6 -0
- package/build/browser/cjs/DirazCTz5IsFWrUv.cjs +22 -0
- package/build/browser/cjs/Dix4vuDuOzj4WGCJ.cjs +19 -0
- package/build/browser/cjs/DqbTRjj97q78RuGC.cjs +6 -0
- package/build/browser/cjs/Dy28YI90qj65PHFO.cjs +17 -0
- package/build/browser/cjs/Nkl33Tt1_oEy9kjk.cjs +6 -0
- package/build/browser/cjs/S1S-AvD0w8s-LV8O.cjs +6 -0
- package/build/browser/cjs/bnPgbgGBTq7DESzd.cjs +6 -0
- package/build/browser/cjs/d9tJGmGw-3KZjpAx.cjs +17 -0
- package/build/browser/cjs/dke2gbIUS44QXwEl.cjs +6 -0
- package/build/browser/cjs/index.cjs +6 -0
- package/build/browser/cjs/mPpQR06-jf99r2jM.cjs +6 -0
- package/build/browser/cjs/wq0Sm3fu9rxt43OK.cjs +6 -0
- package/build/browser/cjs/xM54FRmGddZFVTTI.cjs +6 -0
- package/build/browser/cjs/xgGpGg5b8fu3GAnL.cjs +33 -0
- package/build/browser/esm/1Jl9rrRJdbPsUP_1.mjs +13222 -0
- package/build/browser/esm/3RX6dP_O-47yXKHQ.mjs +1492 -0
- package/build/browser/esm/5F5MTh8R-sIiPq0h.mjs +22 -0
- package/build/browser/esm/B3_l6_TLa9ImyRmW.mjs +5572 -0
- package/build/browser/esm/B7odLLxNfEmKGWX6.mjs +49 -0
- package/build/browser/esm/BAjCWyggrIkCz6wr.mjs +22 -0
- package/build/browser/esm/BE4io65W825i_dzC.mjs +58 -0
- package/build/browser/esm/BEZ41ST3hkC4W-_9.mjs +22 -0
- package/build/browser/esm/BKkD05hqNTBap4Oc.mjs +22 -0
- package/build/browser/esm/BOiR2dTlvcgYjz8P.mjs +402 -0
- package/build/browser/esm/BOjAZRs_NVerYv4t.mjs +22 -0
- package/build/browser/esm/BRkMPyIUXMixnL8d.mjs +22 -0
- package/build/browser/esm/BSS_RvWzDRX8_EJd.mjs +1684 -0
- package/build/browser/esm/BXC9rQVV2gq5x8br.mjs +22 -0
- package/build/browser/esm/BYmMkbrRTsNuR3aY.mjs +1358 -0
- package/build/browser/esm/BaSzK17p3_gCvNVV.mjs +24 -0
- package/build/browser/esm/BdtlmF31h4Y7RgUj.mjs +22 -0
- package/build/browser/esm/Be3zRnYQ13HUcsRW.mjs +150 -0
- package/build/browser/esm/BiSk8LRROMF0Bl4-.mjs +92 -0
- package/build/browser/esm/BlfHOASL_bJ6Hy0y.mjs +40 -0
- package/build/browser/esm/C-jC-wgAoMOxrVvv.mjs +1377 -0
- package/build/browser/esm/C0Lw5hMgKbooA6Jl.mjs +22 -0
- package/build/browser/esm/C32FpMEFLbDnBtO3.mjs +22 -0
- package/build/browser/esm/C9uN8RnLjnGSimTA.mjs +439 -0
- package/build/browser/esm/CB0UHheTgg0735hj.mjs +52 -0
- package/build/browser/esm/CU55zbw8Xbwap6Tl.mjs +22 -0
- package/build/browser/esm/CWRCdxOg103AFis3.mjs +3926 -0
- package/build/browser/esm/CpJdzwQYkBw7IPnN.mjs +22 -0
- package/build/browser/esm/CprFmxuwGvaUtLG2.mjs +22 -0
- package/build/browser/esm/CtZxtE4tRmMGFT5o.mjs +22 -0
- package/build/browser/esm/D-Oj36iQScXAKSMA.mjs +53 -0
- package/build/browser/esm/D2yyUr4KbJEFsxKC.mjs +21 -0
- package/build/browser/esm/D8HF2X8hvAkV29oq.mjs +55 -0
- package/build/browser/esm/DCauh523moR7slpq.mjs +22 -0
- package/build/browser/esm/DIA-Gy5mdjefjUaA.mjs +22 -0
- package/build/browser/esm/DJjdfX9aUyVGMkri.mjs +47 -0
- package/build/browser/esm/DMWb8cCaNVRcm-tT.mjs +2352 -0
- package/build/browser/esm/DP7HVKT0w_4L2vMQ.mjs +844 -0
- package/build/browser/esm/DToiYU1jffn1g7TH.mjs +639 -0
- package/build/browser/esm/DgSuz0WKGy36a2cp.mjs +22 -0
- package/build/browser/esm/Dgw3FTbNKuo2CIxP.mjs +22 -0
- package/build/browser/esm/DnV_Y9xoMPSav0-o.mjs +56 -0
- package/build/browser/esm/Do7pHqmnwO45_ymt.mjs +22 -0
- package/build/browser/esm/DqvZDTDIyX-qv4r9.mjs +29 -0
- package/build/browser/esm/Ds8V__cRAClpmjZn.mjs +1714 -0
- package/build/browser/esm/DtQdtXJDZgNEIz9d.mjs +440 -0
- package/build/browser/esm/DtpBQqwK7XXBMTB-.mjs +1598 -0
- package/build/browser/esm/DuzJ1k0LbZ29l8oN.mjs +945 -0
- package/build/browser/esm/Dxl4WJXcEhDAw_yE.mjs +42 -0
- package/build/browser/esm/LblYfFi1ns9H1ueN.mjs +28 -0
- package/build/browser/esm/NBkvFJzfLU32Pkup.mjs +496 -0
- package/build/browser/esm/SrBQAOpMKiDW0mGB.mjs +22 -0
- package/build/browser/esm/VLa1cYMb7h6UD253.mjs +64 -0
- package/build/browser/esm/YOEDF-U1QTzbXeMV.mjs +3826 -0
- package/build/browser/esm/a3tuiJ83MwzLMWaL.mjs +22 -0
- package/build/browser/esm/ai2Jw3PRL29E1T8h.mjs +22 -0
- package/build/browser/esm/ajBoEmoL9hCBQYYm.mjs +2175 -0
- package/build/browser/esm/index.mjs +13 -0
- package/build/browser/esm/k9kWmEk0ZT8y9Gii.mjs +48740 -0
- package/build/cdn/assets/1Jl9rrRJdbPsUP_1.js +13222 -0
- package/build/cdn/assets/4u46flV9M6Bwb7d3.js +29 -0
- package/build/cdn/assets/5F5MTh8R-sIiPq0h.js +22 -0
- package/build/cdn/assets/B3oMCEEls1lRVrGd.js +5572 -0
- package/build/cdn/assets/B4QYfmNd300iFLAx.js +945 -0
- package/build/cdn/assets/BAjCWyggrIkCz6wr.js +22 -0
- package/build/cdn/assets/BEZ41ST3hkC4W-_9.js +22 -0
- package/build/cdn/assets/BJIsFTUdHtUKsFJs.js +28 -0
- package/build/cdn/assets/BKkD05hqNTBap4Oc.js +22 -0
- package/build/cdn/assets/BOiR2dTlvcgYjz8P.js +402 -0
- package/build/cdn/assets/BOjAZRs_NVerYv4t.js +22 -0
- package/build/cdn/assets/BPFW3UexkNNh1lLK.js +2352 -0
- package/build/cdn/assets/BRkMPyIUXMixnL8d.js +22 -0
- package/build/cdn/assets/BSS_RvWzDRX8_EJd.js +1684 -0
- package/build/cdn/assets/BXC9rQVV2gq5x8br.js +22 -0
- package/build/cdn/assets/BY2sO3ExW1ShzKnX.js +1714 -0
- package/build/cdn/assets/BYmMkbrRTsNuR3aY.js +1358 -0
- package/build/cdn/assets/BaSzK17p3_gCvNVV.js +24 -0
- package/build/cdn/assets/BbpmcI-KEp3PqrdL.js +496 -0
- package/build/cdn/assets/BdtlmF31h4Y7RgUj.js +22 -0
- package/build/cdn/assets/BjgtkLR9U00HgSRn.js +58 -0
- package/build/cdn/assets/BlfHOASL_bJ6Hy0y.js +40 -0
- package/build/cdn/assets/C-jC-wgAoMOxrVvv.js +1377 -0
- package/build/cdn/assets/C0Lw5hMgKbooA6Jl.js +22 -0
- package/build/cdn/assets/C32FpMEFLbDnBtO3.js +22 -0
- package/build/cdn/assets/C7CDwp-nhN2WFzUs.js +844 -0
- package/build/cdn/assets/C9uN8RnLjnGSimTA.js +439 -0
- package/build/cdn/assets/CEq_C1Sim0pQ6fj0.js +56 -0
- package/build/cdn/assets/CLdcRW7BQK3JCguC.js +48587 -0
- package/build/cdn/assets/CU55zbw8Xbwap6Tl.js +22 -0
- package/build/cdn/assets/C_L_pvQemfhI00iS.js +150 -0
- package/build/cdn/assets/CkhSGQneqlTRflfQ.js +47 -0
- package/build/cdn/assets/CpJdzwQYkBw7IPnN.js +22 -0
- package/build/cdn/assets/CprFmxuwGvaUtLG2.js +22 -0
- package/build/cdn/assets/CtZxtE4tRmMGFT5o.js +22 -0
- package/build/cdn/assets/CvbyGDitUPabmYBl.js +64 -0
- package/build/cdn/assets/D06aHumWZLILF489.js +3926 -0
- package/build/cdn/assets/D2pceTwrS_dagByu.js +21 -0
- package/build/cdn/assets/D4ZBjoUG2QO1RO3t.js +1492 -0
- package/build/cdn/assets/DARyg_kqL8Eu81Fa.js +2175 -0
- package/build/cdn/assets/DCauh523moR7slpq.js +22 -0
- package/build/cdn/assets/DIA-Gy5mdjefjUaA.js +22 -0
- package/build/cdn/assets/DLHK1pMyNN3B2g-j.js +52 -0
- package/build/cdn/assets/DMoEzt3UKZedfext.js +1598 -0
- package/build/cdn/assets/DMwOymY267-LxmJ_.js +49 -0
- package/build/cdn/assets/DToiYU1jffn1g7TH.js +639 -0
- package/build/cdn/assets/DUUO52IRQCve_iCM.js +440 -0
- package/build/cdn/assets/DgSuz0WKGy36a2cp.js +22 -0
- package/build/cdn/assets/Dgw3FTbNKuo2CIxP.js +22 -0
- package/build/cdn/assets/Do7pHqmnwO45_ymt.js +22 -0
- package/build/cdn/assets/Dxl4WJXcEhDAw_yE.js +42 -0
- package/build/cdn/assets/QXzPuadwi3BBJC2-.js +53 -0
- package/build/cdn/assets/SrBQAOpMKiDW0mGB.js +22 -0
- package/build/cdn/assets/W3SqjN4yIzwYTvvj.js +55 -0
- package/build/cdn/assets/YOEDF-U1QTzbXeMV.js +3826 -0
- package/build/cdn/assets/a3tuiJ83MwzLMWaL.js +22 -0
- package/build/cdn/assets/ai2Jw3PRL29E1T8h.js +22 -0
- package/build/cdn/assets/fWcbv7BXhriCYeod.js +92 -0
- package/build/cdn/index.js +171 -0
- package/build/cdn/loader.js +6 -0
- package/build/licenses/dependencies.txt +1 -0
- package/build/package.json +61 -0
- package/build/types/index.d.ts +151 -0
- package/package.json +92 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
15
|
+
*
|
|
16
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @license @sheetxl/scripting - SheetXL scripting utilities including TypeScript compilation. - v0.0.0
|
|
21
|
+
*
|
|
22
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
23
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
24
|
+
*/
|
|
25
|
+
let e = null;
|
|
26
|
+
async function r() {
|
|
27
|
+
return e || (e = new Promise(async (o, l) => {
|
|
28
|
+
try {
|
|
29
|
+
const i = "0.20.2", n = `https://esm.sh/esbuild-wasm@${i}`, s = `https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`;
|
|
30
|
+
console.log("🔄 Initializing esbuild...", s);
|
|
31
|
+
const a = await import(n);
|
|
32
|
+
console.log("🔄 Got esm...", s);
|
|
33
|
+
const t = a.default;
|
|
34
|
+
await t.initialize({ wasmURL: s, worker: !1 }), console.log("🔄 Initialized esm...", s), o(t);
|
|
35
|
+
} catch (i) {
|
|
36
|
+
console.error("Error initializing esbuild:", i), l(i);
|
|
37
|
+
}
|
|
38
|
+
}), e);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
r as initialize
|
|
42
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as o, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { memo as T, useState as i, useCallback as k } from "react";
|
|
3
|
+
import { a7 as w, d as j, B as v, bo as y, b1 as B, b2 as F } from "./k9kWmEk0ZT8y9Gii.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
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
|
+
/**
|
|
11
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
12
|
+
*
|
|
13
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
14
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
15
|
+
*/
|
|
16
|
+
const H = ["Ok", "Cancel"], G = T((u) => {
|
|
17
|
+
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 = w((a) => {
|
|
18
|
+
const g = { ...e, hasHeader: n, ranges: l };
|
|
19
|
+
c?.(a, a === s, a === t), r?.({ option: a, tableOptions: g });
|
|
20
|
+
}, [r, c, t, s, n, l, e]), D = k(async (a, g) => null, []);
|
|
21
|
+
return o(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: D, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...b, children: N(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) => {
|
|
22
|
+
h || a.target?.select(), x(!0);
|
|
23
|
+
} }), o(B, { control: o(F, { checked: n, onChange: () => O(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
G as TableNewDialog,
|
|
27
|
+
G as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { $ as he } from "./DP7HVKT0w_4L2vMQ.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
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
|
+
/**
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
10
|
+
*
|
|
11
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
16
|
+
*
|
|
17
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
18
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @license @sheetxl/scripting - SheetXL scripting utilities including TypeScript compilation. - v0.0.0
|
|
22
|
+
*
|
|
23
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
24
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @license @sheetxl/primitives - Primitive - Base types for SheetXL functions. - v0.0.0
|
|
28
|
+
*
|
|
29
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
30
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
31
|
+
*/
|
|
32
|
+
var se, q, r;
|
|
33
|
+
(q = se || (se = {})).Orientation = { Column: "column", Row: "row" }, q.Orientations = { ...q.Orientation, Both: "both" }, q.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
34
|
+
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
35
|
+
class a extends Error {
|
|
36
|
+
constructor(n, i, S, J) {
|
|
37
|
+
super(S, J), this._label = i, this._code = n, this.details = J;
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.code = e.Code.Unknown;
|
|
41
|
+
}
|
|
42
|
+
get isFormulaError() {
|
|
43
|
+
return !0;
|
|
44
|
+
}
|
|
45
|
+
getLabel() {
|
|
46
|
+
return this._label;
|
|
47
|
+
}
|
|
48
|
+
getCode() {
|
|
49
|
+
return this._code;
|
|
50
|
+
}
|
|
51
|
+
equals(n) {
|
|
52
|
+
return !!n && (this._code === n._code || this._code === n.code);
|
|
53
|
+
}
|
|
54
|
+
get [Symbol.toStringTag]() {
|
|
55
|
+
return "[FormulaError]";
|
|
56
|
+
}
|
|
57
|
+
toString() {
|
|
58
|
+
return this.message || this._label;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
e.Known = a;
|
|
62
|
+
class T extends a {
|
|
63
|
+
constructor(n, i) {
|
|
64
|
+
super(e.Code.Parse, e.Label.Parse, n, i);
|
|
65
|
+
}
|
|
66
|
+
static {
|
|
67
|
+
this.code = e.Code.Parse;
|
|
68
|
+
}
|
|
69
|
+
getDetails() {
|
|
70
|
+
const n = this.details;
|
|
71
|
+
return { line: n?.line ?? 1, column: n?.column ?? 1, offset: n?.offset ?? 0, length: n?.length ?? 0 };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
e.Parse = T;
|
|
75
|
+
class x extends a {
|
|
76
|
+
constructor(n, i) {
|
|
77
|
+
super(e.Code.Null, e.Label.Null, n, i);
|
|
78
|
+
}
|
|
79
|
+
static {
|
|
80
|
+
this.code = e.Code.Null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
e.Null = x;
|
|
84
|
+
class j extends a {
|
|
85
|
+
constructor(n, i) {
|
|
86
|
+
super(e.Code.Div0, e.Label.Div0, n, i);
|
|
87
|
+
}
|
|
88
|
+
static {
|
|
89
|
+
this.code = e.Code.Div0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
e.Div0 = j;
|
|
93
|
+
class X extends a {
|
|
94
|
+
constructor(n, i) {
|
|
95
|
+
super(e.Code.Value, e.Label.Value, n, i);
|
|
96
|
+
}
|
|
97
|
+
static {
|
|
98
|
+
this.code = e.Code.Value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
e.Value = X;
|
|
102
|
+
class s extends a {
|
|
103
|
+
constructor(n, i) {
|
|
104
|
+
super(e.Code.Ref, e.Label.Ref, n, i);
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
this.code = e.Code.Ref;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
e.Ref = s;
|
|
111
|
+
class K extends a {
|
|
112
|
+
constructor(n, i) {
|
|
113
|
+
super(e.Code.Name, e.Label.Name, n, i);
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
this.code = e.Code.Name;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
e.Name = K;
|
|
120
|
+
class U extends a {
|
|
121
|
+
constructor(n, i) {
|
|
122
|
+
super(e.Code.Num, e.Label.Num, n, i);
|
|
123
|
+
}
|
|
124
|
+
static {
|
|
125
|
+
this.code = e.Code.Num;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
e.Num = U;
|
|
129
|
+
class z extends a {
|
|
130
|
+
constructor(n, i) {
|
|
131
|
+
super(e.Code.NA, e.Label.NA, n, i);
|
|
132
|
+
}
|
|
133
|
+
static {
|
|
134
|
+
this.code = e.Code.NA;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
e.NA = z;
|
|
138
|
+
class Y extends a {
|
|
139
|
+
constructor(n, i) {
|
|
140
|
+
super(e.Code.GettingData, e.Label.GettingData, n, i);
|
|
141
|
+
}
|
|
142
|
+
static {
|
|
143
|
+
this.code = e.Code.GettingData;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
e.GettingData = Y;
|
|
147
|
+
class M extends a {
|
|
148
|
+
constructor(n, i) {
|
|
149
|
+
super(e.Code.Spill, e.Label.Spill, n, i);
|
|
150
|
+
}
|
|
151
|
+
static {
|
|
152
|
+
this.code = e.Code.Spill;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
e.Spill = M;
|
|
156
|
+
class I extends a {
|
|
157
|
+
constructor(n, i) {
|
|
158
|
+
super(e.Code.Connect, e.Label.Connect, n, i);
|
|
159
|
+
}
|
|
160
|
+
static {
|
|
161
|
+
this.code = e.Code.Connect;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
e.Connect = I;
|
|
165
|
+
class G extends a {
|
|
166
|
+
constructor(n, i) {
|
|
167
|
+
super(e.Code.Blocked, e.Label.Blocked, n, i);
|
|
168
|
+
}
|
|
169
|
+
static {
|
|
170
|
+
this.code = e.Code.Blocked;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
e.Blocked = G;
|
|
174
|
+
class _ extends a {
|
|
175
|
+
constructor(n, i) {
|
|
176
|
+
super(e.Code.Unknown, e.Label.Unknown, n, i);
|
|
177
|
+
}
|
|
178
|
+
static {
|
|
179
|
+
this.code = e.Code.Unknown;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
e.Unknown = _;
|
|
183
|
+
class F extends a {
|
|
184
|
+
constructor(n, i) {
|
|
185
|
+
super(e.Code.Field, e.Label.Field, n, i);
|
|
186
|
+
}
|
|
187
|
+
static {
|
|
188
|
+
this.code = e.Code.Field;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
e.Field = F;
|
|
192
|
+
class Q extends a {
|
|
193
|
+
constructor(n, i) {
|
|
194
|
+
super(e.Code.Calc, e.Label.Calc, n, i);
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
this.code = e.Code.Calc;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
e.Calc = Q;
|
|
201
|
+
class O extends a {
|
|
202
|
+
constructor(n, i) {
|
|
203
|
+
super(e.Code.Busy, e.Label.Busy, n, i);
|
|
204
|
+
}
|
|
205
|
+
static {
|
|
206
|
+
this.code = e.Code.Busy;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
e.Busy = O;
|
|
210
|
+
class P extends a {
|
|
211
|
+
constructor(n, i) {
|
|
212
|
+
super(e.Code.Python, e.Label.Python, n, i);
|
|
213
|
+
}
|
|
214
|
+
static {
|
|
215
|
+
this.code = e.Code.Python;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
e.Python = P;
|
|
219
|
+
class Z extends a {
|
|
220
|
+
constructor(n, i) {
|
|
221
|
+
super(e.Code.Timeout, e.Label.Timeout, n, i);
|
|
222
|
+
}
|
|
223
|
+
static {
|
|
224
|
+
this.code = e.Code.Timeout;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
e.Timeout = Z;
|
|
228
|
+
})(r || (r = {}));
|
|
229
|
+
const f = {};
|
|
230
|
+
f[r.Code.Parse] = r.Parse, f[r.Code.Null] = r.Null, f[r.Code.Div0] = r.Div0, f[r.Code.Value] = r.Value, f[r.Code.Ref] = r.Ref, f[r.Code.Name] = r.Name, f[r.Code.Num] = r.Num, f[r.Code.NA] = r.NA, f[r.Code.GettingData] = r.GettingData, f[r.Code.Spill] = r.Spill, f[r.Code.Connect] = r.Connect, f[r.Code.Blocked] = r.Blocked, f[r.Code.Unknown] = r.Unknown, f[r.Code.Field] = r.Field, f[r.Code.Calc] = r.Calc, f[r.Code.Busy] = r.Busy, f[r.Code.Python] = r.Python, f[r.Code.Timeout] = r.Timeout;
|
|
231
|
+
const ce = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map(), le = Object.keys(f);
|
|
232
|
+
for (let e = 0; e < le.length; e++) {
|
|
233
|
+
const a = le[e], T = f[a];
|
|
234
|
+
de.set(r.Label[a], T), ue.set(r.Code[a], T);
|
|
235
|
+
const x = new T();
|
|
236
|
+
ce.set(x.getLabel(), x), ie.set(x.getCode(), x);
|
|
237
|
+
}
|
|
238
|
+
const ge = ie.get(r.Code.Unknown);
|
|
239
|
+
var p;
|
|
240
|
+
(p = r || (r = {})).BuiltIn = { Parse: new p.Parse(), Null: new p.Null(), Div0: new p.Div0(), Value: new p.Value(), Ref: new p.Ref(), Name: new p.Name(), Num: new p.Num(), NA: new p.NA(), GettingData: new p.GettingData(), Spill: new p.Spill(), Connect: new p.Connect(), Blocked: new p.Blocked(), Unknown: new p.Unknown(), Field: new p.Field(), Calc: new p.Calc(), Busy: new p.Busy(), Python: new p.Python(), Timeout: new p.Timeout() }, p.getBuiltInByLabel = (e) => ce.get(e), p.newTypedError = (e, a, T) => {
|
|
241
|
+
let x;
|
|
242
|
+
return x = typeof e == "string" ? de.get(e) : ue.get(e), x || (x = p.Unknown), new x(a, T);
|
|
243
|
+
}, p.getBuiltInById = (e) => ie.get(e) || ge;
|
|
244
|
+
let A = null, H = null;
|
|
245
|
+
const we = { compilerOptions: { target: "esnext" } }, Ce = async () => `
|
|
246
|
+
interface FirstTest {
|
|
247
|
+
isTrue?: boolean;
|
|
248
|
+
}
|
|
249
|
+
`, pe = /* @__PURE__ */ new Map([["IReferenceRange", "r"], ["IRange", "l"]]), me = /* @__PURE__ */ new Map([["IWorkbook", "workbook"], ["ISheet", "sheet"], ["ICellRanges", "ranges"], ["ICellRange", "range"], ["IFormulaContext", "context"]]), ne = (e, a) => {
|
|
250
|
+
Array.from(a.keys()).forEach((T) => {
|
|
251
|
+
const x = a.get(T);
|
|
252
|
+
a.set(`${e}.${T}`, x);
|
|
253
|
+
});
|
|
254
|
+
}, xe = /* @__PURE__ */ new Map([["Scalar", "*"], ["FormulaError.Known", "e"], ["Date", "Date"], ["JSON", "JSON"]]), be = /* @__PURE__ */ new Map([]), oe = "SheetXL";
|
|
255
|
+
ne(oe, pe), ne(oe, me), ne(oe, be);
|
|
256
|
+
const ke = /* @__PURE__ */ new Map([["Promise", () => ({ async: !0 })], ["Observable", () => ({ stream: !0 })]]);
|
|
257
|
+
let W = null;
|
|
258
|
+
async function Te() {
|
|
259
|
+
if (W) return W;
|
|
260
|
+
try {
|
|
261
|
+
return await (await import("./BlfHOASL_bJ6Hy0y.mjs")).initialize();
|
|
262
|
+
} catch (e) {
|
|
263
|
+
throw W = null, e;
|
|
264
|
+
} finally {
|
|
265
|
+
W = null;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async function Se(e) {
|
|
269
|
+
const a = e?.source ?? null;
|
|
270
|
+
if (!a) return null;
|
|
271
|
+
const T = (e.disableBundle || e.declarationsOnly) ?? !1, x = [Ce(), Te()], j = await Promise.all(x), X = j[0], s = j[1];
|
|
272
|
+
let K = "", U = null;
|
|
273
|
+
const z = [], Y = { allowJs: !0, declaration: !1, sourceMap: !1, inlineSourceMap: !1, inlineSources: !1, isolatedModules: !0, preserveConstEnums: !1, module: 99, noResolve: !0, emitDeclarationOnly: !1, target: s.ScriptTarget.ES2020 }, M = "script", I = `${M}.ts`, G = "lib.d.ts", _ = "global.d.ts", F = { [I]: a, [G]: `
|
|
274
|
+
/**
|
|
275
|
+
* Represents the completion of an asynchronous operation
|
|
276
|
+
*/
|
|
277
|
+
interface Promise<T> {
|
|
278
|
+
/**
|
|
279
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
280
|
+
* resolved value cannot be modified from the callback.
|
|
281
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
282
|
+
* @returns A Promise for the completion of the callback.
|
|
283
|
+
*/
|
|
284
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
285
|
+
}
|
|
286
|
+
`, [_]: X }, Q = { getSourceFile: (t, d, E, l) => s.createSourceFile(t, F[t], s.ScriptTarget.Latest, !0), fileExists: (t) => F[t] !== void 0, readFile: (t) => F[t], writeFile: (t, d) => {
|
|
287
|
+
F[t] = d;
|
|
288
|
+
}, getCurrentDirectory: () => "./", getCanonicalFileName: (t) => t, useCaseSensitiveFileNames: () => !0, getDefaultLibFileName: (t) => G, getNewLine: () => `
|
|
289
|
+
` }, O = s.createProgram([I, _], Y, Q), P = O.getTypeChecker(), Z = O.getSourceFile(I), y = O.emit();
|
|
290
|
+
y.diagnostics.length > 0 && console.warn(y.diagnostics), K = F[`${M}.js`];
|
|
291
|
+
const n = (t, d, E, l) => {
|
|
292
|
+
if (t) {
|
|
293
|
+
if (t.kind === s.SyntaxKind.NumberKeyword) d.scalar = "n";
|
|
294
|
+
else if (t.kind === s.SyntaxKind.StringKeyword) d.scalar = "s";
|
|
295
|
+
else if (t.kind === s.SyntaxKind.BooleanKeyword) d.scalar = "b";
|
|
296
|
+
else if (t.kind === s.SyntaxKind.UndefinedKeyword || t.kind === s.SyntaxKind.NullKeyword || t.kind === s.SyntaxKind.VoidKeyword) {
|
|
297
|
+
if (l) return void S(t, new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));
|
|
298
|
+
d.scalar = "z";
|
|
299
|
+
} else if (t.kind === s.SyntaxKind.BigIntKeyword) d.scalar = "n";
|
|
300
|
+
else if (t.kind === s.SyntaxKind.AnyKeyword) d.scalar = "z";
|
|
301
|
+
else if (t.kind === s.SyntaxKind.ArrayType) {
|
|
302
|
+
const c = t.elementType;
|
|
303
|
+
if (!c) return void S(t, new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));
|
|
304
|
+
d.arrayDepth = (d.arrayDepth ?? 0) + 1, n(c, d, E, l);
|
|
305
|
+
} else if (t.kind !== s.SyntaxKind.TupleType && t.kind === s.SyntaxKind.TypeReference) {
|
|
306
|
+
const c = t.typeName?.getText?.() ?? null, N = pe.get(c);
|
|
307
|
+
let k = !1;
|
|
308
|
+
N && (d.range = N, k = !0);
|
|
309
|
+
const D = xe.get(c);
|
|
310
|
+
if (D && (d.scalar = D), D !== void 0 && (k = !0), l) {
|
|
311
|
+
const g = me.get(c);
|
|
312
|
+
if (g) return g;
|
|
313
|
+
} else {
|
|
314
|
+
const g = ke.get(c);
|
|
315
|
+
if (g) {
|
|
316
|
+
const m = { ...d, ...g() };
|
|
317
|
+
let o = 0;
|
|
318
|
+
if (m.async && o++, m.stream && o++, o > 1) return void S(t, new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));
|
|
319
|
+
d = m, k = !0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (!k) return void S("node", new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));
|
|
323
|
+
const b = t.typeArguments;
|
|
324
|
+
if (b) {
|
|
325
|
+
if (b.length !== 1) return void S(t, new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));
|
|
326
|
+
n(b[0], d, E, l);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
} else S(t, new Error(`Type is not defined for '${d?.name ?? "return"}'.`));
|
|
330
|
+
}, i = [], S = (t, d) => {
|
|
331
|
+
i.push(d);
|
|
332
|
+
};
|
|
333
|
+
if (s.forEachChild(Z, (t) => {
|
|
334
|
+
if (E = t, (s.getCombinedModifierFlags(E) & s.ModifierFlags.Export) !== 0 && s.isFunctionDeclaration(t)) {
|
|
335
|
+
const l = {}, c = { parameters: {} }, N = t?.name?.getText();
|
|
336
|
+
try {
|
|
337
|
+
l.name = N;
|
|
338
|
+
const k = P.getSymbolAtLocation(t.name).getDocumentationComment(P);
|
|
339
|
+
if (k && k.length > 0 && k[0].text) {
|
|
340
|
+
let m = k[0].text;
|
|
341
|
+
m = m.replace(/[\r\n]+/g, "\\n").trim(), c.summary = m;
|
|
342
|
+
}
|
|
343
|
+
const D = {};
|
|
344
|
+
n(t.type, D, l, !1), l.returnType = D;
|
|
345
|
+
const b = {};
|
|
346
|
+
d = t, (s.getCombinedModifierFlags(d) & s.ModifierFlags.Default) !== 0 && (b.default = !0, U = N), Object.keys(b).length > 0 && (l.behavior = b), l.parameters = [];
|
|
347
|
+
const g = /* @__PURE__ */ new Map();
|
|
348
|
+
for (let m = 0; m < t.parameters.length; m++) {
|
|
349
|
+
const o = t.parameters[m], h = {};
|
|
350
|
+
h.name = o.name?.getText();
|
|
351
|
+
const $ = n(o.type, h, l, !0);
|
|
352
|
+
if ($) {
|
|
353
|
+
if (l.parameters.length !== 0) {
|
|
354
|
+
const B = t?.parent, C = B?.name?.getText();
|
|
355
|
+
return void S(t, new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`));
|
|
356
|
+
}
|
|
357
|
+
l.context = $;
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
let L;
|
|
361
|
+
if ((o.initializer !== void 0 && o.initializer !== null || o.questionToken !== void 0 && o.questionToken !== null) && (h.optional = !0, o.initializer)) try {
|
|
362
|
+
L = o.initializer.kind === s.SyntaxKind.StringLiteral ? o.initializer.text : o.initializer.kind === s.SyntaxKind.NumericLiteral ? parseFloat(o.initializer.text) : o.initializer.kind === s.SyntaxKind.TrueKeyword || o.initializer.kind === s.SyntaxKind.FalseKeyword ? o.initializer.kind === s.SyntaxKind.TrueKeyword : o.initializer.kind === s.SyntaxKind.NullKeyword ? null : o.initializer.kind === s.SyntaxKind.ObjectLiteralExpression || o.initializer.kind === s.SyntaxKind.ArrayLiteralExpression ? o.initializer.getText() : o.initializer.getText?.();
|
|
363
|
+
} catch (B) {
|
|
364
|
+
console.warn(`Couldn't extract default value for parameter '${h.name}'`, B);
|
|
365
|
+
}
|
|
366
|
+
o.dotDotDotToken && (h.rest = !0), l.parameters.push(h);
|
|
367
|
+
const w = { description: "" };
|
|
368
|
+
c.parameters[h.name] = w;
|
|
369
|
+
const u = P.getSymbolAtLocation(o.name).getDocumentationComment(P);
|
|
370
|
+
u && u.length > 0 && u[0].text && (w.description = u[0].text), L !== void 0 && (w.defaultValue = L), g.set(h.name, h);
|
|
371
|
+
}
|
|
372
|
+
if (t.jsDoc && t.jsDoc.length > 0) {
|
|
373
|
+
const m = t.jsDoc;
|
|
374
|
+
for (let o = 0; o < m.length; o++) {
|
|
375
|
+
const h = m[o]?.tags;
|
|
376
|
+
if (h) for (let $ = 0; $ < h.length; $++) {
|
|
377
|
+
const L = h[$];
|
|
378
|
+
let w = L?.tagName?.text;
|
|
379
|
+
if (!w) continue;
|
|
380
|
+
w = w.toLowerCase();
|
|
381
|
+
let u = L.comment;
|
|
382
|
+
const B = w === "hidden";
|
|
383
|
+
if ((typeof u == "string" || B) && (typeof u == "string" && (u = u.replace(/[\r\n]+/g, "\\n").trim()), B || !u || (u = u.split(/\\n/)[0], u && u.length !== 0))) {
|
|
384
|
+
if (u && typeof u == "string") {
|
|
385
|
+
const C = /\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;
|
|
386
|
+
let v, R = u, V = [];
|
|
387
|
+
for (; (v = C.exec(u)) !== null; ) {
|
|
388
|
+
const [ee, te, ye, ae] = v, fe = [ye.trim()];
|
|
389
|
+
ae && fe.push(ae.trim());
|
|
390
|
+
}
|
|
391
|
+
u = R, V.length > 0 && w === "see" && (c.links || (c.links = []), c.links.push(...V));
|
|
392
|
+
}
|
|
393
|
+
if (w === "name") {
|
|
394
|
+
const C = u;
|
|
395
|
+
C !== N && (c.name = C);
|
|
396
|
+
} else if (w !== "description") {
|
|
397
|
+
if (w === "summary") {
|
|
398
|
+
const C = u;
|
|
399
|
+
C && (c.summary = C);
|
|
400
|
+
} else if (w === "param") {
|
|
401
|
+
const C = L.name?.text, v = g.get(C);
|
|
402
|
+
if (!v) {
|
|
403
|
+
i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
if (L.typeExpression && L.typeExpression.type) try {
|
|
407
|
+
const R = L.typeExpression.type;
|
|
408
|
+
if (R.kind === s.SyntaxKind.UnionType) {
|
|
409
|
+
const V = [];
|
|
410
|
+
v.enums = V, R.types.forEach((ee) => {
|
|
411
|
+
if (ee.kind === s.SyntaxKind.LiteralType) {
|
|
412
|
+
const te = ee.literal.text;
|
|
413
|
+
te && V.push(te);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
} catch (R) {
|
|
418
|
+
console.warn("Error parsing JSDoc type expression:", R);
|
|
419
|
+
}
|
|
420
|
+
} else if (w === "returns" || w === "return") l.returnType.description = u;
|
|
421
|
+
else if (w === "category") c.category = u;
|
|
422
|
+
else if (w === "hidden") {
|
|
423
|
+
let C = !0;
|
|
424
|
+
const v = u?.toLowerCase();
|
|
425
|
+
v === "false" ? C = !1 : v !== "true" && (C = u), C !== !1 && (c.hidden = C ?? !0);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
Object.keys(l.returnType).length === 0 && delete l.returnType, z.push([l, c]);
|
|
433
|
+
} catch (k) {
|
|
434
|
+
S(t, new Error(`'${N}': ${k.message}`));
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
var d, E;
|
|
438
|
+
}), i.length > 0) throw console.warn(i), new Error("There were compilation errors.", { cause: i });
|
|
439
|
+
if (z.length === 0) throw new Error("No exported functions.");
|
|
440
|
+
const J = `${he.uuidV4()}-script`;
|
|
441
|
+
try {
|
|
442
|
+
T || i.length !== 0 || (K = await async function(t, d, E = "/script.js", l = "__SHEETXL") {
|
|
443
|
+
try {
|
|
444
|
+
const c = await async function() {
|
|
445
|
+
if (A) return A;
|
|
446
|
+
if (H) {
|
|
447
|
+
if (await H, !A) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
448
|
+
return A;
|
|
449
|
+
}
|
|
450
|
+
let g, m;
|
|
451
|
+
H = new Promise((o, h) => {
|
|
452
|
+
g = o, m = h;
|
|
453
|
+
});
|
|
454
|
+
try {
|
|
455
|
+
const { initialize: o } = await import("./Dxl4WJXcEhDAw_yE.mjs");
|
|
456
|
+
return A = await o(), g(), A;
|
|
457
|
+
} catch (o) {
|
|
458
|
+
throw console.error("Failed to import or initialize esbuild:", o), H = null, m(o), o;
|
|
459
|
+
}
|
|
460
|
+
}(), N = "@sheetxl/primitives", k = `
|
|
461
|
+
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
462
|
+
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
463
|
+
export const Observable = globalThis.${l}?.Observable;
|
|
464
|
+
export const IRange = globalThis.${l}?.IRange;
|
|
465
|
+
export const FormulaError = globalThis.${l}?.FormulaError;
|
|
466
|
+
// Add more exports as needed
|
|
467
|
+
`, D = { name: "sheetxl-esbuild-in-memory", setup(g) {
|
|
468
|
+
const m = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
469
|
+
g.onResolve({ filter: new RegExp(`^(${E.replace("/", "\\/")}|${N})$`) }, (o) => ({ path: o.path, namespace: m })), g.onResolve({ filter: /.*/ }, (o) => {
|
|
470
|
+
if (o.namespace !== m) return console.warn(`esbuild: Treating import "${o.path}" as external.`), { path: o.path, external: !0 };
|
|
471
|
+
}), g.onLoad({ filter: /.*/, namespace: m }, (o) => {
|
|
472
|
+
let h;
|
|
473
|
+
if (o.path === E) h = d;
|
|
474
|
+
else {
|
|
475
|
+
if (o.path !== N) return { errors: [{ text: `Cannot load unknown path in ${m}: ${o.path}` }] };
|
|
476
|
+
h = k;
|
|
477
|
+
}
|
|
478
|
+
return { contents: h, loader: "ts" };
|
|
479
|
+
});
|
|
480
|
+
} }, b = await c.build({ entryPoints: [E], bundle: !0, write: !1, format: "esm", plugins: [D], sourcemap: "inline", tsconfigRaw: we, minify: !0, platform: "neutral" });
|
|
481
|
+
if (b.outputFiles && b.outputFiles.length > 0) return b.outputFiles[0].text;
|
|
482
|
+
throw b.errors && b.errors.length > 0 ? new Error(`esbuild bundling failed: ${b.errors.map((g) => g.text).join(`
|
|
483
|
+
`)}`) : new Error("esbuild did not produce an output file.");
|
|
484
|
+
} catch (c) {
|
|
485
|
+
throw console.error("esbuild bundling process failed:", c), c;
|
|
486
|
+
}
|
|
487
|
+
}(0, K, M));
|
|
488
|
+
} catch {
|
|
489
|
+
console.warn("Error bundling script");
|
|
490
|
+
}
|
|
491
|
+
const re = { functions: z, commitId: J, source: a, name: "Script", language: "typescript", compiled: K };
|
|
492
|
+
return U && (re.autoRun = U), re;
|
|
493
|
+
}
|
|
494
|
+
export {
|
|
495
|
+
Se as compileModule
|
|
496
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
15
|
+
*
|
|
16
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
18
|
+
*/
|
|
19
|
+
const r = { ERF: { s: "Returns the error function", p: { lowerLimit: { d: "is the lower bound for integrating ERF" }, upperLimit: { d: "is the upper bound for integrating ERF", v: 0 } } }, "ERF.PRECISE": { s: "Returns the error function", p: { x: { d: "is the lower bound for integrating ERF.PRECISE" } } }, ERFC: { s: "Returns the complementary error function", p: { x: { d: "is the lower bound for integrating ERF" } } } };
|
|
20
|
+
export {
|
|
21
|
+
r as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as O, useState as r, useRef as E, useReducer as M, useMemo as W } from "react";
|
|
3
|
+
import { bk as A, ap as k, bl as q, bm as J, a7 as x, b9 as K, ba as V, B as n, bn as G, bo as Q, aN as b, bp as U, bq as X, aJ as f, aK as y, aL as w, br as S } from "./k9kWmEk0ZT8y9Gii.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
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
|
+
/**
|
|
11
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
12
|
+
*
|
|
13
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
14
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
15
|
+
*/
|
|
16
|
+
const te = O((C) => {
|
|
17
|
+
const { title: N, onHide: v, autoFocusSel: R = ".range-input input", context: T, notifier: l = A, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = E(null), [Y, B] = M((e) => e + 1, 0), [H, { width: Z }] = k();
|
|
18
|
+
q(c);
|
|
19
|
+
const o = T ?? c.context(), t = o.table(), [I, P] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j = W(() => t?.getName() ?? "", [t]);
|
|
20
|
+
J(o.table(), { onAnchorCoordsChange(e) {
|
|
21
|
+
P(o.getNames().getRanges(e.getRange()));
|
|
22
|
+
}, onProtectedChange(e) {
|
|
23
|
+
B();
|
|
24
|
+
} });
|
|
25
|
+
const L = x((e) => {
|
|
26
|
+
o?.table().setName(e);
|
|
27
|
+
}, [o]), z = x((e) => {
|
|
28
|
+
o?.table().resize(e.at(0));
|
|
29
|
+
}, [o]);
|
|
30
|
+
let u = null;
|
|
31
|
+
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(K, { title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, refWindow: h, onHide: v, onFocus: () => g(!0), onBlur: (e) => {
|
|
32
|
+
h?.current?.contains(e.relatedTarget) || g(!1);
|
|
33
|
+
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(V, { 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(G, { formName: "name", defaultInput: j, value: t?.getName() ?? "No table", onChangeInput: L, onValidate: (e) => {
|
|
34
|
+
t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
|
|
35
|
+
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
36
|
+
m || e.target?.select(), p(!0);
|
|
37
|
+
} }), a(Q, { formName: "range", value: I, onChangeInput: z, resolvedAddress: o.getNames().getRanges.bind(o.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
38
|
+
m || e.target?.select(), p(!0);
|
|
39
|
+
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(b, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a(U, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
40
|
+
t.updateStyleOptions(e);
|
|
41
|
+
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
42
|
+
try {
|
|
43
|
+
t.setShowHeaders(e);
|
|
44
|
+
} catch (i) {
|
|
45
|
+
l.showError(i);
|
|
46
|
+
}
|
|
47
|
+
}, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
|
|
48
|
+
try {
|
|
49
|
+
t.setShowTotals(e);
|
|
50
|
+
} catch (i) {
|
|
51
|
+
l.showError(i);
|
|
52
|
+
}
|
|
53
|
+
}, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
|
|
54
|
+
try {
|
|
55
|
+
t.setShowFilterButton(e);
|
|
56
|
+
} catch (i) {
|
|
57
|
+
l.showError(i);
|
|
58
|
+
}
|
|
59
|
+
} }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(b, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(f, { variant: w.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: y(a(S, {})) }), a(f, { variant: w.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: y(a(S, {})) })] })] })] }), u] }) });
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
te as TableDetailsWindow,
|
|
63
|
+
te as default
|
|
64
|
+
};
|