@sheetxl/studio-vanilla 0.4.7 → 0.4.9
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 +3 -3
- package/browser/cjs/{DPgVQdCYWI3fGYJ2.cjs → 3GhIDU8JK1oBJrCA.cjs} +2 -2
- package/browser/cjs/{D5I2M8yOTfapq6d7.cjs → 5hPVyVAXmITQCRAG.cjs} +2 -2
- package/browser/cjs/{C14PMFhYpGUhrvq1.cjs → 7PlrLPQx1lct0mdN.cjs} +1 -1
- package/browser/cjs/B4K6KuggSdXj-V8g.cjs +6 -0
- package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +12 -0
- package/browser/cjs/{Bgl5W-fCpnnnO3_F.cjs → B7eW1GQgFvphlLGY.cjs} +2 -2
- package/browser/cjs/{B0pcLInszgzhrjui.cjs → BQPFxJ77OaD_sBIX.cjs} +2 -2
- package/browser/cjs/{BC9xtBySc8rix4-F.cjs → Ba3O1f0NYbzEwNAd.cjs} +1 -1
- package/browser/cjs/{BC5f5sl2pjp8FYIk.cjs → BoojmbbjqixMVu2H.cjs} +2 -2
- package/browser/cjs/{D8WkJStmUKY23vEC.cjs → CSGVl8EBCRhxcFm1.cjs} +1 -1
- package/browser/cjs/CalnqtYH48_x2rcI.cjs +301 -0
- package/browser/cjs/{Clp5qh0fApIxsE35.cjs → CjDsO4sQWUHbIX1N.cjs} +2 -2
- package/browser/cjs/{DE5MhliNUlcqzd9C.cjs → CsCaFaiySArzEfdH.cjs} +3 -3
- package/browser/cjs/{C73dxZSAw05vqEtJ.cjs → D6AUUY9awlTRjjqd.cjs} +1 -1
- package/browser/cjs/{DDFDUxH5Mew5rcdT.cjs → D8lN5Mv3J4SwSpLP.cjs} +1 -1
- package/browser/cjs/{HCih5BN1MZGUuqGG.cjs → D9RQ5oYv7U38wSI7.cjs} +6 -6
- package/browser/cjs/{CQAkk0gbl342HFs-.cjs → DCd2rPNFkSHDaRcM.cjs} +1 -1
- package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +6 -0
- package/browser/cjs/{DNQqhDlfagjGC2sO.cjs → DIXyMJKaeCGuWxjZ.cjs} +2 -2
- package/browser/cjs/{BKUcozo2wEv2ay2w.cjs → Dmw7xaaV85s72QZe.cjs} +1 -1
- package/browser/cjs/{DGlLxziqSNTW0c6v.cjs → DzCXPcqV1oKbCcLO.cjs} +1 -1
- package/browser/cjs/{BBuQH_geF9Xg5HPn.cjs → EoaX6dPoS-Mb-ITO.cjs} +4 -4
- package/browser/cjs/Y6OgkWqbIB761o5q.cjs +6 -0
- package/browser/cjs/{DUrNYTSMA5KQTG77.cjs → gbABnN2zW1kHo3_I.cjs} +8 -8
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DyQffD3gRWH5-nOp.cjs → kfV5Cli9oE9IsCtx.cjs} +2 -2
- package/browser/cjs/{00LGtBNvHHqHMD_7.cjs → nURb18uhj9rScsHa.cjs} +2 -2
- package/browser/esm/{t16pmig4Yv-yOK3J.mjs → 2NQDbhor1Nuzndgq.mjs} +1 -1
- package/browser/esm/{IhAvisOcXUTXM4fs.mjs → 4aC35Q2XPOwifBRR.mjs} +1 -1
- package/browser/esm/{fLUOP3GBZp9qFVpK.mjs → 5zFDFBAgT-aPgQQ0.mjs} +1 -1
- package/browser/esm/{DQj7TIf3hkBsvgpu.mjs → B3I_TrFN_pAK5Mdh.mjs} +2 -2
- package/{cdn/assets/CSnM9G1CZ81wivjo.js → browser/esm/BD9GKsR-k4aEK2tx.mjs} +1 -1
- package/browser/esm/{DCLOetlYWQ4f6912.mjs → BQpsMTJvguy6LMIq.mjs} +5 -5
- package/browser/esm/{BssMWXVsjFZUIbK_.mjs → BfCWogOnq8R-c3dD.mjs} +2 -2
- package/browser/esm/BkGQPKMRPIVUVTLO.mjs +944 -0
- package/{cdn/assets/CzeybhBUMRs64-Mp.js → browser/esm/C81J50HcankGTOIj.mjs} +1 -1
- package/browser/esm/{CxesFvTfE_FHHeOa.mjs → CO_s27056nua6qzN.mjs} +1 -1
- package/browser/esm/{DnEhhjrb_iK5ugui.mjs → CPEjlDUTxckVS1rp.mjs} +2 -2
- package/browser/esm/{DE0B_sDQJ2uyFacb.mjs → CY7astxzrfb7uZqy.mjs} +26 -26
- package/{cdn/assets/CGL2dNgGZEziA1cG.js → browser/esm/CZVzRhflTpwAAl1o.mjs} +8 -8
- package/browser/esm/{BepIgOjpel6ND31E.mjs → CaWZXQsmKl4hTNq5.mjs} +16 -16
- package/{cdn/assets/CHsVgElx78EEmCPY.js → browser/esm/CxcLNXXaxyFyUzyb.mjs} +1 -1
- package/{cdn/assets/Cjl-eP68w6LXe0zR.js → browser/esm/D0icxW0WVNoeVRLH.mjs} +5 -5
- package/browser/esm/{f7jo5w0h4-vNZtjZ.mjs → DFQvqk5r1uf_z0h_.mjs} +10886 -10877
- package/{cdn/assets/CNdoHnLQKWWUIXFN.js → browser/esm/DRL5s4S0fIXi1aU7.mjs} +2 -2
- package/browser/esm/{B6OcmPVBCjTZiEO8.mjs → DRmeb1VC4YCzKKWd.mjs} +1 -1
- package/browser/esm/{D03_7nbUXeSyElQe.mjs → DTwhl4v5YnZrUSgI.mjs} +5 -5
- package/browser/esm/{C8PrD3vZULKFp7HL.mjs → DmpPAs6w-XNWGTIN.mjs} +3 -3
- package/{cdn/assets/D7ubLFCJK5RzTJOF.js → browser/esm/Dx-GS3XDBkRaMNG-.mjs} +20 -20
- package/browser/esm/{CrnqRK0Y_R59nkb0.mjs → V5CA7xqGOB7-Qx4Y.mjs} +6 -6
- package/browser/esm/{DJBqN2bozSAMAOUl.mjs → gsfI5CGYr7LCQxRx.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{bMPbHealpRV0cNsU.mjs → tOBqasyBAnd7O4qE.mjs} +5 -5
- package/browser/esm/{CdbRlOwSBEqFzw-Q.mjs → tPrnEcHW_czJDZOT.mjs} +8 -8
- package/cdn/assets/{t16pmig4Yv-yOK3J.js → 2NQDbhor1Nuzndgq.js} +1 -1
- package/cdn/assets/{IhAvisOcXUTXM4fs.js → 4aC35Q2XPOwifBRR.js} +1 -1
- package/cdn/assets/{fLUOP3GBZp9qFVpK.js → 5zFDFBAgT-aPgQQ0.js} +1 -1
- package/cdn/assets/{B-7gpSVkQWekyOlk.js → B0w_moB3pDJd-a6V.js} +5 -5
- package/{browser/esm/CSnM9G1CZ81wivjo.mjs → cdn/assets/BD9GKsR-k4aEK2tx.js} +1 -1
- package/{browser/esm/C3vvXeb_u4RQddV1.mjs → cdn/assets/BJVOhUH_XL03H6ZD.js} +8 -8
- package/cdn/assets/{BWyjsqZ8W7LRq-2H.js → BWJOkXXB6Tr-jYUS.js} +16 -16
- package/cdn/assets/{DPdbTtHJ9qzLqsDN.js → BapFqJyAb3cblvJM.js} +2 -2
- package/cdn/assets/{CRv8MUg-_zmoKFIt.js → Bg88bG-JM9EHeyYX.js} +2 -2
- package/{browser/esm/CzeybhBUMRs64-Mp.mjs → cdn/assets/C81J50HcankGTOIj.js} +1 -1
- package/cdn/assets/{CxesFvTfE_FHHeOa.js → CO_s27056nua6qzN.js} +1 -1
- package/cdn/assets/{BFDNPYBEj2T1cP38.js → CXa9u-7w14dyPYxk.js} +3 -3
- package/cdn/assets/{ChAbZK53mfolDCTD.js → CkcETdiKdTsZAzma.js} +6 -6
- package/{browser/esm/CHsVgElx78EEmCPY.mjs → cdn/assets/CxcLNXXaxyFyUzyb.js} +1 -1
- package/cdn/assets/{DucOHAWR0Drvzaz2.js → D0PaU6F-TNaTWj-a.js} +5 -5
- package/cdn/assets/{BKMHTFN6LTvRZnlS.js → D4hoypx6_sZbvrC_.js} +2 -2
- package/cdn/assets/{BPKaeP61qs19hdJx.js → D5exf1RvCqvUoJ3X.js} +26 -26
- package/cdn/assets/{CUqr4I0B5RzMvyfH.js → DKLitAhDj5Ibh2cc.js} +11896 -11887
- package/{browser/esm/CNdoHnLQKWWUIXFN.mjs → cdn/assets/DRL5s4S0fIXi1aU7.js} +2 -2
- package/cdn/assets/{B6OcmPVBCjTZiEO8.js → DRmeb1VC4YCzKKWd.js} +1 -1
- package/{browser/esm/CnL3YzjxBxFK7qfL.mjs → cdn/assets/DYkBvlMlZjOASUJs.js} +5 -5
- package/{browser/esm/DfczJdsv--tsazCR.mjs → cdn/assets/ON5--a75QdEU99y_.js} +20 -20
- package/cdn/assets/{CB496hBmWELULf2f.js → PIZDjyqIbvmHXs1T.js} +5 -5
- package/cdn/assets/{CvfZjHPPpLdHBSRa.js → TOkIJFYhNg78FdJa.js} +2 -2
- package/cdn/assets/{D8lNg-ZFq3SVt0qa.js → b9dlFmoFz8tJhV0Z.js} +8 -8
- package/cdn/assets/d1PG-QPA1GcQ_RuH.js +944 -0
- package/cdn/index.js +24 -24
- package/cdn/loader.js +2 -2
- package/package.json +3 -3
- package/types/index.d.ts +8 -8
- package/browser/cjs/BO0CySmcqi-pkV4p.cjs +0 -6
- package/browser/cjs/BoG6Gi-uqIbSJdRv.cjs +0 -12
- package/browser/cjs/DD6f8EPYnuPb41GO.cjs +0 -6
- package/browser/cjs/DsuUTTVqL23hXXxq.cjs +0 -6
- package/browser/cjs/Dva96jeug6x2xYZm.cjs +0 -301
- package/browser/esm/6w21A0XUkGBQu8-3.mjs +0 -940
- package/cdn/assets/CHZP9CrMHXri-Ghe.js +0 -940
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C, { memo as ne, useState as _, useRef as m, useCallback as re, useEffect as S } from "react";
|
|
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.9
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { memo as G, useState as x, useCallback as O, useEffect as H, useMemo as w } from "react";
|
|
3
3
|
import { NumberFormat as n } from "@sheetxl/sdk";
|
|
4
|
-
import {
|
|
4
|
+
import { w as l, av as K, b as q, B as P, F as S, aw as A, ax as J, a as p, ay as c, T as Q, $, az as U } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as to, g as oo, u as no, s as ro, n as io, aT as Q, o as lo, q as so, aU as ao, aV as co, a as Z, aA as uo, aB as ho, av as wt, J 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, E as ye, b0 as To, b1 as zo, b2 as K, b3 as Io, b4 as V, b5 as Po } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
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 {
|
|
5
|
+
import { h as N } from "./BkGQPKMRPIVUVTLO.mjs";
|
|
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.9
|
|
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 q(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 ? q(n.style, t) : n.style;
|
|
48
48
|
else {
|
|
49
49
|
const { variants: l, ...i } = n;
|
|
50
|
-
r = t ? K(
|
|
50
|
+
r = t ? q(K(i), t) : i;
|
|
51
51
|
}
|
|
52
52
|
return xt(o, n.variants, [r], t);
|
|
53
53
|
}
|
|
54
|
-
return n?.isProcessed ? t ? K(
|
|
54
|
+
return n?.isProcessed ? t ? q(K(n.style), t) : n.style : t ? q(K(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 ? K(
|
|
63
|
+
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? q(K(i.style(r)), n) : i.style(r))) : t.push(n ? q(K(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: K(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 = K(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 ? q(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 qe(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: qe(qe({}, 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 Ke(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 qe(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 ? Ke(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)) : Ke(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 qo = (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
|
+
}, Ko = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
884
884
|
F.clearTimeout(o);
|
|
885
|
-
}, tt =
|
|
885
|
+
}, tt = qo, Xo = Ko, 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 qt() {
|
|
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 (qt = 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, qt() ? 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 Kt() {
|
|
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 (Kt = 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, Kt() ? 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("./CxcLNXXaxyFyUzyb.mjs").then((u) => {
|
|
2151
2151
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2152
|
});
|
|
2153
2153
|
}, [a]);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { memo as N, useState as i, useCallback as T } from "react";
|
|
3
|
+
import { w as k, b as j, B as v, aP as y, at as B, au as F } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
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.9
|
|
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
|
-
const H = ["Ok", "Cancel"], A =
|
|
11
|
-
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C =
|
|
10
|
+
const H = ["Ok", "Cancel"], A = N((u) => {
|
|
11
|
+
const { tableOptions: e, context: p, onOption: c, onValidateOption: I, onDone: r, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: m, ...b } = u, [h, x] = i(!1), [n, O] = i(() => e?.hasHeader ?? !1), [l, f] = i(() => e?.ranges ?? null), C = k((a) => {
|
|
12
12
|
const g = { ...e, hasHeader: n, ranges: l };
|
|
13
13
|
c?.(a, a === s, a === t), r?.({ option: a, tableOptions: g });
|
|
14
|
-
}, [r, c, t, s, n, l, e]),
|
|
15
|
-
return o(
|
|
14
|
+
}, [r, c, t, s, n, l, e]), w = T(async (a, g) => null, []);
|
|
15
|
+
return o(j, { title: "Insert Table", options: d, onDone: C, onValidateOption: w, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...m }, ...b, children: D(v, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(y, { formName: "range", value: l, onChangeInput: (a) => f(a), resolvedAddress: p.getNames().getRanges.bind(p.getNames()), onFocus: (a) => {
|
|
16
16
|
h || a.target?.select(), x(!0);
|
|
17
17
|
} }), o(B, { control: o(F, { checked: n, onChange: () => O(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
|
|
18
18
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Workbook as y, IRange as
|
|
1
|
+
import { Workbook as y, IRange as k } 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.9
|
|
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.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn:
|
|
8
|
+
const E = async (a, p) => {
|
|
9
|
+
const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: f = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, u = await import("./BD9GKsR-k4aEK2tx.mjs").then((s) => s.p);
|
|
10
10
|
if (!a) throw new Error("workbook must be specified");
|
|
11
11
|
let t = null;
|
|
12
12
|
if (r === null ? t = a.getSelectedSheet() : typeof r == "number" ? t = a.getSheets().search()[r] : typeof r == "string" && (t = a.getSheets().getByName(r)), !t) throw new Error("invalid sheetKey specified");
|
|
@@ -14,8 +14,8 @@ const k = async (a, p) => {
|
|
|
14
14
|
const d = [];
|
|
15
15
|
let e = null, n = t.getUsedRange({ excludeHidden: h });
|
|
16
16
|
if (!n) throw new Error("Nothing to export");
|
|
17
|
-
if (!i || !
|
|
18
|
-
const s = i ? n.getRowStart() : 0, l =
|
|
17
|
+
if (!i || !f) {
|
|
18
|
+
const s = i ? n.getRowStart() : 0, l = f ? n.getColumnStart() : 0;
|
|
19
19
|
n = n.getOffsetTo(s, l);
|
|
20
20
|
}
|
|
21
21
|
n.forEach((s, l) => {
|
|
@@ -24,23 +24,23 @@ const k = async (a, p) => {
|
|
|
24
24
|
const S = x.toTextUnformatted() ?? "";
|
|
25
25
|
e.push(S);
|
|
26
26
|
}, { includeEmpty: !0, address: null }), e && d.push(e);
|
|
27
|
-
const o = { ...m }, g =
|
|
27
|
+
const o = { ...m }, g = u.unparse(d, o);
|
|
28
28
|
return new TextEncoder().encode(g).buffer;
|
|
29
|
-
},
|
|
30
|
-
const { papaParseConfig: i, setValuesOptions:
|
|
31
|
-
let
|
|
32
|
-
const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation:
|
|
29
|
+
}, b = async (a, p) => {
|
|
30
|
+
const { papaParseConfig: i, setValuesOptions: f, createWorkbookOptions: h } = p ?? {}, r = await import("./BD9GKsR-k4aEK2tx.mjs").then((o) => o.p), m = new TextDecoder().decode(a);
|
|
31
|
+
let u = -1;
|
|
32
|
+
const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: k.Orientation.Row }), d = p?.onProgress;
|
|
33
33
|
let e = 0;
|
|
34
34
|
const n = { ...i, transform: (o, g) => {
|
|
35
35
|
i?.transform && (o = i.transform(o, g));
|
|
36
36
|
const s = g;
|
|
37
|
-
s === 0 &&
|
|
37
|
+
s === 0 && u++;
|
|
38
38
|
let l = o ?? "";
|
|
39
|
-
return c.pushAt(
|
|
39
|
+
return c.pushAt(u, s, l), e++, e % 1e5 == 0 && d?.(e), o;
|
|
40
40
|
} };
|
|
41
|
-
return r.parse(m, n).data, c.apply({ textParser: !0, ...
|
|
41
|
+
return r.parse(m, n).data, c.apply({ textParser: !0, ...f }), t;
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
b as fromBufferCSV,
|
|
45
|
+
E as toBufferCSV
|
|
46
46
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* 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 Q, Q as W, aM as k, aN as V, w as x, aA as q, aB as G, B as n, aO as J, aP as K, ak as f, aQ as U, aR as X, ag as y, ah as b, ai as w, aS as S } from "./DFQvqk5r1uf_z0h_.mjs";
|
|
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.9
|
|
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:
|
|
11
|
+
const { title: N, onHide: R, autoFocusSel: v = ".range-input input", context: T, notifier: l = Q, 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 }] = W();
|
|
12
12
|
k(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
|
+
V(o.table(), { onAnchorCoordsChange(e) {
|
|
15
15
|
I(o.getNames().getRanges(e.getRange()));
|
|
16
16
|
}, onProtectedChange(e) {
|
|
17
17
|
B();
|
|
@@ -22,7 +22,7 @@ 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(q, { title:
|
|
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(q, { 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
27
|
}, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(G, { 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(J, { 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);
|