@sheetxl/studio-vanilla 0.4.19 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/index.cjs +80 -2
- package/browser/cjs/{BJIfDlGWvnC0eGUi.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
- package/browser/esm/{DiGLoJDZqriVp152.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
- package/browser/esm/index.mjs +176 -4
- package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/1FbLU-GkjsXMtg8T.cjs +0 -15
- package/browser/cjs/3xnum9EEG0qokR90.cjs +0 -12
- package/browser/cjs/5i4FVjROedZEnZNH.cjs +0 -6
- package/browser/cjs/9yZt9CqVSMBE7LUX.cjs +0 -6
- package/browser/cjs/B7V2ifI29G13Ypfn.cjs +0 -378
- package/browser/cjs/BCBl10fgrkZ5JX8E.cjs +0 -161
- package/browser/cjs/BCVApYTYfHlRzbCn.cjs +0 -6
- package/browser/cjs/BjW-ykzXN9S3TMzb.cjs +0 -11
- package/browser/cjs/Bn5tlfH0oqJI1Lk9.cjs +0 -6
- package/browser/cjs/BnD8IArw964iF-Zg.cjs +0 -1501
- package/browser/cjs/BnwSPi6FOdqxr7z1.cjs +0 -19
- package/browser/cjs/BxpKhdqadWDARG9W.cjs +0 -16
- package/browser/cjs/C8FEOglWYUtglsLP.cjs +0 -6
- package/browser/cjs/CDd6P2SfTKp4v-QA.cjs +0 -6
- package/browser/cjs/CFfq2Z-VQyMwMJKP.cjs +0 -6
- package/browser/cjs/CG1FkANzsujO3FLU.cjs +0 -6
- package/browser/cjs/CGD07mOjjl6zfCzK.cjs +0 -15
- package/browser/cjs/CMO36tnnJHrXso4Q.cjs +0 -7
- package/browser/cjs/CMfyyxtrIHPMnrBl.cjs +0 -6
- package/browser/cjs/CNue1AsHpswiVYJx.cjs +0 -6
- package/browser/cjs/C_bqbac1bCl1H0Bn.cjs +0 -6
- package/browser/cjs/C_jIzbaCWis1jB7f.cjs +0 -32
- package/browser/cjs/CaFeiasVg3jafLwL.cjs +0 -6
- package/browser/cjs/CaWJjQ_KmjWp1ooU.cjs +0 -145
- package/browser/cjs/CahVr7pzDRu3h4G3.cjs +0 -6
- package/browser/cjs/CaswMUSE1R9Noewr.cjs +0 -6
- package/browser/cjs/CfX6-fSMFgAg6iL9.cjs +0 -124
- package/browser/cjs/CkhCXLhqA4a2CnSJ.cjs +0 -6
- package/browser/cjs/CkriFKrE5BBPFQWm.cjs +0 -6
- package/browser/cjs/CuX_ftSJWqfRsXHy.cjs +0 -6
- package/browser/cjs/CznEff7u33FYbOSn.cjs +0 -6
- package/browser/cjs/D-fNsTpgGyZHdYEp.cjs +0 -6
- package/browser/cjs/DCxlQuW8eB70ZbcJ.cjs +0 -6
- package/browser/cjs/DFet-I-_FYR9s_ET.cjs +0 -6
- package/browser/cjs/DKQmNMiW6vEz1i7V.cjs +0 -6
- package/browser/cjs/DMOCfhgdy7Z8GoD-.cjs +0 -13
- package/browser/cjs/DVVk6WU7lfgpQLZG.cjs +0 -6
- package/browser/cjs/DYMFAMQ13cX03167.cjs +0 -7
- package/browser/cjs/DZVJ234kMQwb5dEy.cjs +0 -6
- package/browser/cjs/DZqqUVtfn36E0rIk.cjs +0 -6
- package/browser/cjs/DguzXHidCk2s1uCY.cjs +0 -6
- package/browser/cjs/Dhik7yBvR-5iyJcR.cjs +0 -6
- package/browser/cjs/Dms2LCMINwYEtl3S.cjs +0 -6
- package/browser/cjs/DnHgK81nepMuvMim.cjs +0 -6
- package/browser/cjs/DuJlHux5dLU53d80.cjs +0 -6
- package/browser/cjs/Dz5uLsJ16GF2Cyov.cjs +0 -6
- package/browser/cjs/Io_6AEq6KpjrZEfL.cjs +0 -6
- package/browser/cjs/R7ToEkyr-cbP0Q3N.cjs +0 -6
- package/browser/cjs/TGD3vlMtB_qnQE-M.cjs +0 -11
- package/browser/cjs/XFsZZevZgfk9vB1r.cjs +0 -6
- package/browser/cjs/bGVtUGltyeHuGKLB.cjs +0 -6
- package/browser/cjs/f-w9NYC1mTi7W9HY.cjs +0 -6
- package/browser/cjs/kGBvcCWaH3h23Ojp.cjs +0 -7
- package/browser/cjs/mUwYCSHSRCUQJ4uV.cjs +0 -42
- package/browser/cjs/qLyXB7fJpKBbTC_N.cjs +0 -6
- package/browser/cjs/s2JuJCqW6ny4lxQX.cjs +0 -6
- package/browser/esm/2Fopggi4LREIIXpY.mjs +0 -13208
- package/browser/esm/4ZXEcNsjnqWXAiUa.mjs +0 -2344
- package/browser/esm/4yxl564v_Wx022xz.mjs +0 -633
- package/browser/esm/5Ovf_TtcBCG7hgdY.mjs +0 -20
- package/browser/esm/6X4p3ajMgDNtcmLW.mjs +0 -10
- package/browser/esm/8F0vFRAXlzH-vmJl.mjs +0 -52354
- package/browser/esm/B1L8rEDpskxCqnhJ.mjs +0 -10
- package/browser/esm/BENg2ibY7Hr-SYp3.mjs +0 -10
- package/browser/esm/BHzg_9TpgdKnIlaX.mjs +0 -10
- package/browser/esm/BY9rDUy2rHkqh6hH.mjs +0 -820
- package/browser/esm/Bd2yJknZG5WTZ26u.mjs +0 -10
- package/browser/esm/BlH_AWoPr-w3-qdS.mjs +0 -10
- package/browser/esm/BmeozQuzbqa81PvH.mjs +0 -41
- package/browser/esm/BprECrKMFGb2UK2v.mjs +0 -2174
- package/browser/esm/Br_6r7a5IjKksr00.mjs +0 -390
- package/browser/esm/ByJuiohpCMXnDKmL.mjs +0 -47
- package/browser/esm/C04_X_6DkiZCUmwB.mjs +0 -1702
- package/browser/esm/C3pNOQaLBsTUp2CW.mjs +0 -10
- package/browser/esm/C4gnsPTE7_xP3Mz_.mjs +0 -1575
- package/browser/esm/C8kq7JNW8ivhRL1S.mjs +0 -3934
- package/browser/esm/CGquHZGGYOxATF73.mjs +0 -10
- package/browser/esm/CKwR5AWlnckKQRc-.mjs +0 -10
- package/browser/esm/CLSpsTCV3Onb_QXV.mjs +0 -84
- package/browser/esm/CMrXKGbxBR_LxLxN.mjs +0 -3755
- package/browser/esm/CN-UcSPqkcXnkJCx.mjs +0 -1365
- package/browser/esm/CQJsDOnipkhuGkKg.mjs +0 -56
- package/browser/esm/CTIgStBt9DOpau5q.mjs +0 -1665
- package/browser/esm/CXL9mY2kUT053cTN.mjs +0 -1346
- package/browser/esm/CZ54d8Ueai6uZgy6.mjs +0 -10
- package/browser/esm/CZM2uNUNI4W8qUw3.mjs +0 -10
- package/browser/esm/CaaAGrJF7OxdprqB.mjs +0 -10
- package/browser/esm/CnRJWnfDHzunp3N5.mjs +0 -472
- package/browser/esm/CpGYH9QSPqM4ejyF.mjs +0 -421
- package/browser/esm/CqLIq6VVhQnv6ZP4.mjs +0 -10
- package/browser/esm/CqTn7MLxDJZX7aIA.mjs +0 -10
- package/browser/esm/D3RHh0FQuMAKk4JL.mjs +0 -10
- package/browser/esm/D8hxrXJDfvDRoouY.mjs +0 -147
- package/browser/esm/DMwYqCQzDDwbzt8K.mjs +0 -44
- package/browser/esm/DNV2yXFlJ5hRF5ME.mjs +0 -46
- package/browser/esm/DUxcExPcvgbBrSXX.mjs +0 -5582
- package/browser/esm/DbTEH7CjzsjIc-ew.mjs +0 -21
- package/browser/esm/Df2lY3OJ73BCDQo6.mjs +0 -24
- package/browser/esm/DlUeNEy_cp31Am5t.mjs +0 -39
- package/browser/esm/DovESggwbqQKJEkM.mjs +0 -10
- package/browser/esm/DpNpusKUeZXcDNra.mjs +0 -29
- package/browser/esm/Dx-FJghQY8rpWJi1.mjs +0 -10
- package/browser/esm/DxObRtwZ98tP8NM3.mjs +0 -10
- package/browser/esm/FT-XJjpzjdyq4pin.mjs +0 -48
- package/browser/esm/HnfOytlj72v4rd6y.mjs +0 -425
- package/browser/esm/IChTkXO9eDekfSb7.mjs +0 -10
- package/browser/esm/KcDpdRfEgTnFwlSh.mjs +0 -21
- package/browser/esm/TVfGpAQkvkA9mx4E.mjs +0 -10
- package/browser/esm/pqikV5IyVMBYUDqP.mjs +0 -10
- package/browser/esm/qfHSXgWX4yZd3nwZ.mjs +0 -1466
- package/browser/esm/xWvOAH67Iwyf2Zge.mjs +0 -10
- package/browser/esm/xaJvLe6JwO1rQiE-.mjs +0 -12
- package/cdn/assets/15AvUM5aNUAfFLU7.js +0 -58
- package/cdn/assets/2Fopggi4LREIIXpY.js +0 -13208
- package/cdn/assets/4yxl564v_Wx022xz.js +0 -633
- package/cdn/assets/6X4p3ajMgDNtcmLW.js +0 -10
- package/cdn/assets/B1L8rEDpskxCqnhJ.js +0 -10
- package/cdn/assets/B1y38xd4JTLIrdUW.js +0 -1702
- package/cdn/assets/BENg2ibY7Hr-SYp3.js +0 -10
- package/cdn/assets/BHzg_9TpgdKnIlaX.js +0 -10
- package/cdn/assets/BXRf5zCAUE8kGNat.js +0 -46
- package/cdn/assets/BZdjtacH2DTSHsdG.js +0 -22
- package/cdn/assets/Bd2yJknZG5WTZ26u.js +0 -10
- package/cdn/assets/BlH_AWoPr-w3-qdS.js +0 -10
- package/cdn/assets/C3pNOQaLBsTUp2CW.js +0 -10
- package/cdn/assets/C6yX85fw0aO70N0-.js +0 -2346
- package/cdn/assets/CGquHZGGYOxATF73.js +0 -10
- package/cdn/assets/CKwR5AWlnckKQRc-.js +0 -10
- package/cdn/assets/CN-UcSPqkcXnkJCx.js +0 -1365
- package/cdn/assets/CSBAnGx7ebIRyjML.js +0 -21
- package/cdn/assets/CTIgStBt9DOpau5q.js +0 -1665
- package/cdn/assets/CXL9mY2kUT053cTN.js +0 -1346
- package/cdn/assets/CZ54d8Ueai6uZgy6.js +0 -10
- package/cdn/assets/CZM2uNUNI4W8qUw3.js +0 -10
- package/cdn/assets/CaaAGrJF7OxdprqB.js +0 -10
- package/cdn/assets/Cfgui52VcoZakyBi.js +0 -50
- package/cdn/assets/Ck6R7vI9j0vG-mKU.js +0 -390
- package/cdn/assets/ClTJpu1UdRW0KLAX.js +0 -23
- package/cdn/assets/Co1yPh9LPeUa-tCm.js +0 -29
- package/cdn/assets/CpGYH9QSPqM4ejyF.js +0 -421
- package/cdn/assets/CppP22dM3wzxzf_R.js +0 -3934
- package/cdn/assets/CqLIq6VVhQnv6ZP4.js +0 -10
- package/cdn/assets/CqTn7MLxDJZX7aIA.js +0 -10
- package/cdn/assets/D3RHh0FQuMAKk4JL.js +0 -10
- package/cdn/assets/DCmJyecz9jzS5Hh5.js +0 -41
- package/cdn/assets/DEHd1h8uAHbt7JQl.js +0 -425
- package/cdn/assets/DK25k4g9SWrBiPDl.js +0 -43
- package/cdn/assets/DL18SWHzmNBC5_Sq.js +0 -472
- package/cdn/assets/DZz8nVXsYYFIaomy.js +0 -3756
- package/cdn/assets/Df2lY3OJ73BCDQo6.js +0 -24
- package/cdn/assets/DidmQocPR2LUv5_-.js +0 -84
- package/cdn/assets/DifkJcFEihfAmrz6.js +0 -5582
- package/cdn/assets/Dj-9L-ifpIi1HChy.js +0 -52185
- package/cdn/assets/DovESggwbqQKJEkM.js +0 -10
- package/cdn/assets/Dwy3QqzGL-q3IHdC.js +0 -49
- package/cdn/assets/Dx-FJghQY8rpWJi1.js +0 -10
- package/cdn/assets/DxObRtwZ98tP8NM3.js +0 -10
- package/cdn/assets/IChTkXO9eDekfSb7.js +0 -10
- package/cdn/assets/KcDpdRfEgTnFwlSh.js +0 -21
- package/cdn/assets/R-6SrokApX5Vs5h6.js +0 -12
- package/cdn/assets/TVfGpAQkvkA9mx4E.js +0 -10
- package/cdn/assets/ZfVobc-p41aYisnX.js +0 -46
- package/cdn/assets/_QS_SgWjAGVcBh2y.js +0 -2177
- package/cdn/assets/_bKdjn1gFyUlsKF8.js +0 -149
- package/cdn/assets/cgKx_r-dAv2kc57N.js +0 -1575
- package/cdn/assets/lxv3lfQ08L2wD1S3.js +0 -820
- package/cdn/assets/pqikV5IyVMBYUDqP.js +0 -10
- package/cdn/assets/wXUNHjkvpeSH2dQZ.js +0 -1466
- package/cdn/assets/xWvOAH67Iwyf2Zge.js +0 -10
- package/cdn/assets/xaJvLe6JwO1rQiE-.js +0 -12
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
import { r as c, y as T } from "./8F0vFRAXlzH-vmJl.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
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 a = arguments.length, u = new Array(a), s = 0; s < a; s++) u[s] = arguments[s];
|
|
66
|
-
return t.apply(r, [].concat(o, u));
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function U(e) {
|
|
71
|
-
return {}.toString.call(e).includes("Object");
|
|
72
|
-
}
|
|
73
|
-
function L(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
|
-
};
|
|
84
|
-
function be(e, t) {
|
|
85
|
-
return L(t) ? t(e.current) : t;
|
|
86
|
-
}
|
|
87
|
-
function we(e, t) {
|
|
88
|
-
return e.current = ce(ce({}, e.current), t), t;
|
|
89
|
-
}
|
|
90
|
-
function Oe(e, t, r) {
|
|
91
|
-
return L(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
|
|
92
|
-
var o;
|
|
93
|
-
return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
|
|
94
|
-
}), r;
|
|
95
|
-
}
|
|
96
|
-
var Q, 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!
|
|
97
|
-
You are using deprecated way of configuration.
|
|
98
|
-
|
|
99
|
-
Instead of using
|
|
100
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
101
|
-
use
|
|
102
|
-
monaco.config({ paths: { vs: '...' } })
|
|
103
|
-
|
|
104
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
105
|
-
` }, ae = (Q = function(e, t) {
|
|
106
|
-
throw new Error(e[t] || e.default);
|
|
107
|
-
}, function e() {
|
|
108
|
-
for (var t = this, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
|
|
109
|
-
return n.length >= Q.length ? Q.apply(this, n) : function() {
|
|
110
|
-
for (var i = arguments.length, a = new Array(i), u = 0; u < i; u++) a[u] = arguments[u];
|
|
111
|
-
return e.apply(t, [].concat(n, a));
|
|
112
|
-
};
|
|
113
|
-
})(se);
|
|
114
|
-
function fe(e, t) {
|
|
115
|
-
return Object.keys(t).forEach(function(r) {
|
|
116
|
-
t[r] instanceof Object && e[r] && Object.assign(t[r], fe(e[r], t[r]));
|
|
117
|
-
}), oe(oe({}, e), t);
|
|
118
|
-
}
|
|
119
|
-
var je = { type: "cancelation", msg: "operation is manually canceled" };
|
|
120
|
-
function W(e) {
|
|
121
|
-
var t = !1, r = new Promise(function(n, o) {
|
|
122
|
-
e.then(function(i) {
|
|
123
|
-
return t ? o(je) : n(i);
|
|
124
|
-
}), e.catch(o);
|
|
125
|
-
});
|
|
126
|
-
return r.cancel = function() {
|
|
127
|
-
return t = !0;
|
|
128
|
-
}, r;
|
|
129
|
-
}
|
|
130
|
-
var X, de = function(e) {
|
|
131
|
-
if (Array.isArray(e)) return e;
|
|
132
|
-
}(X = function(e) {
|
|
133
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
134
|
-
(function(u) {
|
|
135
|
-
var s;
|
|
136
|
-
u || R("initialIsRequired"), U(u) || R("initialType"), s = u, Object.keys(s).length || R("initialContent");
|
|
137
|
-
})(e), function(u) {
|
|
138
|
-
L(u) || U(u) || R("handlerType"), U(u) && Object.values(u).some(function(s) {
|
|
139
|
-
return !L(s);
|
|
140
|
-
}) && R("handlersType");
|
|
141
|
-
}(t);
|
|
142
|
-
var r = { current: e }, n = V(Oe)(r, t), o = V(we)(r), i = V(ve)(e), a = V(be)(r);
|
|
143
|
-
return [function() {
|
|
144
|
-
var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(s) {
|
|
145
|
-
return s;
|
|
146
|
-
};
|
|
147
|
-
return function(s) {
|
|
148
|
-
L(s) || R("selectorType");
|
|
149
|
-
}(u), u(r.current);
|
|
150
|
-
}, function(u) {
|
|
151
|
-
(function() {
|
|
152
|
-
for (var s = arguments.length, p = new Array(s), O = 0; O < s; O++) p[O] = arguments[O];
|
|
153
|
-
return function(b) {
|
|
154
|
-
return p.reduceRight(function(E, P) {
|
|
155
|
-
return P(E);
|
|
156
|
-
}, b);
|
|
157
|
-
};
|
|
158
|
-
})(n, o, i, a)(u);
|
|
159
|
-
}];
|
|
160
|
-
}({ 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) {
|
|
161
|
-
if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
|
|
162
|
-
var t = [], r = !0, n = !1, o = void 0;
|
|
163
|
-
try {
|
|
164
|
-
for (var i, a = e[Symbol.iterator](); !(r = (i = a.next()).done) && (t.push(i.value), t.length !== 2); r = !0) ;
|
|
165
|
-
} catch (u) {
|
|
166
|
-
n = !0, o = u;
|
|
167
|
-
} finally {
|
|
168
|
-
try {
|
|
169
|
-
r || a.return == null || a.return();
|
|
170
|
-
} finally {
|
|
171
|
-
if (n) throw o;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return t;
|
|
175
|
-
}
|
|
176
|
-
}(X) || function(e) {
|
|
177
|
-
if (e) {
|
|
178
|
-
if (typeof e == "string") return ie(e, 2);
|
|
179
|
-
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
180
|
-
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;
|
|
181
|
-
}
|
|
182
|
-
}(X) || function() {
|
|
183
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
184
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
185
|
-
}(), z = de[0], B = de[1];
|
|
186
|
-
function Me(e) {
|
|
187
|
-
return document.body.appendChild(e);
|
|
188
|
-
}
|
|
189
|
-
function Ee(e) {
|
|
190
|
-
var t, r, n = z(function(i) {
|
|
191
|
-
return { config: i.config, reject: i.reject };
|
|
192
|
-
}), o = (t = "".concat(n.config.paths.vs, "/loader.js"), r = document.createElement("script"), t && (r.src = t), r);
|
|
193
|
-
return o.onload = function() {
|
|
194
|
-
return e();
|
|
195
|
-
}, o.onerror = n.reject, o;
|
|
196
|
-
}
|
|
197
|
-
function Pe() {
|
|
198
|
-
var e = z(function(r) {
|
|
199
|
-
return { config: r.config, resolve: r.resolve, reject: r.reject };
|
|
200
|
-
}), t = window.require;
|
|
201
|
-
t.config(e.config), t(["vs/editor/editor.main"], function(r) {
|
|
202
|
-
ge(r), e.resolve(r);
|
|
203
|
-
}, function(r) {
|
|
204
|
-
e.reject(r);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
function ge(e) {
|
|
208
|
-
z().monaco || B({ monaco: e });
|
|
209
|
-
}
|
|
210
|
-
var Z = new Promise(function(e, t) {
|
|
211
|
-
return B({ resolve: e, reject: t });
|
|
212
|
-
}), Y = { config: function(e) {
|
|
213
|
-
var t = function(o) {
|
|
214
|
-
var i;
|
|
215
|
-
return o || ae("configIsRequired"), i = o, {}.toString.call(i).includes("Object") || ae("configType"), o.urls ? (console.warn(se.deprecation), { paths: { vs: o.urls.monacoBase } }) : o;
|
|
216
|
-
}(e), r = t.monaco, n = function(o, i) {
|
|
217
|
-
if (o == null) return {};
|
|
218
|
-
var a, u, s = 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 (u = 0; u < p.length; u++) a = p[u], i.indexOf(a) >= 0 || Object.prototype.propertyIsEnumerable.call(o, a) && (s[a] = o[a]);
|
|
227
|
-
}
|
|
228
|
-
return s;
|
|
229
|
-
}(t, ["monaco"]);
|
|
230
|
-
B(function(o) {
|
|
231
|
-
return { config: fe(o.config, n), monaco: r };
|
|
232
|
-
});
|
|
233
|
-
}, init: function() {
|
|
234
|
-
var e = z(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, a) {
|
|
244
|
-
return a(i);
|
|
245
|
-
}, o);
|
|
246
|
-
};
|
|
247
|
-
})(Me, Ee)(Pe);
|
|
248
|
-
}
|
|
249
|
-
return W(Z);
|
|
250
|
-
}, __getMonacoInstance: function() {
|
|
251
|
-
return z(function(e) {
|
|
252
|
-
return e.monaco;
|
|
253
|
-
});
|
|
254
|
-
} }, Re = { display: "flex", position: "relative", textAlign: "initial" }, Se = { width: "100%" }, ke = { display: "none" }, xe = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Ie = function({ children: e }) {
|
|
255
|
-
return T.createElement("div", { style: xe.container }, e);
|
|
256
|
-
}, pe = c.memo(function({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: a }) {
|
|
257
|
-
return T.createElement("section", { style: { ...Re, width: e, height: t }, ...a }, !r && T.createElement(Ie, null, n), T.createElement("div", { ref: o, style: { ...Se, ...!r && ke }, className: i }));
|
|
258
|
-
}), ee = function(e) {
|
|
259
|
-
c.useEffect(e, []);
|
|
260
|
-
}, j = function(e, t, r = !0) {
|
|
261
|
-
let n = c.useRef(!0);
|
|
262
|
-
c.useEffect(n.current || !r ? () => {
|
|
263
|
-
n.current = !1;
|
|
264
|
-
} : e, t);
|
|
265
|
-
};
|
|
266
|
-
function q() {
|
|
267
|
-
}
|
|
268
|
-
function I(e, t, r, n) {
|
|
269
|
-
return p = n, (s = e).editor.getModel(le(s, p)) || (i = t, a = r, u = n, (o = e).editor.createModel(i, a, u ? le(o, u) : void 0));
|
|
270
|
-
var o, i, a, u, s, p;
|
|
271
|
-
}
|
|
272
|
-
function le(e, t) {
|
|
273
|
-
return e.Uri.parse(t);
|
|
274
|
-
}
|
|
275
|
-
var Ae = c.memo(function({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: a, keepCurrentOriginalModel: u = !1, keepCurrentModifiedModel: s = !1, theme: p = "light", loading: O = "Loading...", options: b = {}, height: E = "100%", width: P = "100%", className: S, wrapperProps: k = {}, beforeMount: $ = q, onMount: G = q }) {
|
|
276
|
-
let [w, C] = c.useState(!1), [A, m] = c.useState(!0), y = c.useRef(null), d = c.useRef(null), D = c.useRef(null), v = c.useRef(G), l = c.useRef($), x = c.useRef(!1);
|
|
277
|
-
ee(() => {
|
|
278
|
-
let f = Y.init();
|
|
279
|
-
return f.then((g) => (d.current = g) && m(!1)).catch((g) => g?.type !== "cancelation" && console.error("Monaco initialization: error:", g)), () => y.current ? function() {
|
|
280
|
-
let g = y.current?.getModel();
|
|
281
|
-
u || g?.original?.dispose(), s || g?.modified?.dispose(), y.current?.dispose();
|
|
282
|
-
}() : f.cancel();
|
|
283
|
-
}), j(() => {
|
|
284
|
-
if (y.current && d.current) {
|
|
285
|
-
let f = y.current.getOriginalEditor(), g = I(d.current, e || "", n || r || "text", i || "");
|
|
286
|
-
g !== f.getModel() && f.setModel(g);
|
|
287
|
-
}
|
|
288
|
-
}, [i], w), j(() => {
|
|
289
|
-
if (y.current && d.current) {
|
|
290
|
-
let f = y.current.getModifiedEditor(), g = I(d.current, t || "", o || r || "text", a || "");
|
|
291
|
-
g !== f.getModel() && f.setModel(g);
|
|
292
|
-
}
|
|
293
|
-
}, [a], w), j(() => {
|
|
294
|
-
let f = y.current.getModifiedEditor();
|
|
295
|
-
f.getOption(d.current.editor.EditorOption.readOnly) ? f.setValue(t || "") : t !== f.getValue() && (f.executeEdits("", [{ range: f.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), f.pushUndoStop());
|
|
296
|
-
}, [t], w), j(() => {
|
|
297
|
-
y.current?.getModel()?.original.setValue(e || "");
|
|
298
|
-
}, [e], w), j(() => {
|
|
299
|
-
let { original: f, modified: g } = y.current.getModel();
|
|
300
|
-
d.current.editor.setModelLanguage(f, n || r || "text"), d.current.editor.setModelLanguage(g, o || r || "text");
|
|
301
|
-
}, [r, n, o], w), j(() => {
|
|
302
|
-
d.current?.editor.setTheme(p);
|
|
303
|
-
}, [p], w), j(() => {
|
|
304
|
-
y.current?.updateOptions(b);
|
|
305
|
-
}, [b], w);
|
|
306
|
-
let _ = c.useCallback(() => {
|
|
307
|
-
if (!d.current) return;
|
|
308
|
-
l.current(d.current);
|
|
309
|
-
let f = I(d.current, e || "", n || r || "text", i || ""), g = I(d.current, t || "", o || r || "text", a || "");
|
|
310
|
-
y.current?.setModel({ original: f, modified: g });
|
|
311
|
-
}, [r, t, o, e, n, i, a]), N = c.useCallback(() => {
|
|
312
|
-
!x.current && D.current && (y.current = d.current.editor.createDiffEditor(D.current, { automaticLayout: !0, ...b }), _(), d.current?.editor.setTheme(p), C(!0), x.current = !0);
|
|
313
|
-
}, [b, p, _]);
|
|
314
|
-
return c.useEffect(() => {
|
|
315
|
-
w && v.current(y.current, d.current);
|
|
316
|
-
}, [w]), c.useEffect(() => {
|
|
317
|
-
!A && !w && N();
|
|
318
|
-
}, [A, w, N]), T.createElement(pe, { width: P, height: E, isEditorReady: w, loading: O, _ref: D, className: S, wrapperProps: k });
|
|
319
|
-
}), De = function() {
|
|
320
|
-
let [e, t] = c.useState(Y.__getMonacoInstance());
|
|
321
|
-
return ee(() => {
|
|
322
|
-
let r;
|
|
323
|
-
return e || (r = Y.init(), r.then((n) => {
|
|
324
|
-
t(n);
|
|
325
|
-
})), () => r?.cancel();
|
|
326
|
-
}), e;
|
|
327
|
-
}, F = /* @__PURE__ */ new Map(), Te = c.memo(function({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: a = "light", line: u, loading: s = "Loading...", options: p = {}, overrideServices: O = {}, saveViewState: b = !0, keepCurrentModel: E = !1, width: P = "100%", height: S = "100%", className: k, wrapperProps: $ = {}, beforeMount: G = q, onMount: w = q, onChange: C, onValidate: A = q }) {
|
|
328
|
-
let [m, y] = c.useState(!1), [d, D] = c.useState(!0), v = c.useRef(null), l = c.useRef(null), x = c.useRef(null), _ = c.useRef(w), N = c.useRef(G), f = c.useRef(), g = c.useRef(n), he = function(h) {
|
|
329
|
-
let M = c.useRef();
|
|
330
|
-
return c.useEffect(() => {
|
|
331
|
-
M.current = h;
|
|
332
|
-
}, [h]), M.current;
|
|
333
|
-
}(i), te = c.useRef(!1), H = c.useRef(!1);
|
|
334
|
-
ee(() => {
|
|
335
|
-
let h = Y.init();
|
|
336
|
-
return h.then((M) => (v.current = M) && D(!1)).catch((M) => M?.type !== "cancelation" && console.error("Monaco initialization: error:", M)), () => l.current ? (f.current?.dispose(), E ? b && F.set(i, l.current.saveViewState()) : l.current.getModel()?.dispose(), void l.current.dispose()) : h.cancel();
|
|
337
|
-
}), j(() => {
|
|
338
|
-
let h = I(v.current, e || n || "", t || o || "", i || r || "");
|
|
339
|
-
h !== l.current?.getModel() && (b && F.set(he, l.current?.saveViewState()), l.current?.setModel(h), b && l.current?.restoreViewState(F.get(i)));
|
|
340
|
-
}, [i], m), j(() => {
|
|
341
|
-
l.current?.updateOptions(p);
|
|
342
|
-
}, [p], m), j(() => {
|
|
343
|
-
!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));
|
|
344
|
-
}, [n], m), j(() => {
|
|
345
|
-
let h = l.current?.getModel();
|
|
346
|
-
h && o && v.current?.editor.setModelLanguage(h, o);
|
|
347
|
-
}, [o], m), j(() => {
|
|
348
|
-
u !== void 0 && l.current?.revealLine(u);
|
|
349
|
-
}, [u], m), j(() => {
|
|
350
|
-
v.current?.editor.setTheme(a);
|
|
351
|
-
}, [a], m);
|
|
352
|
-
let re = c.useCallback(() => {
|
|
353
|
-
if (x.current && v.current && !te.current) {
|
|
354
|
-
N.current(v.current);
|
|
355
|
-
let h = i || r, M = I(v.current, n || e || "", t || o || "", h || "");
|
|
356
|
-
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(a), u !== void 0 && l.current.revealLine(u), y(!0), te.current = !0;
|
|
357
|
-
}
|
|
358
|
-
}, [e, t, r, n, o, i, p, O, b, a, u]);
|
|
359
|
-
return c.useEffect(() => {
|
|
360
|
-
m && _.current(l.current, v.current);
|
|
361
|
-
}, [m]), c.useEffect(() => {
|
|
362
|
-
!d && !m && re();
|
|
363
|
-
}, [d, m, re]), g.current = n, c.useEffect(() => {
|
|
364
|
-
m && C && (f.current?.dispose(), f.current = l.current?.onDidChangeModelContent((h) => {
|
|
365
|
-
H.current || C(l.current.getValue(), h);
|
|
366
|
-
}));
|
|
367
|
-
}, [m, C]), c.useEffect(() => {
|
|
368
|
-
if (m) {
|
|
369
|
-
let h = v.current.editor.onDidChangeMarkers((M) => {
|
|
370
|
-
let J = l.current.getModel()?.uri;
|
|
371
|
-
if (J && M.find((K) => K.path === J.path)) {
|
|
372
|
-
let K = v.current.editor.getModelMarkers({ resource: J });
|
|
373
|
-
A?.(K);
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
return () => {
|
|
377
|
-
h?.dispose();
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
return () => {
|
|
381
|
-
};
|
|
382
|
-
}, [m, A]), T.createElement(pe, { width: P, height: S, isEditorReady: m, loading: s, _ref: x, className: k, wrapperProps: $ });
|
|
383
|
-
}), Ve = Te;
|
|
384
|
-
export {
|
|
385
|
-
Ae as DiffEditor,
|
|
386
|
-
Te as Editor,
|
|
387
|
-
Ve as default,
|
|
388
|
-
Y as loader,
|
|
389
|
-
De as useMonaco
|
|
390
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as s, w as p, E as G, z as n, j as t, $ as H, B as T, F as O, I as L, G as R, b as c, U as u, a as W, H as F, M as K } from "./8F0vFRAXlzH-vmJl.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
const U = ["Ok", "Cancel"], A = s.memo((S) => {
|
|
9
|
-
const { initialValue: w, context: f, onOption: h, onValidateOption: d, onInputOption: b, onDone: m, options: C = U, defaultOption: r = C?.[0], cancelOption: g = "Cancel", sx: P, ...$ } = S, [a, v] = s.useState(w), [D, I] = s.useState(!1), x = s.useCallback(async (e, o) => !0, []), y = p(async (e) => {
|
|
10
|
-
b?.(a, e), h?.(e, e === g, e === r), m?.();
|
|
11
|
-
}, [a, b, m, h, g, r]), M = p(async (e) => {
|
|
12
|
-
e.keyCode === G.Enter && await x?.(a, null) !== !1 && y(r);
|
|
13
|
-
}, [a, y]), N = p((e) => {
|
|
14
|
-
v(e.target.value), x?.(e.target.value, null);
|
|
15
|
-
}, [d]), V = p(async (e) => {
|
|
16
|
-
let o = await Promise.resolve(d?.(e));
|
|
17
|
-
try {
|
|
18
|
-
o !== !1 && (o = await Promise.resolve(x?.(a, e)) ?? !0);
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
21
|
-
return o ?? !0;
|
|
22
|
-
}, [d]), [j, k] = s.useState(n.Styles.lookupStyle(a).formatType ?? n.Type.Custom);
|
|
23
|
-
s.useEffect(() => {
|
|
24
|
-
k(n.Styles.lookupStyle(a).formatType ?? n.Type.Custom);
|
|
25
|
-
}, [a]);
|
|
26
|
-
const z = s.useMemo(() => {
|
|
27
|
-
const e = n.Styles.lookupPrimary(), o = (l) => t.jsx(K, { value: l, children: l }, l), i = Object.keys(e).map((l) => o(e[l].formatType));
|
|
28
|
-
return i.push(o(n.Type.Custom)), i;
|
|
29
|
-
}, []), B = s.useCallback((e) => {
|
|
30
|
-
const o = e.target.value;
|
|
31
|
-
k(o);
|
|
32
|
-
const i = n.Styles.lookupDefault(o);
|
|
33
|
-
i && v(i);
|
|
34
|
-
}, []), E = s.useMemo(() => {
|
|
35
|
-
const e = f();
|
|
36
|
-
return e.createTemporaryCell({ value: e.getValue() ?? 12345, style: { numberFormat: a } });
|
|
37
|
-
}, [j, a, f]);
|
|
38
|
-
return t.jsx(H, { title: "Number Format", options: C, onDone: m, onOption: (e) => y(e), onValidateOption: V, defaultOption: r, cancelOption: g, autoFocusSel: ".autoFocus", sx: { width: "580px", ...P }, ...$, children: t.jsxs(T, { sx: { paddingTop: (e) => e.spacing(1), paddingBottom: (e) => e.spacing(0), rowGap: (e) => e.spacing(1), display: "flex", flexDirection: "column" }, children: [t.jsxs(O, { sx: { minWidth: 135 }, size: "small", children: [t.jsx(L, { children: "Category" }), t.jsx(R, { value: j, label: "Category", onChange: B, sx: { backgroundImage: `linear-gradient(${c("#fff", u(5))}, ${c("#fff", u(5))})` }, children: z })] }), t.jsx(O, { sx: { paddingTop: (e) => e.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t.jsx(W, { label: "Code", onFocus: (e) => {
|
|
39
|
-
D || e.target?.select(), I(!0);
|
|
40
|
-
}, sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75), backgroundImage: `linear-gradient(${c("#fff", u(5))}, ${c("#fff", u(5))})` } } }, value: a, onChange: N, onKeyDown: M, onContextMenu: (e) => {
|
|
41
|
-
e.stopPropagation();
|
|
42
|
-
} }) }), t.jsxs(T, { children: [t.jsx(F, { variant: "caption", component: "div", sx: { paddingLeft: (e) => e.spacing(2) }, children: "Preview" }), t.jsx(F, { variant: "body2", component: "div", sx: { borderRadius: (e) => `${e.shape.borderRadius}px`, padding: (e) => e.spacing(1), border: (e) => `1px solid ${e.palette.grey[400]}` }, children: E.getNumberFormat().displayText || "(empty)" })] })] }) });
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
A as NumberFormatDialog,
|
|
46
|
-
A as default
|
|
47
|
-
};
|