@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,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 "./CqEyDFDlQ75w1c41.mjs";
|
|
8
8
|
import { getCommentCoords as t, useModelListener as n, useSheetComments as r } from "@sheetxl/react";
|
|
9
9
|
import { DynamicIcon as i, usePersistentState as ee, useTranslator as te } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as a, useEffect as o, useMemo as ne, useRef as s, useState as c } from "react";
|
|
@@ -0,0 +1,210 @@
|
|
|
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 { PresetChartType as e, chartIconKey as t, presetChartTypeDescriptor as n } from "@sheetxl/react";
|
|
8
|
+
import { DynamicIcon as r, useCallbackRef as i, useCommandButtonEntry as a, useCommands as o, useTranslator as s } from "@sheetxl/utils-react";
|
|
9
|
+
import { forwardRef as c, memo as l, useCallback as u } from "react";
|
|
10
|
+
import { CommandPopupButton as d, ExhibitIconButton as f, ExhibitMenuHeader as p, ExhibitTooltip as m } from "@sheetxl/utils-mui";
|
|
11
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
|
+
import { Box as _ } from "@mui/material";
|
|
13
|
+
import { messageKey as v } from "@sheetxl/utils";
|
|
14
|
+
var y = [
|
|
15
|
+
{
|
|
16
|
+
category: "column",
|
|
17
|
+
label: v("chart.category.column"),
|
|
18
|
+
presets: [
|
|
19
|
+
e.Column,
|
|
20
|
+
e.ColumnStacked,
|
|
21
|
+
e.ColumnStackedPercent
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
category: "bar",
|
|
26
|
+
label: v("chart.category.bar"),
|
|
27
|
+
presets: [
|
|
28
|
+
e.Bar,
|
|
29
|
+
e.BarStacked,
|
|
30
|
+
e.BarStackedPercent
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
category: "line",
|
|
35
|
+
label: v("chart.category.line"),
|
|
36
|
+
presets: [
|
|
37
|
+
e.Line,
|
|
38
|
+
e.LineStacked,
|
|
39
|
+
e.LineStackedPercent,
|
|
40
|
+
e.LineMarkers,
|
|
41
|
+
e.LineStackedMarkers,
|
|
42
|
+
e.LineStackedPercentMarkers
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
category: "area",
|
|
47
|
+
label: v("chart.category.area"),
|
|
48
|
+
presets: [
|
|
49
|
+
e.Area,
|
|
50
|
+
e.AreaStacked,
|
|
51
|
+
e.AreaStackedPercent
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
category: "pie",
|
|
56
|
+
label: v("chart.category.pie"),
|
|
57
|
+
presets: [
|
|
58
|
+
e.Pie,
|
|
59
|
+
e.PieDoughnut,
|
|
60
|
+
e.PieOfPie,
|
|
61
|
+
e.BarOfPie
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
category: "scatter",
|
|
66
|
+
label: v("chart.category.scatter"),
|
|
67
|
+
presets: [
|
|
68
|
+
e.ScatterMarkers,
|
|
69
|
+
e.ScatterLinesMarkersSmooth,
|
|
70
|
+
e.ScatterLinesSmooth,
|
|
71
|
+
e.ScatterLinesMarkers,
|
|
72
|
+
e.ScatterLines,
|
|
73
|
+
e.Bubble
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
category: "statistical",
|
|
78
|
+
label: v("chart.category.statistical"),
|
|
79
|
+
presets: [
|
|
80
|
+
e.Histogram,
|
|
81
|
+
e.Pareto,
|
|
82
|
+
e.BoxWhisker
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
category: "hierarchical",
|
|
87
|
+
label: v("chart.category.hierarchical"),
|
|
88
|
+
presets: [e.Treemap, e.Sunburst]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
category: "radar",
|
|
92
|
+
label: v("chart.category.radar"),
|
|
93
|
+
presets: [
|
|
94
|
+
e.Radar,
|
|
95
|
+
e.RadarMarkers,
|
|
96
|
+
e.RadarFilled
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
category: "other",
|
|
101
|
+
label: v("chart.category.other"),
|
|
102
|
+
presets: [e.Waterfall, e.Funnel]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
category: "stock",
|
|
106
|
+
label: v("chart.category.stock"),
|
|
107
|
+
presets: [
|
|
108
|
+
e.StockHLC,
|
|
109
|
+
e.StockOHLC,
|
|
110
|
+
e.StockVHLC,
|
|
111
|
+
e.StockVOHLC
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
category: "surface",
|
|
116
|
+
label: v("chart.category.surface"),
|
|
117
|
+
presets: [
|
|
118
|
+
e.Surface,
|
|
119
|
+
e.SurfaceWireframe,
|
|
120
|
+
e.SurfaceTopView,
|
|
121
|
+
e.SurfaceTopViewWireframe
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
], b = l((e) => {
|
|
125
|
+
let { presetKey: i, disabled: a, handleOnInsertChart: o, ...c } = e, l = s(), u = n(i);
|
|
126
|
+
return u ? h(f, {
|
|
127
|
+
propsTooltip: {
|
|
128
|
+
label: l(u.description),
|
|
129
|
+
description: l(u.hint)
|
|
130
|
+
},
|
|
131
|
+
icon: h(r, {
|
|
132
|
+
iconKey: t(u.type),
|
|
133
|
+
size: "1.875rem"
|
|
134
|
+
}),
|
|
135
|
+
onClick: () => {
|
|
136
|
+
o(u);
|
|
137
|
+
},
|
|
138
|
+
...c
|
|
139
|
+
}, i) : (console.warn("no descriptor type", u), null);
|
|
140
|
+
}), x = l(c((e, n) => {
|
|
141
|
+
let { onSelectType: r, tip: a, disabled: o, label: c, icon: l, ...f } = e, v = s(), x = o, S = i((e) => {
|
|
142
|
+
r(e);
|
|
143
|
+
}, [r]), C = u(({ closeFloatAll: e }) => {
|
|
144
|
+
let t = {
|
|
145
|
+
disabled: x,
|
|
146
|
+
handleOnInsertChart: (t) => {
|
|
147
|
+
e?.(), S(t);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return h(_, {
|
|
151
|
+
sx: {
|
|
152
|
+
display: "grid",
|
|
153
|
+
gridTemplateColumns: "repeat(2, auto)",
|
|
154
|
+
columnGap: "24px",
|
|
155
|
+
rowGap: "6px",
|
|
156
|
+
padding: "10px 16px"
|
|
157
|
+
},
|
|
158
|
+
children: y.map((e) => g(_, {
|
|
159
|
+
"data-chart-category": e.category,
|
|
160
|
+
sx: {
|
|
161
|
+
display: "flex",
|
|
162
|
+
flexDirection: "column"
|
|
163
|
+
},
|
|
164
|
+
children: [h(p, { children: v(e.label) }), h(_, {
|
|
165
|
+
sx: {
|
|
166
|
+
display: "flex",
|
|
167
|
+
gap: "6px"
|
|
168
|
+
},
|
|
169
|
+
children: e.presets.map((e) => h(b, {
|
|
170
|
+
presetKey: e,
|
|
171
|
+
...t
|
|
172
|
+
}, e))
|
|
173
|
+
})]
|
|
174
|
+
}, e.category))
|
|
175
|
+
});
|
|
176
|
+
}, [o, v]);
|
|
177
|
+
return h(d, {
|
|
178
|
+
ref: n,
|
|
179
|
+
renderPopupPanel: C,
|
|
180
|
+
renderTooltip: ({ children: e, disabled: t }) => h(m, {
|
|
181
|
+
label: a?.label,
|
|
182
|
+
description: a?.description,
|
|
183
|
+
disabled: t,
|
|
184
|
+
children: e
|
|
185
|
+
}),
|
|
186
|
+
label: c,
|
|
187
|
+
disabled: x,
|
|
188
|
+
selected: !1,
|
|
189
|
+
icon: l ?? t("columnClustered"),
|
|
190
|
+
...f
|
|
191
|
+
});
|
|
192
|
+
}));
|
|
193
|
+
x.displayName = "ChartTypeGalleryButton";
|
|
194
|
+
var S = l(c((e, t) => {
|
|
195
|
+
let { groupKey: n, disabled: r, label: c, icon: l, ...u } = e, d = s(), f = o(["insertChart"]), p = a("insertChartOptions"), m = f[0], g = r ?? m?.disabled(), _ = i((e) => {
|
|
196
|
+
m?.execute(e);
|
|
197
|
+
}, [m, n]);
|
|
198
|
+
return h(x, {
|
|
199
|
+
ref: t,
|
|
200
|
+
onSelectType: _,
|
|
201
|
+
tip: {
|
|
202
|
+
label: p?.getLabel?.(),
|
|
203
|
+
description: p?.getDescription?.()
|
|
204
|
+
},
|
|
205
|
+
label: m?.getLabel(n) ?? d("chart.insertFallback"),
|
|
206
|
+
disabled: g,
|
|
207
|
+
...u
|
|
208
|
+
});
|
|
209
|
+
}));
|
|
210
|
+
export { S as n, x as t };
|
|
@@ -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 "./CFUur1yDoVOJMuo5.mjs";
|
|
8
8
|
import { DynamicIcon as t, useTranslator as n } from "@sheetxl/utils-react";
|
|
9
9
|
import { memo as r, useEffect as i, useMemo as a, useReducer as o, useState as s } from "react";
|
|
10
10
|
import { ExhibitIconButton as c, SimpleTooltip 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
|