@sheetxl/studio-vanilla 0.4.21 → 0.5.0
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/2QmtjcI-saz2rkIA.cjs +6 -0
- package/browser/cjs/3UFq2FybsZfoS4JL.cjs +6 -0
- package/browser/cjs/B-fFQgxMHns-eg-y.cjs +6 -0
- package/browser/cjs/{n6CXzSocLW_BCO8w.cjs → B2hhcNzdkhGrH1O6.cjs} +6 -6
- package/browser/cjs/BASsCVA0ArIVtY7I.cjs +6 -0
- package/browser/cjs/BAxy7pwmXg8SI_oi.cjs +6 -0
- package/browser/cjs/BCwHln5zBNJSn0bb.cjs +6 -0
- package/browser/cjs/BQYUcoxlHrpI0-pX.cjs +6 -0
- package/browser/cjs/BVbQCweLw_r05vPF.cjs +15 -0
- package/browser/cjs/BYJxHR3K0UQJ8mYe.cjs +6 -0
- package/browser/cjs/Ba8eoGTjjWBH8TbP.cjs +6 -0
- package/browser/cjs/BdCoVNJwhPpWfQw2.cjs +6 -0
- package/browser/cjs/BkZzUVGQfrUTPE_K.cjs +6 -0
- package/browser/cjs/BlpCu5z9eT8rzsZl.cjs +6 -0
- package/browser/cjs/BlqTaZ2U_mKVK2lb.cjs +6 -0
- package/browser/cjs/BpeteRa_oZ-wN4Yl.cjs +6 -0
- package/browser/cjs/BxqDS9XynU5GFbP7.cjs +16 -0
- package/browser/cjs/ByB_fmjdLNTv0T0U.cjs +145 -0
- package/browser/cjs/C-6TpShR6Bn0HnEd.cjs +7 -0
- package/browser/cjs/C5T_oiCG4PwTFSZA.cjs +6 -0
- package/browser/cjs/C5e1IjdRuLyAQqNX.cjs +7 -0
- package/browser/cjs/CAZoVQtxsVdAtVKy.cjs +6 -0
- package/browser/cjs/CBS2kMyEf0c_PUbQ.cjs +12 -0
- package/browser/cjs/CO7VEOXret0qr-X3.cjs +6 -0
- package/browser/cjs/CVIlAq9nwlOXfHMl.cjs +161 -0
- package/browser/cjs/CZEOikBcE4OIr49t.cjs +6 -0
- package/browser/cjs/Ce8AVRntRnXZtgzH.cjs +6 -0
- package/browser/cjs/ClEZHGlmkSIz6S1O.cjs +6 -0
- package/browser/cjs/CvO-oyQ3syx7EGUA.cjs +6 -0
- package/browser/cjs/CwqvcNlwUtXJrzsk.cjs +6 -0
- package/browser/cjs/D-su0R92LmYTQVL3.cjs +11 -0
- package/browser/cjs/D178aT-dgy-ngzYG.cjs +6 -0
- package/browser/cjs/D5z-zqUVI3G9JXBC.cjs +1501 -0
- package/browser/cjs/D68uE8Ovq38Aj-88.cjs +330 -0
- package/browser/cjs/D8mjDoZ4Yyous_Fc.cjs +6 -0
- package/browser/cjs/DASsVvQwE2-IWxLR.cjs +6 -0
- package/browser/cjs/DBavSByKdf-juvFm.cjs +32 -0
- package/browser/cjs/DHRZzqw46ad6Mtw6.cjs +6 -0
- package/browser/cjs/DJZBxKlTP03_1kyT.cjs +6 -0
- package/browser/cjs/DKq35Q191eW-MovK.cjs +6 -0
- package/browser/cjs/DMUFBhoYpT3ai2Sb.cjs +6 -0
- package/browser/cjs/DX2XUDUIVBx4UFrJ.cjs +6 -0
- package/browser/cjs/DdzEWCcupF-0WS8y.cjs +11 -0
- package/browser/cjs/Dg9j6yGv8nrILfzN.cjs +6 -0
- package/browser/cjs/DjB9MJwDT6_HgF4U.cjs +6 -0
- package/browser/cjs/Dl5mwbo0ahDUm0he.cjs +6 -0
- package/browser/cjs/DmT6vIsFpZJ2c8cx.cjs +15 -0
- package/browser/cjs/Hi6aVJR9PyRbNYjO.cjs +6 -0
- package/browser/cjs/K7QHOvYV_yvLLjsS.cjs +6 -0
- package/browser/cjs/LhLQSvaxn8yxAIwj.cjs +6 -0
- package/browser/cjs/MgEzGw411nlqjqfH.cjs +42 -0
- package/browser/cjs/WJXT0W6bS3bZdAUV.cjs +6 -0
- package/browser/cjs/f_Vbi-Lelt9tKZrz.cjs +19 -0
- package/browser/cjs/index.cjs +2 -80
- package/browser/cjs/tNT3tUxdeIp_Iq2Y.cjs +7 -0
- package/browser/cjs/vNEwUuTKk3qucC3P.cjs +6 -0
- package/browser/cjs/xMzLyo_gIl82xG8k.cjs +6 -0
- package/browser/cjs/yc1bXLJ1yRhBFy0X.cjs +124 -0
- package/browser/esm/2fFz5u9jPgrNzcVF.mjs +21 -0
- package/browser/esm/2kXHnuU_uz-F9i1S.mjs +44550 -0
- package/browser/esm/5F1_gQbzWEFsWO0i.mjs +84 -0
- package/browser/esm/9MchcnSGrYDjX4zQ.mjs +46 -0
- package/browser/esm/Af7aikoKHz0rpjfv.mjs +10 -0
- package/browser/esm/B1Kc7dS9N2PVqxMT.mjs +10 -0
- package/browser/esm/B8ePgT5XZ0JlU3T6.mjs +1352 -0
- package/browser/esm/B8uy0BSOVjfUw27f.mjs +12 -0
- package/browser/esm/BFweWj2oKpTGl7m3.mjs +1672 -0
- package/browser/esm/BLseM2hNBI2PgQaX.mjs +13391 -0
- package/browser/esm/BUNUi9F3xbjfUKty.mjs +24 -0
- package/browser/esm/BV3ROKbw5yMVArqX.mjs +10 -0
- package/browser/esm/BXKXqOluLdKs4-V0.mjs +3802 -0
- package/browser/esm/BZpMA4DGM1kbVAKF.mjs +10 -0
- package/browser/esm/Bg59p3YlNG6o7-M3.mjs +260 -0
- package/browser/esm/BlFzVqIUaXFtDy81.mjs +10 -0
- package/browser/esm/BtBECeJ4mwD7SUx8.mjs +3936 -0
- package/browser/esm/Buw1VxSLsNI8pSYS.mjs +5585 -0
- package/browser/esm/BxoWypkKac-_VAm5.mjs +39 -0
- package/browser/esm/By3EkyTg3ZYh63C7.mjs +56 -0
- package/browser/esm/CDu4VlyMAQ3nxTQG.mjs +10 -0
- package/browser/esm/CJ9ZL3uskq3W6s-m.mjs +10 -0
- package/browser/esm/CP_sGa9QGT2Nq5ym.mjs +1702 -0
- package/browser/esm/CaIFrnjL0xBOtFfM.mjs +10 -0
- package/browser/esm/CeP-AnEtOGkuxLqE.mjs +10 -0
- package/browser/esm/CjScjxhY2mD7nPZA.mjs +633 -0
- package/browser/esm/CozWNYg-NXzV84fz.mjs +10 -0
- package/browser/esm/Cprnt9pNXzIiMmkN.mjs +29 -0
- package/browser/esm/Cq-wjvtZ92uenxU1.mjs +20 -0
- package/browser/esm/CsVeeu8D1A8I-BbH.mjs +1575 -0
- package/browser/esm/CzMxOWYq4nqRtKmm.mjs +1366 -0
- package/browser/esm/D9MGSJr45cVRF75O.mjs +1466 -0
- package/browser/esm/DAUV_w2uv0nHdk5N.mjs +10 -0
- package/browser/esm/DIypkIIonThPr-Vt.mjs +47 -0
- package/browser/esm/DOG1CaEQVF1sTUFi.mjs +10 -0
- package/browser/esm/DOv9FndcEVmQ2LJK.mjs +392 -0
- package/browser/esm/DSCVDOwTpDzUVuFj.mjs +10 -0
- package/browser/esm/DYF-8AnNDaQUy3aL.mjs +2344 -0
- package/browser/esm/Dd0avXHDTPFrx-ot.mjs +44 -0
- package/browser/esm/DdQY6IuT4OziHv5i.mjs +48 -0
- package/browser/esm/DfRKIODWn8ElqMWa.mjs +425 -0
- package/browser/esm/Dfbzljrnj4KrvtaN.mjs +10 -0
- package/browser/esm/DfdWpPG9ZcbRBGUg.mjs +10 -0
- package/browser/esm/Di8JLQMx61fnrhOn.mjs +10 -0
- package/browser/esm/DirXlaTG7TKxrqSR.mjs +10 -0
- package/browser/esm/DjGdyf6zsnIMRkQb.mjs +41 -0
- package/browser/esm/Dm4Fun7UoovVHafs.mjs +147 -0
- package/browser/esm/DwpS4SI4gT1eqfOs.mjs +10 -0
- package/browser/esm/DzZDYedlR-CIW2TI.mjs +21 -0
- package/browser/esm/HlyDPlaZCA3IOmF2.mjs +2081 -0
- package/browser/esm/PzIeb5aTX9JzTTfm.mjs +424 -0
- package/browser/esm/{NBuS53B7u8hItiXf.mjs → QPkYQWSepZNIhJst.mjs} +937 -933
- package/browser/esm/UENfAV2nBd83yFu7.mjs +10 -0
- package/browser/esm/YYqCu_-Z9nzvEseu.mjs +10 -0
- package/browser/esm/aEhgzbKqmuKv1oqm.mjs +10 -0
- package/browser/esm/bxGRTnY732xGNtpL.mjs +10 -0
- package/browser/esm/index.mjs +4 -176
- package/browser/esm/zQSjT9VbN7kMDV88.mjs +21 -0
- package/cdn/assets/2fFz5u9jPgrNzcVF.js +21 -0
- package/cdn/assets/7ZUzaBw_VH3Cvii1.js +1702 -0
- package/cdn/assets/7bmIdE8Moi7orOeU.js +50 -0
- package/cdn/assets/Af7aikoKHz0rpjfv.js +10 -0
- package/cdn/assets/B1Kc7dS9N2PVqxMT.js +10 -0
- package/cdn/assets/B6QHusAaPSos46yi.js +3802 -0
- package/cdn/assets/B8ePgT5XZ0JlU3T6.js +1352 -0
- package/cdn/assets/B8uy0BSOVjfUw27f.js +12 -0
- package/cdn/assets/BFweWj2oKpTGl7m3.js +1672 -0
- package/cdn/assets/BGF-bSrwdriQTytG.js +1466 -0
- package/cdn/assets/BLseM2hNBI2PgQaX.js +13391 -0
- package/cdn/assets/BQvzpOcCO8uM_ZaF.js +46 -0
- package/cdn/assets/BUNUi9F3xbjfUKty.js +24 -0
- package/cdn/assets/BV3ROKbw5yMVArqX.js +10 -0
- package/cdn/assets/BZpMA4DGM1kbVAKF.js +10 -0
- package/cdn/assets/BlFzVqIUaXFtDy81.js +10 -0
- package/cdn/assets/BrwV_8GjxcVuWuUk.js +44377 -0
- package/cdn/assets/C7SHJrlOqTIZCB3t.js +41 -0
- package/cdn/assets/CCbJipmDawMQQxRJ.js +36 -0
- package/cdn/assets/CDu4VlyMAQ3nxTQG.js +10 -0
- package/cdn/assets/CEcpUxbZ1W-G1EPq.js +2346 -0
- package/cdn/assets/CJ9ZL3uskq3W6s-m.js +10 -0
- package/cdn/assets/CaIFrnjL0xBOtFfM.js +10 -0
- package/cdn/assets/CaN0O_koLgCkhgEh.js +1575 -0
- package/cdn/assets/CeP-AnEtOGkuxLqE.js +10 -0
- package/cdn/assets/CjScjxhY2mD7nPZA.js +633 -0
- package/cdn/assets/ClkFsS16G5memDzX.js +22 -0
- package/cdn/assets/CmUGAy0Bu36DiwJO.js +84 -0
- package/cdn/assets/CozWNYg-NXzV84fz.js +10 -0
- package/cdn/assets/CsYr_9x-OIQSqGIL.js +27 -0
- package/cdn/assets/CzEv6qEIPTHOwOdU.js +2083 -0
- package/cdn/assets/CzMF1riupKc6HLGE.js +6481 -0
- package/cdn/assets/CzMxOWYq4nqRtKmm.js +1366 -0
- package/cdn/assets/D-W_ANt_qJ9dfGy9.js +425 -0
- package/cdn/assets/DAI9BFZBDQlMP1v4.js +149 -0
- package/cdn/assets/DAUV_w2uv0nHdk5N.js +10 -0
- package/cdn/assets/DOG1CaEQVF1sTUFi.js +10 -0
- package/cdn/assets/DSCVDOwTpDzUVuFj.js +10 -0
- package/cdn/assets/DSv3gXCV9xifjdta.js +23 -0
- package/cdn/assets/DaYZ-afnc3QhJo5R.js +58 -0
- package/cdn/assets/Dfbzljrnj4KrvtaN.js +10 -0
- package/cdn/assets/DfdWpPG9ZcbRBGUg.js +10 -0
- package/cdn/assets/Di8JLQMx61fnrhOn.js +10 -0
- package/cdn/assets/DirXlaTG7TKxrqSR.js +10 -0
- package/cdn/assets/DivRRrwWTqpDEOsE.js +392 -0
- package/cdn/assets/DlGa-wREL0uZB2Nx.js +43 -0
- package/cdn/assets/DlMH1vSjXgvZMwQJ.js +90 -0
- package/cdn/assets/Dml7K4XhLTRwUDTY.js +27 -0
- package/cdn/assets/DwpS4SI4gT1eqfOs.js +10 -0
- package/cdn/assets/G0GROjU63_EPzAF7.js +241 -0
- package/cdn/assets/NoCZPCkSed8lQpNi.js +46 -0
- package/cdn/assets/O-MB9oo65vbYOjfG.js +260 -0
- package/cdn/assets/PzIeb5aTX9JzTTfm.js +424 -0
- package/cdn/assets/UENfAV2nBd83yFu7.js +10 -0
- package/cdn/assets/V2bW77WyjoyjJMvZ.js +5585 -0
- package/cdn/assets/YJiNeqIJTFYDQPxS.js +3936 -0
- package/cdn/assets/YYqCu_-Z9nzvEseu.js +10 -0
- package/cdn/assets/Yp0FxpbZyyvU_u6y.js +49 -0
- package/cdn/assets/aEhgzbKqmuKv1oqm.js +10 -0
- package/cdn/assets/bxGRTnY732xGNtpL.js +10 -0
- package/cdn/assets/djN8Su_7GYF42GqX.js +21 -0
- package/cdn/assets/m-A0SfNBx32zKuZU.js +29 -0
- package/cdn/assets/uvZYEIW4EfvcdsXG.js +12 -0
- package/cdn/assets/zZGhctwBXNlAYrJr.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/cdn/assets/CY8njwo06MWkoPz2.js +0 -21
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.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
|
+
const e = { ACOS: { s: "Returns the arccosine of a number, in radians in the range 0 to Pi. The arccosine is the angle whose cosine is Number", p: { number: { d: "is the cosine of the angle you want and must be from -1 to 1" } } }, ACOSH: { s: "Returns the inverse hyperbolic cosine of a number", p: { number: { d: "is any real number equal to or greater than 1" } } }, ACOT: { s: "Returns the arccotangent of a number, in radians in the range 0 to Pi.", p: { number: { d: "is the cotangent of the angle you want" } } }, ACOTH: { s: "Returns the inverse hyperbolic cotangent of a number", p: { number: { d: "is the hyperbolic cotangent of the angle that you want" } } }, ASIN: { s: "Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2", p: { number: { d: "is the sine of the angle you want and must be from -1 to 1" } } }, ASINH: { s: "Returns the inverse hyperbolic sine of a number", p: { number: { d: "is any real number equal to or greater than 1" } } }, ATAN: { s: "Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2", p: { number: { d: "is the tangent of the angle you want" } } }, ATAN2: { s: "Returns the arctangent of the specified x- and y- coordinates, in radians between -Pi and Pi, excluding -Pi", p: { x: { d: "is the x-coordinate of the point" }, y: { d: "is the y-coordinate of the point" } } }, ATANH: { s: "Returns the inverse hyperbolic tangent of a number", p: { number: { d: "is any real number between -1 and 1 excluding -1 and 1" } } }, COS: { s: "Returns the cosine of an angle", p: { number: { d: "is the angle in radians for which you want the cosine" } } }, COSH: { s: "Returns the hyperbolic cosine of a number", p: { number: { d: "is any real number" } } }, COT: { s: "Returns the cotangent of an angle", p: { number: { d: "is the angle in radians for which you want the cotangent" } } }, COTH: { s: "Returns the hyperbolic cotangent of a number", p: { number: { d: "is the angle in radians for which you want the hyperbolic cotangent" } } }, CSC: { s: "Returns the cosecant of an angle", p: { number: { d: "is the angle in radians for which you want the cosecant" } } }, CSCH: { s: "Returns the hyperbolic cosecant of an angle", p: { number: { d: "is the angle in radians for which you want the hyperbolic cosecant" } } }, SEC: { s: "Returns the secant of an angle", p: { number: { d: "is the angle in radians for which you want the secant" } } }, SECH: { s: "Returns the hyperbolic secant of an angle", p: { number: { d: "is the angle in radians for which you want the hyperbolic secant" } } }, SIN: { s: "Returns the sine of an angle", p: { number: { d: "is the angle in radians for which you want the sine. Degrees * PI()/180 = radians" } } }, SINH: { s: "Returns the hyperbolic sine of a number", p: { number: { d: "is any real number" } } }, TAN: { s: "Returns the tangent of an angle", p: { number: { d: "is the angle in radians for which you want the tangent. Degrees * PI()/180 = radians" } } }, TANH: { s: "Returns the hyperbolic tangent of a number", p: { number: { d: "is any real number" } } } };
|
|
8
|
+
export {
|
|
9
|
+
e as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { aa as le, am as S } from "./2kXHnuU_uz-F9i1S.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.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
|
+
let v = null, R = null;
|
|
9
|
+
const se = { compilerOptions: { target: "esnext" } }, ce = async () => `
|
|
10
|
+
interface FirstTest {
|
|
11
|
+
isTrue?: boolean;
|
|
12
|
+
}
|
|
13
|
+
`, Y = /* @__PURE__ */ new Map([["IReferenceRange", "r"], ["IRange", "l"]]), Z = /* @__PURE__ */ new Map([["IWorkbook", "workbook"], ["ISheet", "sheet"], ["ICellRanges", "ranges"], ["ICellRange", "range"], ["IFormulaContext", "context"]]), q = (b, T) => {
|
|
14
|
+
Array.from(T.keys()).forEach((C) => {
|
|
15
|
+
const j = T.get(C);
|
|
16
|
+
T.set(`${b}.${C}`, j);
|
|
17
|
+
});
|
|
18
|
+
}, de = /* @__PURE__ */ new Map([["Scalar", "*"], ["FormulaError.Known", S.Error], ["Date", "Date"], ["JSON", "JSON"]]), ue = /* @__PURE__ */ new Map([]), U = "SheetXL";
|
|
19
|
+
q(U, Y), q(U, Z), q(U, ue);
|
|
20
|
+
const pe = /* @__PURE__ */ new Map([["Promise", () => ({ async: !0 })], ["Observable", () => ({ stream: !0 })]]);
|
|
21
|
+
let M = null;
|
|
22
|
+
async function me() {
|
|
23
|
+
if (M) return M;
|
|
24
|
+
try {
|
|
25
|
+
return await (await import("./2fFz5u9jPgrNzcVF.mjs")).initialize();
|
|
26
|
+
} catch (b) {
|
|
27
|
+
throw M = null, b;
|
|
28
|
+
} finally {
|
|
29
|
+
M = null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
async function ye(b) {
|
|
33
|
+
const T = b?.source ?? null;
|
|
34
|
+
if (!T) return null;
|
|
35
|
+
const C = (b.disableBundle || b.declarationsOnly) ?? !1, j = [ce(), me()], X = await Promise.all(j), ee = X[0], n = X[1];
|
|
36
|
+
let D = "", A = null;
|
|
37
|
+
const I = [], te = { allowJs: !0, declaration: !1, sourceMap: !1, inlineSourceMap: !1, inlineSources: !1, isolatedModules: !0, preserveConstEnums: !1, module: 99, noResolve: !0, emitDeclarationOnly: !1, target: n.ScriptTarget.ES2020 }, O = "script", P = `${O}.ts`, _ = "lib.d.ts", H = "global.d.ts", F = { [P]: T, [_]: `
|
|
38
|
+
/**
|
|
39
|
+
* Represents the completion of an asynchronous operation
|
|
40
|
+
*/
|
|
41
|
+
interface Promise<T> {
|
|
42
|
+
/**
|
|
43
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
44
|
+
* resolved value cannot be modified from the callback.
|
|
45
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
46
|
+
* @returns A Promise for the completion of the callback.
|
|
47
|
+
*/
|
|
48
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
49
|
+
}
|
|
50
|
+
`, [H]: ee }, ne = { getSourceFile: (e, a, y, r) => n.createSourceFile(e, F[e], n.ScriptTarget.Latest, !0), fileExists: (e) => F[e] !== void 0, readFile: (e) => F[e], writeFile: (e, a) => {
|
|
51
|
+
F[e] = a;
|
|
52
|
+
}, getCurrentDirectory: () => "./", getCanonicalFileName: (e) => e, useCaseSensitiveFileNames: () => !0, getDefaultLibFileName: (e) => _, getNewLine: () => `
|
|
53
|
+
` }, B = n.createProgram([P, H], te, ne), N = B.getTypeChecker(), re = B.getSourceFile(P), W = B.emit();
|
|
54
|
+
W.diagnostics.length > 0 && console.warn(W.diagnostics), D = F[`${O}.js`];
|
|
55
|
+
const L = (e, a, y, r) => {
|
|
56
|
+
if (e) {
|
|
57
|
+
if (e.kind === n.SyntaxKind.NumberKeyword) a.scalar = S.Number;
|
|
58
|
+
else if (e.kind === n.SyntaxKind.StringKeyword) a.scalar = S.String;
|
|
59
|
+
else if (e.kind === n.SyntaxKind.BooleanKeyword) a.scalar = S.Boolean;
|
|
60
|
+
else if (e.kind === n.SyntaxKind.UndefinedKeyword || e.kind === n.SyntaxKind.NullKeyword || e.kind === n.SyntaxKind.VoidKeyword) {
|
|
61
|
+
if (r) return void h(e, new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));
|
|
62
|
+
a.scalar = S.Null;
|
|
63
|
+
} else if (e.kind === n.SyntaxKind.BigIntKeyword) a.scalar = S.Number;
|
|
64
|
+
else if (e.kind === n.SyntaxKind.AnyKeyword) a.scalar = S.Null;
|
|
65
|
+
else if (e.kind === n.SyntaxKind.ArrayType) {
|
|
66
|
+
const i = e.elementType;
|
|
67
|
+
if (!i) return void h(e, new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));
|
|
68
|
+
a.arrayDepth = (a.arrayDepth ?? 0) + 1, L(i, a, y, r);
|
|
69
|
+
} else if (e.kind !== n.SyntaxKind.TupleType && e.kind === n.SyntaxKind.TypeReference) {
|
|
70
|
+
const i = e.typeName?.getText?.() ?? null, f = Y.get(i);
|
|
71
|
+
let m = !1;
|
|
72
|
+
f && (a.range = f, m = !0);
|
|
73
|
+
const x = de.get(i);
|
|
74
|
+
if (x && (a.scalar = x), x !== void 0 && (m = !0), r) {
|
|
75
|
+
const c = Z.get(i);
|
|
76
|
+
if (c) return c;
|
|
77
|
+
} else {
|
|
78
|
+
const c = pe.get(i);
|
|
79
|
+
if (c) {
|
|
80
|
+
const l = { ...a, ...c() };
|
|
81
|
+
let t = 0;
|
|
82
|
+
if (l.async && t++, l.stream && t++, t > 1) return void h(e, new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));
|
|
83
|
+
a = l, m = !0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (!m) return void h("node", new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));
|
|
87
|
+
const p = e.typeArguments;
|
|
88
|
+
if (p) {
|
|
89
|
+
if (p.length !== 1) return void h(e, new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));
|
|
90
|
+
L(p[0], a, y, r);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
} else h(e, new Error(`Type is not defined for '${a?.name ?? "return"}'.`));
|
|
94
|
+
}, k = [], h = (e, a) => {
|
|
95
|
+
k.push(a);
|
|
96
|
+
};
|
|
97
|
+
if (n.forEachChild(re, (e) => {
|
|
98
|
+
if (y = e, (n.getCombinedModifierFlags(y) & n.ModifierFlags.Export) !== 0 && n.isFunctionDeclaration(e)) {
|
|
99
|
+
const r = {}, i = { parameters: {} }, f = e?.name?.getText();
|
|
100
|
+
try {
|
|
101
|
+
r.name = f;
|
|
102
|
+
const m = N.getSymbolAtLocation(e.name).getDocumentationComment(N);
|
|
103
|
+
if (m && m.length > 0 && m[0].text) {
|
|
104
|
+
let l = m[0].text;
|
|
105
|
+
l = l.replace(/[\r\n]+/g, "\\n").trim(), i.summary = l;
|
|
106
|
+
}
|
|
107
|
+
const x = {};
|
|
108
|
+
L(e.type, x, r, !1), r.returnType = x;
|
|
109
|
+
const p = {};
|
|
110
|
+
a = e, (n.getCombinedModifierFlags(a) & n.ModifierFlags.Default) !== 0 && (p.default = !0, A = f), Object.keys(p).length > 0 && (r.behavior = p), r.parameters = [];
|
|
111
|
+
const c = /* @__PURE__ */ new Map();
|
|
112
|
+
for (let l = 0; l < e.parameters.length; l++) {
|
|
113
|
+
const t = e.parameters[l], s = {};
|
|
114
|
+
s.name = t.name?.getText();
|
|
115
|
+
const E = L(t.type, s, r, !0);
|
|
116
|
+
if (E) {
|
|
117
|
+
if (r.parameters.length !== 0) {
|
|
118
|
+
const K = e?.parent, u = K?.name?.getText();
|
|
119
|
+
return void h(e, new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`));
|
|
120
|
+
}
|
|
121
|
+
r.context = E;
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
124
|
+
let g;
|
|
125
|
+
if ((t.initializer !== void 0 && t.initializer !== null || t.questionToken !== void 0 && t.questionToken !== null) && (s.optional = !0, t.initializer)) try {
|
|
126
|
+
g = t.initializer.kind === n.SyntaxKind.StringLiteral ? t.initializer.text : t.initializer.kind === n.SyntaxKind.NumericLiteral ? parseFloat(t.initializer.text) : t.initializer.kind === n.SyntaxKind.TrueKeyword || t.initializer.kind === n.SyntaxKind.FalseKeyword ? t.initializer.kind === n.SyntaxKind.TrueKeyword : t.initializer.kind === n.SyntaxKind.NullKeyword ? null : t.initializer.kind === n.SyntaxKind.ObjectLiteralExpression || t.initializer.kind === n.SyntaxKind.ArrayLiteralExpression ? t.initializer.getText() : t.initializer.getText?.();
|
|
127
|
+
} catch (K) {
|
|
128
|
+
console.warn(`Couldn't extract default value for parameter '${s.name}'`, K);
|
|
129
|
+
}
|
|
130
|
+
t.dotDotDotToken && (s.rest = !0), r.parameters.push(s);
|
|
131
|
+
const d = { description: "" };
|
|
132
|
+
i.parameters[s.name] = d;
|
|
133
|
+
const o = N.getSymbolAtLocation(t.name).getDocumentationComment(N);
|
|
134
|
+
o && o.length > 0 && o[0].text && (d.description = o[0].text), g !== void 0 && (d.defaultValue = g), c.set(s.name, s);
|
|
135
|
+
}
|
|
136
|
+
if (e.jsDoc && e.jsDoc.length > 0) {
|
|
137
|
+
const l = e.jsDoc;
|
|
138
|
+
for (let t = 0; t < l.length; t++) {
|
|
139
|
+
const s = l[t]?.tags;
|
|
140
|
+
if (s) for (let E = 0; E < s.length; E++) {
|
|
141
|
+
const g = s[E];
|
|
142
|
+
let d = g?.tagName?.text;
|
|
143
|
+
if (!d) continue;
|
|
144
|
+
d = d.toLowerCase();
|
|
145
|
+
let o = g.comment;
|
|
146
|
+
const K = d === "hidden";
|
|
147
|
+
if ((typeof o == "string" || K) && (typeof o == "string" && (o = o.replace(/[\r\n]+/g, "\\n").trim()), K || !o || (o = o.split(/\\n/)[0], o && o.length !== 0))) {
|
|
148
|
+
if (o && typeof o == "string") {
|
|
149
|
+
const u = /\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;
|
|
150
|
+
let w, $ = o, z = [];
|
|
151
|
+
for (; (w = u.exec(o)) !== null; ) {
|
|
152
|
+
const [J, V, ae, Q] = w, oe = [ae.trim()];
|
|
153
|
+
Q && oe.push(Q.trim());
|
|
154
|
+
}
|
|
155
|
+
o = $, z.length > 0 && d === "see" && (i.links || (i.links = []), i.links.push(...z));
|
|
156
|
+
}
|
|
157
|
+
if (d === "name") {
|
|
158
|
+
const u = o;
|
|
159
|
+
u !== f && (i.name = u);
|
|
160
|
+
} else if (d !== "description") {
|
|
161
|
+
if (d === "summary") {
|
|
162
|
+
const u = o;
|
|
163
|
+
u && (i.summary = u);
|
|
164
|
+
} else if (d === "param") {
|
|
165
|
+
const u = g.name?.text, w = c.get(u);
|
|
166
|
+
if (!w) {
|
|
167
|
+
k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if (g.typeExpression && g.typeExpression.type) try {
|
|
171
|
+
const $ = g.typeExpression.type;
|
|
172
|
+
if ($.kind === n.SyntaxKind.UnionType) {
|
|
173
|
+
const z = [];
|
|
174
|
+
w.enums = z, $.types.forEach((J) => {
|
|
175
|
+
if (J.kind === n.SyntaxKind.LiteralType) {
|
|
176
|
+
const V = J.literal.text;
|
|
177
|
+
V && z.push(V);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
} catch ($) {
|
|
182
|
+
console.warn("Error parsing JSDoc type expression:", $);
|
|
183
|
+
}
|
|
184
|
+
} else if (d === "returns" || d === "return") r.returnType.description = o;
|
|
185
|
+
else if (d === "category") i.category = o;
|
|
186
|
+
else if (d === "hidden") {
|
|
187
|
+
let u = !0;
|
|
188
|
+
const w = o?.toLowerCase();
|
|
189
|
+
w === "false" ? u = !1 : w !== "true" && (u = o), u !== !1 && (i.hidden = u ?? !0);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
Object.keys(r.returnType).length === 0 && delete r.returnType, I.push([r, i]);
|
|
197
|
+
} catch (m) {
|
|
198
|
+
h(e, new Error(`'${f}': ${m.message}`));
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
var a, y;
|
|
202
|
+
}), k.length > 0) throw console.warn(k), new Error("There were compilation errors.", { cause: k });
|
|
203
|
+
if (I.length === 0) throw new Error("No exported functions.");
|
|
204
|
+
const ie = `${le.uuidV4()}-script`;
|
|
205
|
+
try {
|
|
206
|
+
C || k.length !== 0 || (D = await async function(e, a, y = "/script.js", r = "__SHEETXL") {
|
|
207
|
+
try {
|
|
208
|
+
const i = await async function() {
|
|
209
|
+
if (v) return v;
|
|
210
|
+
if (R) {
|
|
211
|
+
if (await R, !v) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
212
|
+
return v;
|
|
213
|
+
}
|
|
214
|
+
let c, l;
|
|
215
|
+
R = new Promise((t, s) => {
|
|
216
|
+
c = t, l = s;
|
|
217
|
+
});
|
|
218
|
+
try {
|
|
219
|
+
const { initialize: t } = await import("./BUNUi9F3xbjfUKty.mjs");
|
|
220
|
+
return v = await t(), c(), v;
|
|
221
|
+
} catch (t) {
|
|
222
|
+
throw console.error("Failed to import or initialize esbuild:", t), R = null, l(t), t;
|
|
223
|
+
}
|
|
224
|
+
}(), f = "@sheetxl/primitives", m = `
|
|
225
|
+
export const FormulaContext = globalThis.${r}?.FormulaContext;
|
|
226
|
+
export const ScalarType = globalThis.${r}?.ScalarType;
|
|
227
|
+
export const Observable = globalThis.${r}?.Observable;
|
|
228
|
+
export const IRange = globalThis.${r}?.IRange;
|
|
229
|
+
export const FormulaError = globalThis.${r}?.FormulaError;
|
|
230
|
+
// Add more exports as needed
|
|
231
|
+
`, x = { name: "sheetxl-esbuild-in-memory", setup(c) {
|
|
232
|
+
const l = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
233
|
+
c.onResolve({ filter: new RegExp(`^(${y.replace("/", "\\/")}|${f})$`) }, (t) => ({ path: t.path, namespace: l })), c.onResolve({ filter: /.*/ }, (t) => {
|
|
234
|
+
if (t.namespace !== l) return console.warn(`esbuild: Treating import "${t.path}" as external.`), { path: t.path, external: !0 };
|
|
235
|
+
}), c.onLoad({ filter: /.*/, namespace: l }, (t) => {
|
|
236
|
+
let s;
|
|
237
|
+
if (t.path === y) s = a;
|
|
238
|
+
else {
|
|
239
|
+
if (t.path !== f) return { errors: [{ text: `Cannot load unknown path in ${l}: ${t.path}` }] };
|
|
240
|
+
s = m;
|
|
241
|
+
}
|
|
242
|
+
return { contents: s, loader: "ts" };
|
|
243
|
+
});
|
|
244
|
+
} }, p = await i.build({ entryPoints: [y], bundle: !0, write: !1, format: "esm", plugins: [x], sourcemap: "inline", tsconfigRaw: se, minify: !0, platform: "neutral" });
|
|
245
|
+
if (p.outputFiles && p.outputFiles.length > 0) return p.outputFiles[0].text;
|
|
246
|
+
throw p.errors && p.errors.length > 0 ? new Error(`esbuild bundling failed: ${p.errors.map((c) => c.text).join(`
|
|
247
|
+
`)}`) : new Error("esbuild did not produce an output file.");
|
|
248
|
+
} catch (i) {
|
|
249
|
+
throw console.error("esbuild bundling process failed:", i), i;
|
|
250
|
+
}
|
|
251
|
+
}(0, D, O));
|
|
252
|
+
} catch {
|
|
253
|
+
console.warn("Error bundling script");
|
|
254
|
+
}
|
|
255
|
+
const G = { functions: I, commitId: ie, source: T, name: "Script", language: "typescript", compiled: D };
|
|
256
|
+
return A && (G.autoRun = A), G;
|
|
257
|
+
}
|
|
258
|
+
export {
|
|
259
|
+
ye as compileModule
|
|
260
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.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
|
+
const e = { BESSELI: { s: "Returns the modified Bessel function In(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELJ: { s: "Returns the Bessel function Jn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELK: { s: "Returns the modified Bessel function Kn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } }, BESSELY: { s: "Returns the Bessel function Yn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } } };
|
|
8
|
+
export {
|
|
9
|
+
e as default
|
|
10
|
+
};
|