@sheetxl/studio-mui 0.4.13 → 0.4.15
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/BNHQPLsVdLmkPgyG.cjs +6 -0
- package/browser/cjs/BUU_z9x81l1Qnv1t.cjs +6 -0
- package/browser/cjs/BX8hkPMsPd9PSv0Z.cjs +161 -0
- package/browser/cjs/BknKSPzyXctJohHb.cjs +6 -0
- package/browser/cjs/Blfxp7Ec3Yjx3gNU.cjs +6 -0
- package/browser/cjs/BqFEcpPZjpwULlZk.cjs +6 -0
- package/browser/cjs/C-pPuqiWtgMU4NgZ.cjs +15 -0
- package/browser/cjs/C9eqE9OnPkiI-5Zd.cjs +7 -0
- package/browser/cjs/CB6DGRkCA3BLDEFr.cjs +6 -0
- package/browser/cjs/CO4rZgb0ObTZh6NO.cjs +6 -0
- package/browser/cjs/CU900NraHPDHMGJt.cjs +18 -0
- package/browser/cjs/Cpo-h2pMpScosT7r.cjs +6 -0
- package/browser/cjs/Cq2L49XjSKiIAsND.cjs +11 -0
- package/browser/cjs/D9X3UXVH6b_NJFeo.cjs +12 -0
- package/browser/cjs/DZJO-_8PnMFRZMpg.cjs +6 -0
- package/browser/cjs/DmCCEKhedSOg163M.cjs +6 -0
- package/browser/cjs/DpZ5HlIMG95q2uIe.cjs +96 -0
- package/browser/cjs/DwLcsRl4-LumKl6l.cjs +42 -0
- package/browser/cjs/Dy2vYVhrEqTHdzfD.cjs +11 -0
- package/browser/cjs/Gj8MlEhOCg_o7idM.cjs +6 -0
- package/browser/cjs/IllnWqWVClWDW1ot.cjs +6 -0
- package/browser/cjs/J3xq71qTV9LqCUzu.cjs +145 -0
- package/browser/cjs/X9sJMKafafBPpNpK.cjs +16 -0
- package/browser/cjs/index.cjs +4 -10
- package/browser/cjs/klnhoS0cqBpCC5fo.cjs +7 -0
- package/browser/esm/BQNKKCtIvfOMph3T.mjs +2250 -0
- package/browser/esm/BiQfhG8JMHeWuT63.mjs +1672 -0
- package/browser/esm/Btyp6us1Vzz3ZfHk.mjs +13391 -0
- package/browser/esm/Bvr3QlWdnOSnskWL.mjs +392 -0
- package/browser/esm/CYpvNksOw1PyhLpA.mjs +52 -0
- package/browser/esm/CcZUaOkODU7h0onP.mjs +25 -0
- package/browser/esm/CnXUhdLB8blNUvSr.mjs +84 -0
- package/browser/esm/CwjVlrJJqEGZX6q2.mjs +52 -0
- package/browser/esm/D0v3VaJtA3LjHpWR.mjs +20816 -0
- package/browser/esm/D4DvAg7aaaWl0TPV.mjs +1467 -0
- package/browser/esm/DAZNeiMI9sOM-xd8.mjs +1366 -0
- package/browser/esm/DGUm6rEOgO8WrVtT.mjs +23 -0
- package/browser/esm/DGoy2q9hDB7kive6.mjs +44 -0
- package/browser/esm/DSCE3cCea5d5Ip-N.mjs +1703 -0
- package/browser/esm/DrTLuc1VQWQfDAej.mjs +59 -0
- package/browser/esm/DuzycndVID_eag8V.mjs +1352 -0
- package/browser/esm/FZoe4QJ2ecSD1pjB.mjs +43 -0
- package/browser/esm/HI5oLhcn8kfiky1k.mjs +3803 -0
- package/browser/esm/T2YlNqs-LGJBm08C.mjs +46 -0
- package/browser/esm/UCJVaz3qX1u53mgI.mjs +640 -0
- package/browser/esm/UWejV3W_nMwWqnxY.mjs +48 -0
- package/browser/esm/VpP_qw0lmgCaHdHR.mjs +153 -0
- package/browser/esm/YS19x3zzRUKQqXu_.mjs +2410 -0
- package/browser/esm/index.mjs +84 -8
- package/browser/esm/jqoS02EUPE2WEY1t.mjs +424 -0
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{BO6cKQ_efCO2YTyW.mjs → 3htalFC0z5xbRnmH.mjs} +1 -1
- package/node/esm/{DKho7vhsoPr3NuMl.mjs → B-pzKiKMkbB9Es-9.mjs} +1 -1
- package/node/esm/{BZ8BYhQCAcmtqV_l.mjs → BFxzGj5sPFwrklFi.mjs} +3 -3
- package/node/esm/{DvKUmpzXvELOJbAq.mjs → BGYSS0lvjSMTtreq.mjs} +1 -1
- package/node/esm/{BxJ8RdpZW49RjtqB.mjs → BGZpuIQG7RsGY_HH.mjs} +1 -1
- package/node/esm/{BEWR_Oinb-P8gswu.mjs → BTnlaEz7yZqa7QHP.mjs} +1 -1
- package/node/esm/{DW7i1Qv4kcmwOTvD.mjs → BfUEFSGuAZXw2fvO.mjs} +1 -1
- package/node/esm/{BqcpB9wQAjq0QKR1.mjs → BiJ5CZBAxg4-QDHh.mjs} +1 -1
- package/node/esm/{nmVSg6Qpwj9V1oA0.mjs → Bnkt1wiWaLEq8xla.mjs} +1 -1
- package/node/esm/{-mcJjjdCwl8lh-eg.mjs → BwbOSLs2gcxOaV0i.mjs} +1 -1
- package/node/esm/{RpUFmc_WL9-PMYhx.mjs → CAWLE2N0nA-FjUkH.mjs} +1 -1
- package/node/esm/{uAAAbPd_k3kmgO5f.mjs → CSnI8PJEgxEQEj1B.mjs} +1 -1
- package/node/esm/{VnhwCsWDUmo5-K5N.mjs → CvYpf-Km1Rvg15q4.mjs} +1 -1
- package/node/esm/{BqsJ9biuGwjU2xgY.mjs → CxhzSvAqksnasp3g.mjs} +1 -1
- package/node/esm/{CdLN7JEivNllaQ6w.mjs → DCrdGvQ_vOB2o-ca.mjs} +1 -1
- package/node/esm/{CfO2Xok0ch8kylzr.mjs → DhGXQOOW9FBpgCqI.mjs} +1 -1
- package/node/esm/{CsPaYpANdd8Rpel-.mjs → DkhnVkboeZsdMJxH.mjs} +1 -1
- package/node/esm/{4WfRn0Og_yApP_Q8.mjs → DnMRqYWKDGXlNm42.mjs} +1 -1
- package/node/esm/{CQ1mTChRFSKFU2O1.mjs → DsS5U5rJ5tNVEGXs.mjs} +1 -1
- package/node/esm/{CcOchU9ZOmdG4JFr.mjs → DuyHq4Fs-_RQkwF_.mjs} +1 -1
- package/node/esm/{o-JVx3HFrRjVjKmi.mjs → FzVegyt0upYkLobF.mjs} +2 -2
- package/node/esm/{BPG7zfcXK20urqr_.mjs → imk332niB0MxWuGl.mjs} +5 -5
- package/node/esm/index.mjs +11 -11
- package/package.json +8 -8
- package/browser/cjs/34mwIxXhbXYv5xsc.cjs +0 -7
- package/browser/cjs/3OIgTi54FC0IBzyK.cjs +0 -7
- package/browser/cjs/B-Aq2h8aSDrc_0iZ.cjs +0 -7
- package/browser/cjs/BDhT8qcsUqUILki7.cjs +0 -7
- package/browser/cjs/BKJsMQHem8u-jMiR.cjs +0 -7
- package/browser/cjs/BO7LEbRChpLg-xKv.cjs +0 -7
- package/browser/cjs/BZR-qDCIYdiDtD-U.cjs +0 -7
- package/browser/cjs/BfE1_C2EpBrmB7bt.cjs +0 -7
- package/browser/cjs/Brij8vl9GntSQBer.cjs +0 -7
- package/browser/cjs/C61z_849Y2mg6eYL.cjs +0 -7
- package/browser/cjs/CaKjImRkCm3-QSAI.cjs +0 -7
- package/browser/cjs/Cw7iXqLfwZMRGb3J.cjs +0 -7
- package/browser/cjs/CwwItA5xvSx0QgDn.cjs +0 -7
- package/browser/cjs/DPTcPoZ3PiOOW7lp.cjs +0 -7
- package/browser/cjs/DhmN913n5MBAZsij.cjs +0 -7
- package/browser/cjs/DhoDW4ohnPkwiE_o.cjs +0 -7
- package/browser/cjs/Dj_PjsvImW3tjX0i.cjs +0 -7
- package/browser/cjs/Dl4WPIJFTvpCXOs3.cjs +0 -7
- package/browser/cjs/QCtfu4qn-ovJa_wL.cjs +0 -7
- package/browser/cjs/VQ4Cuzvkmtel1iE_.cjs +0 -7
- package/browser/cjs/VTMW1yjPzEJGyBmh.cjs +0 -7
- package/browser/cjs/hY59MepmKCIoN0hM.cjs +0 -7
- package/browser/cjs/pKp_fof7vGupYAM2.cjs +0 -7
- package/browser/cjs/t-9gaLqrOnGiw-3T.cjs +0 -7
- package/browser/esm/5U4XS5qxb3oJ33qK.mjs +0 -7
- package/browser/esm/BPMMuKIe5xb3-D8V.mjs +0 -7
- package/browser/esm/BXartMrqQuAXu0Qz.mjs +0 -7
- package/browser/esm/Bc8N72T3wtTApPEG.mjs +0 -7
- package/browser/esm/BjoQXBQuDry5Fgc_.mjs +0 -7
- package/browser/esm/BlUq84tk9v01SQgx.mjs +0 -7
- package/browser/esm/C5iuJTeAtknnUEIE.mjs +0 -7
- package/browser/esm/CN67iG3xuQhXAPad.mjs +0 -7
- package/browser/esm/CQgUOqCEwTc61uuT.mjs +0 -7
- package/browser/esm/Cq1DtQcbtmTtKOc4.mjs +0 -7
- package/browser/esm/Cqz35dsi-gZArS0S.mjs +0 -7
- package/browser/esm/D9wzPAaUYfW5yKFN.mjs +0 -7
- package/browser/esm/DRRzJ8Ep6_Tyd6ne.mjs +0 -7
- package/browser/esm/DSGJzNzS8OeMxUW1.mjs +0 -7
- package/browser/esm/DSIpyed_o2mrjd0r.mjs +0 -7
- package/browser/esm/DWgrVUwlK4kwFJn-.mjs +0 -7
- package/browser/esm/Dr6QLJSwckbF9K_u.mjs +0 -7
- package/browser/esm/DuSF-rjIFFvyCoo8.mjs +0 -7
- package/browser/esm/EiBc8VBUeU8VXEhw.mjs +0 -7
- package/browser/esm/R3CPiIXdp_rdc-Bw.mjs +0 -7
- package/browser/esm/eXqnYk6V-QI6pGI5.mjs +0 -7
- package/browser/esm/hdx26DrfopUuM4j1.mjs +0 -7
- package/browser/esm/oXfsh9SiDjQuu2ZE.mjs +0 -7
- package/browser/esm/zBIGDTI8z3bRbFxO.mjs +0 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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.
|
|
6
6
|
*/
|
|
7
7
|
import { e as t } from "./index.mjs";
|
|
8
|
-
import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./
|
|
8
|
+
import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./imk332niB0MxWuGl.mjs";
|
|
9
9
|
import { IFont as a, IAutoFilter as c, Sort as u, IRange as h, AddressUtils as p, IFill as g, IStyle as d, ITextFrame as m, FormulaError as b, IBorder as f } from "@sheetxl/sdk";
|
|
10
10
|
class A {
|
|
11
11
|
constructor(t2) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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.
|
|
@@ -900,14 +900,14 @@ class wt {
|
|
|
900
900
|
const vt = (t2, e2, s2) => {
|
|
901
901
|
if (t2[0].value[0] === t2[1].value[0]) return e2;
|
|
902
902
|
}, St = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, Ct = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (t2, h2) => {
|
|
903
|
-
const { password: f2, onWarning: m2, createWorkbookOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./
|
|
903
|
+
const { password: f2, onWarning: m2, createWorkbookOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./Bnkt1wiWaLEq8xla.mjs"), x2 = import("./FzVegyt0upYkLobF.mjs");
|
|
904
904
|
let w2 = null;
|
|
905
905
|
try {
|
|
906
906
|
w2 = new DOMParser();
|
|
907
907
|
} catch (t3) {
|
|
908
908
|
}
|
|
909
909
|
let v2 = null;
|
|
910
|
-
w2 || (v2 = import("./
|
|
910
|
+
w2 || (v2 = import("./BGZpuIQG7RsGY_HH.mjs").then((t3) => t3.i));
|
|
911
911
|
let S2 = null, C2 = null, k2 = null;
|
|
912
912
|
try {
|
|
913
913
|
const t3 = await Promise.all([b2, x2, v2]);
|
|
@@ -1316,7 +1316,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1316
1316
|
}, A2), a3 = ht(h4, P2), c3 = await (async (t6, e2 = 8388608) => {
|
|
1317
1317
|
await (async () => {
|
|
1318
1318
|
if ("undefined" == typeof ReadableStream) if ("undefined" == typeof window) {
|
|
1319
|
-
const { ReadableStream: t7 } = await import("./
|
|
1319
|
+
const { ReadableStream: t7 } = await import("./CAWLE2N0nA-FjUkH.mjs");
|
|
1320
1320
|
globalThis.ReadableStream = t7;
|
|
1321
1321
|
} else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
|
|
1322
1322
|
})();
|
|
@@ -1421,7 +1421,7 @@ const vt = (t2, e2, s2) => {
|
|
|
1421
1421
|
throw t3 instanceof p && (e2 = "Unable to open XLSX. There are too many rows or columns."), new Error(e2, { cause: t3 });
|
|
1422
1422
|
}
|
|
1423
1423
|
}, toBufferXLSX: async (s2, i2) => {
|
|
1424
|
-
const o2 = await import("./
|
|
1424
|
+
const o2 = await import("./Bnkt1wiWaLEq8xla.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
|
|
1425
1425
|
for (let i3 = 0; i3 < r2.sheets.length; i3++) {
|
|
1426
1426
|
const a2 = r2.sheets[i3], l2 = o2.utils.json_to_sheet([{}]);
|
|
1427
1427
|
o2.utils.book_append_sheet(n2, l2, a2.name);
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
|
|
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.
|
|
@@ -5261,7 +5261,7 @@ const Op = { x: 0, y: 0 }, Ap = O($((e15, t2) => {
|
|
|
5261
5261
|
n3.current?.stop(e16), o3 && v2(t3);
|
|
5262
5262
|
}, 180));
|
|
5263
5263
|
}, children: I(ee, { sx: { display: "flex", flexDirection: "column", whiteSpace: "pre-wrap", rowGap: (e16) => e16.spacing(o2 || n2 ? 1.5 : 0) }, children: [I(ee, { sx: { display: "flex", flexDirection: "column" }, children: [o2, n2] }), p2] }) }), L(ge, { sx: { paddingTop: (e16) => e16.spacing(1), paddingBottom: (e16) => e16.spacing(1), paddingLeft: (e16) => e16.spacing(1), paddingRight: (e16) => e16.spacing(1), backgroundColor: (e16) => ht(e16.palette.action.hover, 0.03) }, children: _2 })] }) }) });
|
|
5264
|
-
})), Bp = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Np, default: Np }, Symbol.toStringTag, { value: "Module" })), $p = P.lazy(() => Promise.resolve().then(() => Bp)), Wp = P.lazy(() => import("./
|
|
5264
|
+
})), Bp = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Np, default: Np }, Symbol.toStringTag, { value: "Module" })), $p = P.lazy(() => Promise.resolve().then(() => Bp)), Wp = P.lazy(() => import("./3htalFC0z5xbRnmH.mjs")), jp = O($((e15, t2) => {
|
|
5265
5265
|
const { command: n2, disabled: o2 = false, shortcut: r2, children: i2, ...l2 } = e15;
|
|
5266
5266
|
return kd(n2), L(Cp, { ref: t2, label: void 0 !== o2 ? n2?.label() : "", shortcut: void 0 !== r2 ? r2 : Array.isArray(n2?.shortcut()) ? n2?.shortcut()[0] : n2?.shortcut(), description: n2?.description(), disabled: o2, chips: n2?.tags(), componentDisabled: n2?.disabled(), ...l2, children: L("div", { style: { display: "flex", flex: "1 1 0%" }, children: i2 }) });
|
|
5267
5267
|
})), Up = O($((e15, t2) => {
|
|
@@ -11122,7 +11122,7 @@ const Tv = (e15, t2, n2 = null) => {
|
|
|
11122
11122
|
ye2.current = true;
|
|
11123
11123
|
const e16 = P.lazy(async () => {
|
|
11124
11124
|
try {
|
|
11125
|
-
const e17 = await import("./
|
|
11125
|
+
const e17 = await import("./CSnI8PJEgxEQEj1B.mjs");
|
|
11126
11126
|
return ye2.current = false, be2.current = true, C2([...S2]), e17;
|
|
11127
11127
|
} catch (e17) {
|
|
11128
11128
|
return console.warn(e17), ee2.current?.(false), null;
|
|
@@ -13094,7 +13094,7 @@ TS.displayName = "TabStrip";
|
|
|
13094
13094
|
const MS = (e15) => I("svg", { ...e15, viewBox: "0 0 48 48", children: [L("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), L("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), L("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), L("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), RS = Z(null), DS = () => {
|
|
13095
13095
|
const e15 = X(RS), [t2] = F(() => new r());
|
|
13096
13096
|
return B(() => e15 || t2, [e15]);
|
|
13097
|
-
}, LS = P.lazy(() => import("./
|
|
13097
|
+
}, LS = P.lazy(() => import("./DkhnVkboeZsdMJxH.mjs")), IS = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, zS = async (e15, t2, n2) => {
|
|
13098
13098
|
const o2 = e15.getModel();
|
|
13099
13099
|
if (!o2) return;
|
|
13100
13100
|
const r2 = await t2.languages.typescript.getTypeScriptWorker(), i2 = await r2(o2.uri), l2 = await i2.getNavigationTree(o2.uri.toString()), a2 = e15.getPosition();
|
|
@@ -13244,7 +13244,7 @@ const HS = O($((e15, t2) => {
|
|
|
13244
13244
|
}, []), R2 = A(null), D2 = Oo((e16, t3) => {
|
|
13245
13245
|
h2.current = { monaco: t3, editor: e16 }, C2(true), T2("Loading Types");
|
|
13246
13246
|
const n3 = w2.getScripts().getModules().search()[0]?.getSource() ?? "";
|
|
13247
|
-
e16.setValue(n3), import("./
|
|
13247
|
+
e16.setValue(n3), import("./BGYSS0lvjSMTtreq.mjs").then((e17) => e17.c).then((n4) => {
|
|
13248
13248
|
T2(""), n4.AutoTypings.create(e16, { shareCache: true, monaco: t3, onError: (e17) => {
|
|
13249
13249
|
"Not implemented yet" === e17 && (e17 = "Compile Errors"), console.warn("Error compiling types", e17);
|
|
13250
13250
|
} }).then(async (n5) => {
|
|
@@ -13429,7 +13429,7 @@ const HS = O($((e15, t2) => {
|
|
|
13429
13429
|
r2?.set(c2, s2);
|
|
13430
13430
|
const d2 = s2.toRGBA().toString();
|
|
13431
13431
|
l2?.set(d2, s2);
|
|
13432
|
-
}, KS = P.lazy(() => import("
|
|
13432
|
+
}, KS = P.lazy(() => import("./BwbOSLs2gcxOaV0i.mjs")), YS = O($((e15, t2) => {
|
|
13433
13433
|
const { selectedColor: n2 = null, previewColor: o2 = e15.selectedColor ?? null, recentColors: r2, schemeLookup: l2, disableAlpha: a2 = false, previewDebounceTime: s2 = 100, initialPanelType: c2, defaultButtonSize: d2 = 24, width: u2, onElementLoad: h2, onDone: p2, onEyeDropStart: m2, onEyeDropStop: g2, onPreviewColor: f2, onPreviewColorImmediate: y2, onSelectColor: b2, autoColor: w2, autoColorLabel: x2 = "Automatic", autoColorPosition: C2 = NS.Start, compareRGB: k2 = false, darkMode: E2 = false, ..._2 } = e15, T2 = o2 || n2, M2 = Oo(f2, [f2]), R2 = Oo(y2, [y2]), D2 = Oo(b2, [b2]), P2 = Oo(m2, [m2]), O2 = Oo(g2, [g2]), [A2, N2] = F(false), $2 = ft(), W2 = B(() => l2 || i.getDefaultSchemeLookup(), [l2]), j2 = B(() => {
|
|
13434
13434
|
const e16 = /* @__PURE__ */ new Map(), t3 = /* @__PURE__ */ new Map(), n3 = [];
|
|
13435
13435
|
XS("Primary Background", "bg1", W2, n3, e16, t3), XS("Primary Text", "tx1", W2, n3, e16, t3), XS("Secondary Background", "bg2", W2, n3, e16, t3), XS("Secondary Text", "tx2", W2, n3, e16, t3), XS("Accent 1", "accent1", W2, n3, e16, t3), XS("Accent 2", "accent2", W2, n3, e16, t3), XS("Accent 3", "accent3", W2, n3, e16, t3), XS("Accent 4", "accent4", W2, n3, e16, t3), XS("Accent 5", "accent5", W2, n3, e16, t3), XS("Accent 6", "accent6", W2, n3, e16, t3);
|
|
@@ -14758,7 +14758,7 @@ const wk = O($((e15, t2) => {
|
|
|
14758
14758
|
return Qh({ ...e16, children: n3 });
|
|
14759
14759
|
}, [y2]);
|
|
14760
14760
|
return I(ee, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...o2 }, ref: at([l2, a2, t2]), ...i2, children: [L(ee, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%" }, children: g2 ?? p2 }), L(ee, { sx: { display: null !== y2 && 0 === y2.length ? "none" : "flex", flex: "1 1 0" }, children: L(Dp, { createPopupPanel: x2, ref: c2, parentFloat: w2, createTooltip: ({ children: e16 }, t3) => L(Cp, { label: "More", description: "More toolbar options…", disabled: t3, children: e16 }), icon: L(ac, { children: L(et, {}) }) }) })] });
|
|
14761
|
-
})), xk = "https://unpkg.com/@sheetxl/scripting-templates/dist", vk = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: true, handler: async (e15, t2) => (await import("./
|
|
14761
|
+
})), xk = "https://unpkg.com/@sheetxl/scripting-templates/dist", vk = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: true, handler: async (e15, t2) => (await import("./DnMRqYWKDGXlNm42.mjs")).fromBufferJSON(e15, t2) }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: async (e15, t2) => (await import("./BFxzGj5sPFwrklFi.mjs")).fromBufferCSV(e15, t2) }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: async (e15, t2) => (await import("./imk332niB0MxWuGl.mjs").then((e16) => e16.i)).fromBufferXLSX(e15, t2) }], Sk = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", isDefault: true, handler: async (e15, t2) => (await import("./DnMRqYWKDGXlNm42.mjs")).toBufferJSON(e15, t2) }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: async (e15, t2) => (await import("./BFxzGj5sPFwrklFi.mjs")).toBufferCSV(e15, t2) }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: async (e15, t2) => (await import("./imk332niB0MxWuGl.mjs").then((e16) => e16.i)).toBufferXLSX(e15, t2) }];
|
|
14762
14762
|
class Ck {
|
|
14763
14763
|
constructor(e15 = vk, t2 = Sk) {
|
|
14764
14764
|
this._readFormatTypes = [], this._writeFormatType = [], this._readFormatTypes = Object.freeze([...e15]), this._writeFormatType = Object.freeze([...t2]);
|
|
@@ -15778,7 +15778,7 @@ const nE = "_sheetxl-theme_4opcr_2", oE = "_sheetxl-workbook_1j3lu_5", rE = { fi
|
|
|
15778
15778
|
const t3 = new Image();
|
|
15779
15779
|
t3.src = e16.target.src, e16.dataTransfer.setDragImage(t3, 1, 1);
|
|
15780
15780
|
}
|
|
15781
|
-
}, onDragEnter: It2, onDragLeave: It2, onDragOver: It2, onDrop: zt2, children: [I("div", { className: J(LC), style: { flex: "1 1 100%", display: "flex", flexDirection: "column", opacity: ge2 ? void 0 : 0, "--sxl-app-color-high-contrast": oe2.palette.primary.main, "--sxl-app-color-primary": oe2.palette.primary.main, "--sxl-app-color-primary-dark": oe2.palette.primary.dark, "--sxl-app-color-primary-light": oe2.palette.primary.light, "--sxl-app-color-info": oe2.palette.info.main, "--sxl-app-color-info-dark": oe2.palette.info.dark, "--sxl-app-color-info-light": oe2.palette.info.light, "--sxl-app-color-secondary": oe2.palette.secondary.main, "--sxl-app-color-secondary-dark": oe2.palette.secondary.dark, "--sxl-app-color-secondary-light": oe2.palette.secondary.light, "--sxl-app-color-success": oe2.palette.success.main, "--sxl-app-color-success-dark": oe2.palette.success.dark, "--sxl-app-color-success-light": oe2.palette.success.light, "--sxl-app-color-warning": oe2.palette.warning.main, "--sxl-app-color-warning-dark": oe2.palette.warning.dark, "--sxl-app-color-warning-light": oe2.palette.warning.light, "--sxl-app-color-error": oe2.palette.error.main, "--sxl-app-color-error-dark": oe2.palette.error.dark, "--sxl-app-color-error-light": oe2.palette.error.light, "--sxl-app-color-text": oe2.palette.text.primary, "--sxl-app-color-text-secondary": oe2.palette.text.secondary, "--sxl-app-color-text-disabled": oe2.palette.text.disabled, "--sxl-app-color-background": oe2.palette.background.paper, "--sxl-app-color-button-surface": oe2.palette.grey[600], "--sxl-app-color-shadow": oe2.palette.action.focus, "--sxl-app-color-grey": oe2.palette.grey[500], "--sxl-app-filter-dark-invert": Le2.body.darkMode && te2 ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Le2.body.darkMode ? `linear-gradient(${wt("#fff", xt(5))}, ${wt("#fff", xt(5))})` : void 0 }, children: [at2, tt2 ? Ft2 : null, L(ee, { sx: { marginBottom: (e16) => e16.spacing(0.75) } }), Bt2, lt2, L(wp, { arrow: true, disableInteractive: true, open: Be2, title: L(le, { variant: "subtitle2", component: "div", children: We2 }), placement: Ue2, TransitionProps: { timeout: { exit: 0 } }, PopperProps: { popperRef: Ne2, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Be2 ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(qe2.x, qe2.y, qe2.width, qe2.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] }, children: L(ee, {}) }), bt2, Pt2] }), At2] });
|
|
15781
|
+
}, onDragEnter: It2, onDragLeave: It2, onDragOver: It2, onDrop: zt2, children: [I("div", { className: J(LC), style: { flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: ge2 ? void 0 : 0, "--sxl-app-color-high-contrast": oe2.palette.primary.main, "--sxl-app-color-primary": oe2.palette.primary.main, "--sxl-app-color-primary-dark": oe2.palette.primary.dark, "--sxl-app-color-primary-light": oe2.palette.primary.light, "--sxl-app-color-info": oe2.palette.info.main, "--sxl-app-color-info-dark": oe2.palette.info.dark, "--sxl-app-color-info-light": oe2.palette.info.light, "--sxl-app-color-secondary": oe2.palette.secondary.main, "--sxl-app-color-secondary-dark": oe2.palette.secondary.dark, "--sxl-app-color-secondary-light": oe2.palette.secondary.light, "--sxl-app-color-success": oe2.palette.success.main, "--sxl-app-color-success-dark": oe2.palette.success.dark, "--sxl-app-color-success-light": oe2.palette.success.light, "--sxl-app-color-warning": oe2.palette.warning.main, "--sxl-app-color-warning-dark": oe2.palette.warning.dark, "--sxl-app-color-warning-light": oe2.palette.warning.light, "--sxl-app-color-error": oe2.palette.error.main, "--sxl-app-color-error-dark": oe2.palette.error.dark, "--sxl-app-color-error-light": oe2.palette.error.light, "--sxl-app-color-text": oe2.palette.text.primary, "--sxl-app-color-text-secondary": oe2.palette.text.secondary, "--sxl-app-color-text-disabled": oe2.palette.text.disabled, "--sxl-app-color-background": oe2.palette.background.paper, "--sxl-app-color-button-surface": oe2.palette.grey[600], "--sxl-app-color-shadow": oe2.palette.action.focus, "--sxl-app-color-grey": oe2.palette.grey[500], "--sxl-app-filter-dark-invert": Le2.body.darkMode && te2 ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Le2.body.darkMode ? `linear-gradient(${wt("#fff", xt(5))}, ${wt("#fff", xt(5))})` : void 0 }, children: [at2, tt2 ? Ft2 : null, L(ee, { sx: { marginBottom: (e16) => e16.spacing(0.75) } }), Bt2, lt2, L(wp, { arrow: true, disableInteractive: true, open: Be2, title: L(le, { variant: "subtitle2", component: "div", children: We2 }), placement: Ue2, TransitionProps: { timeout: { exit: 0 } }, PopperProps: { popperRef: Ne2, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: Be2 ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(qe2.x, qe2.y, qe2.width, qe2.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] }, children: L(ee, {}) }), bt2, Pt2] }), At2] });
|
|
15782
15782
|
}));
|
|
15783
15783
|
mE.displayName = "WorkbookElement";
|
|
15784
15784
|
const gE = (e15 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:hover)": { color: (e16) => e16.palette.text.secondary }, backgroundColor: (e16) => wt(e16.palette.background.paper, 0.6), borderRadius: (e16) => `${e16.shape.borderRadius}px`, border: (t3) => `solid ${e15 ? t3.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (t3) => `solid ${e15 ? t3.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (e16) => e16.palette.background.paper }, "&:hover:not([disabled])": { border: (t3) => `solid ${e15 ? t3.palette.text?.primary : t3.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (e16) => `solid ${e16.palette.primary.main} 1px !important`, border: (e16) => `1px solid ${e16.palette?.primary?.main} !important` } }, fE = O($((e15, t2) => {
|
|
@@ -15816,7 +15816,7 @@ const yE = O($((e15, t2) => {
|
|
|
15816
15816
|
const e16 = { transitionDelay: "160ms", transparentBackground: true };
|
|
15817
15817
|
return L(ee, { sx: n2, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...o2 }, children: l2?.(e16) ?? L($h, { ...e16 }) });
|
|
15818
15818
|
}, [n2, o2, l2]), d2 = B(() => P.lazy(async () => await Promise.resolve().then(() => DE)), []);
|
|
15819
|
-
return L(z, { children: L(q, { fallback: c2, children: L(d2, { ...s2, className: r2,
|
|
15819
|
+
return L(z, { children: L(q, { fallback: c2, children: L(d2, { ...s2, className: r2, renderLoadingPanel: l2, sx: n2, style: o2, ref: t2 }) }) });
|
|
15820
15820
|
}));
|
|
15821
15821
|
yE.displayName = "Studio";
|
|
15822
15822
|
const bE = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], handler: null, isDefault: true }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: null }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: null }], wE = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", handler: null, isDefault: true }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: null }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: null }];
|
|
@@ -16032,7 +16032,7 @@ const TE = (e15) => {
|
|
|
16032
16032
|
const { showModal: v2 } = el();
|
|
16033
16033
|
return H(() => {
|
|
16034
16034
|
const e16 = () => new Promise((e17, t3) => {
|
|
16035
|
-
const n3 = P.lazy(() => import("./
|
|
16035
|
+
const n3 = P.lazy(() => import("./BfUEFSGuAZXw2fvO.mjs")), o3 = v2(n3, { title: "Shortcut Keys Reference", commands: w2, onDone: () => {
|
|
16036
16036
|
o3.hide();
|
|
16037
16037
|
}, TransitionProps: { onExited: () => {
|
|
16038
16038
|
e17(true);
|
|
@@ -16114,7 +16114,7 @@ const TE = (e15) => {
|
|
|
16114
16114
|
const o3 = { ...t3, onKeyDown: (e18) => {
|
|
16115
16115
|
d2?.dispatchToFocusedCommand(e18), e18.isDefaultPrevented() || e18.isPropagationStopped() || t3?.onKeyDown?.(e18);
|
|
16116
16116
|
} };
|
|
16117
|
-
return x2(e17, { sort: () => import("./
|
|
16117
|
+
return x2(e17, { sort: () => import("./DuyHq4Fs-_RQkwF_.mjs"), numberFormat: () => import("./CxhzSvAqksnasp3g.mjs"), hyperlink: () => import("./BTnlaEz7yZqa7QHP.mjs"), comments: () => import("./BiJ5CZBAxg4-QDHh.mjs"), find: () => import("./CvYpf-Km1Rvg15q4.mjs"), tableDetails: () => import("./DsS5U5rJ5tNVEGXs.mjs"), tableNew: () => import("./B-pzKiKMkbB9Es-9.mjs"), namedDetails: () => import("./DCrdGvQ_vOB2o-ca.mjs") }[e17], o3, n3);
|
|
16118
16118
|
}, showOptions: v2, showInputOptions: S2, showError: (t3) => {
|
|
16119
16119
|
let n3, o3 = lr, r3 = "Unknown Error";
|
|
16120
16120
|
"string" == typeof t3 ? r3 = t3 : t3 instanceof Error && (n3 = t3, t3.message && (r3 = t3.message)), t3 instanceof R && (o3 = sr), e16(r3, { type: o3, enqueueProps: { error: n3 } });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-mui",
|
|
3
3
|
"description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.15",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"charting"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@sheetxl/grid-react": "^0.4.
|
|
40
|
-
"@sheetxl/io": "^0.4.
|
|
41
|
-
"@sheetxl/react": "^0.4.
|
|
42
|
-
"@sheetxl/utils": "^0.4.
|
|
43
|
-
"@sheetxl/utils-mui": "^0.4.
|
|
44
|
-
"@sheetxl/utils-react": "^0.4.
|
|
39
|
+
"@sheetxl/grid-react": "^0.4.15",
|
|
40
|
+
"@sheetxl/io": "^0.4.15",
|
|
41
|
+
"@sheetxl/react": "^0.4.15",
|
|
42
|
+
"@sheetxl/utils": "^0.4.15",
|
|
43
|
+
"@sheetxl/utils-mui": "^0.4.15",
|
|
44
|
+
"@sheetxl/utils-react": "^0.4.15",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
46
|
"csstype": "^3.1.3",
|
|
47
47
|
"file-saver": "^2.0.5",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"tinycolor2": "^1.6.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@sheetxl/sdk": "^0.4.
|
|
62
|
+
"@sheetxl/sdk": "^0.4.15",
|
|
63
63
|
"@emotion/cache": "^11.14.0",
|
|
64
64
|
"@emotion/react": "^11.14.0",
|
|
65
65
|
"@emotion/styled": "^11.14.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.apply(r,[].concat(o,n))}}}function l(e){return{}.toString.call(e).includes("Object")}function s(e){return"function"==typeof e}var f=a(function(e,t){throw new Error(e[t]||e.default)})({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"}),d=function(e,t){return l(t)||f("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&f("changeField"),t},g=function(e){s(e)||f("selectorType")},p=function(e){s(e)||l(e)||f("handlerType"),l(e)&&Object.values(e).some(function(e){return!s(e)})&&f("handlersType")},h=function(e){var t;e||f("initialIsRequired"),l(e)||f("initialType"),t=e,Object.keys(t).length||f("initialContent")};function y(e,t){return s(t)?t(e.current):t}function m(e,t){return e.current=u(u({},e.current),t),t}function v(e,t,r){return s(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var b,w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(e),p(t);var r={current:e},n=a(v)(r,t),o=a(m)(r),i=a(d)(e),c=a(y)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return g(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,i,c)(e)}]},O={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 "},j=(b=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=b.length?b.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e.apply(t,[].concat(n,o))}})(O),M=function(e){var t;return e||j("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||j("configType"),e.urls?(console.warn(O.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function E(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],E(e[r],t[r]))}),n(n({},e),t)}var P={type:"cancelation",msg:"operation is manually canceled"};function S(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(P):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var R,k=function(e){if(Array.isArray(e))return e}(R=w({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(t.push(i.value),2!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(n)throw o}}return t}}(R)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=k[0],T=k[1];function I(e){return document.body.appendChild(e)}function C(e){var t,r,n=x(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function A(){var e=x(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){D(t),e.resolve(t)},function(t){e.reject(t)})}function D(e){x().monaco||T({monaco:e})}var V=new Promise(function(e,t){return T({resolve:e,reject:t})}),L={config:function(e){var t=M(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["monaco"]);T(function(e){return{config:E(e.config,n),monaco:r}})},init:function(){var e=x(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(T({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),S(V);if(window.monaco&&window.monaco.editor)return D(window.monaco),e.resolve(window.monaco),S(V);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(I,C)(A)}return S(V)},__getMonacoInstance:function(){return x(function(e){return e.monaco})}},q={display:"flex",position:"relative",textAlign:"initial"},z={width:"100%"},_={display:"none"},N={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},F=function({children:t}){return e.createElement("div",{style:N.container},t)},U=e.memo(function({width:t,height:r,isEditorReady:n,loading:o,_ref:i,className:c,wrapperProps:u}){return e.createElement("section",{style:{...q,width:t,height:r},...u},!n&&e.createElement(F,null,o),e.createElement("div",{ref:i,style:{...z,...!n&&_},className:c}))}),B=function(t){e.useEffect(t,[])},Y=function(t,r,n=!0){let o=e.useRef(!0);e.useEffect(o.current||!n?()=>{o.current=!1}:t,r)};function $(){}function G(e,t,r,n){return function(e,t){return e.editor.getModel(H(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?H(e,n):void 0)}(e,t,r,n)}function H(e,t){return e.Uri.parse(t)}var J=e.memo(function({original:t,modified:r,language:n,originalLanguage:o,modifiedLanguage:i,originalModelPath:c,modifiedModelPath:u,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:s="light",loading:f="Loading...",options:d={},height:g="100%",width:p="100%",className:h,wrapperProps:y={},beforeMount:m=$,onMount:v=$}){let[b,w]=e.useState(!1),[O,j]=e.useState(!0),M=e.useRef(null),E=e.useRef(null),P=e.useRef(null),S=e.useRef(v),R=e.useRef(m),k=e.useRef(!1);B(()=>{let e=L.init();return e.then(e=>(E.current=e)&&j(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>M.current?function(){let e=M.current?.getModel();a||e?.original?.dispose(),l||e?.modified?.dispose(),M.current?.dispose()}():e.cancel()}),Y(()=>{if(M.current&&E.current){let e=M.current.getOriginalEditor(),r=G(E.current,t||"",o||n||"text",c||"");r!==e.getModel()&&e.setModel(r)}},[c],b),Y(()=>{if(M.current&&E.current){let e=M.current.getModifiedEditor(),t=G(E.current,r||"",i||n||"text",u||"");t!==e.getModel()&&e.setModel(t)}},[u],b),Y(()=>{let e=M.current.getModifiedEditor();e.getOption(E.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[r],b),Y(()=>{M.current?.getModel()?.original.setValue(t||"")},[t],b),Y(()=>{let{original:e,modified:t}=M.current.getModel();E.current.editor.setModelLanguage(e,o||n||"text"),E.current.editor.setModelLanguage(t,i||n||"text")},[n,o,i],b),Y(()=>{E.current?.editor.setTheme(s)},[s],b),Y(()=>{M.current?.updateOptions(d)},[d],b);let x=e.useCallback(()=>{if(!E.current)return;R.current(E.current);let e=G(E.current,t||"",o||n||"text",c||""),a=G(E.current,r||"",i||n||"text",u||"");M.current?.setModel({original:e,modified:a})},[n,r,i,t,o,c,u]),T=e.useCallback(()=>{!k.current&&P.current&&(M.current=E.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...d}),x(),E.current?.editor.setTheme(s),w(!0),k.current=!0)},[d,s,x]);return e.useEffect(()=>{b&&S.current(M.current,E.current)},[b]),e.useEffect(()=>{!O&&!b&&T()},[O,b,T]),e.createElement(U,{width:p,height:g,isEditorReady:b,loading:f,_ref:P,className:h,wrapperProps:y})}),K=new Map,Q=e.memo(function({defaultValue:t,defaultLanguage:r,defaultPath:n,value:o,language:i,path:c,theme:u="light",line:a,loading:l="Loading...",options:s={},overrideServices:f={},saveViewState:d=!0,keepCurrentModel:g=!1,width:p="100%",height:h="100%",className:y,wrapperProps:m={},beforeMount:v=$,onMount:b=$,onChange:w,onValidate:O=$}){let[j,M]=e.useState(!1),[E,P]=e.useState(!0),S=e.useRef(null),R=e.useRef(null),k=e.useRef(null),x=e.useRef(b),T=e.useRef(v),I=e.useRef(),C=e.useRef(o),A=function(t){let r=e.useRef();return e.useEffect(()=>{r.current=t},[t]),r.current}(c),D=e.useRef(!1),V=e.useRef(!1);B(()=>{let e=L.init();return e.then(e=>(S.current=e)&&P(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>R.current?(I.current?.dispose(),g?d&&K.set(c,R.current.saveViewState()):R.current.getModel()?.dispose(),void R.current.dispose()):e.cancel()}),Y(()=>{let e=G(S.current,t||o||"",r||i||"",c||n||"");e!==R.current?.getModel()&&(d&&K.set(A,R.current?.saveViewState()),R.current?.setModel(e),d&&R.current?.restoreViewState(K.get(c)))},[c],j),Y(()=>{R.current?.updateOptions(s)},[s],j),Y(()=>{!R.current||void 0===o||(R.current.getOption(S.current.editor.EditorOption.readOnly)?R.current.setValue(o):o!==R.current.getValue()&&(V.current=!0,R.current.executeEdits("",[{range:R.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),R.current.pushUndoStop(),V.current=!1))},[o],j),Y(()=>{let e=R.current?.getModel();e&&i&&S.current?.editor.setModelLanguage(e,i)},[i],j),Y(()=>{void 0!==a&&R.current?.revealLine(a)},[a],j),Y(()=>{S.current?.editor.setTheme(u)},[u],j);let q=e.useCallback(()=>{if(k.current&&S.current&&!D.current){T.current(S.current);let e=c||n,l=G(S.current,o||t||"",r||i||"",e||"");R.current=S.current?.editor.create(k.current,{model:l,automaticLayout:!0,...s},f),d&&R.current.restoreViewState(K.get(e)),S.current.editor.setTheme(u),void 0!==a&&R.current.revealLine(a),M(!0),D.current=!0}},[t,r,n,o,i,c,s,f,d,u,a]);return e.useEffect(()=>{j&&x.current(R.current,S.current)},[j]),e.useEffect(()=>{!E&&!j&&q()},[E,j,q]),C.current=o,e.useEffect(()=>{j&&w&&(I.current?.dispose(),I.current=R.current?.onDidChangeModelContent(e=>{V.current||w(R.current.getValue(),e)}))},[j,w]),e.useEffect(()=>{if(j){let e=S.current.editor.onDidChangeMarkers(e=>{let t=R.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=S.current.editor.getModelMarkers({resource:t});O?.(e)}});return()=>{e?.dispose()}}return()=>{}},[j,O]),e.createElement(U,{width:p,height:h,isEditorReady:j,loading:l,_ref:k,className:y,wrapperProps:m})}),W=Q;exports.DiffEditor=J,exports.Editor=Q,exports.default=W,exports.loader=L,exports.useMonaco=function(){let[t,r]=e.useState(L.__getMonacoInstance());return B(()=>{let e;return t||(e=L.init(),e.then(e=>{r(e)})),()=>e?.cancel()}),t};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
|
|
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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),t=require("@sheetxl/sdk"),r=require("./Brij8vl9GntSQBer.cjs"),i=({range:i,options:l,cell:s,onDone:a,...c})=>{const[d,x]=n.useState(l??t.Sort.DefaultRangeOptions),u=r.B(e=>{let n=null;"Sort"===e&&(n={...l,options:d}),a?.(n)},[d,a,l]);return e.jsx(r.pm,{title:"Sort",options:["Sort","Cancel"],onDone:u,...c,children:e.jsxs(o.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:!d.reverse,onChange:()=>x(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.hasHeader,onChange:()=>x(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity,onChange:()=>x(e=>({...e,collatorOptions:d.collatorOptions?.sensitivity===t.Sort.CaseSensitiveOptions.sensitivity?t.Sort.CaseInsensitiveOptions:t.Sort.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.orientation===t.IRange.Orientation.Row,onChange:()=>x(e=>{const n=e.orientation===t.IRange.Orientation.Row?t.IRange.Orientation.Column:t.IRange.Orientation.Row;return{...i.getDefaultSortCriteria(n,s).options,includeHidden:e.includeHidden,reverse:e.reverse,orientation:n}})}),label:"Row Sort",labelPlacement:"end"}),e.jsx(o.FormControlLabel,{control:e.jsx(o.Checkbox,{checked:d.includeHidden,onChange:()=>x(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=i,exports.default=i;
|