@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,402 @@
|
|
|
1
|
+
import C, { memo as ne, useState as _, useRef as m, useCallback as re, useEffect as S } from "react";
|
|
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/react - Sheet React - React components needed to build advanced grid and spreadsheet UIs. - 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
|
+
function we(e, t, r) {
|
|
21
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
22
|
+
}
|
|
23
|
+
function ue(e, t) {
|
|
24
|
+
var r = Object.keys(e);
|
|
25
|
+
if (Object.getOwnPropertySymbols) {
|
|
26
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
27
|
+
t && (n = n.filter(function(o) {
|
|
28
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
29
|
+
})), r.push.apply(r, n);
|
|
30
|
+
}
|
|
31
|
+
return r;
|
|
32
|
+
}
|
|
33
|
+
function ae(e) {
|
|
34
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
35
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
36
|
+
t % 2 ? ue(Object(r), !0).forEach(function(n) {
|
|
37
|
+
we(e, n, r[n]);
|
|
38
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ue(Object(r)).forEach(function(n) {
|
|
39
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}
|
|
44
|
+
function le(e, t) {
|
|
45
|
+
(t == null || t > e.length) && (t = e.length);
|
|
46
|
+
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
47
|
+
return n;
|
|
48
|
+
}
|
|
49
|
+
function Oe(e, t, r) {
|
|
50
|
+
return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
51
|
+
}
|
|
52
|
+
function se(e, t) {
|
|
53
|
+
var r = Object.keys(e);
|
|
54
|
+
if (Object.getOwnPropertySymbols) {
|
|
55
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
56
|
+
t && (n = n.filter(function(o) {
|
|
57
|
+
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
58
|
+
})), r.push.apply(r, n);
|
|
59
|
+
}
|
|
60
|
+
return r;
|
|
61
|
+
}
|
|
62
|
+
function de(e) {
|
|
63
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
64
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
65
|
+
t % 2 ? se(Object(r), !0).forEach(function(n) {
|
|
66
|
+
Oe(e, n, r[n]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : se(Object(r)).forEach(function(n) {
|
|
68
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return e;
|
|
72
|
+
}
|
|
73
|
+
function R(e) {
|
|
74
|
+
return function t() {
|
|
75
|
+
for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
|
|
76
|
+
return o.length >= e.length ? e.apply(this, o) : function() {
|
|
77
|
+
for (var u = arguments.length, c = new Array(u), l = 0; l < u; l++) c[l] = arguments[l];
|
|
78
|
+
return t.apply(r, [].concat(o, c));
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function Y(e) {
|
|
83
|
+
return {}.toString.call(e).includes("Object");
|
|
84
|
+
}
|
|
85
|
+
function q(e) {
|
|
86
|
+
return typeof e == "function";
|
|
87
|
+
}
|
|
88
|
+
var k = R(function(e, t) {
|
|
89
|
+
throw new Error(e[t] || e.default);
|
|
90
|
+
})({ 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" }), je = function(e, t) {
|
|
91
|
+
return Y(t) || k("changeType"), Object.keys(t).some(function(r) {
|
|
92
|
+
return n = e, o = r, !Object.prototype.hasOwnProperty.call(n, o);
|
|
93
|
+
var n, o;
|
|
94
|
+
}) && k("changeField"), t;
|
|
95
|
+
};
|
|
96
|
+
function Me(e, t) {
|
|
97
|
+
return q(t) ? t(e.current) : t;
|
|
98
|
+
}
|
|
99
|
+
function Ee(e, t) {
|
|
100
|
+
return e.current = de(de({}, e.current), t), t;
|
|
101
|
+
}
|
|
102
|
+
function Pe(e, t, r) {
|
|
103
|
+
return q(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
|
|
104
|
+
var o;
|
|
105
|
+
return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
|
|
106
|
+
}), r;
|
|
107
|
+
}
|
|
108
|
+
var X, pe = { 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!
|
|
109
|
+
You are using deprecated way of configuration.
|
|
110
|
+
|
|
111
|
+
Instead of using
|
|
112
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
113
|
+
use
|
|
114
|
+
monaco.config({ paths: { vs: '...' } })
|
|
115
|
+
|
|
116
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
117
|
+
` }, fe = (X = function(e, t) {
|
|
118
|
+
throw new Error(e[t] || e.default);
|
|
119
|
+
}, function e() {
|
|
120
|
+
for (var t = this, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
|
|
121
|
+
return n.length >= X.length ? X.apply(this, n) : function() {
|
|
122
|
+
for (var i = arguments.length, u = new Array(i), c = 0; c < i; c++) u[c] = arguments[c];
|
|
123
|
+
return e.apply(t, [].concat(n, u));
|
|
124
|
+
};
|
|
125
|
+
})(pe);
|
|
126
|
+
function he(e, t) {
|
|
127
|
+
return Object.keys(t).forEach(function(r) {
|
|
128
|
+
t[r] instanceof Object && e[r] && Object.assign(t[r], he(e[r], t[r]));
|
|
129
|
+
}), ae(ae({}, e), t);
|
|
130
|
+
}
|
|
131
|
+
var Se = { type: "cancelation", msg: "operation is manually canceled" };
|
|
132
|
+
function Z(e) {
|
|
133
|
+
var t = !1, r = new Promise(function(n, o) {
|
|
134
|
+
e.then(function(i) {
|
|
135
|
+
return t ? o(Se) : n(i);
|
|
136
|
+
}), e.catch(o);
|
|
137
|
+
});
|
|
138
|
+
return r.cancel = function() {
|
|
139
|
+
return t = !0;
|
|
140
|
+
}, r;
|
|
141
|
+
}
|
|
142
|
+
var ee, me = function(e) {
|
|
143
|
+
if (Array.isArray(e)) return e;
|
|
144
|
+
}(ee = function(e) {
|
|
145
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
146
|
+
(function(c) {
|
|
147
|
+
var l;
|
|
148
|
+
c || k("initialIsRequired"), Y(c) || k("initialType"), l = c, Object.keys(l).length || k("initialContent");
|
|
149
|
+
})(e), function(c) {
|
|
150
|
+
q(c) || Y(c) || k("handlerType"), Y(c) && Object.values(c).some(function(l) {
|
|
151
|
+
return !q(l);
|
|
152
|
+
}) && k("handlersType");
|
|
153
|
+
}(t);
|
|
154
|
+
var r = { current: e }, n = R(Pe)(r, t), o = R(Ee)(r), i = R(je)(e), u = R(Me)(r);
|
|
155
|
+
return [function() {
|
|
156
|
+
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(l) {
|
|
157
|
+
return l;
|
|
158
|
+
};
|
|
159
|
+
return function(l) {
|
|
160
|
+
q(l) || k("selectorType");
|
|
161
|
+
}(c), c(r.current);
|
|
162
|
+
}, function(c) {
|
|
163
|
+
(function() {
|
|
164
|
+
for (var l = arguments.length, g = new Array(l), O = 0; O < l; O++) g[O] = arguments[O];
|
|
165
|
+
return function(b) {
|
|
166
|
+
return g.reduceRight(function(E, P) {
|
|
167
|
+
return P(E);
|
|
168
|
+
}, b);
|
|
169
|
+
};
|
|
170
|
+
})(n, o, i, u)(c);
|
|
171
|
+
}];
|
|
172
|
+
}({ 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) {
|
|
173
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
|
|
174
|
+
var t = [], r = !0, n = !1, o = void 0;
|
|
175
|
+
try {
|
|
176
|
+
for (var i, u = e[Symbol.iterator](); !(r = (i = u.next()).done) && (t.push(i.value), t.length !== 2); r = !0) ;
|
|
177
|
+
} catch (c) {
|
|
178
|
+
n = !0, o = c;
|
|
179
|
+
} finally {
|
|
180
|
+
try {
|
|
181
|
+
r || u.return == null || u.return();
|
|
182
|
+
} finally {
|
|
183
|
+
if (n) throw o;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return t;
|
|
187
|
+
}
|
|
188
|
+
}(ee) || function(e) {
|
|
189
|
+
if (e) {
|
|
190
|
+
if (typeof e == "string") return le(e, 2);
|
|
191
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
192
|
+
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) ? le(e, 2) : void 0;
|
|
193
|
+
}
|
|
194
|
+
}(ee) || function() {
|
|
195
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
196
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
197
|
+
}(), N = me[0], $ = me[1];
|
|
198
|
+
function ke(e) {
|
|
199
|
+
return document.body.appendChild(e);
|
|
200
|
+
}
|
|
201
|
+
function xe(e) {
|
|
202
|
+
var t, r, n = N(function(i) {
|
|
203
|
+
return { config: i.config, reject: i.reject };
|
|
204
|
+
}), o = (t = "".concat(n.config.paths.vs, "/loader.js"), r = document.createElement("script"), t && (r.src = t), r);
|
|
205
|
+
return o.onload = function() {
|
|
206
|
+
return e();
|
|
207
|
+
}, o.onerror = n.reject, o;
|
|
208
|
+
}
|
|
209
|
+
function Ie() {
|
|
210
|
+
var e = N(function(r) {
|
|
211
|
+
return { config: r.config, resolve: r.resolve, reject: r.reject };
|
|
212
|
+
}), t = window.require;
|
|
213
|
+
t.config(e.config), t(["vs/editor/editor.main"], function(r) {
|
|
214
|
+
ye(r), e.resolve(r);
|
|
215
|
+
}, function(r) {
|
|
216
|
+
e.reject(r);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
function ye(e) {
|
|
220
|
+
N().monaco || $({ monaco: e });
|
|
221
|
+
}
|
|
222
|
+
var te = new Promise(function(e, t) {
|
|
223
|
+
return $({ resolve: e, reject: t });
|
|
224
|
+
}), G = { config: function(e) {
|
|
225
|
+
var t = function(o) {
|
|
226
|
+
var i;
|
|
227
|
+
return o || fe("configIsRequired"), i = o, {}.toString.call(i).includes("Object") || fe("configType"), o.urls ? (console.warn(pe.deprecation), { paths: { vs: o.urls.monacoBase } }) : o;
|
|
228
|
+
}(e), r = t.monaco, n = function(o, i) {
|
|
229
|
+
if (o == null) return {};
|
|
230
|
+
var u, c, l = function(O, b) {
|
|
231
|
+
if (O == null) return {};
|
|
232
|
+
var E, P, x = {}, I = Object.keys(O);
|
|
233
|
+
for (P = 0; P < I.length; P++) E = I[P], b.indexOf(E) >= 0 || (x[E] = O[E]);
|
|
234
|
+
return x;
|
|
235
|
+
}(o, i);
|
|
236
|
+
if (Object.getOwnPropertySymbols) {
|
|
237
|
+
var g = Object.getOwnPropertySymbols(o);
|
|
238
|
+
for (c = 0; c < g.length; c++) u = g[c], i.indexOf(u) >= 0 || Object.prototype.propertyIsEnumerable.call(o, u) && (l[u] = o[u]);
|
|
239
|
+
}
|
|
240
|
+
return l;
|
|
241
|
+
}(t, ["monaco"]);
|
|
242
|
+
$(function(o) {
|
|
243
|
+
return { config: he(o.config, n), monaco: r };
|
|
244
|
+
});
|
|
245
|
+
}, init: function() {
|
|
246
|
+
var e = N(function(t) {
|
|
247
|
+
return { monaco: t.monaco, isInitialized: t.isInitialized, resolve: t.resolve };
|
|
248
|
+
});
|
|
249
|
+
if (!e.isInitialized) {
|
|
250
|
+
if ($({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), Z(te);
|
|
251
|
+
if (window.monaco && window.monaco.editor) return ye(window.monaco), e.resolve(window.monaco), Z(te);
|
|
252
|
+
(function() {
|
|
253
|
+
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
254
|
+
return function(o) {
|
|
255
|
+
return r.reduceRight(function(i, u) {
|
|
256
|
+
return u(i);
|
|
257
|
+
}, o);
|
|
258
|
+
};
|
|
259
|
+
})(ke, xe)(Ie);
|
|
260
|
+
}
|
|
261
|
+
return Z(te);
|
|
262
|
+
}, __getMonacoInstance: function() {
|
|
263
|
+
return N(function(e) {
|
|
264
|
+
return e.monaco;
|
|
265
|
+
});
|
|
266
|
+
} }, Te = { display: "flex", position: "relative", textAlign: "initial" }, Ae = { width: "100%" }, Ce = { display: "none" }, De = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Ve = function({ children: e }) {
|
|
267
|
+
return C.createElement("div", { style: De.container }, e);
|
|
268
|
+
}, ve = ne(function({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: u }) {
|
|
269
|
+
return C.createElement("section", { style: { ...Te, width: e, height: t }, ...u }, !r && C.createElement(Ve, null, n), C.createElement("div", { ref: o, style: { ...Ae, ...!r && Ce }, className: i }));
|
|
270
|
+
}), oe = function(e) {
|
|
271
|
+
S(e, []);
|
|
272
|
+
}, j = function(e, t, r = !0) {
|
|
273
|
+
let n = m(!0);
|
|
274
|
+
S(n.current || !r ? () => {
|
|
275
|
+
n.current = !1;
|
|
276
|
+
} : e, t);
|
|
277
|
+
};
|
|
278
|
+
function z() {
|
|
279
|
+
}
|
|
280
|
+
function A(e, t, r, n) {
|
|
281
|
+
return g = n, (l = e).editor.getModel(ge(l, g)) || (i = t, u = r, c = n, (o = e).editor.createModel(i, u, c ? ge(o, c) : void 0));
|
|
282
|
+
var o, i, u, c, l, g;
|
|
283
|
+
}
|
|
284
|
+
function ge(e, t) {
|
|
285
|
+
return e.Uri.parse(t);
|
|
286
|
+
}
|
|
287
|
+
var qe = ne(function({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: u, keepCurrentOriginalModel: c = !1, keepCurrentModifiedModel: l = !1, theme: g = "light", loading: O = "Loading...", options: b = {}, height: E = "100%", width: P = "100%", className: x, wrapperProps: I = {}, beforeMount: H = z, onMount: J = z }) {
|
|
288
|
+
let [w, D] = _(!1), [V, h] = _(!0), y = m(null), d = m(null), L = m(null), v = m(J), a = m(H), T = m(!1);
|
|
289
|
+
oe(() => {
|
|
290
|
+
let s = G.init();
|
|
291
|
+
return s.then((f) => (d.current = f) && h(!1)).catch((f) => f?.type !== "cancelation" && console.error("Monaco initialization: error:", f)), () => y.current ? function() {
|
|
292
|
+
let f = y.current?.getModel();
|
|
293
|
+
c || f?.original?.dispose(), l || f?.modified?.dispose(), y.current?.dispose();
|
|
294
|
+
}() : s.cancel();
|
|
295
|
+
}), j(() => {
|
|
296
|
+
if (y.current && d.current) {
|
|
297
|
+
let s = y.current.getOriginalEditor(), f = A(d.current, e || "", n || r || "text", i || "");
|
|
298
|
+
f !== s.getModel() && s.setModel(f);
|
|
299
|
+
}
|
|
300
|
+
}, [i], w), j(() => {
|
|
301
|
+
if (y.current && d.current) {
|
|
302
|
+
let s = y.current.getModifiedEditor(), f = A(d.current, t || "", o || r || "text", u || "");
|
|
303
|
+
f !== s.getModel() && s.setModel(f);
|
|
304
|
+
}
|
|
305
|
+
}, [u], w), j(() => {
|
|
306
|
+
let s = y.current.getModifiedEditor();
|
|
307
|
+
s.getOption(d.current.editor.EditorOption.readOnly) ? s.setValue(t || "") : t !== s.getValue() && (s.executeEdits("", [{ range: s.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), s.pushUndoStop());
|
|
308
|
+
}, [t], w), j(() => {
|
|
309
|
+
y.current?.getModel()?.original.setValue(e || "");
|
|
310
|
+
}, [e], w), j(() => {
|
|
311
|
+
let { original: s, modified: f } = y.current.getModel();
|
|
312
|
+
d.current.editor.setModelLanguage(s, n || r || "text"), d.current.editor.setModelLanguage(f, o || r || "text");
|
|
313
|
+
}, [r, n, o], w), j(() => {
|
|
314
|
+
d.current?.editor.setTheme(g);
|
|
315
|
+
}, [g], w), j(() => {
|
|
316
|
+
y.current?.updateOptions(b);
|
|
317
|
+
}, [b], w);
|
|
318
|
+
let F = re(() => {
|
|
319
|
+
if (!d.current) return;
|
|
320
|
+
a.current(d.current);
|
|
321
|
+
let s = A(d.current, e || "", n || r || "text", i || ""), f = A(d.current, t || "", o || r || "text", u || "");
|
|
322
|
+
y.current?.setModel({ original: s, modified: f });
|
|
323
|
+
}, [r, t, o, e, n, i, u]), U = re(() => {
|
|
324
|
+
!T.current && L.current && (y.current = d.current.editor.createDiffEditor(L.current, { automaticLayout: !0, ...b }), F(), d.current?.editor.setTheme(g), D(!0), T.current = !0);
|
|
325
|
+
}, [b, g, F]);
|
|
326
|
+
return S(() => {
|
|
327
|
+
w && v.current(y.current, d.current);
|
|
328
|
+
}, [w]), S(() => {
|
|
329
|
+
!V && !w && U();
|
|
330
|
+
}, [V, w, U]), C.createElement(ve, { width: P, height: E, isEditorReady: w, loading: O, _ref: L, className: x, wrapperProps: I });
|
|
331
|
+
}), ze = function() {
|
|
332
|
+
let [e, t] = _(G.__getMonacoInstance());
|
|
333
|
+
return oe(() => {
|
|
334
|
+
let r;
|
|
335
|
+
return e || (r = G.init(), r.then((n) => {
|
|
336
|
+
t(n);
|
|
337
|
+
})), () => r?.cancel();
|
|
338
|
+
}), e;
|
|
339
|
+
}, B = /* @__PURE__ */ new Map(), Le = ne(function({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: u = "light", line: c, loading: l = "Loading...", options: g = {}, overrideServices: O = {}, saveViewState: b = !0, keepCurrentModel: E = !1, width: P = "100%", height: x = "100%", className: I, wrapperProps: H = {}, beforeMount: J = z, onMount: w = z, onChange: D, onValidate: V = z }) {
|
|
340
|
+
let [h, y] = _(!1), [d, L] = _(!0), v = m(null), a = m(null), T = m(null), F = m(w), U = m(J), s = m(), f = m(n), be = function(p) {
|
|
341
|
+
let M = m();
|
|
342
|
+
return S(() => {
|
|
343
|
+
M.current = p;
|
|
344
|
+
}, [p]), M.current;
|
|
345
|
+
}(i), ie = m(!1), K = m(!1);
|
|
346
|
+
oe(() => {
|
|
347
|
+
let p = G.init();
|
|
348
|
+
return p.then((M) => (v.current = M) && L(!1)).catch((M) => M?.type !== "cancelation" && console.error("Monaco initialization: error:", M)), () => a.current ? (s.current?.dispose(), E ? b && B.set(i, a.current.saveViewState()) : a.current.getModel()?.dispose(), void a.current.dispose()) : p.cancel();
|
|
349
|
+
}), j(() => {
|
|
350
|
+
let p = A(v.current, e || n || "", t || o || "", i || r || "");
|
|
351
|
+
p !== a.current?.getModel() && (b && B.set(be, a.current?.saveViewState()), a.current?.setModel(p), b && a.current?.restoreViewState(B.get(i)));
|
|
352
|
+
}, [i], h), j(() => {
|
|
353
|
+
a.current?.updateOptions(g);
|
|
354
|
+
}, [g], h), j(() => {
|
|
355
|
+
!a.current || n === void 0 || (a.current.getOption(v.current.editor.EditorOption.readOnly) ? a.current.setValue(n) : n !== a.current.getValue() && (K.current = !0, a.current.executeEdits("", [{ range: a.current.getModel().getFullModelRange(), text: n, forceMoveMarkers: !0 }]), a.current.pushUndoStop(), K.current = !1));
|
|
356
|
+
}, [n], h), j(() => {
|
|
357
|
+
let p = a.current?.getModel();
|
|
358
|
+
p && o && v.current?.editor.setModelLanguage(p, o);
|
|
359
|
+
}, [o], h), j(() => {
|
|
360
|
+
c !== void 0 && a.current?.revealLine(c);
|
|
361
|
+
}, [c], h), j(() => {
|
|
362
|
+
v.current?.editor.setTheme(u);
|
|
363
|
+
}, [u], h);
|
|
364
|
+
let ce = re(() => {
|
|
365
|
+
if (T.current && v.current && !ie.current) {
|
|
366
|
+
U.current(v.current);
|
|
367
|
+
let p = i || r, M = A(v.current, n || e || "", t || o || "", p || "");
|
|
368
|
+
a.current = v.current?.editor.create(T.current, { model: M, automaticLayout: !0, ...g }, O), b && a.current.restoreViewState(B.get(p)), v.current.editor.setTheme(u), c !== void 0 && a.current.revealLine(c), y(!0), ie.current = !0;
|
|
369
|
+
}
|
|
370
|
+
}, [e, t, r, n, o, i, g, O, b, u, c]);
|
|
371
|
+
return S(() => {
|
|
372
|
+
h && F.current(a.current, v.current);
|
|
373
|
+
}, [h]), S(() => {
|
|
374
|
+
!d && !h && ce();
|
|
375
|
+
}, [d, h, ce]), f.current = n, S(() => {
|
|
376
|
+
h && D && (s.current?.dispose(), s.current = a.current?.onDidChangeModelContent((p) => {
|
|
377
|
+
K.current || D(a.current.getValue(), p);
|
|
378
|
+
}));
|
|
379
|
+
}, [h, D]), S(() => {
|
|
380
|
+
if (h) {
|
|
381
|
+
let p = v.current.editor.onDidChangeMarkers((M) => {
|
|
382
|
+
let Q = a.current.getModel()?.uri;
|
|
383
|
+
if (Q && M.find((W) => W.path === Q.path)) {
|
|
384
|
+
let W = v.current.editor.getModelMarkers({ resource: Q });
|
|
385
|
+
V?.(W);
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
return () => {
|
|
389
|
+
p?.dispose();
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
return () => {
|
|
393
|
+
};
|
|
394
|
+
}, [h, V]), C.createElement(ve, { width: P, height: x, isEditorReady: h, loading: l, _ref: T, className: I, wrapperProps: H });
|
|
395
|
+
}), _e = Le;
|
|
396
|
+
export {
|
|
397
|
+
qe as DiffEditor,
|
|
398
|
+
Le as Editor,
|
|
399
|
+
_e as default,
|
|
400
|
+
G as loader,
|
|
401
|
+
ze as useMonaco
|
|
402
|
+
};
|
|
@@ -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 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 } } } };
|
|
20
|
+
export {
|
|
21
|
+
t as default
|
|
22
|
+
};
|
|
@@ -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 e = { BIN2DEC: { s: "Converts a binary number to decimal", p: { number: { d: "is the binary number you want to convert" } } }, BIN2HEX: { s: "Converts a binary number to hexadecimal", p: { number: { d: "is the binary number you want to convert" }, places: { d: "is the number of characters to use" } } }, BIN2OCT: { s: "Converts a binary number to octal", p: { number: { d: "is the binary number you want to convert" }, places: { d: "is the number of characters to use" } } }, BITAND: { s: "Returns a bitwise 'And' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, BITLSHIFT: { s: "Returns a number shifted left by shift_amount bits", p: { number: { d: "is the decimal representation of the binary number you want to evaluate" }, shiftAmount: { d: "is the number of bits that you want to shift Number left by" } } }, BITOR: { s: "Returns a bitwise 'Or' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, BITRSHIFT: { s: "Returns a number shifted right by shift_amount bits", p: { number: { d: "is the decimal representation of the binary number you want to evaluate" }, shiftAmount: { d: "is the number of bits that you want to shift Number left by" } } }, BITXOR: { s: "Returns a bitwise 'Exclusive Or' of two numbers", p: { number1: { d: "is the decimal representation of the binary number you want to evaluate" }, number2: { d: "is the decimal representation of the binary number you want to evaluate" } } }, DEC2BIN: { s: "Converts a decimal number to binary", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, DEC2HEX: { s: "Converts a decimal number to hexadecimal", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, DEC2OCT: { s: "Converts a decimal number to octal", p: { number: { d: "is the decimal integer you want to convert" }, places: { d: "is the number of characters to use" } } }, HEX2BIN: { s: "Converts a Hexadecimal number to binary", p: { number: { d: "is the hexadecimal number you want to convert" }, places: { d: "is the number of characters to use" } } }, HEX2DEC: { s: "Converts a hexadecimal number to decimal", p: { number: { d: "is the hexadecimal number you want to convert" } } }, HEX2OCT: { s: "Converts a hexadecimal number to octal", p: { number: { d: "is the hexadecimal number you want to convert" }, places: { d: "is the number of characters to use" } } }, OCT2BIN: { s: "Converts an octal number to binary", p: { number: { d: "is the octal number you want to convert" }, places: { d: "is the number of characters to use" } } }, OCT2DEC: { s: "Converts an octal number to decimal", p: { number: { d: "is the octal number you want to convert" } } }, OCT2HEX: { s: "Converts an octal number to hexadecimal", p: { number: { d: "is the octal number you want to convert" }, places: { d: "is the number of characters to use" } } } };
|
|
20
|
+
export {
|
|
21
|
+
e as default
|
|
22
|
+
};
|