@arcgis/charts-components 5.1.3 → 5.1.5

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 (106) hide show
  1. package/dist/cdn/{7HGJIAXH.js → 2EKXF2J4.js} +1 -1
  2. package/dist/cdn/{QU5AAXED.js → 2JBXK3DL.js} +1 -1
  3. package/dist/cdn/{AGUX5S6D.js → 2YTLUBN5.js} +1 -1
  4. package/dist/cdn/{GPBRXXVW.js → 33V25PIE.js} +1 -1
  5. package/dist/cdn/{KFY6SEZU.js → 3HTF4AID.js} +1 -1
  6. package/dist/cdn/{BKMDQJY6.js → 3K4U6YTH.js} +1 -1
  7. package/dist/cdn/{GMPDEHNU.js → 3LGVIOWA.js} +18 -18
  8. package/dist/cdn/{C3ELQOWG.js → 3SPQWIVR.js} +1 -1
  9. package/dist/cdn/{DMONWSPY.js → 3SRLE6PU.js} +1 -1
  10. package/dist/cdn/{3OI3AZ2X.js → 3V5BEFJV.js} +1 -1
  11. package/dist/cdn/{3G6DJQ4I.js → 4SZL2F4O.js} +1 -1
  12. package/dist/cdn/{CGFQNAHX.js → 4XLKQLZD.js} +1 -1
  13. package/dist/cdn/{3EFZRLIC.js → 53NUZXBS.js} +1 -1
  14. package/dist/cdn/{ZMCI6OFQ.js → 5GNAMZB3.js} +1 -1
  15. package/dist/cdn/{CXABUNU5.js → 5RUXH3HZ.js} +1 -1
  16. package/dist/cdn/{YFJD7WZK.js → 5WCFADMD.js} +1 -1
  17. package/dist/cdn/{HV2WZZ2R.js → 65KE3H45.js} +1 -1
  18. package/dist/cdn/{5D5W37TE.js → 6BL4274I.js} +1 -1
  19. package/dist/cdn/{YRCCTEPG.js → 6LGAYTPU.js} +1 -1
  20. package/dist/cdn/{6G5SQMIG.js → 6PYMZ3RX.js} +1 -1
  21. package/dist/cdn/{YWG3JNZV.js → 6TBK27OD.js} +1 -1
  22. package/dist/cdn/{L2WSLIMW.js → 7NXD333R.js} +1 -1
  23. package/dist/cdn/{COW63QH2.js → 7UAZJKKD.js} +1 -1
  24. package/dist/cdn/{NXC7YT6Y.js → B5EG7AFI.js} +1 -1
  25. package/dist/cdn/{GAO6N5DQ.js → BEBIXEOG.js} +1 -1
  26. package/dist/cdn/{KDNFHAVZ.js → C2MDZRI3.js} +1 -1
  27. package/dist/cdn/{XFDEOFVM.js → CK4RMZYV.js} +1 -1
  28. package/dist/cdn/{A5OI4GRG.js → CMJDB4ME.js} +1 -1
  29. package/dist/cdn/{6SYRXDBU.js → CVALNNSU.js} +1 -1
  30. package/dist/cdn/{GJAJ4U5M.js → CYYPQ2LR.js} +1 -1
  31. package/dist/cdn/{PAUMSI2Y.js → D2KB272M.js} +1 -1
  32. package/dist/cdn/{2Y22PMRJ.js → D7QKDEA6.js} +1 -1
  33. package/dist/cdn/{TSTVAPLA.js → EMB4D26F.js} +1 -1
  34. package/dist/cdn/{MWFT5XT2.js → EWRX4I6L.js} +1 -1
  35. package/dist/cdn/{X3FPNPJ3.js → FS4EYUQH.js} +1 -1
  36. package/dist/cdn/{HMYTEW5B.js → FVFK55AE.js} +1 -1
  37. package/dist/cdn/{YULNJRDC.js → GSZX746F.js} +1 -1
  38. package/dist/cdn/{6LWK26JA.js → GUSQHVGC.js} +1 -1
  39. package/dist/cdn/{2VORKMJP.js → H4AEITXU.js} +1 -1
  40. package/dist/cdn/{7MOCVCHZ.js → H6RZITOS.js} +1 -1
  41. package/dist/cdn/{O5OI7ZFM.js → H7KQKJNM.js} +1 -1
  42. package/dist/cdn/{PFFBGTMZ.js → HCAHC365.js} +1 -1
  43. package/dist/cdn/{37JRO33Y.js → HDVECTPH.js} +1 -1
  44. package/dist/cdn/{T5JVQAZD.js → IRRJUIFU.js} +1 -1
  45. package/dist/cdn/{INTVGG6M.js → IUIO4GSK.js} +1 -1
  46. package/dist/cdn/{AWFHVQ4C.js → JEYVT73B.js} +1 -1
  47. package/dist/cdn/{EEUWGAPS.js → JIQN7CXG.js} +1 -1
  48. package/dist/cdn/{WF5TH5FA.js → JW4PYIDC.js} +1 -1
  49. package/dist/cdn/{BHMPG4IV.js → K4TJLYWW.js} +1 -1
  50. package/dist/cdn/{7IYKY4HO.js → K5BCEEVY.js} +1 -1
  51. package/dist/cdn/{5PFSNEUO.js → KVTZK7IU.js} +1 -1
  52. package/dist/cdn/{QJ4OVDBD.js → KWK2QSHG.js} +1 -1
  53. package/dist/cdn/{QI6SNQEH.js → L7CYUUVR.js} +1 -1
  54. package/dist/cdn/{ZSDTIVLB.js → LED3NRVC.js} +1 -1
  55. package/dist/cdn/{62BJOWS5.js → LS45NXOD.js} +1 -1
  56. package/dist/cdn/{XSCGCWY2.js → LUB3SLVV.js} +1 -1
  57. package/dist/cdn/{GVR7ARJY.js → LXHJO6QR.js} +1 -1
  58. package/dist/cdn/{3WD3F7XJ.js → LZXSWTPV.js} +1 -1
  59. package/dist/cdn/{UHM22GXZ.js → M4SH4CLR.js} +1 -1
  60. package/dist/cdn/{CQR77GPW.js → MTNJEN5Q.js} +1 -1
  61. package/dist/cdn/{ENCDG6FM.js → N6EJWFKT.js} +1 -1
  62. package/dist/cdn/{FPUV2RAW.js → NMD65TFH.js} +1 -1
  63. package/dist/cdn/{PG6IHFMC.js → OAKOMF77.js} +1 -1
  64. package/dist/cdn/{D2EH6ONT.js → OBFWK6CR.js} +1 -1
  65. package/dist/cdn/{H34IOPWZ.js → OCOTAMHY.js} +1 -1
  66. package/dist/cdn/{VXSKPIG5.js → P6GCBRMR.js} +1 -1
  67. package/dist/cdn/{POFKF33T.js → PITA3B7R.js} +1 -1
  68. package/dist/cdn/{VVYGCHEV.js → PJBLSGYT.js} +1 -1
  69. package/dist/cdn/{SSPQBR27.js → PK4B6TCD.js} +1 -1
  70. package/dist/cdn/{MURHBYGC.js → Q4XR55XI.js} +1 -1
  71. package/dist/cdn/{4T7HXRHF.js → Q5SBNW4I.js} +1 -1
  72. package/dist/cdn/{PDD74AKL.js → QRP3UGUO.js} +1 -1
  73. package/dist/cdn/{HAEAPXPK.js → QY7SOZLC.js} +1 -1
  74. package/dist/cdn/{4J7NXFBO.js → RCQOEUT2.js} +1 -1
  75. package/dist/cdn/{YONHYC4U.js → REONEUPD.js} +1 -1
  76. package/dist/cdn/{HVFQPGMN.js → RJAI3YDQ.js} +1 -1
  77. package/dist/cdn/{AA7A24A4.js → S6J3P2WT.js} +1 -1
  78. package/dist/cdn/{IO53Q5WD.js → SDZLO6ZK.js} +1 -1
  79. package/dist/cdn/{T7POIQNM.js → SPLSYLRT.js} +1 -1
  80. package/dist/cdn/{6BXL3DWS.js → SRQRP6JA.js} +1 -1
  81. package/dist/cdn/{J2PKUF5F.js → SYX7IS6Q.js} +1 -1
  82. package/dist/cdn/{JWEXM2O6.js → SZYABWCY.js} +1 -1
  83. package/dist/cdn/TAGFFJNC.js +4 -0
  84. package/dist/cdn/{S7OB4ILP.js → TX7C3I2B.js} +1 -1
  85. package/dist/cdn/{D7MKFOZN.js → UHQ4MJUM.js} +1 -1
  86. package/dist/cdn/{FY3AFT4C.js → V53MYDGA.js} +1 -1
  87. package/dist/cdn/{55HY3O3G.js → WCE74RQX.js} +1 -1
  88. package/dist/cdn/{FDTTRHRP.js → WS6BQJCB.js} +1 -1
  89. package/dist/cdn/{FWEWN4I2.js → XCRGJ7YK.js} +1 -1
  90. package/dist/cdn/{UZW64U7F.js → XMGEYSND.js} +1 -1
  91. package/dist/cdn/{6PE747G2.js → YCUVGSG5.js} +1 -1
  92. package/dist/cdn/{2I5SK53X.js → YVIC3YRQ.js} +1 -1
  93. package/dist/cdn/{K54AVNQV.js → Z74BOGAU.js} +1 -1
  94. package/dist/cdn/{BU67W3KJ.js → ZGU363YV.js} +1 -1
  95. package/dist/cdn/{XA4DLCWT.js → ZOE3HTYC.js} +1 -1
  96. package/dist/cdn/{QVDBUYN3.js → ZZJ6YRF4.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/runtime.js +1 -1
  100. package/dist/chunks/web-component-utils.js +414 -384
  101. package/dist/components/arcgis-chart/customElement.js +1996 -1994
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
  106. package/dist/cdn/SWVQ5R5T.js +0 -4
@@ -1,22 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { isEqual as se, capitalize as v, isNumber as W, zip as te } from "lodash-es";
2
+ import { isEqual as ue, capitalize as v, isNumber as W, zip as ae } from "lodash-es";
3
3
  import { d as Y } from "./interfaces.js";
4
- import { g as ue, a as q, b as ae, c as _ } from "./box-plot-data.js";
5
- import { g as ce } from "./histogram-data.js";
6
- import { g as fe, a as de, b as me } from "./pie-chart-data.js";
7
- import { g as oe } from "./series-length.js";
8
- import { g as ie, d as re, e as ye } from "./serial-chart-data.js";
9
- import { g as z, a as ge } from "./data.js";
10
- import { Y as E, an as pe, af as be, aK as j, cj as xe, B as P, a6 as Fe, bb as De, d3 as Se } from "./index2.js";
11
- import { j as H, av as k, g as T, ap as ve, b as Be, a as Q } from "./index.js";
12
- import { q as I, C as y, F as L } from "./index3.js";
13
- import { g as he } from "./series-types.js";
14
- import { V as Pe } from "./index6.js";
15
- import { DateTime as le } from "luxon";
4
+ import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
5
+ import { g as fe } from "./histogram-data.js";
6
+ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
7
+ import { g as ie } from "./series-length.js";
8
+ import { g as re, d as le, e as ge } from "./serial-chart-data.js";
9
+ import { g as z, a as pe } from "./data.js";
10
+ import { Y as U, an as be, af as xe, aK as E, cj as Fe, B as V, a6 as De, bb as Se, d3 as ve } from "./index2.js";
11
+ import { j as H, av as $, g as R, ap as Be, b as he, a as Q } from "./index.js";
12
+ import { q as K, C as g, F as A } from "./index3.js";
13
+ import { g as Pe } from "./series-types.js";
14
+ import { V as Ve } from "./index6.js";
15
+ import { DateTime as ne } from "luxon";
16
16
  import { P as X } from "./common.js";
17
- import { u as w, d as C } from "./chart-object-literals.js";
18
- import { R as Ve } from "./rest-js-object-literals.js";
19
- function Ce(l) {
17
+ import { u as k, d as L } from "./chart-object-literals.js";
18
+ import { R as Ce } from "./rest-js-object-literals.js";
19
+ function Le(l) {
20
20
  const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
21
21
  hour: "numeric",
22
22
  minute: "2-digit",
@@ -29,7 +29,7 @@ function Ce(l) {
29
29
  }
30
30
  return r;
31
31
  }
32
- function Le(l) {
32
+ function Ae(l) {
33
33
  const { weekdayNumber: e, format: t, locale: a = "en-US", firstDayOfWeek: o = 7 } = l, i = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
34
  let r = e.toString();
35
35
  if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(o) && o > 0 && o <= 7) {
@@ -38,7 +38,7 @@ function Le(l) {
38
38
  }
39
39
  return r;
40
40
  }
41
- function Ae(l) {
41
+ function Oe(l) {
42
42
  const { monthNumber: e, format: t, locale: a = "en-US" } = l, o = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
43
  let i = e.toString();
44
44
  if (Number.isInteger(e) && e > 0 && e <= 12) {
@@ -47,64 +47,64 @@ function Ae(l) {
47
47
  }
48
48
  return i;
49
49
  }
50
- function Z(l) {
50
+ function G(l) {
51
51
  const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
52
52
  let r = { label: "", value: e.toString() };
53
53
  switch (a) {
54
- case C.DayOfWeek:
54
+ case L.DayOfWeek:
55
55
  r = {
56
56
  label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
57
- value: Le({
57
+ value: Ae({
58
58
  weekdayNumber: e,
59
- firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : ve,
59
+ firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : Be,
60
60
  locale: t
61
61
  })
62
62
  };
63
63
  break;
64
- case C.MonthOfYear:
64
+ case L.MonthOfYear:
65
65
  r = {
66
66
  label: i.heatChartCalendarDatePartsUnits.monthOfYear,
67
- value: Ae({
67
+ value: Oe({
68
68
  monthNumber: e,
69
69
  locale: t
70
70
  })
71
71
  };
72
72
  break;
73
- case C.HourOfDay:
73
+ case L.HourOfDay:
74
74
  r = {
75
75
  label: i.heatChartCalendarDatePartsUnits.hourOfDay,
76
- value: Ce({
76
+ value: Le({
77
77
  hour: e,
78
78
  format: { hour: "numeric", hour12: !1 },
79
79
  locale: t
80
80
  })
81
81
  };
82
82
  break;
83
- case C.DayOfMonth:
83
+ case L.DayOfMonth:
84
84
  r = {
85
85
  label: i.heatChartCalendarDatePartsUnits.dayOfMonth,
86
86
  value: typeof e == "string" ? e : e?.toString() ?? ""
87
87
  };
88
88
  break;
89
- case C.DayOfYear:
89
+ case L.DayOfYear:
90
90
  r = {
91
91
  label: i.heatChartCalendarDatePartsUnits.dayOfYear,
92
92
  value: typeof e == "string" ? e : e?.toString() ?? ""
93
93
  };
94
94
  break;
95
- case C.MinuteOfDay:
95
+ case L.MinuteOfDay:
96
96
  r = {
97
97
  label: i.heatChartCalendarDatePartsUnits.minuteOfDay,
98
98
  value: typeof e == "string" ? e : e?.toString() ?? ""
99
99
  };
100
100
  break;
101
- case C.WeekOfYear:
101
+ case L.WeekOfYear:
102
102
  r = {
103
103
  label: i.heatChartCalendarDatePartsUnits.weekOfYear,
104
104
  value: typeof e == "string" ? e : e?.toString() ?? ""
105
105
  };
106
106
  break;
107
- case C.QuarterOfYear:
107
+ case L.QuarterOfYear:
108
108
  r = {
109
109
  label: i.heatChartCalendarDatePartsUnits.quarterOfYear,
110
110
  value: typeof e == "string" ? e : e?.toString() ?? ""
@@ -113,25 +113,25 @@ function Z(l) {
113
113
  }
114
114
  return r;
115
115
  }
116
- function Oe(l, e) {
117
- return !se(l, e);
116
+ function Me(l, e) {
117
+ return !ue(l, e);
118
118
  }
119
- function st(l, e) {
120
- return Oe(l, e) || l !== e;
119
+ function ut(l, e) {
120
+ return Me(l, e) || l !== e;
121
121
  }
122
- function Me(l) {
122
+ function we(l) {
123
123
  return (new Intl.NumberFormat(l, {
124
124
  minimumFractionDigits: 1,
125
125
  maximumFractionDigits: 1
126
126
  }).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
127
127
  }
128
- function we(l) {
128
+ function ke(l) {
129
129
  return new Intl.NumberFormat(l, {
130
130
  minimumFractionDigits: 1,
131
131
  maximumFractionDigits: 1
132
132
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
133
133
  }
134
- const G = (l) => {
134
+ const J = (l) => {
135
135
  const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
136
136
  let i = e == null ? "" : String(e);
137
137
  if (e === null)
@@ -139,120 +139,125 @@ const G = (l) => {
139
139
  else if (e === void 0)
140
140
  i = "";
141
141
  else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
142
- const n = we(a), s = o ?? i.split(n)[1]?.length ?? 2;
142
+ const n = ke(a), s = o ?? i.split(n)[1]?.length ?? 2;
143
143
  i = new Intl.NumberFormat(a, {
144
144
  maximumFractionDigits: s
145
145
  }).format(e).replace(/\u202F/gu, " ");
146
146
  }
147
147
  return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
148
148
  };
149
- function ut(l, e = {}) {
149
+ function ct(l, e = {}) {
150
150
  const { columns: t, delimiter: a, includeHeader: o = !0, quoteAll: i = !1, locale: r, roundDecimals: n } = e, s = l.length === 0;
151
- let u = "";
151
+ let c = "";
152
152
  if (!s) {
153
- const c = t ?? Object.keys(l[0]), b = [], D = a ?? Me(r ?? "en");
154
- if (r !== void 0 && D !== "," && (u += `sep=${D}\r
153
+ const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
154
+ if (r !== void 0 && p !== "," && (c += `sep=${p}\r
155
155
  `), o) {
156
- const x = c.map((g) => G({ value: g, quoteAll: i, locale: r, roundDecimals: n }));
157
- b.push(x.join(D));
156
+ const B = f.map((b) => J({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
157
+ u.push(B.join(p));
158
158
  }
159
- l.forEach((x) => {
160
- const g = c.map((p) => G({ value: x[p], quoteAll: i, locale: r, roundDecimals: n }));
161
- b.push(g.join(D));
162
- }), u += b.join(`\r
159
+ l.forEach((B) => {
160
+ const b = f.map((x) => J({ value: B[x], quoteAll: i, locale: r, roundDecimals: n }));
161
+ u.push(b.join(p));
162
+ }), c += u.join(`\r
163
163
  `);
164
164
  }
165
- return u;
165
+ return c;
166
166
  }
167
- function ct(l) {
168
- const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, formatLocale: n, utilsStrings: s } = l;
169
- let u = [];
167
+ function ft(l) {
168
+ const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, timeZone: n, formatLocale: s, utilsStrings: c } = l;
169
+ let f = [];
170
170
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
171
- const c = he(t?.series);
172
- c === w.HistogramSeries ? u = Te(
171
+ const u = Pe(t?.series);
172
+ u === k.HistogramSeries ? f = Re(
173
173
  t,
174
174
  e,
175
175
  i
176
- ) : c === w.HeatSeries ? u = Ne({
176
+ ) : u === k.HeatSeries ? f = Te({
177
177
  config: t,
178
178
  rows: e,
179
179
  layer: a,
180
180
  fieldList: o,
181
- formatLocale: n,
182
- utilsStrings: s
183
- }) : c === w.BarSeries || c === w.LineSeries || c === w.ComboLineAndBarSeries ? u = Ie({
181
+ formatLocale: s,
182
+ utilsStrings: c
183
+ }) : u === k.BarSeries || u === k.LineSeries || u === k.ComboLineAndBarSeries ? f = Ke({
184
184
  config: t,
185
185
  rows: e,
186
186
  layer: a,
187
187
  fieldList: o,
188
188
  formatters: i,
189
- useRendererLabel: r
190
- }) : c === w.PieSeries ? u = je({
189
+ useRendererLabel: r,
190
+ timeZone: n
191
+ }) : u === k.PieSeries ? f = Ee({
191
192
  config: t,
192
193
  rows: e,
193
194
  layer: a,
194
195
  fieldList: o,
195
196
  formatters: i,
196
- useRendererLabel: r
197
- }) : c === w.BoxPlotSeries && (u = Ue({
197
+ useRendererLabel: r,
198
+ timeZone: n
199
+ }) : u === k.BoxPlotSeries && (f = Ze({
198
200
  config: t,
199
201
  rows: e,
200
202
  layer: a,
201
203
  fieldList: o,
202
204
  formatters: i,
203
- useRendererLabel: r
205
+ useRendererLabel: r,
206
+ timeZone: n
204
207
  }));
205
208
  }
206
- return u;
209
+ return f;
207
210
  }
208
211
  function h(l) {
209
212
  const { value: e, originalValue: t, formatter: a } = l;
210
213
  let o = e;
211
214
  return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
212
215
  }
213
- function O(l) {
214
- const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r } = l;
215
- let n;
216
+ function M(l) {
217
+ const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r, timeZone: n } = l;
218
+ let s;
216
219
  if (t == null || typeof t == "boolean" || Array.isArray(t))
217
- n = t;
220
+ s = t;
218
221
  else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
219
- const u = $e({
222
+ const f = Ne({
220
223
  fieldName: e,
221
224
  dataContext: a
222
- }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? Fe({
225
+ }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? De({
223
226
  queryObject: o,
224
227
  fieldName: e,
225
228
  fieldValue: t
226
229
  }) : void 0);
227
- n = ne({
230
+ s = se({
228
231
  field: e,
229
- value: u ?? t,
230
- fieldList: i
232
+ value: f ?? t,
233
+ fieldList: i,
234
+ timeZone: n
231
235
  });
232
236
  } else
233
- n = t;
237
+ s = t;
234
238
  return h({
235
- value: n,
239
+ value: s,
236
240
  originalValue: t,
237
241
  formatter: r
238
242
  });
239
243
  }
240
- function A(l) {
241
- const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1 } = l, n = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), s = t[n ?? e], u = xe({
242
- value: s,
244
+ function O(l) {
245
+ const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1, timeZone: n } = l, s = Object.keys(t).find((u) => u.toLocaleLowerCase() === e.toLocaleLowerCase()), c = t[s ?? e], f = Fe({
246
+ value: c,
243
247
  dataContext: t,
244
248
  useRendererLabel: r
245
249
  });
246
- return O({
250
+ return M({
247
251
  field: e,
248
- value: u,
252
+ value: f,
249
253
  dataContext: t,
250
254
  layer: a,
251
255
  fieldList: o,
252
- formatter: i
256
+ formatter: i,
257
+ timeZone: n
253
258
  });
254
259
  }
255
- function ke(l, e) {
260
+ function $e(l, e) {
256
261
  let t = !1;
257
262
  if (l === e)
258
263
  t = !0;
@@ -262,207 +267,214 @@ function ke(l, e) {
262
267
  }
263
268
  return t;
264
269
  }
265
- function $e(l) {
266
- const { fieldName: e, dataContext: t } = l, a = L.rendererSymbolField;
267
- return e === a && t !== void 0 ? Se(t) : void 0;
270
+ function Ne(l) {
271
+ const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
272
+ return e === a && t !== void 0 ? ve(t) : void 0;
268
273
  }
269
- function J(l) {
270
- const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r } = l;
271
- let n;
272
- const s = e.series[o ?? -1]?.name;
273
- return s !== void 0 ? n = s : n = O({
274
+ function ee(l) {
275
+ const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
276
+ let s;
277
+ const c = e.series[o ?? -1]?.name;
278
+ return c !== void 0 ? s = c : s = M({
274
279
  field: t,
275
280
  value: a,
276
281
  layer: i,
277
- fieldList: r
278
- }), n;
282
+ fieldList: r,
283
+ timeZone: n
284
+ }), s;
279
285
  }
280
- function Ne(l) {
281
- const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, u = ie(e), c = re(e), b = z({
286
+ function Te(l) {
287
+ const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u = z({
282
288
  config: e,
283
289
  xAxisField: s,
284
- numericFields: c,
285
- aggregationType: u,
290
+ numericFields: f,
291
+ aggregationType: c,
286
292
  layer: a,
287
293
  fieldList: o
288
294
  });
289
- return t.map((D) => {
290
- const x = D[H.xField], g = D[H.yField], p = D[H.valueField], f = typeof p == "number" && Number.isFinite(p) ? p.toFixed(2) : p;
291
- let d = { label: n.x, value: x }, m = { label: n.y, value: g };
295
+ return t.map((p) => {
296
+ const B = p[H.xField], b = p[H.yField], x = p[H.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
297
+ let m = { label: n.x, value: B }, d = { label: n.y, value: b };
292
298
  if (n.xTemporalBinning !== void 0) {
293
- const { label: S, value: B } = Z({
294
- value: Number(x),
299
+ const { label: F, value: S } = G({
300
+ value: Number(B),
295
301
  config: e,
296
302
  formatLocale: i,
297
303
  unit: n.xTemporalBinning.unit,
298
304
  utilsStrings: r
299
305
  });
300
- !I(S) && !I(B) && (d = { label: S, value: B });
306
+ !K(F) && !K(S) && (m = { label: F, value: S });
301
307
  }
302
308
  if (n.yTemporalBinning !== void 0) {
303
- const { label: S, value: B } = Z({
304
- value: Number(g),
309
+ const { label: F, value: S } = G({
310
+ value: Number(b),
305
311
  config: e,
306
312
  formatLocale: i,
307
313
  unit: n.yTemporalBinning.unit,
308
314
  utilsStrings: r
309
315
  });
310
- !I(S) && !I(B) && (m = { label: S, value: B });
316
+ !K(F) && !K(S) && (d = { label: F, value: S });
311
317
  }
312
318
  return {
313
- [d.label]: d.value,
314
319
  [m.label]: m.value,
315
- [b.description]: f
320
+ [d.label]: d.value,
321
+ [u.description]: D
316
322
  };
317
323
  });
318
324
  }
319
- function Te(l, e, t) {
320
- const a = ce(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
325
+ function Re(l, e, t) {
326
+ const a = fe(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
321
327
  return e.map((n) => {
322
- const { minValue: s, maxValue: u, count: c } = n, b = W(s), D = W(u), x = W(c), g = {};
323
- if (b && (g[o] = h({
328
+ const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c), B = W(f), b = {};
329
+ if (u && (b[o] = h({
324
330
  value: s,
325
331
  originalValue: s,
326
332
  formatter: t?.xAxisLabelFormatter
327
- })), D && (g[i] = h({
328
- value: u,
329
- originalValue: u,
333
+ })), p && (b[i] = h({
334
+ value: c,
335
+ originalValue: c,
330
336
  formatter: t?.xAxisLabelFormatter
331
- })), b && D) {
332
- const p = h({
337
+ })), u && p) {
338
+ const x = h({
333
339
  value: s,
334
340
  originalValue: s,
335
341
  formatter: t?.xAxisLabelFormatter
336
- }), f = h({
337
- value: u,
338
- originalValue: u,
342
+ }), D = h({
343
+ value: c,
344
+ originalValue: c,
339
345
  formatter: t?.xAxisLabelFormatter
340
346
  });
341
- g.Label = `${String(p ?? "")} - ${String(f ?? "")}`;
347
+ b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
342
348
  }
343
- return x && (g[r] = c), g;
349
+ return B && (b[r] = f), b;
344
350
  });
345
351
  }
346
- function Re(l, e, t) {
352
+ function Ie(l, e, t) {
347
353
  const a = Object.keys(l);
348
354
  let o = [];
349
355
  return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
350
356
  }
351
- function Ie(l) {
352
- const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = ge(e), s = ie(e), u = v(s), c = re(e), b = E(e.series), D = oe(e), x = ye(e), { idField: g, isTraditionalTypeOID: p } = pe(be(a)), f = p && c.length === 1 && c[0] === g;
357
+ function Ke(l) {
358
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = v(c), u = le(e), p = U(e.series), B = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
353
359
  let d;
354
- switch (b) {
355
- case y.BarAndLineNoAggregation:
356
- d = t.map((m) => {
357
- const F = A({
358
- field: n,
359
- row: m,
360
+ switch (p) {
361
+ case g.BarAndLineNoAggregation:
362
+ d = t.map((y) => {
363
+ const F = O({
364
+ field: s,
365
+ row: y,
360
366
  layer: a,
361
367
  fieldList: o,
362
368
  formatter: i?.xAxisLabelFormatter,
363
- useRendererLabel: r
364
- }), S = { [n]: F };
369
+ useRendererLabel: r,
370
+ timeZone: n
371
+ }), S = { [s]: F };
365
372
  return Object.assign(
366
373
  S,
367
- ...c.map((B) => ({
368
- [B]: h({
369
- value: m[B],
370
- originalValue: m[B]
374
+ ...u.map((P) => ({
375
+ [P]: h({
376
+ value: y[P],
377
+ originalValue: y[P]
371
378
  })
372
379
  }))
373
380
  ), S;
374
381
  });
375
382
  break;
376
- case y.BarAndLineFromFields:
377
- d = te(c, t).map(([m, F]) => {
378
- const S = j(e.series)[0], B = {};
379
- return F !== void 0 && m !== void 0 && (B.Field = h({
380
- value: F[n],
381
- originalValue: F[n],
383
+ case g.BarAndLineFromFields:
384
+ d = ae(u, t).map(([y, F]) => {
385
+ const S = E(e.series)[0], P = {};
386
+ return F !== void 0 && y !== void 0 && (P.Field = h({
387
+ value: F[s],
388
+ originalValue: F[s],
382
389
  formatter: i?.xAxisLabelFormatter
383
- }), B.Value = h({
390
+ }), P.Value = h({
384
391
  value: F[S],
385
392
  originalValue: F[S]
386
- })), B;
393
+ })), P;
387
394
  });
388
395
  break;
389
- case y.BarAndLineMonoField:
390
- case y.BarAndLineMultiFields:
391
- d = t.map((m) => {
392
- const F = A({
393
- field: n,
394
- row: m,
396
+ case g.BarAndLineMonoField:
397
+ case g.BarAndLineMultiFields:
398
+ d = t.map((y) => {
399
+ const F = O({
400
+ field: s,
401
+ row: y,
395
402
  layer: a,
396
403
  fieldList: o,
397
404
  formatter: i?.xAxisLabelFormatter,
398
- useRendererLabel: r
399
- }), S = { [n]: F };
400
- return c.forEach((B, V) => {
401
- const M = z({
405
+ useRendererLabel: r,
406
+ timeZone: n
407
+ }), S = { [s]: F };
408
+ return u.forEach((P, C) => {
409
+ const w = z({
402
410
  config: e,
403
- xAxisField: n,
404
- numericFields: c,
405
- aggregationType: s,
411
+ xAxisField: s,
412
+ numericFields: u,
413
+ aggregationType: c,
406
414
  layer: a,
407
- numericFieldIndex: V,
415
+ numericFieldIndex: C,
408
416
  fieldList: o
409
- }), $ = j(e.series)[V];
410
- let R = $, U = $;
411
- $.toLowerCase() === M.name.toLowerCase() && (R = M.description, U = M.name), S[R] = h({
412
- value: m[U],
413
- originalValue: m[U]
417
+ }), N = E(e.series)[C];
418
+ let I = N, Z = N;
419
+ N.toLowerCase() === w.name.toLowerCase() && (I = w.description, Z = w.name), S[I] = h({
420
+ value: y[Z],
421
+ originalValue: y[Z]
414
422
  });
415
423
  }), S;
416
424
  });
417
425
  break;
418
- case y.BarAndLineSplitBy:
419
- d = t.flatMap((m) => {
420
- const F = j(e.series), S = A({
421
- field: n,
422
- row: m,
426
+ case g.BarAndLineSplitBy:
427
+ d = t.flatMap((y) => {
428
+ const F = E(e.series), S = O({
429
+ field: s,
430
+ row: y,
423
431
  layer: a,
424
432
  fieldList: o,
425
433
  formatter: i?.xAxisLabelFormatter,
426
- useRendererLabel: r
434
+ useRendererLabel: r,
435
+ timeZone: n
427
436
  });
428
- return D.map((B, V) => {
429
- const M = J({
437
+ return B.map((P, C) => {
438
+ const w = ee({
430
439
  config: e,
431
- splitByField: x,
432
- splitByValue: B,
433
- splitByValueIndex: V,
440
+ splitByField: b,
441
+ splitByValue: P,
442
+ splitByValueIndex: C,
434
443
  layer: a,
435
- fieldList: o
444
+ fieldList: o,
445
+ timeZone: n
436
446
  });
437
447
  return {
438
- [n]: S,
439
- [x]: M,
440
- [f ? u : `${u} of ${c[0]}`]: m[F[V]]
448
+ [s]: S,
449
+ [b]: w,
450
+ [m ? f : `${f} of ${u[0]}`]: y[F[C]]
441
451
  };
442
452
  });
443
453
  });
444
454
  break;
445
- case y.BarAndLineSplitByNoAggregation:
446
- d = t.map((m) => {
447
- const F = A({
448
- field: n,
449
- row: m,
455
+ case g.BarAndLineSplitByNoAggregation:
456
+ d = t.map((y) => {
457
+ const F = O({
458
+ field: s,
459
+ row: y,
450
460
  layer: a,
451
461
  fieldList: o,
452
462
  formatter: i?.xAxisLabelFormatter,
453
- useRendererLabel: r
454
- }), S = Re(m, c[0], D), B = m[x], V = D.findIndex((R) => ke(R, B)), M = J({
463
+ useRendererLabel: r,
464
+ timeZone: n
465
+ }), S = Ie(y, u[0], B), P = y[b], C = B.findIndex((I) => $e(I, P)), w = ee({
455
466
  config: e,
456
- splitByField: x,
457
- splitByValue: B,
458
- splitByValueIndex: V >= 0 ? V : void 0,
467
+ splitByField: b,
468
+ splitByValue: P,
469
+ splitByValueIndex: C >= 0 ? C : void 0,
459
470
  layer: a,
460
- fieldList: o
471
+ fieldList: o,
472
+ timeZone: n
461
473
  });
462
474
  return {
463
- [n]: F,
464
- [x]: M,
465
- [c[0]]: m[S[0]]
475
+ [s]: F,
476
+ [b]: w,
477
+ [u[0]]: y[S[0]]
466
478
  };
467
479
  });
468
480
  break;
@@ -471,7 +483,7 @@ function Ie(l) {
471
483
  }
472
484
  return d;
473
485
  }
474
- function Ke(l) {
486
+ function je(l) {
475
487
  if (l.length === 0)
476
488
  return [];
477
489
  const e = l.reduce((t, a) => {
@@ -484,325 +496,343 @@ function Ke(l) {
484
496
  for (const [o, i] of Object.entries(t))
485
497
  if (typeof i == "number" && e[o] > 0) {
486
498
  const r = i / e[o];
487
- a[`${o}${k}`] = r.toPrecision(2);
499
+ a[`${o}${$}`] = r.toPrecision(2);
488
500
  }
489
501
  return a;
490
502
  });
491
503
  }
492
- function je(l) {
493
- const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = fe(e), s = E(e.series);
494
- let u = Ke(t);
495
- const c = de(e), b = s !== y.PieFromFields ? X.Category : X.Fields, D = me(e, b), x = z({
504
+ function Ee(l) {
505
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
506
+ let f = je(t);
507
+ const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, B = ye(e, p), b = z({
496
508
  config: e,
497
- xAxisField: n,
498
- numericFields: c,
499
- aggregationType: D,
500
- mode: b,
509
+ xAxisField: s,
510
+ numericFields: u,
511
+ aggregationType: B,
512
+ mode: p,
501
513
  layer: a,
502
514
  fieldList: o
503
- }), g = j(e.series)[0];
504
- return s === y.PieFromCategory || s === y.PieNoAggregation ? u = u.map((p) => {
505
- const f = A({
506
- field: n,
507
- row: p,
515
+ }), x = E(e.series)[0];
516
+ return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((D) => {
517
+ const m = O({
518
+ field: s,
519
+ row: D,
508
520
  layer: a,
509
521
  fieldList: o,
510
522
  formatter: i?.xAxisLabelFormatter,
511
- useRendererLabel: r
512
- }), d = { [n]: f };
513
- let m = g, F = g;
514
- return s === y.PieFromCategory && g.toLowerCase() === x.name.toLowerCase() && (m = x.description, F = x.name), d[m] = h({
515
- value: p[F],
516
- originalValue: p[F]
517
- }), d[v(k.trim())] = h({
518
- value: p[`${F}${k}`],
519
- originalValue: p[`${F}${k}`]
523
+ useRendererLabel: r,
524
+ timeZone: n
525
+ }), d = { [s]: m };
526
+ let y = x, F = x;
527
+ return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
528
+ value: D[F],
529
+ originalValue: D[F]
530
+ }), d[v($.trim())] = h({
531
+ value: D[`${F}${$}`],
532
+ originalValue: D[`${F}${$}`]
520
533
  }), d;
521
- }) : s === y.PieFromFields && (u = te(c, u).map(([p, f]) => {
534
+ }) : c === g.PieFromFields && (f = ae(u, f).map(([D, m]) => {
522
535
  const d = {};
523
- return f !== void 0 && p !== void 0 && (d.Field = h({
524
- value: f[n],
525
- originalValue: f[n],
536
+ return m !== void 0 && D !== void 0 && (d.Field = h({
537
+ value: m[s],
538
+ originalValue: m[s],
526
539
  formatter: i?.xAxisLabelFormatter
527
540
  }), d.Value = h({
528
- value: f[g],
529
- originalValue: f[g]
530
- }), d[v(k.trim())] = h({
531
- value: f[`${g}${k}`],
532
- originalValue: f[`${g}${k}`]
541
+ value: m[x],
542
+ originalValue: m[x]
543
+ }), d[v($.trim())] = h({
544
+ value: m[`${x}${$}`],
545
+ originalValue: m[`${x}${$}`]
533
546
  })), d;
534
- })), u;
547
+ })), f;
535
548
  }
536
- function K(l) {
549
+ function j(l) {
537
550
  const { rawData: e, keyBase: t = "", outRow: a } = l;
538
- for (const [o, i] of Object.entries(P)) {
551
+ for (const [o, i] of Object.entries(V)) {
539
552
  const r = e[t + i];
540
553
  r !== void 0 && (a[o] = r);
541
- const n = e[t + i + Be];
554
+ const n = e[t + i + he];
542
555
  n !== void 0 && (a[`${o} Outlier`] = n);
543
556
  const s = e[t + i + Q];
544
557
  s !== void 0 && (a[`${o} Z-Score`] = s);
545
558
  }
546
559
  }
547
- function N(l) {
548
- const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r } = l, n = q(a), s = ae(a), u = _(a);
549
- let c = P.Outlier;
550
- const b = T;
560
+ function T(l) {
561
+ const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = q(a), c = oe(a), f = _(a);
562
+ let u = V.Outlier;
563
+ const p = R;
551
564
  switch (o) {
552
- case y.BoxPlotMonoFieldAndCategory: {
553
- const g = ne({
554
- field: n,
555
- value: e[n],
556
- fieldList: r
565
+ case g.BoxPlotMonoFieldAndCategory: {
566
+ const x = se({
567
+ field: s,
568
+ value: e[s],
569
+ fieldList: r,
570
+ timeZone: n
557
571
  });
558
- t[n] = g, t[v(P.Outlier)] = e[c];
572
+ t[s] = x, t[v(V.Outlier)] = e[u];
559
573
  break;
560
574
  }
561
- case y.BoxPlotMultiFieldsAndCategory: {
562
- t[v(n)] = e[n], c = `${s.find(
563
- (p) => Object.keys(e).some((f) => f.toLowerCase().includes(p.toLowerCase()))
564
- ) ?? ""}_${c}`, t[v(P.Outlier)] = e[c];
575
+ case g.BoxPlotMultiFieldsAndCategory: {
576
+ t[v(s)] = e[s], u = `${c.find(
577
+ (D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
578
+ ) ?? ""}_${u}`, t[v(V.Outlier)] = e[u];
565
579
  break;
566
580
  }
567
- case y.BoxPlotMonoFieldAndSplitBy:
568
- case y.BoxPlotMultiFieldsAndSplitBy: {
569
- const g = String(e[u]), p = O({
570
- field: u,
571
- value: g,
581
+ case g.BoxPlotMonoFieldAndSplitBy:
582
+ case g.BoxPlotMultiFieldsAndSplitBy: {
583
+ const x = String(e[f]), D = M({
584
+ field: f,
585
+ value: x,
572
586
  layer: i,
573
- fieldList: r
587
+ fieldList: r,
588
+ timeZone: n
574
589
  });
575
- c = `${g}_${c}`, t.Field = e[b], t[v(u)] = p, t[v(P.Outlier)] = e[c];
590
+ u = `${x}_${u}`, t.Field = e[p], t[v(f)] = D, t[v(V.Outlier)] = e[u];
576
591
  break;
577
592
  }
578
- case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
579
- const g = String(e[u]), p = O({
580
- field: u,
581
- value: g,
593
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
594
+ const x = String(e[f]), D = M({
595
+ field: f,
596
+ value: x,
582
597
  layer: i,
583
- fieldList: r
598
+ fieldList: r,
599
+ timeZone: n
584
600
  });
585
- c = `${g}_${c}`, t[v(n)] = e[n], t[v(u)] = p, t[v(P.Outlier)] = e[c];
601
+ u = `${x}_${u}`, t[v(s)] = e[s], t[v(f)] = D, t[v(V.Outlier)] = e[u];
586
602
  break;
587
603
  }
588
- case y.BoxPlotMonoField:
589
- case y.BoxPlotMultiFields:
604
+ case g.BoxPlotMonoField:
605
+ case g.BoxPlotMultiFields:
590
606
  default: {
591
- t.Field = e[b], t[v(P.Outlier)] = e[c];
607
+ t.Field = e[p], t[v(V.Outlier)] = e[u];
592
608
  break;
593
609
  }
594
610
  }
595
- const D = `${c}${Q}`, x = e[D];
596
- x !== void 0 && (t[`${v(P.Outlier)} Z-Score`] = x);
611
+ const B = `${u}${Q}`, b = e[B];
612
+ b !== void 0 && (t[`${v(V.Outlier)} Z-Score`] = b);
597
613
  }
598
- function Ee(l) {
599
- const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r } = l, n = E(a.series), s = e[`${o}_${P.Average}`], u = _(a), c = q(a);
600
- let b = "";
601
- switch (n) {
602
- case y.BoxPlotMonoFieldAndSplitBy: {
603
- b = `${o}_${u}`, t.Field = e[T], t[v(u)] = O({
604
- field: u,
605
- value: e[b],
614
+ function Ue(l) {
615
+ const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = _(a), u = q(a);
616
+ let p = "";
617
+ switch (s) {
618
+ case g.BoxPlotMonoFieldAndSplitBy: {
619
+ p = `${o}_${f}`, t.Field = e[R], t[v(f)] = M({
620
+ field: f,
621
+ value: e[p],
606
622
  layer: i,
607
- fieldList: r
623
+ fieldList: r,
624
+ timeZone: n
608
625
  });
609
626
  break;
610
627
  }
611
- case y.BoxPlotMultiFieldsAndSplitBy: {
612
- b = `${o}_${P.Average}`, t.Field = e[T], t[v(u)] = O({
613
- field: u,
614
- value: e[b],
628
+ case g.BoxPlotMultiFieldsAndSplitBy: {
629
+ p = `${o}_${V.Average}`, t.Field = e[R], t[v(f)] = M({
630
+ field: f,
631
+ value: e[p],
615
632
  layer: i,
616
- fieldList: r
633
+ fieldList: r,
634
+ timeZone: n
617
635
  });
618
636
  break;
619
637
  }
620
- case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
621
- b = `${o}_${P.Average}`, t[c] = e[c], t[v(u)] = O({
622
- field: u,
638
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
639
+ p = `${o}_${V.Average}`, t[u] = e[u], t[v(f)] = M({
640
+ field: f,
623
641
  value: o,
624
642
  layer: i,
625
- fieldList: r
643
+ fieldList: r,
644
+ timeZone: n
626
645
  });
627
646
  break;
628
647
  }
629
648
  }
630
- t[v(P.Average)] = s;
631
- const D = `${String(s)}${Q}`, x = e[D];
632
- x !== void 0 && (t[`${v(P.Average)} Z-Score`] = x);
649
+ t[v(V.Average)] = c;
650
+ const B = `${String(c)}${Q}`, b = e[B];
651
+ b !== void 0 && (t[`${v(V.Average)} Z-Score`] = b);
633
652
  }
634
- function Ue(l) {
635
- const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = E(e.series);
636
- let s = n;
637
- const u = ue(e), c = Array.isArray(t) && t.length > 0 && t.every((f) => f[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
638
- u && !c && (n === y.BoxPlotMonoFieldAndSplitBy ? s = y.BoxPlotMonoField : n === y.BoxPlotMultiFieldsAndSplitBy ? s = y.BoxPlotMultiFields : n === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (s = y.BoxPlotMonoFieldAndCategory));
639
- const b = q(e), D = ae(e), x = oe(e), g = _(e);
640
- let p;
641
- switch (s) {
642
- case y.BoxPlotMonoField:
643
- case y.BoxPlotMonoFieldAndCategory: {
644
- p = t.map((f) => {
653
+ function Ze(l) {
654
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
655
+ let c = s;
656
+ const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
657
+ f && !u && (s === g.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
658
+ const p = q(e), B = oe(e), b = ie(e), x = _(e);
659
+ let D;
660
+ switch (c) {
661
+ case g.BoxPlotMonoField:
662
+ case g.BoxPlotMonoFieldAndCategory: {
663
+ D = t.map((m) => {
645
664
  const d = {};
646
- if (f[L.boxPlot.boxPlotOutlierId])
647
- N({
648
- rawData: f,
665
+ if (m[A.boxPlot.boxPlotOutlierId])
666
+ T({
667
+ rawData: m,
649
668
  outRow: d,
650
669
  config: e,
651
- boxPlotSubType: s,
670
+ boxPlotSubType: c,
652
671
  layer: a,
653
- fieldList: o
672
+ fieldList: o,
673
+ timeZone: n
654
674
  });
655
675
  else {
656
- if (s === y.BoxPlotMonoFieldAndCategory) {
657
- const m = A({
658
- field: b,
659
- row: f,
676
+ if (c === g.BoxPlotMonoFieldAndCategory) {
677
+ const y = O({
678
+ field: p,
679
+ row: m,
660
680
  layer: a,
661
681
  fieldList: o,
662
682
  formatter: i?.xAxisLabelFormatter,
663
- useRendererLabel: r
683
+ useRendererLabel: r,
684
+ timeZone: n
664
685
  });
665
- d[b] = m;
666
- } else s === y.BoxPlotMonoField && (d.Field = f[T]);
667
- K({ rawData: f, outRow: d });
686
+ d[p] = y;
687
+ } else c === g.BoxPlotMonoField && (d.Field = m[R]);
688
+ j({ rawData: m, outRow: d });
668
689
  }
669
690
  return d;
670
691
  });
671
692
  break;
672
693
  }
673
- case y.BoxPlotMultiFields: {
674
- p = t.flatMap((f) => {
694
+ case g.BoxPlotMultiFields: {
695
+ D = t.flatMap((m) => {
675
696
  const d = {};
676
- return f[L.boxPlot.boxPlotOutlierId] ? N({
677
- rawData: f,
697
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
698
+ rawData: m,
678
699
  outRow: d,
679
700
  config: e,
680
- boxPlotSubType: s,
701
+ boxPlotSubType: c,
681
702
  layer: a,
682
- fieldList: o
683
- }) : (d.Field = f[T], K({ rawData: f, outRow: d })), [d];
703
+ fieldList: o,
704
+ timeZone: n
705
+ }) : (d.Field = m[R], j({ rawData: m, outRow: d })), [d];
684
706
  });
685
707
  break;
686
708
  }
687
- case y.BoxPlotMultiFieldsAndCategory: {
688
- p = t.flatMap(
689
- (f) => D.map((d) => {
690
- const m = {};
709
+ case g.BoxPlotMultiFieldsAndCategory: {
710
+ D = t.flatMap(
711
+ (m) => B.map((d) => {
712
+ const y = {};
691
713
  let F = "";
692
- if (m.Field = d, f[L.boxPlot.boxPlotOutlierId])
693
- N({
694
- rawData: f,
695
- outRow: m,
714
+ if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
715
+ T({
716
+ rawData: m,
717
+ outRow: y,
696
718
  config: e,
697
- boxPlotSubType: s,
719
+ boxPlotSubType: c,
698
720
  layer: a,
699
- fieldList: o
721
+ fieldList: o,
722
+ timeZone: n
700
723
  });
701
724
  else {
702
- if (s === y.BoxPlotMultiFieldsAndCategory) {
703
- const S = A({
704
- field: b,
705
- row: f,
725
+ if (c === g.BoxPlotMultiFieldsAndCategory) {
726
+ const S = O({
727
+ field: p,
728
+ row: m,
706
729
  layer: a,
707
730
  fieldList: o,
708
731
  formatter: i?.xAxisLabelFormatter,
709
- useRendererLabel: r
732
+ useRendererLabel: r,
733
+ timeZone: n
710
734
  });
711
- m[b] = S, F = `${d}_`;
735
+ y[p] = S, F = `${d}_`;
712
736
  }
713
- K({ rawData: f, outRow: m, keyBase: F });
737
+ j({ rawData: m, outRow: y, keyBase: F });
714
738
  }
715
- return m;
739
+ return y;
716
740
  })
717
741
  );
718
742
  break;
719
743
  }
720
- case y.BoxPlotMonoFieldAndSplitBy:
721
- case y.BoxPlotMultiFieldsAndSplitBy:
722
- case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
723
- p = t.flatMap((f) => {
724
- if (f[L.boxPlot.boxPlotOutlierId]) {
744
+ case g.BoxPlotMonoFieldAndSplitBy:
745
+ case g.BoxPlotMultiFieldsAndSplitBy:
746
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
747
+ D = t.flatMap((m) => {
748
+ if (m[A.boxPlot.boxPlotOutlierId]) {
725
749
  const d = {};
726
- return N({
727
- rawData: f,
750
+ return T({
751
+ rawData: m,
728
752
  outRow: d,
729
753
  config: e,
730
- boxPlotSubType: s,
754
+ boxPlotSubType: c,
731
755
  layer: a,
732
- fieldList: o
756
+ fieldList: o,
757
+ timeZone: n
733
758
  }), [d];
734
- } else return f[L.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
735
- const m = {};
736
- return Ee({
737
- rawData: f,
738
- outRow: m,
759
+ } else return m[A.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((d) => {
760
+ const y = {};
761
+ return Ue({
762
+ rawData: m,
763
+ outRow: y,
739
764
  splitByValue: d,
740
765
  config: e,
741
766
  layer: a,
742
- fieldList: o
743
- }), m;
744
- }) : x.map((d) => {
745
- const m = {}, F = O({
746
- field: g,
767
+ fieldList: o,
768
+ timeZone: n
769
+ }), y;
770
+ }) : b.map((d) => {
771
+ const y = {}, F = M({
772
+ field: x,
747
773
  value: d,
748
774
  layer: a,
749
775
  fieldList: o
750
776
  });
751
- if (s === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
752
- const S = A({
753
- field: b,
754
- row: f,
777
+ if (c === g.BoxPlotMonoFieldAndCategoryAndSplitBy) {
778
+ const S = O({
779
+ field: p,
780
+ row: m,
755
781
  layer: a,
756
782
  fieldList: o,
757
783
  formatter: i?.xAxisLabelFormatter,
758
- useRendererLabel: r
784
+ useRendererLabel: r,
785
+ timeZone: n
759
786
  });
760
- m[b] = S;
787
+ y[p] = S;
761
788
  }
762
- return f[L.boxPlot.boxPlotOutlierId] ? N({
763
- rawData: f,
764
- outRow: m,
789
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
790
+ rawData: m,
791
+ outRow: y,
765
792
  config: e,
766
- boxPlotSubType: s
767
- }) : (m[g] = F, K({ rawData: f, outRow: m, keyBase: `${d}_` })), m;
793
+ boxPlotSubType: c,
794
+ layer: a,
795
+ fieldList: o,
796
+ timeZone: n
797
+ }) : (y[x] = F, j({ rawData: m, outRow: y, keyBase: `${d}_` })), y;
768
798
  });
769
799
  });
770
800
  break;
771
801
  }
772
802
  default:
773
- p = t;
803
+ D = t;
774
804
  }
775
- return p;
805
+ return D;
776
806
  }
777
- const ee = (l) => {
807
+ const te = (l) => {
778
808
  let e = !1;
779
809
  return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
780
- }, We = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), Ye = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), ne = (l) => {
781
- const { field: e, value: t, fieldList: a } = l;
782
- let o = t;
783
- const i = a?.find((r) => r.name === e);
784
- if (i) {
785
- const r = i.type === Ve.DateOnly;
786
- De(i) && !r ? o = ee(t) ? Ye(new Date(t)) : t : r && typeof t != "string" && (o = ee(t) ? We(new Date(t)) : t);
810
+ }, We = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd"), Ye = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), se = (l) => {
811
+ const { field: e, value: t, fieldList: a, timeZone: o } = l;
812
+ let i = t;
813
+ const r = a?.find((n) => n.name === e);
814
+ if (r) {
815
+ const n = r.type === Ce.DateOnly;
816
+ Se(r) && !n ? i = te(t) ? Ye(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? We(new Date(t), o) : t);
787
817
  }
788
- return o;
818
+ return i;
789
819
  };
790
- function ft(l) {
820
+ function mt(l) {
791
821
  const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
792
822
  let i = e;
793
- return t && (a === Pe.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
823
+ return t && (a === Ve.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
794
824
  ...e,
795
825
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
796
826
  }), i;
797
827
  }
798
828
  export {
799
- Ce as a,
800
- Ae as b,
801
- Le as c,
802
- ft as d,
803
- ut as e,
804
- Oe as f,
805
- Z as g,
806
- st as h,
807
- ct as t
829
+ Le as a,
830
+ Oe as b,
831
+ Ae as c,
832
+ mt as d,
833
+ ct as e,
834
+ Me as f,
835
+ G as g,
836
+ ut as h,
837
+ ft as t
808
838
  };