@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cdn/{2N4MK6FQ.js → 4ACX3XOE.js} +1 -1
  2. package/dist/cdn/{VFREVEVA.js → 6C6AH4LL.js} +1 -1
  3. package/dist/cdn/{IWX5L226.js → AWKELFV6.js} +1 -1
  4. package/dist/cdn/{TW5DX7YP.js → CBNT3DO7.js} +1 -1
  5. package/dist/cdn/{ICFKKJWQ.js → DF5P34HK.js} +1 -1
  6. package/dist/cdn/{4LPXOEML.js → EXXLJVGS.js} +1 -1
  7. package/dist/cdn/{KO7HQLGV.js → FDFYTCDO.js} +1 -1
  8. package/dist/cdn/{LC6CY2HW.js → IXRBZPQL.js} +1 -1
  9. package/dist/cdn/{QFEZPP3R.js → JCH3RDLR.js} +1 -1
  10. package/dist/cdn/{FQT7V7QG.js → JPPGHHIA.js} +1 -1
  11. package/dist/cdn/{QY53LXP2.js → JWPAMNU4.js} +1 -1
  12. package/dist/cdn/{7EMCHGGV.js → KVUFR34S.js} +1 -1
  13. package/dist/cdn/{DAB5R2BN.js → LTQRSPSC.js} +1 -1
  14. package/dist/cdn/{QRLILSSI.js → NNEDF6G4.js} +1 -1
  15. package/dist/cdn/{BO62KSB5.js → OJIUI56Z.js} +1 -1
  16. package/dist/cdn/OSNA56IW.js +4 -0
  17. package/dist/cdn/{43ZHPVBB.js → P3YHDWG2.js} +1 -1
  18. package/dist/cdn/{STU55UIS.js → PBWZYX5M.js} +20 -20
  19. package/dist/cdn/{L5AQ4I5T.js → PPGRM3VJ.js} +1 -1
  20. package/dist/cdn/{S32NLOJ5.js → PRMN6W5R.js} +1 -1
  21. package/dist/cdn/{SJGYHEMZ.js → SRPOC65M.js} +1 -1
  22. package/dist/cdn/{MGEW6X3Y.js → U2CYVAIC.js} +1 -1
  23. package/dist/cdn/{JNG6V7XC.js → VQU6N5HX.js} +1 -1
  24. package/dist/cdn/{DZ72EIRH.js → ZS6EP5BD.js} +1 -1
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/cdn/model/shared/setup-utils.js +1 -1
  27. package/dist/chart-rendering/common/interfaces.d.ts +5 -5
  28. package/dist/chunks/index2.js +16 -16
  29. package/dist/chunks/index4.js +1 -1
  30. package/dist/chunks/rotated-state.js +1 -1
  31. package/dist/chunks/web-component-utils.js +557 -468
  32. package/dist/components/arcgis-chart/customElement.js +5197 -5327
  33. package/dist/docs/api.json +1 -1
  34. package/dist/docs/docs.json +1 -1
  35. package/dist/docs/web-types.json +1 -1
  36. package/dist/index.d.ts +1 -6
  37. package/dist/model/properties/rotated-state.d.ts +1 -1
  38. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  39. package/package.json +5 -5
  40. package/dist/cdn/BLZODYE2.js +0 -4
@@ -1,698 +1,787 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as re, capitalize as F, isNumber as j, zip as J } from "lodash-es";
3
- import { d as E } from "./interfaces.js";
4
- import { g as ne, a as W, b as ee, c as _ } from "./box-plot-data.js";
5
- import { g as le } from "./histogram-data.js";
6
- import { g as se, a as ue, b as ce } from "./pie-chart-data.js";
7
- import { g as te } from "./series-length.js";
8
- import { g as ae, d as oe, e as fe } from "./serial-chart-data.js";
9
- import { g as H, a as me } from "./data.js";
10
- import { Y as I, an as de, af as ye, aK as N, B as v, ba as ge } from "./index2.js";
11
- import { j as U, av as O, g as k, ap as be, b as xe, a as z } from "./index.js";
12
- import { q as w, C as m, F as L } from "./index3.js";
13
- import { g as pe } from "./series-types.js";
14
- import { V as Fe } from "./index6.js";
15
- import { P as Q } from "./common.js";
16
- import { R as Se } from "./rest-js-object-literals.js";
17
- import { u as V, d as B } from "./chart-object-literals.js";
18
- function De(n) {
19
- const { hour: e, minute: t = 0, format: i, locale: r = "en-US" } = n, o = i && Object.keys(i).length > 0 ? i : {
2
+ import { isEqual as ne, capitalize as S, isNumber as E, zip as ee } from "lodash-es";
3
+ import { d as U } from "./interfaces.js";
4
+ import { g as se, a as H, b as te, c as _ } from "./box-plot-data.js";
5
+ import { g as ue } from "./histogram-data.js";
6
+ import { g as ce, a as fe, b as me } from "./pie-chart-data.js";
7
+ import { g as ae } from "./series-length.js";
8
+ import { g as oe, d as ie, e as de } from "./serial-chart-data.js";
9
+ import { g as z, a as ye } from "./data.js";
10
+ import { Y as K, an as ge, af as pe, aK as R, a6 as be, B as P, ba as xe } from "./index2.js";
11
+ import { j as Y, av as M, g as T, ap as Fe, b as De, a as q } from "./index.js";
12
+ import { q as N, C as y, F as V } from "./index3.js";
13
+ import { g as Se } from "./series-types.js";
14
+ import { V as ve } from "./index6.js";
15
+ import { DateTime as re } from "luxon";
16
+ import { P as Z } from "./common.js";
17
+ import { u as O, d as L } from "./chart-object-literals.js";
18
+ import { R as he } from "./rest-js-object-literals.js";
19
+ function Pe(l) {
20
+ const { hour: e, minute: t = 0, format: o, locale: r = "en-US" } = l, a = o && Object.keys(o).length > 0 ? o : {
20
21
  hour: "numeric",
21
22
  minute: "2-digit",
22
23
  hour12: !1
23
24
  };
24
- let a = e.toString();
25
+ let i = e.toString();
25
26
  if (Number.isInteger(e) && e >= 0 && e <= 23 && Number.isInteger(t) && t >= 0 && t <= 59) {
26
- const u = new Date(2e3, 0, 1, e, t);
27
- a = new Intl.DateTimeFormat(r, o).format(u), a.includes(":") || a.startsWith("0") && (a = a.slice(1));
27
+ const n = new Date(2e3, 0, 1, e, t);
28
+ i = new Intl.DateTimeFormat(r, a).format(n), i.includes(":") || i.startsWith("0") && (i = i.slice(1));
28
29
  }
29
- return a;
30
+ return i;
30
31
  }
31
- function he(n) {
32
- const { weekdayNumber: e, format: t, locale: i = "en-US", firstDayOfWeek: r = 7 } = n, o = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
33
- let a = e.toString();
32
+ function Be(l) {
33
+ const { weekdayNumber: e, format: t, locale: o = "en-US", firstDayOfWeek: r = 7 } = l, a = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
+ let i = e.toString();
34
35
  if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(r) && r > 0 && r <= 7) {
35
- const u = (e + r - 1) % 7, c = new Date(2e3, 0, 2 + u);
36
- a = new Intl.DateTimeFormat(i, o).format(c);
36
+ const n = (e + r - 1) % 7, m = new Date(2e3, 0, 2 + n);
37
+ i = new Intl.DateTimeFormat(o, a).format(m);
37
38
  }
38
- return a;
39
+ return i;
39
40
  }
40
- function Pe(n) {
41
- const { monthNumber: e, format: t, locale: i = "en-US" } = n, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
42
- let o = e.toString();
41
+ function Ae(l) {
42
+ const { monthNumber: e, format: t, locale: o = "en-US" } = l, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
+ let a = e.toString();
43
44
  if (Number.isInteger(e) && e > 0 && e <= 12) {
44
- const a = new Date(2e3, e - 1);
45
- o = new Intl.DateTimeFormat(i, r).format(a);
45
+ const i = new Date(2e3, e - 1);
46
+ a = new Intl.DateTimeFormat(o, r).format(i);
46
47
  }
47
- return o;
48
+ return a;
48
49
  }
49
- function Z(n) {
50
- const { value: e, formatLocale: t, unit: i, config: r, utilsStrings: o } = n;
51
- let a = { label: "", value: e.toString() };
52
- switch (i) {
53
- case B.DayOfWeek:
54
- a = {
55
- label: o.heatChartCalendarDatePartsUnits.dayOfWeek,
56
- value: he({
50
+ function X(l) {
51
+ const { value: e, formatLocale: t, unit: o, config: r, utilsStrings: a } = l;
52
+ let i = { label: "", value: e.toString() };
53
+ switch (o) {
54
+ case L.DayOfWeek:
55
+ i = {
56
+ label: a.heatChartCalendarDatePartsUnits.dayOfWeek,
57
+ value: Be({
57
58
  weekdayNumber: e,
58
- firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : be,
59
+ firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : Fe,
59
60
  locale: t
60
61
  })
61
62
  };
62
63
  break;
63
- case B.MonthOfYear:
64
- a = {
65
- label: o.heatChartCalendarDatePartsUnits.monthOfYear,
66
- value: Pe({
64
+ case L.MonthOfYear:
65
+ i = {
66
+ label: a.heatChartCalendarDatePartsUnits.monthOfYear,
67
+ value: Ae({
67
68
  monthNumber: e,
68
69
  locale: t
69
70
  })
70
71
  };
71
72
  break;
72
- case B.HourOfDay:
73
- a = {
74
- label: o.heatChartCalendarDatePartsUnits.hourOfDay,
75
- value: De({
73
+ case L.HourOfDay:
74
+ i = {
75
+ label: a.heatChartCalendarDatePartsUnits.hourOfDay,
76
+ value: Pe({
76
77
  hour: e,
77
78
  format: { hour: "numeric", hour12: !1 },
78
79
  locale: t
79
80
  })
80
81
  };
81
82
  break;
82
- case B.DayOfMonth:
83
- a = {
84
- label: o.heatChartCalendarDatePartsUnits.dayOfMonth,
83
+ case L.DayOfMonth:
84
+ i = {
85
+ label: a.heatChartCalendarDatePartsUnits.dayOfMonth,
85
86
  value: typeof e == "string" ? e : e?.toString() ?? ""
86
87
  };
87
88
  break;
88
- case B.DayOfYear:
89
- a = {
90
- label: o.heatChartCalendarDatePartsUnits.dayOfYear,
89
+ case L.DayOfYear:
90
+ i = {
91
+ label: a.heatChartCalendarDatePartsUnits.dayOfYear,
91
92
  value: typeof e == "string" ? e : e?.toString() ?? ""
92
93
  };
93
94
  break;
94
- case B.MinuteOfDay:
95
- a = {
96
- label: o.heatChartCalendarDatePartsUnits.minuteOfDay,
95
+ case L.MinuteOfDay:
96
+ i = {
97
+ label: a.heatChartCalendarDatePartsUnits.minuteOfDay,
97
98
  value: typeof e == "string" ? e : e?.toString() ?? ""
98
99
  };
99
100
  break;
100
- case B.WeekOfYear:
101
- a = {
102
- label: o.heatChartCalendarDatePartsUnits.weekOfYear,
101
+ case L.WeekOfYear:
102
+ i = {
103
+ label: a.heatChartCalendarDatePartsUnits.weekOfYear,
103
104
  value: typeof e == "string" ? e : e?.toString() ?? ""
104
105
  };
105
106
  break;
106
- case B.QuarterOfYear:
107
- a = {
108
- label: o.heatChartCalendarDatePartsUnits.quarterOfYear,
107
+ case L.QuarterOfYear:
108
+ i = {
109
+ label: a.heatChartCalendarDatePartsUnits.quarterOfYear,
109
110
  value: typeof e == "string" ? e : e?.toString() ?? ""
110
111
  };
111
112
  break;
112
113
  }
113
- return a;
114
+ return i;
114
115
  }
115
- function ve(n, e) {
116
- return !re(n, e);
116
+ function Le(l, e) {
117
+ return !ne(l, e);
117
118
  }
118
- function Ge(n, e) {
119
- return ve(n, e) || n !== e;
119
+ function it(l, e) {
120
+ return Le(l, e) || l !== e;
120
121
  }
121
- function Ae(n) {
122
- return (new Intl.NumberFormat(n, {
122
+ function Ce(l) {
123
+ return (new Intl.NumberFormat(l, {
123
124
  minimumFractionDigits: 1,
124
125
  maximumFractionDigits: 1
125
- }).formatToParts(1.1).find((i) => i.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
+ }).formatToParts(1.1).find((o) => o.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
127
  }
127
- function Be(n) {
128
- return new Intl.NumberFormat(n, {
128
+ function Ve(l) {
129
+ return new Intl.NumberFormat(l, {
129
130
  minimumFractionDigits: 1,
130
131
  maximumFractionDigits: 1
131
132
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
132
133
  }
133
- const X = (n) => {
134
- const { value: e, quoteAll: t = !1, locale: i, roundDecimals: r } = n;
135
- let o = e == null ? "" : String(e);
134
+ const G = (l) => {
135
+ const { value: e, quoteAll: t = !1, locale: o, roundDecimals: r } = l;
136
+ let a = e == null ? "" : String(e);
136
137
  if (e === null)
137
- o = "null";
138
+ a = "null";
138
139
  else if (e === void 0)
139
- o = "";
140
- else if (typeof e == "number" && Number.isFinite(e) && i !== void 0) {
141
- const u = Be(i), c = r ?? o.split(u)[1]?.length ?? 2;
142
- o = new Intl.NumberFormat(i, {
143
- maximumFractionDigits: c
140
+ a = "";
141
+ else if (typeof e == "number" && Number.isFinite(e) && o !== void 0) {
142
+ const n = Ve(o), m = r ?? a.split(n)[1]?.length ?? 2;
143
+ a = new Intl.NumberFormat(o, {
144
+ maximumFractionDigits: m
144
145
  }).format(e).replace(/\u202F/gu, " ");
145
146
  }
146
- return (t || /[",\r\n]/u.test(o)) && (o = `"${o.replace(/"/gu, '""')}"`), o;
147
+ return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
147
148
  };
148
- function Je(n, e = {}) {
149
- const { columns: t, delimiter: i, includeHeader: r = !0, quoteAll: o = !1, locale: a, roundDecimals: u } = e, c = n.length === 0;
150
- let l = "";
151
- if (!c) {
152
- const S = t ?? Object.keys(n[0]), p = [], x = i ?? Ae(a ?? "en");
153
- if (a !== void 0 && x !== "," && (l += `sep=${x}\r
149
+ function rt(l, e = {}) {
150
+ const { columns: t, delimiter: o, includeHeader: r = !0, quoteAll: a = !1, locale: i, roundDecimals: n } = e, m = l.length === 0;
151
+ let u = "";
152
+ if (!m) {
153
+ const g = t ?? Object.keys(l[0]), F = [], b = o ?? Ce(i ?? "en");
154
+ if (i !== void 0 && b !== "," && (u += `sep=${b}\r
154
155
  `), r) {
155
- const y = S.map((s) => X({ value: s, quoteAll: o, locale: a, roundDecimals: u }));
156
- p.push(y.join(x));
156
+ const x = g.map((d) => G({ value: d, quoteAll: a, locale: i, roundDecimals: n }));
157
+ F.push(x.join(b));
157
158
  }
158
- n.forEach((y) => {
159
- const s = S.map((f) => X({ value: y[f], quoteAll: o, locale: a, roundDecimals: u }));
160
- p.push(s.join(x));
161
- }), l += p.join(`\r
159
+ l.forEach((x) => {
160
+ const d = g.map((s) => G({ value: x[s], quoteAll: a, locale: i, roundDecimals: n }));
161
+ F.push(d.join(b));
162
+ }), u += F.join(`\r
162
163
  `);
163
164
  }
164
- return l;
165
+ return u;
165
166
  }
166
- function et(n) {
167
- const { rawData: e, config: t, layer: i, fieldList: r, formatters: o, formatLocale: a, utilsStrings: u } = n;
168
- let c = [];
167
+ function lt(l) {
168
+ const { rawData: e, config: t, layer: o, fieldList: r, formatters: a, formatLocale: i, utilsStrings: n } = l;
169
+ let m = [];
169
170
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
170
- const l = pe(t?.series);
171
- l === V.HistogramSeries ? c = Ve(
171
+ const u = Se(t?.series);
172
+ u === O.HistogramSeries ? m = ke(
172
173
  t,
173
174
  e,
174
- o
175
- ) : l === V.HeatSeries ? c = Le({
175
+ a
176
+ ) : u === O.HeatSeries ? m = Me({
176
177
  config: t,
177
178
  rows: e,
178
- layer: i,
179
+ layer: o,
179
180
  fieldList: r,
180
- formatLocale: a,
181
- utilsStrings: u
182
- }) : l === V.BarSeries || l === V.LineSeries || l === V.ComboLineAndBarSeries ? c = Me({
181
+ formatLocale: i,
182
+ utilsStrings: n
183
+ }) : u === O.BarSeries || u === O.LineSeries || u === O.ComboLineAndBarSeries ? m = Te({
183
184
  config: t,
184
185
  rows: e,
185
- layer: i,
186
+ layer: o,
186
187
  fieldList: r,
187
- formatters: o
188
- }) : l === V.PieSeries ? c = $e({
188
+ formatters: a
189
+ }) : u === O.PieSeries ? m = Ne({
189
190
  config: t,
190
191
  rows: e,
191
- layer: i,
192
+ layer: o,
192
193
  fieldList: r,
193
- formatters: o
194
- }) : l === V.BoxPlotSeries && (c = Te({
194
+ formatters: a
195
+ }) : u === O.BoxPlotSeries && (m = Re({
195
196
  config: t,
196
197
  rows: e,
198
+ layer: o,
197
199
  fieldList: r,
198
- formatters: o
200
+ formatters: a
199
201
  }));
200
202
  }
201
- return c;
203
+ return m;
202
204
  }
203
- function P(n) {
204
- const { value: e, originalValue: t, formatter: i } = n;
205
+ function h(l) {
206
+ const { value: e, originalValue: t, formatter: o } = l;
205
207
  let r = e;
206
- return i !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = i(e, t)), r;
208
+ return o !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = o(e, t)), r;
209
+ }
210
+ function A(l) {
211
+ const { field: e, value: t, layer: o, fieldList: r, formatter: a } = l;
212
+ let i;
213
+ if (t == null || typeof t == "boolean" || Array.isArray(t))
214
+ i = t;
215
+ else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
216
+ const n = o !== void 0 && (typeof t == "string" || typeof t == "number") ? be({
217
+ queryObject: o,
218
+ fieldName: e,
219
+ fieldValue: t
220
+ }) : void 0;
221
+ i = le({
222
+ field: e,
223
+ value: n ?? t,
224
+ fieldList: r
225
+ });
226
+ } else
227
+ i = t;
228
+ return h({
229
+ value: i,
230
+ originalValue: t,
231
+ formatter: a
232
+ });
207
233
  }
208
- function C(n) {
209
- const { field: e, row: t, fieldList: i, formatter: r } = n, o = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), a = t[o ?? e];
210
- let u;
211
- return a == null || typeof a == "boolean" || Array.isArray(a) ? u = a : typeof a == "string" || typeof a == "number" || a instanceof Date ? u = ie({
234
+ function C(l) {
235
+ const { field: e, row: t, layer: o, fieldList: r, formatter: a } = l, i = Object.keys(t).find((m) => m.toLocaleLowerCase() === e.toLocaleLowerCase()), n = t[i ?? e];
236
+ return A({
212
237
  field: e,
213
- value: a,
214
- fieldList: i
215
- }) : u = a, P({
216
- value: u,
217
- originalValue: a,
218
- formatter: r
238
+ value: n,
239
+ layer: o,
240
+ fieldList: r,
241
+ formatter: a
219
242
  });
220
243
  }
221
- function Y(n) {
222
- const { config: e, seriesIndex: t, formatters: i } = n;
223
- return e.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
244
+ function W(l) {
245
+ const { config: e, seriesIndex: t, formatters: o } = l;
246
+ return e.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
224
247
  }
225
- function Ce(n) {
226
- const { config: e, splitValueIndex: t, formatters: i } = n;
227
- return e?.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
248
+ function Oe(l) {
249
+ const { config: e, splitValueIndex: t, formatters: o } = l;
250
+ return e?.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
228
251
  }
229
- function Le(n) {
230
- const { config: e, rows: t, layer: i, fieldList: r, formatLocale: o, utilsStrings: a } = n, [u] = e.series, c = u.x, l = ae(e), S = oe(e), p = H({
252
+ function Me(l) {
253
+ const { config: e, rows: t, layer: o, fieldList: r, formatLocale: a, utilsStrings: i } = l, [n] = e.series, m = n.x, u = oe(e), g = ie(e), F = z({
231
254
  config: e,
232
- xAxisField: c,
233
- numericFields: S,
234
- aggregationType: l,
235
- layer: i,
255
+ xAxisField: m,
256
+ numericFields: g,
257
+ aggregationType: u,
258
+ layer: o,
236
259
  fieldList: r
237
260
  });
238
- return t.map((x) => {
239
- const y = x[U.xField], s = x[U.yField], f = x[U.valueField], d = typeof f == "number" && Number.isFinite(f) ? f.toFixed(2) : f;
240
- let g = { label: u.x, value: y }, b = { label: u.y, value: s };
241
- if (u.xTemporalBinning !== void 0) {
242
- const { label: D, value: h } = Z({
243
- value: Number(y),
261
+ return t.map((b) => {
262
+ const x = b[Y.xField], d = b[Y.yField], s = b[Y.valueField], c = typeof s == "number" && Number.isFinite(s) ? s.toFixed(2) : s;
263
+ let f = { label: n.x, value: x }, p = { label: n.y, value: d };
264
+ if (n.xTemporalBinning !== void 0) {
265
+ const { label: D, value: v } = X({
266
+ value: Number(x),
244
267
  config: e,
245
- formatLocale: o,
246
- unit: u.xTemporalBinning.unit,
247
- utilsStrings: a
268
+ formatLocale: a,
269
+ unit: n.xTemporalBinning.unit,
270
+ utilsStrings: i
248
271
  });
249
- !w(D) && !w(h) && (g = { label: D, value: h });
272
+ !N(D) && !N(v) && (f = { label: D, value: v });
250
273
  }
251
- if (u.yTemporalBinning !== void 0) {
252
- const { label: D, value: h } = Z({
253
- value: Number(s),
274
+ if (n.yTemporalBinning !== void 0) {
275
+ const { label: D, value: v } = X({
276
+ value: Number(d),
254
277
  config: e,
255
- formatLocale: o,
256
- unit: u.yTemporalBinning.unit,
257
- utilsStrings: a
278
+ formatLocale: a,
279
+ unit: n.yTemporalBinning.unit,
280
+ utilsStrings: i
258
281
  });
259
- !w(D) && !w(h) && (b = { label: D, value: h });
282
+ !N(D) && !N(v) && (p = { label: D, value: v });
260
283
  }
261
284
  return {
262
- [g.label]: g.value,
263
- [b.label]: b.value,
264
- [p.description]: d
285
+ [f.label]: f.value,
286
+ [p.label]: p.value,
287
+ [F.description]: c
265
288
  };
266
289
  });
267
290
  }
268
- function Ve(n, e, t) {
269
- const i = le(n), r = `${F(E.Min)} of ${i}`, o = `${F(E.Max)} of ${i}`, a = `${F(E.Count)} of ${i}`;
270
- return e.map((u) => {
271
- const { minValue: c, maxValue: l, count: S } = u, p = j(c), x = j(l), y = j(S), s = {};
272
- if (p && (s[r] = P({
273
- value: c,
274
- originalValue: c,
291
+ function ke(l, e, t) {
292
+ const o = ue(l), r = `${S(U.Min)} of ${o}`, a = `${S(U.Max)} of ${o}`, i = `${S(U.Count)} of ${o}`;
293
+ return e.map((n) => {
294
+ const { minValue: m, maxValue: u, count: g } = n, F = E(m), b = E(u), x = E(g), d = {};
295
+ if (F && (d[r] = h({
296
+ value: m,
297
+ originalValue: m,
275
298
  formatter: t?.xAxisLabelFormatter
276
- })), x && (s[o] = P({
277
- value: l,
278
- originalValue: l,
299
+ })), b && (d[a] = h({
300
+ value: u,
301
+ originalValue: u,
279
302
  formatter: t?.xAxisLabelFormatter
280
- })), p && x) {
281
- const f = P({
282
- value: c,
283
- originalValue: c,
303
+ })), F && b) {
304
+ const s = h({
305
+ value: m,
306
+ originalValue: m,
284
307
  formatter: t?.xAxisLabelFormatter
285
- }), d = P({
286
- value: l,
287
- originalValue: l,
308
+ }), c = h({
309
+ value: u,
310
+ originalValue: u,
288
311
  formatter: t?.xAxisLabelFormatter
289
312
  });
290
- s.Label = `${String(f ?? "")} - ${String(d ?? "")}`;
313
+ d.Label = `${String(s ?? "")} - ${String(c ?? "")}`;
291
314
  }
292
- return y && (s[a] = P({
293
- value: S,
294
- originalValue: S,
315
+ return x && (d[i] = h({
316
+ value: g,
317
+ originalValue: g,
295
318
  formatter: t?.yAxisLabelFormatter
296
- })), s;
319
+ })), d;
297
320
  });
298
321
  }
299
- function Oe(n, e, t) {
300
- const i = Object.keys(n);
322
+ function $e(l, e, t) {
323
+ const o = Object.keys(l);
301
324
  let r = [];
302
- return t ? r = t.map((o) => i.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : r = i.filter((a) => a.toLowerCase().includes(e.toLowerCase())), r.filter((o) => o.trim() !== "");
325
+ return t ? r = t.map((a) => o.find((i) => i.toLowerCase().includes(a.toLowerCase())) || "") : r = o.filter((i) => i.toLowerCase().includes(e.toLowerCase())), r.filter((a) => a.trim() !== "");
303
326
  }
304
- function Me(n) {
305
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = me(e), u = ae(e), c = F(u), l = oe(e), S = I(e.series), p = te(e), x = fe(e), { idField: y, isTraditionalTypeOID: s } = de(ye(i)), f = s && l.length === 1 && l[0] === y;
306
- let d;
307
- switch (S) {
308
- case m.BarAndLineNoAggregation:
309
- d = t.map((g) => {
310
- const b = C({
311
- field: a,
312
- row: g,
327
+ function Te(l) {
328
+ const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ye(e), n = oe(e), m = S(n), u = ie(e), g = K(e.series), F = ae(e), b = de(e), { idField: x, isTraditionalTypeOID: d } = ge(pe(o)), s = d && u.length === 1 && u[0] === x;
329
+ let c;
330
+ switch (g) {
331
+ case y.BarAndLineNoAggregation:
332
+ c = t.map((f) => {
333
+ const p = C({
334
+ field: i,
335
+ row: f,
336
+ layer: o,
313
337
  fieldList: r,
314
- formatter: o?.xAxisLabelFormatter
315
- }), D = { [a]: b };
338
+ formatter: a?.xAxisLabelFormatter
339
+ }), D = { [i]: p };
316
340
  return Object.assign(
317
341
  D,
318
- ...l.map((h, A) => ({
319
- [h]: P({
320
- value: g[h],
321
- originalValue: g[h],
322
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
342
+ ...u.map((v, B) => ({
343
+ [v]: h({
344
+ value: f[v],
345
+ originalValue: f[v],
346
+ formatter: W({ config: e, seriesIndex: B, formatters: a })
323
347
  })
324
348
  }))
325
349
  ), D;
326
350
  });
327
351
  break;
328
- case m.BarAndLineFromFields:
329
- d = J(l, t).map(([g, b]) => {
330
- const D = N(e.series)[0], h = {};
331
- return b !== void 0 && g !== void 0 && (h.Field = P({
332
- value: b[a],
333
- originalValue: b[a],
334
- formatter: o?.xAxisLabelFormatter
335
- }), h.Value = P({
336
- value: b[D],
337
- originalValue: b[D],
338
- formatter: Y({ config: e, seriesIndex: 0, formatters: o })
339
- })), h;
352
+ case y.BarAndLineFromFields:
353
+ c = ee(u, t).map(([f, p]) => {
354
+ const D = R(e.series)[0], v = {};
355
+ return p !== void 0 && f !== void 0 && (v.Field = h({
356
+ value: p[i],
357
+ originalValue: p[i],
358
+ formatter: a?.xAxisLabelFormatter
359
+ }), v.Value = h({
360
+ value: p[D],
361
+ originalValue: p[D],
362
+ formatter: W({ config: e, seriesIndex: 0, formatters: a })
363
+ })), v;
340
364
  });
341
365
  break;
342
- case m.BarAndLineMonoField:
343
- case m.BarAndLineMultiFields:
344
- d = t.map((g) => {
345
- const b = C({
346
- field: a,
347
- row: g,
366
+ case y.BarAndLineMonoField:
367
+ case y.BarAndLineMultiFields:
368
+ c = t.map((f) => {
369
+ const p = C({
370
+ field: i,
371
+ row: f,
372
+ layer: o,
348
373
  fieldList: r,
349
- formatter: o?.xAxisLabelFormatter
350
- }), D = { [a]: b };
351
- return l.forEach((h, A) => {
352
- const $ = H({
374
+ formatter: a?.xAxisLabelFormatter
375
+ }), D = { [i]: p };
376
+ return u.forEach((v, B) => {
377
+ const k = z({
353
378
  config: e,
354
- xAxisField: a,
355
- numericFields: l,
356
- aggregationType: u,
357
- layer: i,
358
- numericFieldIndex: A,
379
+ xAxisField: i,
380
+ numericFields: u,
381
+ aggregationType: n,
382
+ layer: o,
383
+ numericFieldIndex: B,
359
384
  fieldList: r
360
- }), R = N(e.series)[A];
361
- let q = R, K = R;
362
- R.toLowerCase() === $.name.toLowerCase() && (q = $.description, K = $.name), D[q] = P({
363
- value: g[K],
364
- originalValue: g[K],
365
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
385
+ }), w = R(e.series)[B];
386
+ let Q = w, j = w;
387
+ w.toLowerCase() === k.name.toLowerCase() && (Q = k.description, j = k.name), D[Q] = h({
388
+ value: f[j],
389
+ originalValue: f[j],
390
+ formatter: W({ config: e, seriesIndex: B, formatters: a })
366
391
  });
367
392
  }), D;
368
393
  });
369
394
  break;
370
- case m.BarAndLineSplitBy:
371
- d = t.flatMap((g) => {
372
- const b = N(e.series), D = C({
373
- field: a,
374
- row: g,
395
+ case y.BarAndLineSplitBy:
396
+ c = t.flatMap((f) => {
397
+ const p = R(e.series), D = C({
398
+ field: i,
399
+ row: f,
400
+ layer: o,
375
401
  fieldList: r,
376
- formatter: o?.xAxisLabelFormatter
402
+ formatter: a?.xAxisLabelFormatter
403
+ });
404
+ return F.map((v, B) => {
405
+ const k = A({
406
+ field: b,
407
+ value: v,
408
+ layer: o,
409
+ fieldList: r
410
+ });
411
+ return {
412
+ [i]: D,
413
+ [b]: k,
414
+ [s ? m : `${m} of ${u[0]}`]: h({
415
+ value: f[p[B]],
416
+ originalValue: f[p[B]],
417
+ formatter: Oe({ config: e, splitValueIndex: B, formatters: a })
418
+ })
419
+ };
377
420
  });
378
- return p.map((h, A) => ({
379
- [a]: D,
380
- [x]: h,
381
- [f ? c : `${c} of ${l[0]}`]: P({
382
- value: g[b[A]],
383
- originalValue: g[b[A]],
384
- formatter: Ce({ config: e, splitValueIndex: A, formatters: o })
385
- })
386
- }));
387
421
  });
388
422
  break;
389
- case m.BarAndLineSplitByNoAggregation:
390
- d = t.map((g) => {
391
- const b = C({
392
- field: a,
393
- row: g,
423
+ case y.BarAndLineSplitByNoAggregation:
424
+ c = t.map((f) => {
425
+ const p = C({
426
+ field: i,
427
+ row: f,
428
+ layer: o,
394
429
  fieldList: r,
395
- formatter: o?.xAxisLabelFormatter
396
- }), D = Oe(g, l[0], p);
430
+ formatter: a?.xAxisLabelFormatter
431
+ }), D = $e(f, u[0], F), v = A({
432
+ field: b,
433
+ value: f[b],
434
+ layer: o,
435
+ fieldList: r
436
+ });
397
437
  return {
398
- [a]: b,
399
- [x]: g[x],
400
- [l[0]]: P({
401
- value: g[D[0]],
402
- originalValue: g[D[0]],
403
- formatter: o?.yAxisLabelFormatter
438
+ [i]: p,
439
+ [b]: v,
440
+ [u[0]]: h({
441
+ value: f[D[0]],
442
+ originalValue: f[D[0]],
443
+ formatter: a?.yAxisLabelFormatter
404
444
  })
405
445
  };
406
446
  });
407
447
  break;
408
448
  default:
409
- d = t;
449
+ c = t;
410
450
  }
411
- return d;
451
+ return c;
412
452
  }
413
- function ke(n) {
414
- if (n.length === 0)
453
+ function we(l) {
454
+ if (l.length === 0)
415
455
  return [];
416
- const e = n.reduce((t, i) => {
417
- for (const [r, o] of Object.entries(i))
418
- typeof o == "number" && Number.isFinite(o) && (t[r] = (t[r] ?? 0) + o);
456
+ const e = l.reduce((t, o) => {
457
+ for (const [r, a] of Object.entries(o))
458
+ typeof a == "number" && Number.isFinite(a) && (t[r] = (t[r] ?? 0) + a);
419
459
  return t;
420
460
  }, {});
421
- return n.map((t) => {
422
- const i = { ...t };
423
- for (const [r, o] of Object.entries(t))
424
- if (typeof o == "number" && e[r] > 0) {
425
- const a = o / e[r];
426
- i[`${r}${O}`] = a.toPrecision(2);
461
+ return l.map((t) => {
462
+ const o = { ...t };
463
+ for (const [r, a] of Object.entries(t))
464
+ if (typeof a == "number" && e[r] > 0) {
465
+ const i = a / e[r];
466
+ o[`${r}${M}`] = i.toPrecision(2);
427
467
  }
428
- return i;
468
+ return o;
429
469
  });
430
470
  }
431
- function $e(n) {
432
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = se(e), u = I(e.series);
433
- let c = ke(t);
434
- const l = ue(e), S = u !== m.PieFromFields ? Q.Category : Q.Fields, p = ce(e, S), x = H({
471
+ function Ne(l) {
472
+ const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ce(e), n = K(e.series);
473
+ let m = we(t);
474
+ const u = fe(e), g = n !== y.PieFromFields ? Z.Category : Z.Fields, F = me(e, g), b = z({
435
475
  config: e,
436
- xAxisField: a,
437
- numericFields: l,
438
- aggregationType: p,
439
- mode: S,
440
- layer: i,
476
+ xAxisField: i,
477
+ numericFields: u,
478
+ aggregationType: F,
479
+ mode: g,
480
+ layer: o,
441
481
  fieldList: r
442
- }), y = N(e.series)[0];
443
- return u === m.PieFromCategory || u === m.PieNoAggregation ? c = c.map((s) => {
444
- const f = C({
445
- field: a,
446
- row: s,
482
+ }), x = R(e.series)[0];
483
+ return n === y.PieFromCategory || n === y.PieNoAggregation ? m = m.map((d) => {
484
+ const s = C({
485
+ field: i,
486
+ row: d,
487
+ layer: o,
447
488
  fieldList: r,
448
- formatter: o?.xAxisLabelFormatter
449
- }), d = { [a]: f };
450
- let g = y, b = y;
451
- return u === m.PieFromCategory && y.toLowerCase() === x.name.toLowerCase() && (g = x.description, b = x.name), d[g] = P({
452
- value: s[b],
453
- originalValue: s[b],
454
- formatter: o?.yAxisLabelFormatter
455
- }), d[F(O.trim())] = P({
456
- value: s[`${b}${O}`],
457
- originalValue: s[`${b}${O}`],
458
- formatter: o?.yAxisLabelFormatter
459
- }), d;
460
- }) : u === m.PieFromFields && (c = J(l, c).map(([s, f]) => {
461
- const d = {};
462
- return f !== void 0 && s !== void 0 && (d.Field = P({
463
- value: f[a],
464
- originalValue: f[a],
465
- formatter: o?.xAxisLabelFormatter
466
- }), d.Value = P({
467
- value: f[y],
468
- originalValue: f[y],
469
- formatter: o?.yAxisLabelFormatter
470
- }), d[F(O.trim())] = P({
471
- value: f[`${y}${O}`],
472
- originalValue: f[`${y}${O}`],
473
- formatter: o?.yAxisLabelFormatter
474
- })), d;
475
- })), c;
489
+ formatter: a?.xAxisLabelFormatter
490
+ }), c = { [i]: s };
491
+ let f = x, p = x;
492
+ return n === y.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (f = b.description, p = b.name), c[f] = h({
493
+ value: d[p],
494
+ originalValue: d[p],
495
+ formatter: a?.yAxisLabelFormatter
496
+ }), c[S(M.trim())] = h({
497
+ value: d[`${p}${M}`],
498
+ originalValue: d[`${p}${M}`],
499
+ formatter: a?.yAxisLabelFormatter
500
+ }), c;
501
+ }) : n === y.PieFromFields && (m = ee(u, m).map(([d, s]) => {
502
+ const c = {};
503
+ return s !== void 0 && d !== void 0 && (c.Field = h({
504
+ value: s[i],
505
+ originalValue: s[i],
506
+ formatter: a?.xAxisLabelFormatter
507
+ }), c.Value = h({
508
+ value: s[x],
509
+ originalValue: s[x],
510
+ formatter: a?.yAxisLabelFormatter
511
+ }), c[S(M.trim())] = h({
512
+ value: s[`${x}${M}`],
513
+ originalValue: s[`${x}${M}`],
514
+ formatter: a?.yAxisLabelFormatter
515
+ })), c;
516
+ })), m;
476
517
  }
477
- function T(n) {
478
- const { rawData: e, keyBase: t = "", outRow: i } = n;
479
- for (const [r, o] of Object.entries(v)) {
480
- const a = e[t + o];
481
- a !== void 0 && (i[r] = a);
482
- const u = e[t + o + xe];
483
- u !== void 0 && (i[`${r} Outlier`] = u);
484
- const c = e[t + o + z];
485
- c !== void 0 && (i[`${r} Z-Score`] = c);
518
+ function I(l) {
519
+ const { rawData: e, keyBase: t = "", outRow: o } = l;
520
+ for (const [r, a] of Object.entries(P)) {
521
+ const i = e[t + a];
522
+ i !== void 0 && (o[r] = i);
523
+ const n = e[t + a + De];
524
+ n !== void 0 && (o[`${r} Outlier`] = n);
525
+ const m = e[t + a + q];
526
+ m !== void 0 && (o[`${r} Z-Score`] = m);
486
527
  }
487
528
  }
488
- function M(n) {
489
- const { rawData: e, outRow: t, config: i, boxPlotSubType: r, fieldList: o } = n, a = W(i), u = ee(i), c = _(i);
490
- let l = v.Outlier;
491
- const S = k;
529
+ function $(l) {
530
+ const { rawData: e, outRow: t, config: o, boxPlotSubType: r, layer: a, fieldList: i } = l, n = H(o), m = te(o), u = _(o);
531
+ let g = P.Outlier;
532
+ const F = T;
492
533
  switch (r) {
493
- case m.BoxPlotMonoFieldAndCategory: {
494
- const y = ie({
495
- field: a,
496
- value: e[a],
497
- fieldList: o
534
+ case y.BoxPlotMonoFieldAndCategory: {
535
+ const d = le({
536
+ field: n,
537
+ value: e[n],
538
+ fieldList: i
498
539
  });
499
- t[a] = y, t[F(v.Outlier)] = e[l];
540
+ t[n] = d, t[S(P.Outlier)] = e[g];
500
541
  break;
501
542
  }
502
- case m.BoxPlotMultiFieldsAndCategory: {
503
- t[F(a)] = e[a], l = `${u.find(
504
- (s) => Object.keys(e).some((f) => f.toLowerCase().includes(s.toLowerCase()))
505
- ) ?? ""}_${l}`, t[F(v.Outlier)] = e[l];
543
+ case y.BoxPlotMultiFieldsAndCategory: {
544
+ t[S(n)] = e[n], g = `${m.find(
545
+ (s) => Object.keys(e).some((c) => c.toLowerCase().includes(s.toLowerCase()))
546
+ ) ?? ""}_${g}`, t[S(P.Outlier)] = e[g];
506
547
  break;
507
548
  }
508
- case m.BoxPlotMonoFieldAndSplitBy:
509
- case m.BoxPlotMultiFieldsAndSplitBy: {
510
- const y = String(e[c]);
511
- l = `${y}_${l}`, t.Field = e[S], t[F(c)] = y, t[F(v.Outlier)] = e[l];
549
+ case y.BoxPlotMonoFieldAndSplitBy:
550
+ case y.BoxPlotMultiFieldsAndSplitBy: {
551
+ const d = String(e[u]), s = A({
552
+ field: u,
553
+ value: d,
554
+ layer: a,
555
+ fieldList: i
556
+ });
557
+ g = `${d}_${g}`, t.Field = e[F], t[S(u)] = s, t[S(P.Outlier)] = e[g];
512
558
  break;
513
559
  }
514
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
515
- const y = String(e[c]);
516
- l = `${y}_${l}`, t[F(a)] = e[a], t[F(c)] = y, t[F(v.Outlier)] = e[l];
560
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
561
+ const d = String(e[u]), s = A({
562
+ field: u,
563
+ value: d,
564
+ layer: a,
565
+ fieldList: i
566
+ });
567
+ g = `${d}_${g}`, t[S(n)] = e[n], t[S(u)] = s, t[S(P.Outlier)] = e[g];
517
568
  break;
518
569
  }
519
- case m.BoxPlotMonoField:
520
- case m.BoxPlotMultiFields:
570
+ case y.BoxPlotMonoField:
571
+ case y.BoxPlotMultiFields:
521
572
  default: {
522
- t.Field = e[S], t[F(v.Outlier)] = e[l];
573
+ t.Field = e[F], t[S(P.Outlier)] = e[g];
523
574
  break;
524
575
  }
525
576
  }
526
- const p = `${l}${z}`, x = e[p];
527
- x !== void 0 && (t[`${F(v.Outlier)} Z-Score`] = x);
577
+ const b = `${g}${q}`, x = e[b];
578
+ x !== void 0 && (t[`${S(P.Outlier)} Z-Score`] = x);
528
579
  }
529
- function we(n) {
530
- const { rawData: e, outRow: t, config: i, splitByValue: r } = n, o = I(i.series), a = e[`${r}_${v.Average}`], u = _(i), c = W(i);
531
- let l = "";
532
- switch (o) {
533
- case m.BoxPlotMonoFieldAndSplitBy: {
534
- l = `${r}_${u}`, t.Field = e[k], t[F(u)] = e[l];
580
+ function Ie(l) {
581
+ const { rawData: e, outRow: t, config: o, splitByValue: r, layer: a, fieldList: i } = l, n = K(o.series), m = e[`${r}_${P.Average}`], u = _(o), g = H(o);
582
+ let F = "";
583
+ switch (n) {
584
+ case y.BoxPlotMonoFieldAndSplitBy: {
585
+ F = `${r}_${u}`, t.Field = e[T], t[S(u)] = A({
586
+ field: u,
587
+ value: e[F],
588
+ layer: a,
589
+ fieldList: i
590
+ });
535
591
  break;
536
592
  }
537
- case m.BoxPlotMultiFieldsAndSplitBy: {
538
- l = `${r}_${v.Average}`, t.Field = e[k], t[F(u)] = e[l];
593
+ case y.BoxPlotMultiFieldsAndSplitBy: {
594
+ F = `${r}_${P.Average}`, t.Field = e[T], t[S(u)] = A({
595
+ field: u,
596
+ value: e[F],
597
+ layer: a,
598
+ fieldList: i
599
+ });
539
600
  break;
540
601
  }
541
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
542
- l = `${r}_${v.Average}`, t[c] = e[c], t[F(u)] = r;
602
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
603
+ F = `${r}_${P.Average}`, t[g] = e[g], t[S(u)] = A({
604
+ field: u,
605
+ value: r,
606
+ layer: a,
607
+ fieldList: i
608
+ });
543
609
  break;
544
610
  }
545
611
  }
546
- t[F(v.Average)] = a;
547
- const S = `${String(a)}${z}`, p = e[S];
548
- p !== void 0 && (t[`${F(v.Average)} Z-Score`] = p);
612
+ t[S(P.Average)] = m;
613
+ const b = `${String(m)}${q}`, x = e[b];
614
+ x !== void 0 && (t[`${S(P.Average)} Z-Score`] = x);
549
615
  }
550
- function Te(n) {
551
- const { config: e, rows: t, fieldList: i, formatters: r } = n, o = I(e.series);
552
- let a = o;
553
- const u = ne(e), c = Array.isArray(t) && t.length > 0 && t.every((s) => s[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
554
- u && !c && (o === m.BoxPlotMonoFieldAndSplitBy ? a = m.BoxPlotMonoField : o === m.BoxPlotMultiFieldsAndSplitBy ? a = m.BoxPlotMultiFields : o === m.BoxPlotMonoFieldAndCategoryAndSplitBy && (a = m.BoxPlotMonoFieldAndCategory));
555
- const l = W(e), S = ee(e), p = te(e), x = _(e);
556
- let y;
557
- switch (a) {
558
- case m.BoxPlotMonoField:
559
- case m.BoxPlotMonoFieldAndCategory: {
560
- y = t.map((s) => {
561
- const f = {};
562
- if (s[L.boxPlot.boxPlotOutlierId])
563
- M({ rawData: s, outRow: f, config: e, boxPlotSubType: a });
616
+ function Re(l) {
617
+ const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = K(e.series);
618
+ let n = i;
619
+ const m = se(e), u = Array.isArray(t) && t.length > 0 && t.every((s) => s[V.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
620
+ m && !u && (i === y.BoxPlotMonoFieldAndSplitBy ? n = y.BoxPlotMonoField : i === y.BoxPlotMultiFieldsAndSplitBy ? n = y.BoxPlotMultiFields : i === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (n = y.BoxPlotMonoFieldAndCategory));
621
+ const g = H(e), F = te(e), b = ae(e), x = _(e);
622
+ let d;
623
+ switch (n) {
624
+ case y.BoxPlotMonoField:
625
+ case y.BoxPlotMonoFieldAndCategory: {
626
+ d = t.map((s) => {
627
+ const c = {};
628
+ if (s[V.boxPlot.boxPlotOutlierId])
629
+ $({
630
+ rawData: s,
631
+ outRow: c,
632
+ config: e,
633
+ boxPlotSubType: n,
634
+ layer: o,
635
+ fieldList: r
636
+ });
564
637
  else {
565
- if (a === m.BoxPlotMonoFieldAndCategory) {
566
- const d = C({
567
- field: l,
638
+ if (n === y.BoxPlotMonoFieldAndCategory) {
639
+ const f = C({
640
+ field: g,
568
641
  row: s,
569
- fieldList: i,
570
- formatter: r?.xAxisLabelFormatter
642
+ layer: o,
643
+ fieldList: r,
644
+ formatter: a?.xAxisLabelFormatter
571
645
  });
572
- f[l] = d;
573
- } else a === m.BoxPlotMonoField && (f.Field = s[k]);
574
- T({ rawData: s, outRow: f });
646
+ c[g] = f;
647
+ } else n === y.BoxPlotMonoField && (c.Field = s[T]);
648
+ I({ rawData: s, outRow: c });
575
649
  }
576
- return f;
650
+ return c;
577
651
  });
578
652
  break;
579
653
  }
580
- case m.BoxPlotMultiFields: {
581
- y = t.flatMap((s) => {
582
- const f = {};
583
- return s[L.boxPlot.boxPlotOutlierId] ? M({
654
+ case y.BoxPlotMultiFields: {
655
+ d = t.flatMap((s) => {
656
+ const c = {};
657
+ return s[V.boxPlot.boxPlotOutlierId] ? $({
584
658
  rawData: s,
585
- outRow: f,
659
+ outRow: c,
586
660
  config: e,
587
- boxPlotSubType: a
588
- }) : (f.Field = s[k], T({ rawData: s, outRow: f })), [f];
661
+ boxPlotSubType: n,
662
+ layer: o,
663
+ fieldList: r
664
+ }) : (c.Field = s[T], I({ rawData: s, outRow: c })), [c];
589
665
  });
590
666
  break;
591
667
  }
592
- case m.BoxPlotMultiFieldsAndCategory: {
593
- y = t.flatMap(
594
- (s) => S.map((f) => {
595
- const d = {};
596
- let g = "";
597
- if (d.Field = f, s[L.boxPlot.boxPlotOutlierId])
598
- M({
668
+ case y.BoxPlotMultiFieldsAndCategory: {
669
+ d = t.flatMap(
670
+ (s) => F.map((c) => {
671
+ const f = {};
672
+ let p = "";
673
+ if (f.Field = c, s[V.boxPlot.boxPlotOutlierId])
674
+ $({
599
675
  rawData: s,
600
- outRow: d,
676
+ outRow: f,
601
677
  config: e,
602
- boxPlotSubType: a
678
+ boxPlotSubType: n,
679
+ layer: o,
680
+ fieldList: r
603
681
  });
604
682
  else {
605
- if (a === m.BoxPlotMultiFieldsAndCategory) {
606
- const b = C({
607
- field: l,
683
+ if (n === y.BoxPlotMultiFieldsAndCategory) {
684
+ const D = C({
685
+ field: g,
608
686
  row: s,
609
- fieldList: i,
610
- formatter: r?.xAxisLabelFormatter
687
+ layer: o,
688
+ fieldList: r,
689
+ formatter: a?.xAxisLabelFormatter
611
690
  });
612
- d[l] = b, g = `${f}_`;
691
+ f[g] = D, p = `${c}_`;
613
692
  }
614
- T({ rawData: s, outRow: d, keyBase: g });
693
+ I({ rawData: s, outRow: f, keyBase: p });
615
694
  }
616
- return d;
695
+ return f;
617
696
  })
618
697
  );
619
698
  break;
620
699
  }
621
- case m.BoxPlotMonoFieldAndSplitBy:
622
- case m.BoxPlotMultiFieldsAndSplitBy:
623
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
624
- y = t.flatMap((s) => {
625
- if (s[L.boxPlot.boxPlotOutlierId]) {
700
+ case y.BoxPlotMonoFieldAndSplitBy:
701
+ case y.BoxPlotMultiFieldsAndSplitBy:
702
+ case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
703
+ d = t.flatMap((s) => {
704
+ if (s[V.boxPlot.boxPlotOutlierId]) {
705
+ const c = {};
706
+ return $({
707
+ rawData: s,
708
+ outRow: c,
709
+ config: e,
710
+ boxPlotSubType: n,
711
+ layer: o,
712
+ fieldList: r
713
+ }), [c];
714
+ } else return s[V.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((c) => {
626
715
  const f = {};
627
- return M({
716
+ return Ie({
628
717
  rawData: s,
629
718
  outRow: f,
719
+ splitByValue: c,
630
720
  config: e,
631
- boxPlotSubType: a
632
- }), [f];
633
- } else return s[L.boxPlot.boxPlotMeanLineMarkerId] ? p?.map((f) => {
634
- const d = {};
635
- return we({
636
- rawData: s,
637
- outRow: d,
638
- splitByValue: f,
639
- config: e
640
- }), d;
641
- }) : p.map((f) => {
642
- const d = {};
643
- if (a === m.BoxPlotMonoFieldAndCategoryAndSplitBy) {
644
- const g = C({
645
- field: l,
721
+ layer: o,
722
+ fieldList: r
723
+ }), f;
724
+ }) : b.map((c) => {
725
+ const f = {}, p = A({
726
+ field: x,
727
+ value: c,
728
+ layer: o,
729
+ fieldList: r
730
+ });
731
+ if (n === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
732
+ const D = C({
733
+ field: g,
646
734
  row: s,
647
- fieldList: i,
648
- formatter: r?.xAxisLabelFormatter
735
+ layer: o,
736
+ fieldList: r,
737
+ formatter: a?.xAxisLabelFormatter
649
738
  });
650
- d[l] = g;
739
+ f[g] = D;
651
740
  }
652
- return s[L.boxPlot.boxPlotOutlierId] ? M({
741
+ return s[V.boxPlot.boxPlotOutlierId] ? $({
653
742
  rawData: s,
654
- outRow: d,
743
+ outRow: f,
655
744
  config: e,
656
- boxPlotSubType: a
657
- }) : (d[x] = f, T({ rawData: s, outRow: d, keyBase: `${f}_` })), d;
745
+ boxPlotSubType: n
746
+ }) : (f[x] = p, I({ rawData: s, outRow: f, keyBase: `${c}_` })), f;
658
747
  });
659
748
  });
660
749
  break;
661
750
  }
662
751
  default:
663
- y = t;
752
+ d = t;
664
753
  }
665
- return y;
754
+ return d;
666
755
  }
667
- const G = (n) => {
756
+ const J = (l) => {
668
757
  let e = !1;
669
- return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
670
- }, ie = (n) => {
671
- const { field: e, value: t, fieldList: i } = n;
758
+ return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
759
+ }, Ke = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), je = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), le = (l) => {
760
+ const { field: e, value: t, fieldList: o } = l;
672
761
  let r = t;
673
- const o = i?.find((a) => a.name === e);
674
- if (o) {
675
- const a = o.type === Se.DateOnly;
676
- ge(o) && !a ? r = G(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (r = G(t) ? new Date(t).toISOString().split("T")[0] : t);
762
+ const a = o?.find((i) => i.name === e);
763
+ if (a) {
764
+ const i = a.type === he.DateOnly;
765
+ xe(a) && !i ? r = J(t) ? je(new Date(t)) : t : i && typeof t != "string" && (r = J(t) ? Ke(new Date(t)) : t);
677
766
  }
678
767
  return r;
679
768
  };
680
- function tt(n) {
681
- const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: i, syncViewTimeExtent: r } = n;
682
- let o = e;
683
- return t && (i === Fe.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (o = {
769
+ function nt(l) {
770
+ const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: o, syncViewTimeExtent: r } = l;
771
+ let a = e;
772
+ return t && (o === ve.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (a = {
684
773
  ...e,
685
774
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
686
- }), o;
775
+ }), a;
687
776
  }
688
777
  export {
689
- De as a,
690
- Pe as b,
691
- he as c,
692
- tt as d,
693
- Je as e,
694
- ve as f,
695
- Z as g,
696
- Ge as h,
697
- et as t
778
+ Pe as a,
779
+ Ae as b,
780
+ Be as c,
781
+ nt as d,
782
+ rt as e,
783
+ Le as f,
784
+ X as g,
785
+ it as h,
786
+ lt as t
698
787
  };