@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.11

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.
Files changed (119) hide show
  1. package/browser/esm/0BWO0bLZ8Vm_dKd2.mjs +582 -0
  2. package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
  3. package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
  4. package/browser/esm/{CEvZe2cZK-voZTif.mjs → BXhNFzyEGokTF-BL.mjs} +5 -5
  5. package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
  6. package/browser/esm/{DBtc4lku0uHVcqWn.mjs → BjvD_4t2KGsZP5V8.mjs} +3 -3
  7. package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BknfGJouygmnpFIU.mjs} +4 -4
  8. package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
  9. package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
  10. package/browser/esm/{DHY19rkSiiRZxShC.mjs → Brsh5yscJ_4uKFXp.mjs} +3 -3
  11. package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
  12. package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
  13. package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
  14. package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
  15. package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
  16. package/browser/esm/{CjznclrKqJRi7u9O.mjs → C9pIZVACtl9unFOp.mjs} +2 -2
  17. package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
  18. package/browser/esm/{Blaj2R5hYxtLAW__.mjs → CEtXsBzEjEKk9GOj.mjs} +6 -6
  19. package/browser/esm/{CIu1bjPJe_x31Oww.mjs → COlZu93LRwuBvjE-.mjs} +3 -3
  20. package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → CTjqDD-swFMZzI-Y.mjs} +2 -2
  21. package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
  22. package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
  23. package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → ClBvNPeNCAhuVWrG.mjs} +1 -1
  24. package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
  25. package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
  26. package/browser/esm/{xKiLJKiLxto8SayF.mjs → D3rRUK4dIM5gUSmj.mjs} +2 -2
  27. package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
  28. package/browser/esm/{fb126BNj3F8URR19.mjs → DDc6rDuU9JAo1DH_.mjs} +3 -3
  29. package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
  30. package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → DEv4pIEgYr5C7etm.mjs} +1 -1
  31. package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
  32. package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
  33. package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
  34. package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
  35. package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → DTpRkgsTm_zYnWfW.mjs} +1 -1
  36. package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
  37. package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
  38. package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
  39. package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
  40. package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
  41. package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
  42. package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → DsoNMWDwHZP8UXQd.mjs} +1 -1
  43. package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
  44. package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → HViD4Wfoi0mmqk9w.mjs} +1 -1
  45. package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
  46. package/browser/esm/{CtEFHbzYNvYjDYvi.mjs → QgaAIDUMmBQBsXP9.mjs} +8 -8
  47. package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → YThnrg3PadGs7B4j.mjs} +51 -51
  48. package/browser/esm/index.mjs +1028 -170
  49. package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
  50. package/browser/esm/{yZxC4qUENOlMhVUH.mjs → w_JrR69vEpvoyeMy.mjs} +1 -1
  51. package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
  52. package/browser/esm/{IQLeaAbtGTipUsOD.mjs → zqilJefihVd7At2T.mjs} +22 -21
  53. package/licenses/dependencies.txt +94 -94
  54. package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → 1bf4gn-2vld4BZ9u.mjs} +1 -1
  55. package/node/esm/{CKu1AtRgyltyEdEN.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
  56. package/node/esm/{cqzp431iNSLWictb.mjs → 4HmLH0bPVJCZLgik.mjs} +22 -22
  57. package/node/esm/{BYVLi0md4AYuDsB_.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
  58. package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
  59. package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
  60. package/node/esm/BPzcW4BejRqso338.mjs +72 -0
  61. package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
  62. package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
  63. package/node/esm/{ah3CUg4-VmNstGk_.mjs → Bph-sR3l6AYWeuxK.mjs} +2 -2
  64. package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
  65. package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
  66. package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
  67. package/node/esm/{D9rzScOA9pEYFrtz.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
  68. package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
  69. package/node/esm/{ci8d-mF1H9wnYzix.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
  70. package/node/esm/{D6oQL8knsPpgdXuk.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
  71. package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
  72. package/node/esm/{DNSjK5DAH3M14Qbc.mjs → CyafafEgfmjLqE5O.mjs} +1 -1
  73. package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
  74. package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
  75. package/node/esm/{BcwMb6CyVfvEwbHn.mjs → DMXLxp3T0E0SRTQc.mjs} +1 -1
  76. package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
  77. package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
  78. package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
  79. package/node/esm/{B_jRGdwGFkudwmL-.mjs → DdEzhVqYTrGODXrz.mjs} +1 -1
  80. package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
  81. package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
  82. package/node/esm/{Bb1sLMqXWKjdve23.mjs → Do-zCKziWhoG5eAv.mjs} +2 -2
  83. package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DpJ2gmZJioCyq8La.mjs} +67 -67
  84. package/node/esm/{ETK6T6G0SIcFXDe5.mjs → XEDcegsv5AGKBfu2.mjs} +40 -40
  85. package/node/esm/index.mjs +8941 -13558
  86. package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
  87. package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
  88. package/package.json +9 -9
  89. package/resources/locales/de/ui.msg.json +97 -0
  90. package/resources/locales/en/ui.msg.json +97 -0
  91. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
  92. package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
  93. package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
  94. package/types/src/anomalies/index.d.ts +3 -0
  95. package/types/src/border/BorderTemplateIcon.d.ts +6 -1
  96. package/types/src/chart/ChartFormatPanel.d.ts +20 -0
  97. package/types/src/chart/ChartPlugin.d.ts +6 -0
  98. package/types/src/chart/index.d.ts +3 -0
  99. package/types/src/comments/CommentCard.d.ts +2 -2
  100. package/types/src/conditions/useFormulaOption.d.ts +2 -2
  101. package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
  102. package/types/src/format/BorderPreview.d.ts +11 -4
  103. package/types/src/format/useFormatSelection.d.ts +4 -4
  104. package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
  105. package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
  106. package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
  107. package/types/src/index.d.ts +15 -6
  108. package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
  109. package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
  110. package/types/src/protection/index.d.ts +1 -1
  111. package/types/src/slicer/PresetSlicerStylesCommandButton.d.ts +2 -2
  112. package/types/src/workbook/DefaultRenderers.d.ts +2 -2
  113. package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
  114. package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
  115. package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
  116. package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
  117. package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
  118. package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
  119. package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
@@ -0,0 +1,515 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { ColorPopupButton as e } from "./index.mjs";
8
+ import { a, c as t, i as n, o as r, t as l } from "./BR45ogAR-hY2bE60.mjs";
9
+ import { t as s } from "./DfCuL8AUxMFoEG2s.mjs";
10
+ import { IFill as i } from "@sheetxl/sdk";
11
+ import { useGridColorScheme as o } from "@sheetxl/react";
12
+ import { useCallbackRef as c, useTranslator as h } from "@sheetxl/utils-react";
13
+ import { memo as d, useEffect as p, useReducer as u, useState as m } from "react";
14
+ import { Fragment as g, jsx as b, jsxs as y } from "react/jsx-runtime";
15
+ import { Box as v, Checkbox as x, FormControl as C, FormControlLabel as S, InputLabel as w, MenuItem as k, Select as B, TextField as f, Typography as L } from "@mui/material";
16
+ var E = (e) => b(L, {
17
+ variant: "subtitle2",
18
+ component: "div",
19
+ children: e.children
20
+ }), T = (e, a) => {
21
+ const t = a.getChart(), n = a.getPath(), r = a.getParent(), l = () => r ? T(e, r) : "", s = Number(n.split("/").pop());
22
+ switch (a.getElementType()) {
23
+ case "chartArea": return e("chart.pane.element.chartArea");
24
+ case "title": return e("chart.pane.element.title");
25
+ case "legend": return e("chart.pane.element.legend");
26
+ case "legendEntry": return e("chart.pane.element.legendEntry", { index: s + 1 });
27
+ case "plotArea": return e("chart.pane.element.plotArea");
28
+ case "dataTable": return e("chart.pane.element.dataTable");
29
+ case "axis": return ((e, a, t) => {
30
+ const [, n, r] = t.split("/"), l = ((e) => /^(bar|3DBar)/.test(e.getChartType()))(a), s = "category" === r ? !l : "value" !== r || l, i = "series" === r ? e("chart.pane.axisKind.series") : ((e) => /^(xyscatter|bubble)/.test(e.getChartType()))(a) || "value" === r ? e("chart.pane.axisKind.value") : e("chart.pane.axisKind.category"), o = e("chart.pane.axis", {
31
+ side: e(s ? "chart.pane.axisSide.horizontal" : "chart.pane.axisSide.vertical"),
32
+ kind: i
33
+ });
34
+ return "secondary" === n ? e("chart.pane.secondary", { label: o }) : o;
35
+ })(e, t, n);
36
+ case "axisTitle": return e("chart.pane.element.axisTitle", { axis: l() });
37
+ case "gridlines": return n.endsWith("minorGridlines") ? e("chart.pane.element.minorGridlines", { axis: l() }) : e("chart.pane.element.majorGridlines", { axis: l() });
38
+ case "series": return e("chart.pane.element.series", { name: a.getName() ?? "" });
39
+ case "point": return e("chart.pane.element.point", {
40
+ series: l(),
41
+ index: s + 1
42
+ });
43
+ case "marker": return e("chart.pane.element.marker", { owner: l() });
44
+ case "dataLabels": return "series" === r?.getElementType() ? e("chart.pane.element.dataLabels", { series: l() }) : e("chart.pane.element.allDataLabels");
45
+ case "dataLabel": return e("chart.pane.element.dataLabel", { point: l() });
46
+ case "trendline": return e("chart.pane.element.trendline", {
47
+ series: l(),
48
+ index: s + 1
49
+ });
50
+ case "trendlineLabel": return e("chart.pane.element.trendlineLabel", { trendline: l() });
51
+ case "errorBars": return n.endsWith("/x") ? e("chart.pane.element.xErrorBars", { series: l() }) : e("chart.pane.element.yErrorBars", { series: l() });
52
+ case "chartGroup": return e("chart.pane.element.group", { index: s + 1 });
53
+ case "upDownBars": return e("chart.pane.element.upDownBars");
54
+ case "hiLoLines": return e("chart.pane.element.hiLoLines");
55
+ case "dropLines": return e("chart.pane.element.dropLines");
56
+ case "seriesLines": return e("chart.pane.element.seriesLines");
57
+ default: return n;
58
+ }
59
+ }, V = (e, a) => {
60
+ const t = e.getStroke().getFill();
61
+ return t.getType() === i.Type.Solid ? t.getColor() : a.getNormal().getFont().getColor();
62
+ }, P = (e) => {
63
+ const { style: a, sheet: t, disabled: n, label: r } = e, i = h(), c = t.getStyles(), d = "dark" === o(), p = {
64
+ fill: a.getFill(),
65
+ styles: c,
66
+ schemeLookup: c.schemeLookup(),
67
+ darkMode: d,
68
+ disabled: n,
69
+ createCell: (e) => t.createCell(e),
70
+ applyFill: (e, t) => {
71
+ a.setFill(e, { description: t });
72
+ }
73
+ }, u = {
74
+ stroke: a.getStroke(),
75
+ stated: a.toJSON()?.stroke ?? null,
76
+ autoColor: V(a, c),
77
+ styles: c,
78
+ schemeLookup: c.schemeLookup(),
79
+ darkMode: d,
80
+ disabled: n,
81
+ applyStroke: (e, t) => {
82
+ a.setStroke(e, { description: t });
83
+ }
84
+ };
85
+ return y(g, { children: [
86
+ r ? b(E, { children: r }) : null,
87
+ b(E, { children: i("shape.pane.fill") }),
88
+ b(l, { selection: p }),
89
+ b(E, { children: i("shape.pane.line") }),
90
+ b(s, { selection: u })
91
+ ] });
92
+ }, F = (e) => y(C, {
93
+ size: "small",
94
+ fullWidth: !0,
95
+ disabled: e.disabled,
96
+ children: [b(w, { children: e.label }), b(B, {
97
+ label: e.label,
98
+ value: e.value,
99
+ onChange: (a) => e.onChange(a.target.value),
100
+ children: e.options.map((a) => b(k, {
101
+ value: a,
102
+ children: e.labels[a] ?? a
103
+ }, a))
104
+ })]
105
+ }), A = (e) => b(S, {
106
+ label: e.label,
107
+ disabled: e.disabled,
108
+ control: b(x, {
109
+ size: "small",
110
+ checked: e.checked,
111
+ onChange: (a) => e.onChange(a.target.checked)
112
+ })
113
+ }), N = (e) => {
114
+ const [a, t] = m(null), n = () => {
115
+ null !== a && a !== e.value && e.onCommit(a), t(null);
116
+ };
117
+ return b(f, {
118
+ size: "small",
119
+ fullWidth: !0,
120
+ label: e.label,
121
+ disabled: e.disabled,
122
+ value: a ?? e.value,
123
+ onChange: (e) => t(e.target.value),
124
+ onBlur: n,
125
+ onKeyDown: (e) => {
126
+ "Enter" === e.key && n();
127
+ }
128
+ });
129
+ }, D = [
130
+ "none",
131
+ "single",
132
+ "double"
133
+ ], O = [
134
+ "none",
135
+ "single",
136
+ "double"
137
+ ], z = (t) => {
138
+ const { font: l, styles: s, disabled: i, run: d } = t, p = h(), u = "dark" === o(), m = c(() => s.recentColors(), [s]), v = l.getColor(), x = {
139
+ none: p("chart.pane.text.lineNone"),
140
+ single: p("chart.pane.text.lineSingle"),
141
+ double: p("chart.pane.text.lineDouble")
142
+ };
143
+ return y(g, { children: [
144
+ b(E, { children: p("chart.pane.text") }),
145
+ b(r, { children: b(N, {
146
+ label: p("format.fontFamily"),
147
+ value: l.getFamily(),
148
+ disabled: i,
149
+ onCommit: (e) => d(() => l.setFamily(e || null))
150
+ }) }),
151
+ b(r, { children: y(a, { children: [b(n, {
152
+ label: p("format.fontSize"),
153
+ value: l.getSize(),
154
+ min: 1,
155
+ max: 400,
156
+ step: 1,
157
+ decimals: !0,
158
+ width: 96,
159
+ disabled: i,
160
+ onChange: (e) => d(() => l.setSize(e))
161
+ }), b(e, {
162
+ icon: "text.colored",
163
+ disabled: i,
164
+ darkMode: u,
165
+ compareRGB: !0,
166
+ selectedColor: v,
167
+ onSelectColor: (e, a) => {
168
+ e && a && s.addRecentColor(e), d(() => l.setColor(e ? e.toString() : null));
169
+ },
170
+ propsPanel: {
171
+ disableAlpha: !0,
172
+ schemeLookup: s.schemeLookup(),
173
+ recentColors: m
174
+ }
175
+ })] }) }),
176
+ b(r, { children: y(a, { children: [b(A, {
177
+ label: p("chart.pane.text.bold"),
178
+ checked: l.getBold(),
179
+ disabled: i,
180
+ onChange: (e) => d(() => l.setBold(e))
181
+ }), b(A, {
182
+ label: p("chart.pane.text.italic"),
183
+ checked: l.getItalic(),
184
+ disabled: i,
185
+ onChange: (e) => d(() => l.setItalic(e))
186
+ })] }) }),
187
+ b(r, { children: y(a, { children: [b(F, {
188
+ label: p("chart.pane.text.underline"),
189
+ value: D.includes(l.getUnderline()) ? l.getUnderline() : "single",
190
+ options: D,
191
+ labels: x,
192
+ disabled: i,
193
+ onChange: (e) => d(() => l.setUnderline(e))
194
+ }), b(F, {
195
+ label: p("chart.pane.text.strike"),
196
+ value: l.getStrike(),
197
+ options: O,
198
+ labels: x,
199
+ disabled: i,
200
+ onChange: (e) => d(() => l.setStrike(e))
201
+ })] }) })
202
+ ] });
203
+ }, K = [
204
+ "top",
205
+ "bottom",
206
+ "left",
207
+ "right",
208
+ "corner"
209
+ ], G = [
210
+ "center",
211
+ "insideEnd",
212
+ "insideBase",
213
+ "outsideEnd",
214
+ "left",
215
+ "right",
216
+ "top",
217
+ "bottom",
218
+ "bestFit"
219
+ ], R = [
220
+ "linear",
221
+ "exponential",
222
+ "logarithmic",
223
+ "polynomial",
224
+ "power",
225
+ "movingAverage"
226
+ ], W = [
227
+ "fixedValue",
228
+ "percent",
229
+ "stDev",
230
+ "stError"
231
+ ], M = [
232
+ "both",
233
+ "plusValues",
234
+ "minusValues"
235
+ ], q = (e) => {
236
+ const { element: r, disabled: l, run: s } = e, i = h(), o = (e, a, t) => b(A, {
237
+ label: e,
238
+ checked: a,
239
+ disabled: l,
240
+ onChange: (e) => s(() => t(e))
241
+ }), c = [], d = () => r;
242
+ switch (r.getElementType()) {
243
+ case "chartArea": {
244
+ const e = d();
245
+ c.push(o(i("chart.pane.roundedCorners"), e.getRoundedCorners(), (a) => e.setRoundedCorners(a)));
246
+ break;
247
+ }
248
+ case "title":
249
+ case "axisTitle": {
250
+ const e = d();
251
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(N, {
252
+ label: i("chart.pane.titleText"),
253
+ value: e.getText() ?? "",
254
+ disabled: l,
255
+ onCommit: (a) => s(() => e.setText(a || null))
256
+ }, "text")), c.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
257
+ break;
258
+ }
259
+ case "legend": {
260
+ const e = d();
261
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(F, {
262
+ label: i("chart.pane.position"),
263
+ value: e.getPosition(),
264
+ options: K,
265
+ disabled: l,
266
+ labels: {
267
+ top: i("chart.pane.side.top"),
268
+ bottom: i("chart.pane.side.bottom"),
269
+ left: i("chart.pane.side.left"),
270
+ right: i("chart.pane.side.right"),
271
+ corner: i("chart.pane.side.corner")
272
+ },
273
+ onChange: (a) => s(() => e.setPosition(a))
274
+ }, "position")), c.push(o(i("chart.pane.overlay"), e.getOverlay(), (a) => e.setOverlay(a)));
275
+ break;
276
+ }
277
+ case "axis": {
278
+ const e = d();
279
+ if (c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.reverse"), e.getReversePlotOrder(), (a) => e.setReversePlotOrder(a))), "value" === e.getKind()) {
280
+ const t = (e, a, t) => b(n, {
281
+ label: e,
282
+ value: a ?? 0,
283
+ min: -0x38d7ea4c68000,
284
+ max: 0x38d7ea4c68000,
285
+ decimals: !0,
286
+ width: 120,
287
+ disabled: l,
288
+ onChange: (e) => s(() => t(e))
289
+ }, e);
290
+ c.push(y(a, { children: [t(i("chart.pane.minimum"), e.getMinimum(), (a) => e.setMinimum(a)), t(i("chart.pane.maximum"), e.getMaximum(), (a) => e.setMaximum(a))] }, "bounds")), c.push(b(N, {
291
+ label: i("chart.pane.numberFormat"),
292
+ value: e.getNumberFormat() ?? "",
293
+ disabled: l,
294
+ onCommit: (a) => s(() => a ? e.setNumberFormat(a) : e.setLinkNumberFormat(!0))
295
+ }, "format"));
296
+ }
297
+ break;
298
+ }
299
+ case "gridlines":
300
+ case "upDownBars":
301
+ case "hiLoLines":
302
+ case "dropLines":
303
+ case "seriesLines": {
304
+ const e = d();
305
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a)));
306
+ break;
307
+ }
308
+ case "series": {
309
+ const e = d();
310
+ c.push(o(i("chart.pane.secondaryAxis"), "secondary" === e.getAxisGroup(), (a) => e.setAxisGroup(a ? "secondary" : "primary")));
311
+ const t = e.getGapWidth(), r = e.getOverlap();
312
+ null === t && null === r || c.push(y(a, { children: [null !== r ? b(n, {
313
+ label: i("chart.pane.overlap"),
314
+ value: r,
315
+ min: -100,
316
+ max: 100,
317
+ width: 96,
318
+ disabled: l,
319
+ onChange: (a) => s(() => e.setOverlap(a))
320
+ }) : null, null !== t ? b(n, {
321
+ label: i("chart.pane.gapWidth"),
322
+ value: t,
323
+ min: 0,
324
+ max: 500,
325
+ width: 96,
326
+ disabled: l,
327
+ onChange: (a) => s(() => e.setGapWidth(a))
328
+ }) : null] }, "gap")), /^(line|xyscatter)/.test(e.getChartType()) && c.push(o(i("chart.pane.smooth"), e.getSmooth(), (a) => e.setSmooth(a)));
329
+ break;
330
+ }
331
+ case "dataLabels":
332
+ case "dataLabel": {
333
+ const e = d();
334
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.labels.value"), e.getShowValue(), (a) => e.setShowValue(a))), c.push(o(i("chart.pane.labels.category"), e.getShowCategoryName(), (a) => e.setShowCategoryName(a))), c.push(o(i("chart.pane.labels.series"), e.getShowSeriesName(), (a) => e.setShowSeriesName(a))), c.push(o(i("chart.pane.labels.percentage"), e.getShowPercentage(), (a) => e.setShowPercentage(a))), c.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), c.push(b(F, {
335
+ label: i("chart.pane.position"),
336
+ value: e.getPosition(),
337
+ options: G,
338
+ disabled: l,
339
+ labels: {
340
+ center: i("chart.pane.labels.center"),
341
+ insideEnd: i("chart.pane.labels.insideEnd"),
342
+ insideBase: i("chart.pane.labels.insideBase"),
343
+ outsideEnd: i("chart.pane.labels.outsideEnd"),
344
+ left: i("chart.pane.side.left"),
345
+ right: i("chart.pane.side.right"),
346
+ top: i("chart.pane.side.top"),
347
+ bottom: i("chart.pane.side.bottom"),
348
+ bestFit: i("chart.pane.labels.bestFit")
349
+ },
350
+ onChange: (a) => s(() => e.setPosition(a))
351
+ }, "position"));
352
+ break;
353
+ }
354
+ case "trendline": {
355
+ const e = d();
356
+ c.push(b(F, {
357
+ label: i("chart.pane.trendline.type"),
358
+ value: e.getType(),
359
+ options: R,
360
+ disabled: l,
361
+ labels: {
362
+ linear: i("chart.pane.trendline.linear"),
363
+ exponential: i("chart.pane.trendline.exponential"),
364
+ logarithmic: i("chart.pane.trendline.logarithmic"),
365
+ polynomial: i("chart.pane.trendline.polynomial"),
366
+ power: i("chart.pane.trendline.power"),
367
+ movingAverage: i("chart.pane.trendline.movingAverage")
368
+ },
369
+ onChange: (a) => s(() => e.setType(a))
370
+ }, "type")), c.push(o(i("chart.pane.trendline.equation"), e.getShowEquation(), (a) => e.setShowEquation(a))), c.push(o(i("chart.pane.trendline.rSquared"), e.getShowRSquared(), (a) => e.setShowRSquared(a))), c.push(y(a, { children: [b(n, {
371
+ label: i("chart.pane.trendline.forward"),
372
+ value: e.getForwardPeriod(),
373
+ min: 0,
374
+ max: 1e6,
375
+ decimals: !0,
376
+ width: 96,
377
+ disabled: l,
378
+ onChange: (a) => s(() => e.setForwardPeriod(a))
379
+ }), b(n, {
380
+ label: i("chart.pane.trendline.backward"),
381
+ value: e.getBackwardPeriod(),
382
+ min: 0,
383
+ max: 1e6,
384
+ decimals: !0,
385
+ width: 96,
386
+ disabled: l,
387
+ onChange: (a) => s(() => e.setBackwardPeriod(a))
388
+ })] }, "periods"));
389
+ break;
390
+ }
391
+ case "errorBars": {
392
+ const e = d();
393
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(b(F, {
394
+ label: i("chart.pane.errorBars.type"),
395
+ value: "custom" === e.getType() ? "fixedValue" : e.getType(),
396
+ options: W,
397
+ disabled: l,
398
+ labels: {
399
+ fixedValue: i("chart.pane.errorBars.fixedValue"),
400
+ percent: i("chart.pane.errorBars.percent"),
401
+ stDev: i("chart.pane.errorBars.stDev"),
402
+ stError: i("chart.pane.errorBars.stError")
403
+ },
404
+ onChange: (a) => s(() => e.setType(a))
405
+ }, "type"));
406
+ const a = e.getAmount();
407
+ null !== a && c.push(b(n, {
408
+ label: i("chart.pane.errorBars.amount"),
409
+ value: a,
410
+ min: 0,
411
+ max: 0x38d7ea4c68000,
412
+ decimals: !0,
413
+ width: 120,
414
+ disabled: l,
415
+ onChange: (a) => s(() => e.setAmount(a))
416
+ }, "amount")), c.push(b(F, {
417
+ label: i("chart.pane.errorBars.direction"),
418
+ value: e.getInclude(),
419
+ options: M,
420
+ disabled: l,
421
+ labels: {
422
+ both: i("chart.pane.errorBars.both"),
423
+ plusValues: i("chart.pane.errorBars.plus"),
424
+ minusValues: i("chart.pane.errorBars.minus")
425
+ },
426
+ onChange: (a) => s(() => e.setInclude(a))
427
+ }, "include")), c.push(o(i("chart.pane.errorBars.cap"), e.getEndStyleCap(), (a) => e.setEndStyleCap(a)));
428
+ break;
429
+ }
430
+ case "dataTable": {
431
+ const e = d();
432
+ c.push(o(i("chart.pane.visible"), e.getVisible(), (a) => e.setVisible(a))), c.push(o(i("chart.pane.labels.legendKey"), e.getShowLegendKey(), (a) => e.setShowLegendKey(a))), c.push(o(i("chart.pane.table.horizontal"), e.getShowHorizontalBorder(), (a) => e.setShowHorizontalBorder(a))), c.push(o(i("chart.pane.table.vertical"), e.getShowVerticalBorder(), (a) => e.setShowVerticalBorder(a))), c.push(o(i("chart.pane.table.outline"), e.getShowOutlineBorder(), (a) => e.setShowOutlineBorder(a)));
433
+ break;
434
+ }
435
+ }
436
+ return 0 === c.length ? null : y(g, { children: [b(E, { children: i("chart.pane.options") }), b(v, {
437
+ sx: {
438
+ ...t,
439
+ gap: 1
440
+ },
441
+ children: c.map((e, a) => b(v, { children: e }, a))
442
+ })] });
443
+ }, j = d((e) => {
444
+ const { movable: a, sheet: n } = e, r = h(), l = a.getContent(), [, s] = u((e) => e + 1, 0);
445
+ p(() => l.addListeners({ onAnyChange: s }), [l]);
446
+ const i = n.getView().getChartElementSelection();
447
+ p(() => i.addListeners({ onChange: s }), [i]);
448
+ const [o, d] = m("chartArea"), [x, S] = m(null), f = (i.getChart() === l ? i.getActive() : null) ?? l.getElement(o) ?? l.getChartArea(), E = l.getElements(), V = E.includes(f) ? E : [...E, f], F = l.isReadOnly(), A = c((e) => {
449
+ try {
450
+ e(), S(null);
451
+ } catch (e) {
452
+ S(e?.message ?? String(e));
453
+ }
454
+ }, []), N = f.getStyle?.(), D = N?.isITextBoxStyle ? N.getFont() : null, O = "legendEntry" === f.getElementType() ? null : N, K = "upDownBars" === f.getElementType() ? f : null;
455
+ return y(v, {
456
+ sx: {
457
+ ...t,
458
+ gap: 2,
459
+ paddingTop: (e) => e.spacing(1)
460
+ },
461
+ children: [
462
+ y(C, {
463
+ size: "small",
464
+ fullWidth: !0,
465
+ children: [b(w, { children: r("chart.pane.element") }), b(B, {
466
+ label: r("chart.pane.element"),
467
+ value: f.getPath(),
468
+ onChange: (e) => ((e) => {
469
+ d(e), S(null);
470
+ const a = l.getElement(e);
471
+ a && "chartArea" !== a.getElementType() ? i.select([a]) : i.clear();
472
+ })(e.target.value),
473
+ children: V.map((e) => b(k, {
474
+ value: e.getPath(),
475
+ children: T(r, e)
476
+ }, e.getPath()))
477
+ })]
478
+ }),
479
+ x ? b(L, {
480
+ variant: "caption",
481
+ color: "error",
482
+ children: x
483
+ }) : null,
484
+ b(q, {
485
+ element: f,
486
+ disabled: F,
487
+ run: A
488
+ }, `options:${f.getPath()}`),
489
+ D ? b(z, {
490
+ font: D,
491
+ styles: n.getStyles(),
492
+ disabled: F,
493
+ run: A
494
+ }, `text:${f.getPath()}`) : null,
495
+ O ? b(P, {
496
+ style: O,
497
+ sheet: n,
498
+ disabled: F
499
+ }, `style:${f.getPath()}`) : null,
500
+ K ? y(g, { children: [b(P, {
501
+ style: K.getUpBarsStyle(),
502
+ sheet: n,
503
+ disabled: F,
504
+ label: r("chart.pane.upBars")
505
+ }, "up"), b(P, {
506
+ style: K.getDownBarsStyle(),
507
+ sheet: n,
508
+ disabled: F,
509
+ label: r("chart.pane.downBars")
510
+ }, "down")] }) : null
511
+ ]
512
+ });
513
+ });
514
+ j.displayName = "ChartFormatPanel";
515
+ export { j as ChartFormatPanel };
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.8.0-beta.10",
4
+ "version": "0.8.0-beta.11",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -51,14 +51,14 @@
51
51
  "@dnd-kit/modifiers": "^9.0.0",
52
52
  "@dnd-kit/sortable": "^10.0.0",
53
53
  "@dnd-kit/utilities": "^3.2.2",
54
- "@sheetxl/grid-react": "^0.8.0-beta.10",
55
- "@sheetxl/io": "^0.8.0-beta.10",
56
- "@sheetxl/react": "^0.8.0-beta.10",
57
- "@sheetxl/scripting-react": "^0.8.0-beta.10",
58
- "@sheetxl/sdk": "^0.8.0-beta.10",
59
- "@sheetxl/utils": "^0.8.0-beta.10",
60
- "@sheetxl/utils-mui": "^0.8.0-beta.10",
61
- "@sheetxl/utils-react": "^0.8.0-beta.10",
54
+ "@sheetxl/grid-react": "^0.8.0-beta.11",
55
+ "@sheetxl/io": "^0.8.0-beta.11",
56
+ "@sheetxl/react": "^0.8.0-beta.11",
57
+ "@sheetxl/scripting-react": "^0.8.0-beta.11",
58
+ "@sheetxl/sdk": "^0.8.0-beta.11",
59
+ "@sheetxl/utils": "^0.8.0-beta.11",
60
+ "@sheetxl/utils-mui": "^0.8.0-beta.11",
61
+ "@sheetxl/utils-react": "^0.8.0-beta.11",
62
62
  "clsx": "^2.1.1",
63
63
  "csstype": "^3.2.3",
64
64
  "file-saver": "^2.0.5",
@@ -42,6 +42,102 @@
42
42
  "chart.category.pie": "Kreis",
43
43
  "chart.category.scatter": "Punkt (XY)",
44
44
  "chart.insertFallback": "Diagramm einfügen…",
45
+ "chart.pane.axis": "{side} ({kind}) Achse",
46
+ "chart.pane.axisKind.category": "Rubrik",
47
+ "chart.pane.axisKind.series": "Reihe",
48
+ "chart.pane.axisKind.value": "Wert",
49
+ "chart.pane.axisSide.horizontal": "Horizontale",
50
+ "chart.pane.axisSide.vertical": "Vertikale",
51
+ "chart.pane.downBars": "Negativabweichungsbalken",
52
+ "chart.pane.element": "Diagrammelement",
53
+ "chart.pane.element.allDataLabels": "Datenbeschriftungen",
54
+ "chart.pane.element.axisTitle": "{axis}, Titel",
55
+ "chart.pane.element.chartArea": "Diagrammbereich",
56
+ "chart.pane.element.dataLabel": "{point}, Datenbeschriftung",
57
+ "chart.pane.element.dataLabels": "{series}, Datenbeschriftungen",
58
+ "chart.pane.element.dataTable": "Datentabelle",
59
+ "chart.pane.element.dropLines": "Bezugslinien",
60
+ "chart.pane.element.group": "Diagrammgruppe {index}",
61
+ "chart.pane.element.hiLoLines": "Spannweitenlinien",
62
+ "chart.pane.element.legend": "Legende",
63
+ "chart.pane.element.legendEntry": "Legendeneintrag {index}",
64
+ "chart.pane.element.majorGridlines": "{axis}, Hauptgitternetz",
65
+ "chart.pane.element.marker": "{owner}, Markierung",
66
+ "chart.pane.element.minorGridlines": "{axis}, Hilfsgitternetz",
67
+ "chart.pane.element.plotArea": "Zeichnungsfläche",
68
+ "chart.pane.element.point": "{series}, Punkt {index}",
69
+ "chart.pane.element.series": "Reihe \"{name}\"",
70
+ "chart.pane.element.seriesLines": "Reihenlinien",
71
+ "chart.pane.element.title": "Diagrammtitel",
72
+ "chart.pane.element.trendline": "{series}, Trendlinie {index}",
73
+ "chart.pane.element.trendlineLabel": "{trendline}, Beschriftung",
74
+ "chart.pane.element.upDownBars": "Abweichungsbalken",
75
+ "chart.pane.element.xErrorBars": "{series}, X-Fehlerindikatoren",
76
+ "chart.pane.element.yErrorBars": "{series}, Y-Fehlerindikatoren",
77
+ "chart.pane.errorBars.amount": "Betrag",
78
+ "chart.pane.errorBars.both": "Beide",
79
+ "chart.pane.errorBars.cap": "Abschluss",
80
+ "chart.pane.errorBars.direction": "Richtung",
81
+ "chart.pane.errorBars.fixedValue": "Fester Wert",
82
+ "chart.pane.errorBars.minus": "Minus",
83
+ "chart.pane.errorBars.percent": "Prozentsatz",
84
+ "chart.pane.errorBars.plus": "Plus",
85
+ "chart.pane.errorBars.stDev": "Standardabweichung",
86
+ "chart.pane.errorBars.stError": "Standardfehler",
87
+ "chart.pane.errorBars.type": "Fehlerbetrag",
88
+ "chart.pane.gapWidth": "Abstandsbreite",
89
+ "chart.pane.labels.bestFit": "Optimale Anpassung",
90
+ "chart.pane.labels.category": "Rubrikenname",
91
+ "chart.pane.labels.center": "Zentriert",
92
+ "chart.pane.labels.insideBase": "Innerhalb der Basis",
93
+ "chart.pane.labels.insideEnd": "Am Ende innerhalb",
94
+ "chart.pane.labels.legendKey": "Legendensymbol",
95
+ "chart.pane.labels.outsideEnd": "Am Ende außerhalb",
96
+ "chart.pane.labels.percentage": "Prozentsatz",
97
+ "chart.pane.labels.series": "Reihenname",
98
+ "chart.pane.labels.value": "Wert",
99
+ "chart.pane.maximum": "Maximum",
100
+ "chart.pane.minimum": "Minimum",
101
+ "chart.pane.numberFormat": "Zahlenformat",
102
+ "chart.pane.options": "Optionen",
103
+ "chart.pane.overlap": "Reihenachsenüberlappung",
104
+ "chart.pane.overlay": "Über dem Diagramm anzeigen",
105
+ "chart.pane.position": "Position",
106
+ "chart.pane.reverse": "Werte in umgekehrter Reihenfolge",
107
+ "chart.pane.roundedCorners": "Abgerundete Ecken",
108
+ "chart.pane.secondary": "Sekundäre {label}",
109
+ "chart.pane.secondaryAxis": "Auf der Sekundärachse zeichnen",
110
+ "chart.pane.side.bottom": "Unten",
111
+ "chart.pane.side.corner": "Rechts oben",
112
+ "chart.pane.side.left": "Links",
113
+ "chart.pane.side.right": "Rechts",
114
+ "chart.pane.side.top": "Oben",
115
+ "chart.pane.smooth": "Linie glätten",
116
+ "chart.pane.table.horizontal": "Horizontale Rahmen",
117
+ "chart.pane.table.outline": "Gliederung",
118
+ "chart.pane.table.vertical": "Vertikale Rahmen",
119
+ "chart.pane.text": "Text",
120
+ "chart.pane.text.bold": "Fett",
121
+ "chart.pane.text.italic": "Kursiv",
122
+ "chart.pane.text.lineDouble": "Doppelt",
123
+ "chart.pane.text.lineNone": "Ohne",
124
+ "chart.pane.text.lineSingle": "Einfach",
125
+ "chart.pane.text.strike": "Durchgestrichen",
126
+ "chart.pane.text.underline": "Unterstrichen",
127
+ "chart.pane.titleText": "Text",
128
+ "chart.pane.trendline.backward": "Rückwärts",
129
+ "chart.pane.trendline.equation": "Formel im Diagramm anzeigen",
130
+ "chart.pane.trendline.exponential": "Exponentiell",
131
+ "chart.pane.trendline.forward": "Vorwärts",
132
+ "chart.pane.trendline.linear": "Linear",
133
+ "chart.pane.trendline.logarithmic": "Logarithmisch",
134
+ "chart.pane.trendline.movingAverage": "Gleitender Durchschnitt",
135
+ "chart.pane.trendline.polynomial": "Polynomisch",
136
+ "chart.pane.trendline.power": "Potenz",
137
+ "chart.pane.trendline.rSquared": "Bestimmtheitsmaß im Diagramm darstellen",
138
+ "chart.pane.trendline.type": "Trendlinie",
139
+ "chart.pane.upBars": "Positivabweichungsbalken",
140
+ "chart.pane.visible": "Anzeigen",
45
141
  "checklist.blank": "(Leer)",
46
142
  "checklist.spaces": "(Leerzeichen ×{count})",
47
143
  "color.automatic": "Automatisch",
@@ -453,6 +549,7 @@
453
549
  "format.indent": "Einzug",
454
550
  "format.indentUnit": "Zeichen",
455
551
  "format.merge": "Verbinden",
552
+ "format.noWorksheet": "Wählen Sie ein Arbeitsblatt aus, um seine Zellen zu formatieren.",
456
553
  "format.orientation": "Textdrehung",
457
554
  "format.overflow": "Textüberlauf",
458
555
  "format.preview": "Vorschau",