@sheetxl/studio-mui 1.0.4 → 1.0.6
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/esm/{N5L4wQxRGEOH_wbp.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
- package/browser/esm/{DHmh3sMFGq4sRPhh.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
- package/browser/esm/{D_r8MdiauI15ds00.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
- package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
- package/browser/esm/{jDqohhLNEI6wqjo7.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
- package/browser/esm/{CHfzSl32Bs6LVY3G.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
- package/browser/esm/{DZngQvRDu3Qh7_uy.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
- package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
- package/browser/esm/{n1z1c9np4M3gMGCX.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
- package/browser/esm/{B4vVBfkY4Oq6M196.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
- package/browser/esm/{BH1Qj4pv8pPWZVhO.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
- package/browser/esm/{BDSYU5nx_6eGxAa4.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
- package/browser/esm/{Cf6bsmEPyPpiNtxU.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
- package/browser/esm/{B130jd-PqNgY2pV8.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
- package/browser/esm/{B4EWee1CcAHS5vAA.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
- package/browser/esm/{CzWXYarhfF4mF8fj.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
- package/browser/esm/{CEvJVwoVP9nscIcl.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
- package/browser/esm/{CFiyY-_XmW7G0_9y.mjs → C211u9yUXa4149g9.mjs} +1 -1
- package/browser/esm/{DoJ8N6FhUY0kYz9u.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
- package/browser/esm/{DqP1sKmMsG0tKwmV.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
- package/browser/esm/{Cx1r__xbzz-5zZgw.mjs → CA42_0vpQwF292tA.mjs} +1 -1
- package/browser/esm/{D1WSqegx9Zbjc-cL.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
- package/browser/esm/{k0bdGBFIHCTGANHW.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
- package/browser/esm/{DVQZtsBbf_Fsh-B6.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
- package/browser/esm/{npsX_Rztx4_7rCGP.mjs → CHb2gapathcPfhdM.mjs} +5 -5
- package/browser/esm/{94_olh2OyEbGAcNw.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
- package/browser/esm/{BBNFlngSL8Y3242O.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
- package/browser/esm/{Me9wSTkBepRyMDHH.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
- package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
- package/browser/esm/{uV_YgeJoyPa9SdGV.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
- package/browser/esm/{D2YXkXpEcP-NqHMv.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
- package/browser/esm/{WQaRUnIjMCkaRwsb.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
- package/browser/esm/{BQTUWwRUxgqg4s6Y.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
- package/browser/esm/{DoYGmNZ_X3Kvxx3K.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
- package/browser/esm/{ph1FP1S-yYM0I269.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
- package/browser/esm/{BYUokd7Q6y5Xw36U.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
- package/browser/esm/{NSuxs1P3kFsoLIMa.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
- package/browser/esm/{B0q0gHDAexrBB16B.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
- package/browser/esm/{SHaQophNZjobC_4f.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
- package/browser/esm/{m5mPoZGqgwOCQQOs.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
- package/browser/esm/{B1SDDlETvGUJ2Ipu.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
- package/browser/esm/{CWgz8hWLf3OzuMyZ.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
- package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
- package/browser/esm/{dlNcqumPfehZG2ai.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
- package/browser/esm/{BrFq6SNq-qx1PYZO.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
- package/browser/esm/{BMIfZN_dgjS_p-pF.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
- package/browser/esm/{BESsacbR41SalUJv.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
- package/browser/esm/{CbCTAkfOjIThF31A.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
- package/browser/esm/{a7OD-X4Jjp810Y6v.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
- package/browser/esm/{1JW5qOuAMlejsOrm.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
- package/browser/esm/{DlZoddGNGipM3S72.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
- package/browser/esm/{MR6LXUjaCV0DShNi.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
- package/browser/esm/{CbC8ObddTe-7ix6F.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
- package/browser/esm/{DGz8aGpEm8yfccoW.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
- package/browser/esm/index.mjs +299 -299
- package/browser/esm/{dikVMLRWr5g6T0E7.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
- package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
- package/browser/esm/{Bz6OaRkDOpj807bi.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
- package/browser/esm/{DVXQrjSOGoB23arZ.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
- package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
- package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
- package/browser/esm/{D8RzgRnl0S1-W_Tx.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
- package/browser/esm/{wwSpRKFXL9eeyQND.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
- package/browser/esm/{B0ymykpoTxxHQosi.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
- package/licenses/dependencies.txt +33 -33
- package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
- package/node/esm/{B_7rer9pnurpMB9J.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
- package/node/esm/{DGieA81teTm8uNPr.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
- package/node/esm/{DF5w_ZBWiRtITKLQ.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
- package/node/esm/{BedAzhQqTjs4BBb4.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
- package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
- package/node/esm/{C4esZkRHnb4HEK3k.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
- package/node/esm/{DHrxhle3aK3XU-Jz.mjs → BghhH54dXAqciBpw.mjs} +2 -2
- package/node/esm/{Diu9L9DJzZCMtFb4.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
- package/node/esm/{mHNl4j2rIZTqcQqb.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
- package/node/esm/{BBRSP-QRw-F0qQdJ.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
- package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
- package/node/esm/{BRICG2VkglJJKy0X.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
- package/node/esm/{Cr94rxP9x4CWSBhF.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
- package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
- package/node/esm/{qYIPGp0bxwW5i6Tn.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
- package/node/esm/{vTyr2di6cTC3sA1F.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
- package/node/esm/{BRpSVGr1A8w4AG_c.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
- package/node/esm/{B1CcqB7Ue-EPkdE-.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
- package/node/esm/{Bwtmjq_jln0eMEMe.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
- package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
- package/node/esm/{MNdDR5PA6J1YEtyL.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
- package/node/esm/{D13aAzbfNwj50sqn.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
- package/node/esm/{4mAgDExCti1oMAez.mjs → D283LXrMqi3exI_l.mjs} +1 -1
- package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
- package/node/esm/{CBes_pLI-7rJsre4.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
- package/node/esm/{CJszsuCXRBPNuT1A.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
- package/node/esm/{Bm31UyWMCsJ7z4wJ.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
- package/node/esm/{Bz0uw5YbQGvhlPhZ.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
- package/node/esm/{D2eYMCx5eAEJsfP6.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
- package/node/esm/{BSZ0bAJn4ODpGusx.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
- package/node/esm/{suDXa2UiBKJB4nsR.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
- package/node/esm/{pm_LpeNYjo6Aahu3.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
- package/node/esm/{D__UzirlxQlq32Rm.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
- package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
- package/node/esm/{DlSfkSNLCwzofCfS.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
- package/node/esm/{C1y7Z0K9Ougef8dU.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
- package/node/esm/{DXQFo_r4CCCvIubP.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
- package/node/esm/{n5-pWzwq4pDS4adG.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
- package/node/esm/index.mjs +3294 -3031
- package/node/esm/{B7_-3nxcN-ZSDQVT.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
- package/node/esm/{DvlZnGlon5gwQBxU.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
- package/node/esm/{9e9_OZYxc0ATDkNI.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -6
- package/resources/locales/de/ui.msg.json +164 -3
- package/resources/locales/en/groups.cmd.json +4 -6
- package/resources/locales/en/ui.msg.json +164 -3
- package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
- package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
- package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
- package/types/src/chart/ChartFormatPanel.d.ts +12 -14
- package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
- package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
- package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
- package/types/src/chart/command/index.d.ts +2 -0
- package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
- package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
- package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
- package/types/src/color/ColorSetSwatch.d.ts +34 -0
- package/types/src/color/index.d.ts +1 -0
- package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
- package/types/src/format/FillPanel.d.ts +1 -3
- package/types/src/format/FormatPanelParts.d.ts +2 -2
- package/types/src/format/FormatPlugin.d.ts +2 -2
- package/types/src/format/FormatTaskPane.d.ts +4 -10
- package/types/src/format/LinePanel.d.ts +0 -2
- package/types/src/format/editor/FormatEditor.d.ts +36 -0
- package/types/src/format/editor/FormatField.d.ts +97 -0
- package/types/src/format/editor/FormatFields.d.ts +20 -0
- package/types/src/format/editor/index.d.ts +4 -0
- package/types/src/format/index.d.ts +1 -0
- package/types/src/format/useFormatSelection.d.ts +0 -2
- package/types/src/index.d.ts +1 -1
- package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
- package/types/src/workbook/DefaultRenderers.d.ts +7 -1
- package/browser/esm/39iN4gKrFnhPhM1Z.mjs +0 -517
- package/browser/esm/BWXXi0teArfwa70E.mjs +0 -72
- package/browser/esm/J519wp1_d0QjzPfN.mjs +0 -516
- package/node/esm/Bc2iZ6Qs3kHdsECK.mjs +0 -1831
- package/node/esm/BvKg2K2J7Us2czkC.mjs +0 -519
- package/node/esm/CwQPIQaC6CcVGkD2.mjs +0 -73
- package/node/esm/CyQekcyEfM7Engbk.mjs +0 -516
- package/types/src/studio/StudioSplitPane.d.ts +0 -60
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { PasswordField as e, l as t } from "./index.mjs";
|
|
8
|
-
import { n as o, t as n } from "./
|
|
8
|
+
import { n as o, t as n } from "./MvXs13X1leYt7rBb.mjs";
|
|
9
9
|
import { ICellRange as i } from "@sheetxl/sdk";
|
|
10
10
|
import { promptUnlockProtectedRanges as r, useModelListener as a, useModelSync as s } from "@sheetxl/react";
|
|
11
11
|
import { DynamicIcon as l, NotifierType as c, useNotifier as d, useTranslator as p } from "@sheetxl/utils-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./DnjxhVMqfBhfsNHj.mjs";
|
|
8
8
|
import { useCallbackRef as t, useTranslator as n } from "@sheetxl/utils-react";
|
|
9
9
|
import { memo as i, useMemo as a, useState as o } from "react";
|
|
10
10
|
import { OptionsDialog as l } from "@sheetxl/utils-mui";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./Debl1EJrMSlRwGcN.mjs";
|
|
8
8
|
import { FormulaField as t, InputField as n, PresetChip as a, l as r } from "./index.mjs";
|
|
9
9
|
import { useModelSync as o, useWorkbook as i } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as d, NotifierType as l, useCallbackRef as s, useNotifier as m, useTranslator as c } from "@sheetxl/utils-react";
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { o as t } from "./vfgV7wwOvzh9iYjc.mjs";
|
|
8
|
+
import { t as e } from "./DyKgKDqbquskgXEA.mjs";
|
|
9
|
+
import { useCallbackRef as l } from "@sheetxl/utils-react";
|
|
10
|
+
import { useEffect as i, useState as a } from "react";
|
|
11
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
12
|
+
import { Box as o, Tab as s, Tabs as d, Typography as m } from "@mui/material";
|
|
13
|
+
var p = (p) => {
|
|
14
|
+
const { target: c, sheet: u, request: h, actions: x } = p, [f, g] = a(null), [b, v] = a(null);
|
|
15
|
+
i(() => {
|
|
16
|
+
h?.tab && g(h.tab);
|
|
17
|
+
}, [h]), i(() => {
|
|
18
|
+
v(null);
|
|
19
|
+
}, [c.id]);
|
|
20
|
+
const y = l((t) => {
|
|
21
|
+
try {
|
|
22
|
+
t(), v(null);
|
|
23
|
+
} catch (t) {
|
|
24
|
+
v(t?.message ?? String(t));
|
|
25
|
+
}
|
|
26
|
+
}, []), k = c.tabs, W = k.find((t) => t.key === f) ?? k[0];
|
|
27
|
+
return n(o, {
|
|
28
|
+
"data-format-target": c.id,
|
|
29
|
+
sx: {
|
|
30
|
+
display: "flex",
|
|
31
|
+
flexDirection: "column",
|
|
32
|
+
minWidth: 0,
|
|
33
|
+
minHeight: 0
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
c.title || x ? n(o, {
|
|
37
|
+
sx: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: .5,
|
|
41
|
+
minWidth: 0,
|
|
42
|
+
paddingBottom: .5
|
|
43
|
+
},
|
|
44
|
+
children: [r(m, {
|
|
45
|
+
variant: "subtitle2",
|
|
46
|
+
component: "div",
|
|
47
|
+
noWrap: !0,
|
|
48
|
+
sx: {
|
|
49
|
+
flex: "1 1 auto",
|
|
50
|
+
minWidth: 0
|
|
51
|
+
},
|
|
52
|
+
children: c.title
|
|
53
|
+
}), x]
|
|
54
|
+
}) : null,
|
|
55
|
+
k.length > 1 ? r(d, {
|
|
56
|
+
value: W.key,
|
|
57
|
+
onChange: (t, e) => g(e),
|
|
58
|
+
variant: "scrollable",
|
|
59
|
+
scrollButtons: "auto",
|
|
60
|
+
allowScrollButtonsMobile: !0,
|
|
61
|
+
sx: {
|
|
62
|
+
minHeight: 0,
|
|
63
|
+
flexShrink: 0,
|
|
64
|
+
borderBottom: (t) => `1px solid ${t.palette.divider}`,
|
|
65
|
+
"& .MuiTab-root": {
|
|
66
|
+
textTransform: "none",
|
|
67
|
+
whiteSpace: "nowrap",
|
|
68
|
+
minHeight: 0,
|
|
69
|
+
minWidth: 0,
|
|
70
|
+
flex: "1 0 auto",
|
|
71
|
+
padding: "8px 4px"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
children: k.map((t) => r(s, {
|
|
75
|
+
value: t.key,
|
|
76
|
+
label: t.label
|
|
77
|
+
}, t.key))
|
|
78
|
+
}) : null,
|
|
79
|
+
b ? r(m, {
|
|
80
|
+
variant: "caption",
|
|
81
|
+
color: "error",
|
|
82
|
+
role: "alert",
|
|
83
|
+
sx: { paddingTop: 1 },
|
|
84
|
+
children: b
|
|
85
|
+
}) : null,
|
|
86
|
+
W ? r(o, {
|
|
87
|
+
"data-format-tab": W.key,
|
|
88
|
+
sx: {
|
|
89
|
+
...t,
|
|
90
|
+
gap: 2,
|
|
91
|
+
paddingTop: (t) => t.spacing(k.length > 1 ? 2 : 1)
|
|
92
|
+
},
|
|
93
|
+
children: r(e, {
|
|
94
|
+
fields: W.fields(),
|
|
95
|
+
sheet: u,
|
|
96
|
+
disabled: c.disabled,
|
|
97
|
+
run: y
|
|
98
|
+
})
|
|
99
|
+
}) : null
|
|
100
|
+
]
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
export { p as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { T as e } from "./index.mjs";
|
|
8
8
|
import { ReactUtils as t } from "@sheetxl/utils-react";
|
|
9
9
|
import { Component as n, PureComponent as i, memo as s, useCallback as r, useLayoutEffect as o, useState as a } from "react";
|
|
10
10
|
import { jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: MIT
|
|
6
|
+
*/
|
|
7
|
+
import { IFill as e } from "@sheetxl/sdk";
|
|
8
|
+
import { PresetChartType as t, presetChartTypeDescriptor as a } from "@sheetxl/react";
|
|
9
|
+
var r = (e) => !0 === e.isList, s = (e) => /^(xyscatter|bubble)/.test(e.getChartType()), n = (e, t) => {
|
|
10
|
+
const a = t.getChart(), r = t.getPath(), l = t.getParent(), i = () => l ? n(e, l) : "", o = Number(r.split("/").pop());
|
|
11
|
+
switch (t.getElementType()) {
|
|
12
|
+
case "chartArea": return e("chart.pane.element.chartArea");
|
|
13
|
+
case "title": return e("chart.pane.element.title");
|
|
14
|
+
case "legend": return e("chart.pane.element.legend");
|
|
15
|
+
case "legendEntry": return e("chart.pane.element.legendEntry", { index: o + 1 });
|
|
16
|
+
case "plotArea": return e("chart.pane.element.plotArea");
|
|
17
|
+
case "dataTable": return e("chart.pane.element.dataTable");
|
|
18
|
+
case "axis": return ((e, t, a) => {
|
|
19
|
+
const [, r, n] = a.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(t), i = "category" === n ? !l : "value" !== n || l, o = "series" === n ? e("chart.pane.axisKind.series") : s(t) || "value" === n ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), c = e("chart.pane.axis", {
|
|
20
|
+
side: e(i ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
|
|
21
|
+
kind: o
|
|
22
|
+
});
|
|
23
|
+
return "secondary" === r ? e("chart.pane.secondary", { label: c }) : c;
|
|
24
|
+
})(e, a, r);
|
|
25
|
+
case "axisTitle": return e("chart.pane.element.axisTitle", { axis: i() });
|
|
26
|
+
case "gridlines": return r.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: i() }) : e("chart.pane.element.majorGridlines", { axis: i() });
|
|
27
|
+
case "series": return e("chart.pane.element.series", { name: t.getName() ?? e("chart.pane.seriesDefault", { index: a.getSeries().indexOf(t) + 1 }) });
|
|
28
|
+
case "point": return e("chart.pane.element.point", {
|
|
29
|
+
series: i(),
|
|
30
|
+
index: o + 1
|
|
31
|
+
});
|
|
32
|
+
case "marker": return e("chart.pane.element.marker", { owner: i() });
|
|
33
|
+
case "dataLabels": return "series" === l?.getElementType() ? e("chart.pane.element.dataLabels", { series: i() }) : e("chart.pane.element.allDataLabels");
|
|
34
|
+
case "dataLabel": return e("chart.pane.element.dataLabel", { point: i() });
|
|
35
|
+
case "trendline": return e("chart.pane.element.trendline", {
|
|
36
|
+
series: i(),
|
|
37
|
+
index: o + 1
|
|
38
|
+
});
|
|
39
|
+
case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: i() });
|
|
40
|
+
case "errorBars": return r.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: i() }) : e("chart.pane.element.yErrorBars", { series: i() });
|
|
41
|
+
case "chartGroup": return e("chart.pane.element.group", { index: o + 1 });
|
|
42
|
+
case "upDownBars": return e("chart.pane.element.upDownBars");
|
|
43
|
+
case "hiLoLines": return e("chart.pane.element.hiLoLines");
|
|
44
|
+
case "dropLines": return e("chart.pane.element.dropLines");
|
|
45
|
+
case "seriesLines": return e("chart.pane.element.seriesLines");
|
|
46
|
+
default: return r;
|
|
47
|
+
}
|
|
48
|
+
}, l = [
|
|
49
|
+
["category", "primary"],
|
|
50
|
+
["value", "primary"],
|
|
51
|
+
["series", "primary"],
|
|
52
|
+
["category", "secondary"],
|
|
53
|
+
["value", "secondary"]
|
|
54
|
+
], i = [
|
|
55
|
+
t.Column,
|
|
56
|
+
t.ColumnStacked,
|
|
57
|
+
t.ColumnStackedPercent,
|
|
58
|
+
t.Line,
|
|
59
|
+
t.LineStacked,
|
|
60
|
+
t.LineStackedPercent,
|
|
61
|
+
t.LineMarkers,
|
|
62
|
+
t.LineStackedMarkers,
|
|
63
|
+
t.LineStackedPercentMarkers,
|
|
64
|
+
t.Pie,
|
|
65
|
+
t.PieDoughnut,
|
|
66
|
+
t.Bar,
|
|
67
|
+
t.BarStacked,
|
|
68
|
+
t.BarStackedPercent,
|
|
69
|
+
t.Area,
|
|
70
|
+
t.AreaStacked,
|
|
71
|
+
t.AreaStackedPercent,
|
|
72
|
+
t.ScatterMarkers,
|
|
73
|
+
t.ScatterLinesMarkersSmooth,
|
|
74
|
+
t.ScatterLinesMarkers,
|
|
75
|
+
t.ScatterLinesSmooth,
|
|
76
|
+
t.ScatterLines
|
|
77
|
+
].map(a), o = (t) => t.getType() === e.Type.Solid ? t.getColor().toCSS() : null, c = (e) => e.trim().replace(/^=/, ""), d = /^(column|bar|line|area|xyscatter|bubble)/, p = (e, t, a) => {
|
|
78
|
+
const r = (e, t, a, r, s) => ({
|
|
79
|
+
type: "flag",
|
|
80
|
+
key: e,
|
|
81
|
+
label: t,
|
|
82
|
+
get: a,
|
|
83
|
+
set: r,
|
|
84
|
+
...s
|
|
85
|
+
}), p = (e, a, r, s) => ({
|
|
86
|
+
id: e.getPath(),
|
|
87
|
+
kind: a,
|
|
88
|
+
label: r,
|
|
89
|
+
name: n(t, e),
|
|
90
|
+
element: e,
|
|
91
|
+
leaf: !0,
|
|
92
|
+
fields: () => [],
|
|
93
|
+
children: () => [],
|
|
94
|
+
...s
|
|
95
|
+
}), g = (e, t, a) => p(e, "toggle", t, {
|
|
96
|
+
toggle: {
|
|
97
|
+
get: () => e.getVisible(),
|
|
98
|
+
set: (t) => {
|
|
99
|
+
e.setVisible(t);
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
...a
|
|
103
|
+
}), h = (e, a) => ({
|
|
104
|
+
id: e.getPath(),
|
|
105
|
+
kind: "toggle",
|
|
106
|
+
label: a,
|
|
107
|
+
name: n(t, e),
|
|
108
|
+
element: e,
|
|
109
|
+
toggle: {
|
|
110
|
+
get: () => e.getVisible(),
|
|
111
|
+
set: (t) => {
|
|
112
|
+
e.setVisible(t);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
fields: () => [{
|
|
116
|
+
type: "text",
|
|
117
|
+
key: "text",
|
|
118
|
+
label: t("chart.pane.titleText"),
|
|
119
|
+
get: () => e.getText() ?? "",
|
|
120
|
+
set: (t) => {
|
|
121
|
+
e.setText(t || null);
|
|
122
|
+
}
|
|
123
|
+
}],
|
|
124
|
+
children: () => []
|
|
125
|
+
}), u = (a) => ({
|
|
126
|
+
id: a.getPath(),
|
|
127
|
+
kind: "secondary" === a.getAxisGroup() ? "derived" : "toggle",
|
|
128
|
+
label: n(t, a),
|
|
129
|
+
name: n(t, a),
|
|
130
|
+
element: a,
|
|
131
|
+
toggle: {
|
|
132
|
+
get: () => a.getVisible(),
|
|
133
|
+
set: (e) => {
|
|
134
|
+
a.setVisible(e);
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
fields: () => {
|
|
138
|
+
if ("value" === a.getKind() || "series" === a.getKind() || s(e)) return [];
|
|
139
|
+
const r = a.getAxisGroup();
|
|
140
|
+
return [{
|
|
141
|
+
type: "formula",
|
|
142
|
+
key: "categories",
|
|
143
|
+
label: t("chart.pane.categories"),
|
|
144
|
+
get: () => e.getSeries().find((e) => e.getAxisGroup() === r)?.getCategoriesFormula() ?? "",
|
|
145
|
+
set: (e) => {
|
|
146
|
+
a.setCategoryNames(c(e));
|
|
147
|
+
}
|
|
148
|
+
}];
|
|
149
|
+
},
|
|
150
|
+
children: () => [
|
|
151
|
+
p(a, "toggle", t("chart.pane.row.labels"), {
|
|
152
|
+
id: `${a.getPath()}:labels`,
|
|
153
|
+
tab: "labels",
|
|
154
|
+
toggle: {
|
|
155
|
+
get: () => "none" !== a.getTickLabelPosition(),
|
|
156
|
+
set: (e) => {
|
|
157
|
+
a.setTickLabelPosition(e ? "nextToAxis" : "none");
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}),
|
|
161
|
+
h(a.getTitle(), t("chart.pane.row.title")),
|
|
162
|
+
g(a.getMajorGridlines(), t("chart.pane.row.majorGridlines")),
|
|
163
|
+
g(a.getMinorGridlines(), t("chart.pane.row.minorGridlines"))
|
|
164
|
+
]
|
|
165
|
+
}), m = (a) => a.getName() ?? t("chart.pane.seriesDefault", { index: e.getSeries().indexOf(a) + 1 }), y = (e) => /^(line|xyscatter|radar)/.test(e) && "radarFilled" !== e, b = (e) => p(e, "toggle", t("chart.pane.row.marker"), { toggle: {
|
|
166
|
+
get: () => "none" !== e.getSymbol(),
|
|
167
|
+
set: (t) => {
|
|
168
|
+
e.setSymbol(t ? "automatic" : "none");
|
|
169
|
+
}
|
|
170
|
+
} }), x = /^(column|bar|line|pie|doughnut|xyscatter|bubble|radar|waterfall)|OfPie$/, k = (e) => {
|
|
171
|
+
const r = e.getPoints(), s = () => {
|
|
172
|
+
const a = [];
|
|
173
|
+
return r.forEach((r, s) => {
|
|
174
|
+
a.push(((e, a, r) => {
|
|
175
|
+
const s = a.getIndex(), l = e.getChartType();
|
|
176
|
+
return {
|
|
177
|
+
id: a.getPath(),
|
|
178
|
+
kind: "item",
|
|
179
|
+
label: null === r ? t("chart.pane.row.point", { index: s + 1 }) : t("chart.pane.row.pointValue", {
|
|
180
|
+
index: s + 1,
|
|
181
|
+
value: r
|
|
182
|
+
}),
|
|
183
|
+
name: n(t, a),
|
|
184
|
+
element: a,
|
|
185
|
+
remove: () => {
|
|
186
|
+
a.clear();
|
|
187
|
+
},
|
|
188
|
+
fields: () => [],
|
|
189
|
+
children: () => {
|
|
190
|
+
if (/^waterfall/.test(l)) return [];
|
|
191
|
+
const e = [];
|
|
192
|
+
y(l) && e.push(b(a.getMarker()));
|
|
193
|
+
const r = a.getDataLabel();
|
|
194
|
+
return e.push(p(r, "toggle", t("chart.pane.row.dataLabel"), { toggle: {
|
|
195
|
+
get: () => a.getHasDataLabel(),
|
|
196
|
+
set: (e) => {
|
|
197
|
+
a.setHasDataLabel(e);
|
|
198
|
+
}
|
|
199
|
+
} })), e;
|
|
200
|
+
},
|
|
201
|
+
leaf: /^waterfall/.test(l)
|
|
202
|
+
};
|
|
203
|
+
})(e, s.getPoint(), r));
|
|
204
|
+
}, {
|
|
205
|
+
overridesOnly: !0,
|
|
206
|
+
reuseContext: !0
|
|
207
|
+
}), a;
|
|
208
|
+
};
|
|
209
|
+
return x.test(e.getChartType()) || 0 !== s().length ? {
|
|
210
|
+
id: `${e.getPath()}/points`,
|
|
211
|
+
label: t("chart.pane.row.points"),
|
|
212
|
+
add: r.getCount() > 0 ? () => {
|
|
213
|
+
const e = r.add();
|
|
214
|
+
return a?.select(e), e.getPath();
|
|
215
|
+
} : void 0,
|
|
216
|
+
addLabel: t("chart.pane.addCustomPoint"),
|
|
217
|
+
items: s,
|
|
218
|
+
isList: !0
|
|
219
|
+
} : null;
|
|
220
|
+
}, L = (e) => {
|
|
221
|
+
const a = e.getPath();
|
|
222
|
+
return {
|
|
223
|
+
id: a,
|
|
224
|
+
kind: "item",
|
|
225
|
+
label: m(e),
|
|
226
|
+
name: n(t, e),
|
|
227
|
+
element: e,
|
|
228
|
+
remove: () => {
|
|
229
|
+
e.delete();
|
|
230
|
+
},
|
|
231
|
+
order: {
|
|
232
|
+
get: () => e.getPlotOrder(),
|
|
233
|
+
set: (t) => {
|
|
234
|
+
e.setPlotOrder(t);
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
swatch: () => ((e) => {
|
|
238
|
+
const t = e.getStyle(), a = o(t.getStroke().getFill()), r = o(t.getFill());
|
|
239
|
+
return /^(line|xyscatter|radar)/.test(e.getChartType()) ? a ?? r : r ?? a;
|
|
240
|
+
})(e),
|
|
241
|
+
type: {
|
|
242
|
+
get: () => e.getChartType(),
|
|
243
|
+
set: (t) => {
|
|
244
|
+
e.setChartType(t);
|
|
245
|
+
},
|
|
246
|
+
options: () => ((e) => {
|
|
247
|
+
const a = i.map((e) => ({
|
|
248
|
+
type: e.type,
|
|
249
|
+
label: t(e.description)
|
|
250
|
+
})), r = e.getChartType();
|
|
251
|
+
return a.some((e) => e.type === r) || a.unshift({
|
|
252
|
+
type: r,
|
|
253
|
+
label: r
|
|
254
|
+
}), a;
|
|
255
|
+
})(e)
|
|
256
|
+
},
|
|
257
|
+
fields: () => {
|
|
258
|
+
const a = e.getChartType(), s = /^(xyscatter|bubble)/.test(a), n = [{
|
|
259
|
+
type: "formula",
|
|
260
|
+
key: "name",
|
|
261
|
+
label: t("chart.pane.seriesName"),
|
|
262
|
+
literal: !0,
|
|
263
|
+
get: () => {
|
|
264
|
+
const t = e.getNameFormula();
|
|
265
|
+
return t ? `=${t}` : e.getName() ?? "";
|
|
266
|
+
},
|
|
267
|
+
set: (t) => {
|
|
268
|
+
e.setName(t.trim() || null);
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
type: "formula",
|
|
272
|
+
key: "values",
|
|
273
|
+
label: t(s ? "chart.pane.seriesYValues" : "chart.pane.seriesValues"),
|
|
274
|
+
get: () => e.getValuesFormula() ?? "",
|
|
275
|
+
set: (t) => {
|
|
276
|
+
e.setValues(c(t));
|
|
277
|
+
}
|
|
278
|
+
}];
|
|
279
|
+
return s && n.push({
|
|
280
|
+
type: "formula",
|
|
281
|
+
key: "xValues",
|
|
282
|
+
label: t("chart.pane.seriesXValues"),
|
|
283
|
+
get: () => e.getCategoriesFormula() ?? "",
|
|
284
|
+
set: (t) => {
|
|
285
|
+
e.setXAxisValues(c(t) || null);
|
|
286
|
+
}
|
|
287
|
+
}), /^bubble/.test(a) && n.push({
|
|
288
|
+
type: "formula",
|
|
289
|
+
key: "sizes",
|
|
290
|
+
label: t("chart.pane.seriesSizes"),
|
|
291
|
+
get: () => e.getBubbleSizesFormula() ?? "",
|
|
292
|
+
set: (t) => {
|
|
293
|
+
e.setBubbleSizes(c(t));
|
|
294
|
+
}
|
|
295
|
+
}), n.push(r("secondaryAxis", t("chart.pane.secondaryAxis"), () => "secondary" === e.getAxisGroup(), (t) => {
|
|
296
|
+
e.setAxisGroup(t ? "secondary" : "primary");
|
|
297
|
+
})), n;
|
|
298
|
+
},
|
|
299
|
+
children: () => {
|
|
300
|
+
const r = e.getChartType(), s = [];
|
|
301
|
+
y(r) && s.push(b(e.getMarker())), s.push(g(e.getDataLabels(), t("chart.pane.row.dataLabels")));
|
|
302
|
+
const l = d.test(r), i = e.getXErrorBars();
|
|
303
|
+
(/^(xyscatter|bubble)/.test(r) || i.getVisible()) && s.push(g(i, t("chart.pane.row.xErrorBars")));
|
|
304
|
+
const o = e.getYErrorBars();
|
|
305
|
+
(l || o.getVisible()) && s.push(g(o, t("chart.pane.row.yErrorBars")));
|
|
306
|
+
const c = /^(line|stock)/.test(r), h = (a, r) => {
|
|
307
|
+
(r || a.getVisible()) && s.push(((e, a) => g(a, n(t, a), {
|
|
308
|
+
id: `${e.getPath()}:${a.getPath()}`,
|
|
309
|
+
kind: "derived"
|
|
310
|
+
}))(e, a));
|
|
311
|
+
};
|
|
312
|
+
h(e.getUpDownBars(), c), h(e.getHiLoLines(), c), h(e.getDropLines(), c || /^area/.test(r)), h(e.getSeriesLines(), /^(column|bar)Stacked/.test(r) || /OfPie$/.test(r));
|
|
313
|
+
const u = k(e);
|
|
314
|
+
u && s.push(u);
|
|
315
|
+
const m = e.getTrendlines();
|
|
316
|
+
return (l && !/Stacked/.test(r) || m.length > 0) && s.push({
|
|
317
|
+
id: `${a}/trendlines`,
|
|
318
|
+
label: t("chart.pane.row.trendlines"),
|
|
319
|
+
add: () => {
|
|
320
|
+
e.addChartTrendline();
|
|
321
|
+
},
|
|
322
|
+
addLabel: t("chart.pane.addTrendline"),
|
|
323
|
+
items: () => e.getTrendlines().map((e, a) => p(e, "item", t("chart.pane.row.trendline", { index: a + 1 }), { remove: () => {
|
|
324
|
+
e.delete();
|
|
325
|
+
} })),
|
|
326
|
+
isList: !0
|
|
327
|
+
}), s;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}, f = e.getTitle(), S = e.getLegend(), C = e.getDataTable(), T = e.getPlotArea(), w = () => ({
|
|
331
|
+
id: "data/cells",
|
|
332
|
+
kind: "always",
|
|
333
|
+
label: t("chart.pane.row.hiddenAndEmpty"),
|
|
334
|
+
name: t("chart.pane.row.hiddenAndEmpty"),
|
|
335
|
+
element: null,
|
|
336
|
+
fields: () => {
|
|
337
|
+
const a = e.getDisplayBlanksAs(), s = ["notPlotted", "zero"];
|
|
338
|
+
return (e.getSeries().some((e) => /^(line|xyscatter|radar)/.test(e.getChartType())) || "interplotted" === a) && s.push("interplotted"), [
|
|
339
|
+
{
|
|
340
|
+
type: "choice",
|
|
341
|
+
key: "emptyCells",
|
|
342
|
+
label: t("chart.pane.emptyCells"),
|
|
343
|
+
options: s,
|
|
344
|
+
labels: {
|
|
345
|
+
notPlotted: t("chart.pane.emptyCellsAs.gaps"),
|
|
346
|
+
zero: t("chart.pane.emptyCellsAs.zero"),
|
|
347
|
+
interplotted: t("chart.pane.emptyCellsAs.connect")
|
|
348
|
+
},
|
|
349
|
+
get: () => a,
|
|
350
|
+
set: (t) => {
|
|
351
|
+
e.setDisplayBlanksAs(t);
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
r("naAsEmpty", t("chart.pane.naAsEmpty"), () => e.getDisplayNaAsBlank(), (t) => {
|
|
355
|
+
e.setDisplayNaAsBlank(t);
|
|
356
|
+
}),
|
|
357
|
+
r("hiddenCells", t("chart.pane.hiddenCells"), () => !e.getPlotVisibleOnly(), (t) => {
|
|
358
|
+
e.setPlotVisibleOnly(!t);
|
|
359
|
+
})
|
|
360
|
+
];
|
|
361
|
+
},
|
|
362
|
+
children: () => []
|
|
363
|
+
}), P = e.getAxes();
|
|
364
|
+
return [
|
|
365
|
+
{
|
|
366
|
+
id: "section/data",
|
|
367
|
+
label: t("chart.pane.section.data"),
|
|
368
|
+
items: () => [w()],
|
|
369
|
+
isList: !0
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
id: "section/series",
|
|
373
|
+
label: t("chart.pane.section.series"),
|
|
374
|
+
add: () => e.addSeries().getPath(),
|
|
375
|
+
addLabel: t("chart.pane.addSeries"),
|
|
376
|
+
items: () => e.getSeries().map(L),
|
|
377
|
+
isList: !0
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
id: "section/axes",
|
|
381
|
+
label: t("chart.pane.section.axes"),
|
|
382
|
+
empty: t("chart.pane.noAxes"),
|
|
383
|
+
items: () => l.map(([e, t]) => P.getChartAxis(e, t)).filter((e) => null !== e).map(u),
|
|
384
|
+
isList: !0
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
id: "section/elements",
|
|
388
|
+
label: t("chart.pane.section.elements"),
|
|
389
|
+
items: () => [
|
|
390
|
+
h(f, t("chart.pane.row.title")),
|
|
391
|
+
g(S, n(t, S)),
|
|
392
|
+
g(C, n(t, C)),
|
|
393
|
+
p(T, "always", n(t, T))
|
|
394
|
+
],
|
|
395
|
+
isList: !0
|
|
396
|
+
}
|
|
397
|
+
];
|
|
398
|
+
}, g = Object.values(t).map(a), h = (e, t) => {
|
|
399
|
+
const a = e.getDataRange(), r = e.getChartType(), s = g.find((e) => e.type === r);
|
|
400
|
+
return {
|
|
401
|
+
fields: [{
|
|
402
|
+
type: "text",
|
|
403
|
+
key: "name",
|
|
404
|
+
label: t("chart.pane.chartName"),
|
|
405
|
+
get: () => e.getName?.() ?? "",
|
|
406
|
+
set: (t) => {
|
|
407
|
+
t.trim() && e.setName?.(t.trim());
|
|
408
|
+
}
|
|
409
|
+
}, {
|
|
410
|
+
type: "formula",
|
|
411
|
+
key: "range",
|
|
412
|
+
label: t("chart.pane.dataRange"),
|
|
413
|
+
placeholder: a ? void 0 : t("chart.pane.dataRangeBySeries"),
|
|
414
|
+
get: () => a ? `=${((e, t) => {
|
|
415
|
+
const a = e.getFixed(!0).getAddress(!1);
|
|
416
|
+
return a.includes("!") || !t ? a : `${t.slice(0, t.lastIndexOf("!") + 1)}${a}`;
|
|
417
|
+
})(a, e.getSeries()[0]?.getValuesFormula() ?? null)}` : "",
|
|
418
|
+
set: (t) => {
|
|
419
|
+
e.setData(c(t));
|
|
420
|
+
}
|
|
421
|
+
}],
|
|
422
|
+
seriesBy: {
|
|
423
|
+
get: () => e.getSeriesBy(),
|
|
424
|
+
switchLabel: t("chart.pane.switchRowColumn"),
|
|
425
|
+
disabled: !a,
|
|
426
|
+
switch: () => {
|
|
427
|
+
e.setSeriesBy("rows" === e.getSeriesBy() ? "columns" : "rows");
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
area: e.getChartArea(),
|
|
431
|
+
type: {
|
|
432
|
+
get: () => r,
|
|
433
|
+
label: "combo" === r ? t("chart.pane.chartTypeCombo") : s ? t(s.description) : r,
|
|
434
|
+
set: (t) => {
|
|
435
|
+
t !== r && e.setChartType(t);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
}, u = (e, t) => {
|
|
440
|
+
const a = (e, t) => {
|
|
441
|
+
for (const a of e.items()) {
|
|
442
|
+
const e = s(a, t);
|
|
443
|
+
if (e) return e;
|
|
444
|
+
}
|
|
445
|
+
return null;
|
|
446
|
+
}, s = (e, n) => {
|
|
447
|
+
const l = [...n, e.id];
|
|
448
|
+
if (e.element === t) return l;
|
|
449
|
+
for (const t of e.children()) {
|
|
450
|
+
const e = r(t) ? a(t, l) : s(t, l);
|
|
451
|
+
if (e) return e;
|
|
452
|
+
}
|
|
453
|
+
return null;
|
|
454
|
+
};
|
|
455
|
+
for (const t of e) {
|
|
456
|
+
const e = a(t, []);
|
|
457
|
+
if (e) return e;
|
|
458
|
+
}
|
|
459
|
+
return null;
|
|
460
|
+
};
|
|
461
|
+
export { r as a, u as i, h as n, n as r, p as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v1.0.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|