@progress/kendo-react-chart-wizard 8.2.1-develop.5 → 8.3.0-develop.10

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.
@@ -6,15 +6,19 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
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 = [
9
+ var oe = /* @__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))(oe || {});
10
+ const h = [
11
+ { text: "8", value: "8px" },
12
+ { text: "10", value: "10px" },
13
+ { text: "12", value: "12px" },
14
+ { text: "14", value: "14px" },
11
15
  { text: "16", value: "16px" },
12
16
  { text: "20", value: "20px" },
13
17
  { text: "24", value: "24px" },
14
18
  { text: "48", value: "48px" },
15
19
  { text: "60", value: "60px" },
16
20
  { text: "96", value: "96px" }
17
- ], y = [
21
+ ], F = [
18
22
  {
19
23
  text: "Arial",
20
24
  value: "Arial, Helvetica, sans-serif",
@@ -60,10 +64,10 @@ const F = [
60
64
  value: "Verdana, Geneva, sans-serif",
61
65
  style: { fontFamily: "Verdana, Geneva, sans-serif" }
62
66
  }
63
- ], oe = "column", ne = "bar", W = "line", Q = "pie", Z = "scatter", ue = [oe, ne, W, Z], ce = {
64
- type: W,
67
+ ], ne = "column", ue = "bar", U = "line", Q = "pie", Z = "scatter", ce = [ne, ue, U, Z], ge = {
68
+ type: U,
65
69
  width: 0
66
- }, z = (t) => t && ue.includes(t), L = ["string", "date", "number"], N = ["number"], _ = {
70
+ }, S = (t) => t && ce.includes(t), L = ["string", "date", "number"], N = ["number"], _ = {
67
71
  bar: [
68
72
  { axisType: "category", types: L },
69
73
  { axisType: "value", types: N }
@@ -87,34 +91,46 @@ const F = [
87
91
  }, T = (t, l) => `${l || ""} ${t || ""}`.trim(), ee = (t) => {
88
92
  const l = (t || "").indexOf(" "), a = t == null ? void 0 : t.substring(0, l), e = t == null ? void 0 : t.substring(l + 1);
89
93
  return { size: a, name: e };
90
- }, h = (t, l, a) => {
94
+ }, y = (t, l, a) => {
91
95
  const { size: e } = ee(a);
92
96
  return t ? T(t, e || l) : "";
93
97
  }, C = (t, l, a) => {
94
98
  const { name: e } = ee(a);
95
99
  return t ? T(e || l, t) : "";
96
- }, te = (t, l) => {
97
- const a = [], e = t[0].slice();
100
+ }, z = (t) => t != null, te = (t) => {
101
+ const l = structuredClone(t[0]);
102
+ return l.forEach((a, e) => {
103
+ if (!z(a.value))
104
+ for (let c = 0; c < t.length; c++) {
105
+ const n = t[c][e].value;
106
+ if (z(n)) {
107
+ a.value = n;
108
+ break;
109
+ }
110
+ }
111
+ }), l;
112
+ }, ae = (t, l) => {
113
+ const a = [], e = te(t);
98
114
  l.types.forEach((n) => {
99
- e.forEach((c, o) => {
100
- typeof c.value === n && a.push(o);
115
+ e.forEach((g, o) => {
116
+ typeof g.value === n && a.push(o);
101
117
  });
102
118
  });
103
- const g = a.findIndex((n) => {
104
- const c = t.map((o) => o[n].value);
105
- return new Set(c).size === c.length;
119
+ const c = a.findIndex((n) => {
120
+ const g = t.map((o) => o[n].value);
121
+ return new Set(g).size === g.length;
106
122
  });
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);
123
+ return Math.max(c, 0);
124
+ }, re = (t, l) => {
125
+ const a = [], e = te(t);
126
+ return l.forEach((c) => {
127
+ c.types.forEach((n) => {
128
+ e.forEach((g, o) => {
129
+ typeof g.value === n && a.push(o);
114
130
  });
115
131
  });
116
132
  }), a;
117
- }, re = () => structuredClone({
133
+ }, le = () => structuredClone({
118
134
  columns: [],
119
135
  data: [],
120
136
  series: [],
@@ -125,56 +141,56 @@ const F = [
125
141
  margin: { left: void 0, right: void 0, top: void 0, bottom: void 0 }
126
142
  },
127
143
  stack: !1
128
- }), le = (t, l, a) => {
129
- const e = re();
144
+ }), se = (t, l, a) => {
145
+ const e = le();
130
146
  e.seriesType = l, e.data = t;
131
- const g = _[l];
132
- if (!g)
147
+ const c = _[l];
148
+ if (!c)
133
149
  return e;
134
150
  const n = t[0].slice();
135
151
  e.columns = t[0].map((s) => String(s.field));
136
- const c = g.find((s) => s.axisType === "category");
152
+ const g = c.find((s) => s.axisType === "category");
137
153
  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 = [];
154
+ g && (o = a != null && a.categoryAxis ? e.columns.indexOf(a == null ? void 0 : a.categoryAxis) : ae(t, g));
155
+ const b = c.filter((s) => s.axisType === "value");
156
+ let u = re(t, b);
157
+ u.includes(o) && (u.length > 1 ? u = u.filter((s) => s !== o) : o = -1);
158
+ const m = [];
143
159
  u.forEach((s) => {
144
- const x = n[s], d = [];
145
- t.forEach((v) => {
146
- d.push(v[s].value);
147
- }), b.push({
160
+ const x = n[s], v = [];
161
+ t.forEach((d) => {
162
+ v.push(d[s].value);
163
+ }), m.push({
148
164
  name: x.field,
149
165
  type: l,
150
- data: d,
166
+ data: v,
151
167
  stack: !1,
152
168
  labels: { visible: !1 },
153
- ...l === Z ? ce : {}
169
+ ...l === Z ? ge : {}
154
170
  });
155
171
  });
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();
172
+ const f = o > -1 ? t.map((s) => String(z(s[o].value) ? s[o].value : " ")) : [];
173
+ return m.length && (e.series = m.map((s, x) => ({ ...s, id: x })), e.initialSeries = structuredClone(e.series)), 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;
174
+ }, M = (t, l, a) => {
175
+ const e = le();
160
176
  e.seriesType = l, e.data = t;
161
- const g = _[l];
162
- if (!g)
177
+ const c = _[l];
178
+ if (!c)
163
179
  return e;
164
- const n = t[0].map((s) => s.field), c = g.find((s) => s.axisType === "category");
180
+ const n = t[0].map((s) => s.field), g = c.find((s) => s.axisType === "category");
165
181
  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");
182
+ g && (o = a != null && a.categoryAxis ? n.indexOf(a == null ? void 0 : a.categoryAxis) : ae(t, g));
183
+ const b = c.filter((s) => s.axisType === "value");
168
184
  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 = [];
185
+ a != null && a.valueAxis ? u = [n.indexOf(a.valueAxis)] : u = re(t, b), u.includes(o) && u.length > 1 && (u = u.filter((s) => s !== o)), typeof b[0].count == "number" && (u = u.slice(0, b[0].count));
186
+ const m = o > -1 ? t.map((s) => String(s[o].value)) : [], f = [];
171
187
  return t.forEach((s) => {
172
188
  const x = {};
173
- u.forEach((d) => {
174
- const v = s[d];
175
- x[v.field] = v.value, x[s[o].field] = s[o].value;
189
+ u.forEach((v) => {
190
+ const d = s[v];
191
+ x[d.field] = d.value || 0, x[s[o].field] = s[o].value || " ";
176
192
  }), f.push(x);
177
- }), e.columns = n, e.categoryAxis = [{ categories: b, title: { text: "" } }], e.series = [{
193
+ }), e.columns = n, e.categoryAxis = [{ categories: m, title: { text: "" } }], e.series = [{
178
194
  id: 0,
179
195
  data: f,
180
196
  type: l,
@@ -183,52 +199,52 @@ const F = [
183
199
  categoryField: n[o],
184
200
  field: n[u[0]]
185
201
  }], 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) => {
202
+ }, be = (t, l, a) => {
203
+ const e = ie(t, (a == null ? void 0 : a.seriesType) || l);
204
+ return typeof (a == null ? void 0 : a.stack) != "undefined" ? xe(e, 1, a.stack) : e;
205
+ }, ie = (t, l) => (S(l) ? se : M)(t, l), R = (t, l) => {
190
206
  if (l.legend = t.legend, l.area = t.area, l.title = t.title, l.subtitle = t.subtitle, l.series.length === t.series.length)
191
207
  for (let a = 0; a < l.series.length; a++)
192
208
  l.series[a].color = t.series[a].color, l.series[a].labels = t.series[a].labels;
193
209
  return t.series.every((a) => {
194
210
  var e;
195
211
  return (e = a.labels) == null ? void 0 : e.visible;
196
- }) && z(l.seriesType) && z(t.seriesType) && l.series.forEach((a) => {
212
+ }) && S(l.seriesType) && S(t.seriesType) && l.series.forEach((a) => {
197
213
  a.labels = a.labels || {}, a.labels.visible = !0;
198
214
  }), 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;
215
+ }, xe = (t, l, a) => {
216
+ var c, n, g, o, b, u, m, f, s, x, v, d, A, I, k, E, V, D, G, p, O, B, H, w, P, X, Y, $, W, j, q, J, K;
201
217
  const e = { ...t };
202
218
  switch (l) {
203
219
  case 0:
204
- return se(e.data, a);
220
+ return ie(e.data, a);
205
221
  case 1:
206
222
  return e.series = e.series.map((r) => ({ ...r, stack: a })), e;
207
223
  case 2: {
208
- if (e.seriesType && z(e.seriesType)) {
209
- const r = le(e.data, e.seriesType, { categoryAxis: a });
210
- return S(e, r);
224
+ if (e.seriesType && S(e.seriesType)) {
225
+ const r = se(e.data, e.seriesType, { categoryAxis: a });
226
+ return R(e, r);
211
227
  } else if (e.seriesType === Q) {
212
- const r = R(e.data, e.seriesType, { categoryAxis: a });
213
- return S(e, r);
228
+ const r = M(e.data, e.seriesType, { categoryAxis: a });
229
+ return R(e, r);
214
230
  }
215
231
  return e;
216
232
  }
217
233
  case 3: {
218
234
  if (e.seriesType === Q) {
219
- const r = R(e.data, e.seriesType, { categoryAxis: e.categoryField, valueAxis: a });
220
- return S(e, r);
235
+ const r = M(e.data, e.seriesType, { categoryAxis: e.categoryField, valueAxis: a });
236
+ return R(e, r);
221
237
  }
222
238
  return e;
223
239
  }
224
240
  case 4:
225
241
  return e.series = a, e;
226
242
  case 5:
227
- return e.area = { ...e.area, margin: { ...((g = e.area) == null ? void 0 : g.margin) || {}, left: a } }, e;
243
+ return e.area = { ...e.area, margin: { ...((c = e.area) == null ? void 0 : c.margin) || {}, left: a } }, e;
228
244
  case 6:
229
245
  return e.area = { ...e.area, margin: { ...((n = e.area) == null ? void 0 : n.margin) || {}, right: a } }, e;
230
246
  case 7:
231
- return e.area = { ...e.area, margin: { ...((c = e.area) == null ? void 0 : c.margin) || {}, top: a } }, e;
247
+ return e.area = { ...e.area, margin: { ...((g = e.area) == null ? void 0 : g.margin) || {}, top: a } }, e;
232
248
  case 8:
233
249
  return e.area = { ...e.area, margin: { ...((o = e.area) == null ? void 0 : o.margin) || {}, bottom: a } }, e;
234
250
  case 9:
@@ -236,17 +252,17 @@ const F = [
236
252
  case 10:
237
253
  return e.title = { ...e.title, text: a }, e;
238
254
  case 11:
239
- return e.title = { ...e.title, font: h(a, F[0].value, (m = e.title) == null ? void 0 : m.font) }, e;
255
+ return e.title = { ...e.title, font: y(a, h[0].value, (b = e.title) == null ? void 0 : b.font) }, e;
240
256
  case 12:
241
- return e.title = { ...e.title, font: C(a, y[0].value, (u = e.title) == null ? void 0 : u.font) }, e;
257
+ return e.title = { ...e.title, font: C(a, F[0].value, (u = e.title) == null ? void 0 : u.font) }, e;
242
258
  case 13:
243
259
  return e.title = { ...e.title, color: a }, e;
244
260
  case 14:
245
261
  return e.subtitle = { ...e.subtitle, text: a }, e;
246
262
  case 15:
247
- return e.subtitle = { ...e.subtitle, font: h(a, F[0].value, (b = e.subtitle) == null ? void 0 : b.font) }, e;
263
+ return e.subtitle = { ...e.subtitle, font: y(a, h[0].value, (m = e.subtitle) == null ? void 0 : m.font) }, e;
248
264
  case 16:
249
- return e.subtitle = { ...e.subtitle, font: C(a, y[0].value, (f = e.subtitle) == null ? void 0 : f.font) }, e;
265
+ return e.subtitle = { ...e.subtitle, font: C(a, F[0].value, (f = e.subtitle) == null ? void 0 : f.font) }, e;
250
266
  case 17:
251
267
  return e.subtitle = { ...e.subtitle, color: a }, e;
252
268
  case 18:
@@ -256,41 +272,41 @@ const F = [
256
272
  case 20:
257
273
  return e.legend = { ...e.legend, visible: a }, e;
258
274
  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;
275
+ return e.legend = { ...e.legend, labels: { ...(s = e.legend) == null ? void 0 : s.labels, font: y(a, h[0].value, (v = (x = e.legend) == null ? void 0 : x.labels) == null ? void 0 : v.font) } }, e;
260
276
  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;
277
+ return e.legend = { ...e.legend, labels: { ...(d = e.legend) == null ? void 0 : d.labels, font: C(a, F[0].value, (I = (A = e.legend) == null ? void 0 : A.labels) == null ? void 0 : I.font) } }, e;
262
278
  case 23:
263
- return e.legend = { ...e.legend, labels: { ...(I = e.legend) == null ? void 0 : I.labels, color: a } }, e;
279
+ return e.legend = { ...e.legend, labels: { ...(k = e.legend) == null ? void 0 : k.labels, color: a } }, e;
264
280
  case 24:
265
281
  return e.legend = { ...e.legend, position: a }, e;
266
282
  case 25:
267
- return e.categoryAxis = (k = e.categoryAxis) == null ? void 0 : k.map((r) => ({ ...r, title: { ...r.title, text: a } })), e;
283
+ return e.categoryAxis = (E = e.categoryAxis) == null ? void 0 : E.map((r) => ({ ...r, title: { ...r.title, text: a } })), e;
268
284
  case 26:
269
- return e.categoryAxis = (E = e.categoryAxis) == null ? void 0 : E.map((r) => {
285
+ return e.categoryAxis = (V = e.categoryAxis) == null ? void 0 : V.map((r) => {
270
286
  var i;
271
- return { ...r, title: { ...r.title, font: h(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
287
+ return { ...r, title: { ...r.title, font: y(a, h[0].value, (i = r.title) == null ? void 0 : i.font) } };
272
288
  }), e;
273
289
  case 27:
274
290
  return e.categoryAxis = (D = e.categoryAxis) == null ? void 0 : D.map((r) => {
275
291
  var i;
276
- return { ...r, title: { ...r.title, font: C(a, y[0].value, (i = r.title) == null ? void 0 : i.font) } };
292
+ return { ...r, title: { ...r.title, font: C(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
277
293
  }), e;
278
294
  case 28:
279
- return e.categoryAxis = (V = e.categoryAxis) == null ? void 0 : V.map((r) => ({ ...r, title: { ...r.title, color: a } })), e;
295
+ return e.categoryAxis = (G = e.categoryAxis) == null ? void 0 : G.map((r) => ({ ...r, title: { ...r.title, color: a } })), e;
280
296
  case 29:
281
- return e.categoryAxis = (G = e.categoryAxis) == null ? void 0 : G.map((r) => {
297
+ return e.categoryAxis = (p = e.categoryAxis) == null ? void 0 : p.map((r) => {
282
298
  var i;
283
- return { ...r, labels: { ...r.labels, font: h(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
299
+ return { ...r, labels: { ...r.labels, font: y(a, h[0].value, (i = r.labels) == null ? void 0 : i.font) } };
284
300
  }), e;
285
301
  case 30:
286
302
  return e.categoryAxis = (O = e.categoryAxis) == null ? void 0 : O.map((r) => {
287
303
  var i;
288
- return { ...r, labels: { ...r.labels, font: C(a, y[0].value, (i = r.labels) == null ? void 0 : i.font) } };
304
+ return { ...r, labels: { ...r.labels, font: C(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
289
305
  }), e;
290
306
  case 31:
291
307
  return e.categoryAxis = (B = e.categoryAxis) == null ? void 0 : B.map((r) => ({ ...r, labels: { ...r.labels, color: a } })), e;
292
308
  case 32: {
293
- const r = U(a) ? a : "auto";
309
+ const r = z(a) ? a : "auto";
294
310
  return e.categoryAxis = (H = e.categoryAxis) == null ? void 0 : H.map((i) => ({ ...i, labels: { ...i.labels, rotation: r } })), e;
295
311
  }
296
312
  case 33:
@@ -300,31 +316,31 @@ const F = [
300
316
  case 35:
301
317
  return e.valueAxis = (X = e.valueAxis) == null ? void 0 : X.map((r) => {
302
318
  var i;
303
- return { ...r, title: { ...r.title, font: h(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
319
+ return { ...r, title: { ...r.title, font: y(a, h[0].value, (i = r.title) == null ? void 0 : i.font) } };
304
320
  }), e;
305
321
  case 36:
306
322
  return e.valueAxis = (Y = e.valueAxis) == null ? void 0 : Y.map((r) => {
307
323
  var i;
308
- return { ...r, title: { ...r.title, font: C(a, y[0].value, (i = r.title) == null ? void 0 : i.font) } };
324
+ return { ...r, title: { ...r.title, font: C(a, F[0].value, (i = r.title) == null ? void 0 : i.font) } };
309
325
  }), e;
310
326
  case 37:
311
327
  return e.valueAxis = ($ = e.valueAxis) == null ? void 0 : $.map((r) => ({ ...r, title: { ...r.title, color: a } })), e;
312
328
  case 38:
313
- return e.valueAxis = (j = e.valueAxis) == null ? void 0 : j.map((r) => ({ ...r, labels: { ...r.labels, format: a } })), e;
329
+ return e.valueAxis = (W = e.valueAxis) == null ? void 0 : W.map((r) => ({ ...r, labels: { ...r.labels, format: a } })), e;
314
330
  case 39:
315
- return e.valueAxis = (p = e.valueAxis) == null ? void 0 : p.map((r) => {
331
+ return e.valueAxis = (j = e.valueAxis) == null ? void 0 : j.map((r) => {
316
332
  var i;
317
- return { ...r, labels: { ...r.labels, font: h(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
333
+ return { ...r, labels: { ...r.labels, font: y(a, h[0].value, (i = r.labels) == null ? void 0 : i.font) } };
318
334
  }), e;
319
335
  case 40:
320
336
  return e.valueAxis = (q = e.valueAxis) == null ? void 0 : q.map((r) => {
321
337
  var i;
322
- return { ...r, labels: { ...r.labels, font: C(a, y[0].value, (i = r.labels) == null ? void 0 : i.font) } };
338
+ return { ...r, labels: { ...r.labels, font: C(a, F[0].value, (i = r.labels) == null ? void 0 : i.font) } };
323
339
  }), e;
324
340
  case 41:
325
341
  return e.valueAxis = (J = e.valueAxis) == null ? void 0 : J.map((r) => ({ ...r, labels: { ...r.labels, color: a } })), e;
326
342
  case 42: {
327
- const r = U(a) ? a : "auto";
343
+ const r = z(a) ? a : "auto";
328
344
  return e.valueAxis = (K = e.valueAxis) == null ? void 0 : K.map((i) => ({ ...i, labels: { ...i.labels, rotation: r } })), e;
329
345
  }
330
346
  default:
@@ -332,13 +348,13 @@ const F = [
332
348
  }
333
349
  };
334
350
  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,
351
+ oe as ActionTypes,
352
+ be as createInitialState,
353
+ ie as createState,
354
+ F as fontNames,
355
+ h as fontSizes,
356
+ S as isCategorical,
357
+ R as mergeStates,
342
358
  ee as parseFont,
343
- ge as updateState
359
+ xe as updateState
344
360
  };