@sheetxl/studio-mui 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/B1KlR2XYFpYbKjYS.cjs +20 -0
- package/browser/cjs/{afHzhXTMVhLQJ6uC.cjs → B1RMsexbz4bNlty_.cjs} +1 -1
- package/browser/cjs/B32faQpVaX1tkPuc.cjs +6 -0
- package/browser/cjs/B3XiHrRxW1LxML7F.cjs +6 -0
- package/browser/cjs/BGikYpeNpjwvXUdQ.cjs +18 -0
- package/browser/cjs/BY5l7DteiFtb2AKy.cjs +6 -0
- package/browser/cjs/Bb0Hd2RE7iVWVbm8.cjs +6 -0
- package/browser/cjs/C3EZkRIKfQURg9hX.cjs +6 -0
- package/browser/cjs/C7r573AdygYrVVEJ.cjs +7 -0
- package/browser/cjs/DEEknE8ARp0mc7fk.cjs +6 -0
- package/browser/cjs/DZwzUUHda3jr5jo4.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/veQZSq7ekc6G1FZT.cjs +42 -0
- package/browser/esm/B84RbTkXZiq6XIdH.mjs +49 -0
- package/browser/esm/{C4lgCnqxoHUTMKx0.mjs → BLy-hRTZkVfaGrcr.mjs} +1 -1
- package/browser/esm/Bapmv0WdnDq3Jl_q.mjs +53 -0
- package/browser/esm/C0OuiugFYjsjbY8q.mjs +46 -0
- package/browser/esm/{6nabbOchsfGHTDbJ.mjs → CGVN-NJF8ZTm9apo.mjs} +11 -10
- package/browser/esm/CcLpUDzJOdfqQ8Kf.mjs +25 -0
- package/browser/esm/Csg-hJrzm9r4vJrm.mjs +2156 -0
- package/browser/esm/{DwyDpojQzn8Yb0Z3.mjs → DHf2N2UY78nZFge3.mjs} +100 -98
- package/browser/esm/Dlc8L0qha0mZFIkY.mjs +62 -0
- package/browser/esm/{Duk7LVR9m02nk_H1.mjs → Dv-0R5pQwEnowzoO.mjs} +87 -85
- package/browser/esm/index.mjs +29 -29
- package/browser/esm/mVKwmIdSj4ua1Qce.mjs +4443 -0
- package/browser/esm/{aeeg2i5lmw2EnSq8.mjs → sHK4zKkWLGt2hVmW.mjs} +27 -26
- package/licenses/dependencies.txt +71 -342
- package/node/esm/{C1qlFAMFUg7JxINj.mjs → 49Eux5a_I5wZ-jfq.mjs} +29 -28
- package/node/esm/{Svd1DLPJnYKhJsxn.mjs → B00pGeZ7sj6QOFgF.mjs} +4 -3
- package/node/esm/{Cqh-VwF8iLFUBQG2.mjs → BEtxwx_Ji4aFNg8V.mjs} +79 -78
- package/node/esm/{BOlA6nKvsuwJ8-qE.mjs → BTcBIT144Lil18l-.mjs} +13 -11
- package/node/esm/{SdVxzy9D4jvK5ILt.mjs → Bw_f4uhXHpg1RA6Z.mjs} +7 -6
- package/node/esm/CGrG-gsnGd-Pn_T2.mjs +88 -0
- package/node/esm/CiUfb3MQCUC2McDP.mjs +46 -0
- package/node/esm/D1bjybdBQ28bumrW.mjs +63 -0
- package/node/esm/{wuBONOGgEy1w5A3Q.mjs → Dcnd4LiYyGf2eaNl.mjs} +23 -22
- package/node/esm/{BbLVlH-VHXBiyGbB.mjs → DiLUM75s3D56Y6Fx.mjs} +11 -10
- package/node/esm/index.mjs +2378 -18426
- package/package.json +8 -8
- package/browser/cjs/9JbHyHSHGCO4uFHn.cjs +0 -7
- package/browser/cjs/B17ClH6YVt0_UP8s.cjs +0 -6
- package/browser/cjs/B9LTfguTHj9uQv3h.cjs +0 -6
- package/browser/cjs/BYWh4kkrXJKKl2Ju.cjs +0 -145
- package/browser/cjs/BYrNOLTwEhs6LHAw.cjs +0 -6
- package/browser/cjs/Bh8xJY_qVp_q9NdJ.cjs +0 -6
- package/browser/cjs/Bl5l1B_eznDfB_7v.cjs +0 -18
- package/browser/cjs/C1LBzI2ntslIKFn5.cjs +0 -6
- package/browser/cjs/CGWf__jrNH3xfu2y.cjs +0 -161
- package/browser/cjs/CGlk1dj000Bm5cqP.cjs +0 -7
- package/browser/cjs/CX_y7y31Q5qi020q.cjs +0 -6
- package/browser/cjs/Cby5RVhO-aNkuWsV.cjs +0 -11
- package/browser/cjs/D2CoaVzteKVTLz2u.cjs +0 -42
- package/browser/cjs/D4ge-OwnSGkzaQnk.cjs +0 -15
- package/browser/cjs/D54KO7Qf1gFYpUYh.cjs +0 -11
- package/browser/cjs/D5Hr7ebLiJgvcT0k.cjs +0 -6
- package/browser/cjs/D6qxm65mk30iMCfQ.cjs +0 -6
- package/browser/cjs/DIR6Yr7FCZPYWi4-.cjs +0 -6
- package/browser/cjs/DeklxocxxZiZyZ5u.cjs +0 -6
- package/browser/cjs/Dh2Z7N-jImJZemiw.cjs +0 -6
- package/browser/cjs/Dngll9GyDqkTUUmu.cjs +0 -6
- package/browser/cjs/KmAkK4F7kLQEM3IN.cjs +0 -12
- package/browser/cjs/n8wDl6JTlhLU6ZAW.cjs +0 -16
- package/browser/cjs/zr0HW2FkaHX7brxh.cjs +0 -110
- package/browser/esm/B8eNugj_qKnbe7K9.mjs +0 -59
- package/browser/esm/BPRkMu1MFxUWK930.mjs +0 -3803
- package/browser/esm/BQtrstD4gTIutZpE.mjs +0 -1467
- package/browser/esm/BeT_3zf80WoubGnC.mjs +0 -1352
- package/browser/esm/C226zpF9x3cqGDep.mjs +0 -44
- package/browser/esm/C52hEZh6H2W5Zw5u.mjs +0 -2250
- package/browser/esm/CJi45DDPGy79h3Hk.mjs +0 -1366
- package/browser/esm/CSAsCpXnzBKwTizz.mjs +0 -23326
- package/browser/esm/ChetmIXTvR3tA23A.mjs +0 -48
- package/browser/esm/CtAFduFwOuqSdkvi.mjs +0 -23
- package/browser/esm/D1mFp2w9djJ0V4vm.mjs +0 -52
- package/browser/esm/DA83VkmtEXnqG2ye.mjs +0 -43
- package/browser/esm/Dy_zBluT96wehR25.mjs +0 -46
- package/browser/esm/NwT_h_qyOIJUd95T.mjs +0 -392
- package/browser/esm/eNfgzWFw915mA1DM.mjs +0 -84
- package/browser/esm/i07lQ5p_zaWwjifI.mjs +0 -12
- package/browser/esm/mWKbTdOrhJijxGkQ.mjs +0 -13391
- package/browser/esm/qTwpcY21ZDbsJF8q.mjs +0 -424
- package/browser/esm/rOu2mn5CpwGjRPMt.mjs +0 -1672
- package/browser/esm/xBoO8UGcKLTEtu2_.mjs +0 -1703
- package/node/esm/8IRz_tiw9gL3CiTm.mjs +0 -46
- package/node/esm/BGuyZxOceFDiCkHS.mjs +0 -553
- package/node/esm/BRc35RfDs9NeSBil.mjs +0 -78
- package/node/esm/BWNYjBRxl8-kaqWc.mjs +0 -1706
- package/node/esm/Bdk5FW-41aJV-x0f.mjs +0 -392
- package/node/esm/C2KYv5fsjkP4dceu.mjs +0 -86
- package/node/esm/C7eBwbZmMMcQeZ5y.mjs +0 -1479
- package/node/esm/CCmhTOlFNku7bidD.mjs +0 -44
- package/node/esm/COWuJnOkG4AgfLpx.mjs +0 -3776
- package/node/esm/CcxYuxLYIW_z4w-n.mjs +0 -1378
- package/node/esm/DO-FR-M-Iy43f7rk.mjs +0 -60
- package/node/esm/DOa-YBJSa8QO8ypH.mjs +0 -1246
- package/node/esm/DXgMMPZD2XcdNWPg.mjs +0 -44
- package/node/esm/DXlF9nEg2kAr3Ykp.mjs +0 -13464
- package/node/esm/FcospSz9-0aW4gFs.mjs +0 -1719
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.19
|
|
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
|
-
import e, { memo as t, useState as r, useRef as n, useCallback as o, useEffect as i } from "react";
|
|
8
|
-
function c(e3, t2, r2) {
|
|
9
|
-
return t2 in e3 ? Object.defineProperty(e3, t2, { value: r2, enumerable: true, configurable: true, writable: true }) : e3[t2] = r2, e3;
|
|
10
|
-
}
|
|
11
|
-
function u(e3, t2) {
|
|
12
|
-
var r2 = Object.keys(e3);
|
|
13
|
-
if (Object.getOwnPropertySymbols) {
|
|
14
|
-
var n2 = Object.getOwnPropertySymbols(e3);
|
|
15
|
-
t2 && (n2 = n2.filter(function(t3) {
|
|
16
|
-
return Object.getOwnPropertyDescriptor(e3, t3).enumerable;
|
|
17
|
-
})), r2.push.apply(r2, n2);
|
|
18
|
-
}
|
|
19
|
-
return r2;
|
|
20
|
-
}
|
|
21
|
-
function a(e3) {
|
|
22
|
-
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
23
|
-
var r2 = null != arguments[t2] ? arguments[t2] : {};
|
|
24
|
-
t2 % 2 ? u(Object(r2), true).forEach(function(t3) {
|
|
25
|
-
c(e3, t3, r2[t3]);
|
|
26
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : u(Object(r2)).forEach(function(t3) {
|
|
27
|
-
Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(r2, t3));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
return e3;
|
|
31
|
-
}
|
|
32
|
-
function l(e3, t2) {
|
|
33
|
-
if (null == e3) return {};
|
|
34
|
-
var r2, n2, o2 = function(e4, t3) {
|
|
35
|
-
if (null == e4) return {};
|
|
36
|
-
var r3, n3, o3 = {}, i3 = Object.keys(e4);
|
|
37
|
-
for (n3 = 0; n3 < i3.length; n3++) r3 = i3[n3], t3.indexOf(r3) >= 0 || (o3[r3] = e4[r3]);
|
|
38
|
-
return o3;
|
|
39
|
-
}(e3, t2);
|
|
40
|
-
if (Object.getOwnPropertySymbols) {
|
|
41
|
-
var i2 = Object.getOwnPropertySymbols(e3);
|
|
42
|
-
for (n2 = 0; n2 < i2.length; n2++) r2 = i2[n2], t2.indexOf(r2) >= 0 || Object.prototype.propertyIsEnumerable.call(e3, r2) && (o2[r2] = e3[r2]);
|
|
43
|
-
}
|
|
44
|
-
return o2;
|
|
45
|
-
}
|
|
46
|
-
function s(e3, t2) {
|
|
47
|
-
(null == t2 || t2 > e3.length) && (t2 = e3.length);
|
|
48
|
-
for (var r2 = 0, n2 = new Array(t2); r2 < t2; r2++) n2[r2] = e3[r2];
|
|
49
|
-
return n2;
|
|
50
|
-
}
|
|
51
|
-
function d(e3, t2, r2) {
|
|
52
|
-
return t2 in e3 ? Object.defineProperty(e3, t2, { value: r2, enumerable: true, configurable: true, writable: true }) : e3[t2] = r2, e3;
|
|
53
|
-
}
|
|
54
|
-
function f(e3, t2) {
|
|
55
|
-
var r2 = Object.keys(e3);
|
|
56
|
-
if (Object.getOwnPropertySymbols) {
|
|
57
|
-
var n2 = Object.getOwnPropertySymbols(e3);
|
|
58
|
-
t2 && (n2 = n2.filter(function(t3) {
|
|
59
|
-
return Object.getOwnPropertyDescriptor(e3, t3).enumerable;
|
|
60
|
-
})), r2.push.apply(r2, n2);
|
|
61
|
-
}
|
|
62
|
-
return r2;
|
|
63
|
-
}
|
|
64
|
-
function g(e3) {
|
|
65
|
-
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
66
|
-
var r2 = null != arguments[t2] ? arguments[t2] : {};
|
|
67
|
-
t2 % 2 ? f(Object(r2), true).forEach(function(t3) {
|
|
68
|
-
d(e3, t3, r2[t3]);
|
|
69
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(r2)) : f(Object(r2)).forEach(function(t3) {
|
|
70
|
-
Object.defineProperty(e3, t3, Object.getOwnPropertyDescriptor(r2, t3));
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
return e3;
|
|
74
|
-
}
|
|
75
|
-
function p(e3) {
|
|
76
|
-
return function t2() {
|
|
77
|
-
for (var r2 = this, n2 = arguments.length, o2 = new Array(n2), i2 = 0; i2 < n2; i2++) o2[i2] = arguments[i2];
|
|
78
|
-
return o2.length >= e3.length ? e3.apply(this, o2) : function() {
|
|
79
|
-
for (var e4 = arguments.length, n3 = new Array(e4), i3 = 0; i3 < e4; i3++) n3[i3] = arguments[i3];
|
|
80
|
-
return t2.apply(r2, [].concat(o2, n3));
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function h(e3) {
|
|
85
|
-
return {}.toString.call(e3).includes("Object");
|
|
86
|
-
}
|
|
87
|
-
function y(e3) {
|
|
88
|
-
return "function" == typeof e3;
|
|
89
|
-
}
|
|
90
|
-
var v = p(function(e3, t2) {
|
|
91
|
-
throw new Error(e3[t2] || e3.default);
|
|
92
|
-
})({ 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" }), m = { changes: function(e3, t2) {
|
|
93
|
-
return h(t2) || v("changeType"), Object.keys(t2).some(function(t3) {
|
|
94
|
-
return r2 = e3, n2 = t3, !Object.prototype.hasOwnProperty.call(r2, n2);
|
|
95
|
-
var r2, n2;
|
|
96
|
-
}) && v("changeField"), t2;
|
|
97
|
-
}, selector: function(e3) {
|
|
98
|
-
y(e3) || v("selectorType");
|
|
99
|
-
}, handler: function(e3) {
|
|
100
|
-
y(e3) || h(e3) || v("handlerType"), h(e3) && Object.values(e3).some(function(e4) {
|
|
101
|
-
return !y(e4);
|
|
102
|
-
}) && v("handlersType");
|
|
103
|
-
}, initial: function(e3) {
|
|
104
|
-
var t2;
|
|
105
|
-
e3 || v("initialIsRequired"), h(e3) || v("initialType"), t2 = e3, Object.keys(t2).length || v("initialContent");
|
|
106
|
-
} };
|
|
107
|
-
function b(e3, t2) {
|
|
108
|
-
return y(t2) ? t2(e3.current) : t2;
|
|
109
|
-
}
|
|
110
|
-
function w(e3, t2) {
|
|
111
|
-
return e3.current = g(g({}, e3.current), t2), t2;
|
|
112
|
-
}
|
|
113
|
-
function O(e3, t2, r2) {
|
|
114
|
-
return y(t2) ? t2(e3.current) : Object.keys(r2).forEach(function(r3) {
|
|
115
|
-
var n2;
|
|
116
|
-
return null === (n2 = t2[r3]) || void 0 === n2 ? void 0 : n2.call(t2, e3.current[r3]);
|
|
117
|
-
}), r2;
|
|
118
|
-
}
|
|
119
|
-
var j = { create: function(e3) {
|
|
120
|
-
var t2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
|
121
|
-
m.initial(e3), m.handler(t2);
|
|
122
|
-
var r2 = { current: e3 }, n2 = p(O)(r2, t2), o2 = p(w)(r2), i2 = p(m.changes)(e3), c2 = p(b)(r2);
|
|
123
|
-
return [function() {
|
|
124
|
-
var e4 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function(e5) {
|
|
125
|
-
return e5;
|
|
126
|
-
};
|
|
127
|
-
return m.selector(e4), e4(r2.current);
|
|
128
|
-
}, function(e4) {
|
|
129
|
-
!function() {
|
|
130
|
-
for (var e5 = arguments.length, t3 = new Array(e5), r3 = 0; r3 < e5; r3++) t3[r3] = arguments[r3];
|
|
131
|
-
return function(e6) {
|
|
132
|
-
return t3.reduceRight(function(e7, t4) {
|
|
133
|
-
return t4(e7);
|
|
134
|
-
}, e6);
|
|
135
|
-
};
|
|
136
|
-
}(n2, o2, i2, c2)(e4);
|
|
137
|
-
}];
|
|
138
|
-
} };
|
|
139
|
-
var M, P = { 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!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n " }, E = (M = function(e3, t2) {
|
|
140
|
-
throw new Error(e3[t2] || e3.default);
|
|
141
|
-
}, function e2() {
|
|
142
|
-
for (var t2 = this, r2 = arguments.length, n2 = new Array(r2), o2 = 0; o2 < r2; o2++) n2[o2] = arguments[o2];
|
|
143
|
-
return n2.length >= M.length ? M.apply(this, n2) : function() {
|
|
144
|
-
for (var r3 = arguments.length, o3 = new Array(r3), i2 = 0; i2 < r3; i2++) o3[i2] = arguments[i2];
|
|
145
|
-
return e2.apply(t2, [].concat(n2, o3));
|
|
146
|
-
};
|
|
147
|
-
})(P), S = { config: function(e3) {
|
|
148
|
-
var t2;
|
|
149
|
-
return e3 || E("configIsRequired"), t2 = e3, {}.toString.call(t2).includes("Object") || E("configType"), e3.urls ? (console.warn(P.deprecation), { paths: { vs: e3.urls.monacoBase } }) : e3;
|
|
150
|
-
} };
|
|
151
|
-
function k(e3, t2) {
|
|
152
|
-
return Object.keys(t2).forEach(function(r2) {
|
|
153
|
-
t2[r2] instanceof Object && e3[r2] && Object.assign(t2[r2], k(e3[r2], t2[r2]));
|
|
154
|
-
}), a(a({}, e3), t2);
|
|
155
|
-
}
|
|
156
|
-
var x = { type: "cancelation", msg: "operation is manually canceled" };
|
|
157
|
-
function I(e3) {
|
|
158
|
-
var t2 = false, r2 = new Promise(function(r3, n2) {
|
|
159
|
-
e3.then(function(e4) {
|
|
160
|
-
return t2 ? n2(x) : r3(e4);
|
|
161
|
-
}), e3.catch(n2);
|
|
162
|
-
});
|
|
163
|
-
return r2.cancel = function() {
|
|
164
|
-
return t2 = true;
|
|
165
|
-
}, r2;
|
|
166
|
-
}
|
|
167
|
-
var T, A, D = j.create({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: false, resolve: null, reject: null, monaco: null }), V = (A = 2, function(e3) {
|
|
168
|
-
if (Array.isArray(e3)) return e3;
|
|
169
|
-
}(T = D) || function(e3, t2) {
|
|
170
|
-
if ("undefined" != typeof Symbol && Symbol.iterator in Object(e3)) {
|
|
171
|
-
var r2 = [], n2 = true, o2 = false, i2 = void 0;
|
|
172
|
-
try {
|
|
173
|
-
for (var c2, u2 = e3[Symbol.iterator](); !(n2 = (c2 = u2.next()).done) && (r2.push(c2.value), !t2 || r2.length !== t2); n2 = true) ;
|
|
174
|
-
} catch (e4) {
|
|
175
|
-
o2 = true, i2 = e4;
|
|
176
|
-
} finally {
|
|
177
|
-
try {
|
|
178
|
-
n2 || null == u2.return || u2.return();
|
|
179
|
-
} finally {
|
|
180
|
-
if (o2) throw i2;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return r2;
|
|
184
|
-
}
|
|
185
|
-
}(T, A) || function(e3, t2) {
|
|
186
|
-
if (e3) {
|
|
187
|
-
if ("string" == typeof e3) return s(e3, t2);
|
|
188
|
-
var r2 = Object.prototype.toString.call(e3).slice(8, -1);
|
|
189
|
-
return "Object" === r2 && e3.constructor && (r2 = e3.constructor.name), "Map" === r2 || "Set" === r2 ? Array.from(e3) : "Arguments" === r2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r2) ? s(e3, t2) : void 0;
|
|
190
|
-
}
|
|
191
|
-
}(T, A) || function() {
|
|
192
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
193
|
-
}()), C = V[0], L = V[1];
|
|
194
|
-
function R(e3) {
|
|
195
|
-
return document.body.appendChild(e3);
|
|
196
|
-
}
|
|
197
|
-
function q(e3) {
|
|
198
|
-
var t2, r2, n2 = C(function(e4) {
|
|
199
|
-
return { config: e4.config, reject: e4.reject };
|
|
200
|
-
}), o2 = (t2 = "".concat(n2.config.paths.vs, "/loader.js"), r2 = document.createElement("script"), t2 && (r2.src = t2), r2);
|
|
201
|
-
return o2.onload = function() {
|
|
202
|
-
return e3();
|
|
203
|
-
}, o2.onerror = n2.reject, o2;
|
|
204
|
-
}
|
|
205
|
-
function z() {
|
|
206
|
-
var e3 = C(function(e4) {
|
|
207
|
-
return { config: e4.config, resolve: e4.resolve, reject: e4.reject };
|
|
208
|
-
}), t2 = window.require;
|
|
209
|
-
t2.config(e3.config), t2(["vs/editor/editor.main"], function(t3) {
|
|
210
|
-
_(t3), e3.resolve(t3);
|
|
211
|
-
}, function(t3) {
|
|
212
|
-
e3.reject(t3);
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
function _(e3) {
|
|
216
|
-
C().monaco || L({ monaco: e3 });
|
|
217
|
-
}
|
|
218
|
-
var N = new Promise(function(e3, t2) {
|
|
219
|
-
return L({ resolve: e3, reject: t2 });
|
|
220
|
-
}), F = { config: function(e3) {
|
|
221
|
-
var t2 = S.config(e3), r2 = t2.monaco, n2 = l(t2, ["monaco"]);
|
|
222
|
-
L(function(e4) {
|
|
223
|
-
return { config: k(e4.config, n2), monaco: r2 };
|
|
224
|
-
});
|
|
225
|
-
}, init: function() {
|
|
226
|
-
var e3 = C(function(e4) {
|
|
227
|
-
return { monaco: e4.monaco, isInitialized: e4.isInitialized, resolve: e4.resolve };
|
|
228
|
-
});
|
|
229
|
-
if (!e3.isInitialized) {
|
|
230
|
-
if (L({ isInitialized: true }), e3.monaco) return e3.resolve(e3.monaco), I(N);
|
|
231
|
-
if (window.monaco && window.monaco.editor) return _(window.monaco), e3.resolve(window.monaco), I(N);
|
|
232
|
-
!function() {
|
|
233
|
-
for (var e4 = arguments.length, t2 = new Array(e4), r2 = 0; r2 < e4; r2++) t2[r2] = arguments[r2];
|
|
234
|
-
return function(e5) {
|
|
235
|
-
return t2.reduceRight(function(e6, t3) {
|
|
236
|
-
return t3(e6);
|
|
237
|
-
}, e5);
|
|
238
|
-
};
|
|
239
|
-
}(R, q)(z);
|
|
240
|
-
}
|
|
241
|
-
return I(N);
|
|
242
|
-
}, __getMonacoInstance: function() {
|
|
243
|
-
return C(function(e3) {
|
|
244
|
-
return e3.monaco;
|
|
245
|
-
});
|
|
246
|
-
} }, U = { wrapper: { display: "flex", position: "relative", textAlign: "initial" }, fullWidth: { width: "100%" }, hide: { display: "none" } }, B = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } };
|
|
247
|
-
var W = function({ children: t2 }) {
|
|
248
|
-
return e.createElement("div", { style: B.container }, t2);
|
|
249
|
-
};
|
|
250
|
-
var Y = t(function({ width: t2, height: r2, isEditorReady: n2, loading: o2, _ref: i2, className: c2, wrapperProps: u2 }) {
|
|
251
|
-
return e.createElement("section", { style: { ...U.wrapper, width: t2, height: r2 }, ...u2 }, !n2 && e.createElement(W, null, o2), e.createElement("div", { ref: i2, style: { ...U.fullWidth, ...!n2 && U.hide }, className: c2 }));
|
|
252
|
-
});
|
|
253
|
-
var $ = function(e3) {
|
|
254
|
-
i(e3, []);
|
|
255
|
-
};
|
|
256
|
-
var G = function(e3, t2, r2 = true) {
|
|
257
|
-
let o2 = n(true);
|
|
258
|
-
i(o2.current || !r2 ? () => {
|
|
259
|
-
o2.current = false;
|
|
260
|
-
} : e3, t2);
|
|
261
|
-
};
|
|
262
|
-
function H() {
|
|
263
|
-
}
|
|
264
|
-
function J(e3, t2, r2, n2) {
|
|
265
|
-
return function(e4, t3) {
|
|
266
|
-
return e4.editor.getModel(K(e4, t3));
|
|
267
|
-
}(e3, n2) || function(e4, t3, r3, n3) {
|
|
268
|
-
return e4.editor.createModel(t3, r3, n3 ? K(e4, n3) : void 0);
|
|
269
|
-
}(e3, t2, r2, n2);
|
|
270
|
-
}
|
|
271
|
-
function K(e3, t2) {
|
|
272
|
-
return e3.Uri.parse(t2);
|
|
273
|
-
}
|
|
274
|
-
var Q = function({ original: t2, modified: c2, language: u2, originalLanguage: a2, modifiedLanguage: l2, originalModelPath: s2, modifiedModelPath: d2, keepCurrentOriginalModel: f2 = false, keepCurrentModifiedModel: g2 = false, theme: p2 = "light", loading: h2 = "Loading...", options: y2 = {}, height: v2 = "100%", width: m2 = "100%", className: b2, wrapperProps: w2 = {}, beforeMount: O2 = H, onMount: j2 = H }) {
|
|
275
|
-
let [M2, P2] = r(false), [E2, S2] = r(true), k2 = n(null), x2 = n(null), I2 = n(null), T2 = n(j2), A2 = n(O2), D2 = n(false);
|
|
276
|
-
$(() => {
|
|
277
|
-
let e3 = F.init();
|
|
278
|
-
return e3.then((e4) => (x2.current = e4) && S2(false)).catch((e4) => "cancelation" !== e4?.type && console.error("Monaco initialization: error:", e4)), () => k2.current ? function() {
|
|
279
|
-
let e4 = k2.current?.getModel();
|
|
280
|
-
f2 || e4?.original?.dispose(), g2 || e4?.modified?.dispose(), k2.current?.dispose();
|
|
281
|
-
}() : e3.cancel();
|
|
282
|
-
}), G(() => {
|
|
283
|
-
if (k2.current && x2.current) {
|
|
284
|
-
let e3 = k2.current.getOriginalEditor(), r2 = J(x2.current, t2 || "", a2 || u2 || "text", s2 || "");
|
|
285
|
-
r2 !== e3.getModel() && e3.setModel(r2);
|
|
286
|
-
}
|
|
287
|
-
}, [s2], M2), G(() => {
|
|
288
|
-
if (k2.current && x2.current) {
|
|
289
|
-
let e3 = k2.current.getModifiedEditor(), t3 = J(x2.current, c2 || "", l2 || u2 || "text", d2 || "");
|
|
290
|
-
t3 !== e3.getModel() && e3.setModel(t3);
|
|
291
|
-
}
|
|
292
|
-
}, [d2], M2), G(() => {
|
|
293
|
-
let e3 = k2.current.getModifiedEditor();
|
|
294
|
-
e3.getOption(x2.current.editor.EditorOption.readOnly) ? e3.setValue(c2 || "") : c2 !== e3.getValue() && (e3.executeEdits("", [{ range: e3.getModel().getFullModelRange(), text: c2 || "", forceMoveMarkers: true }]), e3.pushUndoStop());
|
|
295
|
-
}, [c2], M2), G(() => {
|
|
296
|
-
k2.current?.getModel()?.original.setValue(t2 || "");
|
|
297
|
-
}, [t2], M2), G(() => {
|
|
298
|
-
let { original: e3, modified: t3 } = k2.current.getModel();
|
|
299
|
-
x2.current.editor.setModelLanguage(e3, a2 || u2 || "text"), x2.current.editor.setModelLanguage(t3, l2 || u2 || "text");
|
|
300
|
-
}, [u2, a2, l2], M2), G(() => {
|
|
301
|
-
x2.current?.editor.setTheme(p2);
|
|
302
|
-
}, [p2], M2), G(() => {
|
|
303
|
-
k2.current?.updateOptions(y2);
|
|
304
|
-
}, [y2], M2);
|
|
305
|
-
let V2 = o(() => {
|
|
306
|
-
if (!x2.current) return;
|
|
307
|
-
A2.current(x2.current);
|
|
308
|
-
let e3 = J(x2.current, t2 || "", a2 || u2 || "text", s2 || ""), r2 = J(x2.current, c2 || "", l2 || u2 || "text", d2 || "");
|
|
309
|
-
k2.current?.setModel({ original: e3, modified: r2 });
|
|
310
|
-
}, [u2, c2, l2, t2, a2, s2, d2]), C2 = o(() => {
|
|
311
|
-
!D2.current && I2.current && (k2.current = x2.current.editor.createDiffEditor(I2.current, { automaticLayout: true, ...y2 }), V2(), x2.current?.editor.setTheme(p2), P2(true), D2.current = true);
|
|
312
|
-
}, [y2, p2, V2]);
|
|
313
|
-
return i(() => {
|
|
314
|
-
M2 && T2.current(k2.current, x2.current);
|
|
315
|
-
}, [M2]), i(() => {
|
|
316
|
-
!E2 && !M2 && C2();
|
|
317
|
-
}, [E2, M2, C2]), e.createElement(Y, { width: m2, height: v2, isEditorReady: M2, loading: h2, _ref: I2, className: b2, wrapperProps: w2 });
|
|
318
|
-
}, X = t(Q);
|
|
319
|
-
var Z = function() {
|
|
320
|
-
let [e3, t2] = r(F.__getMonacoInstance());
|
|
321
|
-
return $(() => {
|
|
322
|
-
let r2;
|
|
323
|
-
return e3 || (r2 = F.init(), r2.then((e4) => {
|
|
324
|
-
t2(e4);
|
|
325
|
-
})), () => r2?.cancel();
|
|
326
|
-
}), e3;
|
|
327
|
-
};
|
|
328
|
-
var ee = function(e3) {
|
|
329
|
-
let t2 = n();
|
|
330
|
-
return i(() => {
|
|
331
|
-
t2.current = e3;
|
|
332
|
-
}, [e3]), t2.current;
|
|
333
|
-
}, te = /* @__PURE__ */ new Map();
|
|
334
|
-
var re = function({ defaultValue: t2, defaultLanguage: c2, defaultPath: u2, value: a2, language: l2, path: s2, theme: d2 = "light", line: f2, loading: g2 = "Loading...", options: p2 = {}, overrideServices: h2 = {}, saveViewState: y2 = true, keepCurrentModel: v2 = false, width: m2 = "100%", height: b2 = "100%", className: w2, wrapperProps: O2 = {}, beforeMount: j2 = H, onMount: M2 = H, onChange: P2, onValidate: E2 = H }) {
|
|
335
|
-
let [S2, k2] = r(false), [x2, I2] = r(true), T2 = n(null), A2 = n(null), D2 = n(null), V2 = n(M2), C2 = n(j2), L2 = n(), R2 = n(a2), q2 = ee(s2), z2 = n(false), _2 = n(false);
|
|
336
|
-
$(() => {
|
|
337
|
-
let e3 = F.init();
|
|
338
|
-
return e3.then((e4) => (T2.current = e4) && I2(false)).catch((e4) => "cancelation" !== e4?.type && console.error("Monaco initialization: error:", e4)), () => A2.current ? (L2.current?.dispose(), v2 ? y2 && te.set(s2, A2.current.saveViewState()) : A2.current.getModel()?.dispose(), void A2.current.dispose()) : e3.cancel();
|
|
339
|
-
}), G(() => {
|
|
340
|
-
let e3 = J(T2.current, t2 || a2 || "", c2 || l2 || "", s2 || u2 || "");
|
|
341
|
-
e3 !== A2.current?.getModel() && (y2 && te.set(q2, A2.current?.saveViewState()), A2.current?.setModel(e3), y2 && A2.current?.restoreViewState(te.get(s2)));
|
|
342
|
-
}, [s2], S2), G(() => {
|
|
343
|
-
A2.current?.updateOptions(p2);
|
|
344
|
-
}, [p2], S2), G(() => {
|
|
345
|
-
!A2.current || void 0 === a2 || (A2.current.getOption(T2.current.editor.EditorOption.readOnly) ? A2.current.setValue(a2) : a2 !== A2.current.getValue() && (_2.current = true, A2.current.executeEdits("", [{ range: A2.current.getModel().getFullModelRange(), text: a2, forceMoveMarkers: true }]), A2.current.pushUndoStop(), _2.current = false));
|
|
346
|
-
}, [a2], S2), G(() => {
|
|
347
|
-
let e3 = A2.current?.getModel();
|
|
348
|
-
e3 && l2 && T2.current?.editor.setModelLanguage(e3, l2);
|
|
349
|
-
}, [l2], S2), G(() => {
|
|
350
|
-
void 0 !== f2 && A2.current?.revealLine(f2);
|
|
351
|
-
}, [f2], S2), G(() => {
|
|
352
|
-
T2.current?.editor.setTheme(d2);
|
|
353
|
-
}, [d2], S2);
|
|
354
|
-
let N2 = o(() => {
|
|
355
|
-
if (D2.current && T2.current && !z2.current) {
|
|
356
|
-
C2.current(T2.current);
|
|
357
|
-
let e3 = s2 || u2, r2 = J(T2.current, a2 || t2 || "", c2 || l2 || "", e3 || "");
|
|
358
|
-
A2.current = T2.current?.editor.create(D2.current, { model: r2, automaticLayout: true, ...p2 }, h2), y2 && A2.current.restoreViewState(te.get(e3)), T2.current.editor.setTheme(d2), void 0 !== f2 && A2.current.revealLine(f2), k2(true), z2.current = true;
|
|
359
|
-
}
|
|
360
|
-
}, [t2, c2, u2, a2, l2, s2, p2, h2, y2, d2, f2]);
|
|
361
|
-
return i(() => {
|
|
362
|
-
S2 && V2.current(A2.current, T2.current);
|
|
363
|
-
}, [S2]), i(() => {
|
|
364
|
-
!x2 && !S2 && N2();
|
|
365
|
-
}, [x2, S2, N2]), R2.current = a2, i(() => {
|
|
366
|
-
S2 && P2 && (L2.current?.dispose(), L2.current = A2.current?.onDidChangeModelContent((e3) => {
|
|
367
|
-
_2.current || P2(A2.current.getValue(), e3);
|
|
368
|
-
}));
|
|
369
|
-
}, [S2, P2]), i(() => {
|
|
370
|
-
if (S2) {
|
|
371
|
-
let e3 = T2.current.editor.onDidChangeMarkers((e4) => {
|
|
372
|
-
let t3 = A2.current.getModel()?.uri;
|
|
373
|
-
if (t3 && e4.find((e5) => e5.path === t3.path)) {
|
|
374
|
-
let e5 = T2.current.editor.getModelMarkers({ resource: t3 });
|
|
375
|
-
E2?.(e5);
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
return () => {
|
|
379
|
-
e3?.dispose();
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
return () => {
|
|
383
|
-
};
|
|
384
|
-
}, [S2, E2]), e.createElement(Y, { width: m2, height: b2, isEditorReady: S2, loading: g2, _ref: D2, className: w2, wrapperProps: O2 });
|
|
385
|
-
}, ne = t(re), oe = ne;
|
|
386
|
-
export {
|
|
387
|
-
X as DiffEditor,
|
|
388
|
-
ne as Editor,
|
|
389
|
-
oe as default,
|
|
390
|
-
F as loader,
|
|
391
|
-
Z as useMonaco
|
|
392
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.19
|
|
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
|
-
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
|
-
import { Box as n, TextField as i, InputAdornment as o, IconButton as r, FormControlLabel as a, Checkbox as l, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
|
|
9
|
-
import { m as h, T as p, n as m, z as u } from "./index.mjs";
|
|
10
|
-
import g, { useState as f, useMemo as x, useEffect as b } from "react";
|
|
11
|
-
import w from "clsx";
|
|
12
|
-
import { alpha as y, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
|
|
13
|
-
import { Close as k } from "@mui/icons-material";
|
|
14
|
-
import { AutoSizer as v, Table as $, Column as D } from "react-virtualized";
|
|
15
|
-
const z = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", K = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
|
|
16
|
-
class N extends g.PureComponent {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
19
|
-
const { onRowClick: t2 } = this.props;
|
|
20
|
-
return w(I, z, { [K]: -1 !== e2 && null != t2 });
|
|
21
|
-
}, this.cellRenderer = ({ cellData: e2, dataKey: n2, columnIndex: i2, width: o2 }) => {
|
|
22
|
-
const { columns: r2, rowHeight: a2, onRowClick: l2 } = this.props;
|
|
23
|
-
let d2 = e2, c2 = { height: a2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${o2}px`, maxWidth: `${o2}px` };
|
|
24
|
-
return "shortcut" === n2 ? d2 = m(e2) : "description" === n2 && (c2 = { ...c2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: w(H, z, { [S]: null == l2 }), variant: "body", style: c2, align: null != i2 && r2[i2].numeric ? "right" : "left", children: d2 });
|
|
25
|
-
}, this.headerRenderer = ({ label: e2, columnIndex: n2, width: i2 }) => {
|
|
26
|
-
const { headerHeight: o2, columns: r2 } = this.props, a2 = r2[n2];
|
|
27
|
-
return t(s, { component: "div", className: w(H, z, S), variant: "head", sx: { width: i2, height: o2, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("span", { children: a2.label }) });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static {
|
|
31
|
-
this.defaultProps = { headerHeight: 40, rowHeight: 48 };
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const { columns: e2, rowHeight: n2, headerHeight: i2, ...o2 } = this.props;
|
|
35
|
-
return t(v, { children: ({ height: r2, width: a2 }) => t($, { height: r2, width: a2, rowHeight: n2, gridStyle: { direction: "inherit" }, headerHeight: i2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: n3, widthLess: i3, ...o3 }, r3) => {
|
|
36
|
-
const l2 = i3 ? a2 - i3 : n3;
|
|
37
|
-
return t(D, { style: { flex: `1 1 ${l2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: l2, columnIndex: r3 }), className: z, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: n4 }) => e4[n4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: l2, columnIndex: r3 }), dataKey: e3, width: l2, ...o3 }, e3);
|
|
38
|
-
}) }) });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${I}`]: { cursor: "pointer" }, [`& .${K}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
|
|
42
|
-
function _(s2) {
|
|
43
|
-
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [w2, C2] = f(""), v2 = x(() => {
|
|
44
|
-
let e2 = c2.getAllCommands();
|
|
45
|
-
u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
|
|
46
|
-
const t2 = [], n2 = (e3) => e3.replace(/\n\n/g, "\n");
|
|
47
|
-
for (let i2 = 0; i2 < e2.length; i2++) {
|
|
48
|
-
const o2 = e2[i2].command, r2 = o2.shortcut();
|
|
49
|
-
if (Array.isArray(r2)) {
|
|
50
|
-
const e3 = r2;
|
|
51
|
-
for (let i3 = 0; i3 < e3.length; i3++) t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: e3[i3] });
|
|
52
|
-
} else t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: o2.shortcut() });
|
|
53
|
-
}
|
|
54
|
-
return t2;
|
|
55
|
-
}, [u2, c2]), [$2, D2] = f(null);
|
|
56
|
-
b(() => {
|
|
57
|
-
import("fuse.js").then((e2) => {
|
|
58
|
-
D2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
59
|
-
});
|
|
60
|
-
}, [v2]);
|
|
61
|
-
const [z2, I2] = f(v2), K2 = w2.length > 0 && 0 === z2.length;
|
|
62
|
-
b(() => {
|
|
63
|
-
$2 && h.debounce(() => {
|
|
64
|
-
if (0 === w2.trim().length) return void I2(v2);
|
|
65
|
-
const e2 = $2.search(w2.trim()), t2 = new Array(e2.length);
|
|
66
|
-
for (let n2 = 0; n2 < e2.length; n2++) t2[n2] = e2[n2].item;
|
|
67
|
-
I2(t2);
|
|
68
|
-
}, 90)();
|
|
69
|
-
}, [$2, w2]);
|
|
70
|
-
return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${y("#fff", R(5))}, ${y("#fff", R(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(o, { sx: { opacity: w2.length > 0 ? 1 : 0, display: w2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 } }, value: w2, onChange: (e2) => {
|
|
71
|
-
C2(e2.target.value);
|
|
72
|
-
}, onKeyDown: (e2) => {
|
|
73
|
-
e2.which === p.Escape && w2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
74
|
-
}, onContextMenu: (e2) => {
|
|
75
|
-
e2.stopPropagation();
|
|
76
|
-
} }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${y("#fff", R(5))}, ${y("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(n, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => K2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === z2.length ? "No" : z2.length} shortcut key${1 === z2.length ? "" : "s"}${w2.length > 0 ? " found" : ""}` }) })] });
|
|
77
|
-
}
|
|
78
|
-
const P = (e2) => {
|
|
79
|
-
const { title: n2 = "Shortcut Keys", commands: i2, sx: o2, ...r2 } = e2;
|
|
80
|
-
return t(u, { isModal: true, onKeyDown: (e3) => {
|
|
81
|
-
e3.keyCode === p.F1 && e3.preventDefault();
|
|
82
|
-
}, sx: { width: "780px", ...o2 }, title: n2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: i2, sx: { marginBottom: "8px" } }) }) });
|
|
83
|
-
};
|
|
84
|
-
export {
|
|
85
|
-
P as default
|
|
86
|
-
};
|