@progress/kendo-react-chart-wizard 8.3.0-develop.14 → 8.3.0-develop.16

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 (55) hide show
  1. package/ChartWizard.js +1 -1
  2. package/ChartWizard.mjs +74 -1711
  3. package/components/ChartComponent.js +8 -0
  4. package/components/ChartComponent.mjs +69 -0
  5. package/components/FormField.js +8 -0
  6. package/components/FormField.mjs +16 -0
  7. package/components/FormFieldSet.js +8 -0
  8. package/components/FormFieldSet.mjs +13 -0
  9. package/components/SeriesGrid.js +8 -0
  10. package/{SeriesGrid.mjs → components/SeriesGrid.mjs} +5 -2
  11. package/components/SeriesTypeButton.js +8 -0
  12. package/components/SeriesTypeButton.mjs +30 -0
  13. package/{common/get-wizard-data-from-data-rows.js → components/SeriesTypesWrap.js} +1 -1
  14. package/{common/get-wizard-data-from-data-rows.mjs → components/SeriesTypesWrap.mjs} +4 -3
  15. package/components/panels/BarChartPanel.js +8 -0
  16. package/components/panels/BarChartPanel.mjs +71 -0
  17. package/components/panels/CategoryAxisPanel.js +8 -0
  18. package/components/panels/CategoryAxisPanel.mjs +315 -0
  19. package/components/panels/ChartAreaPanel.js +8 -0
  20. package/components/panels/ChartAreaPanel.mjs +200 -0
  21. package/components/panels/ColumnChartPanel.js +8 -0
  22. package/components/panels/ColumnChartPanel.mjs +77 -0
  23. package/components/panels/ConfigurationPanel.js +8 -0
  24. package/components/panels/ConfigurationPanel.mjs +102 -0
  25. package/components/panels/LegendPanel.js +8 -0
  26. package/components/panels/LegendPanel.mjs +190 -0
  27. package/components/panels/LineChartPanel.js +8 -0
  28. package/components/panels/LineChartPanel.mjs +74 -0
  29. package/components/panels/PieChartPanel.js +8 -0
  30. package/components/panels/PieChartPanel.mjs +47 -0
  31. package/components/panels/ScatterChartPanel.js +8 -0
  32. package/components/panels/ScatterChartPanel.mjs +47 -0
  33. package/components/panels/SeriesPanel.js +8 -0
  34. package/components/panels/SeriesPanel.mjs +110 -0
  35. package/components/panels/TitlePanel.js +8 -0
  36. package/components/panels/TitlePanel.mjs +172 -0
  37. package/components/panels/ValueAxisPanel.js +8 -0
  38. package/components/panels/ValueAxisPanel.mjs +332 -0
  39. package/dist/cdn/js/kendo-react-chart-wizard.js +1 -1
  40. package/index.d.mts +3 -6
  41. package/index.d.ts +3 -6
  42. package/index.js +1 -1
  43. package/index.mjs +6 -6
  44. package/package.json +14 -14
  45. package/types/export.js +8 -0
  46. package/types/export.mjs +39 -0
  47. package/utils.js +8 -0
  48. package/utils.mjs +81 -0
  49. package/SeriesGrid.js +0 -8
  50. package/chart-wizard-state.js +0 -8
  51. package/chart-wizard-state.mjs +0 -21
  52. package/export.js +0 -8
  53. package/export.mjs +0 -70
  54. /package/{SeriesGridCells.js → components/SeriesGridCells.js} +0 -0
  55. /package/{SeriesGridCells.mjs → components/SeriesGridCells.mjs} +0 -0
package/ChartWizard.mjs CHANGED
@@ -7,1753 +7,116 @@
7
7
  */
8
8
  "use client";
9
9
  import * as e from "react";
10
- import { Window as Ga } from "@progress/kendo-react-dialogs";
11
- import { Chart as Ha, ChartTitle as Oa, ChartSubtitle as Xa, ChartArea as Ya, ChartCategoryAxis as ja, ChartCategoryAxisItem as Ua, ChartValueAxis as $a, ChartValueAxisItem as qa, ChartSeries as Ja, ChartSeriesItem as Qa, ChartLegend as Za } from "@progress/kendo-react-charts";
12
- import { Splitter as _a, TabStrip as el, TabStripTab as q, ExpansionPanel as A, ExpansionPanelContent as L } from "@progress/kendo-react-layout";
13
- import { DropDownButton as tl } from "@progress/kendo-react-buttons";
14
- import { exportIcon as al, filePdfIcon as ll, fileIcon as nl, fileImageIcon as ol, chartBarClusteredIcon as rl, chartBarStackedIcon as il, chartBarStacked100Icon as sl, chartPieIcon as cl, chartColumnClusteredIcon as gl, chartColumnStackedIcon as ul, chartColumnStacked100Icon as dl, chartLineIcon as ml, chartLineStackedIcon as xl, chartLineStacked100Icon as Cl, chartScatterIcon as fl } from "@progress/kendo-svg-icons";
15
- import { Reveal as v } from "@progress/kendo-react-animation";
16
- import { DropDownList as R, ComboBox as E } from "@progress/kendo-react-dropdowns";
17
- import { SeriesGrid as bl } from "./SeriesGrid.mjs";
18
- import { NumericTextBox as K, ColorPicker as P, Input as J, Checkbox as at, Switch as hl } from "@progress/kendo-react-inputs";
19
- import { Label as nt } from "@progress/kendo-react-labels";
20
- import { createInitialState as Sl, mergeStates as T, createState as F, updateState as c, ActionTypes as s, isCategorical as lt, fontNames as k, parseFont as p, fontSizes as f } from "./chart-wizard-state.mjs";
21
- import { classNames as Al, IconWrap as Ll } from "@progress/kendo-react-common";
22
- import { FormElement as B, FieldWrapper as vl } from "@progress/kendo-react-form";
23
- import { useLocalization as El } from "@progress/kendo-react-intl";
24
- import { formatTitleChartTitle as kl, messages as n, formatTitleChartSubtitle as pl, formatLegendPositionTop as yl, formatLegendPositionBottom as Tl, formatLegendPositionLeft as Fl, formatLegendPositionRight as Il, formatSeriesAllSeries as Nl, formatValueAxisLabelsFormatText as wl, formatValueAxisLabelsFormatNumber as zl, formatValueAxisLabelsFormatCurrency as Pl, formatValueAxisLabelsFormatPercent as Vl, windowTitle as Bl, exportButton as Ml, exportPDFButton as Rl, exportSVGButton as Kl, exportPNGButton as Dl, tabChart as Wl, barChart as Gl, barChartBar as Hl, barChartStackedBar as Ol, barChart100StackedBar as Xl, pieChart as Yl, pieChartPie as jl, columnChart as Ul, columnChartColumn as $l, columnChartStackedColumn as ql, columnChart100StackedColumn as Jl, lineChart as Ql, lineChartLine as Zl, lineChartStackedLine as _l, lineChart100StackedLine as en, scatterChart as tn, scatterChartScatter as an, tabData as ln, configuration as nn, configurationXAxis as on, configurationCategoryAxis as rn, configurationSeries as sn, configurationValueAxis as cn, tabFormat as gn, formatChartArea as un, formatChartAreaMargins as dn, formatChartAreaMarginsLeft as mn, formatChartAreaMarginsAuto as X, formatChartAreaMarginsRight as xn, formatChartAreaMarginsTop as Cn, formatChartAreaMarginsBottom as fn, formatChartAreaBackground as bn, formatChartAreaBackgroundColor as hn, formatTitle as Sn, formatTitleApplyTo as An, formatTitleLabel as Ln, formatTitleFont as vn, formatTitleFontPlaceholder as En, formatTitleSize as kn, formatTitleSizePlaceholder as pn, formatTitleColor as yn, formatSeries as Tn, formatSeriesApplyTo as Fn, formatSeriesColor as In, formatSeriesShowLabels as Nn, formatLegend as wn, formatLegendShowLegend as zn, formatLegendFont as Pn, formatLegendFontPlaceholder as Vn, formatLegendSize as Bn, formatLegendSizePlaceholder as Mn, formatLegendColor as Rn, formatLegendPosition as Kn, formatXAxis as Dn, formatCategoryAxis as Wn, formatCategoryAxisTitle as Gn, formatCategoryAxisTitlePlaceholder as Hn, formatCategoryAxisTitleFont as On, formatCategoryAxisTitleFontPlaceholder as Xn, formatCategoryAxisTitleSize as Yn, formatCategoryAxisTitleSizePlaceholder as jn, formatCategoryAxisTitleColor as Un, formatCategoryAxisLabels as $n, formatCategoryAxisLabelsFont as qn, formatCategoryAxisLabelsFontPlaceholder as Jn, formatCategoryAxisLabelsSize as Qn, formatCategoryAxisLabelsSizePlaceholder as Zn, formatCategoryAxisLabelsColor as _n, formatCategoryAxisLabelsRotation as eo, formatCategoryAxisLabelsRotationAuto as to, formatCategoryAxisLabelsReverseOrder as ao, formatYAxis as lo, formatValueAxis as no, formatValueAxisTitle as oo, formatValueAxisTitlePlaceholder as ro, formatValueAxisTitleFont as io, formatValueAxisTitleFontPlaceholder as so, formatValueAxisTitleSize as co, formatValueAxisTitleSizePlaceholder as go, formatValueAxisTitleColor as uo, formatValueAxisLabels as mo, formatValueAxisLabelsFormat as xo, formatValueAxisLabelsFont as Co, formatValueAxisLabelsFontPlaceholder as fo, formatValueAxisLabelsSize as bo, formatValueAxisLabelsSizePlaceholder as ho, formatValueAxisLabelsColor as So, formatValueAxisLabelsRotation as Ao, formatValueAxisLabelsRotationAuto as Lo } from "./messages.mjs";
25
- import { ExportEvent as vo, resolveExportOptions as Eo, handlePDFExport as ko, handleSVGExport as po, handleImageExport as yo } from "./export.mjs";
26
- const w = (r) => /* @__PURE__ */ e.createElement("fieldset", { className: "k-form-fieldset" }, r.legend && /* @__PURE__ */ e.createElement("legend", { className: "k-form-legend" }, r.legend), r.children), z = (r) => {
27
- r.stopPropagation();
28
- }, u = (r) => /* @__PURE__ */ e.createElement(vl, { className: r.className }, r.labelText && r.editorId && /* @__PURE__ */ e.createElement(nt, { className: "k-form-label", editorId: r.editorId }, r.labelText), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap", onKeyDown: z }, r.children)), d = { value: null, text: "" }, To = /^\d+$/, M = (r, V) => V.dataItem.style ? e.cloneElement(r, r.props, /* @__PURE__ */ e.createElement("span", { style: V.dataItem.style }, r.props.children)) : r, D = (r) => {
29
- if (r.text === "")
30
- return !0;
31
- if (r.value === void 0) {
32
- if (!To.test(r.text))
33
- return !1;
34
- r.value = r.text + "px";
35
- }
36
- return f.find((l) => l.value === r.value) || (f.push(r), f.sort((l, b) => parseInt(l.text, 10) - parseInt(b.text, 10))), !0;
37
- }, I = (r) => {
38
- const V = e.useCallback(
39
- (l) => {
40
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), r.onClick());
41
- },
42
- [r.onClick]
43
- );
44
- return /* @__PURE__ */ e.createElement("div", { className: Al("k-icon-text-wrapper", { "k-selected": r.selected }), onClick: r.onClick }, /* @__PURE__ */ e.createElement("div", { className: "k-icon-background-area", tabIndex: 0, onKeyDown: V }, /* @__PURE__ */ e.createElement(
45
- Ll,
46
- {
47
- name: r.iconName,
48
- icon: r.icon,
49
- size: "xlarge",
50
- className: "k-svg-i-chart-bar-clustered"
51
- }
52
- )), r.children);
53
- }, G = (r) => /* @__PURE__ */ e.createElement("div", { className: "k-chart-types-wrapper", onKeyDown: z }, r.children), x = {
54
- fillMode: "outline",
55
- popupSettings: {
56
- animate: !1
57
- }
58
- }, Q = { type: "normal" }, Z = { type: "100%" }, Fo = e.forwardRef((r, V) => {
59
- var Ce, fe, be, he, Se, Ae, Le, ve, Ee, ke, pe, ye, Te, Fe, Ie, Ne, we, ze, Pe, Ve, Be, Me, Re, Ke, De, We, Ge, He, Oe, Xe, Ye, je, Ue, $e, qe, Je, Qe, Ze, _e, et, tt;
60
- const l = El(), b = [
61
- {
62
- value: "chartTitle",
63
- text: l.toLanguageString(kl, n.formatTitleChartTitle)
64
- },
65
- {
66
- value: "chartSubtitle",
67
- text: l.toLanguageString(pl, n.formatTitleChartSubtitle)
68
- }
69
- ], _ = [
70
- {
71
- value: "top",
72
- text: l.toLanguageString(yl, n.formatLegendPositionTop)
73
- },
74
- {
75
- value: "bottom",
76
- text: l.toLanguageString(Tl, n.formatLegendPositionBottom)
77
- },
78
- {
79
- value: "left",
80
- text: l.toLanguageString(Fl, n.formatLegendPositionLeft)
81
- },
82
- {
83
- value: "right",
84
- text: l.toLanguageString(Il, n.formatLegendPositionRight)
85
- }
86
- ], Y = {
87
- name: l.toLanguageString(Nl, n.formatSeriesAllSeries)
88
- }, ee = {
89
- text: l.toLanguageString(wl, n.formatValueAxisLabelsFormatText),
90
- value: ""
91
- }, te = [
92
- {
93
- value: "n0",
94
- text: l.toLanguageString(
95
- zl,
96
- n.formatValueAxisLabelsFormatNumber
97
- )
98
- },
99
- {
100
- value: "c0",
101
- text: l.toLanguageString(
102
- Pl,
103
- n.formatValueAxisLabelsFormatCurrency
104
- )
105
- },
106
- {
107
- value: "p0",
108
- text: l.toLanguageString(
109
- Vl,
110
- n.formatValueAxisLabelsFormatPercent
111
- )
112
- }
113
- ], H = e.useRef(null), ot = e.useCallback(
114
- (t) => {
115
- var o;
116
- if (H.current) {
117
- const g = new vo(H.current, Eo(r.exportOptions));
118
- (o = r.onExport) == null || o.call(r, g), g.isDefaultPrevented() || t.item.exportHandler.call(void 0, g);
10
+ import { Window as B } from "@progress/kendo-react-dialogs";
11
+ import { Splitter as D, TabStrip as N, TabStripTab as s } from "@progress/kendo-react-layout";
12
+ import { DropDownButton as y } from "@progress/kendo-react-buttons";
13
+ import { exportIcon as R, filePdfIcon as W, fileIcon as F, fileImageIcon as H } from "@progress/kendo-svg-icons";
14
+ import { resolveExportOptions as G, createInitialState as A, mergeStates as V, createState as O, handlePDFExport as M, handleSVGExport as U, handleImageExport as j } from "./utils.mjs";
15
+ import { useLocalization as q } from "@progress/kendo-react-intl";
16
+ import { windowTitle as J, messages as i, exportButton as K, exportPDFButton as Q, exportSVGButton as X, exportPNGButton as Y, tabChart as Z, tabData as _, tabFormat as $ } from "./messages.mjs";
17
+ import { ExportEvent as ee } from "./types/export.mjs";
18
+ import { ConfigurationPanel as te } from "./components/panels/ConfigurationPanel.mjs";
19
+ import { ChartAreaPanel as ae } from "./components/panels/ChartAreaPanel.mjs";
20
+ import { TitlePanel as ne } from "./components/panels/TitlePanel.mjs";
21
+ import { SeriesPanel as re } from "./components/panels/SeriesPanel.mjs";
22
+ import { LegendPanel as oe } from "./components/panels/LegendPanel.mjs";
23
+ import { CategoryAxisPanel as ie } from "./components/panels/CategoryAxisPanel.mjs";
24
+ import { ValueAxisPanel as le } from "./components/panels/ValueAxisPanel.mjs";
25
+ import { BarChartPanel as ce } from "./components/panels/BarChartPanel.mjs";
26
+ import { ColumnChartPanel as me } from "./components/panels/ColumnChartPanel.mjs";
27
+ import { LineChartPanel as se } from "./components/panels/LineChartPanel.mjs";
28
+ import { ScatterChartPanel as pe } from "./components/panels/ScatterChartPanel.mjs";
29
+ import { PieChartPanel as ue } from "./components/panels/PieChartPanel.mjs";
30
+ import { ChartComponent as de } from "./components/ChartComponent.mjs";
31
+ const ge = e.forwardRef((r, g) => {
32
+ const o = q(), c = e.useRef(null), f = e.useCallback(
33
+ (n) => {
34
+ var d;
35
+ if (c.current) {
36
+ const m = new ee(c.current, G(r.exportOptions));
37
+ (d = r.onExport) == null || d.call(void 0, m), m.isDefaultPrevented() || n.item.exportHandler.call(void 0, m);
119
38
  }
120
39
  },
121
- [r.exportOptions]
122
- ), rt = r.window || Ga, [it, st] = e.useState({ width: 700, height: 550 }), [ct, gt] = e.useState("DEFAULT"), ut = e.useCallback((t) => {
123
- st({ width: t.width, height: t.height });
124
- }, []), dt = e.useCallback((t) => {
125
- gt(t.state);
126
- }, []), [mt, xt] = e.useState([
40
+ [r.onExport, r.exportOptions]
41
+ ), h = r.window || B, [E, S] = e.useState({ width: 700, height: 550 }), [x, w] = e.useState("DEFAULT"), C = e.useCallback((n) => {
42
+ S({ width: n.width, height: n.height });
43
+ }, []), P = e.useCallback((n) => {
44
+ w(n.state);
45
+ }, []), [b, v] = e.useState([
127
46
  { collapsible: !1 },
128
47
  { size: "300px", collapsible: !1 }
129
- ]), Ct = e.useCallback((t) => {
130
- xt(t.newState);
131
- }, []), [ae, ft] = e.useState(!0), bt = e.useCallback((t) => {
132
- ft(!t.expanded);
133
- }, []), [le, ht] = e.useState(!0), St = e.useCallback((t) => {
134
- ht(!t.expanded);
135
- }, []), [ne, At] = e.useState(!0), Lt = e.useCallback((t) => {
136
- At(!t.expanded);
137
- }, []), [oe, vt] = e.useState(!0), Et = e.useCallback((t) => {
138
- vt(!t.expanded);
139
- }, []), [re, kt] = e.useState(!0), pt = e.useCallback((t) => {
140
- kt(!t.expanded);
141
- }, []), [ie, yt] = e.useState(!0), Tt = e.useCallback((t) => {
142
- yt(!t.expanded);
143
- }, []), [se, Ft] = e.useState(!1), It = e.useCallback((t) => {
144
- Ft(!t.expanded);
145
- }, []), [ce, Nt] = e.useState(!1), wt = e.useCallback((t) => {
146
- Nt(!t.expanded);
147
- }, []), [ge, zt] = e.useState(!1), Pt = e.useCallback((t) => {
148
- zt(!t.expanded);
149
- }, []), [ue, Vt] = e.useState(!1), Bt = e.useCallback((t) => {
150
- Vt(!t.expanded);
151
- }, []), [de, Mt] = e.useState(!1), Rt = e.useCallback((t) => {
152
- Mt(!t.expanded);
153
- }, []), [me, Kt] = e.useState(!1), Dt = e.useCallback((t) => {
154
- Kt(!t.expanded);
155
- }, []), [Wt, Gt] = e.useState(0), Ht = e.useCallback((t) => {
156
- Gt(t.selected);
157
- }, []), [a, i] = e.useState(
158
- Sl(r.data, "bar", r.defaultState)
159
- ), xe = e.useRef(a);
160
- xe.current = a;
161
- const Ot = e.useCallback(
48
+ ]), k = e.useCallback((n) => {
49
+ v(n.newState);
50
+ }, []), [z, I] = e.useState(0), T = e.useCallback((n) => {
51
+ I(n.selected);
52
+ }, []), [t, p] = e.useState(
53
+ A(r.data, "bar", r.defaultState)
54
+ ), a = (n) => {
55
+ p(n);
56
+ }, l = e.useRef(t);
57
+ l.current = t;
58
+ const L = e.useCallback(
162
59
  () => ({
163
60
  get chart() {
164
- return H.current;
61
+ return c.current;
165
62
  },
166
63
  get state() {
167
- return xe.current;
64
+ return l.current;
168
65
  }
169
66
  }),
170
67
  []
171
68
  );
172
- e.useImperativeHandle(V, Ot);
173
- const [h, S] = e.useState(""), Xt = e.useCallback((t) => {
174
- const o = t.target.value.name;
175
- S(o === Y.name ? "" : o);
176
- }, []), Yt = e.useCallback(() => {
177
- i(T(a, F(r.data, "bar"))), S("");
178
- }, [a, r.data]), jt = e.useCallback(() => {
179
- const t = T(a, F(r.data, "bar"));
180
- i(c(t, s.stacked, Q)), S("");
181
- }, [a, r.data]), Ut = e.useCallback(() => {
182
- const t = T(a, F(r.data, "bar"));
183
- i(c(t, s.stacked, Z)), S("");
184
- }, [a, r.data]), $t = e.useCallback(() => {
185
- i(T(a, F(r.data, "column"))), S("");
186
- }, [a, r.data]), qt = e.useCallback(() => {
187
- const t = T(a, F(r.data, "column"));
188
- i(c(t, s.stacked, Q)), S("");
189
- }, [a, r.data]), Jt = e.useCallback(() => {
190
- const t = T(a, F(r.data, "column"));
191
- i(c(t, s.stacked, Z)), S("");
192
- }, [a, r.data]), Qt = e.useCallback(() => {
193
- i(T(a, F(r.data, "line"))), S("");
194
- }, [a, r.data]), Zt = e.useCallback(() => {
195
- const t = T(a, F(r.data, "line"));
196
- i(c(t, s.stacked, Q)), S("");
197
- }, [a, r.data]), _t = e.useCallback(() => {
198
- const t = T(a, F(r.data, "line"));
199
- i(c(t, s.stacked, Z)), S("");
200
- }, [a, r.data]), ea = e.useCallback(() => {
201
- i(T(a, F(r.data, "pie"))), S("");
202
- }, [a, r.data]), ta = e.useCallback(() => {
203
- i(T(a, F(r.data, "scatter"))), S("");
204
- }, [a, r.data]), aa = e.useCallback(
205
- (t) => {
206
- i(c(a, s.categoryAxisX, t.target.value));
207
- },
208
- [a]
209
- ), la = e.useCallback(
210
- (t) => {
211
- i(c(a, s.seriesChange, t));
212
- },
213
- [a]
214
- ), na = e.useCallback(
215
- (t) => {
216
- i(c(a, s.valueAxisY, t.target.value));
217
- },
218
- [a]
219
- ), oa = e.useCallback(
220
- (t) => {
221
- i(c(a, s.areaMarginLeft, t.target.value));
222
- },
223
- [a]
224
- ), ra = e.useCallback(
225
- (t) => {
226
- i(c(a, s.areaMarginRight, t.target.value));
227
- },
228
- [a]
229
- ), ia = e.useCallback(
230
- (t) => {
231
- i(c(a, s.areaMarginTop, t.target.value));
232
- },
233
- [a]
234
- ), sa = e.useCallback(
235
- (t) => {
236
- i(c(a, s.areaMarginBottom, t.target.value));
237
- },
238
- [a]
239
- ), N = a.area.margin, ca = e.useCallback(
240
- (t) => {
241
- i(c(a, s.areaBackground, t.value));
242
- },
243
- [a]
244
- ), [y, ga] = e.useState(b[0]), ua = e.useCallback((t) => {
245
- ga(t.target.value);
246
- }, []), da = e.useCallback(
247
- (t) => {
248
- const o = y.value === b[0].value ? s.titleText : s.subtitleText;
249
- i(c(a, o, t.target.value));
250
- },
251
- [a, y]
252
- ), ma = e.useCallback(
253
- (t) => {
254
- const o = y.value === b[0].value ? s.titleFontName : s.subtitleFontName, g = t.target.value || d;
255
- i(c(a, o, g.value));
256
- },
257
- [a, y]
258
- ), xa = e.useCallback(
259
- (t) => {
260
- const o = y.value === b[0].value ? s.titleFontSize : s.subtitleFontSize, g = t.target.value || d;
261
- D(g) && i(c(a, o, g.value));
262
- },
263
- [a, y]
264
- ), Ca = e.useCallback(
265
- (t) => {
266
- const o = y.value === b[0].value ? s.titleColor : s.subtitleColor;
267
- i(c(a, o, t.value));
268
- },
269
- [a, y]
270
- ), O = (y.value === b[0].value ? a.title : a.subtitle) || {
271
- text: "",
272
- font: "",
273
- color: ""
274
- }, fa = e.useCallback(
275
- (t) => {
276
- h && i(c(a, s.seriesColor, { seriesName: h, color: t.value }));
277
- },
278
- [a, h]
279
- ), ba = e.useCallback(
280
- (t) => {
281
- i(
282
- c(a, s.seriesLabel, {
283
- seriesName: h,
284
- all: !h,
285
- visible: t.value
286
- })
287
- );
288
- },
289
- [a, h]
290
- ), ha = e.useCallback(
291
- (t) => {
292
- i(c(a, s.legendVisible, t.value));
293
- },
294
- [a]
295
- ), Sa = e.useCallback(
296
- (t) => {
297
- const o = t.target.value || d;
298
- D(o) && i(c(a, s.legendFontSize, o.value));
299
- },
300
- [a]
301
- ), Aa = e.useCallback(
302
- (t) => {
303
- const o = t.target.value || d;
304
- i(c(a, s.legendFontName, o.value));
305
- },
306
- [a]
307
- ), La = e.useCallback(
308
- (t) => {
309
- i(c(a, s.legendColor, t.value));
310
- },
311
- [a]
312
- ), va = e.useCallback(
313
- (t) => {
314
- const o = t.target.value;
315
- i(c(a, s.legendPosition, o.value));
316
- },
317
- [a]
318
- ), Ea = e.useCallback(
319
- (t) => {
320
- i(c(a, s.categoryAxisTitleText, t.target.value));
321
- },
322
- [a]
323
- ), ka = e.useCallback(
324
- (t) => {
325
- const o = t.target.value || d;
326
- D(o) && i(c(a, s.categoryAxisTitleFontSize, o.value));
327
- },
328
- [a]
329
- ), pa = e.useCallback(
330
- (t) => {
331
- const o = t.target.value || d;
332
- i(c(a, s.categoryAxisTitleFontName, o.value));
333
- },
334
- [a]
335
- ), ya = e.useCallback(
336
- (t) => {
337
- i(c(a, s.categoryAxisTitleColor, t.value));
338
- },
339
- [a]
340
- ), Ta = e.useCallback(
341
- (t) => {
342
- const o = t.target.value || d;
343
- D(o) && i(c(a, s.categoryAxisLabelsFontSize, o.value));
344
- },
345
- [a]
346
- ), Fa = e.useCallback(
347
- (t) => {
348
- const o = t.target.value || d;
349
- i(c(a, s.categoryAxisLabelsFontName, o.value));
350
- },
351
- [a]
352
- ), Ia = e.useCallback(
353
- (t) => {
354
- i(c(a, s.categoryAxisLabelsColor, t.value));
355
- },
356
- [a]
357
- ), Na = e.useCallback(
358
- (t) => {
359
- i(c(a, s.categoryAxisLabelsRotation, t.target.value));
360
- },
361
- [a]
362
- ), wa = e.useCallback(
363
- (t) => {
364
- i(c(a, s.categoryAxisReverseOrder, t.value));
365
- },
366
- [a]
367
- ), za = e.useCallback(
368
- (t) => {
369
- i(c(a, s.valueAxisTitleText, t.target.value));
370
- },
371
- [a]
372
- ), Pa = e.useCallback(
373
- (t) => {
374
- const o = t.target.value || d;
375
- D(o) && i(c(a, s.valueAxisTitleFontSize, o.value));
376
- },
377
- [a]
378
- ), Va = e.useCallback(
379
- (t) => {
380
- const o = t.target.value || d;
381
- i(c(a, s.valueAxisTitleFontName, o.value));
382
- },
383
- [a]
384
- ), Ba = e.useCallback(
385
- (t) => {
386
- i(c(a, s.valueAxisTitleColor, t.value));
387
- },
388
- [a]
389
- ), Ma = e.useCallback(
390
- (t) => {
391
- const o = t.target.value || d;
392
- D(o) && i(c(a, s.valueAxisLabelsFontSize, o.value));
393
- },
394
- [a]
395
- ), Ra = e.useCallback(
396
- (t) => {
397
- const o = t.target.value || d;
398
- i(c(a, s.valueAxisLabelsFontName, o.value));
399
- },
400
- [a]
401
- ), Ka = e.useCallback(
402
- (t) => {
403
- i(c(a, s.valueAxisLabelsColor, t.value));
404
- },
405
- [a]
406
- ), Da = e.useCallback(
407
- (t) => {
408
- i(c(a, s.valueAxisLabelsRotation, t.target.value));
409
- },
410
- [a]
411
- ), Wa = e.useCallback(
412
- (t) => {
413
- const o = t.target.value;
414
- i(c(a, s.valueAxisLabelsFormat, o.value));
415
- },
416
- [a]
417
- ), m = a.seriesType, W = typeof ((Ce = a.series[0]) == null ? void 0 : Ce.stack) == "object" ? (fe = a.series[0]) == null ? void 0 : fe.stack : !1, j = W === !1, U = W && W.type === "normal", $ = W && W.type === "100%";
69
+ e.useImperativeHandle(g, L), e.useEffect(() => {
70
+ l.current && l.current.seriesType && p(V(l.current, O(r.data, l.current.seriesType)));
71
+ }, [r.data]);
72
+ const u = t.seriesType;
418
73
  return /* @__PURE__ */ e.createElement(
419
- rt,
74
+ h,
420
75
  {
421
- title: l.toLanguageString(Bl, n.windowTitle),
76
+ title: o.toLanguageString(J, i.windowTitle),
422
77
  className: "k-chart-wizard",
423
78
  modal: !0,
424
79
  resizable: !0,
425
80
  minimizeButton: () => null,
426
81
  onClose: r.onClose,
427
- onResize: ut,
428
- stage: ct,
429
- onStageChange: dt,
430
- ...it
82
+ onResize: C,
83
+ stage: x,
84
+ onStageChange: P,
85
+ ...E
431
86
  },
432
- /* @__PURE__ */ e.createElement(_a, { panes: mt, onChange: Ct, className: "k-chart-wizard-splitter" }, /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-preview-pane k-pane" }, /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-header" }, /* @__PURE__ */ e.createElement(
433
- tl,
87
+ /* @__PURE__ */ e.createElement(D, { panes: b, onChange: k, className: "k-chart-wizard-splitter" }, /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-preview-pane k-pane" }, /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-header" }, /* @__PURE__ */ e.createElement(
88
+ y,
434
89
  {
435
- text: l.toLanguageString(Ml, n.exportButton),
90
+ text: o.toLanguageString(K, i.exportButton),
436
91
  fillMode: "flat",
437
- svgIcon: al,
92
+ svgIcon: R,
438
93
  icon: "export",
439
- onItemClick: ot,
94
+ onItemClick: f,
440
95
  items: [
441
96
  {
442
- svgIcon: ll,
97
+ svgIcon: W,
443
98
  icon: "file-pdf",
444
- exportHandler: ko,
445
- text: l.toLanguageString(Rl, n.exportPDFButton)
99
+ exportHandler: M,
100
+ text: o.toLanguageString(Q, i.exportPDFButton)
446
101
  },
447
102
  {
448
- svgIcon: nl,
103
+ svgIcon: F,
449
104
  icon: "file",
450
- exportHandler: po,
451
- text: l.toLanguageString(Kl, n.exportSVGButton)
105
+ exportHandler: U,
106
+ text: o.toLanguageString(X, i.exportSVGButton)
452
107
  },
453
108
  {
454
- svgIcon: ol,
109
+ svgIcon: H,
455
110
  icon: "file-image",
456
- exportHandler: yo,
457
- text: l.toLanguageString(Dl, n.exportPNGButton)
111
+ exportHandler: j,
112
+ text: o.toLanguageString(Y, i.exportPNGButton)
458
113
  }
459
114
  ]
460
115
  }
461
- )), /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-content", style: { height: "calc(100% - 50px)" } }, /* @__PURE__ */ e.createElement(Ha, { style: { width: "100%", height: "100%" }, transitions: !1, ref: H }, /* @__PURE__ */ e.createElement(
462
- Oa,
463
- {
464
- text: (be = a.title) == null ? void 0 : be.text,
465
- font: (he = a.title) == null ? void 0 : he.font,
466
- color: ((Se = a.title) == null ? void 0 : Se.color) || "#000"
467
- }
468
- ), /* @__PURE__ */ e.createElement(
469
- Xa,
470
- {
471
- text: (Ae = a.subtitle) == null ? void 0 : Ae.text,
472
- font: (Le = a.subtitle) == null ? void 0 : Le.font,
473
- color: ((ve = a.subtitle) == null ? void 0 : ve.color) || "#000"
474
- }
475
- ), /* @__PURE__ */ e.createElement(Ya, { background: (Ee = a.area) == null ? void 0 : Ee.background, margin: N }), a.categoryAxis && /* @__PURE__ */ e.createElement(ja, null, a.categoryAxis.map((t, o) => /* @__PURE__ */ e.createElement(
476
- Ua,
477
- {
478
- key: o,
479
- categories: t.categories,
480
- title: t.title && {
481
- text: t.title.text,
482
- font: t.title.font,
483
- color: t.title.color
484
- },
485
- labels: t.labels && {
486
- font: t.labels.font,
487
- color: t.labels.color,
488
- rotation: t.labels.rotation
489
- },
490
- reverse: t.reverse
491
- }
492
- ))), a.valueAxis && /* @__PURE__ */ e.createElement($a, null, a.valueAxis.map((t, o) => /* @__PURE__ */ e.createElement(
493
- qa,
494
- {
495
- key: o,
496
- title: t.title && {
497
- text: t.title.text,
498
- font: t.title.font,
499
- color: t.title.color
500
- },
501
- labels: t.labels && {
502
- format: t.labels.format,
503
- font: t.labels.font,
504
- color: t.labels.color,
505
- rotation: t.labels.rotation
506
- }
507
- }
508
- ))), /* @__PURE__ */ e.createElement(Ja, null, a.series.map((t, o) => /* @__PURE__ */ e.createElement(Qa, { key: String(t.name) + o, ...t }))), /* @__PURE__ */ e.createElement(
509
- Za,
510
- {
511
- visible: (ke = a.legend) == null ? void 0 : ke.visible,
512
- position: (pe = a.legend) == null ? void 0 : pe.position,
513
- labels: {
514
- color: ((Te = (ye = a.legend) == null ? void 0 : ye.labels) == null ? void 0 : Te.color) || void 0,
515
- font: ((Ie = (Fe = a.legend) == null ? void 0 : Fe.labels) == null ? void 0 : Ie.font) || void 0
516
- }
517
- }
518
- )))), /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-property-pane k-pane k-pane-static" }, /* @__PURE__ */ e.createElement(el, { selected: Wt, onSelect: Ht, animation: !1 }, /* @__PURE__ */ e.createElement(q, { title: l.toLanguageString(Wl, n.tabChart) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
519
- A,
520
- {
521
- style: { maxWidth: "576px" },
522
- title: l.toLanguageString(Gl, n.barChart),
523
- expanded: ae,
524
- tabIndex: 0,
525
- onAction: bt
526
- },
527
- /* @__PURE__ */ e.createElement(v, null, ae && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(
528
- I,
529
- {
530
- selected: m === "bar" && j,
531
- onClick: Yt,
532
- icon: rl,
533
- iconName: "chart-bar-clustered"
534
- },
535
- l.toLanguageString(
536
- Hl,
537
- n.barChartBar
538
- )
539
- ), /* @__PURE__ */ e.createElement(
540
- I,
541
- {
542
- selected: m === "bar" && U,
543
- onClick: jt,
544
- icon: il,
545
- iconName: "chart-bar-stacked"
546
- },
547
- l.toLanguageString(
548
- Ol,
549
- n.barChartStackedBar
550
- )
551
- ), /* @__PURE__ */ e.createElement(
552
- I,
553
- {
554
- selected: m === "bar" && $,
555
- onClick: Ut,
556
- icon: sl,
557
- iconName: "chart-bar-stacked100"
558
- },
559
- l.toLanguageString(
560
- Xl,
561
- n.barChart100StackedBar
562
- )
563
- ))))
564
- ), /* @__PURE__ */ e.createElement(
565
- A,
566
- {
567
- style: { maxWidth: "576px" },
568
- title: l.toLanguageString(Yl, n.pieChart),
569
- expanded: le,
570
- tabIndex: 0,
571
- onAction: St
572
- },
573
- /* @__PURE__ */ e.createElement(v, null, le && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(
574
- I,
575
- {
576
- selected: m === "pie",
577
- onClick: ea,
578
- icon: cl,
579
- iconName: "chart-pie"
580
- },
581
- l.toLanguageString(
582
- jl,
583
- n.pieChartPie
584
- )
585
- ))))
586
- ), /* @__PURE__ */ e.createElement(
587
- A,
588
- {
589
- style: { maxWidth: "576px" },
590
- title: l.toLanguageString(Ul, n.columnChart),
591
- expanded: ne,
592
- tabIndex: 0,
593
- onAction: Lt
594
- },
595
- /* @__PURE__ */ e.createElement(v, null, ne && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(
596
- I,
597
- {
598
- selected: m === "column" && j,
599
- onClick: $t,
600
- icon: gl,
601
- iconName: "chart-column-clustered"
602
- },
603
- l.toLanguageString(
604
- $l,
605
- n.columnChartColumn
606
- )
607
- ), /* @__PURE__ */ e.createElement(
608
- I,
609
- {
610
- selected: m === "column" && U,
611
- onClick: qt,
612
- icon: ul,
613
- iconName: "chart-column-stacked"
614
- },
615
- l.toLanguageString(
616
- ql,
617
- n.columnChartStackedColumn
618
- )
619
- ), /* @__PURE__ */ e.createElement(
620
- I,
621
- {
622
- selected: m === "column" && $,
623
- onClick: Jt,
624
- icon: dl,
625
- iconName: "chart-column-stacked100"
626
- },
627
- l.toLanguageString(
628
- Jl,
629
- n.columnChart100StackedColumn
630
- )
631
- ))))
632
- ), /* @__PURE__ */ e.createElement(
633
- A,
634
- {
635
- style: { maxWidth: "576px" },
636
- title: l.toLanguageString(Ql, n.lineChart),
637
- expanded: oe,
638
- tabIndex: 0,
639
- onAction: Et
640
- },
641
- /* @__PURE__ */ e.createElement(v, null, oe && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(
642
- I,
643
- {
644
- selected: m === "line" && j,
645
- onClick: Qt,
646
- icon: ml,
647
- iconName: "chart-line"
648
- },
649
- l.toLanguageString(
650
- Zl,
651
- n.lineChartLine
652
- )
653
- ), /* @__PURE__ */ e.createElement(
654
- I,
655
- {
656
- selected: m === "line" && U,
657
- onClick: Zt,
658
- icon: xl,
659
- iconName: "chart-line-stacked"
660
- },
661
- l.toLanguageString(
662
- _l,
663
- n.lineChartStackedLine
664
- )
665
- ), /* @__PURE__ */ e.createElement(
666
- I,
667
- {
668
- selected: m === "line" && $,
669
- onClick: _t,
670
- icon: Cl,
671
- iconName: "chart-line-stacked100"
672
- },
673
- l.toLanguageString(
674
- en,
675
- n.lineChart100StackedLine
676
- )
677
- ))))
678
- ), /* @__PURE__ */ e.createElement(
679
- A,
680
- {
681
- style: { maxWidth: "576px" },
682
- title: l.toLanguageString(tn, n.scatterChart),
683
- expanded: re,
684
- tabIndex: 0,
685
- onAction: pt
686
- },
687
- /* @__PURE__ */ e.createElement(v, null, re && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(G, null, /* @__PURE__ */ e.createElement(
688
- I,
689
- {
690
- selected: m === "scatter",
691
- onClick: ta,
692
- icon: fl,
693
- iconName: "chart-scatter"
694
- },
695
- l.toLanguageString(
696
- an,
697
- n.scatterChartScatter
698
- )
699
- ))))
700
- ))), /* @__PURE__ */ e.createElement(q, { title: l.toLanguageString(ln, n.tabData) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
701
- A,
702
- {
703
- style: { maxWidth: "576px" },
704
- title: l.toLanguageString(nn, n.configuration),
705
- expanded: ie,
706
- tabIndex: 0,
707
- onAction: Tt
708
- },
709
- /* @__PURE__ */ e.createElement(v, null, ie && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement(
710
- w,
711
- {
712
- legend: m === "scatter" ? l.toLanguageString(
713
- on,
714
- n.configurationXAxis
715
- ) : l.toLanguageString(
716
- rn,
717
- n.configurationCategoryAxis
718
- )
719
- },
720
- /* @__PURE__ */ e.createElement(
721
- R,
722
- {
723
- data: a.columns || [],
724
- value: a.categoryField,
725
- onChange: aa,
726
- ...x
727
- }
728
- )
729
- ), lt(m) && /* @__PURE__ */ e.createElement(
730
- w,
731
- {
732
- legend: l.toLanguageString(
733
- sn,
734
- n.configurationSeries
735
- )
736
- },
737
- /* @__PURE__ */ e.createElement(
738
- bl,
739
- {
740
- data: a.series,
741
- initialData: a.initialSeries,
742
- onChange: la
743
- }
744
- )
745
- ), m === "pie" && /* @__PURE__ */ e.createElement(
746
- w,
747
- {
748
- legend: l.toLanguageString(
749
- cn,
750
- n.configurationValueAxis
751
- )
752
- },
753
- /* @__PURE__ */ e.createElement(
754
- R,
755
- {
756
- data: a.columns || [],
757
- value: a.valueField || "",
758
- ...x,
759
- onChange: na
760
- }
761
- )
762
- ))))
763
- ))), /* @__PURE__ */ e.createElement(q, { title: l.toLanguageString(gn, n.tabFormat) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
764
- A,
765
- {
766
- style: { maxWidth: "576px" },
767
- title: l.toLanguageString(un, n.formatChartArea),
768
- expanded: se,
769
- tabIndex: 0,
770
- onAction: It
771
- },
772
- /* @__PURE__ */ e.createElement(v, null, se && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement(
773
- w,
774
- {
775
- legend: l.toLanguageString(
776
- dn,
777
- n.formatChartAreaMargins
778
- )
779
- },
780
- /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(
781
- u,
782
- {
783
- labelText: l.toLanguageString(
784
- mn,
785
- n.formatChartAreaMarginsLeft
786
- ),
787
- editorId: "left"
788
- },
789
- /* @__PURE__ */ e.createElement(
790
- K,
791
- {
792
- id: "left",
793
- value: N.left !== void 0 ? N.left : null,
794
- onChange: oa,
795
- placeholder: l.toLanguageString(
796
- X,
797
- n.formatChartAreaMarginsAuto
798
- ),
799
- min: 0,
800
- max: 1e3,
801
- step: 1,
802
- fillMode: "outline"
803
- }
804
- )
805
- ), /* @__PURE__ */ e.createElement(
806
- u,
807
- {
808
- labelText: l.toLanguageString(
809
- xn,
810
- n.formatChartAreaMarginsRight
811
- ),
812
- editorId: "right"
813
- },
814
- /* @__PURE__ */ e.createElement(
815
- K,
816
- {
817
- id: "right",
818
- value: N.right !== void 0 ? N.right : null,
819
- onChange: ra,
820
- placeholder: l.toLanguageString(
821
- X,
822
- n.formatChartAreaMarginsAuto
823
- ),
824
- min: 0,
825
- max: 1e3,
826
- step: 1,
827
- fillMode: "outline"
828
- }
829
- )
830
- ), /* @__PURE__ */ e.createElement(
831
- u,
832
- {
833
- labelText: l.toLanguageString(
834
- Cn,
835
- n.formatChartAreaMarginsTop
836
- ),
837
- editorId: "top"
838
- },
839
- /* @__PURE__ */ e.createElement(
840
- K,
841
- {
842
- id: "top",
843
- value: N.top !== void 0 ? N.top : null,
844
- onChange: ia,
845
- placeholder: l.toLanguageString(
846
- X,
847
- n.formatChartAreaMarginsAuto
848
- ),
849
- min: 0,
850
- max: 1e3,
851
- step: 1,
852
- fillMode: "outline"
853
- }
854
- )
855
- ), /* @__PURE__ */ e.createElement(
856
- u,
857
- {
858
- labelText: l.toLanguageString(
859
- fn,
860
- n.formatChartAreaMarginsBottom
861
- ),
862
- editorId: "bottom"
863
- },
864
- /* @__PURE__ */ e.createElement(
865
- K,
866
- {
867
- id: "bottom",
868
- value: N.bottom !== void 0 ? N.bottom : null,
869
- onChange: sa,
870
- placeholder: l.toLanguageString(
871
- X,
872
- n.formatChartAreaMarginsAuto
873
- ),
874
- min: 0,
875
- max: 1e3,
876
- step: 1,
877
- fillMode: "outline"
878
- }
879
- )
880
- ))
881
- ), /* @__PURE__ */ e.createElement(
882
- w,
883
- {
884
- legend: l.toLanguageString(
885
- bn,
886
- n.formatChartAreaBackground
887
- )
888
- },
889
- /* @__PURE__ */ e.createElement(
890
- u,
891
- {
892
- labelText: l.toLanguageString(
893
- hn,
894
- n.formatChartAreaBackgroundColor
895
- ),
896
- editorId: "background"
897
- },
898
- /* @__PURE__ */ e.createElement(
899
- P,
900
- {
901
- id: "background",
902
- value: ((Ne = a.area) == null ? void 0 : Ne.background) || "",
903
- onChange: ca,
904
- view: "gradient",
905
- fillMode: "outline"
906
- }
907
- )
908
- )
909
- ))))
910
- ), /* @__PURE__ */ e.createElement(
911
- A,
912
- {
913
- style: { maxWidth: "576px" },
914
- title: l.toLanguageString(Sn, n.formatTitle),
915
- expanded: ce,
916
- tabIndex: 0,
917
- onAction: wt
918
- },
919
- /* @__PURE__ */ e.createElement(v, null, ce && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(
920
- u,
921
- {
922
- className: "k-col-span-2",
923
- editorId: "apply-to-title",
924
- labelText: l.toLanguageString(
925
- An,
926
- n.formatTitleApplyTo
927
- )
928
- },
929
- /* @__PURE__ */ e.createElement(
930
- R,
931
- {
932
- id: "apply-to-title",
933
- data: b,
934
- textField: "text",
935
- dataItemKey: "value",
936
- value: b.find(
937
- (t) => t.value === y.value
938
- ),
939
- onChange: ua,
940
- ...x
941
- }
942
- )
943
- ), /* @__PURE__ */ e.createElement(
944
- u,
945
- {
946
- className: "k-col-span-2",
947
- editorId: "titleText",
948
- labelText: l.toLanguageString(
949
- Ln,
950
- n.formatTitleLabel
951
- )
952
- },
953
- /* @__PURE__ */ e.createElement(
954
- J,
955
- {
956
- id: "titleText",
957
- placeholder: y.value === b[0].value ? b[0].text : b[1].text,
958
- value: O.text,
959
- onChange: da
960
- }
961
- )
962
- ), /* @__PURE__ */ e.createElement(
963
- u,
964
- {
965
- className: "k-col-span-2",
966
- editorId: "titleFont",
967
- labelText: l.toLanguageString(
968
- vn,
969
- n.formatTitleFont
970
- )
971
- },
972
- /* @__PURE__ */ e.createElement(
973
- E,
974
- {
975
- id: "titleFont",
976
- data: k,
977
- textField: "text",
978
- dataItemKey: "value",
979
- placeholder: l.toLanguageString(
980
- En,
981
- n.formatTitleFontPlaceholder
982
- ),
983
- value: k.find(
984
- (t) => t.value === p(O.font).name
985
- ) || d,
986
- onChange: ma,
987
- itemRender: M,
988
- ...x
989
- }
990
- )
991
- ), /* @__PURE__ */ e.createElement(
992
- u,
993
- {
994
- editorId: "titleFontSize",
995
- labelText: l.toLanguageString(
996
- kn,
997
- n.formatTitleSize
998
- )
999
- },
1000
- /* @__PURE__ */ e.createElement(
1001
- E,
1002
- {
1003
- id: "titleFontSize",
1004
- data: f,
1005
- textField: "text",
1006
- dataItemKey: "value",
1007
- placeholder: l.toLanguageString(
1008
- pn,
1009
- n.formatTitleSizePlaceholder
1010
- ),
1011
- value: f.find(
1012
- (t) => t.value === p(O.font).size
1013
- ) || d,
1014
- onChange: xa,
1015
- itemRender: M,
1016
- allowCustom: !0,
1017
- ...x
1018
- }
1019
- )
1020
- ), /* @__PURE__ */ e.createElement(
1021
- u,
1022
- {
1023
- editorId: "titleColor",
1024
- labelText: l.toLanguageString(
1025
- yn,
1026
- n.formatTitleColor
1027
- )
1028
- },
1029
- /* @__PURE__ */ e.createElement(
1030
- P,
1031
- {
1032
- id: "titleColor",
1033
- value: O.color || "",
1034
- onChange: Ca,
1035
- view: "gradient",
1036
- fillMode: "outline"
1037
- }
1038
- )
1039
- )))))
1040
- ), /* @__PURE__ */ e.createElement(
1041
- A,
1042
- {
1043
- style: { maxWidth: "576px" },
1044
- title: l.toLanguageString(Tn, n.formatSeries),
1045
- expanded: ge,
1046
- tabIndex: 0,
1047
- onAction: Pt
1048
- },
1049
- /* @__PURE__ */ e.createElement(v, null, ge && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement(
1050
- u,
1051
- {
1052
- editorId: "apply-to-series",
1053
- labelText: l.toLanguageString(
1054
- Fn,
1055
- n.formatSeriesApplyTo
1056
- )
1057
- },
1058
- /* @__PURE__ */ e.createElement(
1059
- R,
1060
- {
1061
- id: "apply-to-series",
1062
- data: a.series,
1063
- textField: "name",
1064
- dataItemKey: "name",
1065
- defaultItem: Y,
1066
- disabled: !lt(m),
1067
- value: a.series.find((t) => t.name === h) || Y,
1068
- onChange: Xt,
1069
- ...x
1070
- }
1071
- )
1072
- ), /* @__PURE__ */ e.createElement(
1073
- u,
1074
- {
1075
- editorId: "seriesColor",
1076
- labelText: l.toLanguageString(
1077
- In,
1078
- n.formatSeriesColor
1079
- )
1080
- },
1081
- /* @__PURE__ */ e.createElement(
1082
- P,
1083
- {
1084
- id: "seriesColor",
1085
- value: h ? (we = a.series.find((t) => t.name === h)) == null ? void 0 : we.color : "",
1086
- onChange: fa,
1087
- disabled: !h,
1088
- view: "gradient",
1089
- fillMode: "outline"
1090
- }
1091
- )
1092
- ), /* @__PURE__ */ e.createElement(u, null, /* @__PURE__ */ e.createElement(
1093
- at,
1094
- {
1095
- label: l.toLanguageString(
1096
- Nn,
1097
- n.formatSeriesShowLabels
1098
- ),
1099
- checked: h ? (Pe = (ze = a.series.find((t) => t.name === h)) == null ? void 0 : ze.labels) == null ? void 0 : Pe.visible : a.series.every((t) => {
1100
- var o;
1101
- return (o = t.labels) == null ? void 0 : o.visible;
1102
- }),
1103
- onChange: ba
1104
- }
1105
- )))))
1106
- ), /* @__PURE__ */ e.createElement(
1107
- A,
1108
- {
1109
- style: { maxWidth: "576px" },
1110
- title: l.toLanguageString(wn, n.formatLegend),
1111
- expanded: ue,
1112
- tabIndex: 0,
1113
- onAction: Bt
1114
- },
1115
- /* @__PURE__ */ e.createElement(v, null, ue && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(nt, { editorId: "show-legend" }, l.toLanguageString(
1116
- zn,
1117
- n.formatLegendShowLegend
1118
- )), /* @__PURE__ */ e.createElement(
1119
- hl,
1120
- {
1121
- id: "show-legend",
1122
- checked: (Ve = a.legend) == null ? void 0 : Ve.visible,
1123
- onChange: ha
1124
- }
1125
- ), /* @__PURE__ */ e.createElement(
1126
- u,
1127
- {
1128
- className: "k-col-span-2",
1129
- editorId: "legendLabelsFont",
1130
- labelText: l.toLanguageString(
1131
- Pn,
1132
- n.formatLegendFont
1133
- )
1134
- },
1135
- /* @__PURE__ */ e.createElement(
1136
- E,
1137
- {
1138
- id: "legendLabelsFont",
1139
- data: k,
1140
- textField: "text",
1141
- dataItemKey: "value",
1142
- placeholder: l.toLanguageString(
1143
- Vn,
1144
- n.formatLegendFontPlaceholder
1145
- ),
1146
- value: k.find(
1147
- (t) => {
1148
- var o, g, C;
1149
- return t.value === ((C = p(((g = (o = a.legend) == null ? void 0 : o.labels) == null ? void 0 : g.font) || "")) == null ? void 0 : C.name);
1150
- }
1151
- ) || d,
1152
- onChange: Aa,
1153
- itemRender: M,
1154
- disabled: ((Be = a.legend) == null ? void 0 : Be.visible) === !1,
1155
- ...x
1156
- }
1157
- )
1158
- ), /* @__PURE__ */ e.createElement(
1159
- u,
1160
- {
1161
- editorId: "legendLabelsSize",
1162
- labelText: l.toLanguageString(
1163
- Bn,
1164
- n.formatLegendSize
1165
- )
1166
- },
1167
- /* @__PURE__ */ e.createElement(
1168
- E,
1169
- {
1170
- id: "legendLabelsSize",
1171
- data: f,
1172
- textField: "text",
1173
- dataItemKey: "value",
1174
- placeholder: l.toLanguageString(
1175
- Mn,
1176
- n.formatLegendSizePlaceholder
1177
- ),
1178
- value: f.find(
1179
- (t) => {
1180
- var o, g, C;
1181
- return t.value === ((C = p(((g = (o = a.legend) == null ? void 0 : o.labels) == null ? void 0 : g.font) || "")) == null ? void 0 : C.size);
1182
- }
1183
- ) || d,
1184
- onChange: Sa,
1185
- disabled: ((Me = a.legend) == null ? void 0 : Me.visible) === !1,
1186
- allowCustom: !0,
1187
- ...x
1188
- }
1189
- )
1190
- ), /* @__PURE__ */ e.createElement(
1191
- u,
1192
- {
1193
- editorId: "legendLabelsColor",
1194
- labelText: l.toLanguageString(
1195
- Rn,
1196
- n.formatLegendColor
1197
- )
1198
- },
1199
- /* @__PURE__ */ e.createElement(
1200
- P,
1201
- {
1202
- id: "legendLabelsColor",
1203
- value: ((Ke = (Re = a.legend) == null ? void 0 : Re.labels) == null ? void 0 : Ke.color) || "",
1204
- onChange: La,
1205
- disabled: ((De = a.legend) == null ? void 0 : De.visible) === !1,
1206
- view: "gradient",
1207
- fillMode: "outline"
1208
- }
1209
- )
1210
- ), /* @__PURE__ */ e.createElement(
1211
- u,
1212
- {
1213
- className: "k-col-span-2",
1214
- editorId: "legendPosition",
1215
- labelText: l.toLanguageString(
1216
- Kn,
1217
- n.formatLegendPosition
1218
- )
1219
- },
1220
- /* @__PURE__ */ e.createElement(
1221
- R,
1222
- {
1223
- id: "legendPosition",
1224
- data: _,
1225
- textField: "text",
1226
- dataItemKey: "value",
1227
- value: _.find(
1228
- (t) => {
1229
- var o;
1230
- return t.value === ((o = a.legend) == null ? void 0 : o.position);
1231
- }
1232
- ),
1233
- onChange: va,
1234
- disabled: ((We = a.legend) == null ? void 0 : We.visible) === !1,
1235
- ...x
1236
- }
1237
- )
1238
- )))))
1239
- ), m !== "pie" && /* @__PURE__ */ e.createElement(
1240
- A,
1241
- {
1242
- style: { maxWidth: "576px" },
1243
- title: m === "scatter" ? l.toLanguageString(Dn, n.formatXAxis) : l.toLanguageString(
1244
- Wn,
1245
- n.formatCategoryAxis
1246
- ),
1247
- expanded: de,
1248
- tabIndex: 0,
1249
- onAction: Rt
1250
- },
1251
- /* @__PURE__ */ e.createElement(v, null, de && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement(
1252
- w,
1253
- {
1254
- legend: l.toLanguageString(
1255
- Gn,
1256
- n.formatCategoryAxisTitle
1257
- )
1258
- },
1259
- /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(u, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
1260
- J,
1261
- {
1262
- placeholder: l.toLanguageString(
1263
- Hn,
1264
- n.formatCategoryAxisTitlePlaceholder
1265
- ),
1266
- value: ((Ge = a.categoryAxis[0].title) == null ? void 0 : Ge.text) || "",
1267
- onChange: Ea
1268
- }
1269
- )), /* @__PURE__ */ e.createElement(
1270
- u,
1271
- {
1272
- className: "k-col-span-2",
1273
- editorId: "categoryAxisTitleFont",
1274
- labelText: l.toLanguageString(
1275
- On,
1276
- n.formatCategoryAxisTitleFont
1277
- )
1278
- },
1279
- /* @__PURE__ */ e.createElement(
1280
- E,
1281
- {
1282
- id: "categoryAxisTitleFont",
1283
- data: k,
1284
- textField: "text",
1285
- dataItemKey: "value",
1286
- itemRender: M,
1287
- placeholder: l.toLanguageString(
1288
- Xn,
1289
- n.formatCategoryAxisTitleFontPlaceholder
1290
- ),
1291
- value: k.find(
1292
- (t) => {
1293
- var o, g;
1294
- return t.value === ((g = p(
1295
- ((o = a.categoryAxis[0].title) == null ? void 0 : o.font) || ""
1296
- )) == null ? void 0 : g.name);
1297
- }
1298
- ) || d,
1299
- onChange: pa,
1300
- ...x
1301
- }
1302
- )
1303
- ), /* @__PURE__ */ e.createElement(
1304
- u,
1305
- {
1306
- editorId: "categoryAxisTitleFontSize",
1307
- labelText: l.toLanguageString(
1308
- Yn,
1309
- n.formatCategoryAxisTitleSize
1310
- )
1311
- },
1312
- /* @__PURE__ */ e.createElement(
1313
- E,
1314
- {
1315
- id: "categoryAxisTitleFontSize",
1316
- data: f,
1317
- textField: "text",
1318
- dataItemKey: "value",
1319
- placeholder: l.toLanguageString(
1320
- jn,
1321
- n.formatCategoryAxisTitleSizePlaceholder
1322
- ),
1323
- value: f.find(
1324
- (t) => {
1325
- var o, g;
1326
- return t.value === ((g = p(
1327
- ((o = a.categoryAxis[0].title) == null ? void 0 : o.font) || ""
1328
- )) == null ? void 0 : g.size);
1329
- }
1330
- ) || d,
1331
- onChange: ka,
1332
- allowCustom: !0,
1333
- ...x
1334
- }
1335
- )
1336
- ), /* @__PURE__ */ e.createElement(
1337
- u,
1338
- {
1339
- editorId: "categoryAxisTitleColor",
1340
- labelText: l.toLanguageString(
1341
- Un,
1342
- n.formatCategoryAxisTitleColor
1343
- )
1344
- },
1345
- /* @__PURE__ */ e.createElement(
1346
- P,
1347
- {
1348
- id: "categoryAxisTitleColor",
1349
- view: "gradient",
1350
- value: ((He = a.categoryAxis[0].title) == null ? void 0 : He.color) || "",
1351
- onChange: ya,
1352
- fillMode: "outline"
1353
- }
1354
- )
1355
- ))
1356
- ), /* @__PURE__ */ e.createElement(
1357
- w,
1358
- {
1359
- legend: l.toLanguageString(
1360
- $n,
1361
- n.formatCategoryAxisLabels
1362
- )
1363
- },
1364
- /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(
1365
- u,
1366
- {
1367
- className: "k-col-span-2",
1368
- editorId: "categoryAxisLabelsFont",
1369
- labelText: l.toLanguageString(
1370
- qn,
1371
- n.formatCategoryAxisLabelsFont
1372
- )
1373
- },
1374
- /* @__PURE__ */ e.createElement(
1375
- E,
1376
- {
1377
- id: "categoryAxisLabelsFont",
1378
- data: k,
1379
- textField: "text",
1380
- dataItemKey: "value",
1381
- placeholder: l.toLanguageString(
1382
- Jn,
1383
- n.formatCategoryAxisLabelsFontPlaceholder
1384
- ),
1385
- value: k.find(
1386
- (t) => {
1387
- var o, g;
1388
- return t.value === ((g = p(
1389
- ((o = a.categoryAxis[0].labels) == null ? void 0 : o.font) || ""
1390
- )) == null ? void 0 : g.name);
1391
- }
1392
- ) || d,
1393
- onChange: Fa,
1394
- itemRender: M,
1395
- ...x
1396
- }
1397
- )
1398
- ), /* @__PURE__ */ e.createElement(
1399
- u,
1400
- {
1401
- editorId: "categoryAxisLabelsFontSize",
1402
- labelText: l.toLanguageString(
1403
- Qn,
1404
- n.formatCategoryAxisLabelsSize
1405
- )
1406
- },
1407
- /* @__PURE__ */ e.createElement(
1408
- E,
1409
- {
1410
- id: "categoryAxisLabelsFontSize",
1411
- data: f,
1412
- textField: "text",
1413
- dataItemKey: "value",
1414
- placeholder: l.toLanguageString(
1415
- Zn,
1416
- n.formatCategoryAxisLabelsSizePlaceholder
1417
- ),
1418
- value: f.find(
1419
- (t) => {
1420
- var o, g;
1421
- return t.value === ((g = p(
1422
- ((o = a.categoryAxis[0].labels) == null ? void 0 : o.font) || ""
1423
- )) == null ? void 0 : g.size);
1424
- }
1425
- ) || d,
1426
- onChange: Ta,
1427
- allowCustom: !0,
1428
- ...x
1429
- }
1430
- )
1431
- ), /* @__PURE__ */ e.createElement(
1432
- u,
1433
- {
1434
- editorId: "categoryAxisLabelsColor",
1435
- labelText: l.toLanguageString(
1436
- _n,
1437
- n.formatCategoryAxisLabelsColor
1438
- )
1439
- },
1440
- /* @__PURE__ */ e.createElement(
1441
- P,
1442
- {
1443
- id: "categoryAxisLabelsColor",
1444
- view: "gradient",
1445
- value: ((Oe = a.categoryAxis[0].labels) == null ? void 0 : Oe.color) || "",
1446
- onChange: Ia,
1447
- fillMode: "outline"
1448
- }
1449
- )
1450
- ), /* @__PURE__ */ e.createElement(
1451
- u,
1452
- {
1453
- editorId: "categoryAxisLabelsRotation",
1454
- labelText: l.toLanguageString(
1455
- eo,
1456
- n.formatCategoryAxisLabelsRotation
1457
- )
1458
- },
1459
- /* @__PURE__ */ e.createElement(
1460
- K,
1461
- {
1462
- id: "categoryAxisLabelsRotation",
1463
- value: typeof ((Xe = a.categoryAxis[0].labels) == null ? void 0 : Xe.rotation) == "number" ? (Ye = a.categoryAxis[0].labels) == null ? void 0 : Ye.rotation : null,
1464
- placeholder: l.toLanguageString(
1465
- to,
1466
- n.formatCategoryAxisLabelsRotationAuto
1467
- ),
1468
- onChange: Na,
1469
- fillMode: "outline",
1470
- min: -360,
1471
- max: 360,
1472
- step: 1
1473
- }
1474
- )
1475
- ), /* @__PURE__ */ e.createElement(u, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
1476
- at,
1477
- {
1478
- label: l.toLanguageString(
1479
- ao,
1480
- n.formatCategoryAxisLabelsReverseOrder
1481
- ),
1482
- checked: a.categoryAxis[0].reverse || !1,
1483
- onChange: wa
1484
- }
1485
- )))
1486
- ))))
1487
- ), m !== "pie" && /* @__PURE__ */ e.createElement(
1488
- A,
1489
- {
1490
- style: { maxWidth: "576px" },
1491
- title: m === "scatter" ? l.toLanguageString(lo, n.formatYAxis) : l.toLanguageString(
1492
- no,
1493
- n.formatValueAxis
1494
- ),
1495
- expanded: me,
1496
- tabIndex: 0,
1497
- onAction: Dt
1498
- },
1499
- /* @__PURE__ */ e.createElement(v, null, me && /* @__PURE__ */ e.createElement(L, null, /* @__PURE__ */ e.createElement(B, { onKeyDown: z }, /* @__PURE__ */ e.createElement(
1500
- w,
1501
- {
1502
- legend: l.toLanguageString(
1503
- oo,
1504
- n.formatValueAxisTitle
1505
- )
1506
- },
1507
- /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(u, { className: "k-col-span-2" }, /* @__PURE__ */ e.createElement(
1508
- J,
1509
- {
1510
- placeholder: l.toLanguageString(
1511
- ro,
1512
- n.formatValueAxisTitlePlaceholder
1513
- ),
1514
- value: ((Ue = (je = a.valueAxis[0]) == null ? void 0 : je.title) == null ? void 0 : Ue.text) || "",
1515
- onChange: za
1516
- }
1517
- )), /* @__PURE__ */ e.createElement(
1518
- u,
1519
- {
1520
- className: "k-col-span-2",
1521
- editorId: "valueAxisTitleFont",
1522
- labelText: l.toLanguageString(
1523
- io,
1524
- n.formatValueAxisTitleFont
1525
- )
1526
- },
1527
- /* @__PURE__ */ e.createElement(
1528
- E,
1529
- {
1530
- id: "valueAxisTitleFont",
1531
- data: k,
1532
- textField: "text",
1533
- dataItemKey: "value",
1534
- itemRender: M,
1535
- placeholder: l.toLanguageString(
1536
- so,
1537
- n.formatValueAxisTitleFontPlaceholder
1538
- ),
1539
- value: k.find(
1540
- (t) => {
1541
- var o, g, C;
1542
- return t.value === ((C = p(
1543
- ((g = (o = a.valueAxis[0]) == null ? void 0 : o.title) == null ? void 0 : g.font) || ""
1544
- )) == null ? void 0 : C.name);
1545
- }
1546
- ) || d,
1547
- onChange: Va,
1548
- ...x
1549
- }
1550
- )
1551
- ), /* @__PURE__ */ e.createElement(
1552
- u,
1553
- {
1554
- editorId: "valueAxisTitleFontSize",
1555
- labelText: l.toLanguageString(
1556
- co,
1557
- n.formatValueAxisTitleSize
1558
- )
1559
- },
1560
- /* @__PURE__ */ e.createElement(
1561
- E,
1562
- {
1563
- id: "valueAxisTitleFontSize",
1564
- data: f,
1565
- textField: "text",
1566
- dataItemKey: "value",
1567
- placeholder: l.toLanguageString(
1568
- go,
1569
- n.formatValueAxisTitleSizePlaceholder
1570
- ),
1571
- value: f.find(
1572
- (t) => {
1573
- var o, g, C;
1574
- return t.value === ((C = p(
1575
- ((g = (o = a.valueAxis[0]) == null ? void 0 : o.title) == null ? void 0 : g.font) || ""
1576
- )) == null ? void 0 : C.size);
1577
- }
1578
- ) || d,
1579
- onChange: Pa,
1580
- allowCustom: !0,
1581
- ...x
1582
- }
1583
- )
1584
- ), /* @__PURE__ */ e.createElement(
1585
- u,
1586
- {
1587
- editorId: "valueAxisTitleColor",
1588
- labelText: l.toLanguageString(
1589
- uo,
1590
- n.formatValueAxisTitleColor
1591
- )
1592
- },
1593
- /* @__PURE__ */ e.createElement(
1594
- P,
1595
- {
1596
- id: "valueAxisTitleColor",
1597
- view: "gradient",
1598
- value: ((qe = ($e = a.valueAxis[0]) == null ? void 0 : $e.title) == null ? void 0 : qe.color) || "",
1599
- onChange: Ba,
1600
- fillMode: "outline"
1601
- }
1602
- )
1603
- ))
1604
- ), /* @__PURE__ */ e.createElement(
1605
- w,
1606
- {
1607
- legend: l.toLanguageString(
1608
- mo,
1609
- n.formatValueAxisLabels
1610
- )
1611
- },
1612
- /* @__PURE__ */ e.createElement("div", { className: "k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4" }, /* @__PURE__ */ e.createElement(
1613
- u,
1614
- {
1615
- className: "k-col-span-2",
1616
- editorId: "valueAxisLabelsFormat",
1617
- labelText: l.toLanguageString(
1618
- xo,
1619
- n.formatValueAxisLabelsFormat
1620
- )
1621
- },
1622
- /* @__PURE__ */ e.createElement(
1623
- R,
1624
- {
1625
- id: "valueAxisLabelsFormat",
1626
- data: te,
1627
- textField: "text",
1628
- dataItemKey: "value",
1629
- defaultItem: ee,
1630
- value: te.find(
1631
- (t) => {
1632
- var o, g;
1633
- return t.value === ((g = (o = a.valueAxis[0]) == null ? void 0 : o.labels) == null ? void 0 : g.format);
1634
- }
1635
- ) || ee,
1636
- onChange: Wa,
1637
- ...x
1638
- }
1639
- )
1640
- ), /* @__PURE__ */ e.createElement(
1641
- u,
1642
- {
1643
- className: "k-col-span-2",
1644
- editorId: "valueAxisLabelsFont",
1645
- labelText: l.toLanguageString(
1646
- Co,
1647
- n.formatValueAxisLabelsFont
1648
- )
1649
- },
1650
- /* @__PURE__ */ e.createElement(
1651
- E,
1652
- {
1653
- id: "valueAxisLabelsFont",
1654
- data: k,
1655
- textField: "text",
1656
- dataItemKey: "value",
1657
- placeholder: l.toLanguageString(
1658
- fo,
1659
- n.formatValueAxisLabelsFontPlaceholder
1660
- ),
1661
- value: k.find(
1662
- (t) => {
1663
- var o, g, C;
1664
- return t.value === ((C = p(
1665
- ((g = (o = a.valueAxis[0]) == null ? void 0 : o.labels) == null ? void 0 : g.font) || ""
1666
- )) == null ? void 0 : C.name);
1667
- }
1668
- ) || d,
1669
- onChange: Ra,
1670
- itemRender: M,
1671
- ...x
1672
- }
1673
- )
1674
- ), /* @__PURE__ */ e.createElement(
1675
- u,
1676
- {
1677
- editorId: "valueAxisLabelsFontSize",
1678
- labelText: l.toLanguageString(
1679
- bo,
1680
- n.formatValueAxisLabelsSize
1681
- )
1682
- },
1683
- /* @__PURE__ */ e.createElement(
1684
- E,
1685
- {
1686
- id: "valueAxisLabelsFontSize",
1687
- data: f,
1688
- textField: "text",
1689
- dataItemKey: "value",
1690
- placeholder: l.toLanguageString(
1691
- ho,
1692
- n.formatValueAxisLabelsSizePlaceholder
1693
- ),
1694
- value: f.find(
1695
- (t) => {
1696
- var o, g, C;
1697
- return t.value === ((C = p(
1698
- ((g = (o = a.valueAxis[0]) == null ? void 0 : o.labels) == null ? void 0 : g.font) || ""
1699
- )) == null ? void 0 : C.size);
1700
- }
1701
- ) || d,
1702
- onChange: Ma,
1703
- allowCustom: !0,
1704
- ...x
1705
- }
1706
- )
1707
- ), /* @__PURE__ */ e.createElement(
1708
- u,
1709
- {
1710
- editorId: "valueAxisLabelsColor",
1711
- labelText: l.toLanguageString(
1712
- So,
1713
- n.formatValueAxisLabelsColor
1714
- )
1715
- },
1716
- /* @__PURE__ */ e.createElement(
1717
- P,
1718
- {
1719
- id: "valueAxisLabelsColor",
1720
- view: "gradient",
1721
- value: ((Qe = (Je = a.valueAxis[0]) == null ? void 0 : Je.labels) == null ? void 0 : Qe.color) || "",
1722
- onChange: Ka,
1723
- fillMode: "outline"
1724
- }
1725
- )
1726
- ), /* @__PURE__ */ e.createElement(
1727
- u,
1728
- {
1729
- editorId: "valueAxisLabelsRotation",
1730
- labelText: l.toLanguageString(
1731
- Ao,
1732
- n.formatValueAxisLabelsRotation
1733
- )
1734
- },
1735
- /* @__PURE__ */ e.createElement(
1736
- K,
1737
- {
1738
- id: "valueAxisLabelsRotation",
1739
- value: typeof ((_e = (Ze = a.valueAxis[0]) == null ? void 0 : Ze.labels) == null ? void 0 : _e.rotation) == "number" ? (tt = (et = a.valueAxis[0]) == null ? void 0 : et.labels) == null ? void 0 : tt.rotation : null,
1740
- placeholder: l.toLanguageString(
1741
- Lo,
1742
- n.formatValueAxisLabelsRotationAuto
1743
- ),
1744
- onChange: Da,
1745
- fillMode: "outline",
1746
- min: -360,
1747
- max: 360,
1748
- step: 1
1749
- }
1750
- )
1751
- ))
1752
- ))))
1753
- ))))))
116
+ )), /* @__PURE__ */ e.createElement("div", { className: "k-preview-pane-content", style: { height: "calc(100% - 50px)" } }, /* @__PURE__ */ e.createElement(de, { ref: c, state: t }))), /* @__PURE__ */ e.createElement("div", { className: "k-chart-wizard-property-pane k-pane k-pane-static" }, /* @__PURE__ */ e.createElement(N, { selected: z, onSelect: T, animation: !1 }, /* @__PURE__ */ e.createElement(s, { title: o.toLanguageString(Z, i.tabChart) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ce, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(ue, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(me, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(se, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(pe, { state: t, onStateChange: a }))), /* @__PURE__ */ e.createElement(s, { title: o.toLanguageString(_, i.tabData) }, /* @__PURE__ */ e.createElement(te, { state: t, onStateChange: a })), /* @__PURE__ */ e.createElement(s, { title: o.toLanguageString($, i.tabFormat) }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(ae, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(ne, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(re, { state: t, onStateChange: a }), /* @__PURE__ */ e.createElement(oe, { state: t, onStateChange: a }), u !== "pie" && /* @__PURE__ */ e.createElement(ie, { state: t, onStateChange: a }), u !== "pie" && /* @__PURE__ */ e.createElement(le, { state: t, onStateChange: a }))))))
1754
117
  );
1755
118
  });
1756
- Fo.displayName = "ChartWizard";
119
+ ge.displayName = "ChartWizard";
1757
120
  export {
1758
- Fo as ChartWizard
121
+ ge as ChartWizard
1759
122
  };