@sheetxl/studio-mui 0.3.2 → 0.3.4
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/LICENSE.md +11 -11
- package/README.md +24 -24
- package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
- package/browser/cjs/{BtYvPg1MnEyGWx8E.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
- package/browser/cjs/{BBJ57oaa6vu0zEjI.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
- package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
- package/browser/cjs/{sxA11AN6vr9fiHaa.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
- package/browser/cjs/{CEjq7KQ0zHIi69or.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
- package/browser/cjs/{CgaWzlL_p5dgqA4f.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
- package/browser/cjs/{CsvjAXVeoKH34aZc.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
- package/browser/cjs/{BZfQo-wrdJc4xy1p.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
- package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
- package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
- package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
- package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
- package/browser/cjs/{BTSVJlDxWgqbdgwJ.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
- package/browser/cjs/{CJFKRBbjz7X-rEau.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
- package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
- package/browser/cjs/{DLeOkdGvdWl5tqCl.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
- package/browser/cjs/{C-4fmxJxBM8ThtN5.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
- package/browser/cjs/{ByKQeaRgOfTOn4P6.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
- package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
- package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
- package/browser/cjs/{CX6yLHEdmP8SVEfH.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
- package/browser/cjs/{CMTXA4puzeAnzQwq.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{vEKDv57iikwYjhOc.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
- package/browser/cjs/{DLcyf5qNRNueXSur.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
- package/browser/esm/{Bt8Hem_KC6UibnGm.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
- package/browser/esm/{ZwbkuvbehTjluIzn.mjs → B7spDz0f3MErGle0.mjs} +21 -20
- package/browser/esm/{AkfGEQyMAKNp1Ktw.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
- package/browser/esm/{Dq2nqH2znDzDq0no.mjs → C0HMqAubZ7789bne.mjs} +1 -1
- package/browser/esm/{DoCwq6ipapKirQSJ.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
- package/browser/esm/{C3dyK-h3mgD7XzKl.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
- package/browser/esm/{_zJv_HkelROSMajR.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
- package/browser/esm/{Dvi6qc2t9c_bRvzo.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
- package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
- package/browser/esm/{DudPyyE63O5X5Tij.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
- package/browser/esm/{CRByH9Wf2wJ94di-.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
- package/browser/esm/{FhyoG4Gyhb7gVRPB.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
- package/browser/esm/{9vaTrJzQjSFA2egn.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
- package/browser/esm/{BRPqw1D9DgPK_A6V.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
- package/browser/esm/{TFr0V-rb-KYQeRVW.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
- package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
- package/browser/esm/{ByYn00uYUmHj9zvS.mjs → Dig0J4i2Urjl9Z--.mjs} +171 -170
- package/browser/esm/{CdUwERsyanWuNPx8.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
- package/browser/esm/{B-DwCBC-vYtRKiGS.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
- package/browser/esm/{D_LHNgrCc-7V6FjT.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
- package/browser/esm/{D645MdIazDB-hc3d.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
- package/browser/esm/{s-R04_lOf8TuzWvo.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
- package/browser/esm/index.mjs +75 -74
- package/browser/esm/{BNbDRm5P-Ha3rBv4.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
- package/browser/esm/{BVDNIiq2e_loYVfc.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
- package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
- package/licenses/dependencies.txt +203 -225
- package/node/assets/style.css +1 -1
- package/node/esm/{CI9F84m6LzoOkVfK.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
- package/node/esm/{N2xFXdAPXckWbqvN.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
- package/node/esm/{DjLSO4d4T2JddYG_.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
- package/node/esm/{CYcFo_OeyApoGTg3.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
- package/node/esm/{CWRpbP9nAT2yR2r6.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
- package/node/esm/{DYOAGczbRXmskyrr.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
- package/node/esm/{BX8KUYAnQx1vI-cS.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
- package/node/esm/{DuboCcThig3p0wzs.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
- package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
- package/node/esm/{B5jFauUSFpo_iDkW.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
- package/node/esm/{BjIAi3GfBAjiRIja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
- package/node/esm/{Bth10k64kFkk36Hy.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
- package/node/esm/{Bk7aoxfQtGp8id7D.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
- package/node/esm/{ZVae6CkvsUOXzMKw.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
- package/node/esm/{D95MPCm8ObgZN5_j.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
- package/node/esm/{B2Y6U5_PvKIFVtAh.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
- package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
- package/node/esm/{BsSGinAqat7R8x_O.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
- package/node/esm/{DfXVaugDnucoDGYk.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
- package/node/esm/{CwIlFXgoa_xv0Doi.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
- package/node/esm/{CS138m7XyLHvzDPV.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
- package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
- package/node/esm/{CradKrxfiGQucTZ3.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
- package/node/esm/index.mjs +12873 -41672
- package/package.json +8 -8
- package/browser/cjs/1C6nE8JXbR1K_yhw.cjs +0 -6
- package/browser/cjs/6denMJxSAR1JnvVP.cjs +0 -15
- package/browser/cjs/B-N31rKSrvqkcxZP.cjs +0 -6
- package/browser/cjs/BLHCySywMnqptSI9.cjs +0 -32
- package/browser/cjs/BbEnQfoP4EOJK3YQ.cjs +0 -6
- package/browser/cjs/BjaD6jFpWrhKL2dz.cjs +0 -6
- package/browser/cjs/BnaQy4xZm6MUD5Sg.cjs +0 -13
- package/browser/cjs/BszSSdQItUM3BnN1.cjs +0 -6
- package/browser/cjs/C0vPGOmkrEmgMUC8.cjs +0 -6
- package/browser/cjs/C19mJZkF3zJRRDNw.cjs +0 -11
- package/browser/cjs/C2kX273f3kTe7viA.cjs +0 -6
- package/browser/cjs/C6MOXXmZPlw53ARk.cjs +0 -6
- package/browser/cjs/CGxAeOIqbsFk97UV.cjs +0 -6
- package/browser/cjs/CLeyzaTKMMR0Hcac.cjs +0 -6
- package/browser/cjs/CM1UZZ4gfAch7cju.cjs +0 -7
- package/browser/cjs/CSiwPeW0XIEaw5qn.cjs +0 -6
- package/browser/cjs/CaH2ZbfCFFqmTqKi.cjs +0 -6
- package/browser/cjs/Cbffh394PX-rgpbL.cjs +0 -6
- package/browser/cjs/Ce6nJl_bhnr51GJ3.cjs +0 -238
- package/browser/cjs/ChVT2EzsTJjDsozn.cjs +0 -6
- package/browser/cjs/Cjs836g7b_ipAS4X.cjs +0 -6
- package/browser/cjs/CkxuzW8FWE8vKkSL.cjs +0 -6
- package/browser/cjs/Clh_-4NLLHCW3c-r.cjs +0 -6
- package/browser/cjs/CsxexX1uKSMjAryZ.cjs +0 -6
- package/browser/cjs/CwgzXfkSX0s-h_0a.cjs +0 -6
- package/browser/cjs/CxIFTPLgMN5VgKh1.cjs +0 -12
- package/browser/cjs/D0ByNhICkrbUC74Z.cjs +0 -6
- package/browser/cjs/DAnQwP6m2P_AUhZh.cjs +0 -6
- package/browser/cjs/DFIMAvLgAQfQm3Bx.cjs +0 -6
- package/browser/cjs/DI-wbtkuZm7yx_ek.cjs +0 -6
- package/browser/cjs/DUUZT0ElQBBkt4qe.cjs +0 -6
- package/browser/cjs/DfrXQdrMzJWgyX4S.cjs +0 -6
- package/browser/cjs/DkOOlgNR-NXixaQX.cjs +0 -6
- package/browser/cjs/DmZIqrySryidgnRl.cjs +0 -6
- package/browser/cjs/DscIvkrfig_mffwY.cjs +0 -6
- package/browser/cjs/Dz8coNXp80TEXSyH.cjs +0 -6
- package/browser/cjs/IaiQe7d-LGA2611T.cjs +0 -1501
- package/browser/cjs/KNduwqq-J9uyLgsC.cjs +0 -6
- package/browser/cjs/LTnky81SCDfvEiub.cjs +0 -6
- package/browser/cjs/_EleKbbhQWfp8mqy.cjs +0 -124
- package/browser/cjs/sNpLX232YHzUxZOr.cjs +0 -12
- package/browser/esm/26ozZ2-vj7N8rpiB.mjs +0 -10
- package/browser/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/browser/esm/B7mPpY5DOxEGMbPk.mjs +0 -3934
- package/browser/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/browser/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/browser/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/browser/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/browser/esm/BSv1o1DpwfEAWYSy.mjs +0 -51
- package/browser/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/browser/esm/Bqmme9ilyvrHA-e_.mjs +0 -1575
- package/browser/esm/BvPUue2e8_ByeP7c.mjs +0 -10
- package/browser/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/browser/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/browser/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/browser/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/browser/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/browser/esm/CaFxIFV4dLSI4zDW.mjs +0 -472
- package/browser/esm/CpD505ep5Z3oX287.mjs +0 -1466
- package/browser/esm/Cz9BPykuRu_5ay57.mjs +0 -425
- package/browser/esm/D2yV2gASA--bjve5.mjs +0 -10
- package/browser/esm/D6mAWXETxAqf416J.mjs +0 -10
- package/browser/esm/DPw7ErLvgq_9jYHE.mjs +0 -24
- package/browser/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/browser/esm/DWoRF-U96vWLWF5Q.mjs +0 -5582
- package/browser/esm/DX8AE4p9fLlmEdTJ.mjs +0 -10
- package/browser/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/browser/esm/Dxl5GgDFgUsBkg-b.mjs +0 -10
- package/browser/esm/Qq233O5gbpRAP6un.mjs +0 -29
- package/browser/esm/UC5M3Z5HmOzupzqQ.mjs +0 -21
- package/browser/esm/VchKQpT2_B7Ca113.mjs +0 -820
- package/browser/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/browser/esm/cOX4zBcY0-H_8kAj.mjs +0 -43654
- package/browser/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/browser/esm/kjRF87FSQwIzB1KD.mjs +0 -12
- package/browser/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/8OtdJtJIKyA4POih.mjs +0 -14
- package/node/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/node/esm/B7bDAwgd6OSbVJh_.mjs +0 -10
- package/node/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/node/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/node/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/node/esm/BK9EmmFbROJ0rZqB.mjs +0 -4002
- package/node/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/node/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/node/esm/BeyDW_Yk6iu1JB4v.mjs +0 -453
- package/node/esm/BpdsRwlUAUyUdrlR.mjs +0 -813
- package/node/esm/BwnMNGZmp-FGW86J.mjs +0 -13
- package/node/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/node/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/node/esm/CJiY4Wz9eiX2B9nv.mjs +0 -10
- package/node/esm/CM9lgZdHfhhL2cv-.mjs +0 -10
- package/node/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/node/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/node/esm/CV4Y5e_kU8o_sXoX.mjs +0 -10
- package/node/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/node/esm/CYsd2qqC_WxLTKE1.mjs +0 -555
- package/node/esm/D5uKz7a9v8FUVx0k.mjs +0 -80
- package/node/esm/D61UbOtLixUCDQce.mjs +0 -307
- package/node/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/node/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/node/esm/DdDxTsQsLWNqX7ee.mjs +0 -16
- package/node/esm/Do5a0pvRN3hayzdD.mjs +0 -10
- package/node/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/node/esm/_Wieg3dqzHo6_Crg.mjs +0 -29
- package/node/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/node/esm/kTEpzGO5dC1M9dbV.mjs +0 -24
- package/node/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/pTSFPHHLPzmAcEKW.mjs +0 -10
- package/node/esm/rF9x01iQv2EpxorW.mjs +0 -5642
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
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 { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
8
8
|
import { Box as n, TextField as i, InputAdornment as r, IconButton as o, FormControlLabel as a, Checkbox as l, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
|
|
9
|
-
import {
|
|
9
|
+
import { e as h, T as p, a1 as m, H as u } from "./index.mjs";
|
|
10
10
|
import g, { useState as f, useMemo as x, useEffect as b } from "react";
|
|
11
11
|
import y from "clsx";
|
|
12
12
|
import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
|
|
13
13
|
import { Close as k } from "@mui/icons-material";
|
|
14
14
|
import { AutoSizer as v, Table as $, Column as D } from "react-virtualized";
|
|
15
|
-
const z = "ReactVirtualizedDemo-flexContainer",
|
|
15
|
+
const z = "ReactVirtualizedDemo-flexContainer", H = "ReactVirtualizedDemo-tableRow", I = "ReactVirtualizedDemo-tableRowHover", K = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
|
|
16
16
|
class N extends g.PureComponent {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this.getRowClassName = ({ index: e2 }) => {
|
|
19
19
|
const { onRowClick: t2 } = this.props;
|
|
20
|
-
return y(
|
|
20
|
+
return y(H, z, { [I]: -1 !== e2 && null != t2 });
|
|
21
21
|
}, this.cellRenderer = ({ cellData: e2, columnIndex: n2, dataKey: i2 }) => {
|
|
22
22
|
const { columns: r2, rowHeight: o2, onRowClick: a2 } = this.props;
|
|
23
23
|
let l2 = e2, d2 = { height: o2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
|
|
24
|
-
return "shortcut" === i2 ? l2 = m(e2) : "description" === i2 && (d2 = { ...d2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: y(
|
|
24
|
+
return "shortcut" === i2 ? l2 = m(e2) : "description" === i2 && (d2 = { ...d2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: y(K, z, { [S]: null == a2 }), variant: "body", style: d2, align: null != n2 && r2[n2].numeric ? "right" : "left", children: l2 });
|
|
25
25
|
}, this.headerRenderer = ({ label: e2, columnIndex: n2 }) => {
|
|
26
26
|
const { headerHeight: i2, columns: r2 } = this.props;
|
|
27
|
-
return t(s, { component: "div", className: y(
|
|
27
|
+
return t(s, { component: "div", className: y(K, z, S), variant: "head", sx: { height: i2, backgroundColor: (e3) => e3.palette.grey[300] }, align: r2[n2].numeric ? "right" : "left", children: t("span", { children: e2 }) });
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
static {
|
|
@@ -38,7 +38,7 @@ class N extends g.PureComponent {
|
|
|
38
38
|
}) }) });
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${
|
|
41
|
+
const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${H}`]: { cursor: "pointer" }, [`& .${I}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${K}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
|
|
42
42
|
function _(s2) {
|
|
43
43
|
const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [y2, C2] = f(""), v2 = x(() => {
|
|
44
44
|
let e2 = c2.getAllCommands();
|
|
@@ -58,22 +58,22 @@ function _(s2) {
|
|
|
58
58
|
D2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
|
|
59
59
|
});
|
|
60
60
|
}, [v2]);
|
|
61
|
-
const [z2,
|
|
61
|
+
const [z2, H2] = f(v2), I2 = y2.length > 0 && 0 === z2.length;
|
|
62
62
|
b(() => {
|
|
63
63
|
$2 && h.debounce(() => {
|
|
64
|
-
if (0 === y2.trim().length) return void
|
|
64
|
+
if (0 === y2.trim().length) return void H2(v2);
|
|
65
65
|
const e2 = $2.search(y2.trim()), t2 = new Array(e2.length);
|
|
66
66
|
for (let n2 = 0; n2 < e2.length; n2++) t2[n2] = e2[n2].item;
|
|
67
|
-
|
|
67
|
+
H2(t2);
|
|
68
68
|
}, 90)();
|
|
69
69
|
}, [$2, y2]);
|
|
70
|
-
return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(r, { sx: { opacity: y2.length > 0 ? 1 : 0, display: y2.length > 0 ? "flex" : "none" }, position: "end", children: t(o, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) =>
|
|
70
|
+
return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(r, { sx: { opacity: y2.length > 0 ? 1 : 0, display: y2.length > 0 ? "flex" : "none" }, position: "end", children: t(o, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => I2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => I2 ? `${e2.palette.error.main} !important` : void 0 } }, value: y2, onChange: (e2) => {
|
|
71
71
|
C2(e2.target.value);
|
|
72
72
|
}, onKeyDown: (e2) => {
|
|
73
73
|
e2.which === p.Escape && y2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
|
|
74
74
|
}, onContextMenu: (e2) => {
|
|
75
75
|
e2.stopPropagation();
|
|
76
|
-
} }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(n, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) =>
|
|
76
|
+
} }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(n, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => I2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === z2.length ? "No" : z2.length} shortcut key${1 === z2.length ? "" : "s"}${y2.length > 0 ? " found" : ""}` }) })] });
|
|
77
77
|
}
|
|
78
78
|
const P = (e2) => {
|
|
79
79
|
const { title: n2 = "Shortcut Keys", commands: i2, sx: r2, ...o2 } = e2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
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.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
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.3.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.4
|
|
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.
|
|
@@ -10,26 +10,27 @@ import { useMeasure as a } from "react-use";
|
|
|
10
10
|
import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles/index.js";
|
|
11
11
|
import { DialogContent as d, Box as u, TextField as f, InputAdornment as m, Collapse as g, MenuItem as x, FormControl as h, InputLabel as O, Select as C } from "@mui/material";
|
|
12
12
|
import { ArrowBack as y, ArrowUpward as b, ArrowForward as T, ArrowDownward as v } from "@mui/icons-material";
|
|
13
|
-
import {
|
|
13
|
+
import { ICell as k, IRange as R } from "@sheetxl/sdk";
|
|
14
|
+
import { P as E, T as S, H as I, v as w, q as F, s as D, E as K, A as P, D as A, G as $, I as L, K as M, L as j, p as B } from "./index.mjs";
|
|
14
15
|
const V = t((t2) => {
|
|
15
|
-
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() =>
|
|
16
|
+
const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() => q(r2, a2));
|
|
16
17
|
l(() => {
|
|
17
|
-
g2(
|
|
18
|
+
g2(q(r2, a2));
|
|
18
19
|
}, [r2, a2]);
|
|
19
20
|
const y2 = E((e2) => {
|
|
20
21
|
g2(e2.target.value), d2?.(a2[e2.target.value]);
|
|
21
22
|
}, [d2, a2]), b2 = s(() => Object.keys(a2).map((n2) => e(x, { value: n2, children: n2 }, n2)), [a2]);
|
|
22
23
|
return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(C, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: y2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
|
|
23
|
-
}), W = { Workbook: "workbook", Sheet: "sheet" },
|
|
24
|
+
}), W = { Workbook: "workbook", Sheet: "sheet" }, H = { enter: 140, exit: 140 }, N = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, z = { ...N };
|
|
24
25
|
delete z.Values;
|
|
25
|
-
const
|
|
26
|
+
const G = { "By Rows": true, "By Columns": false }, q = (e2, n2) => {
|
|
26
27
|
const t2 = Object.keys(n2);
|
|
27
28
|
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
28
29
|
const o2 = t2[i2];
|
|
29
30
|
if (n2[o2] === e2) return o2;
|
|
30
31
|
}
|
|
31
32
|
}, U = t((t2) => {
|
|
32
|
-
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title:
|
|
33
|
+
const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: q2, onHide: U2, onFindOrReplace: X, ...J } = t2, Q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), ne = i(null), te = (e2, n2) => {
|
|
33
34
|
if (!n2) return;
|
|
34
35
|
n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
|
|
35
36
|
}, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: W.Sheet }), ge = E(async (e2, n2, t3, i2) => {
|
|
@@ -64,7 +65,7 @@ const q = { "By Rows": true, "By Columns": false }, G = (e2, n2) => {
|
|
|
64
65
|
}, { once: true });
|
|
65
66
|
}, [ie, fe]);
|
|
66
67
|
const [Oe, { width: Ce }] = a();
|
|
67
|
-
return e(
|
|
68
|
+
return e(I, { title: q2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: he, onHide: U2, onFocus: () => ue(true), onBlur: () => {
|
|
68
69
|
ue(false), pe(false);
|
|
69
70
|
}, PaperProps: { elevation: de ? 3 : 1 }, ...J, children: n(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
|
|
70
71
|
if ("h" === e2.key && e2.ctrlKey) ae(true), Q.current?.contains(document.activeElement) && Y.current?.focus();
|
|
@@ -85,37 +86,37 @@ const q = { "By Rows": true, "By Columns": false }, G = (e2, n2) => {
|
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
e2.preventDefault();
|
|
88
|
-
}, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(
|
|
89
|
+
}, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(w, { selected: le, onSelectToggle: (e2) => {
|
|
89
90
|
re(e2);
|
|
90
|
-
}, preventFocus: true, label: "Toggle Additional Options", icon:
|
|
91
|
+
}, preventFocus: true, label: "Toggle Additional Options", icon: F(e(D, {})) }), e(w, { selected: se, onSelectToggle: (e2) => {
|
|
91
92
|
ae(e2);
|
|
92
|
-
}, preventFocus: true, label: "Toggle Replace", icon:
|
|
93
|
+
}, preventFocus: true, label: "Toggle Replace", icon: F(e(P, {})), shortcut: { key: se ? "F" : "H", modifiers: [K.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: Q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(w, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
|
|
93
94
|
me((n2) => {
|
|
94
95
|
const t3 = { ...n2 };
|
|
95
96
|
return t3.findOptions.matchCase = e2, t3;
|
|
96
97
|
});
|
|
97
|
-
}, label: "Match Case", shortcut: { key: "C", modifiers: [
|
|
98
|
+
}, label: "Match Case", shortcut: { key: "C", modifiers: [K.Alt] }, icon: F(e(A, {})) }), e(w, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
|
|
98
99
|
me((n2) => {
|
|
99
100
|
const t3 = { ...n2 };
|
|
100
101
|
return t3.findOptions.matchEntireCell = e2, t3;
|
|
101
102
|
});
|
|
102
|
-
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [
|
|
103
|
+
}, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [K.Alt] }, icon: F(e($, {})) }), e(w, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
|
|
103
104
|
me((n2) => {
|
|
104
105
|
const t3 = { ...n2 };
|
|
105
106
|
return t3.findOptions.useRegex = e2, t3;
|
|
106
107
|
});
|
|
107
|
-
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [
|
|
108
|
+
}, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [K.Alt] }, icon: F(e(L, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
|
|
108
109
|
me((n2) => {
|
|
109
110
|
const t3 = { ...n2 };
|
|
110
111
|
return t3.findText = e2.target.value, t3;
|
|
111
112
|
});
|
|
112
113
|
}, onKeyDown: (e2) => xe(e2, false), onContextMenu: (e2) => {
|
|
113
114
|
e2.stopPropagation();
|
|
114
|
-
} }), e(
|
|
115
|
+
} }), e(w, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
115
116
|
ge(false, false);
|
|
116
|
-
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [
|
|
117
|
+
}, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [K.Shift] }, icon: F(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(w, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
|
|
117
118
|
ge(true, false);
|
|
118
|
-
}, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon:
|
|
119
|
+
}, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: F(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: H, onExit: () => {
|
|
119
120
|
Q.current?.focus();
|
|
120
121
|
}, children: n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: Y, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: fe.replaceText ?? "", onChange: (e2) => {
|
|
121
122
|
me((n2) => {
|
|
@@ -124,23 +125,23 @@ const q = { "By Rows": true, "By Columns": false }, G = (e2, n2) => {
|
|
|
124
125
|
});
|
|
125
126
|
}, onKeyDown: (e2) => xe(e2, true), onContextMenu: (e2) => {
|
|
126
127
|
e2.stopPropagation();
|
|
127
|
-
} }), e(
|
|
128
|
+
} }), e(w, { onSelectToggle: (e2) => {
|
|
128
129
|
ge(true, true);
|
|
129
|
-
}, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon:
|
|
130
|
+
}, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: F(e(M, {})), disabled: !fe.findText }), e(w, { onSelectToggle: (e2) => {
|
|
130
131
|
ge(true, true, true);
|
|
131
|
-
}, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [
|
|
132
|
+
}, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [K.Ctrl, K.Alt] }, icon: F(e(j, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: H, onExit: () => {
|
|
132
133
|
Q.current?.focus();
|
|
133
|
-
}, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(
|
|
134
|
+
}, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(B, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(V, { label: "Within", value: fe.scope, options: W, onSelect: (e2) => {
|
|
134
135
|
me((n2) => {
|
|
135
136
|
const t3 = { ...n2 };
|
|
136
137
|
return t3.scope = e2, t3;
|
|
137
138
|
});
|
|
138
|
-
} }), e(V, { label: "Search", value: fe.findOptions.orientation !== R.Orientation.Column, options:
|
|
139
|
+
} }), e(V, { label: "Search", value: fe.findOptions.orientation !== R.Orientation.Column, options: G, onSelect: (e2) => {
|
|
139
140
|
me((n2) => {
|
|
140
141
|
const t3 = { ...n2 };
|
|
141
142
|
return t3.findOptions.orientation = e2 ? R.Orientation.Row : R.Orientation.Column, t3;
|
|
142
143
|
});
|
|
143
|
-
} }), e(V, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? z :
|
|
144
|
+
} }), e(V, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? z : N, onSelect: (e2) => {
|
|
144
145
|
me((n2) => {
|
|
145
146
|
const t3 = { ...n2 };
|
|
146
147
|
return t3.findOptions.fields = [e2], t3;
|