@sheetxl/studio-vanilla 0.4.9 → 0.4.10
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/README.md +1 -1
- package/browser/cjs/{3GhIDU8JK1oBJrCA.cjs → B1UGqZP_7Z0Ewpog.cjs} +2 -2
- package/browser/cjs/{BoojmbbjqixMVu2H.cjs → B6m9VXoFseD4zuZ5.cjs} +2 -2
- package/browser/cjs/{D8lN5Mv3J4SwSpLP.cjs → BKePSaEpM6Z063z-.cjs} +1 -1
- package/browser/cjs/{7PlrLPQx1lct0mdN.cjs → Bqn0ZeP_srNfL9rG.cjs} +1 -1
- package/browser/cjs/{CalnqtYH48_x2rcI.cjs → C-izbj62pQuZjOrT.cjs} +62 -59
- package/browser/cjs/{nURb18uhj9rScsHa.cjs → C-w-GX8N54TxTjjf.cjs} +2 -2
- package/browser/cjs/{CjDsO4sQWUHbIX1N.cjs → C1QGdcqJ-9sdGTQR.cjs} +2 -2
- package/browser/cjs/{B4K6KuggSdXj-V8g.cjs → C38aiRglHLxZ8KRY.cjs} +2 -2
- package/browser/cjs/{B7eW1GQgFvphlLGY.cjs → C4JMn_hMnlOnDpQO.cjs} +2 -2
- package/browser/cjs/{DzCXPcqV1oKbCcLO.cjs → CApEj4LhhPUvQjIG.cjs} +1 -1
- package/browser/cjs/{Y6OgkWqbIB761o5q.cjs → CFcJbmmXjWjl6fQH.cjs} +2 -2
- package/browser/cjs/{EoaX6dPoS-Mb-ITO.cjs → CKiDbCZ6rGgXK7yN.cjs} +4 -4
- package/browser/cjs/CM8btXQsJbnFKXUm.cjs +6 -0
- package/browser/cjs/{CSGVl8EBCRhxcFm1.cjs → Cb0K3Wzp7BAa4zni.cjs} +1 -1
- package/browser/cjs/{CsCaFaiySArzEfdH.cjs → CiAUhPU7v1BK-8Bb.cjs} +3 -3
- package/browser/cjs/{Dmw7xaaV85s72QZe.cjs → CsXS-EN0N5SZHTnQ.cjs} +1 -1
- package/browser/cjs/{BQPFxJ77OaD_sBIX.cjs → Cu2eUomoF0HToa4l.cjs} +2 -2
- package/browser/cjs/{gbABnN2zW1kHo3_I.cjs → Cy7ii9B_Vqx94pbu.cjs} +8 -8
- package/browser/cjs/{B5Qc3gXLEhscRsFm.cjs → CzI4ZcsmzsyPBpWN.cjs} +5 -5
- package/browser/cjs/{D6AUUY9awlTRjjqd.cjs → DKHzUx2gKXwboKy1.cjs} +1 -1
- package/browser/cjs/{D9RQ5oYv7U38wSI7.cjs → DKc8wAq8dwbDddQn.cjs} +5 -5
- package/browser/cjs/{DGQrcBvjSGwwoZEv.cjs → DMyKApbUVRtNYC4e.cjs} +2 -2
- package/browser/cjs/{kfV5Cli9oE9IsCtx.cjs → DROR08HMGyg7rizQ.cjs} +2 -2
- package/browser/cjs/{Ba3O1f0NYbzEwNAd.cjs → DfGDZlbFVknGyu_X.cjs} +1 -1
- package/browser/cjs/{DCd2rPNFkSHDaRcM.cjs → OQdqVM_6m78kE5Aj.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DIXyMJKaeCGuWxjZ.cjs → v4OEtYXaUw_GeiXM.cjs} +1 -1
- package/{cdn/assets/CXa9u-7w14dyPYxk.js → browser/esm/4uEr84M4w57AMyDg.mjs} +3 -3
- package/{cdn/assets/4aC35Q2XPOwifBRR.js → browser/esm/B8Ja5DlyKAy8xfQD.mjs} +1 -1
- package/{cdn/assets/BJVOhUH_XL03H6ZD.js → browser/esm/B9bN60uAvy62vnwt.mjs} +6 -6
- package/browser/esm/{CPEjlDUTxckVS1rp.mjs → BAOzSQdzHl43K9Hd.mjs} +6 -6
- package/browser/esm/{BD9GKsR-k4aEK2tx.mjs → BQYSD5Nb35y0WeeV.mjs} +1 -1
- package/browser/esm/{CaWZXQsmKl4hTNq5.mjs → BVcaNvORp_uKPQgJ.mjs} +3 -3
- package/{cdn/assets/2NQDbhor1Nuzndgq.js → browser/esm/BqXO_cQhrMJu7JoQ.mjs} +1 -1
- package/browser/esm/{tOBqasyBAnd7O4qE.mjs → C18A_DcIEHNYBDvR.mjs} +9 -9
- package/{cdn/assets/D0PaU6F-TNaTWj-a.js → browser/esm/C7FoKZbSzjvuY3UB.mjs} +8 -8
- package/{cdn/assets/5zFDFBAgT-aPgQQ0.js → browser/esm/CCIJpHSbFPjTEF8S.mjs} +1 -1
- package/browser/esm/{DFQvqk5r1uf_z0h_.mjs → CHNPjJxb0GY_naLa.mjs} +6889 -6858
- package/browser/esm/{CO_s27056nua6qzN.mjs → CKHsU9LUNYowimxS.mjs} +1 -1
- package/{cdn/assets/TOkIJFYhNg78FdJa.js → browser/esm/C_Zx1tYjI3n7KKZH.mjs} +2 -2
- package/{cdn/assets/C81J50HcankGTOIj.js → browser/esm/Cm-m3bZh0V44y0li.mjs} +1 -1
- package/browser/esm/{Dx-GS3XDBkRaMNG-.mjs → D1e_ccSgcNXvWHgy.mjs} +16 -16
- package/browser/esm/{CY7astxzrfb7uZqy.mjs → D47D26mVYSAdb5C8.mjs} +26 -26
- package/browser/esm/{V5CA7xqGOB7-Qx4Y.mjs → D9CdO3PtV12RnK8K.mjs} +59 -59
- package/browser/esm/{BkGQPKMRPIVUVTLO.mjs → D9x-Q8y57gePf-tE.mjs} +42 -42
- package/{cdn/assets/D4hoypx6_sZbvrC_.js → browser/esm/DHhXutXh7b5LsU1m.mjs} +2 -2
- package/browser/esm/{DRL5s4S0fIXi1aU7.mjs → DIGFi66CQPMV3HsL.mjs} +1 -1
- package/browser/esm/{D0icxW0WVNoeVRLH.mjs → DamiTeQsSMP2Cwld.mjs} +9 -9
- package/browser/esm/{DRmeb1VC4YCzKKWd.mjs → DhD48oFrbrnZ6Zg5.mjs} +1 -1
- package/{cdn/assets/b9dlFmoFz8tJhV0Z.js → browser/esm/Ln2ZalJgj1CiJJue.mjs} +6 -6
- package/browser/esm/{CxcLNXXaxyFyUzyb.mjs → S9fgUO7h8YgZxoKH.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{DTwhl4v5YnZrUSgI.mjs → qVAHcpq07IhtAaQc.mjs} +5 -5
- package/{cdn/assets/Bg88bG-JM9EHeyYX.js → browser/esm/xrzJ8ILZHb118Oyt.mjs} +17 -17
- package/cdn/assets/{DKLitAhDj5Ibh2cc.js → 2-xJlw77WsCoyz09.js} +5071 -5040
- package/cdn/assets/{CkcETdiKdTsZAzma.js → B-9FcTf3xBEVGdjV.js} +59 -59
- package/{browser/esm/BQpsMTJvguy6LMIq.mjs → cdn/assets/B-p1i2SNRMunPXCF.js} +8 -8
- package/cdn/assets/{BWJOkXXB6Tr-jYUS.js → B3J6oAmsS7oLNFPd.js} +3 -3
- package/{browser/esm/4aC35Q2XPOwifBRR.mjs → cdn/assets/B8Ja5DlyKAy8xfQD.js} +1 -1
- package/cdn/assets/{BapFqJyAb3cblvJM.js → BG3YTMAzNKPRGoLs.js} +6 -6
- package/cdn/assets/{BD9GKsR-k4aEK2tx.js → BQYSD5Nb35y0WeeV.js} +1 -1
- package/{browser/esm/B3I_TrFN_pAK5Mdh.mjs → cdn/assets/BbzUpvQOkxsN-yIH.js} +2 -2
- package/{browser/esm/2NQDbhor1Nuzndgq.mjs → cdn/assets/BqXO_cQhrMJu7JoQ.js} +1 -1
- package/{browser/esm/DmpPAs6w-XNWGTIN.mjs → cdn/assets/Bt1JSlSpWXDOBfq3.js} +3 -3
- package/{browser/esm/5zFDFBAgT-aPgQQ0.mjs → cdn/assets/CCIJpHSbFPjTEF8S.js} +1 -1
- package/cdn/assets/{CO_s27056nua6qzN.js → CKHsU9LUNYowimxS.js} +1 -1
- package/cdn/assets/{PIZDjyqIbvmHXs1T.js → CWLJZwD2GVXljoWG.js} +9 -9
- package/{browser/esm/C81J50HcankGTOIj.mjs → cdn/assets/Cm-m3bZh0V44y0li.js} +1 -1
- package/cdn/assets/{D5exf1RvCqvUoJ3X.js → CtQlXGkNWgI-vtGy.js} +26 -26
- package/cdn/assets/{DRL5s4S0fIXi1aU7.js → DIGFi66CQPMV3HsL.js} +1 -1
- package/cdn/assets/{DYkBvlMlZjOASUJs.js → DK4S0DbayChkfTD6.js} +9 -9
- package/{browser/esm/tPrnEcHW_czJDZOT.mjs → cdn/assets/DQvsBz9F1GS_S7r9.js} +6 -6
- package/cdn/assets/{ON5--a75QdEU99y_.js → DTOgv_zwXSur-yCq.js} +16 -16
- package/cdn/assets/{d1PG-QPA1GcQ_RuH.js → DYZjOnD8WWQkCYuH.js} +42 -42
- package/cdn/assets/{DRmeb1VC4YCzKKWd.js → DhD48oFrbrnZ6Zg5.js} +1 -1
- package/{browser/esm/BfCWogOnq8R-c3dD.mjs → cdn/assets/DhyAyTCDkMBf392P.js} +2 -2
- package/cdn/assets/{B0w_moB3pDJd-a6V.js → P7HeVw5SHROLSWBz.js} +5 -5
- package/{browser/esm/CZVzRhflTpwAAl1o.mjs → cdn/assets/S4Z0SN8x6EltjsHT.js} +6 -6
- package/cdn/assets/{CxcLNXXaxyFyUzyb.js → S9fgUO7h8YgZxoKH.js} +1 -1
- package/{browser/esm/gsfI5CGYr7LCQxRx.mjs → cdn/assets/guYe4C_6pE93QsDV.js} +17 -17
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/types/index.d.ts +9 -9
- package/browser/cjs/5hPVyVAXmITQCRAG.cjs +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { c as to, g as oo, u as no, s as ro, l as io, aT as Q, m as lo, o as so, aU as ao, aV as co, a as Z, aA as uo, aB as ho, av as wt, Y as fo, B as he, T as po, aF as mo, a0 as go, a2 as vo, ay as fe, at as _o, au as So, $ as yo, aW as wo, aX as Co, aY as De, aZ as xo, a_ as Ro, a$ as bo, H as ye, b0 as To, b1 as zo, b2 as q, b3 as Io, b4 as V, b5 as Po } from "./2-xJlw77WsCoyz09.js";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import Ct, { useState as pe, useMemo as ko, useEffect as je, cloneElement as Oo } from "react";
|
|
5
|
-
import { h as N } from "./
|
|
5
|
+
import { h as N } from "./DYZjOnD8WWQkCYuH.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -33,7 +33,7 @@ const Ao = to("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "s
|
|
|
33
33
|
function we(o) {
|
|
34
34
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function K(o, e) {
|
|
37
37
|
return e && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${e}{${String(o.styles)}}`), o;
|
|
38
38
|
}
|
|
39
39
|
function Wo(o) {
|
|
@@ -44,14 +44,14 @@ function ve(o, e, t) {
|
|
|
44
44
|
if (Array.isArray(n)) return n.flatMap((r) => ve(o, r, t));
|
|
45
45
|
if (Array.isArray(n?.variants)) {
|
|
46
46
|
let r;
|
|
47
|
-
if (n.isProcessed) r = t ?
|
|
47
|
+
if (n.isProcessed) r = t ? K(n.style, t) : n.style;
|
|
48
48
|
else {
|
|
49
49
|
const { variants: l, ...i } = n;
|
|
50
|
-
r = t ? q(
|
|
50
|
+
r = t ? K(q(i), t) : i;
|
|
51
51
|
}
|
|
52
52
|
return xt(o, n.variants, [r], t);
|
|
53
53
|
}
|
|
54
|
-
return n?.isProcessed ? t ? q(
|
|
54
|
+
return n?.isProcessed ? t ? K(q(n.style), t) : n.style : t ? K(q(n), t) : n;
|
|
55
55
|
}
|
|
56
56
|
function xt(o, e, t = [], n = void 0) {
|
|
57
57
|
let r;
|
|
@@ -60,7 +60,7 @@ function xt(o, e, t = [], n = void 0) {
|
|
|
60
60
|
if (typeof i.props == "function") {
|
|
61
61
|
if (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !i.props(r)) continue;
|
|
62
62
|
} else for (const a in i.props) if (o[a] !== i.props[a] && o.ownerState?.[a] !== i.props[a]) continue e;
|
|
63
|
-
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? q(
|
|
63
|
+
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? K(q(i.style(r)), n) : i.style(r))) : t.push(n ? K(q(i.style), n) : i.style);
|
|
64
64
|
}
|
|
65
65
|
return t;
|
|
66
66
|
}
|
|
@@ -89,13 +89,13 @@ const jo = function(o = {}) {
|
|
|
89
89
|
};
|
|
90
90
|
if (zo(b)) {
|
|
91
91
|
const R = function(z) {
|
|
92
|
-
const { variants: I, ...k } = z, P = { variants: I, style:
|
|
92
|
+
const { variants: I, ...k } = z, P = { variants: I, style: q(k), isProcessed: !0 };
|
|
93
93
|
return P.style === k || I && I.forEach((T) => {
|
|
94
|
-
typeof T.style != "function" && (T.style =
|
|
94
|
+
typeof T.style != "function" && (T.style = q(T.style));
|
|
95
95
|
}), P;
|
|
96
96
|
}(b);
|
|
97
97
|
return function(z) {
|
|
98
|
-
return R.variants ? ve(z, R, z.theme.modularCssLayers ? v : void 0) : z.theme.modularCssLayers ?
|
|
98
|
+
return R.variants ? ve(z, R, z.theme.modularCssLayers ? v : void 0) : z.theme.modularCssLayers ? K(R.style, v) : R.style;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
return b;
|
|
@@ -371,7 +371,7 @@ function $e(o, e) {
|
|
|
371
371
|
}
|
|
372
372
|
return t;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ke(o) {
|
|
375
375
|
for (var e = 1; e < arguments.length; e++) {
|
|
376
376
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
377
377
|
e % 2 ? $e(Object(t), !0).forEach(function(n) {
|
|
@@ -415,7 +415,7 @@ var Ot = function() {
|
|
|
415
415
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
416
416
|
} }, { key: "render", value: function() {
|
|
417
417
|
var e = this.props, t = e.children, n = e.className, r = e.disableHeight, l = e.disableWidth, i = e.style, a = this.state, s = a.height, c = a.width, d = { overflow: "visible" }, h = {};
|
|
418
|
-
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c), x.createElement("div", { className: n, ref: this._setRef, style:
|
|
418
|
+
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ke(Ke({}, d), i) }, t(h));
|
|
419
419
|
} }]);
|
|
420
420
|
}();
|
|
421
421
|
function Mt() {
|
|
@@ -491,7 +491,7 @@ function Te(o) {
|
|
|
491
491
|
}
|
|
492
492
|
return me;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function qe(o, e) {
|
|
495
495
|
var t = Object.keys(o);
|
|
496
496
|
if (Object.getOwnPropertySymbols) {
|
|
497
497
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -504,9 +504,9 @@ function Ke(o, e) {
|
|
|
504
504
|
function Xe(o) {
|
|
505
505
|
for (var e = 1; e < arguments.length; e++) {
|
|
506
506
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
507
|
-
e % 2 ?
|
|
507
|
+
e % 2 ? qe(Object(t), !0).forEach(function(n) {
|
|
508
508
|
p(o, n, t[n]);
|
|
509
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
509
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(n) {
|
|
510
510
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
511
511
|
});
|
|
512
512
|
}
|
|
@@ -878,11 +878,11 @@ function et(o) {
|
|
|
878
878
|
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, l = o.previousScrollToAlignment, i = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, v = t.getCellCount(), m = d >= 0 && d < v;
|
|
879
879
|
m && (h !== a || f || !r || typeof e == "number" && e !== r || c !== l || d !== i) ? u(d) : !m && v > 0 && (h < a || v < n) && s > t.getTotalSize() - h && u(v - 1);
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var Ko = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
882
882
|
return F.setTimeout(o, 1e3 / 60);
|
|
883
|
-
},
|
|
883
|
+
}, qo = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
884
884
|
F.clearTimeout(o);
|
|
885
|
-
}, tt =
|
|
885
|
+
}, tt = Ko, Xo = qo, oe = function(o) {
|
|
886
886
|
return Xo(o.id);
|
|
887
887
|
}, Ge = function(o, e) {
|
|
888
888
|
var t;
|
|
@@ -1788,20 +1788,20 @@ function $t(o) {
|
|
|
1788
1788
|
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === de, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === ke });
|
|
1789
1789
|
return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === de ? x.createElement("path", { d: "M7 14l5-5 5 5z" }) : x.createElement("path", { d: "M7 10l5 5 5-5z" }), x.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Kt() {
|
|
1792
1792
|
try {
|
|
1793
1793
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1794
1794
|
}));
|
|
1795
1795
|
} catch {
|
|
1796
1796
|
}
|
|
1797
|
-
return (
|
|
1797
|
+
return (Kt = function() {
|
|
1798
1798
|
return !!o;
|
|
1799
1799
|
})();
|
|
1800
1800
|
}
|
|
1801
1801
|
$t.propTypes = {};
|
|
1802
1802
|
var Se = function() {
|
|
1803
1803
|
function o() {
|
|
1804
|
-
return A(this, o), e = this, n = arguments, t = O(t = o), W(e,
|
|
1804
|
+
return A(this, o), e = this, n = arguments, t = O(t = o), W(e, Kt() ? Reflect.construct(t, n || [], O(e).constructor) : t.apply(e, n));
|
|
1805
1805
|
var e, t, n;
|
|
1806
1806
|
}
|
|
1807
1807
|
return D(o, x.Component), E(o);
|
|
@@ -1827,13 +1827,13 @@ function U(o) {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
return o;
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function qt() {
|
|
1831
1831
|
try {
|
|
1832
1832
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1833
1833
|
}));
|
|
1834
1834
|
} catch {
|
|
1835
1835
|
}
|
|
1836
|
-
return (
|
|
1836
|
+
return (qt = function() {
|
|
1837
1837
|
return !!o;
|
|
1838
1838
|
})();
|
|
1839
1839
|
}
|
|
@@ -1850,7 +1850,7 @@ p(Se, "defaultProps", { cellDataGetter: function(o) {
|
|
|
1850
1850
|
var Oe = function() {
|
|
1851
1851
|
function o(e) {
|
|
1852
1852
|
var t, n, r, l;
|
|
1853
|
-
return A(this, o), n = this, l = [e], r = O(r = o), (t = W(n,
|
|
1853
|
+
return A(this, o), n = this, l = [e], r = O(r = o), (t = W(n, qt() ? Reflect.construct(r, l || [], O(n).constructor) : r.apply(n, l))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
|
|
1854
1854
|
}
|
|
1855
1855
|
return D(o, x.PureComponent), E(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1856
1856
|
this.Grid && this.Grid.forceUpdate();
|
|
@@ -2147,7 +2147,7 @@ function an(o) {
|
|
|
2147
2147
|
return v;
|
|
2148
2148
|
}, [n, e]), [s, c] = pe(null);
|
|
2149
2149
|
je(() => {
|
|
2150
|
-
import("./
|
|
2150
|
+
import("./S9fgUO7h8YgZxoKH.js").then((u) => {
|
|
2151
2151
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2152
|
});
|
|
2153
2153
|
}, [a]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Workbook as J } from "@sheetxl/sdk";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { memo as O, useState as r, useRef as M, useReducer as A, useMemo as E } from "react";
|
|
3
|
-
import { aL as
|
|
3
|
+
import { aL as W, U as k, aM as Q, aN as U, w as x, aA as V, aB as q, B as n, aO as G, aP as J, ak as f, aQ as K, aR as X, ag as y, ah as b, ai as w, aS as S } from "./2-xJlw77WsCoyz09.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
10
|
const te = O((C) => {
|
|
11
|
-
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l =
|
|
12
|
-
|
|
11
|
+
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l = W, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = M(null), [Y, B] = A((e) => e + 1, 0), [H, { width: Z }] = k();
|
|
12
|
+
Q(c);
|
|
13
13
|
const o = T ?? c.context(), t = o.table(), [P, I] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), j = E(() => t?.getName() ?? "", [t]);
|
|
14
|
-
|
|
14
|
+
U(o.table(), { onAnchorCoordsChange(e) {
|
|
15
15
|
I(o.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
B();
|
|
@@ -22,15 +22,15 @@ const te = O((C) => {
|
|
|
22
22
|
o?.table().resize(e.at(0));
|
|
23
23
|
}, [o]);
|
|
24
24
|
let u = null;
|
|
25
|
-
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(
|
|
25
|
+
return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(V, { ref: h, title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: v, onHide: R, onFocus: () => g(!0), onBlur: (e) => {
|
|
26
26
|
h?.current?.contains(e.relatedTarget) || g(!1);
|
|
27
|
-
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(
|
|
27
|
+
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(q, { dividers: !0, ref: H, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(G, { formName: "name", defaultInput: j, value: t?.getName() ?? "No table", onChangeInput: L, onValidate: (e) => {
|
|
28
28
|
t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
|
|
29
29
|
}, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
30
30
|
m || e.target?.select(), p(!0);
|
|
31
|
-
} }), a(
|
|
31
|
+
} }), a(J, { formName: "range", value: P, onChangeInput: z, resolvedAddress: o.getNames().getRanges.bind(o.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
|
|
32
32
|
m || e.target?.select(), p(!0);
|
|
33
|
-
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(f, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a(
|
|
33
|
+
} })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(f, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a(K, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
|
|
34
34
|
t.updateStyleOptions(e);
|
|
35
35
|
}, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
|
|
36
36
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as E, useMemo as M, useState as x, useCallback as j } from "react";
|
|
3
|
-
import { w as r,
|
|
3
|
+
import { w as r, v as S, B as V, F as $, T as z, a as h, ay as C } from "./2-xJlw77WsCoyz09.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -19,7 +19,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
|
-
}, []), [e,
|
|
22
|
+
}, []), [e, k] = x(g), [v, P] = x(!1), f = j(async (n, t) => null, []), b = r(async (n) => {
|
|
23
23
|
const t = e === "" ? [] : e.split(`
|
|
24
24
|
`);
|
|
25
25
|
if (n !== s) {
|
|
@@ -29,7 +29,7 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
29
29
|
}
|
|
30
30
|
u?.(n, n === s, n === c), p?.();
|
|
31
31
|
}, [e, m, p, u, c, s]), D = r((n) => {
|
|
32
|
-
|
|
32
|
+
k(n.target.value), f(n.target.value, null);
|
|
33
33
|
}, [l]), I = r(async (n) => {
|
|
34
34
|
let t = await Promise.resolve(l?.(n));
|
|
35
35
|
try {
|
|
@@ -38,8 +38,8 @@ const G = ["Ok", "Cancel"], U = E((O) => {
|
|
|
38
38
|
}
|
|
39
39
|
return t ?? !0;
|
|
40
40
|
}, [l, e]);
|
|
41
|
-
return i(S, { title: (g ? "Edit" : "Insert") + " Comments", options: d, onDone: p, onOption: (n) =>
|
|
42
|
-
|
|
41
|
+
return i(S, { title: (g ? "Edit" : "Insert") + " Comments", options: d, onDone: p, onOption: (n) => b(n), onValidateOption: I, defaultOption: c, cancelOption: s, autoFocusSel: ".autoFocus", sx: { width: "480px", ...F }, ...T, children: i(V, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: i($, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(z, { label: "Comments", placeholder: "Enter a comment.", onFocus: (n) => {
|
|
42
|
+
v || n.target?.select(), P(!0);
|
|
43
43
|
}, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${h("#fff", C(5))}, ${h("#fff", C(5))})` } } }, value: e, onChange: D, onContextMenu: (n) => {
|
|
44
44
|
n.stopPropagation();
|
|
45
45
|
} }) }) }) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
|
|
3
3
|
import { ICell as c, IRange as R } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
5
|
-
import { C as ee } from "./
|
|
4
|
+
import { r as D, w as H, av as ue, U as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, T as _, a as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./2-xJlw77WsCoyz09.js";
|
|
5
|
+
import { C as ee } from "./DYZjOnD8WWQkCYuH.js";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -27,9 +27,9 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
27
27
|
if (h[d] === E) return d;
|
|
28
28
|
}
|
|
29
29
|
}, ze = oe((E) => {
|
|
30
|
-
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), $ = C(null), W = C(null), j = C(null), N = C(null),
|
|
30
|
+
const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), $ = C(null), W = C(null), j = C(null), N = C(null), U = (e, t) => {
|
|
31
31
|
t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
|
|
32
|
-
}, [
|
|
32
|
+
}, [G, I] = b(!1), [B, le] = b(!1), [f, M] = b(h), [J, V] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
|
|
33
33
|
if (!T) return;
|
|
34
34
|
const g = { ...o };
|
|
35
35
|
g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
|
|
@@ -39,11 +39,11 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
39
39
|
L(() => {
|
|
40
40
|
V(!1);
|
|
41
41
|
}, [o, B, f]);
|
|
42
|
-
const
|
|
42
|
+
const Q = H((e, t) => {
|
|
43
43
|
if (e.keyCode === ue.Enter) {
|
|
44
44
|
if (!o.findText) return;
|
|
45
45
|
let n = !0, S = !1;
|
|
46
|
-
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0),
|
|
46
|
+
e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), U(e, S ? N.current : j.current)) : U(e, n ? W.current : $.current), F(n, t, S, !1);
|
|
47
47
|
}
|
|
48
48
|
}, [o]), Y = C(null);
|
|
49
49
|
pe(() => {
|
|
@@ -52,18 +52,18 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
52
52
|
t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
|
|
53
53
|
const n = !(!v && a === void 0);
|
|
54
54
|
return n && M(n), t;
|
|
55
|
-
}),
|
|
55
|
+
}), X || Y.current?.focus();
|
|
56
56
|
}, [r, a, d, v]), L(() => {
|
|
57
57
|
f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
|
|
58
58
|
}, [f]), L(() => {
|
|
59
|
-
if (
|
|
59
|
+
if (G && s.current && o.findText === s.current.value) return s.current === document.activeElement || s.current.contains(document.activeElement) ? (s.current?.select(), void I(!1)) : void s.current.addEventListener("focus", () => {
|
|
60
60
|
s.current?.select(), I(!1);
|
|
61
61
|
}, { once: !0 });
|
|
62
|
-
}, [
|
|
62
|
+
}, [G, o]);
|
|
63
63
|
const [re, { width: Z }] = fe();
|
|
64
|
-
return i(ge, { ref: Y, title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: K, onFocus: () =>
|
|
65
|
-
|
|
66
|
-
}, PaperProps: { elevation:
|
|
64
|
+
return i(ge, { ref: Y, title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: K, onFocus: () => q(!0), onBlur: () => {
|
|
65
|
+
q(!1), V(!1);
|
|
66
|
+
}, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
|
|
67
67
|
if (e.key === "h" && e.ctrlKey) M(!0), s.current?.contains(document.activeElement) && u.current?.focus();
|
|
68
68
|
else if (e.key === "f" && e.ctrlKey) s.current?.focus();
|
|
69
69
|
else if (e.key === "c" && e.altKey) l((t) => {
|
|
@@ -101,12 +101,12 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
101
101
|
const n = { ...t };
|
|
102
102
|
return n.findOptions.useRegex = e, n;
|
|
103
103
|
});
|
|
104
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) =>
|
|
104
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => J ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => J ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
|
|
105
105
|
l((t) => {
|
|
106
106
|
const n = { ...t };
|
|
107
107
|
return n.findText = e.target.value, n;
|
|
108
108
|
});
|
|
109
|
-
}, onKeyDown: (e) =>
|
|
109
|
+
}, onKeyDown: (e) => Q(e, !1), onContextMenu: (e) => {
|
|
110
110
|
e.stopPropagation();
|
|
111
111
|
} }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
|
|
112
112
|
F(!1, !1);
|
|
@@ -119,7 +119,7 @@ const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
|
|
|
119
119
|
const n = { ...t };
|
|
120
120
|
return n.replaceText = e.target.value, n;
|
|
121
121
|
});
|
|
122
|
-
}, onKeyDown: (e) =>
|
|
122
|
+
}, onKeyDown: (e) => Q(e, !0), onContextMenu: (e) => {
|
|
123
123
|
e.stopPropagation();
|
|
124
124
|
} }), i(m, { onSelectToggle: (e) => {
|
|
125
125
|
F(!0, !0);
|