@progress/kendo-react-chart-wizard 8.2.0-develop.38

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.
@@ -0,0 +1,344 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ var ie = /* @__PURE__ */ ((t) => (t[t.seriesType = 0] = "seriesType", t[t.stacked = 1] = "stacked", t[t.categoryAxisX = 2] = "categoryAxisX", t[t.valueAxisY = 3] = "valueAxisY", t[t.seriesChange = 4] = "seriesChange", t[t.areaMarginLeft = 5] = "areaMarginLeft", t[t.areaMarginRight = 6] = "areaMarginRight", t[t.areaMarginTop = 7] = "areaMarginTop", t[t.areaMarginBottom = 8] = "areaMarginBottom", t[t.areaBackground = 9] = "areaBackground", t[t.titleText = 10] = "titleText", t[t.titleFontName = 11] = "titleFontName", t[t.titleFontSize = 12] = "titleFontSize", t[t.titleColor = 13] = "titleColor", t[t.subtitleText = 14] = "subtitleText", t[t.subtitleFontName = 15] = "subtitleFontName", t[t.subtitleFontSize = 16] = "subtitleFontSize", t[t.subtitleColor = 17] = "subtitleColor", t[t.seriesColor = 18] = "seriesColor", t[t.seriesLabel = 19] = "seriesLabel", t[t.legendVisible = 20] = "legendVisible", t[t.legendFontName = 21] = "legendFontName", t[t.legendFontSize = 22] = "legendFontSize", t[t.legendColor = 23] = "legendColor", t[t.legendPosition = 24] = "legendPosition", t[t.categoryAxisTitleText = 25] = "categoryAxisTitleText", t[t.categoryAxisTitleFontName = 26] = "categoryAxisTitleFontName", t[t.categoryAxisTitleFontSize = 27] = "categoryAxisTitleFontSize", t[t.categoryAxisTitleColor = 28] = "categoryAxisTitleColor", t[t.categoryAxisLabelsFontName = 29] = "categoryAxisLabelsFontName", t[t.categoryAxisLabelsFontSize = 30] = "categoryAxisLabelsFontSize", t[t.categoryAxisLabelsColor = 31] = "categoryAxisLabelsColor", t[t.categoryAxisLabelsRotation = 32] = "categoryAxisLabelsRotation", t[t.categoryAxisReverseOrder = 33] = "categoryAxisReverseOrder", t[t.valueAxisTitleText = 34] = "valueAxisTitleText", t[t.valueAxisTitleFontName = 35] = "valueAxisTitleFontName", t[t.valueAxisTitleFontSize = 36] = "valueAxisTitleFontSize", t[t.valueAxisTitleColor = 37] = "valueAxisTitleColor", t[t.valueAxisLabelsFormat = 38] = "valueAxisLabelsFormat", t[t.valueAxisLabelsFontName = 39] = "valueAxisLabelsFontName", t[t.valueAxisLabelsFontSize = 40] = "valueAxisLabelsFontSize", t[t.valueAxisLabelsColor = 41] = "valueAxisLabelsColor", t[t.valueAxisLabelsRotation = 42] = "valueAxisLabelsRotation", t))(ie || {});
10
+ const F = [
11
+ { text: "16", value: "16px" },
12
+ { text: "20", value: "20px" },
13
+ { text: "24", value: "24px" },
14
+ { text: "48", value: "48px" },
15
+ { text: "60", value: "60px" },
16
+ { text: "96", value: "96px" }
17
+ ], y = [
18
+ {
19
+ text: "Arial",
20
+ value: "Arial, Helvetica, sans-serif",
21
+ style: { fontFamily: "Arial, Helvetica, sans-serif" }
22
+ },
23
+ {
24
+ text: "Courier New",
25
+ value: "'Courier New', Courier, monospace",
26
+ style: { fontFamily: "'Courier New', Courier, monospace" }
27
+ },
28
+ {
29
+ text: "Georgia",
30
+ value: "Georgia, serif",
31
+ style: { fontFamily: "Georgia, serif" }
32
+ },
33
+ {
34
+ text: "Impact",
35
+ value: "Impact, Charcoal, sans-serif",
36
+ style: { fontFamily: "Impact, Charcoal, sans-serif" }
37
+ },
38
+ {
39
+ text: "Lucida Console",
40
+ value: "'Lucida Console', Monaco, monospace",
41
+ style: { fontFamily: "'Lucida Console', Monaco, monospace" }
42
+ },
43
+ {
44
+ text: "Tahoma",
45
+ value: "Tahoma, Geneva, sans-serif",
46
+ style: { fontFamily: "Tahoma, Geneva, sans-serif" }
47
+ },
48
+ {
49
+ text: "Times New Roman",
50
+ value: "'Times New Roman', Times,serif",
51
+ style: { fontFamily: "'Times New Roman', Times,serif" }
52
+ },
53
+ {
54
+ text: "Trebuchet MS",
55
+ value: "'Trebuchet MS', Helvetica, sans-serif",
56
+ style: { fontFamily: "'Trebuchet MS', Helvetica, sans-serif" }
57
+ },
58
+ {
59
+ text: "Verdana",
60
+ value: "Verdana, Geneva, sans-serif",
61
+ style: { fontFamily: "Verdana, Geneva, sans-serif" }
62
+ }
63
+ ], oe = "column", ne = "bar", W = "line", Q = "pie", Z = "scatter", ue = [oe, ne, W, Z], ce = {
64
+ type: W,
65
+ width: 0
66
+ }, z = (t) => t && ue.includes(t), L = ["string", "date", "number"], N = ["number"], _ = {
67
+ bar: [
68
+ { axisType: "category", types: L },
69
+ { axisType: "value", types: N }
70
+ ],
71
+ column: [
72
+ { axisType: "category", types: L },
73
+ { axisType: "value", types: N }
74
+ ],
75
+ line: [
76
+ { axisType: "category", types: L },
77
+ { axisType: "value", types: N }
78
+ ],
79
+ pie: [
80
+ { axisType: "category", types: L },
81
+ { axisType: "value", types: N, count: 1 }
82
+ ],
83
+ scatter: [
84
+ { axisType: "category", types: L },
85
+ { axisType: "value", types: N }
86
+ ]
87
+ }, T = (t, l) => `${l || ""} ${t || ""}`.trim(), ee = (t) => {
88
+ const l = (t || "").indexOf(" "), a = t == null ? void 0 : t.substring(0, l), e = t == null ? void 0 : t.substring(l + 1);
89
+ return { size: a, name: e };
90
+ }, h = (t, l, a) => {
91
+ const { size: e } = ee(a);
92
+ return t ? T(t, e || l) : "";
93
+ }, C = (t, l, a) => {
94
+ const { name: e } = ee(a);
95
+ return t ? T(e || l, t) : "";
96
+ }, te = (t, l) => {
97
+ const a = [], e = t[0].slice();
98
+ l.types.forEach((n) => {
99
+ e.forEach((c, o) => {
100
+ typeof c.value === n && a.push(o);
101
+ });
102
+ });
103
+ const g = a.findIndex((n) => {
104
+ const c = t.map((o) => o[n].value);
105
+ return new Set(c).size === c.length;
106
+ });
107
+ return Math.max(g, 0);
108
+ }, ae = (t, l) => {
109
+ const a = [], e = t[0].slice();
110
+ return l.forEach((g) => {
111
+ g.types.forEach((n) => {
112
+ e.forEach((c, o) => {
113
+ typeof c.value === n && a.push(o);
114
+ });
115
+ });
116
+ }), a;
117
+ }, re = () => structuredClone({
118
+ columns: [],
119
+ data: [],
120
+ series: [],
121
+ initialSeries: [],
122
+ categoryAxis: [],
123
+ valueAxis: [{ labels: { visible: !0 } }],
124
+ area: {
125
+ margin: { left: void 0, right: void 0, top: void 0, bottom: void 0 }
126
+ },
127
+ stack: !1
128
+ }), le = (t, l, a) => {
129
+ const e = re();
130
+ e.seriesType = l, e.data = t;
131
+ const g = _[l];
132
+ if (!g)
133
+ return e;
134
+ const n = t[0].slice();
135
+ e.columns = t[0].map((s) => String(s.field));
136
+ const c = g.find((s) => s.axisType === "category");
137
+ let o = -1;
138
+ c && (o = a != null && a.categoryAxis ? e.columns.indexOf(a == null ? void 0 : a.categoryAxis) : te(t, c));
139
+ const m = g.filter((s) => s.axisType === "value");
140
+ let u = ae(t, m);
141
+ u.includes(o) && (u = u.filter((s) => s !== o));
142
+ const b = [];
143
+ u.forEach((s) => {
144
+ const x = n[s], d = [];
145
+ t.forEach((v) => {
146
+ d.push(v[s].value);
147
+ }), b.push({
148
+ name: x.field,
149
+ type: l,
150
+ data: d,
151
+ stack: !1,
152
+ labels: { visible: !1 },
153
+ ...l === Z ? ce : {}
154
+ });
155
+ });
156
+ const f = o > -1 ? t.map((s) => String(s[o].value)) : [];
157
+ return b.length && (e.series = b.map((s, x) => ({ ...s, id: x })), e.initialSeries = structuredClone(e.series)), f.length && (e.categoryAxis = [{ categories: f, labels: { visible: !0, rotation: "auto" } }], e.categoryField = e.columns[o]), e.legend = { visible: !0 }, e.title = { text: void 0 }, e.subtitle = { text: void 0 }, e;
158
+ }, R = (t, l, a) => {
159
+ const e = re();
160
+ e.seriesType = l, e.data = t;
161
+ const g = _[l];
162
+ if (!g)
163
+ return e;
164
+ const n = t[0].map((s) => s.field), c = g.find((s) => s.axisType === "category");
165
+ let o = -1;
166
+ c && (o = a != null && a.categoryAxis ? n.indexOf(a == null ? void 0 : a.categoryAxis) : te(t, c));
167
+ const m = g.filter((s) => s.axisType === "value");
168
+ let u = [];
169
+ a != null && a.valueAxis ? u = [n.indexOf(a.valueAxis)] : u = ae(t, m), u.includes(o) && u.length > 1 && (u = u.filter((s) => s !== o)), typeof m[0].count == "number" && (u = u.slice(0, m[0].count));
170
+ const b = o > -1 ? t.map((s) => String(s[o].value)) : [], f = [];
171
+ return t.forEach((s) => {
172
+ const x = {};
173
+ u.forEach((d) => {
174
+ const v = s[d];
175
+ x[v.field] = v.value, x[s[o].field] = s[o].value;
176
+ }), f.push(x);
177
+ }), e.columns = n, e.categoryAxis = [{ categories: b, title: { text: "" } }], e.series = [{
178
+ id: 0,
179
+ data: f,
180
+ type: l,
181
+ name: n[o],
182
+ labels: { visible: !0 },
183
+ categoryField: n[o],
184
+ field: n[u[0]]
185
+ }], e.categoryField = n[o], e.valueField = n[u[0]], e.initialSeries = structuredClone(e.series), e;
186
+ }, U = (t) => t != null, xe = (t, l, a) => {
187
+ const e = se(t, (a == null ? void 0 : a.seriesType) || l);
188
+ return typeof (a == null ? void 0 : a.stack) != "undefined" ? ge(e, 1, a.stack) : e;
189
+ }, se = (t, l) => (z(l) ? le : R)(t, l), S = (t, l) => {
190
+ if (l.legend = t.legend, l.area = t.area, l.title = t.title, l.subtitle = t.subtitle, l.series.length === t.series.length)
191
+ for (let a = 0; a < l.series.length; a++)
192
+ l.series[a].color = t.series[a].color, l.series[a].labels = t.series[a].labels;
193
+ return t.series.every((a) => {
194
+ var e;
195
+ return (e = a.labels) == null ? void 0 : e.visible;
196
+ }) && z(l.seriesType) && z(t.seriesType) && l.series.forEach((a) => {
197
+ a.labels = a.labels || {}, a.labels.visible = !0;
198
+ }), l;
199
+ }, ge = (t, l, a) => {
200
+ var g, n, c, o, m, u, b, f, s, x, d, v, M, A, I, k, E, D, V, G, O, B, H, w, P, X, Y, $, j, p, q, J, K;
201
+ const e = { ...t };
202
+ switch (l) {
203
+ case 0:
204
+ return se(e.data, a);
205
+ case 1:
206
+ return e.series = e.series.map((r) => ({ ...r, stack: a })), e;
207
+ case 2: {
208
+ if (e.seriesType && z(e.seriesType)) {
209
+ const r = le(e.data, e.seriesType, { categoryAxis: a });
210
+ return S(e, r);
211
+ } else if (e.seriesType === Q) {
212
+ const r = R(e.data, e.seriesType, { categoryAxis: a });
213
+ return S(e, r);
214
+ }
215
+ return e;
216
+ }
217
+ case 3: {
218
+ if (e.seriesType === Q) {
219
+ const r = R(e.data, e.seriesType, { categoryAxis: e.categoryField, valueAxis: a });
220
+ return S(e, r);
221
+ }
222
+ return e;
223
+ }
224
+ case 4:
225
+ return e.series = a, e;
226
+ case 5:
227
+ return e.area = { ...e.area, margin: { ...((g = e.area) == null ? void 0 : g.margin) || {}, left: a } }, e;
228
+ case 6:
229
+ return e.area = { ...e.area, margin: { ...((n = e.area) == null ? void 0 : n.margin) || {}, right: a } }, e;
230
+ case 7:
231
+ return e.area = { ...e.area, margin: { ...((c = e.area) == null ? void 0 : c.margin) || {}, top: a } }, e;
232
+ case 8:
233
+ return e.area = { ...e.area, margin: { ...((o = e.area) == null ? void 0 : o.margin) || {}, bottom: a } }, e;
234
+ case 9:
235
+ return e.area = { ...e.area, background: a }, e;
236
+ case 10:
237
+ return e.title = { ...e.title, text: a }, e;
238
+ case 11:
239
+ return e.title = { ...e.title, font: h(a, F[0].value, (m = e.title) == null ? void 0 : m.font) }, e;
240
+ case 12:
241
+ return e.title = { ...e.title, font: C(a, y[0].value, (u = e.title) == null ? void 0 : u.font) }, e;
242
+ case 13:
243
+ return e.title = { ...e.title, color: a }, e;
244
+ case 14:
245
+ return e.subtitle = { ...e.subtitle, text: a }, e;
246
+ case 15:
247
+ return e.subtitle = { ...e.subtitle, font: h(a, F[0].value, (b = e.subtitle) == null ? void 0 : b.font) }, e;
248
+ case 16:
249
+ return e.subtitle = { ...e.subtitle, font: C(a, y[0].value, (f = e.subtitle) == null ? void 0 : f.font) }, e;
250
+ case 17:
251
+ return e.subtitle = { ...e.subtitle, color: a }, e;
252
+ case 18:
253
+ return e.series = e.series.map((r) => ({ ...r, color: a.seriesName === r.name ? a.color : r.color })), e;
254
+ case 19:
255
+ return e.series = e.series.map((r) => a.all || a.seriesName === r.name ? { ...r, labels: { visible: a.visible } } : r), e;
256
+ case 20:
257
+ return e.legend = { ...e.legend, visible: a }, e;
258
+ case 21:
259
+ return e.legend = { ...e.legend, labels: { ...(s = e.legend) == null ? void 0 : s.labels, font: h(a, F[0].value, (d = (x = e.legend) == null ? void 0 : x.labels) == null ? void 0 : d.font) } }, e;
260
+ case 22:
261
+ return e.legend = { ...e.legend, labels: { ...(v = e.legend) == null ? void 0 : v.labels, font: C(a, y[0].value, (A = (M = e.legend) == null ? void 0 : M.labels) == null ? void 0 : A.font) } }, e;
262
+ case 23:
263
+ return e.legend = { ...e.legend, labels: { ...(I = e.legend) == null ? void 0 : I.labels, color: a } }, e;
264
+ case 24:
265
+ return e.legend = { ...e.legend, position: a }, e;
266
+ case 25:
267
+ return e.categoryAxis = (k = e.categoryAxis) == null ? void 0 : k.map((r) => ({ ...r, title: { ...r.title, text: a } })), e;
268
+ case 26:
269
+ return e.categoryAxis = (E = e.categoryAxis) == null ? void 0 : E.map((r) => {
270
+ var i;
271
+ return { ...r, title: { ...r.title, font: h(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
272
+ }), e;
273
+ case 27:
274
+ return e.categoryAxis = (D = e.categoryAxis) == null ? void 0 : D.map((r) => {
275
+ var i;
276
+ return { ...r, title: { ...r.title, font: C(a, y[0].value, (i = r.title) == null ? void 0 : i.font) } };
277
+ }), e;
278
+ case 28:
279
+ return e.categoryAxis = (V = e.categoryAxis) == null ? void 0 : V.map((r) => ({ ...r, title: { ...r.title, color: a } })), e;
280
+ case 29:
281
+ return e.categoryAxis = (G = e.categoryAxis) == null ? void 0 : G.map((r) => {
282
+ var i;
283
+ return { ...r, labels: { ...r.labels, font: h(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
284
+ }), e;
285
+ case 30:
286
+ return e.categoryAxis = (O = e.categoryAxis) == null ? void 0 : O.map((r) => {
287
+ var i;
288
+ return { ...r, labels: { ...r.labels, font: C(a, y[0].value, (i = r.labels) == null ? void 0 : i.font) } };
289
+ }), e;
290
+ case 31:
291
+ return e.categoryAxis = (B = e.categoryAxis) == null ? void 0 : B.map((r) => ({ ...r, labels: { ...r.labels, color: a } })), e;
292
+ case 32: {
293
+ const r = U(a) ? a : "auto";
294
+ return e.categoryAxis = (H = e.categoryAxis) == null ? void 0 : H.map((i) => ({ ...i, labels: { ...i.labels, rotation: r } })), e;
295
+ }
296
+ case 33:
297
+ return e.categoryAxis = (w = e.categoryAxis) == null ? void 0 : w.map((r) => ({ ...r, reverse: a })), e;
298
+ case 34:
299
+ return !e.valueAxis || e.valueAxis.length === 0 ? e.valueAxis = [{ title: { text: a } }] : e.valueAxis = (P = e.valueAxis) == null ? void 0 : P.map((r) => ({ ...r, title: { ...r.title, text: a } })), e;
300
+ case 35:
301
+ return e.valueAxis = (X = e.valueAxis) == null ? void 0 : X.map((r) => {
302
+ var i;
303
+ return { ...r, title: { ...r.title, font: h(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
304
+ }), e;
305
+ case 36:
306
+ return e.valueAxis = (Y = e.valueAxis) == null ? void 0 : Y.map((r) => {
307
+ var i;
308
+ return { ...r, title: { ...r.title, font: C(a, y[0].value, (i = r.title) == null ? void 0 : i.font) } };
309
+ }), e;
310
+ case 37:
311
+ return e.valueAxis = ($ = e.valueAxis) == null ? void 0 : $.map((r) => ({ ...r, title: { ...r.title, color: a } })), e;
312
+ case 38:
313
+ return e.valueAxis = (j = e.valueAxis) == null ? void 0 : j.map((r) => ({ ...r, labels: { ...r.labels, format: a } })), e;
314
+ case 39:
315
+ return e.valueAxis = (p = e.valueAxis) == null ? void 0 : p.map((r) => {
316
+ var i;
317
+ return { ...r, labels: { ...r.labels, font: h(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
318
+ }), e;
319
+ case 40:
320
+ return e.valueAxis = (q = e.valueAxis) == null ? void 0 : q.map((r) => {
321
+ var i;
322
+ return { ...r, labels: { ...r.labels, font: C(a, y[0].value, (i = r.labels) == null ? void 0 : i.font) } };
323
+ }), e;
324
+ case 41:
325
+ return e.valueAxis = (J = e.valueAxis) == null ? void 0 : J.map((r) => ({ ...r, labels: { ...r.labels, color: a } })), e;
326
+ case 42: {
327
+ const r = U(a) ? a : "auto";
328
+ return e.valueAxis = (K = e.valueAxis) == null ? void 0 : K.map((i) => ({ ...i, labels: { ...i.labels, rotation: r } })), e;
329
+ }
330
+ default:
331
+ return e;
332
+ }
333
+ };
334
+ export {
335
+ ie as ActionTypes,
336
+ xe as createInitialState,
337
+ se as createState,
338
+ y as fontNames,
339
+ F as fontSizes,
340
+ z as isCategorical,
341
+ S as mergeStates,
342
+ ee as parseFont,
343
+ ge as updateState
344
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@progress/kendo-react-common");function d(o){const e=[];return o.forEach(r=>{const{dataItem:s,dataColumns:i}=r,a=[];i.forEach(t=>{a.push({field:t.title||t.field,value:n.getter(t.field)(s)})}),e.push(a)}),e}exports.getWizardDataFromDataRows=d;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { getter as f } from "@progress/kendo-react-common";
10
+ function l(r) {
11
+ const e = [];
12
+ return r.forEach((o) => {
13
+ const { dataItem: s, dataColumns: i } = o, a = [];
14
+ i.forEach((t) => {
15
+ a.push({
16
+ field: t.title || t.field,
17
+ value: f(t.field)(s)
18
+ });
19
+ }), e.push(a);
20
+ }), e;
21
+ }
22
+ export {
23
+ l as getWizardDataFromDataRows
24
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@progress/kendo-react-dialogs"),require("@progress/kendo-react-charts"),require("@progress/kendo-react-layout"),require("@progress/kendo-react-buttons"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-animation"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-common"),require("@progress/kendo-react-grid"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-labels"),require("@progress/kendo-react-form"),require("@progress/kendo-drawing"),require("@progress/kendo-file-saver")):"function"==typeof define&&define.amd?define(["exports","react","@progress/kendo-react-dialogs","@progress/kendo-react-charts","@progress/kendo-react-layout","@progress/kendo-react-buttons","@progress/kendo-svg-icons","@progress/kendo-react-animation","@progress/kendo-react-dropdowns","@progress/kendo-react-common","@progress/kendo-react-grid","@progress/kendo-react-intl","@progress/kendo-react-inputs","@progress/kendo-react-labels","@progress/kendo-react-form","@progress/kendo-drawing","@progress/kendo-file-saver"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoReactChartWizard={},e.React,e.KendoReactDialogs,e.KendoReactCharts,e.KendoReactLayout,e.KendoReactButtons,e.KendoSvgIcons,e.KendoReactAnimation,e.KendoReactDropdowns,e.KendoReactCommon,e.KendoReactGrid,e.KendoReactIntl,e.KendoReactInputs,e.KendoReactLabels,e.KendoReactForm,e.KendoDrawing,e.KendoFileSaver)}(this,(function(e,t,a,l,r,n,o,i,s,c,d,u,g,m,v,x,p){"use strict";function b(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var h=b(t);const f=h.createContext({onRemove:e=>{},count:0}),C=e=>{const{ariaColumnIndex:t,dataItem:a,selectionChange:l,columnIndex:r,columnsCount:i,rowType:s,expanded:c,dataIndex:d,isSelected:u,render:g,...m}=e,{onRemove:v,count:x}=h.useContext(f);return h.createElement("td",{...m},h.createElement(n.Button,{type:"button",onClick:()=>{v.call(void 0,e.dataItem.id)},icon:"trash",svgIcon:o.trashIcon,fillMode:"flat",disabled:x<2}))},y="chartWizard.window.title",A="chartWizard.export.button",E="chartWizard.exportPDF.button",k="chartWizard.exportSVG.button",S="chartWizard.exportPNG.button",L="chartWizard.tab.chart",z="chartWizard.tab.data",T="chartWizard.tab.format",F="chartWizard.chart.barChart",I="chartWizard.chart.barChart.bar",W="chartWizard.chart.barChart.stackedBar",N="chartWizard.chart.barChart.100%stackedBar",w="chartWizard.chart.pieChart",P="chartWizard.chart.pieChart.pie",R="chartWizard.chart.columnChart",B="chartWizard.chart.columnChart.column",D="chartWizard.chart.columnChart.stackedColumn",M="chartWizard.chart.columnChart.100%stackedColumn",K="chartWizard.chart.lineChart",O="chartWizard.chart.lineChart.line",G="chartWizard.chart.lineChart.stackedLine",q="chartWizard.chart.lineChart.100%stackedLine",V="chartWizard.chart.scatterChart",j="chartWizard.chart.scatterChart.scatter",H="chartWizard.data.configuration",X="chartWizard.data.configuration.categoryAxis",Y="chartWizard.data.configuration.xAxis",$="chartWizard.data.configuration.valueAxis",U="chartWizard.data.configuration.series",J="chartWizard.data.configuration.series.add",Q="chartWizard.format.chartArea",Z="chartWizard.format.chartArea.margins",_="chartWizard.format.chartArea.margins.auto",ee="chartWizard.format.chartArea.margins.left",te="chartWizard.format.chartArea.margins.right",ae="chartWizard.format.chartArea.margins.top",le="chartWizard.format.chartArea.margins.bottom",re="chartWizard.format.chartArea.background",ne="chartWizard.format.chartArea.background.color",oe="chartWizard.format.title",ie="chartWizard.format.title.applyTo",se="chartWizard.format.title.chartTitle",ce="chartWizard.format.title.chartSubtitle",de="chartWizard.format.title.label",ue="chartWizard.format.title.font",ge="chartWizard.format.title.fontPlaceholder",me="chartWizard.format.title.size",ve="chartWizard.format.title.sizePlaceholder",xe="chartWizard.format.title.color",pe="chartWizard.format.series",be="chartWizard.format.series.applyTo",he="chartWizard.format.series.allSeries",fe="chartWizard.format.series.color",Ce="chartWizard.format.series.showLabels",ye="chartWizard.format.legend",Ae="chartWizard.format.legend.showLegend",Ee="chartWizard.format.legend.font",ke="chartWizard.format.legend.fontPlaceholder",Se="chartWizard.format.legend.size",Le="chartWizard.format.legend.sizePlaceholder",ze="chartWizard.format.legend.color",Te="chartWizard.format.legend.position",Fe="chartWizard.format.legend.position.top",Ie="chartWizard.format.legend.position.bottom",We="chartWizard.format.legend.position.left",Ne="chartWizard.format.legend.position.right",we="chartWizard.format.categoryAxis",Pe="chartWizard.format.xAxis",Re="chartWizard.format.categoryAxis.title",Be="chartWizard.format.categoryAxis.title.placeholder",De="chartWizard.format.categoryAxis.title.font",Me="chartWizard.format.categoryAxis.title.fontPlaceholder",Ke="chartWizard.format.categoryAxis.title.size",Oe="chartWizard.format.categoryAxis.title.sizePlaceholder",Ge="chartWizard.format.categoryAxis.title.color",qe="chartWizard.format.categoryAxis.labels",Ve="chartWizard.format.categoryAxis.labels.font",je="chartWizard.format.categoryAxis.labels.fontPlaceholder",He="chartWizard.format.categoryAxis.labels.size",Xe="chartWizard.format.categoryAxis.labels.sizePlaceholder",Ye="chartWizard.format.categoryAxis.labels.color",$e="chartWizard.format.categoryAxis.labels.rotation",Ue="chartWizard.format.categoryAxis.labels.rotation.auto",Je="chartWizard.format.categoryAxis.labels.reverseOrder",Qe="chartWizard.format.valueAxis",Ze="chartWizard.format.yAxis",_e="chartWizard.format.valueAxis.title",et="chartWizard.format.valueAxis.title.placeholder",tt="chartWizard.format.valueAxis.title.font",at="chartWizard.format.valueAxis.title.fontPlaceholder",lt="chartWizard.format.valueAxis.title.size",rt="chartWizard.format.valueAxis.title.sizePlaceholder",nt="chartWizard.format.valueAxis.title.color",ot="chartWizard.format.valueAxis.labels",it="chartWizard.format.valueAxis.labelFormat",st="chartWizard.format.valueAxis.labelFormat.text",ct="chartWizard.format.valueAxis.labelFormat.number",dt="chartWizard.format.valueAxis.labelFormat.currency",ut="chartWizard.format.valueAxis.labelFormat.percent",gt="chartWizard.format.valueAxis.labels.font",mt="chartWizard.format.valueAxis.labels.fontPlaceholder",vt="chartWizard.format.valueAxis.labels.size",xt="chartWizard.format.valueAxis.labels.sizePlaceholder",pt="chartWizard.format.valueAxis.labels.color",bt="chartWizard.format.valueAxis.labels.rotation",ht="chartWizard.format.valueAxis.labels.rotation.auto",ft={[y]:"Chart Preview",[A]:"Export",[E]:"PDF File",[k]:"SVG File",[S]:"PNG File",[L]:"Chart",[z]:"Data",[T]:"Format",[F]:"Bar Chart",[I]:"Bar",[W]:"Stacked Bar",[N]:"100% Stacked Bar",[w]:"Pie Chart",[P]:"Pie",[R]:"Column Chart",[B]:"Column",[D]:"Stacked Column",[M]:"100% Stacked Column",[K]:"Line Chart",[O]:"Line",[G]:"Stacked Line",[q]:"100% Stacked Line",[V]:"Scatter Chart",[j]:"Scatter",[H]:"Configuration",[X]:"Category Axis",[Y]:"X Axis",[$]:"Value Axis",[U]:"Series",[J]:"Add",[Q]:"Chart Area",[Z]:"Margins",[_]:"Auto",[ee]:"Left",[te]:"Right",[ae]:"Top",[le]:"Bottom",[re]:"Background",[ne]:"Color",[oe]:"Title",[ie]:"Apply to",[se]:"Chart Title",[ce]:"Chart Subtitle",[de]:"Title",[ue]:"Font",[ge]:"(inherited font)",[me]:"Size",[ve]:"px",[xe]:"Color",[pe]:"Series",[be]:"Apply to",[he]:"All Series",[fe]:"Color",[Ce]:"Show Labels",[ye]:"Legend",[Ae]:"Show Legend",[Ee]:"Font",[ke]:"(inherited font)",[Se]:"Size",[Le]:"px",[ze]:"Color",[Te]:"Position",[Fe]:"Top",[Ie]:"Bottom",[We]:"Left",[Ne]:"Right",[we]:"Category Axis",[Pe]:"X Axis",[Re]:"Title",[Be]:"Axis Title",[De]:"Font",[Me]:"(inherited font)",[Ke]:"Size",[Oe]:"px",[Ge]:"Color",[qe]:"Labels",[Ve]:"Font",[je]:"(inherited font)",[He]:"Size",[Xe]:"px",[Ye]:"Color",[$e]:"Rotation",[Ue]:"Auto",[Je]:"Reverse Order",[Qe]:"Value Axis",[Ze]:"Y Axis",[_e]:"Title",[et]:"Axis Title",[tt]:"Font",[at]:"(inherited font)",[lt]:"Size",[rt]:"px",[nt]:"Color",[ot]:"Labels",[it]:"Label Format",[st]:"Text",[ct]:"Number",[dt]:"Currency",[ut]:"Percent",[gt]:"Font",[mt]:"(inherited font)",[vt]:"Size",[xt]:"px",[pt]:"Color",[bt]:"Rotation",[ht]:"Auto"},Ct=t.createContext({reorder:()=>{},dragStart:()=>{}}),yt=e=>{const a=t.useContext(Ct);return t.createElement("td",{onDragOver:t=>{a.reorder.call(void 0,e.dataItem),t.preventDefault(),t.dataTransfer.dropEffect="copy"},"aria-colindex":e.ariaColumnIndex,className:e.className,colSpan:e.colSpan,id:e.id},t.createElement("span",{className:"k-icon k-i-reorder",draggable:!0,style:{cursor:"move"},onDragStart:t=>{a.dragStart.call(void 0,e.dataItem),t.dataTransfer.setData("dragging","")}},t.createElement(c.SvgIcon,{icon:o.reorderIcon})))},At="inEdit",Et=e=>{const a=e.originalProps.dataItem,l=e.originalProps.field,r=a[e.editField||""],n=l&&l===r?{ref:e=>{const t=e&&e.querySelector("input"),a=(t&&t.ownerDocument||document).activeElement;!t||!a||t===a||!a.contains(t)||("checkbox"===t.type?t.focus():t.select())},onKeyDown:t=>{t.target.matches("input")&&("Enter"===t.key||"Escape"===t.key)&&(t.stopPropagation(),e.exitEdit())},onBlur:t=>{t.target.matches("input")&&e.exitEdit()}}:{onClick:()=>{e.enterEdit(a,l)}},o={...e.td.props,...n};return t.cloneElement(e.td,o,e.td.props.children)},kt=e=>{const[a,l]=t.useState(null),r=(t,a)=>{const l=e.data.map((e=>({...e,[At]:e.id===t.id?a:void 0})));e.onChange.call(void 0,l)},i=()=>{const t=e.data.map((e=>({...e,[At]:void 0})));e.onChange.call(void 0,t)};return t.createElement(f.Provider,{value:{onRemove:t=>{const a=e.data.filter((e=>e.id!==t));e.onChange.call(void 0,a)},count:e.data.length}},t.createElement(Ct.Provider,{value:{reorder:t=>{if(a===t)return;const l=e.data.slice(),r=l.findIndex((e=>e===a)),n=l.findIndex((e=>e===t));l.splice(r,1),l.splice(n,0,a||l[0]),e.onChange.call(void 0,l)},dragStart:e=>{l(e)}}},t.createElement(d.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",cellRender:(e,a)=>t.createElement(Et,{originalProps:a,td:e,enterEdit:r,exitEdit:i,editField:At}),onItemChange:t=>{const a=t.field||"",l=e.data.map((e=>e.id===t.dataItem.id?{...e,[a]:t.value}:e));e.onChange.call(void 0,l)},scrollable:"none",editField:At,headerCellRender:()=>null,headerClassName:"k-hidden"},t.createElement(d.GridToolbar,null,t.createElement(n.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:()=>{const t=e.initialData.find((t=>!e.data.find((e=>e.id===t.id))));t&&e.onChange.call(void 0,[...e.data,t])},disabled:e.data.length===e.initialData.length,svgIcon:o.plusIcon},u.useLocalization().toLanguageString(J,ft[J]))),t.createElement(d.GridColumn,{title:"",width:"40px",cell:yt,editable:!1}),t.createElement(d.GridColumn,{field:"name",title:"Name"}),t.createElement(d.GridColumn,{field:"",width:"40px",cell:C,editable:!1}))))};var St=(e=>(e[e.seriesType=0]="seriesType",e[e.stacked=1]="stacked",e[e.categoryAxisX=2]="categoryAxisX",e[e.valueAxisY=3]="valueAxisY",e[e.seriesChange=4]="seriesChange",e[e.areaMarginLeft=5]="areaMarginLeft",e[e.areaMarginRight=6]="areaMarginRight",e[e.areaMarginTop=7]="areaMarginTop",e[e.areaMarginBottom=8]="areaMarginBottom",e[e.areaBackground=9]="areaBackground",e[e.titleText=10]="titleText",e[e.titleFontName=11]="titleFontName",e[e.titleFontSize=12]="titleFontSize",e[e.titleColor=13]="titleColor",e[e.subtitleText=14]="subtitleText",e[e.subtitleFontName=15]="subtitleFontName",e[e.subtitleFontSize=16]="subtitleFontSize",e[e.subtitleColor=17]="subtitleColor",e[e.seriesColor=18]="seriesColor",e[e.seriesLabel=19]="seriesLabel",e[e.legendVisible=20]="legendVisible",e[e.legendFontName=21]="legendFontName",e[e.legendFontSize=22]="legendFontSize",e[e.legendColor=23]="legendColor",e[e.legendPosition=24]="legendPosition",e[e.categoryAxisTitleText=25]="categoryAxisTitleText",e[e.categoryAxisTitleFontName=26]="categoryAxisTitleFontName",e[e.categoryAxisTitleFontSize=27]="categoryAxisTitleFontSize",e[e.categoryAxisTitleColor=28]="categoryAxisTitleColor",e[e.categoryAxisLabelsFontName=29]="categoryAxisLabelsFontName",e[e.categoryAxisLabelsFontSize=30]="categoryAxisLabelsFontSize",e[e.categoryAxisLabelsColor=31]="categoryAxisLabelsColor",e[e.categoryAxisLabelsRotation=32]="categoryAxisLabelsRotation",e[e.categoryAxisReverseOrder=33]="categoryAxisReverseOrder",e[e.valueAxisTitleText=34]="valueAxisTitleText",e[e.valueAxisTitleFontName=35]="valueAxisTitleFontName",e[e.valueAxisTitleFontSize=36]="valueAxisTitleFontSize",e[e.valueAxisTitleColor=37]="valueAxisTitleColor",e[e.valueAxisLabelsFormat=38]="valueAxisLabelsFormat",e[e.valueAxisLabelsFontName=39]="valueAxisLabelsFontName",e[e.valueAxisLabelsFontSize=40]="valueAxisLabelsFontSize",e[e.valueAxisLabelsColor=41]="valueAxisLabelsColor",e[e.valueAxisLabelsRotation=42]="valueAxisLabelsRotation",e))(St||{});const Lt=[{text:"16",value:"16px"},{text:"20",value:"20px"},{text:"24",value:"24px"},{text:"48",value:"48px"},{text:"60",value:"60px"},{text:"96",value:"96px"}],zt=[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],Tt="line",Ft="scatter",It=["column","bar",Tt,Ft],Wt={type:Tt,width:0},Nt=e=>e&&It.includes(e),wt=["string","date","number"],Pt=["number"],Rt={bar:[{axisType:"category",types:wt},{axisType:"value",types:Pt}],column:[{axisType:"category",types:wt},{axisType:"value",types:Pt}],line:[{axisType:"category",types:wt},{axisType:"value",types:Pt}],pie:[{axisType:"category",types:wt},{axisType:"value",types:Pt,count:1}],scatter:[{axisType:"category",types:wt},{axisType:"value",types:Pt}]},Bt=(e,t)=>`${t||""} ${e||""}`.trim(),Dt=e=>{const t=(e||"").indexOf(" ");return{size:null==e?void 0:e.substring(0,t),name:null==e?void 0:e.substring(t+1)}},Mt=(e,t,a)=>{const{size:l}=Dt(a);return e?Bt(e,l||t):""},Kt=(e,t,a)=>{const{name:l}=Dt(a);return e?Bt(l||t,e):""},Ot=(e,t)=>{const a=[],l=e[0].slice();t.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}));const r=a.findIndex((t=>{const a=e.map((e=>e[t].value));return new Set(a).size===a.length}));return Math.max(r,0)},Gt=(e,t)=>{const a=[],l=e[0].slice();return t.forEach((e=>{e.types.forEach((e=>{l.forEach(((t,l)=>{typeof t.value===e&&a.push(l)}))}))})),a},qt=()=>structuredClone({columns:[],data:[],series:[],initialSeries:[],categoryAxis:[],valueAxis:[{labels:{visible:!0}}],area:{margin:{left:void 0,right:void 0,top:void 0,bottom:void 0}},stack:!1}),Vt=(e,t,a)=>{const l=qt();l.seriesType=t,l.data=e;const r=Rt[t];if(!r)return l;const n=e[0].slice();l.columns=e[0].map((e=>String(e.field)));const o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?l.columns.indexOf(null==a?void 0:a.categoryAxis):Ot(e,o));const s=r.filter((e=>"value"===e.axisType));let c=Gt(e,s);c.includes(i)&&(c=c.filter((e=>e!==i)));const d=[];c.forEach((a=>{const l=n[a],r=[];e.forEach((e=>{r.push(e[a].value)})),d.push({name:l.field,type:t,data:r,stack:!1,labels:{visible:!1},...t===Ft?Wt:{}})}));const u=i>-1?e.map((e=>String(e[i].value))):[];return d.length&&(l.series=d.map(((e,t)=>({...e,id:t}))),l.initialSeries=structuredClone(l.series)),u.length&&(l.categoryAxis=[{categories:u,labels:{visible:!0,rotation:"auto"}}],l.categoryField=l.columns[i]),l.legend={visible:!0},l.title={text:void 0},l.subtitle={text:void 0},l},jt=(e,t,a)=>{const l=qt();l.seriesType=t,l.data=e;const r=Rt[t];if(!r)return l;const n=e[0].map((e=>e.field)),o=r.find((e=>"category"===e.axisType));let i=-1;o&&(i=null!=a&&a.categoryAxis?n.indexOf(null==a?void 0:a.categoryAxis):Ot(e,o));const s=r.filter((e=>"value"===e.axisType));let c=[];c=null!=a&&a.valueAxis?[n.indexOf(a.valueAxis)]:Gt(e,s),c.includes(i)&&c.length>1&&(c=c.filter((e=>e!==i))),"number"==typeof s[0].count&&(c=c.slice(0,s[0].count));const d=i>-1?e.map((e=>String(e[i].value))):[],u=[];return e.forEach((e=>{const t={};c.forEach((a=>{const l=e[a];t[l.field]=l.value,t[e[i].field]=e[i].value})),u.push(t)})),l.columns=n,l.categoryAxis=[{categories:d,title:{text:""}}],l.series=[{id:0,data:u,type:t,name:n[i],labels:{visible:!0},categoryField:n[i],field:n[c[0]]}],l.categoryField=n[i],l.valueField=n[c[0]],l.initialSeries=structuredClone(l.series),l},Ht=e=>null!=e,Xt=(e,t,a)=>{const l=Yt(e,(null==a?void 0:a.seriesType)||t);return void 0!==(null==a?void 0:a.stack)?Ut(l,1,a.stack):l},Yt=(e,t)=>(Nt(t)?Vt:jt)(e,t),$t=(e,t)=>{if(t.legend=e.legend,t.area=e.area,t.title=e.title,t.subtitle=e.subtitle,t.series.length===e.series.length)for(let a=0;a<t.series.length;a++)t.series[a].color=e.series[a].color,t.series[a].labels=e.series[a].labels;return e.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible}))&&Nt(t.seriesType)&&Nt(e.seriesType)&&t.series.forEach((e=>{e.labels=e.labels||{},e.labels.visible=!0})),t},Ut=(e,t,a)=>{var l,r,n,o,i,s,c,d,u,g,m,v,x,p,b,h,f,C,y,A,E,k,S,L,z,T,F,I,W,N,w,P,R;const B={...e};switch(t){case 0:return Yt(B.data,a);case 1:return B.series=B.series.map((e=>({...e,stack:a}))),B;case 2:if(B.seriesType&&Nt(B.seriesType)){const e=Vt(B.data,B.seriesType,{categoryAxis:a});return $t(B,e)}if("pie"===B.seriesType){const e=jt(B.data,B.seriesType,{categoryAxis:a});return $t(B,e)}return B;case 3:if("pie"===B.seriesType){const e=jt(B.data,B.seriesType,{categoryAxis:B.categoryField,valueAxis:a});return $t(B,e)}return B;case 4:return B.series=a,B;case 5:return B.area={...B.area,margin:{...(null==(l=B.area)?void 0:l.margin)||{},left:a}},B;case 6:return B.area={...B.area,margin:{...(null==(r=B.area)?void 0:r.margin)||{},right:a}},B;case 7:return B.area={...B.area,margin:{...(null==(n=B.area)?void 0:n.margin)||{},top:a}},B;case 8:return B.area={...B.area,margin:{...(null==(o=B.area)?void 0:o.margin)||{},bottom:a}},B;case 9:return B.area={...B.area,background:a},B;case 10:return B.title={...B.title,text:a},B;case 11:return B.title={...B.title,font:Mt(a,Lt[0].value,null==(i=B.title)?void 0:i.font)},B;case 12:return B.title={...B.title,font:Kt(a,zt[0].value,null==(s=B.title)?void 0:s.font)},B;case 13:return B.title={...B.title,color:a},B;case 14:return B.subtitle={...B.subtitle,text:a},B;case 15:return B.subtitle={...B.subtitle,font:Mt(a,Lt[0].value,null==(c=B.subtitle)?void 0:c.font)},B;case 16:return B.subtitle={...B.subtitle,font:Kt(a,zt[0].value,null==(d=B.subtitle)?void 0:d.font)},B;case 17:return B.subtitle={...B.subtitle,color:a},B;case 18:return B.series=B.series.map((e=>({...e,color:a.seriesName===e.name?a.color:e.color}))),B;case 19:return B.series=B.series.map((e=>a.all||a.seriesName===e.name?{...e,labels:{visible:a.visible}}:e)),B;case 20:return B.legend={...B.legend,visible:a},B;case 21:return B.legend={...B.legend,labels:{...null==(u=B.legend)?void 0:u.labels,font:Mt(a,Lt[0].value,null==(m=null==(g=B.legend)?void 0:g.labels)?void 0:m.font)}},B;case 22:return B.legend={...B.legend,labels:{...null==(v=B.legend)?void 0:v.labels,font:Kt(a,zt[0].value,null==(p=null==(x=B.legend)?void 0:x.labels)?void 0:p.font)}},B;case 23:return B.legend={...B.legend,labels:{...null==(b=B.legend)?void 0:b.labels,color:a}},B;case 24:return B.legend={...B.legend,position:a},B;case 25:return B.categoryAxis=null==(h=B.categoryAxis)?void 0:h.map((e=>({...e,title:{...e.title,text:a}}))),B;case 26:return B.categoryAxis=null==(f=B.categoryAxis)?void 0:f.map((e=>{var t;return{...e,title:{...e.title,font:Mt(a,Lt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 27:return B.categoryAxis=null==(C=B.categoryAxis)?void 0:C.map((e=>{var t;return{...e,title:{...e.title,font:Kt(a,zt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 28:return B.categoryAxis=null==(y=B.categoryAxis)?void 0:y.map((e=>({...e,title:{...e.title,color:a}}))),B;case 29:return B.categoryAxis=null==(A=B.categoryAxis)?void 0:A.map((e=>{var t;return{...e,labels:{...e.labels,font:Mt(a,Lt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 30:return B.categoryAxis=null==(E=B.categoryAxis)?void 0:E.map((e=>{var t;return{...e,labels:{...e.labels,font:Kt(a,zt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 31:return B.categoryAxis=null==(k=B.categoryAxis)?void 0:k.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 32:{const e=Ht(a)?a:"auto";return B.categoryAxis=null==(S=B.categoryAxis)?void 0:S.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}case 33:return B.categoryAxis=null==(L=B.categoryAxis)?void 0:L.map((e=>({...e,reverse:a}))),B;case 34:return B.valueAxis&&0!==B.valueAxis.length?B.valueAxis=null==(z=B.valueAxis)?void 0:z.map((e=>({...e,title:{...e.title,text:a}}))):B.valueAxis=[{title:{text:a}}],B;case 35:return B.valueAxis=null==(T=B.valueAxis)?void 0:T.map((e=>{var t;return{...e,title:{...e.title,font:Mt(a,Lt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 36:return B.valueAxis=null==(F=B.valueAxis)?void 0:F.map((e=>{var t;return{...e,title:{...e.title,font:Kt(a,zt[0].value,null==(t=e.title)?void 0:t.font)}}})),B;case 37:return B.valueAxis=null==(I=B.valueAxis)?void 0:I.map((e=>({...e,title:{...e.title,color:a}}))),B;case 38:return B.valueAxis=null==(W=B.valueAxis)?void 0:W.map((e=>({...e,labels:{...e.labels,format:a}}))),B;case 39:return B.valueAxis=null==(N=B.valueAxis)?void 0:N.map((e=>{var t;return{...e,labels:{...e.labels,font:Mt(a,Lt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 40:return B.valueAxis=null==(w=B.valueAxis)?void 0:w.map((e=>{var t;return{...e,labels:{...e.labels,font:Kt(a,zt[0].value,null==(t=e.labels)?void 0:t.font)}}})),B;case 41:return B.valueAxis=null==(P=B.valueAxis)?void 0:P.map((e=>({...e,labels:{...e.labels,color:a}}))),B;case 42:{const e=Ht(a)?a:"auto";return B.valueAxis=null==(R=B.valueAxis)?void 0:R.map((t=>({...t,labels:{...t.labels,rotation:e}}))),B}default:return B}};class Jt{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class Qt extends Jt{constructor(e,t){super(),this.chart=e,this.exportOptions=t}}const Zt="chart",_t={paperSize:"A4",margin:"1cm"},ea={width:800,height:600},ta=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&x.exportPDF(t,a.pdf).then((e=>p.saveAs(e,a.fileName+".pdf")))},aa=e=>{const t=l.exportVisual(e.chart),a=e.exportOptions;t&&x.exportSVG(t).then((e=>p.saveAs(e,a.fileName+".svg")))},la=e=>{const t=e.exportOptions,a=l.exportVisual(e.chart,t.image);a&&x.exportImage(a,t.image).then((e=>p.saveAs(e,t.fileName+".png")))},ra=e=>h.createElement("fieldset",{className:"k-form-fieldset"},e.legend&&h.createElement("legend",{className:"k-form-legend"},e.legend),e.children),na=e=>h.createElement(v.FieldWrapper,{className:e.className},e.labelText&&e.editorId&&h.createElement(m.Label,{className:"k-form-label",editorId:e.editorId},e.labelText),h.createElement("div",{className:"k-form-field-wrap"},e.children)),oa={value:null,text:""},ia=(e,t)=>t.dataItem.style?h.cloneElement(e,e.props,h.createElement("span",{style:t.dataItem.style},e.props.children)):e,sa=e=>h.createElement("div",{className:c.classNames("k-icon-text-wrapper",{"k-selected":e.selected}),onClick:e.onClick},h.createElement("div",{className:"k-icon-background-area",tabIndex:0},h.createElement(c.SvgIcon,{icon:e.icon,size:"xlarge",className:"k-svg-i-chart-bar-clustered"})),e.children),ca={fillMode:"outline",popupSettings:{animate:!1}},da={type:"normal"},ua={type:"100%"};function ga(e){const{grid:t,data:a,selectedState:l,dataItemKey:r}=e;if(!t)return[];const n=d.leafColumns(t.columns||[]),o=c.getter(r),i=c.getter("field"),s=c.getter("title"),u=new Map(a.map((e=>[String(o(e)),e]))),g=new Map(Array.from(u.keys()).map(((e,t)=>[e,t]))),m=Object.keys(l).sort(((e,t)=>(g.get(e)||0)-(g.get(t)||0))),v=[];return m.forEach((e=>{let t=l[e];if(t){!0===t&&(t=Array.from({length:n.length},((e,t)=>t)));const a=t.map((e=>({title:s(n[e]),field:i(n[e])})));v.push({dataItem:u.get(e),dataColumns:a})}})),v}function ma(e){const t=[];return e.forEach((e=>{const{dataItem:a,dataColumns:l}=e,r=[];l.forEach((e=>{r.push({field:e.title||e.field,value:c.getter(e.field)(a)})})),t.push(r)})),t}e.ActionTypes=St,e.ChartWizard=e=>{var t,c,d,x,p,b,f,C,J,Ct,yt,At,Et,Tt,Ft,It,Wt,wt,Pt,Rt,Bt,Mt,Kt,Ot,Gt,qt,Vt,jt,Ht,Jt,ga,ma,va,xa,pa,ba,ha,fa,Ca,ya,Aa;const Ea=u.useLocalization(),ka=[{value:"chartTitle",text:Ea.toLanguageString(se,ft[se])},{value:"chartSubtitle",text:Ea.toLanguageString(ce,ft[ce])}],Sa=[{value:"top",text:Ea.toLanguageString(Fe,ft[Fe])},{value:"bottom",text:Ea.toLanguageString(Ie,ft[Ie])},{value:"left",text:Ea.toLanguageString(We,ft[We])},{value:"right",text:Ea.toLanguageString(Ne,ft[Ne])}],La={name:Ea.toLanguageString(he,ft[he])},za={text:Ea.toLanguageString(st,ft[st]),value:""},Ta=[{value:"n0",text:Ea.toLanguageString(ct,ft[ct])},{value:"c0",text:Ea.toLanguageString(dt,ft[dt])},{value:"p0",text:Ea.toLanguageString(ut,ft[ut])}],Fa=h.useRef(null),Ia=h.useCallback((t=>{var a;if(Fa.current){const l=new Qt(Fa.current,((e={})=>({fileName:e.fileName||Zt,pdf:{..._t,...e.pdf},image:{...ea,...e.image}}))(e.exportOptions));null==(a=e.onExport)||a.call(e,l),l.isDefaultPrevented()||t.item.exportHandler.call(void 0,l)}}),[e.exportOptions]),[Wa,Na]=h.useState({width:700,height:550}),[wa,Pa]=h.useState("DEFAULT"),Ra=h.useCallback((e=>{Na({width:e.width,height:e.height})}),[]),Ba=h.useCallback((e=>{Pa(e.state)}),[]),[Da,Ma]=h.useState([{collapsible:!1},{size:"300px",collapsible:!1}]),Ka=h.useCallback((e=>{Ma(e.newState)}),[]),[Oa,Ga]=h.useState(!0),qa=h.useCallback((e=>{Ga(!e.expanded)}),[]),[Va,ja]=h.useState(!0),Ha=h.useCallback((e=>{ja(!e.expanded)}),[]),[Xa,Ya]=h.useState(!0),$a=h.useCallback((e=>{Ya(!e.expanded)}),[]),[Ua,Ja]=h.useState(!0),Qa=h.useCallback((e=>{Ja(!e.expanded)}),[]),[Za,_a]=h.useState(!0),el=h.useCallback((e=>{_a(!e.expanded)}),[]),[tl,al]=h.useState(!0),ll=h.useCallback((e=>{al(!e.expanded)}),[]),[rl,nl]=h.useState(!0),ol=h.useCallback((e=>{nl(!e.expanded)}),[]),[il,sl]=h.useState(!0),cl=h.useCallback((e=>{sl(!e.expanded)}),[]),[dl,ul]=h.useState(!0),gl=h.useCallback((e=>{ul(!e.expanded)}),[]),[ml,vl]=h.useState(!0),xl=h.useCallback((e=>{vl(!e.expanded)}),[]),[pl,bl]=h.useState(!0),hl=h.useCallback((e=>{bl(!e.expanded)}),[]),[fl,Cl]=h.useState(!0),yl=h.useCallback((e=>{Cl(!e.expanded)}),[]),[Al,El]=h.useState(0),kl=h.useCallback((e=>{El(e.selected)}),[]),[Sl,Ll]=h.useState(Xt(e.data,"bar",e.defaultState)),[zl,Tl]=h.useState(""),Fl=h.useCallback((e=>{const t=e.target.value.name;Tl(t===La.name?"":t)}),[]),Il=h.useCallback((()=>{Ll($t(Sl,Yt(e.data,"bar"))),Tl("")}),[Sl,e.data]),Wl=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"bar"));Ll(Ut(t,St.stacked,da)),Tl("")}),[Sl,e.data]),Nl=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"bar"));Ll(Ut(t,St.stacked,ua)),Tl("")}),[Sl,e.data]),wl=h.useCallback((()=>{Ll($t(Sl,Yt(e.data,"column"))),Tl("")}),[Sl,e.data]),Pl=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"column"));Ll(Ut(t,St.stacked,da)),Tl("")}),[Sl,e.data]),Rl=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"column"));Ll(Ut(t,St.stacked,ua)),Tl("")}),[Sl,e.data]),Bl=h.useCallback((()=>{Ll($t(Sl,Yt(e.data,"line"))),Tl("")}),[Sl,e.data]),Dl=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"line"));Ll(Ut(t,St.stacked,da)),Tl("")}),[Sl,e.data]),Ml=h.useCallback((()=>{const t=$t(Sl,Yt(e.data,"line"));Ll(Ut(t,St.stacked,ua)),Tl("")}),[Sl,e.data]),Kl=h.useCallback((()=>{Ll($t(Sl,Yt(e.data,"pie"))),Tl("")}),[Sl,e.data]),Ol=h.useCallback((()=>{Ll($t(Sl,Yt(e.data,"scatter"))),Tl("")}),[Sl,e.data]),Gl=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisX,e.target.value))}),[Sl]),ql=h.useCallback((e=>{Ll(Ut(Sl,St.seriesChange,e))}),[Sl]),Vl=h.useCallback((e=>{Ll(Ut(Sl,St.valueAxisY,e.target.value))}),[Sl]),jl=h.useCallback((e=>{Ll(Ut(Sl,St.areaMarginLeft,e.target.value))}),[Sl]),Hl=h.useCallback((e=>{Ll(Ut(Sl,St.areaMarginRight,e.target.value))}),[Sl]),Xl=h.useCallback((e=>{Ll(Ut(Sl,St.areaMarginTop,e.target.value))}),[Sl]),Yl=h.useCallback((e=>{Ll(Ut(Sl,St.areaMarginBottom,e.target.value))}),[Sl]),$l=Sl.area.margin,Ul=h.useCallback((e=>{Ll(Ut(Sl,St.areaBackground,e.value))}),[Sl]),[Jl,Ql]=h.useState(ka[0]),Zl=h.useCallback((e=>{Ql(e.target.value)}),[]),_l=h.useCallback((e=>{const t=Jl.value===ka[0].value?St.titleText:St.subtitleText;Ll(Ut(Sl,t,e.target.value))}),[Sl,Jl]),er=h.useCallback((e=>{const t=Jl.value===ka[0].value?St.titleFontName:St.subtitleFontName,a=e.target.value||oa;Ll(Ut(Sl,t,a.value))}),[Sl,Jl]),tr=h.useCallback((e=>{const t=Jl.value===ka[0].value?St.titleFontSize:St.subtitleFontSize,a=e.target.value||oa;Ll(Ut(Sl,t,a.value))}),[Sl,Jl]),ar=h.useCallback((e=>{const t=Jl.value===ka[0].value?St.titleColor:St.subtitleColor;Ll(Ut(Sl,t,e.value))}),[Sl,Jl]),lr=(Jl.value===ka[0].value?Sl.title:Sl.subtitle)||{text:"",font:"",color:""},rr=h.useCallback((e=>{zl&&Ll(Ut(Sl,St.seriesColor,{seriesName:zl,color:e.value}))}),[Sl,zl]),nr=h.useCallback((e=>{Ll(Ut(Sl,St.seriesLabel,{seriesName:zl,all:!zl,visible:e.value}))}),[Sl,zl]),or=h.useCallback((e=>{Ll(Ut(Sl,St.legendVisible,e.value))}),[Sl]),ir=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.legendFontSize,t.value))}),[Sl]),sr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.legendFontName,t.value))}),[Sl]),cr=h.useCallback((e=>{Ll(Ut(Sl,St.legendColor,e.value))}),[Sl]),dr=h.useCallback((e=>{const t=e.target.value;Ll(Ut(Sl,St.legendPosition,t.value))}),[Sl]),ur=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisTitleText,e.target.value))}),[Sl]),gr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.categoryAxisTitleFontSize,t.value))}),[Sl]),mr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.categoryAxisTitleFontName,t.value))}),[Sl]),vr=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisTitleColor,e.value))}),[Sl]),xr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.categoryAxisLabelsFontSize,t.value))}),[Sl]),pr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.categoryAxisLabelsFontName,t.value))}),[Sl]),br=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisLabelsColor,e.value))}),[Sl]),hr=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisLabelsRotation,e.target.value))}),[Sl]),fr=h.useCallback((e=>{Ll(Ut(Sl,St.categoryAxisReverseOrder,e.value))}),[Sl]),Cr=h.useCallback((e=>{Ll(Ut(Sl,St.valueAxisTitleText,e.target.value))}),[Sl]),yr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.valueAxisTitleFontSize,t.value))}),[Sl]),Ar=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.valueAxisTitleFontName,t.value))}),[Sl]),Er=h.useCallback((e=>{Ll(Ut(Sl,St.valueAxisTitleColor,e.value))}),[Sl]),kr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.valueAxisLabelsFontSize,t.value))}),[Sl]),Sr=h.useCallback((e=>{const t=e.target.value||oa;Ll(Ut(Sl,St.valueAxisLabelsFontName,t.value))}),[Sl]),Lr=h.useCallback((e=>{Ll(Ut(Sl,St.valueAxisLabelsColor,e.value))}),[Sl]),zr=h.useCallback((e=>{Ll(Ut(Sl,St.valueAxisLabelsRotation,e.target.value))}),[Sl]),Tr=h.useCallback((e=>{const t=e.target.value;Ll(Ut(Sl,St.valueAxisLabelsFormat,t.value))}),[Sl]),Fr=Sl.seriesType,Ir="object"==typeof(null==(t=Sl.series[0])?void 0:t.stack)&&(null==(c=Sl.series[0])?void 0:c.stack),Wr=!1===Ir,Nr=Ir&&"normal"===Ir.type,wr=Ir&&"100%"===Ir.type;return h.createElement(a.Window,{title:Ea.toLanguageString(y,ft[y]),className:"k-chart-wizard",modal:!0,resizable:!0,minimizeButton:()=>null,onClose:e.onClose,onResize:Ra,stage:wa,onStageChange:Ba,...Wa},h.createElement(r.Splitter,{panes:Da,onChange:Ka,className:"k-chart-wizard-splitter"},h.createElement("div",{className:"k-chart-wizard-preview-pane k-pane"},h.createElement("div",{className:"k-preview-pane-header"},h.createElement(n.DropDownButton,{text:Ea.toLanguageString(A,ft[A]),fillMode:"flat",svgIcon:o.exportIcon,onItemClick:Ia,items:[{svgIcon:o.filePdfIcon,exportHandler:ta,text:Ea.toLanguageString(E,ft[E])},{svgIcon:o.fileIcon,exportHandler:aa,text:Ea.toLanguageString(k,ft[k])},{svgIcon:o.fileImageIcon,exportHandler:la,text:Ea.toLanguageString(S,ft[S])}]})),h.createElement("div",{className:"k-preview-pane-content",style:{height:"calc(100% - 50px)"}},h.createElement(l.Chart,{style:{width:"100%",height:"100%"},transitions:!1,ref:Fa},h.createElement(l.ChartTitle,{text:null==(d=Sl.title)?void 0:d.text,font:null==(x=Sl.title)?void 0:x.font,color:(null==(p=Sl.title)?void 0:p.color)||"#000"}),h.createElement(l.ChartSubtitle,{text:null==(b=Sl.subtitle)?void 0:b.text,font:null==(f=Sl.subtitle)?void 0:f.font,color:(null==(C=Sl.subtitle)?void 0:C.color)||"#000"}),h.createElement(l.ChartArea,{background:null==(J=Sl.area)?void 0:J.background,margin:$l}),Sl.categoryAxis&&h.createElement(l.ChartCategoryAxis,null,Sl.categoryAxis.map(((e,t)=>h.createElement(l.ChartCategoryAxisItem,{key:t,categories:e.categories,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{font:e.labels.font,color:e.labels.color,rotation:e.labels.rotation},reverse:e.reverse})))),Sl.valueAxis&&h.createElement(l.ChartValueAxis,null,Sl.valueAxis.map(((e,t)=>h.createElement(l.ChartValueAxisItem,{key:t,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{format:e.labels.format,font:e.labels.font,color:e.labels.color,rotation:e.labels.rotation}})))),h.createElement(l.ChartSeries,null,Sl.series.map(((e,t)=>h.createElement(l.ChartSeriesItem,{key:String(e.name)+t,...e})))),h.createElement(l.ChartXAxis,null,Sl.categoryAxis.map(((e,t)=>h.createElement(l.ChartXAxisItem,{key:t,categories:e.categories,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{font:e.labels.font,color:e.labels.color,format:e.labels.format,rotation:e.labels.rotation}})))),h.createElement(l.ChartYAxis,null,Sl.valueAxis.map(((e,t)=>h.createElement(l.ChartYAxisItem,{key:t,title:e.title&&{text:e.title.text,font:e.title.font,color:e.title.color},labels:e.labels&&{format:e.labels.format,font:e.labels.font,color:e.labels.color,rotation:e.labels.rotation}})))),h.createElement(l.ChartLegend,{visible:null==(Ct=Sl.legend)?void 0:Ct.visible,position:null==(yt=Sl.legend)?void 0:yt.position,labels:{color:(null==(Et=null==(At=Sl.legend)?void 0:At.labels)?void 0:Et.color)||void 0,font:(null==(Ft=null==(Tt=Sl.legend)?void 0:Tt.labels)?void 0:Ft.font)||void 0}})))),h.createElement("div",{className:"k-chart-wizard-property-pane k-pane k-pane-static"},h.createElement(r.TabStrip,{selected:Al,onSelect:kl,animation:!1},h.createElement(r.TabStripTab,{title:Ea.toLanguageString(L,ft[L])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(F,ft[F]),expanded:Oa,tabIndex:0,onAction:qa},h.createElement(i.Reveal,null,Oa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(sa,{selected:"bar"===Fr&&Wr,onClick:Il,icon:o.chartBarClusteredIcon},Ea.toLanguageString(I,ft[I])),h.createElement(sa,{selected:"bar"===Fr&&Nr,onClick:Wl,icon:o.chartBarStackedIcon},Ea.toLanguageString(W,ft[W])),h.createElement(sa,{selected:"bar"===Fr&&wr,onClick:Nl,icon:o.chartBarStacked100Icon},Ea.toLanguageString(N,ft[N])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(w,ft[w]),expanded:Va,tabIndex:0,onAction:Ha},h.createElement(i.Reveal,null,Va&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(sa,{selected:"pie"===Fr,onClick:Kl,icon:o.chartPieIcon},Ea.toLanguageString(P,ft[P])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(R,ft[R]),expanded:Xa,tabIndex:0,onAction:$a},h.createElement(i.Reveal,null,Xa&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(sa,{selected:"column"===Fr&&Wr,onClick:wl,icon:o.chartColumnClusteredIcon},Ea.toLanguageString(B,ft[B])),h.createElement(sa,{selected:"column"===Fr&&Nr,onClick:Pl,icon:o.chartColumnStackedIcon},Ea.toLanguageString(D,ft[D])),h.createElement(sa,{selected:"column"===Fr&&wr,onClick:Rl,icon:o.chartColumnStacked100Icon},Ea.toLanguageString(M,ft[M])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(K,ft[K]),expanded:Ua,tabIndex:0,onAction:Qa},h.createElement(i.Reveal,null,Ua&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(sa,{selected:"line"===Fr&&Wr,onClick:Bl,icon:o.chartLineIcon},Ea.toLanguageString(O,ft[O])),h.createElement(sa,{selected:"line"===Fr&&Nr,onClick:Dl,icon:o.chartLineStackedIcon},Ea.toLanguageString(G,ft[G])),h.createElement(sa,{selected:"line"===Fr&&wr,onClick:Ml,icon:o.chartLineStacked100Icon},Ea.toLanguageString(q,ft[q])))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(V,ft[V]),expanded:Za,tabIndex:0,onAction:el},h.createElement(i.Reveal,null,Za&&h.createElement(r.ExpansionPanelContent,null,h.createElement("div",{className:"k-chart-types-wrapper"},h.createElement(sa,{selected:"scatter"===Fr,onClick:Ol,icon:o.chartScatterIcon},Ea.toLanguageString(j,ft[j])))))))),h.createElement(r.TabStripTab,{title:Ea.toLanguageString(z,ft[z])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(H,ft[H]),expanded:tl,tabIndex:0,onAction:ll},h.createElement(i.Reveal,null,tl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(ra,{legend:"scatter"===Fr?Ea.toLanguageString(Y,ft[Y]):Ea.toLanguageString(X,ft[X])},h.createElement(s.DropDownList,{data:Sl.columns||[],value:Sl.categoryField,onChange:Gl,...ca})),Nt(Fr)&&h.createElement(ra,{legend:Ea.toLanguageString(U,ft[U])},h.createElement(kt,{data:Sl.series,initialData:Sl.initialSeries,onChange:ql})),"pie"===Fr&&h.createElement(ra,{legend:Ea.toLanguageString($,ft[$])},h.createElement(s.DropDownList,{data:Sl.columns||[],value:Sl.valueField||"",...ca,onChange:Vl})))))))),h.createElement(r.TabStripTab,{title:Ea.toLanguageString(T,ft[T])},h.createElement("div",null,h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(Q,ft[Q]),expanded:rl,tabIndex:0,onAction:ol},h.createElement(i.Reveal,null,rl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(ra,{legend:Ea.toLanguageString(Z,ft[Z])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{labelText:Ea.toLanguageString(ee,ft[ee]),editorId:"left"},h.createElement(g.NumericTextBox,{id:"left",value:void 0!==$l.left?$l.left:null,onChange:jl,placeholder:Ea.toLanguageString(_,ft[_]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(na,{labelText:Ea.toLanguageString(te,ft[te]),editorId:"right"},h.createElement(g.NumericTextBox,{id:"right",value:void 0!==$l.right?$l.right:null,onChange:Hl,placeholder:Ea.toLanguageString(_,ft[_]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(na,{labelText:Ea.toLanguageString(ae,ft[ae]),editorId:"top"},h.createElement(g.NumericTextBox,{id:"top",value:void 0!==$l.top?$l.top:null,onChange:Xl,placeholder:Ea.toLanguageString(_,ft[_]),min:0,max:1e3,step:1,fillMode:"outline"})),h.createElement(na,{labelText:Ea.toLanguageString(le,ft[le]),editorId:"bottom"},h.createElement(g.NumericTextBox,{id:"bottom",value:void 0!==$l.bottom?$l.bottom:null,onChange:Yl,placeholder:Ea.toLanguageString(_,ft[_]),min:0,max:1e3,step:1,fillMode:"outline"})))),h.createElement(ra,{legend:Ea.toLanguageString(re,ft[re])},h.createElement(na,{labelText:Ea.toLanguageString(ne,ft[ne]),editorId:"background"},h.createElement(g.ColorPicker,{id:"background",value:(null==(It=Sl.area)?void 0:It.background)||"",onChange:Ul,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(oe,ft[oe]),expanded:il,tabIndex:0,onAction:cl},h.createElement(i.Reveal,null,il&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{className:"k-col-span-2",editorId:"apply-to-title",labelText:Ea.toLanguageString(ie,ft[ie])},h.createElement(s.DropDownList,{id:"apply-to-title",data:ka,textField:"text",dataItemKey:"value",value:ka.find((e=>e.value===Jl.value)),onChange:Zl,...ca})),h.createElement(na,{className:"k-col-span-2",editorId:"titleText",labelText:Ea.toLanguageString(de,ft[de])},h.createElement(g.Input,{id:"titleText",placeholder:Jl.value===ka[0].value?ka[0].text:ka[1].text,value:lr.text,onChange:_l,onKeyDown:e=>e.stopPropagation()})),h.createElement(na,{className:"k-col-span-2",editorId:"titleFont",labelText:Ea.toLanguageString(ue,ft[ue])},h.createElement(s.ComboBox,{id:"titleFont",data:zt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(ge,ft[ge]),value:zt.find((e=>e.value===Dt(lr.font).name))||oa,onChange:er,itemRender:ia,...ca})),h.createElement(na,{editorId:"titleFontSize",labelText:Ea.toLanguageString(me,ft[me])},h.createElement(s.ComboBox,{id:"titleFontSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(ve,ft[ve]),value:Lt.find((e=>e.value===Dt(lr.font).size))||oa,onChange:tr,itemRender:ia,...ca})),h.createElement(na,{editorId:"titleColor",labelText:Ea.toLanguageString(xe,ft[xe])},h.createElement(g.ColorPicker,{id:"titleColor",value:lr.color||"",onChange:ar,view:"gradient",fillMode:"outline"}))))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(pe,ft[pe]),expanded:dl,tabIndex:0,onAction:gl},h.createElement(i.Reveal,null,dl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(na,{editorId:"apply-to-series",labelText:Ea.toLanguageString(be,ft[be])},h.createElement(s.DropDownList,{id:"apply-to-series",data:Sl.series,textField:"name",dataItemKey:"name",defaultItem:La,disabled:!Nt(Fr),value:Sl.series.find((e=>e.name===zl))||La,onChange:Fl,...ca})),h.createElement(na,{editorId:"seriesColor",labelText:Ea.toLanguageString(fe,ft[fe])},h.createElement(g.ColorPicker,{id:"seriesColor",value:zl?null==(Wt=Sl.series.find((e=>e.name===zl)))?void 0:Wt.color:"",onChange:rr,disabled:!zl,view:"gradient",fillMode:"outline"})),h.createElement(na,null,h.createElement(g.Checkbox,{label:Ea.toLanguageString(Ce,ft[Ce]),checked:zl?null==(Pt=null==(wt=Sl.series.find((e=>e.name===zl)))?void 0:wt.labels)?void 0:Pt.visible:Sl.series.every((e=>{var t;return null==(t=e.labels)?void 0:t.visible})),onChange:nr})))))),h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:Ea.toLanguageString(ye,ft[ye]),expanded:ml,tabIndex:0,onAction:xl},h.createElement(i.Reveal,null,ml&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(m.Label,{editorId:"show-legend"},Ea.toLanguageString(Ae,ft[Ae])),h.createElement(g.Switch,{id:"show-legend",checked:null==(Rt=Sl.legend)?void 0:Rt.visible,onChange:or}),h.createElement(na,{className:"k-col-span-2",editorId:"legendLabelsFont",labelText:Ea.toLanguageString(Ee,ft[Ee])},h.createElement(s.ComboBox,{id:"legendLabelsFont",data:zt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(ke,ft[ke]),value:zt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||oa,onChange:sr,itemRender:ia,disabled:!1===(null==(Bt=Sl.legend)?void 0:Bt.visible),...ca})),h.createElement(na,{editorId:"legendLabelsSize",labelText:Ea.toLanguageString(Se,ft[Se])},h.createElement(s.ComboBox,{id:"legendLabelsSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Le,ft[Le]),value:Lt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.legend)?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||oa,onChange:ir,disabled:!1===(null==(Mt=Sl.legend)?void 0:Mt.visible),...ca})),h.createElement(na,{editorId:"legendLabelsColor",labelText:Ea.toLanguageString(ze,ft[ze])},h.createElement(g.ColorPicker,{id:"legendLabelsColor",value:(null==(Ot=null==(Kt=Sl.legend)?void 0:Kt.labels)?void 0:Ot.color)||"",onChange:cr,disabled:!1===(null==(Gt=Sl.legend)?void 0:Gt.visible),view:"gradient",fillMode:"outline"})),h.createElement(na,{className:"k-col-span-2",editorId:"legendPosition",labelText:Ea.toLanguageString(Te,ft[Te])},h.createElement(s.DropDownList,{id:"legendPosition",data:Sa,textField:"text",dataItemKey:"value",value:Sa.find((e=>{var t;return e.value===(null==(t=Sl.legend)?void 0:t.position)})),onChange:dr,disabled:!1===(null==(qt=Sl.legend)?void 0:qt.visible),...ca}))))))),"pie"!==Fr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===Fr?Ea.toLanguageString(Pe,ft[Pe]):Ea.toLanguageString(we,ft[we]),expanded:pl,tabIndex:0,onAction:hl},h.createElement(i.Reveal,null,pl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(ra,{legend:Ea.toLanguageString(Re,ft[Re])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Ea.toLanguageString(Be,ft[Be]),value:(null==(Vt=Sl.categoryAxis[0].title)?void 0:Vt.text)||"",onChange:ur,onKeyDown:e=>e.stopPropagation()})),h.createElement(na,{className:"k-col-span-2",editorId:"categoryAxisTitleFont",labelText:Ea.toLanguageString(De,ft[De])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFont",data:zt,textField:"text",dataItemKey:"value",itemRender:ia,placeholder:Ea.toLanguageString(Me,ft[Me]),value:zt.find((e=>{var t,a;return e.value===(null==(a=Dt((null==(t=Sl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.name)}))||oa,onChange:mr,...ca})),h.createElement(na,{editorId:"categoryAxisTitleFontSize",labelText:Ea.toLanguageString(Ke,ft[Ke])},h.createElement(s.ComboBox,{id:"categoryAxisTitleFontSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Oe,ft[Oe]),value:Lt.find((e=>{var t,a;return e.value===(null==(a=Dt((null==(t=Sl.categoryAxis[0].title)?void 0:t.font)||""))?void 0:a.size)}))||oa,onChange:gr,...ca})),h.createElement(na,{editorId:"categoryAxisTitleColor",labelText:Ea.toLanguageString(Ge,ft[Ge])},h.createElement(g.ColorPicker,{id:"categoryAxisTitleColor",view:"gradient",value:(null==(jt=Sl.categoryAxis[0].title)?void 0:jt.color)||"",onChange:vr,fillMode:"outline"})))),h.createElement(ra,{legend:Ea.toLanguageString(qe,ft[qe])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{className:"k-col-span-2",editorId:"categoryAxisLabelsFont",labelText:Ea.toLanguageString(Ve,ft[Ve])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFont",data:zt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(je,ft[je]),value:zt.find((e=>{var t,a;return e.value===(null==(a=Dt((null==(t=Sl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.name)}))||oa,onChange:pr,itemRender:ia,...ca})),h.createElement(na,{editorId:"categoryAxisLabelsFontSize",labelText:Ea.toLanguageString(He,ft[He])},h.createElement(s.ComboBox,{id:"categoryAxisLabelsFontSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(Xe,ft[Xe]),value:Lt.find((e=>{var t,a;return e.value===(null==(a=Dt((null==(t=Sl.categoryAxis[0].labels)?void 0:t.font)||""))?void 0:a.size)}))||oa,onChange:xr,...ca})),h.createElement(na,{editorId:"categoryAxisLabelsColor",labelText:Ea.toLanguageString(Ye,ft[Ye])},h.createElement(g.ColorPicker,{id:"categoryAxisLabelsColor",view:"gradient",value:(null==(Ht=Sl.categoryAxis[0].labels)?void 0:Ht.color)||"",onChange:br,fillMode:"outline"})),h.createElement(na,{editorId:"categoryAxisLabelsRotation",labelText:Ea.toLanguageString($e,ft[$e])},h.createElement(g.NumericTextBox,{id:"categoryAxisLabelsRotation",value:"number"==typeof(null==(Jt=Sl.categoryAxis[0].labels)?void 0:Jt.rotation)?null==(ga=Sl.categoryAxis[0].labels)?void 0:ga.rotation:null,placeholder:Ea.toLanguageString(Ue,ft[Ue]),onChange:hr,fillMode:"outline",min:-360,max:360,step:1})),h.createElement(na,{className:"k-col-span-2"},h.createElement(g.Checkbox,{label:Ea.toLanguageString(Je,ft[Je]),checked:Sl.categoryAxis[0].reverse||!1,onChange:fr})))))))),"pie"!==Fr&&h.createElement(r.ExpansionPanel,{style:{maxWidth:"576px"},title:"scatter"===Fr?Ea.toLanguageString(Ze,ft[Ze]):Ea.toLanguageString(Qe,ft[Qe]),expanded:fl,tabIndex:0,onAction:yl},h.createElement(i.Reveal,null,fl&&h.createElement(r.ExpansionPanelContent,null,h.createElement(v.FormElement,null,h.createElement(ra,{legend:Ea.toLanguageString(_e,ft[_e])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{className:"k-col-span-2"},h.createElement(g.Input,{placeholder:Ea.toLanguageString(et,ft[et]),value:(null==(va=null==(ma=Sl.valueAxis[0])?void 0:ma.title)?void 0:va.text)||"",onChange:Cr,onKeyDown:e=>e.stopPropagation()})),h.createElement(na,{className:"k-col-span-2",editorId:"valueAxisTitleFont",labelText:Ea.toLanguageString(tt,ft[tt])},h.createElement(s.ComboBox,{id:"valueAxisTitleFont",data:zt,textField:"text",dataItemKey:"value",itemRender:ia,placeholder:Ea.toLanguageString(at,ft[at]),value:zt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.name)}))||oa,onChange:Ar,...ca})),h.createElement(na,{editorId:"valueAxisTitleFontSize",labelText:Ea.toLanguageString(lt,ft[lt])},h.createElement(s.ComboBox,{id:"valueAxisTitleFontSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(rt,ft[rt]),value:Lt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.title)?void 0:a.font)||""))?void 0:l.size)}))||oa,onChange:yr,...ca})),h.createElement(na,{editorId:"valueAxisTitleColor",labelText:Ea.toLanguageString(nt,ft[nt])},h.createElement(g.ColorPicker,{id:"valueAxisTitleColor",view:"gradient",value:(null==(pa=null==(xa=Sl.valueAxis[0])?void 0:xa.title)?void 0:pa.color)||"",onChange:Er,fillMode:"outline"})))),h.createElement(ra,{legend:Ea.toLanguageString(ot,ft[ot])},h.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-2 k-gap-x-4"},h.createElement(na,{className:"k-col-span-2",editorId:"valueAxisLabelsFormat",labelText:Ea.toLanguageString(it,ft[it])},h.createElement(s.DropDownList,{id:"valueAxisLabelsFormat",data:Ta,textField:"text",dataItemKey:"value",defaultItem:za,value:Ta.find((e=>{var t,a;return e.value===(null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.format)}))||za,onChange:Tr,...ca})),h.createElement(na,{className:"k-col-span-2",editorId:"valueAxisLabelsFont",labelText:Ea.toLanguageString(gt,ft[gt])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFont",data:zt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(mt,ft[mt]),value:zt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.name)}))||oa,onChange:Sr,itemRender:ia,...ca})),h.createElement(na,{editorId:"valueAxisLabelsFontSize",labelText:Ea.toLanguageString(vt,ft[vt])},h.createElement(s.ComboBox,{id:"valueAxisLabelsFontSize",data:Lt,textField:"text",dataItemKey:"value",placeholder:Ea.toLanguageString(xt,ft[xt]),value:Lt.find((e=>{var t,a,l;return e.value===(null==(l=Dt((null==(a=null==(t=Sl.valueAxis[0])?void 0:t.labels)?void 0:a.font)||""))?void 0:l.size)}))||oa,onChange:kr,...ca})),h.createElement(na,{editorId:"valueAxisLabelsColor",labelText:Ea.toLanguageString(pt,ft[pt])},h.createElement(g.ColorPicker,{id:"valueAxisLabelsColor",view:"gradient",value:(null==(ha=null==(ba=Sl.valueAxis[0])?void 0:ba.labels)?void 0:ha.color)||"",onChange:Lr,fillMode:"outline"})),h.createElement(na,{editorId:"valueAxisLabelsRotation",labelText:Ea.toLanguageString(bt,ft[bt])},h.createElement(g.NumericTextBox,{id:"valueAxisLabelsRotation",value:"number"==typeof(null==(Ca=null==(fa=Sl.valueAxis[0])?void 0:fa.labels)?void 0:Ca.rotation)?null==(Aa=null==(ya=Sl.valueAxis[0])?void 0:ya.labels)?void 0:Aa.rotation:null,placeholder:Ea.toLanguageString(ht,ft[ht]),onChange:zr,fillMode:"outline",min:-360,max:360,step:1}))))))))))))))},e.createInitialState=Xt,e.createState=Yt,e.fontNames=zt,e.fontSizes=Lt,e.getGridSelectedRows=ga,e.getWizardDataFromDataRows=ma,e.getWizardDataFromGridSelection=e=>ma(ga(e)),e.isCategorical=Nt,e.mergeStates=$t,e.parseFont=Dt,e.updateState=Ut}));
package/export.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@progress/kendo-drawing"),n=require("@progress/kendo-file-saver"),i=require("@progress/kendo-react-charts");class p{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class l extends p{constructor(t,r){super(),this.chart=t,this.exportOptions=r}}const s={fileName:"chart",pdf:{paperSize:"A4",margin:"1cm"},image:{width:800,height:600}},c=(e={})=>({fileName:e.fileName||s.fileName,pdf:{...s.pdf,...e.pdf},image:{...s.image,...e.image}}),h=e=>{const t=i.exportVisual(e.chart),r=e.exportOptions;t&&a.exportPDF(t,r.pdf).then(o=>n.saveAs(o,r.fileName+".pdf"))},d=e=>{const t=i.exportVisual(e.chart),r=e.exportOptions;t&&a.exportSVG(t).then(o=>n.saveAs(o,r.fileName+".svg"))},u=e=>{const t=e.exportOptions,r=i.exportVisual(e.chart,t.image);r&&a.exportImage(r,t.image).then(o=>n.saveAs(o,t.fileName+".png"))};exports.ExportEvent=l;exports.PreventableEvent=p;exports.handleImageExport=u;exports.handlePDFExport=h;exports.handleSVGExport=d;exports.resolveExportOptions=c;
package/export.mjs ADDED
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { exportPDF as n, exportSVG as p, exportImage as c } from "@progress/kendo-drawing";
10
+ import { saveAs as i } from "@progress/kendo-file-saver";
11
+ import { exportVisual as a } from "@progress/kendo-react-charts";
12
+ class f {
13
+ constructor() {
14
+ this.prevented = !1;
15
+ }
16
+ /* eslint-disable max-len */
17
+ /**
18
+ * Prevents the default action for a specified event.
19
+ * In this way, the source component suppresses the built-in behavior that follows the event.
20
+ */
21
+ preventDefault() {
22
+ this.prevented = !0;
23
+ }
24
+ /**
25
+ * Returns `true` if the event was prevented by any of its subscribers.
26
+ *
27
+ * @returns - Returns `true` if the default action was prevented.
28
+ * Otherwise, returns `false`.
29
+ */
30
+ isDefaultPrevented() {
31
+ return this.prevented;
32
+ }
33
+ }
34
+ class d extends f {
35
+ constructor(e, r) {
36
+ super(), this.chart = e, this.exportOptions = r;
37
+ }
38
+ }
39
+ const s = {
40
+ fileName: "chart",
41
+ pdf: { paperSize: "A4", margin: "1cm" },
42
+ image: { width: 800, height: 600 }
43
+ }, u = (t = {}) => ({
44
+ fileName: t.fileName || s.fileName,
45
+ pdf: {
46
+ ...s.pdf,
47
+ ...t.pdf
48
+ },
49
+ image: {
50
+ ...s.image,
51
+ ...t.image
52
+ }
53
+ }), x = (t) => {
54
+ const e = a(t.chart), r = t.exportOptions;
55
+ e && n(e, r.pdf).then((o) => i(o, r.fileName + ".pdf"));
56
+ }, g = (t) => {
57
+ const e = a(t.chart), r = t.exportOptions;
58
+ e && p(e).then((o) => i(o, r.fileName + ".svg"));
59
+ }, v = (t) => {
60
+ const e = t.exportOptions, r = a(t.chart, e.image);
61
+ r && c(r, e.image).then((o) => i(o, e.fileName + ".png"));
62
+ };
63
+ export {
64
+ d as ExportEvent,
65
+ f as PreventableEvent,
66
+ v as handleImageExport,
67
+ x as handlePDFExport,
68
+ g as handleSVGExport,
69
+ u as resolveExportOptions
70
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@progress/kendo-react-common"),k=require("@progress/kendo-react-grid");function C(i){const{grid:n,data:u,selectedState:c,dataItemKey:g}=i;if(!n)return[];const r=k.leafColumns(n.columns||[]),m=s.getter(g),f=s.getter("field"),S=s.getter("title"),l=new Map(u.map(e=>[String(m(e)),e])),a=new Map(Array.from(l.keys()).map((e,t)=>[e,t])),p=Object.keys(c).sort((e,t)=>(a.get(e)||0)-(a.get(t)||0)),d=[];return p.forEach(e=>{let t=c[e];if(t){t===!0&&(t=Array.from({length:r.length},(o,G)=>G));const y=t.map(o=>({title:S(r[o]),field:f(r[o])}));d.push({dataItem:l.get(e),dataColumns:y})}}),d}exports.getGridSelectedRows=C;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { getter as o } from "@progress/kendo-react-common";
10
+ import { leafColumns as C } from "@progress/kendo-react-grid";
11
+ function M(i) {
12
+ const { grid: n, data: m, selectedState: l, dataItemKey: f } = i;
13
+ if (!n)
14
+ return [];
15
+ const r = C(n.columns || []), u = o(f), p = o("field"), g = o("title"), a = new Map(m.map((t) => [String(u(t)), t])), c = new Map(Array.from(a.keys()).map((t, e) => [t, e])), y = Object.keys(l).sort((t, e) => (c.get(t) || 0) - (c.get(e) || 0)), d = [];
16
+ return y.forEach((t) => {
17
+ let e = l[t];
18
+ if (e) {
19
+ e === !0 && (e = Array.from({ length: r.length }, (s, h) => h));
20
+ const S = e.map((s) => ({
21
+ title: g(r[s]),
22
+ field: p(r[s])
23
+ }));
24
+ d.push({
25
+ dataItem: a.get(t),
26
+ dataColumns: S
27
+ });
28
+ }
29
+ }), d;
30
+ }
31
+ export {
32
+ M as getGridSelectedRows
33
+ };