@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,58 @@
|
|
|
1
|
+
import { a } from "./CCbJipmDawMQQxRJ.js";
|
|
2
|
+
import { r as o } from "./Dml7K4XhLTRwUDTY.js";
|
|
3
|
+
import { a4 as z, N as O, a5 as E, a6 as M, T as u, H as A, J as W, B as n, a7 as J, a8 as V, a3 as h, a9 as k, aa as q, ab as f, L as y, ac as b, ad as j } from "./BrwV_8GjxcVuWuUk.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.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
|
+
const Y = o.memo((w) => {
|
|
11
|
+
const { title: S, onHide: C, autoFocusSel: N = ".range-input input", context: R, notifier: l = z, command: r, commands: c, ...T } = w, [v, d] = o.useState(!1), [g, m] = o.useState(!1), x = o.useRef(null), [G, D] = o.useReducer((e) => e + 1, 0), [F, { width: K }] = O();
|
|
12
|
+
E(r);
|
|
13
|
+
const s = R ?? r.context(), t = s.table(), [H, B] = o.useState(() => t ? s.getNames().getRanges(t.getRange()) : null), I = o.useMemo(() => t?.getName() ?? "", [t]);
|
|
14
|
+
M(s.table(), { onAnchorCoordsChange(e) {
|
|
15
|
+
B(s.getNames().getRanges(e.getRange()));
|
|
16
|
+
}, onProtectedChange(e) {
|
|
17
|
+
D();
|
|
18
|
+
} });
|
|
19
|
+
const P = u((e) => {
|
|
20
|
+
s?.table().setName(e);
|
|
21
|
+
}, [s]), L = u((e) => {
|
|
22
|
+
s?.table().resize(e.at(0));
|
|
23
|
+
}, [s]);
|
|
24
|
+
let p = null;
|
|
25
|
+
return s.table() || (p = a.jsx("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.jsx("div", { children: "No table selected" }) })), a.jsx(A, { ref: x, title: S ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: N, onHide: C, onFocus: () => d(!0), onBlur: (e) => {
|
|
26
|
+
x?.current?.contains(e.relatedTarget) || d(!1);
|
|
27
|
+
}, PaperProps: { elevation: v ? 3 : 1 }, ...T, children: a.jsxs(W, { dividers: !0, ref: F, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [a.jsxs(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: s.table() ? 1 : 0 }, children: [a.jsx(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a.jsx(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: a.jsxs(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a.jsx(J, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: P, onValidate: (e) => {
|
|
28
|
+
t && t.getName().toLowerCase() === e.toLowerCase() || s?.getNames().validateName(e);
|
|
29
|
+
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
30
|
+
g || e.target?.select(), m(!0);
|
|
31
|
+
} }), a.jsx(V, { formName: "range", value: H, onChangeInput: L, resolvedAddress: s.getNames().getRanges.bind(s.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
32
|
+
g || e.target?.select(), m(!0);
|
|
33
|
+
} })] }) }) }), a.jsxs(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.jsx(h, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a.jsx(k, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
34
|
+
t.updateStyleOptions(e);
|
|
35
|
+
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
36
|
+
try {
|
|
37
|
+
t.setShowHeaders(e);
|
|
38
|
+
} catch (i) {
|
|
39
|
+
l.showError(i);
|
|
40
|
+
}
|
|
41
|
+
}, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
|
|
42
|
+
try {
|
|
43
|
+
t.setShowTotals(e);
|
|
44
|
+
} catch (i) {
|
|
45
|
+
l.showError(i);
|
|
46
|
+
}
|
|
47
|
+
}, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
|
|
48
|
+
try {
|
|
49
|
+
t.setShowFilterButton(e);
|
|
50
|
+
} catch (i) {
|
|
51
|
+
l.showError(i);
|
|
52
|
+
}
|
|
53
|
+
} }), a.jsx(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a.jsx(q, { table: t, styles: s.styles(), bodyStyle: s.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a.jsx(h, { orientation: "horizontal" }), a.jsxs(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a.jsx(f, { variant: b.Menuitem, command: c.getCommand("convertTableToRange"), commandState: t, icon: y(a.jsx(j, {})) }), a.jsx(f, { variant: b.Menuitem, commandState: t, command: c.getCommand("deleteTable"), icon: y(a.jsx(j, {})) })] })] })] }), p] }) });
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
Y as TableDetailsWindow,
|
|
57
|
+
Y as default
|
|
58
|
+
};
|
|
@@ -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 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" } } } };
|
|
8
|
+
export {
|
|
9
|
+
r as default
|
|
10
|
+
};
|
|
@@ -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 t = { ASC: { s: "Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).", p: { text: { d: "is a text or a reference to a cell containing text" } }, h: "DBCS" }, ARRAYTOTEXT: { s: "Returns a text representation of an array", p: { array: { d: "the array to represent as text" }, format: { d: "0 for relaxed format, 1 for strict format", v: 0 } } }, CHAR: { s: "Returns the character specified by the code number from the character set for your computer", p: { number: { d: "is a number between 1 and 255 specifying which character you want" } } }, CLEAN: { s: "Removes all nonprintable characters from text", p: { text: { d: "is the text you want to clean" } } }, CODE: { s: "Returns the Unicode value of the first character in a text string", p: { text: { d: "is the text string whose Unicode value you want" } } }, CONCAT: { s: "Concatenates a list or range of text strings", p: { text: { d: "text1,text2,... are 1 to 252 text strings or ranges to be joined" } } }, CONCATENATE: { s: "Joins several text strings into one text string", p: { text: { d: "text1, text2,... are 1 to 252 text strings or ranges to be joined" } }, c: "Compatibility" }, DETECTLANGUAGE: { s: "Detects the language of a given text.", p: { text: { d: "is the text to detect the language of" } }, h: "Unimplemented" }, DBCS: { s: "Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).", p: { text: { d: "is a text or a reference to a cell containing text" } }, h: "DBCS" }, DOLLAR: { s: "Converts a number to text in currency format", p: { number: { d: "is the number to convert" }, decimals: { d: "is the number of digits to the right of the decimal point", v: 2 } } }, EXACT: { s: "Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive", p: { text1: { d: "is the first text string" }, text2: { d: "is the second text string" } } }, FIND: { s: "Returns the starting position of one text string within another text string. FIND is case-sensitive", p: { findText: { d: "Returns the starting position of one text string within another text string. FIND is case-sensitive" }, withinText: { d: "is the text you want to search" }, startNum: { d: "specifies the character at which to start the search. The first character in Within_text is character number 1", v: 1 } } }, FINDB: { s: "Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.", p: { findText: { d: "is the text you want to find" }, withinText: { d: "is the text you want to search" }, startNum: { d: "is the position in within_text to start searching", v: 1 } }, h: "DBCS" }, FIXED: { s: "Rounds a number to the specified number of decimals and returns the result as text with or without commas", p: { number: { d: "is the number you want to round and convert to text" }, decimals: { d: "is the number of digits to the right of the decimal point", v: 2 }, noCommas: { d: "is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE", v: !1 } } }, LEFT: { s: "Returns the specified number of characters from the start of a text string", p: { text: { d: "is the text string from which you want to extract characters" }, numChars: { d: "specifies how many characters you want LEFT to extract", v: 1 } } }, LEFTB: { s: "Returns the leftmost num_bytes characters from text. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, numBytes: { d: "is the number of bytes to extract", v: 1 } }, h: "DBCS" }, LEN: { s: "Returns the number of characters in a text string", p: { text: { d: "is the text whose length you want to find. Spaces count as characters" } } }, LENB: { s: "Returns the number of bytes in a text string. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" } } }, LOWER: { s: "Converts all letters in a text string to lowercase", p: { text: { d: "is the text you want to convert to lowercase. Characters in Text that are not letters are not changed" } } }, MID: { s: "Returns the characters from the middle of a text string, given a starting position and length", p: { text: { d: "is the text string from which you want to extract characters" }, startNum: { d: "is the position of the first character you want to extract" }, numChars: { d: "specifies how many characters to return from Text" } } }, MIDB: { s: "Returns characters from the middle of a text string. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, startNum: { d: "is the position of the first character you want to extract" }, numBytes: { d: "is the number of bytes to extract" } }, h: "DBCS" }, NUMBERVALUE: { s: "Converts text to number in a locale-independent manner", p: { text: { d: "is the text string you want to convert" }, decimalSeparator: { d: "is the character that separates the integer part from the decimal part of the number", v: "." }, groupSeparator: { d: "is the character that separates groups of thousands", v: "," } } }, PERCENTOF: { s: "Returns the percentage of a subset of a given data set", p: { dataSubset: { d: "is the subset" }, dataAll: { d: "is the data set" } }, h: "Unimplemented" }, PHONETIC: { s: "Returns the phonetic spelling of a text string", p: { reference: { d: "Text string or a reference to a single cell or a range of cells that contain a furigana text string" } }, h: "Unimplemented" }, PROPER: { s: "Converts the first letter of each word in a text string to uppercase", p: { text: { d: "is the text string you want to convert" } } }, REGEXEXTRACT: { s: "Extracts substrings of 'text' based on the provided REGEX 'pattern'", p: { text: { d: "is the text string from which you want to extract characters" }, pattern: { d: "The regular expression to be applied" }, returnMode: { d: "Specify which matches to return", v: 0 }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REGEXREPLACE: { s: "Returns 'text', with 'replacement' in place of matches with 'pattern'", p: { text: { d: "is the text string from which you want to extract characters" }, pattern: { d: "The regular expression to be applied" }, replacement: { d: "The replacement string" }, occurrence: { d: "The occurrence of the match to replace", v: 0 }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REGEXTEST: { s: "Checks whether the input matches the pattern, and returns TRUE or FALSE", p: { text: { d: "is the text string to be checked" }, pattern: { d: "is the regular expression to be applied" }, caseSensitivity: { d: "Whether the match is case sensitive", v: !1 } }, h: "Unimplemented" }, REPLACE: { s: "Replaces part of a text string with a different text string", p: { oldText: { d: "is the text string to be changed" }, startNum: { d: "is the position of the first character you want to replace" }, numChars: { d: "is the number of characters to replace" }, newText: { d: "is the text string that will replace old_text" } } }, REPLACEB: { s: "Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).", p: { oldText: { d: "is the text string to be changed" }, startNum: { d: "is the position of the first character you want to replace" }, numBytes: { d: "is the number of bytes to replace" }, newText: { d: "is the text string that will replace old_text" } }, h: "DBCS" }, REPT: { s: "Repeats text a given number of times", p: { text: { d: "is the text you want to repeat" }, numberTimes: { d: "is the number of times you want to repeat text" } } }, RIGHT: { s: "Returns the specified number of characters from the end of a text string", p: { text: { d: "is the text string that contains the characters you want to extract" }, numChars: { d: "specifies how many characters you want to extract", v: 1 } } }, RIGHTB: { s: "Returns the rightmost num_bytes characters from text. Uses double-byte characters.", p: { text: { d: "is the text string from which you want to extract characters" }, numBytes: { d: "is the number of bytes to extract", v: 1 } } }, SEARCH: { s: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)", p: { findText: { d: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)" }, withinText: { d: "is the text in which you want to search for Find_text" }, startNum: { d: "is the character number in Within_text, counting from the left, at which you want to start searching", v: 1 } } }, SEARCHB: { s: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).", p: { findText: { d: "Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)" }, withinText: { d: "is the text in which you want to search for Find_text" }, startBytes: { d: "is the character number in Within_text, counting from the left, at which you want to start searching", v: 1 } }, h: "DBCS" }, SUBSTITUTE: { s: "Replaces existing text with new text in a text string", p: { text: { d: "is the text or the reference to a cell containing text in which you want to substitute characters" }, oldText: { d: "is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text" }, newText: { d: "is the text you want to replace Old_text with" }, instanceNum: { d: "specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced" } } }, T: { s: "Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not", p: { value: { d: "is the value to test" } } }, TEXT: { s: "Converts a value to text in a specific number format", p: { value: { d: "is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value" }, formatText: { d: "is a text string that defines the number format to use" } } }, TEXTAFTER: { s: "Returns text that's after delimiting characters.", p: { text: { d: "The text you want to search for the delimiter." }, delimiter: { d: "The character or string to use as a delimiter." }, instanceNum: { d: "The desired occurrence of delimiter. The default is 1. A negative number searches from the end.", v: 1 }, matchMode: { d: "Searches the text for a delimiter match. By default, a case-sensitive match is done.", v: 0 }, matchEnd: { d: "Whether to match the delimiter against the end of text. By default, they're not matched.", v: 0 }, ifNotFound: { d: "Returned if no match is found. By default, #N/A is returned.", v: "undefined" } } }, TEXTJOIN: { s: "Concatenates a list or range of text strings using a delimiter", p: { delimiter: { d: "Character or string to insert between each text item" }, ignoreEmpty: { d: "if TRUE(default), ignores empty cells" }, text: { d: "text1,text2,... are 1 to 252 text strings or ranges to be joined" } } }, TEXTSPLIT: { s: "Splits text into rows or columns using delimiters.", p: { text: { d: "The text to split" }, colDelimiter: { d: "The column delimiter(s) - can be string or array of strings" }, rowDelimiter: { d: "The row delimiter(s), null/undefined means no row splitting", v: null }, ignoreEmpty: { d: "Whether to ignore empty values (defaults to `false`)", v: !1 }, matchMode: { d: "Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)", v: 0 }, padWith: { d: "Value to use for padding if matrix is uneven (defaults to `#N/A`)", v: "undefined" } } }, TEXTBEFORE: { s: "Returns text that's before delimiting characters.", p: { text: { d: "The text you want to search for the delimiter." }, delimiter: { d: "The character or string to use as a delimiter." }, instanceNum: { d: "The desired occurrence of delimiter. The default is 1. A negative number searches from the end.", v: 1 }, matchMode: { d: "Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)", v: 0 }, matchEnd: { d: "Whether to match the delimiter against the end of text. By default, they're not matched.", v: 0 }, ifNotFound: { d: "Returned if no match is found. By default, #N/A is returned.", v: "undefined" } } }, TRANSLATE: { s: "Translate a text string from one language to another using the Microsoft Translator service.", p: { text: { d: "The text to translate." }, sourceLanguage: { d: "Specifiy the source language your text is currently in. Expressed as a two-letter language code." }, targetLanguage: { d: "Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code." } }, h: "Unimplemented" }, TRIM: { s: "Removes all spaces from text except for single spaces between words.", p: { text: { d: "The text from which you want to remove extra spaces." } } }, UNICHAR: { s: "Returns the Unicode character referenced by the given numeric value", p: { number: { d: "is the Unicode number representing a character" } } }, UNICODE: { s: "Returns the number (code point) corresponding to the first character of the text", p: { text: { d: "is the character that you want the Unicode value of" } } }, UPPER: { s: "Converts a text string to all uppercase letters", p: { text: { d: "is the text you want converted to uppercase, a reference or a text string" } } }, VALUE: { s: "Converts a text string that represents a number to a number", p: { text: { d: "is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert" } } }, VALUETOTEXT: { s: "Returns a text representation of a value", p: { value: { d: "the value to represent as text" }, format: { d: "the format of the text", v: 0 } } } };
|
|
8
|
+
export {
|
|
9
|
+
t as default
|
|
10
|
+
};
|
|
@@ -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 = { CELL: { s: "Returns information about the cell.", p: { infoType: { d: "The type of information to return." }, reference: {} } }, "ERROR.TYPE": { s: "Returns a number matching an error value", p: { errorVal: { d: "is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value." } } }, INFO: { s: "Returns information about the current operating system.", p: { typeText: { d: "The type of information to return" } } }, ISBLANK: { s: "Checks whether a reference is to an empty cell, and returns TRUE or FALSE", p: { value: { d: "is the cell or a name that refers to the cell you want to test" } } }, ISERR: { s: "Checks whether a value is an error other than #N/A, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISERROR: { s: "Checks whether a value is an error, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISEVEN: { s: "Returns TRUE if the number is even", p: { number: { d: "is the value to test" } } }, ISFORMULA: { s: "Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE", p: { reference: { d: "is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell" } } }, ISLOGICAL: { s: "Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISNA: { s: "Checks whether a value is #N/A, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISNONTEXT: { s: "Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE", p: { value: { d: "is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value" } } }, ISNUMBER: { s: "Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE", p: { value: { d: "is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value" } } }, ISODD: { s: "Returns TRUE if the number is odd", p: { number: { d: "is the value to test" } } }, ISOMITTED: { s: "Checks whether the value is omitted, and returns TRUE or FALSE", p: { argument: { d: "is the value you want to test, such as a LAMBDA parameter" } } }, ISREF: { s: "Checks whether a value is a reference, and returns TRUE or FALSE", p: { value: { d: "is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value" } } }, ISTEXT: { s: "Converts a value to text in a specific number format", p: { value: { d: "is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value" } } }, N: { s: "Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero)", p: { value: { d: "is the value to convert" } } }, NA: { s: "Returns the #N/A error value", p: {} }, SHEET: { s: "Returns the sheet number of the referenced sheet", p: { value: { d: "is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned" } } }, SHEETS: { s: "Returns the number of sheets in a reference", p: { reference: { d: "is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned" } } }, TYPE: { s: "Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128", p: { value: { d: "is the value to check" } } } };
|
|
8
|
+
export {
|
|
9
|
+
e as default
|
|
10
|
+
};
|
|
@@ -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 t = { CONVERT: { s: "Converts a number from one measurement system to another", p: { number: { d: "is the value in from_unit to convert." }, fromUnit: { d: "is the units for number." }, toUnit: { d: "is the units for the result" } } } };
|
|
8
|
+
export {
|
|
9
|
+
t as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { r as u, m as T } from "./Dml7K4XhLTRwUDTY.js";
|
|
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
|
+
function me(e, t, r) {
|
|
9
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
10
|
+
}
|
|
11
|
+
function ne(e, t) {
|
|
12
|
+
var r = Object.keys(e);
|
|
13
|
+
if (Object.getOwnPropertySymbols) {
|
|
14
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
15
|
+
t && (n = n.filter(function(o) {
|
|
16
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
17
|
+
})), r.push.apply(r, n);
|
|
18
|
+
}
|
|
19
|
+
return r;
|
|
20
|
+
}
|
|
21
|
+
function oe(e) {
|
|
22
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
23
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
24
|
+
t % 2 ? ne(Object(r), !0).forEach(function(n) {
|
|
25
|
+
me(e, n, r[n]);
|
|
26
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ne(Object(r)).forEach(function(n) {
|
|
27
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return e;
|
|
31
|
+
}
|
|
32
|
+
function ie(e, t) {
|
|
33
|
+
(t == null || t > e.length) && (t = e.length);
|
|
34
|
+
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
35
|
+
return n;
|
|
36
|
+
}
|
|
37
|
+
function ye(e, t, r) {
|
|
38
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
39
|
+
}
|
|
40
|
+
function ue(e, t) {
|
|
41
|
+
var r = Object.keys(e);
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
44
|
+
t && (n = n.filter(function(o) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
46
|
+
})), r.push.apply(r, n);
|
|
47
|
+
}
|
|
48
|
+
return r;
|
|
49
|
+
}
|
|
50
|
+
function ce(e) {
|
|
51
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
52
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
53
|
+
t % 2 ? ue(Object(r), !0).forEach(function(n) {
|
|
54
|
+
ye(e, n, r[n]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ue(Object(r)).forEach(function(n) {
|
|
56
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return e;
|
|
60
|
+
}
|
|
61
|
+
function V(e) {
|
|
62
|
+
return function t() {
|
|
63
|
+
for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
|
|
64
|
+
return o.length >= e.length ? e.apply(this, o) : function() {
|
|
65
|
+
for (var c = arguments.length, a = new Array(c), g = 0; g < c; g++) a[g] = arguments[g];
|
|
66
|
+
return t.apply(r, [].concat(o, a));
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function U(e) {
|
|
71
|
+
return {}.toString.call(e).includes("Object");
|
|
72
|
+
}
|
|
73
|
+
function z(e) {
|
|
74
|
+
return typeof e == "function";
|
|
75
|
+
}
|
|
76
|
+
var R = V(function(e, t) {
|
|
77
|
+
throw new Error(e[t] || e.default);
|
|
78
|
+
})({ initialIsRequired: "initial state is required", initialType: "initial state should be an object", initialContent: "initial state shouldn't be an empty object", handlerType: "handler should be an object or a function", handlersType: "all handlers should be a functions", selectorType: "selector should be a function", changeType: "provided value of changes should be an object", changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state', default: "an unknown error accured in `state-local` package" }), ve = function(e, t) {
|
|
79
|
+
return U(t) || R("changeType"), Object.keys(t).some(function(r) {
|
|
80
|
+
return n = e, o = r, !Object.prototype.hasOwnProperty.call(n, o);
|
|
81
|
+
var n, o;
|
|
82
|
+
}) && R("changeField"), t;
|
|
83
|
+
}, be = function(e) {
|
|
84
|
+
z(e) || R("selectorType");
|
|
85
|
+
}, we = function(e) {
|
|
86
|
+
z(e) || U(e) || R("handlerType"), U(e) && Object.values(e).some(function(t) {
|
|
87
|
+
return !z(t);
|
|
88
|
+
}) && R("handlersType");
|
|
89
|
+
}, Oe = function(e) {
|
|
90
|
+
var t;
|
|
91
|
+
e || R("initialIsRequired"), U(e) || R("initialType"), t = e, Object.keys(t).length || R("initialContent");
|
|
92
|
+
};
|
|
93
|
+
function je(e, t) {
|
|
94
|
+
return z(t) ? t(e.current) : t;
|
|
95
|
+
}
|
|
96
|
+
function Me(e, t) {
|
|
97
|
+
return e.current = ce(ce({}, e.current), t), t;
|
|
98
|
+
}
|
|
99
|
+
function Ee(e, t, r) {
|
|
100
|
+
return z(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
|
|
101
|
+
var o;
|
|
102
|
+
return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
|
|
103
|
+
}), r;
|
|
104
|
+
}
|
|
105
|
+
var Q, Pe = function(e) {
|
|
106
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
107
|
+
Oe(e), we(t);
|
|
108
|
+
var r = { current: e }, n = V(Ee)(r, t), o = V(Me)(r), i = V(ve)(e), c = V(je)(r);
|
|
109
|
+
return [function() {
|
|
110
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(g) {
|
|
111
|
+
return g;
|
|
112
|
+
};
|
|
113
|
+
return be(a), a(r.current);
|
|
114
|
+
}, function(a) {
|
|
115
|
+
(function() {
|
|
116
|
+
for (var g = arguments.length, p = new Array(g), O = 0; O < g; O++) p[O] = arguments[O];
|
|
117
|
+
return function(b) {
|
|
118
|
+
return p.reduceRight(function(E, P) {
|
|
119
|
+
return P(E);
|
|
120
|
+
}, b);
|
|
121
|
+
};
|
|
122
|
+
})(n, o, i, c)(a);
|
|
123
|
+
}];
|
|
124
|
+
}, se = { configIsRequired: "the configuration object is required", configType: "the configuration object should be an object", default: "an unknown error accured in `@monaco-editor/loader` package", deprecation: `Deprecation warning!
|
|
125
|
+
You are using deprecated way of configuration.
|
|
126
|
+
|
|
127
|
+
Instead of using
|
|
128
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
129
|
+
use
|
|
130
|
+
monaco.config({ paths: { vs: '...' } })
|
|
131
|
+
|
|
132
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
133
|
+
` }, ae = (Q = function(e, t) {
|
|
134
|
+
throw new Error(e[t] || e.default);
|
|
135
|
+
}, function e() {
|
|
136
|
+
for (var t = this, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
|
|
137
|
+
return n.length >= Q.length ? Q.apply(this, n) : function() {
|
|
138
|
+
for (var i = arguments.length, c = new Array(i), a = 0; a < i; a++) c[a] = arguments[a];
|
|
139
|
+
return e.apply(t, [].concat(n, c));
|
|
140
|
+
};
|
|
141
|
+
})(se), Re = function(e) {
|
|
142
|
+
var t;
|
|
143
|
+
return e || ae("configIsRequired"), t = e, {}.toString.call(t).includes("Object") || ae("configType"), e.urls ? (console.warn(se.deprecation), { paths: { vs: e.urls.monacoBase } }) : e;
|
|
144
|
+
};
|
|
145
|
+
function fe(e, t) {
|
|
146
|
+
return Object.keys(t).forEach(function(r) {
|
|
147
|
+
t[r] instanceof Object && e[r] && Object.assign(t[r], fe(e[r], t[r]));
|
|
148
|
+
}), oe(oe({}, e), t);
|
|
149
|
+
}
|
|
150
|
+
var Se = { type: "cancelation", msg: "operation is manually canceled" };
|
|
151
|
+
function W(e) {
|
|
152
|
+
var t = !1, r = new Promise(function(n, o) {
|
|
153
|
+
e.then(function(i) {
|
|
154
|
+
return t ? o(Se) : n(i);
|
|
155
|
+
}), e.catch(o);
|
|
156
|
+
});
|
|
157
|
+
return r.cancel = function() {
|
|
158
|
+
return t = !0;
|
|
159
|
+
}, r;
|
|
160
|
+
}
|
|
161
|
+
var X, de = function(e) {
|
|
162
|
+
if (Array.isArray(e)) return e;
|
|
163
|
+
}(X = Pe({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: !1, resolve: null, reject: null, monaco: null })) || function(e) {
|
|
164
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
|
|
165
|
+
var t = [], r = !0, n = !1, o = void 0;
|
|
166
|
+
try {
|
|
167
|
+
for (var i, c = e[Symbol.iterator](); !(r = (i = c.next()).done) && (t.push(i.value), t.length !== 2); r = !0) ;
|
|
168
|
+
} catch (a) {
|
|
169
|
+
n = !0, o = a;
|
|
170
|
+
} finally {
|
|
171
|
+
try {
|
|
172
|
+
r || c.return == null || c.return();
|
|
173
|
+
} finally {
|
|
174
|
+
if (n) throw o;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return t;
|
|
178
|
+
}
|
|
179
|
+
}(X) || function(e) {
|
|
180
|
+
if (e) {
|
|
181
|
+
if (typeof e == "string") return ie(e, 2);
|
|
182
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
183
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? ie(e, 2) : void 0;
|
|
184
|
+
}
|
|
185
|
+
}(X) || function() {
|
|
186
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
187
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
188
|
+
}(), q = de[0], B = de[1];
|
|
189
|
+
function ke(e) {
|
|
190
|
+
return document.body.appendChild(e);
|
|
191
|
+
}
|
|
192
|
+
function xe(e) {
|
|
193
|
+
var t, r, n = q(function(i) {
|
|
194
|
+
return { config: i.config, reject: i.reject };
|
|
195
|
+
}), o = (t = "".concat(n.config.paths.vs, "/loader.js"), r = document.createElement("script"), t && (r.src = t), r);
|
|
196
|
+
return o.onload = function() {
|
|
197
|
+
return e();
|
|
198
|
+
}, o.onerror = n.reject, o;
|
|
199
|
+
}
|
|
200
|
+
function Ie() {
|
|
201
|
+
var e = q(function(r) {
|
|
202
|
+
return { config: r.config, resolve: r.resolve, reject: r.reject };
|
|
203
|
+
}), t = window.require;
|
|
204
|
+
t.config(e.config), t(["vs/editor/editor.main"], function(r) {
|
|
205
|
+
ge(r), e.resolve(r);
|
|
206
|
+
}, function(r) {
|
|
207
|
+
e.reject(r);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function ge(e) {
|
|
211
|
+
q().monaco || B({ monaco: e });
|
|
212
|
+
}
|
|
213
|
+
var Z = new Promise(function(e, t) {
|
|
214
|
+
return B({ resolve: e, reject: t });
|
|
215
|
+
}), Y = { config: function(e) {
|
|
216
|
+
var t = Re(e), r = t.monaco, n = function(o, i) {
|
|
217
|
+
if (o == null) return {};
|
|
218
|
+
var c, a, g = function(O, b) {
|
|
219
|
+
if (O == null) return {};
|
|
220
|
+
var E, P, S = {}, k = Object.keys(O);
|
|
221
|
+
for (P = 0; P < k.length; P++) E = k[P], b.indexOf(E) >= 0 || (S[E] = O[E]);
|
|
222
|
+
return S;
|
|
223
|
+
}(o, i);
|
|
224
|
+
if (Object.getOwnPropertySymbols) {
|
|
225
|
+
var p = Object.getOwnPropertySymbols(o);
|
|
226
|
+
for (a = 0; a < p.length; a++) c = p[a], i.indexOf(c) >= 0 || Object.prototype.propertyIsEnumerable.call(o, c) && (g[c] = o[c]);
|
|
227
|
+
}
|
|
228
|
+
return g;
|
|
229
|
+
}(t, ["monaco"]);
|
|
230
|
+
B(function(o) {
|
|
231
|
+
return { config: fe(o.config, n), monaco: r };
|
|
232
|
+
});
|
|
233
|
+
}, init: function() {
|
|
234
|
+
var e = q(function(t) {
|
|
235
|
+
return { monaco: t.monaco, isInitialized: t.isInitialized, resolve: t.resolve };
|
|
236
|
+
});
|
|
237
|
+
if (!e.isInitialized) {
|
|
238
|
+
if (B({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), W(Z);
|
|
239
|
+
if (window.monaco && window.monaco.editor) return ge(window.monaco), e.resolve(window.monaco), W(Z);
|
|
240
|
+
(function() {
|
|
241
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
242
|
+
return function(o) {
|
|
243
|
+
return r.reduceRight(function(i, c) {
|
|
244
|
+
return c(i);
|
|
245
|
+
}, o);
|
|
246
|
+
};
|
|
247
|
+
})(ke, xe)(Ie);
|
|
248
|
+
}
|
|
249
|
+
return W(Z);
|
|
250
|
+
}, __getMonacoInstance: function() {
|
|
251
|
+
return q(function(e) {
|
|
252
|
+
return e.monaco;
|
|
253
|
+
});
|
|
254
|
+
} }, Te = { display: "flex", position: "relative", textAlign: "initial" }, Ce = { width: "100%" }, Ae = { display: "none" }, De = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Ve = function({ children: e }) {
|
|
255
|
+
return T.createElement("div", { style: De.container }, e);
|
|
256
|
+
}, pe = u.memo(function({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: c }) {
|
|
257
|
+
return T.createElement("section", { style: { ...Te, width: e, height: t }, ...c }, !r && T.createElement(Ve, null, n), T.createElement("div", { ref: o, style: { ...Ce, ...!r && Ae }, className: i }));
|
|
258
|
+
}), ee = function(e) {
|
|
259
|
+
u.useEffect(e, []);
|
|
260
|
+
}, j = function(e, t, r = !0) {
|
|
261
|
+
let n = u.useRef(!0);
|
|
262
|
+
u.useEffect(n.current || !r ? () => {
|
|
263
|
+
n.current = !1;
|
|
264
|
+
} : e, t);
|
|
265
|
+
};
|
|
266
|
+
function L() {
|
|
267
|
+
}
|
|
268
|
+
function I(e, t, r, n) {
|
|
269
|
+
return i = n, (o = e).editor.getModel(le(o, i)) || function(c, a, g, p) {
|
|
270
|
+
return c.editor.createModel(a, g, p ? le(c, p) : void 0);
|
|
271
|
+
}(e, t, r, n);
|
|
272
|
+
var o, i;
|
|
273
|
+
}
|
|
274
|
+
function le(e, t) {
|
|
275
|
+
return e.Uri.parse(t);
|
|
276
|
+
}
|
|
277
|
+
var qe = u.memo(function({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: c, keepCurrentOriginalModel: a = !1, keepCurrentModifiedModel: g = !1, theme: p = "light", loading: O = "Loading...", options: b = {}, height: E = "100%", width: P = "100%", className: S, wrapperProps: k = {}, beforeMount: $ = L, onMount: G = L }) {
|
|
278
|
+
let [w, C] = u.useState(!1), [A, m] = u.useState(!0), y = u.useRef(null), f = u.useRef(null), D = u.useRef(null), v = u.useRef(G), l = u.useRef($), x = u.useRef(!1);
|
|
279
|
+
ee(() => {
|
|
280
|
+
let s = Y.init();
|
|
281
|
+
return s.then((d) => (f.current = d) && m(!1)).catch((d) => d?.type !== "cancelation" && console.error("Monaco initialization: error:", d)), () => y.current ? function() {
|
|
282
|
+
let d = y.current?.getModel();
|
|
283
|
+
a || d?.original?.dispose(), g || d?.modified?.dispose(), y.current?.dispose();
|
|
284
|
+
}() : s.cancel();
|
|
285
|
+
}), j(() => {
|
|
286
|
+
if (y.current && f.current) {
|
|
287
|
+
let s = y.current.getOriginalEditor(), d = I(f.current, e || "", n || r || "text", i || "");
|
|
288
|
+
d !== s.getModel() && s.setModel(d);
|
|
289
|
+
}
|
|
290
|
+
}, [i], w), j(() => {
|
|
291
|
+
if (y.current && f.current) {
|
|
292
|
+
let s = y.current.getModifiedEditor(), d = I(f.current, t || "", o || r || "text", c || "");
|
|
293
|
+
d !== s.getModel() && s.setModel(d);
|
|
294
|
+
}
|
|
295
|
+
}, [c], w), j(() => {
|
|
296
|
+
let s = y.current.getModifiedEditor();
|
|
297
|
+
s.getOption(f.current.editor.EditorOption.readOnly) ? s.setValue(t || "") : t !== s.getValue() && (s.executeEdits("", [{ range: s.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), s.pushUndoStop());
|
|
298
|
+
}, [t], w), j(() => {
|
|
299
|
+
y.current?.getModel()?.original.setValue(e || "");
|
|
300
|
+
}, [e], w), j(() => {
|
|
301
|
+
let { original: s, modified: d } = y.current.getModel();
|
|
302
|
+
f.current.editor.setModelLanguage(s, n || r || "text"), f.current.editor.setModelLanguage(d, o || r || "text");
|
|
303
|
+
}, [r, n, o], w), j(() => {
|
|
304
|
+
f.current?.editor.setTheme(p);
|
|
305
|
+
}, [p], w), j(() => {
|
|
306
|
+
y.current?.updateOptions(b);
|
|
307
|
+
}, [b], w);
|
|
308
|
+
let _ = u.useCallback(() => {
|
|
309
|
+
if (!f.current) return;
|
|
310
|
+
l.current(f.current);
|
|
311
|
+
let s = I(f.current, e || "", n || r || "text", i || ""), d = I(f.current, t || "", o || r || "text", c || "");
|
|
312
|
+
y.current?.setModel({ original: s, modified: d });
|
|
313
|
+
}, [r, t, o, e, n, i, c]), N = u.useCallback(() => {
|
|
314
|
+
!x.current && D.current && (y.current = f.current.editor.createDiffEditor(D.current, { automaticLayout: !0, ...b }), _(), f.current?.editor.setTheme(p), C(!0), x.current = !0);
|
|
315
|
+
}, [b, p, _]);
|
|
316
|
+
return u.useEffect(() => {
|
|
317
|
+
w && v.current(y.current, f.current);
|
|
318
|
+
}, [w]), u.useEffect(() => {
|
|
319
|
+
!A && !w && N();
|
|
320
|
+
}, [A, w, N]), T.createElement(pe, { width: P, height: E, isEditorReady: w, loading: O, _ref: D, className: S, wrapperProps: k });
|
|
321
|
+
}), _e = function() {
|
|
322
|
+
let [e, t] = u.useState(Y.__getMonacoInstance());
|
|
323
|
+
return ee(() => {
|
|
324
|
+
let r;
|
|
325
|
+
return e || (r = Y.init(), r.then((n) => {
|
|
326
|
+
t(n);
|
|
327
|
+
})), () => r?.cancel();
|
|
328
|
+
}), e;
|
|
329
|
+
}, F = /* @__PURE__ */ new Map(), Le = u.memo(function({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: c = "light", line: a, loading: g = "Loading...", options: p = {}, overrideServices: O = {}, saveViewState: b = !0, keepCurrentModel: E = !1, width: P = "100%", height: S = "100%", className: k, wrapperProps: $ = {}, beforeMount: G = L, onMount: w = L, onChange: C, onValidate: A = L }) {
|
|
330
|
+
let [m, y] = u.useState(!1), [f, D] = u.useState(!0), v = u.useRef(null), l = u.useRef(null), x = u.useRef(null), _ = u.useRef(w), N = u.useRef(G), s = u.useRef(), d = u.useRef(n), he = function(h) {
|
|
331
|
+
let M = u.useRef();
|
|
332
|
+
return u.useEffect(() => {
|
|
333
|
+
M.current = h;
|
|
334
|
+
}, [h]), M.current;
|
|
335
|
+
}(i), te = u.useRef(!1), H = u.useRef(!1);
|
|
336
|
+
ee(() => {
|
|
337
|
+
let h = Y.init();
|
|
338
|
+
return h.then((M) => (v.current = M) && D(!1)).catch((M) => M?.type !== "cancelation" && console.error("Monaco initialization: error:", M)), () => l.current ? (s.current?.dispose(), E ? b && F.set(i, l.current.saveViewState()) : l.current.getModel()?.dispose(), void l.current.dispose()) : h.cancel();
|
|
339
|
+
}), j(() => {
|
|
340
|
+
let h = I(v.current, e || n || "", t || o || "", i || r || "");
|
|
341
|
+
h !== l.current?.getModel() && (b && F.set(he, l.current?.saveViewState()), l.current?.setModel(h), b && l.current?.restoreViewState(F.get(i)));
|
|
342
|
+
}, [i], m), j(() => {
|
|
343
|
+
l.current?.updateOptions(p);
|
|
344
|
+
}, [p], m), j(() => {
|
|
345
|
+
!l.current || n === void 0 || (l.current.getOption(v.current.editor.EditorOption.readOnly) ? l.current.setValue(n) : n !== l.current.getValue() && (H.current = !0, l.current.executeEdits("", [{ range: l.current.getModel().getFullModelRange(), text: n, forceMoveMarkers: !0 }]), l.current.pushUndoStop(), H.current = !1));
|
|
346
|
+
}, [n], m), j(() => {
|
|
347
|
+
let h = l.current?.getModel();
|
|
348
|
+
h && o && v.current?.editor.setModelLanguage(h, o);
|
|
349
|
+
}, [o], m), j(() => {
|
|
350
|
+
a !== void 0 && l.current?.revealLine(a);
|
|
351
|
+
}, [a], m), j(() => {
|
|
352
|
+
v.current?.editor.setTheme(c);
|
|
353
|
+
}, [c], m);
|
|
354
|
+
let re = u.useCallback(() => {
|
|
355
|
+
if (x.current && v.current && !te.current) {
|
|
356
|
+
N.current(v.current);
|
|
357
|
+
let h = i || r, M = I(v.current, n || e || "", t || o || "", h || "");
|
|
358
|
+
l.current = v.current?.editor.create(x.current, { model: M, automaticLayout: !0, ...p }, O), b && l.current.restoreViewState(F.get(h)), v.current.editor.setTheme(c), a !== void 0 && l.current.revealLine(a), y(!0), te.current = !0;
|
|
359
|
+
}
|
|
360
|
+
}, [e, t, r, n, o, i, p, O, b, c, a]);
|
|
361
|
+
return u.useEffect(() => {
|
|
362
|
+
m && _.current(l.current, v.current);
|
|
363
|
+
}, [m]), u.useEffect(() => {
|
|
364
|
+
!f && !m && re();
|
|
365
|
+
}, [f, m, re]), d.current = n, u.useEffect(() => {
|
|
366
|
+
m && C && (s.current?.dispose(), s.current = l.current?.onDidChangeModelContent((h) => {
|
|
367
|
+
H.current || C(l.current.getValue(), h);
|
|
368
|
+
}));
|
|
369
|
+
}, [m, C]), u.useEffect(() => {
|
|
370
|
+
if (m) {
|
|
371
|
+
let h = v.current.editor.onDidChangeMarkers((M) => {
|
|
372
|
+
let J = l.current.getModel()?.uri;
|
|
373
|
+
if (J && M.find((K) => K.path === J.path)) {
|
|
374
|
+
let K = v.current.editor.getModelMarkers({ resource: J });
|
|
375
|
+
A?.(K);
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return () => {
|
|
379
|
+
h?.dispose();
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
return () => {
|
|
383
|
+
};
|
|
384
|
+
}, [m, A]), T.createElement(pe, { width: P, height: S, isEditorReady: m, loading: g, _ref: x, className: k, wrapperProps: $ });
|
|
385
|
+
}), Ne = Le;
|
|
386
|
+
export {
|
|
387
|
+
qe as DiffEditor,
|
|
388
|
+
Le as Editor,
|
|
389
|
+
Ne as default,
|
|
390
|
+
Y as loader,
|
|
391
|
+
_e as useMonaco
|
|
392
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { a as r } from "./CCbJipmDawMQQxRJ.js";
|
|
2
|
+
import { r as n } from "./Dml7K4XhLTRwUDTY.js";
|
|
3
|
+
import { T as p, S as b, B as k, a7 as B, a8 as I } from "./BrwV_8GjxcVuWuUk.js";
|
|
4
|
+
/**
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.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
|
+
const E = ["Ok", "Cancel"], U = n.memo((V) => {
|
|
11
|
+
const { value: a = null, context: t, onOption: c, onValidateOption: L, onDone: m, onUpdate: g, options: x = E, defaultOption: f = x?.[0], cancelOption: N = "Cancel", sx: C, ...h } = V, T = n.useMemo(() => t?.getNames().findValidName("Range1"), []), d = n.useMemo(() => {
|
|
12
|
+
if (!a) return !0;
|
|
13
|
+
}, []), [l, R] = n.useState({ displayText: a?.getName() ?? T, errorText: null }), [s, v] = n.useState({ displayValue: a?.getRanges() ?? t?.selection() ?? null, errorText: null }), [y, O] = n.useState(!1), S = n.useCallback(async (e) => !l.errorText && !s.errorText, [t]), j = p((e, o, u) => {
|
|
14
|
+
if (!o) {
|
|
15
|
+
let i = null;
|
|
16
|
+
d ? i = t?.getNames().addReference(l?.displayText, s?.displayValue, !1) : (a.getType() === "reference" && a.doBatch(() => {
|
|
17
|
+
a.setName(l?.displayText), a.setReference(s?.displayValue);
|
|
18
|
+
}, `Edit Named '${l?.displayText}'`), i = a), i && (i.select(), g(i, d));
|
|
19
|
+
}
|
|
20
|
+
c?.(e, o, u), m?.();
|
|
21
|
+
}, [t, l, s, m, c, f, N, g]), w = p((e) => {
|
|
22
|
+
let o = null;
|
|
23
|
+
try {
|
|
24
|
+
t?.getNames().validateName(e);
|
|
25
|
+
} catch (u) {
|
|
26
|
+
o = u.message;
|
|
27
|
+
}
|
|
28
|
+
R({ displayText: e, errorText: o });
|
|
29
|
+
}, []), D = p((e) => {
|
|
30
|
+
a && a.getName().toLowerCase() === e.toLowerCase() || t?.getNames().validateName(e);
|
|
31
|
+
}, [t, a]), F = n.useCallback((e) => {
|
|
32
|
+
v({ displayValue: e ?? null, errorText: null });
|
|
33
|
+
}, []);
|
|
34
|
+
return r.jsx(b, { title: (d ? "Define" : "Edit") + " Range", options: x, onOption: j, onValidateOption: S, defaultOption: f, cancelOption: N, autoFocusSel: ".autoFocus", sx: { width: "460px", ...C }, ...h, children: r.jsxs(k, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), range: "flex", flexDirection: "column" }, children: [r.jsx(B, { formName: "name", defaultInput: T, value: l.displayText, onChangeInput: w, onValidate: D, onFocus: (e) => {
|
|
35
|
+
y || e.target?.select(), O(!0);
|
|
36
|
+
} }), r.jsx(I, { formName: "range", value: s.displayValue, onChangeInput: F, resolvedAddress: t.getNames().getRanges.bind(t.getNames()), onFocus: (e) => {
|
|
37
|
+
y || e.target?.select(), O(!0);
|
|
38
|
+
} })] }) });
|
|
39
|
+
});
|
|
40
|
+
export {
|
|
41
|
+
U as NamedReferenceDialog,
|
|
42
|
+
U as default
|
|
43
|
+
};
|