@sheetxl/studio-mui 1.0.5 → 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.
Files changed (148) hide show
  1. package/browser/esm/{ePpKy03kKJVlSVTe.mjs → 6wAcMpoIZS1ffzqR.mjs} +3 -3
  2. package/browser/esm/{BPvVycga6_ukFjmo.mjs → AVMBYVWPe170RO8d.mjs} +20 -20
  3. package/browser/esm/{DThDfv3f2iMSjT53.mjs → B2k09pbNHOie-ZPU.mjs} +5 -5
  4. package/browser/esm/B5hj7BR72rs3Xx2-.mjs +40 -0
  5. package/browser/esm/{CPaacOpodhMft_HZ.mjs → BK0H9A2QjD4YqPxq.mjs} +2 -2
  6. package/browser/esm/{zvoxJTExywdfgNRc.mjs → BMtR4PaoNnEhVh2U.mjs} +243 -245
  7. package/browser/esm/{DOKtLrUbVlvQxv4H.mjs → BVQX7HEZNPIvf0Bg.mjs} +1 -1
  8. package/browser/esm/BZWyHJnsP5yHfByl.mjs +461 -0
  9. package/browser/esm/{B6-hMCdKZvyVLr0H.mjs → BaYDGaXi_5fNEPo1.mjs} +1 -1
  10. package/browser/esm/{7yj4dvdTrP3TJcG2.mjs → BgOevzKxdIm3FqSz.mjs} +4 -4
  11. package/browser/esm/{B-BP7YC6OqOv5MV4.mjs → BgvcXlX-fe99mlfa.mjs} +1 -1
  12. package/browser/esm/{DKVZo-UN8IISuX4Y.mjs → BmJRmCarQ2Y_DhcS.mjs} +6 -6
  13. package/browser/esm/{bBvScRhjFIhLO-BQ.mjs → BnIfAdE8Qnu8RF3t.mjs} +1 -1
  14. package/browser/esm/{BRtyp4rO-zBQUZou.mjs → Bu4IunF89gqzLc6A.mjs} +2 -2
  15. package/browser/esm/{BTvmDvFq0AmcpyAD.mjs → BvvD5BVF5uSL-2Ow.mjs} +2 -2
  16. package/browser/esm/{VtQjtk60kuTE6s0Z.mjs → Bzr0CzpORAOD9X-l.mjs} +1 -1
  17. package/browser/esm/{Bqz9mx_1Lg0aSHGm.mjs → C-lKdgOAbn4Ycu7e.mjs} +2 -2
  18. package/browser/esm/{DryZ4M6NKZEfr7g_.mjs → C211u9yUXa4149g9.mjs} +1 -1
  19. package/browser/esm/{C8Lqnn-28XkX0Nka.mjs → C7RPgX_8hKN1Umxm.mjs} +2 -2
  20. package/browser/esm/{BncHnyZbePCwr9Eo.mjs → C9cBnewCaYFf2JV6.mjs} +21 -22
  21. package/browser/esm/{R0acIC-n-z00Zc8M.mjs → CA42_0vpQwF292tA.mjs} +1 -1
  22. package/browser/esm/{hSCeagPj7N_7GznP.mjs → CAbY1N8X3Iryy2XC.mjs} +4 -4
  23. package/browser/esm/{C7HaLVp6sci5ODXI.mjs → CD6iCHysAki3ui3u.mjs} +4 -4
  24. package/browser/esm/{CvbBPZFXJWgWy-WO.mjs → CFUur1yDoVOJMuo5.mjs} +1 -1
  25. package/browser/esm/{BK1rW101-KwC1O3y.mjs → CHb2gapathcPfhdM.mjs} +5 -5
  26. package/browser/esm/{C_-UmBzcMFoDo0fX.mjs → CIZh3NmE8QG5ZkiA.mjs} +2 -2
  27. package/browser/esm/{iK7GQTGlybnAwDFn.mjs → CImvd-NxbJGZOozE.mjs} +1 -1
  28. package/browser/esm/{Dbg4a76nvHk2YiQX.mjs → CO-AxUDR6qjjgpyK.mjs} +2 -2
  29. package/browser/esm/CQ1ArTuEvBmc7W5I.mjs +695 -0
  30. package/browser/esm/{BztoCStIl9cOlMP2.mjs → CVNzlTdizLlhU05M.mjs} +2 -2
  31. package/browser/esm/{DBsWN0XGhfhzjKYP.mjs → CXwkm9x8MkCxPz74.mjs} +1 -1
  32. package/browser/esm/{CfVmUxioa6e4pJgE.mjs → CZIV7UuyM5VGNrJT.mjs} +4 -4
  33. package/browser/esm/{C0EVQMZCECx8ZtfT.mjs → CdK1lF_PdSw6YfAo.mjs} +1 -1
  34. package/browser/esm/{Cg0gGXUOW_fkgnny.mjs → CpgoYQ3P-S7njA7p.mjs} +2 -2
  35. package/browser/esm/{CUVpARqLbIk1YJpR.mjs → CqEyDFDlQ75w1c41.mjs} +2 -2
  36. package/browser/esm/{D6uC2TMlHyJaRxfz.mjs → CqIX3rp_vI2S2KbN.mjs} +2 -2
  37. package/browser/esm/{CeVY5B3Jxs6uNbw_.mjs → Csmz2j1S5pk-J0B3.mjs} +2 -2
  38. package/browser/esm/{BPyB91W7jUDKOF7m.mjs → CsuFocZfRucugR3q.mjs} +1153 -922
  39. package/browser/esm/{C-J4c4cA_UafY5j-.mjs → Cw6wZyiZkwn9DPZn.mjs} +193 -105
  40. package/browser/esm/{CD1F2JZ9VNb4fMFB.mjs → D91G6sYfKgwC24dQ.mjs} +1 -1
  41. package/browser/esm/{D834tBZr2uiui3Yl.mjs → DF_ssRdRHuBueJgX.mjs} +89 -102
  42. package/browser/esm/{BwcKRrn0FbEQXA_w.mjs → DJaMl_5NGyq62zwW.mjs} +1 -1
  43. package/browser/esm/DLixDE7fzzurotzQ.mjs +826 -0
  44. package/browser/esm/{GfW7QFtTUyK1yS0P.mjs → DM86XhEF4qmUnjuK.mjs} +4 -4
  45. package/browser/esm/{RRwtR6zhJEHrCP8n.mjs → DNXDqUO4_S_N8sSC.mjs} +2 -2
  46. package/browser/esm/{CIdbrUCRQ3XRp27_.mjs → DfrMUwmPoZFEFJFk.mjs} +1 -1
  47. package/browser/esm/{Rx8jKs1hNt5rF1o6.mjs → Dn3ur1I_S9SlR8vu.mjs} +1 -1
  48. package/browser/esm/{BZJa6r9ArcmluwF7.mjs → IUt6EgxYCpZe9iCH.mjs} +2 -2
  49. package/browser/esm/{BxdEhMqG0AJfgYo_.mjs → JNoXh3IYri5h1W3Y.mjs} +1 -1
  50. package/browser/esm/{CdWTSkoOn2S7LbgA.mjs → LZ2X5C1kjiwUCDGz.mjs} +2 -2
  51. package/browser/esm/{CzKOC7ykGeweE8YO.mjs → MSkt-6o2ZLEiAbDl.mjs} +1 -1
  52. package/browser/esm/{BJdjpkMLIVz2dfey.mjs → bQOt-2VGBciMnvp_.mjs} +3 -3
  53. package/browser/esm/{Dl3HN6jGh1DIosIz.mjs → drMcpHj_xCQ0KxuA.mjs} +4 -4
  54. package/browser/esm/{CKN_49irWz3yBOic.mjs → g-ScvvLFu66BzoGI.mjs} +2 -2
  55. package/browser/esm/index.mjs +299 -299
  56. package/browser/esm/{BablQ60b_Sr7yt0c.mjs → j6NYTR7qK3Ra-ctk.mjs} +2 -2
  57. package/browser/esm/qSdXw8S3Pv-_PPNl.mjs +210 -0
  58. package/browser/esm/{-JkustapYpJLIlTC.mjs → r8gxfS-mY5qhTMtJ.mjs} +2 -2
  59. package/browser/esm/{L2h5hAhioUPka05m.mjs → ro5VSIHWH1Nehr75.mjs} +1 -1
  60. package/browser/esm/tfUleloRF2hBRjjZ.mjs +996 -0
  61. package/browser/esm/vTlYAw0bvWP8B4jg.mjs +103 -0
  62. package/browser/esm/{AXga1X4C6fqsi-pa.mjs → vzJavAz2onbnB0zm.mjs} +1183 -1204
  63. package/browser/esm/{vTrvnXbLCCRg1M_Z.mjs → xaG6CESboBdgd5SL.mjs} +3 -3
  64. package/browser/esm/{CVI6kZdcPa6NJ2QN.mjs → ze358yTiZmVH9_vX.mjs} +6 -4
  65. package/node/esm/5WNL9ztJdLI0VLJ7.mjs +997 -0
  66. package/node/esm/{BE8tFJNzJd21ET8u.mjs → 8aFKkKyEL5n7sJAn.mjs} +12 -12
  67. package/node/esm/{D9h-5-KAL05_Ky2c.mjs → 9Yzu2QTWzvPBNvc4.mjs} +1 -1
  68. package/node/esm/{BKNq-LKfmWLM8xN8.mjs → BDGax8JuzpXDLe1U.mjs} +1 -1
  69. package/node/esm/{Dfq_WQN4R9_EI6mT.mjs → BMuPM5U4Q2kQVYTt.mjs} +251 -253
  70. package/node/esm/B_XE-SYyFRwWgVyQ.mjs +2070 -0
  71. package/node/esm/{Dn886fw8cN-Js_4o.mjs → Bap-XMVZ0X80-MNV.mjs} +2 -2
  72. package/node/esm/{BxiLu3gZqvEwm0MC.mjs → BghhH54dXAqciBpw.mjs} +2 -2
  73. package/node/esm/{5w-_-2HcuZN2IilY.mjs → Bgsi1G5RDBa4Rnmh.mjs} +1 -1
  74. package/node/esm/{CZZkkEXKtF-XmMg_.mjs → Bj6wKB1N--BJ0A7u.mjs} +1 -1
  75. package/node/esm/{4333CfN0xFlZJlzT.mjs → Bp6DyaGr7Ah4mCbj.mjs} +2 -2
  76. package/node/esm/BxIw0JqQD7Ibk44S.mjs +103 -0
  77. package/node/esm/{DiZJjw3IrOJhpe5p.mjs → C6J3DXYnvgXi5m4u.mjs} +1 -1
  78. package/node/esm/{D8Nhs3gz4-jRbvJR.mjs → CAXzH3lCFKI5mhsY.mjs} +2 -2
  79. package/node/esm/CBpG1x4pS6pNfRR1.mjs +461 -0
  80. package/node/esm/{C7-xjC8Lj2O146i0.mjs → CDx7cgKCqLflEubV.mjs} +1 -1
  81. package/node/esm/{wMu6qavkExEvCP9w.mjs → CFL1BiUsTE9X1-c8.mjs} +24 -24
  82. package/node/esm/{BFSKvA0b7rgbSW6P.mjs → CHBfOuyPAMiTojvS.mjs} +97 -110
  83. package/node/esm/{DzDcGqDCrlXyZGFT.mjs → CJIgRvLMiUJG79DB.mjs} +1 -1
  84. package/node/esm/{OIr4GV8spsS0lHX8.mjs → CcbjmWOlODDY8gGF.mjs} +1 -1
  85. package/node/esm/CdrSmZ9WDzkEGAXL.mjs +695 -0
  86. package/node/esm/{DxONr2LD1x7bwMGg.mjs → Ck0jN6hnefC5Hbsk.mjs} +22 -22
  87. package/node/esm/{B8w-DV7qSRfQye14.mjs → CkGQNbOwGQPWEcUf.mjs} +2 -2
  88. package/node/esm/{CUDMxAfvU8oooK2c.mjs → D283LXrMqi3exI_l.mjs} +1 -1
  89. package/node/esm/DH0tw27cVxmy7-AI.mjs +40 -0
  90. package/node/esm/{Calh2yf8E7k7eyxM.mjs → DJ4lhPXDGigmgQ-y.mjs} +2 -2
  91. package/node/esm/{Rl3tQd58HLEsY11C.mjs → DUZYSELfaHMSnDU2.mjs} +1 -1
  92. package/node/esm/{CsCU9lo125xnF_Ca.mjs → DZYzjxDF58TKD0xV.mjs} +2 -2
  93. package/node/esm/{Bz5j26qH_sdjuoGi.mjs → Debl1EJrMSlRwGcN.mjs} +2 -2
  94. package/node/esm/{DlFptlPZHQuBgG50.mjs → Dga-nEOi0B5TjgH6.mjs} +148 -148
  95. package/node/esm/{DLvtpSUsavFrtiw5.mjs → Diszdr1X5yDuuIzT.mjs} +1 -1
  96. package/node/esm/{D6KPG_DnQJRP4iGb.mjs → Dms4poPA6WOC4jyK.mjs} +1 -1
  97. package/node/esm/{B-CirwhCWSk3r-uN.mjs → DnjxhVMqfBhfsNHj.mjs} +14 -14
  98. package/node/esm/{Bj1JsBoPHXCz4fFP.mjs → DsoWGkhZNfvhmpK-.mjs} +2 -2
  99. package/node/esm/DyKgKDqbquskgXEA.mjs +828 -0
  100. package/node/esm/{XEQfvW0ujUY6vUoF.mjs → DzZb-LzjScchWCpk.mjs} +66 -67
  101. package/node/esm/{CEblCNurnWlc2SK0.mjs → MvXs13X1leYt7rBb.mjs} +2 -2
  102. package/node/esm/{D0ouF5sfJzhQUuQg.mjs → SBp59gHxCkFpvNwi.mjs} +1 -1
  103. package/node/esm/{B2ba9oxCLDj7q9Fz.mjs → iJrkLXWLGxVhCmtE.mjs} +1 -1
  104. package/node/esm/index.mjs +3294 -3031
  105. package/node/esm/{5cll_oe5x8KteiZX.mjs → l0liY9jxGCFXsxNX.mjs} +1 -1
  106. package/node/esm/{BzEIi_Iy_4PrcaE_.mjs → mhPcr4NaFejGRG5p.mjs} +1 -1
  107. package/node/esm/{CwfKrba55FGBz2Jb.mjs → vfgV7wwOvzh9iYjc.mjs} +1 -1
  108. package/package.json +9 -9
  109. package/resources/locales/de/groups.cmd.json +4 -6
  110. package/resources/locales/de/ui.msg.json +164 -3
  111. package/resources/locales/en/groups.cmd.json +4 -6
  112. package/resources/locales/en/ui.msg.json +164 -3
  113. package/types/src/anomalies/AnomaliesCommands.d.ts +1 -1
  114. package/types/src/chart/ChartDetailsPanel.d.ts +34 -0
  115. package/types/src/chart/ChartDetailsTaskPane.d.ts +9 -0
  116. package/types/src/chart/ChartFormatPanel.d.ts +12 -14
  117. package/types/src/chart/command/ChartColorsCommandButton.d.ts +54 -0
  118. package/types/src/chart/command/ChartStyleCommandButton.d.ts +64 -0
  119. package/types/src/chart/command/InsertChartCommandButton.d.ts +15 -0
  120. package/types/src/chart/command/index.d.ts +2 -0
  121. package/types/src/chart/format/ChartElementFormat.d.ts +54 -0
  122. package/types/src/chart/pane/ChartPaneModel.d.ts +134 -0
  123. package/types/src/chart/pane/ChartPaneRow.d.ts +77 -0
  124. package/types/src/color/ColorSetSwatch.d.ts +34 -0
  125. package/types/src/color/index.d.ts +1 -0
  126. package/types/src/command/NumberFormatQuickButtons.d.ts +1 -1
  127. package/types/src/format/FillPanel.d.ts +1 -3
  128. package/types/src/format/FormatPanelParts.d.ts +2 -2
  129. package/types/src/format/FormatPlugin.d.ts +2 -2
  130. package/types/src/format/FormatTaskPane.d.ts +4 -10
  131. package/types/src/format/LinePanel.d.ts +0 -2
  132. package/types/src/format/editor/FormatEditor.d.ts +36 -0
  133. package/types/src/format/editor/FormatField.d.ts +97 -0
  134. package/types/src/format/editor/FormatFields.d.ts +20 -0
  135. package/types/src/format/editor/index.d.ts +4 -0
  136. package/types/src/format/index.d.ts +1 -0
  137. package/types/src/format/useFormatSelection.d.ts +0 -2
  138. package/types/src/index.d.ts +1 -1
  139. package/types/src/shape/ShapeFormatPanel.d.ts +3 -7
  140. package/types/src/workbook/DefaultRenderers.d.ts +7 -1
  141. package/browser/esm/7afcXNPsXUui-iRB.mjs +0 -517
  142. package/browser/esm/CeElTSJMZukT5ODA.mjs +0 -516
  143. package/browser/esm/DJ0FThW4hRGIvy2O.mjs +0 -72
  144. package/node/esm/BGlQ9Ae_1Kf9chO-.mjs +0 -1831
  145. package/node/esm/CTibYRwgtHRsGojh.mjs +0 -519
  146. package/node/esm/D2GNY72eMSKe5Gt7.mjs +0 -516
  147. package/node/esm/DrpnqRfDHbua0oN6.mjs +0 -73
  148. package/types/src/studio/StudioSplitPane.d.ts +0 -60
@@ -0,0 +1,996 @@
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 { t as e } from "./vTlYAw0bvWP8B4jg.mjs";
8
+ import { r as t } from "./BZWyHJnsP5yHfByl.mjs";
9
+ import { TaskPaneKey as n } from "@sheetxl/react";
10
+ import { DynamicIcon as r, useCommands as i, useTranslator as a } from "@sheetxl/utils-react";
11
+ import { memo as o, useEffect as s, useReducer as c, useState as l } from "react";
12
+ import { jsx as u } from "react/jsx-runtime";
13
+ import { IconButton as d, Tooltip as f } from "@mui/material";
14
+ var p = "fillLine", m = "text", h = "labels", g = "marker", _ = "label", v = "options", y = /* @__PURE__ */ new Map(), b = (e, t, n, r, i) => ({
15
+ type: "flag",
16
+ key: e,
17
+ label: t,
18
+ get: n,
19
+ set: r,
20
+ ...i
21
+ }), x = (e, t, n) => {
22
+ let r = n?.key ?? "", i = [];
23
+ return n?.lineOnly || i.push({
24
+ type: "fill",
25
+ key: `${r}fill`,
26
+ label: e("shape.pane.fill"),
27
+ heading: n?.heading,
28
+ style: t
29
+ }), i.push({
30
+ type: "line",
31
+ key: `${r}line`,
32
+ label: e("shape.pane.line"),
33
+ heading: n?.lineOnly ? n?.heading : void 0,
34
+ style: t
35
+ }), i;
36
+ }, S = (e, t, n) => {
37
+ if (!t) return [];
38
+ let r = [];
39
+ return n?.textOnly || r.push({
40
+ key: p,
41
+ label: e(n?.lineOnly ? "format.tab.line" : "format.tab.fillLine"),
42
+ fields: () => x(e, t, n)
43
+ }), t.isITextBoxStyle && r.push({
44
+ key: m,
45
+ label: e("format.tab.text"),
46
+ fields: () => [{
47
+ type: "font",
48
+ key: "font",
49
+ label: e("chart.pane.text"),
50
+ font: t.getFont()
51
+ }]
52
+ }), r;
53
+ }, C = (e, t) => ((e, t, n) => n().length > 0 ? [{
54
+ key: e,
55
+ label: t,
56
+ fields: n
57
+ }] : [])(v, e("format.tab.options"), t), w = (e) => ({
58
+ top: e("chart.pane.side.top"),
59
+ bottom: e("chart.pane.side.bottom"),
60
+ left: e("chart.pane.side.left"),
61
+ right: e("chart.pane.side.right")
62
+ }), T = [
63
+ "top",
64
+ "bottom",
65
+ "left",
66
+ "right",
67
+ "corner"
68
+ ], E = [
69
+ "center",
70
+ "insideEnd",
71
+ "insideBase",
72
+ "outsideEnd",
73
+ "left",
74
+ "right",
75
+ "top",
76
+ "bottom",
77
+ "bestFit"
78
+ ], D = [
79
+ "linear",
80
+ "exponential",
81
+ "logarithmic",
82
+ "polynomial",
83
+ "power",
84
+ "movingAverage"
85
+ ], O = [
86
+ "fixedValue",
87
+ "percent",
88
+ "stDev",
89
+ "stError"
90
+ ], k = [
91
+ "both",
92
+ "plusValues",
93
+ "minusValues"
94
+ ], A = [
95
+ "automatic",
96
+ "none",
97
+ "square",
98
+ "diamond",
99
+ "triangle",
100
+ "x",
101
+ "star",
102
+ "dot",
103
+ "dash",
104
+ "circle",
105
+ "plus"
106
+ ], j = [
107
+ "none",
108
+ "inside",
109
+ "outside",
110
+ "cross"
111
+ ], M = [
112
+ "nextToAxis",
113
+ "high",
114
+ "low",
115
+ "none"
116
+ ], N = [
117
+ "none",
118
+ "hundreds",
119
+ "thousands",
120
+ "tenThousands",
121
+ "hundredThousands",
122
+ "millions",
123
+ "tenMillions",
124
+ "hundredMillions",
125
+ "billions",
126
+ "trillions",
127
+ "custom"
128
+ ], P = ["linear", "logarithmic"], F = [
129
+ "days",
130
+ "months",
131
+ "years"
132
+ ], I = [
133
+ "automatic",
134
+ "textAxis",
135
+ "dateAxis"
136
+ ], L = [
137
+ ", ",
138
+ "; ",
139
+ ". ",
140
+ "\n",
141
+ " "
142
+ ], R = [
143
+ "center",
144
+ "insideEnd",
145
+ "insideBase",
146
+ "outsideEnd"
147
+ ], z = [
148
+ "center",
149
+ "insideEnd",
150
+ "insideBase"
151
+ ], B = [
152
+ "center",
153
+ "left",
154
+ "right",
155
+ "top",
156
+ "bottom"
157
+ ], V = [
158
+ "center",
159
+ "insideEnd",
160
+ "outsideEnd",
161
+ "bestFit"
162
+ ], H = [
163
+ "standard",
164
+ "stacked",
165
+ "percentStacked"
166
+ ], U = (e, t, n, r) => {
167
+ let i = n(), a = [{
168
+ type: "choice",
169
+ key: "direction",
170
+ label: e("chart.format.labels.direction"),
171
+ options: t ? [
172
+ "auto",
173
+ "angle",
174
+ "vertical"
175
+ ] : ["angle", "vertical"],
176
+ labels: {
177
+ auto: e("chart.format.labels.direction.auto"),
178
+ angle: e("chart.format.labels.direction.angle"),
179
+ vertical: e("chart.format.labels.direction.vertical")
180
+ },
181
+ get: () => typeof i == "number" ? "angle" : i,
182
+ set: (e) => {
183
+ r(e === "angle" ? 0 : e);
184
+ }
185
+ }];
186
+ return typeof i == "number" && a.push({
187
+ type: "number",
188
+ key: "angle",
189
+ label: e("chart.format.labels.angle"),
190
+ min: -90,
191
+ max: 90,
192
+ get: () => i,
193
+ set: (e) => {
194
+ e !== null && r(e);
195
+ }
196
+ }), a;
197
+ }, W = (e) => /^(line|xyscatter|radar)/.test(e) && e !== "radarFilled", G = (e, t) => ({
198
+ key: g,
199
+ label: e("chart.format.tab.marker"),
200
+ fields: () => ((e, t) => [
201
+ {
202
+ type: "choice",
203
+ key: "symbol",
204
+ label: e("chart.pane.marker.symbol"),
205
+ options: A,
206
+ labels: {
207
+ automatic: e("chart.pane.marker.automatic"),
208
+ none: e("chart.pane.marker.none"),
209
+ square: e("chart.pane.marker.square"),
210
+ diamond: e("chart.pane.marker.diamond"),
211
+ triangle: e("chart.pane.marker.triangle"),
212
+ x: e("chart.pane.marker.x"),
213
+ star: e("chart.pane.marker.star"),
214
+ dot: e("chart.pane.marker.dot"),
215
+ dash: e("chart.pane.marker.dash"),
216
+ circle: e("chart.pane.marker.circle"),
217
+ plus: e("chart.pane.marker.plus")
218
+ },
219
+ get: () => t.getSymbol(),
220
+ set: (e) => {
221
+ t.setSymbol(e);
222
+ }
223
+ },
224
+ {
225
+ type: "number",
226
+ key: "size",
227
+ label: e("chart.pane.marker.size"),
228
+ min: 2,
229
+ max: 72,
230
+ get: () => t.getSize(),
231
+ set: (e) => {
232
+ e !== null && t.setSize(e);
233
+ }
234
+ },
235
+ ...x(e, t.getStyle(), { key: "marker." })
236
+ ])(e, t)
237
+ }), K = (e, t, n) => {
238
+ let r = t.isIDataLabels ? t : null, i = [
239
+ b("value", e("chart.pane.labels.value"), () => t.getShowValue(), (e) => {
240
+ t.setShowValue(e);
241
+ }),
242
+ b("category", e("chart.pane.labels.category"), () => t.getShowCategoryName(), (e) => {
243
+ t.setShowCategoryName(e);
244
+ }),
245
+ b("series", e("chart.pane.labels.series"), () => t.getShowSeriesName(), (e) => {
246
+ t.setShowSeriesName(e);
247
+ })
248
+ ];
249
+ if ((/^(pie|doughnut|3DPie|combo)/.test(n) || /OfPie$/.test(n) || t.getShowPercentage()) && i.push(b("percentage", e("chart.pane.labels.percentage"), () => t.getShowPercentage(), (e) => {
250
+ t.setShowPercentage(e);
251
+ })), r && /^bubble/.test(n) && i.push(b("bubbleSize", e("chart.format.labels.bubbleSize"), () => r.getShowBubbleSize(), (e) => {
252
+ r.setShowBubbleSize(e);
253
+ })), i.push(b("legendKey", e("chart.pane.labels.legendKey"), () => t.getShowLegendKey(), (e) => {
254
+ t.setShowLegendKey(e);
255
+ })), r) {
256
+ i.push({
257
+ type: "formula",
258
+ key: "fromCells",
259
+ label: e("chart.format.labels.fromCells"),
260
+ get: () => r.getValueFromCellsFormula() ?? "",
261
+ set: (e) => {
262
+ r.setValueFromCells(e.trim().replace(/^=/, "") || null);
263
+ }
264
+ });
265
+ let t = r.getSeparator();
266
+ i.push({
267
+ type: "choice",
268
+ key: "separator",
269
+ label: e("chart.format.labels.separator"),
270
+ options: L.includes(t) ? L : [t, ...L],
271
+ labels: {
272
+ ", ": e("chart.format.labels.separator.comma"),
273
+ "; ": e("chart.format.labels.separator.semicolon"),
274
+ ". ": e("chart.format.labels.separator.period"),
275
+ "\n": e("chart.format.labels.separator.newLine"),
276
+ " ": e("chart.format.labels.separator.space")
277
+ },
278
+ get: () => t,
279
+ set: (e) => {
280
+ r.setSeparator(e);
281
+ }
282
+ });
283
+ }
284
+ let a = t.getPosition(), o = ((e) => /OfPie$/.test(e) || /^(pie|3DPie)/.test(e) ? V : /^(3D|area|doughnut|radar|surface)/.test(e) ? [] : /^(column|bar)Stacked/.test(e) ? z : /^(column|bar)/.test(e) ? R : /^(line|stock|xyscatter|bubble)/.test(e) ? B : E)(n);
285
+ return o.length > 0 && i.push({
286
+ type: "choice",
287
+ key: "position",
288
+ label: e("chart.pane.position"),
289
+ options: o.includes(a) ? o : [a, ...o],
290
+ labels: {
291
+ ...w(e),
292
+ center: e("chart.pane.labels.center"),
293
+ insideEnd: e("chart.pane.labels.insideEnd"),
294
+ insideBase: e("chart.pane.labels.insideBase"),
295
+ outsideEnd: e("chart.pane.labels.outsideEnd"),
296
+ bestFit: e("chart.pane.labels.bestFit")
297
+ },
298
+ get: () => a,
299
+ set: (e) => {
300
+ t.setPosition(e);
301
+ }
302
+ }), r && i.push(...U(e, !1, () => r.getTextOrientation(), (e) => {
303
+ e !== "auto" && r.setTextOrientation(e);
304
+ })), i.push({
305
+ type: "text",
306
+ key: "numberFormat",
307
+ label: e("chart.pane.numberFormat"),
308
+ heading: e("chart.format.labels.number"),
309
+ get: () => t.getNumberFormat() ?? "",
310
+ set: (e) => {
311
+ t.setNumberFormat(e || null);
312
+ }
313
+ }), r && i.push(b("linked", e("chart.format.labels.linked"), () => r.getLinkNumberFormat(), (e) => {
314
+ r.setLinkNumberFormat(e);
315
+ })), i;
316
+ }, q = (e, { t }) => S(t, e.getStyle(), { lineOnly: !0 }), J = (e, { t }) => [...S(t, e.getStyle?.()), ...C(t, () => [b("overlay", t("chart.pane.overlay"), () => e.getOverlay(), (t) => {
317
+ e.setOverlay(t);
318
+ })])], Y = !1;
319
+ function X() {
320
+ if (Y) return;
321
+ Y = !0;
322
+ let e = (e, t) => {
323
+ y.has(e) || y.set(e, t);
324
+ };
325
+ e("chartArea", (e, { t }) => [...S(t, e.getStyle()), ...C(t, () => [b("roundedCorners", t("chart.pane.roundedCorners"), () => e.getRoundedCorners(), (t) => {
326
+ e.setRoundedCorners(t);
327
+ })])]), e("plotArea", (e, { t }) => S(t, e.getStyle())), e("title", J), e("axisTitle", J), e("legend", (e, { t }) => [...S(t, e.getStyle?.()), ...C(t, () => [{
328
+ type: "choice",
329
+ key: "position",
330
+ label: t("chart.pane.position"),
331
+ options: T,
332
+ labels: {
333
+ ...w(t),
334
+ corner: t("chart.pane.side.corner")
335
+ },
336
+ get: () => e.getPosition(),
337
+ set: (t) => {
338
+ e.setPosition(t);
339
+ }
340
+ }, b("overlay", t("chart.pane.overlay"), () => e.getOverlay(), (t) => {
341
+ e.setOverlay(t);
342
+ })])]), e("legendEntry", (e, { t }) => S(t, e.getStyle(), { textOnly: !0 })), e("dataTable", (e, { t }) => [...S(t, e.getStyle?.()), ...C(t, () => [
343
+ b("legendKey", t("chart.pane.labels.legendKey"), () => e.getShowLegendKey(), (t) => {
344
+ e.setShowLegendKey(t);
345
+ }),
346
+ b("horizontal", t("chart.pane.table.horizontal"), () => e.getShowHorizontalBorder(), (t) => {
347
+ e.setShowHorizontalBorder(t);
348
+ }),
349
+ b("vertical", t("chart.pane.table.vertical"), () => e.getShowVerticalBorder(), (t) => {
350
+ e.setShowVerticalBorder(t);
351
+ }),
352
+ b("outline", t("chart.pane.table.outline"), () => e.getShowOutlineBorder(), (t) => {
353
+ e.setShowOutlineBorder(t);
354
+ })
355
+ ])]), e("axis", (e, { t }) => [
356
+ ...S(t, e.getStyle?.()).filter((e) => e.key !== m),
357
+ {
358
+ key: h,
359
+ label: t("chart.format.tab.labels"),
360
+ fields: () => ((e, t) => {
361
+ let n = t.getKind(), r = [{
362
+ type: "choice",
363
+ key: "tickLabelPosition",
364
+ label: e("chart.format.labels.position"),
365
+ options: M,
366
+ labels: {
367
+ nextToAxis: e("chart.format.labels.position.nextToAxis"),
368
+ high: e("chart.format.labels.position.high"),
369
+ low: e("chart.format.labels.position.low"),
370
+ none: e("chart.format.labels.position.none")
371
+ },
372
+ get: () => t.getTickLabelPosition(),
373
+ set: (e) => {
374
+ t.setTickLabelPosition(e);
375
+ }
376
+ }];
377
+ if (n !== "category" && n !== "date" || r.push({
378
+ type: "number",
379
+ key: "offset",
380
+ label: e("chart.format.labels.offset"),
381
+ min: 0,
382
+ max: 1e3,
383
+ get: () => t.getOffset() ?? 100,
384
+ set: (e) => {
385
+ e !== null && t.setOffset(e);
386
+ }
387
+ }), n === "category" && r.push({
388
+ type: "number",
389
+ key: "tickLabelSpacing",
390
+ label: e("chart.format.labels.interval"),
391
+ min: 1,
392
+ max: 1e6,
393
+ auto: e("chart.format.auto"),
394
+ get: () => t.getTickLabelSpacing(),
395
+ set: (e) => {
396
+ t.setTickLabelSpacing(e);
397
+ }
398
+ }), n === "category" && r.push(b("multiLevel", e("chart.format.axis.multiLevel"), () => t.getMultiLevel(), (e) => {
399
+ t.setMultiLevel(e);
400
+ })), r.push(...U(e, !0, () => t.getTextOrientation(), (e) => {
401
+ t.setTextOrientation(e);
402
+ })), n !== "series" && r.push({
403
+ type: "text",
404
+ key: "numberFormat",
405
+ label: e("chart.pane.numberFormat"),
406
+ heading: e("chart.format.labels.number"),
407
+ get: () => t.getNumberFormat() ?? "",
408
+ set: (e) => {
409
+ e ? t.setNumberFormat(e) : t.setLinkNumberFormat(!0);
410
+ }
411
+ }, b("linked", e("chart.format.labels.linked"), () => t.getLinkNumberFormat(), (e) => {
412
+ t.setLinkNumberFormat(e);
413
+ })), n === "value") {
414
+ let n = t.getDisplayUnit();
415
+ r.push({
416
+ type: "choice",
417
+ key: "displayUnit",
418
+ label: e("chart.format.axis.displayUnits"),
419
+ options: N,
420
+ labels: {
421
+ none: e("chart.format.axis.displayUnit.none"),
422
+ hundreds: e("chart.format.axis.displayUnit.hundreds"),
423
+ thousands: e("chart.format.axis.displayUnit.thousands"),
424
+ tenThousands: e("chart.format.axis.displayUnit.tenThousands"),
425
+ hundredThousands: e("chart.format.axis.displayUnit.hundredThousands"),
426
+ millions: e("chart.format.axis.displayUnit.millions"),
427
+ tenMillions: e("chart.format.axis.displayUnit.tenMillions"),
428
+ hundredMillions: e("chart.format.axis.displayUnit.hundredMillions"),
429
+ billions: e("chart.format.axis.displayUnit.billions"),
430
+ trillions: e("chart.format.axis.displayUnit.trillions"),
431
+ custom: e("chart.format.axis.displayUnit.custom")
432
+ },
433
+ get: () => n,
434
+ set: (e) => {
435
+ t.setDisplayUnit(e);
436
+ }
437
+ }), n === "custom" && r.push({
438
+ type: "number",
439
+ key: "customDisplayUnit",
440
+ label: e("chart.format.axis.customDisplayUnit"),
441
+ min: 1,
442
+ max: 0x38d7ea4c68000,
443
+ decimals: !0,
444
+ get: () => t.getCustomDisplayUnit(),
445
+ set: (e) => {
446
+ e !== null && t.setCustomDisplayUnit(e);
447
+ }
448
+ }), n !== "none" && r.push(b("showDisplayUnitLabel", e("chart.format.axis.showDisplayUnitLabel"), () => t.getShowDisplayUnitLabel(), (e) => {
449
+ t.setShowDisplayUnitLabel(e);
450
+ }));
451
+ }
452
+ return r.push({
453
+ type: "font",
454
+ key: "font",
455
+ label: e("chart.pane.text"),
456
+ font: t.getStyle().getFont()
457
+ }), r;
458
+ })(t, e)
459
+ },
460
+ ...C(t, () => ((e, t) => {
461
+ let n = t.getKind(), r = [], i = e("chart.format.auto"), a = {
462
+ days: e("chart.format.axis.timeUnit.days"),
463
+ months: e("chart.format.axis.timeUnit.months"),
464
+ years: e("chart.format.axis.timeUnit.years")
465
+ };
466
+ if (n !== "category" && n !== "date" || r.push({
467
+ type: "choice",
468
+ key: "categoryType",
469
+ label: e("chart.format.axis.type"),
470
+ options: I,
471
+ labels: {
472
+ automatic: e("chart.format.axis.type.automatic"),
473
+ textAxis: e("chart.format.axis.type.textAxis"),
474
+ dateAxis: e("chart.format.axis.type.dateAxis")
475
+ },
476
+ get: () => t.getCategoryType(),
477
+ set: (e) => {
478
+ t.setCategoryType(e);
479
+ }
480
+ }), n === "value" && r.push({
481
+ type: "number",
482
+ key: "minimum",
483
+ label: e("chart.pane.minimum"),
484
+ heading: e("chart.format.axis.bounds"),
485
+ row: "bounds",
486
+ min: -0x38d7ea4c68000,
487
+ max: 0x38d7ea4c68000,
488
+ decimals: !0,
489
+ auto: i,
490
+ get: () => t.isMinimumAuto() ? null : t.getMinimum(),
491
+ set: (e) => {
492
+ t.setMinimum(e ?? "auto");
493
+ }
494
+ }, {
495
+ type: "number",
496
+ key: "maximum",
497
+ label: e("chart.pane.maximum"),
498
+ row: "bounds",
499
+ min: -0x38d7ea4c68000,
500
+ max: 0x38d7ea4c68000,
501
+ decimals: !0,
502
+ auto: i,
503
+ get: () => t.isMaximumAuto() ? null : t.getMaximum(),
504
+ set: (e) => {
505
+ t.setMaximum(e ?? "auto");
506
+ }
507
+ }, {
508
+ type: "number",
509
+ key: "majorUnit",
510
+ label: e("chart.format.axis.major"),
511
+ heading: e("chart.format.axis.units"),
512
+ row: "units",
513
+ min: 0,
514
+ max: 0x38d7ea4c68000,
515
+ decimals: !0,
516
+ auto: i,
517
+ get: () => t.isMajorUnitAuto() ? null : t.getMajorUnit(),
518
+ set: (e) => {
519
+ t.setMajorUnit(e ?? "auto");
520
+ }
521
+ }, {
522
+ type: "number",
523
+ key: "minorUnit",
524
+ label: e("chart.format.axis.minor"),
525
+ row: "units",
526
+ min: 0,
527
+ max: 0x38d7ea4c68000,
528
+ decimals: !0,
529
+ auto: i,
530
+ get: () => t.isMinorUnitAuto() ? null : t.getMinorUnit(),
531
+ set: (e) => {
532
+ t.setMinorUnit(e ?? "auto");
533
+ }
534
+ }), n === "date" && r.push({
535
+ type: "number",
536
+ key: "majorUnit",
537
+ label: e("chart.format.axis.major"),
538
+ heading: e("chart.format.axis.units"),
539
+ row: "major",
540
+ min: 1,
541
+ max: 1e6,
542
+ auto: i,
543
+ get: () => t.isMajorUnitAuto() ? null : t.getMajorUnit(),
544
+ set: (e) => {
545
+ t.setMajorUnit(e ?? "auto");
546
+ }
547
+ }, {
548
+ type: "choice",
549
+ key: "majorTimeUnit",
550
+ label: e("chart.format.axis.majorIn"),
551
+ row: "major",
552
+ options: F,
553
+ labels: a,
554
+ get: () => t.getMajorTimeUnitScale() ?? "days",
555
+ set: (e) => {
556
+ t.setMajorTimeUnitScale(e);
557
+ }
558
+ }, {
559
+ type: "number",
560
+ key: "minorUnit",
561
+ label: e("chart.format.axis.minor"),
562
+ row: "minor",
563
+ min: 1,
564
+ max: 1e6,
565
+ auto: i,
566
+ get: () => t.isMinorUnitAuto() ? null : t.getMinorUnit(),
567
+ set: (e) => {
568
+ t.setMinorUnit(e ?? "auto");
569
+ }
570
+ }, {
571
+ type: "choice",
572
+ key: "minorTimeUnit",
573
+ label: e("chart.format.axis.minorIn"),
574
+ row: "minor",
575
+ options: F,
576
+ labels: a,
577
+ get: () => t.getMinorTimeUnitScale() ?? "days",
578
+ set: (e) => {
579
+ t.setMinorTimeUnitScale(e);
580
+ }
581
+ }, {
582
+ type: "choice",
583
+ key: "baseTimeUnit",
584
+ label: e("chart.format.axis.base"),
585
+ options: F,
586
+ labels: a,
587
+ get: () => t.getBaseTimeUnit() ?? "days",
588
+ set: (e) => {
589
+ t.setBaseTimeUnit(e);
590
+ }
591
+ }), n !== "series") {
592
+ let i = t.getCrosses(), a = n === "date" ? ["automatic", "maximum"] : [
593
+ "automatic",
594
+ "maximum",
595
+ "minimum",
596
+ "custom"
597
+ ];
598
+ r.push({
599
+ type: "choice",
600
+ key: "crosses",
601
+ label: e("chart.format.axis.crosses"),
602
+ options: a.includes(i) ? a : [i, ...a],
603
+ labels: {
604
+ automatic: e("chart.format.axis.crosses.automatic"),
605
+ maximum: e("chart.format.axis.crosses.maximum"),
606
+ minimum: e("chart.format.axis.crosses.minimum"),
607
+ custom: e("chart.format.axis.crosses.custom")
608
+ },
609
+ get: () => i,
610
+ set: (e) => {
611
+ t.setCrosses(e);
612
+ }
613
+ }), i === "custom" && n === "value" ? r.push({
614
+ type: "number",
615
+ key: "crossesAt",
616
+ label: e("chart.format.axis.crossesAt"),
617
+ min: -0x38d7ea4c68000,
618
+ max: 0x38d7ea4c68000,
619
+ decimals: !0,
620
+ get: () => t.getCrossesAt() ?? 0,
621
+ set: (e) => {
622
+ e !== null && t.setCrossesAt(e);
623
+ }
624
+ }) : i === "custom" && n === "category" && r.push({
625
+ type: "number",
626
+ key: "crossesAt",
627
+ label: e("chart.format.axis.crossesAtCategory"),
628
+ min: 1,
629
+ max: 1e6,
630
+ get: () => t.getCrossesAt() ?? 1,
631
+ set: (e) => {
632
+ e !== null && t.setCrossesAt(e);
633
+ }
634
+ });
635
+ }
636
+ if (n !== "category" && n !== "date" || r.push({
637
+ type: "choice",
638
+ key: "between",
639
+ label: e("chart.format.axis.position"),
640
+ options: ["onTicks", "between"],
641
+ labels: {
642
+ onTicks: e("chart.format.axis.position.onTicks"),
643
+ between: e("chart.format.axis.position.between")
644
+ },
645
+ get: () => t.getIsBetweenCategories() ? "between" : "onTicks",
646
+ set: (e) => {
647
+ t.setIsBetweenCategories(e === "between");
648
+ }
649
+ }), n === "value") {
650
+ let n = t.getScaleType();
651
+ r.push({
652
+ type: "choice",
653
+ key: "scaleType",
654
+ label: e("chart.format.axis.scale"),
655
+ options: P,
656
+ labels: {
657
+ linear: e("chart.format.axis.scale.linear"),
658
+ logarithmic: e("chart.format.axis.scale.logarithmic")
659
+ },
660
+ get: () => n,
661
+ set: (e) => {
662
+ t.setScaleType(e);
663
+ }
664
+ }), n === "logarithmic" && r.push({
665
+ type: "number",
666
+ key: "logBase",
667
+ label: e("chart.format.axis.logBase"),
668
+ min: 2,
669
+ max: 1e3,
670
+ decimals: !0,
671
+ get: () => t.getLogBase(),
672
+ set: (e) => {
673
+ e !== null && t.setLogBase(e);
674
+ }
675
+ });
676
+ }
677
+ r.push(b("reverse", e("chart.pane.reverse"), () => t.getReversePlotOrder(), (e) => {
678
+ t.setReversePlotOrder(e);
679
+ }));
680
+ let o = {
681
+ none: e("chart.format.axis.tick.none"),
682
+ inside: e("chart.format.axis.tick.inside"),
683
+ outside: e("chart.format.axis.tick.outside"),
684
+ cross: e("chart.format.axis.tick.cross")
685
+ };
686
+ return r.push({
687
+ type: "choice",
688
+ key: "majorTickMark",
689
+ label: e("chart.format.axis.majorTick"),
690
+ heading: e("chart.format.axis.tickMarks"),
691
+ row: "ticks",
692
+ options: j,
693
+ labels: o,
694
+ get: () => t.getMajorTickMark(),
695
+ set: (e) => {
696
+ t.setMajorTickMark(e);
697
+ }
698
+ }, {
699
+ type: "choice",
700
+ key: "minorTickMark",
701
+ label: e("chart.format.axis.minorTick"),
702
+ row: "ticks",
703
+ options: j,
704
+ labels: o,
705
+ get: () => t.getMinorTickMark(),
706
+ set: (e) => {
707
+ t.setMinorTickMark(e);
708
+ }
709
+ }), n === "category" && r.push({
710
+ type: "number",
711
+ key: "tickMarkSpacing",
712
+ label: e("chart.format.axis.tickMarkSpacing"),
713
+ min: 1,
714
+ max: 1e6,
715
+ auto: i,
716
+ get: () => t.getTickMarkSpacing(),
717
+ set: (e) => {
718
+ t.setTickMarkSpacing(e);
719
+ }
720
+ }), r;
721
+ })(t, e))
722
+ ]), e("gridlines", (e, { t }) => S(t, e.getStyle?.(), { lineOnly: !0 })), e("series", (e, { chart: t, t: n }) => {
723
+ let r = e.getChartType(), i = S(n, e.getStyle(), { lineOnly: W(r) });
724
+ return W(r) && i.push(G(n, e.getMarker())), i.push(...C(n, () => {
725
+ let i = ((e, t, n) => {
726
+ let r = e.getSeries(), i = (e.getGroups().find((e) => e.getSeries().includes(t))?.getSeries() ?? []).filter((e) => e !== t).map((e) => e.getName() ?? n("chart.pane.seriesDefault", { index: r.indexOf(e) + 1 }));
727
+ return i.length > 0 ? n("chart.pane.sharedWith", { names: i.join(", ") }) : void 0;
728
+ })(t, e, n), a = [], o = t.getChartType() === r ? ((e) => {
729
+ let t = /^(column|bar|lineMarkers|line|area)(Clustered|Stacked100|Stacked)?$/.exec(e);
730
+ return t ? {
731
+ base: t[1],
732
+ stacking: t[2] === "Stacked100" ? "percentStacked" : t[2] === "Stacked" ? "stacked" : "standard"
733
+ } : null;
734
+ })(r) : null;
735
+ if (o) {
736
+ let e = /^(column|bar)$/.test(o.base);
737
+ a.push({
738
+ type: "choice",
739
+ key: "stacking",
740
+ label: n("chart.format.series.stacking"),
741
+ shared: i,
742
+ options: H,
743
+ labels: {
744
+ standard: n(e ? "chart.format.series.stacking.clustered" : "chart.format.series.stacking.standard"),
745
+ stacked: n("chart.format.series.stacking.stacked"),
746
+ percentStacked: n("chart.format.series.stacking.percentStacked")
747
+ },
748
+ get: () => o.stacking,
749
+ set: (e) => {
750
+ t.setChartType(((e, t) => t === "stacked" ? `${e}Stacked` : t === "percentStacked" ? `${e}Stacked100` : /^(column|bar)$/.test(e) ? `${e}Clustered` : e)(o.base, e));
751
+ }
752
+ });
753
+ }
754
+ return e.getOverlap() !== null && a.push({
755
+ type: "number",
756
+ key: "overlap",
757
+ label: n("chart.pane.overlap"),
758
+ row: "gap",
759
+ shared: i,
760
+ min: -100,
761
+ max: 100,
762
+ get: () => e.getOverlap() ?? 0,
763
+ set: (t) => {
764
+ t !== null && e.setOverlap(t);
765
+ }
766
+ }), e.getGapWidth() !== null && a.push({
767
+ type: "number",
768
+ key: "gapWidth",
769
+ label: n("chart.pane.gapWidth"),
770
+ row: "gap",
771
+ shared: i,
772
+ min: 0,
773
+ max: 500,
774
+ get: () => e.getGapWidth() ?? 0,
775
+ set: (t) => {
776
+ t !== null && e.setGapWidth(t);
777
+ }
778
+ }), /^(line|xyscatter)/.test(r) && a.push(b("smooth", n("chart.pane.smooth"), () => e.getSmooth(), (t) => {
779
+ e.setSmooth(t);
780
+ })), a;
781
+ })), i;
782
+ }), e("point", (e, { t }) => {
783
+ let n = e.getParent().getChartType();
784
+ if (/^waterfall/.test(n)) return C(t, () => [b("isTotal", t("chart.pane.isTotal"), () => e.getIsTotal(), (t) => {
785
+ e.setIsTotal(t);
786
+ })]);
787
+ let r = S(t, e.getStyle(), { lineOnly: W(n) });
788
+ W(n) && r.push(G(t, e.getMarker()));
789
+ let i = e.getDataLabel();
790
+ return r.push({
791
+ key: _,
792
+ label: t("chart.format.tab.label"),
793
+ fields: () => [
794
+ b("hasLabel", t("chart.format.showLabel"), () => e.getHasDataLabel(), (t) => {
795
+ e.setHasDataLabel(t);
796
+ }),
797
+ {
798
+ type: "text",
799
+ key: "text",
800
+ label: t("chart.pane.titleText"),
801
+ get: () => i.getText() ?? "",
802
+ set: (e) => {
803
+ i.setText(e || null);
804
+ }
805
+ },
806
+ ...K(t, i, n),
807
+ ...i.getStyle?.()?.isITextBoxStyle ? [{
808
+ type: "font",
809
+ key: "label.font",
810
+ label: t("chart.pane.text"),
811
+ font: i.getStyle().getFont()
812
+ }] : [],
813
+ ...i.getStyle?.() ? x(t, i.getStyle(), { key: "label." }) : []
814
+ ]
815
+ }), r.push(...C(t, () => {
816
+ let r = [];
817
+ return (/^(pie|doughnut|3DPie)/.test(n) || /OfPie$/.test(n)) && r.push({
818
+ type: "number",
819
+ key: "explosion",
820
+ label: t("chart.pane.explosion"),
821
+ min: 0,
822
+ max: 400,
823
+ get: () => e.getExplosion(),
824
+ set: (t) => {
825
+ t !== null && e.setExplosion(t);
826
+ }
827
+ }), /^(column|bar|bubble)/.test(n) && r.push(b("invertIfNegative", t("chart.pane.invertIfNegative"), () => e.getInvertIfNegative(), (t) => {
828
+ e.setInvertIfNegative(t);
829
+ })), r;
830
+ })), r;
831
+ }), e("dataLabels", (e, { chart: t, t: n }) => {
832
+ let r = e.getParent(), i = r?.getElementType() === "series" ? r.getChartType() : t.getChartType();
833
+ return [...S(n, e.getStyle?.()), ...C(n, () => K(n, e, i))];
834
+ }), e("trendline", (e, { t }) => [...S(t, e.getStyle?.(), { lineOnly: !0 }), ...C(t, () => [
835
+ {
836
+ type: "choice",
837
+ key: "type",
838
+ label: t("chart.pane.trendline.type"),
839
+ options: D,
840
+ labels: {
841
+ linear: t("chart.pane.trendline.linear"),
842
+ exponential: t("chart.pane.trendline.exponential"),
843
+ logarithmic: t("chart.pane.trendline.logarithmic"),
844
+ polynomial: t("chart.pane.trendline.polynomial"),
845
+ power: t("chart.pane.trendline.power"),
846
+ movingAverage: t("chart.pane.trendline.movingAverage")
847
+ },
848
+ get: () => e.getType(),
849
+ set: (t) => {
850
+ e.setType(t);
851
+ }
852
+ },
853
+ b("equation", t("chart.pane.trendline.equation"), () => e.getShowEquation(), (t) => {
854
+ e.setShowEquation(t);
855
+ }),
856
+ b("rSquared", t("chart.pane.trendline.rSquared"), () => e.getShowRSquared(), (t) => {
857
+ e.setShowRSquared(t);
858
+ }),
859
+ {
860
+ type: "number",
861
+ key: "forward",
862
+ label: t("chart.pane.trendline.forward"),
863
+ row: "periods",
864
+ min: 0,
865
+ max: 1e6,
866
+ decimals: !0,
867
+ get: () => e.getForwardPeriod(),
868
+ set: (t) => {
869
+ t !== null && e.setForwardPeriod(t);
870
+ }
871
+ },
872
+ {
873
+ type: "number",
874
+ key: "backward",
875
+ label: t("chart.pane.trendline.backward"),
876
+ row: "periods",
877
+ min: 0,
878
+ max: 1e6,
879
+ decimals: !0,
880
+ get: () => e.getBackwardPeriod(),
881
+ set: (t) => {
882
+ t !== null && e.setBackwardPeriod(t);
883
+ }
884
+ }
885
+ ])]), e("trendlineLabel", (e, { t }) => S(t, e.getStyle?.())), e("errorBars", (e, { t }) => [...S(t, e.getStyle?.(), { lineOnly: !0 }), ...C(t, () => {
886
+ let n = [{
887
+ type: "choice",
888
+ key: "type",
889
+ label: t("chart.pane.errorBars.type"),
890
+ options: O,
891
+ labels: {
892
+ fixedValue: t("chart.pane.errorBars.fixedValue"),
893
+ percent: t("chart.pane.errorBars.percent"),
894
+ stDev: t("chart.pane.errorBars.stDev"),
895
+ stError: t("chart.pane.errorBars.stError")
896
+ },
897
+ get: () => e.getType() === "custom" ? "fixedValue" : e.getType(),
898
+ set: (t) => {
899
+ e.setType(t);
900
+ }
901
+ }];
902
+ return e.getAmount() !== null && n.push({
903
+ type: "number",
904
+ key: "amount",
905
+ label: t("chart.pane.errorBars.amount"),
906
+ min: 0,
907
+ max: 0x38d7ea4c68000,
908
+ decimals: !0,
909
+ get: () => e.getAmount() ?? 0,
910
+ set: (t) => {
911
+ t !== null && e.setAmount(t);
912
+ }
913
+ }), n.push({
914
+ type: "choice",
915
+ key: "include",
916
+ label: t("chart.pane.errorBars.direction"),
917
+ options: k,
918
+ labels: {
919
+ both: t("chart.pane.errorBars.both"),
920
+ plusValues: t("chart.pane.errorBars.plus"),
921
+ minusValues: t("chart.pane.errorBars.minus")
922
+ },
923
+ get: () => e.getInclude(),
924
+ set: (t) => {
925
+ e.setInclude(t);
926
+ }
927
+ }, b("cap", t("chart.pane.errorBars.cap"), () => e.getEndStyleCap(), (t) => {
928
+ e.setEndStyleCap(t);
929
+ })), n;
930
+ })]), e("upDownBars", (e, { t }) => [{
931
+ key: "upBars",
932
+ label: t("chart.pane.upBars"),
933
+ fields: () => x(t, e.getUpBarsStyle(), { key: "up." })
934
+ }, {
935
+ key: "downBars",
936
+ label: t("chart.pane.downBars"),
937
+ fields: () => x(t, e.getDownBarsStyle(), { key: "down." })
938
+ }]), e("hiLoLines", q), e("dropLines", q), e("seriesLines", q);
939
+ }
940
+ var Z = /* @__PURE__ */ new WeakSet(), Q = o((o) => {
941
+ let { movable: p, sheet: m, args: h } = o, v = a(), b = p.getContent();
942
+ X();
943
+ let [, x] = c((e) => e + 1, 0);
944
+ s(() => b.addListeners({ onAnyChange: x }), [b]);
945
+ let C = m.getView().getChartElementSelection();
946
+ s(() => C.addListeners({ onChange: x }), [C]);
947
+ let w = C.getChart() === b ? C.getActive() : null, { target: T, tab: E } = ((e, n, r) => {
948
+ let i, a = n ?? e.getChartArea(), o = a.getElementType(), s = a.getParent();
949
+ o === "marker" && s ? (a = s, i = g) : o === "dataLabel" && s?.getElementType() === "point" && (a = s, i = _);
950
+ let c = y.get(a.getElementType());
951
+ return {
952
+ element: a,
953
+ tab: i,
954
+ target: {
955
+ id: `${e.getId()}:${a.getPath()}`,
956
+ title: t(r, a),
957
+ disabled: e.isReadOnly(),
958
+ tabs: c ? c(a, {
959
+ chart: e,
960
+ t: r
961
+ }) : S(r, a.getStyle?.())
962
+ }
963
+ };
964
+ })(b, w, v), [D, O] = l(null);
965
+ s(() => {
966
+ E && O({ tab: E });
967
+ }, [w, E]), s(() => {
968
+ h?.tab && !Z.has(h) && (Z.add(h), O({ tab: h.tab }));
969
+ }, [h]);
970
+ let [k] = i([n.ChartDetails]), A = k?.getLabel(), j = k?.getIcon(), M = k ? u(f, {
971
+ title: A,
972
+ children: u("span", { children: u(d, {
973
+ size: "small",
974
+ "data-chart-details": !0,
975
+ "aria-label": A,
976
+ disabled: k.disabled(),
977
+ onClick: () => {
978
+ k.execute();
979
+ },
980
+ sx: { borderRadius: 1 },
981
+ children: typeof j == "string" ? u(r, {
982
+ iconKey: j,
983
+ size: 18,
984
+ ariaHidden: !0
985
+ }) : j
986
+ }) })
987
+ }) : null;
988
+ return u(e, {
989
+ target: T,
990
+ sheet: m,
991
+ request: D,
992
+ actions: M
993
+ });
994
+ });
995
+ Q.displayName = "ChartFormatPanel";
996
+ export { Q as ChartFormatPanel };