@arcgis/charts-components 5.2.0-next.66 → 5.2.0-next.67

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/{SZX7IBPD.js → 3NDQG26H.js} +1 -1
  2. package/dist/cdn/3SXAM2RQ.js +2 -0
  3. package/dist/cdn/{FAAWFOLV.js → 3VCCFFA5.js} +1 -1
  4. package/dist/cdn/{VSJK5RTD.js → 423BMEZZ.js} +1 -1
  5. package/dist/cdn/{XGNDVHWJ.js → 4AG2K75I.js} +1 -1
  6. package/dist/cdn/{ES2EMZAG.js → 4STXGWZC.js} +1 -1
  7. package/dist/cdn/{MQL76WZU.js → 5EITERNU.js} +1 -1
  8. package/dist/cdn/{UBRIQVHZ.js → 5F57WKC5.js} +1 -1
  9. package/dist/cdn/{BPK3PD5M.js → 5YLWW4AL.js} +1 -1
  10. package/dist/cdn/{IIDIJAAE.js → 6CYWDDEH.js} +1 -1
  11. package/dist/cdn/{SYK7CNXD.js → 7QDRO7G4.js} +1 -1
  12. package/dist/cdn/{RC3EE625.js → A6WH2SX7.js} +1 -1
  13. package/dist/cdn/{AYQ4HHL6.js → ASYRUV4T.js} +1 -1
  14. package/dist/cdn/{GQCETYSQ.js → BCWC6W6C.js} +1 -1
  15. package/dist/cdn/{AVDYAU62.js → BDVUD66T.js} +1 -1
  16. package/dist/cdn/{Q4QBDDTZ.js → BJIZMJPY.js} +1 -1
  17. package/dist/cdn/{LEHLFA4M.js → BMXVB7A7.js} +1 -1
  18. package/dist/cdn/{JP22TFCC.js → BOVXYSZZ.js} +22 -22
  19. package/dist/cdn/{JG7NKECK.js → BXYB6KDL.js} +1 -1
  20. package/dist/cdn/{VQ2EMCYL.js → CE737BXZ.js} +1 -1
  21. package/dist/cdn/{TVORVJGE.js → CRNIOME2.js} +1 -1
  22. package/dist/cdn/{JR7H3QP3.js → CYGRQATX.js} +1 -1
  23. package/dist/cdn/{OOFDCJTZ.js → DAPZKYDA.js} +1 -1
  24. package/dist/cdn/{5XXUPM5P.js → DBHGUPI3.js} +1 -1
  25. package/dist/cdn/{RMAADG2K.js → DLKGXIGE.js} +1 -1
  26. package/dist/cdn/{DO2EWRXG.js → DWYUDHNF.js} +1 -1
  27. package/dist/cdn/{EMGSXQME.js → EIYPD7LX.js} +1 -1
  28. package/dist/cdn/{DQXO7PWX.js → EVJJ3M3H.js} +1 -1
  29. package/dist/cdn/{SLPFRGJW.js → FD6XLDC3.js} +1 -1
  30. package/dist/cdn/{MKWYVBKT.js → FHKECIDV.js} +1 -1
  31. package/dist/cdn/{GLSEW7NT.js → FIUWGM5F.js} +1 -1
  32. package/dist/cdn/{TGZFKDPC.js → GYERZTZC.js} +1 -1
  33. package/dist/cdn/{O5TF56YM.js → GZW2J5BB.js} +1 -1
  34. package/dist/cdn/{UY3733IE.js → HFN2JW2Y.js} +1 -1
  35. package/dist/cdn/{RB4M4A3A.js → HIIT5JYP.js} +1 -1
  36. package/dist/cdn/{JLCPLGX7.js → HITCAMI5.js} +1 -1
  37. package/dist/cdn/{HQA6T34B.js → HK7L4KW5.js} +1 -1
  38. package/dist/cdn/{TZKCYATE.js → HQRQMNS3.js} +1 -1
  39. package/dist/cdn/{7HUL35PU.js → HY7QBK5Q.js} +1 -1
  40. package/dist/cdn/I5T73GQO.js +3 -0
  41. package/dist/cdn/{LYH6FAVN.js → JE7HHPRA.js} +1 -1
  42. package/dist/cdn/{ZGFZTSYD.js → JJVBR3P7.js} +1 -1
  43. package/dist/cdn/{GCZ6DFXI.js → JR4XDV5M.js} +1 -1
  44. package/dist/cdn/{LJNSQDP4.js → K2BKBWOE.js} +1 -1
  45. package/dist/cdn/{NRP7JZ2N.js → KPYAHOEF.js} +1 -1
  46. package/dist/cdn/{S3QRGN6V.js → LDLGRKYX.js} +1 -1
  47. package/dist/cdn/{DWRQVHUB.js → LFKT5OKL.js} +1 -1
  48. package/dist/cdn/{RFC5H2U3.js → LJMPMWML.js} +1 -1
  49. package/dist/cdn/{KBFQXCDZ.js → LQUC2OYQ.js} +1 -1
  50. package/dist/cdn/{KW36EC35.js → M5QUJQPF.js} +1 -1
  51. package/dist/cdn/{SSLW7SXN.js → MHJLTIS5.js} +1 -1
  52. package/dist/cdn/{ZJMTZWFM.js → MLC52WUK.js} +1 -1
  53. package/dist/cdn/{XZVQQOEN.js → MQG7NVTD.js} +1 -1
  54. package/dist/cdn/{EIXBC2RU.js → NEZLKPY2.js} +1 -1
  55. package/dist/cdn/{KCES2YBJ.js → NIJ4EHI5.js} +1 -1
  56. package/dist/cdn/{J6SJWHVL.js → NM4OO5YU.js} +1 -1
  57. package/dist/cdn/{W6VVXP6G.js → NO4VCKIK.js} +1 -1
  58. package/dist/cdn/{RCXEKJIO.js → NYZ237BW.js} +1 -1
  59. package/dist/cdn/{L5MHZ4XS.js → OPADFZDX.js} +1 -1
  60. package/dist/cdn/{XVMQD75T.js → OSVQNJ2P.js} +1 -1
  61. package/dist/cdn/{PZTO7HAL.js → P6L3V5ZK.js} +1 -1
  62. package/dist/cdn/{GOE2U47L.js → PL7MI5YT.js} +1 -1
  63. package/dist/cdn/{MN4IWNOW.js → Q6BX3XAH.js} +1 -1
  64. package/dist/cdn/{PYPCKQIM.js → QJWTSQQU.js} +1 -1
  65. package/dist/cdn/{KIN7EK6A.js → RF5ZHOUK.js} +1 -1
  66. package/dist/cdn/{BYD5Z33P.js → RI756YEJ.js} +1 -1
  67. package/dist/cdn/{P66FIZ3I.js → RJ2Y7JHV.js} +1 -1
  68. package/dist/cdn/{RHMWRE52.js → RJ7YN4N5.js} +1 -1
  69. package/dist/cdn/{KKJXMY7J.js → RPNCN55D.js} +1 -1
  70. package/dist/cdn/{XLUNDGEL.js → RUYG5XKF.js} +1 -1
  71. package/dist/cdn/{ZP2WKE5B.js → RV7GNNST.js} +1 -1
  72. package/dist/cdn/{GDDDGPAU.js → S43LUG32.js} +1 -1
  73. package/dist/cdn/{NS4DTKTX.js → S5TDCVHM.js} +1 -1
  74. package/dist/cdn/{TLN3DUDJ.js → SE6CNVZX.js} +1 -1
  75. package/dist/cdn/{GJL4IRBS.js → SJLIHX7G.js} +1 -1
  76. package/dist/cdn/{NERP6IQJ.js → T4OM7MKJ.js} +1 -1
  77. package/dist/cdn/{SJ62ZS3H.js → U3IW423I.js} +1 -1
  78. package/dist/cdn/{2KKIGZQN.js → U4O47D36.js} +1 -1
  79. package/dist/cdn/{ZW7RPK6D.js → UJRTXJNX.js} +1 -1
  80. package/dist/cdn/{P2FVU6TM.js → UPTO3LTH.js} +1 -1
  81. package/dist/cdn/USNJZCHH.js +2 -0
  82. package/dist/cdn/{VK6FNPKY.js → V3M6E7SI.js} +1 -1
  83. package/dist/cdn/{2TJIWV5F.js → V5OAZMFF.js} +1 -1
  84. package/dist/cdn/{WMUPNT4Q.js → WDMYVS4F.js} +1 -1
  85. package/dist/cdn/{JVKBKQVH.js → WFMWMNU7.js} +1 -1
  86. package/dist/cdn/{JPT4AHGX.js → X3S24JSK.js} +1 -1
  87. package/dist/cdn/{ALCVBLC3.js → XPZCZV3I.js} +1 -1
  88. package/dist/cdn/{N5EWBVEP.js → ZBNB5IAL.js} +1 -1
  89. package/dist/cdn/index.js +1 -1
  90. package/dist/cdn/model/shared/setup-utils.js +1 -1
  91. package/dist/chunks/index.js +1 -1
  92. package/dist/chunks/index2.js +3527 -3429
  93. package/dist/chunks/serial-chart-data.js +272 -265
  94. package/dist/components/arcgis-chart/customElement.js +2691 -2704
  95. package/dist/docs/api.json +1 -1
  96. package/dist/docs/docs.json +1 -1
  97. package/dist/docs/web-types.json +1 -1
  98. package/dist/utils/chart-config/utils/index.d.ts +2 -2
  99. package/dist/utils/data/index.d.ts +7 -7
  100. package/dist/utils/defaults/interfaces.d.ts +1 -1
  101. package/dist/utils/layer/query-features/index.d.ts +7 -3
  102. package/dist/utils/layer/query-parser/index.d.ts +6 -3
  103. package/package.json +3 -3
  104. package/dist/cdn/JKBOZKG3.js +0 -2
  105. package/dist/cdn/RKY6MJXO.js +0 -3
  106. package/dist/cdn/SCU3SBSN.js +0 -2
@@ -3,13 +3,13 @@ import { substitute as E } from "@arcgis/core/intl.js";
3
3
  import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
4
4
  import { S as oe } from "./common.js";
5
5
  import { s as D, u as $, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
- import { w as I, i as Ue, di as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
6
+ import { w as I, i as Ue, di as Y, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
7
  import { a as P, s as ge, g as te, b as he, c as St } from "./data.js";
8
- import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
8
+ import { u as T, r as v, k as Ft, d as k, n as L, m as W, p as xt, t as ht, s as le } from "./chart-object-literals.js";
9
9
  import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
10
10
  import { i as se } from "./index4.js";
11
11
  import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
- import { C as w, F as X, d as R } from "./index3.js";
12
+ import { C as w, F as H, d as R } from "./index3.js";
13
13
  import { g as Ve, s as Dt } from "./series-types.js";
14
14
  import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
15
15
  import { d as ue, f as Ot } from "./type-guards.js";
@@ -66,12 +66,12 @@ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e
66
66
  };
67
67
  const Ht = (s) => {
68
68
  let e;
69
- return W(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
69
+ return Y(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
70
70
  (t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
71
  }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
72
  }, ke = (s, e) => {
73
73
  const t = Ue(s);
74
- W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
74
+ Y(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
75
75
  (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
76
76
  }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
77
77
  };
@@ -123,77 +123,80 @@ async function jt(s) {
123
123
  runtimeDataFilters: n,
124
124
  ignoreViewExtent: o,
125
125
  setTimeBinningInfoWhenNotProvided: l,
126
- returnFeaturesExtent: u,
127
- chartLimits: p
126
+ returnFeaturesExtent: c,
127
+ returnStatisticsAggregatedIds: p,
128
+ chartLimits: f
128
129
  } = s;
129
- let g = [], d;
130
- const m = J(t), y = m.series[0], c = rt({
130
+ let u = [], m;
131
+ const d = J(t), y = d.series[0], g = rt({
131
132
  queryObject: e,
132
- chartConfig: m,
133
+ chartConfig: d,
133
134
  runtimeDataFilters: n,
134
135
  ignoreViewExtent: o
135
136
  });
136
- if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
137
- xAxisValueFormatType: ot(m),
137
+ if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
138
+ xAxisValueFormatType: ot(d),
138
139
  setTimeBinningInfoWhenNotProvided: l,
139
140
  seriesConfig: y,
140
141
  queryObject: e
141
142
  }) && lt(r, e)) {
142
- const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
143
- chartConfig: m,
144
- queryConfig: c,
143
+ const { temporalBinning: F, x: h } = y, { uniqueQuery: S } = fe({
144
+ chartConfig: d,
145
+ queryConfig: g,
145
146
  queryObject: e,
146
147
  setTimeBinningInfoWhenNotProvided: l,
147
- returnFeaturesExtent: u,
148
- chartLimits: p
149
- }), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
150
- d = await ct({
148
+ returnFeaturesExtent: c,
149
+ chartLimits: f
150
+ }), b = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ m = await ct({
151
152
  queryObject: e,
152
- dateField: F,
153
+ dateField: h,
153
154
  splitByField: r,
154
- queryConfig: x,
155
- axisTimeZone: f,
156
- temporalBinning: S,
155
+ queryConfig: S,
156
+ axisTimeZone: b,
157
+ temporalBinning: F,
158
+ returnStatisticsAggregatedIds: p,
157
159
  errorStrings: i,
158
160
  abortSignal: a
159
- }), g = Array.from(
161
+ }), u = Array.from(
160
162
  new Set(
161
- d.flatMap((b) => {
162
- const { stackedAttributes: C } = b;
163
- let B = [];
164
- return C && (B = C.map((A) => A[r]).filter((A) => A !== void 0)), B;
163
+ m.flatMap((C) => {
164
+ const { stackedAttributes: B } = C;
165
+ let A = [];
166
+ return B && (A = B.map((x) => x[r]).filter((x) => x !== void 0)), A;
165
167
  })
166
168
  ).values()
167
169
  );
168
170
  } else {
169
- const { uniqueQuery: S } = fe({
170
- chartConfig: m,
171
+ const { uniqueQuery: F } = fe({
172
+ chartConfig: d,
171
173
  queryObject: e,
172
- queryConfig: c,
174
+ queryConfig: g,
173
175
  setTimeBinningInfoWhenNotProvided: l,
174
- returnFeaturesExtent: u,
175
- chartLimits: p
176
- }), { elementCount: F } = await ut({
177
- chartConfig: m,
176
+ returnFeaturesExtent: c,
177
+ chartLimits: f
178
+ }), { elementCount: h } = await ut({
179
+ chartConfig: d,
178
180
  queryObject: e,
179
- queryConfig: c,
180
- behaviorAfterLimit: p?.behaviorAfterLimit,
181
- numberMaxOfFeaturesToFetch: S.num,
181
+ queryConfig: g,
182
+ behaviorAfterLimit: f?.behaviorAfterLimit,
183
+ numberMaxOfFeaturesToFetch: F.num,
182
184
  abortSignal: a
183
185
  });
184
- d = await dt({
186
+ m = await dt({
185
187
  queryObject: e,
186
- queryConfig: S,
187
- featureCount: F,
188
+ queryConfig: F,
189
+ featureCount: h,
190
+ returnStatisticsAggregatedIds: p,
188
191
  errorStrings: i,
189
192
  abortSignal: a
190
- }), g = Array.from(
193
+ }), u = Array.from(
191
194
  new Set(
192
- d.map((x) => x.attributes[r]).filter((x) => x !== void 0)
195
+ m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
193
196
  ).values()
194
197
  );
195
198
  }
196
- return { allValues: g, preFetchedQueryResponse: d };
199
+ return { allValues: u, preFetchedQueryResponse: m };
197
200
  }
198
201
  function Kt(s, e) {
199
202
  const t = /* @__PURE__ */ new Map();
@@ -233,7 +236,7 @@ function _t(s) {
233
236
  })
234
237
  );
235
238
  if (a.query) {
236
- if (t === null ? a.id = X.nullValue : t === "" ? a.id = X.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
239
+ if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
237
240
  const o = a.id;
238
241
  a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
239
242
  }
@@ -252,49 +255,51 @@ async function Qt(s) {
252
255
  runtimeDataFilters: n,
253
256
  ignoreViewExtent: o,
254
257
  setTimeBinningInfoWhenNotProvided: l,
255
- returnFeaturesExtent: u,
256
- chartLimits: p
257
- } = s, { seriesTemplate: g } = e ?? {};
258
- let d;
259
- if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
260
- const m = t.series.length === 0;
261
- t.series.length === 0 && g !== void 0 && t.series.push(g);
258
+ returnFeaturesExtent: c,
259
+ returnStatisticsAggregatedIds: p,
260
+ chartLimits: f
261
+ } = s, { seriesTemplate: u } = e ?? {};
262
+ let m;
263
+ if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
264
+ const d = t.series.length === 0;
265
+ t.series.length === 0 && u !== void 0 && t.series.push(u);
262
266
  const y = ee(t.series);
263
267
  if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
264
- const c = et(t.series[0]?.query?.where), S = tt(r), F = st(c, S), x = F ? it(F) : !1, f = await jt({
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
265
269
  queryObject: r,
266
270
  chartConfig: t,
267
- splitByField: c,
271
+ splitByField: g,
268
272
  abortSignal: a,
269
273
  runtimeDataFilters: n,
270
274
  ignoreViewExtent: o,
271
275
  setTimeBinningInfoWhenNotProvided: l,
272
- returnFeaturesExtent: u,
273
- chartLimits: p,
276
+ returnFeaturesExtent: c,
277
+ returnStatisticsAggregatedIds: p,
278
+ chartLimits: f,
274
279
  errorStrings: i
275
- }), { allValues: b } = f;
276
- if ({ preFetchedQueryResponse: d } = f, b.length > 0) {
277
- const C = Kt(t, x), B = Zt({
278
- allValues: b,
279
- configUniqueValuesPerSeriesType: C,
280
- initialConfigWasEmpty: m
280
+ }), { allValues: C } = b;
281
+ if ({ preFetchedQueryResponse: m } = b, C.length > 0) {
282
+ const B = Kt(t, S), A = Zt({
283
+ allValues: C,
284
+ configUniqueValuesPerSeriesType: B,
285
+ initialConfigWasEmpty: d
281
286
  });
282
- Array.from(B.keys()).forEach((A) => {
283
- (B.get(A) ?? []).forEach((Y) => {
287
+ Array.from(A.keys()).forEach((x) => {
288
+ (A.get(x) ?? []).forEach((N) => {
284
289
  t.series.push(
285
290
  _t({
286
291
  chartConfig: t,
287
- seriesTemplate: g,
288
- missingValue: Y,
289
- splitByField: c
292
+ seriesTemplate: u,
293
+ missingValue: N,
294
+ splitByField: g
290
295
  })
291
296
  );
292
- }), m && t.series.shift();
297
+ }), d && t.series.shift();
293
298
  });
294
299
  }
295
300
  }
296
301
  }
297
- return d;
302
+ return m;
298
303
  }
299
304
  function zt(s, e) {
300
305
  e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
@@ -309,26 +314,28 @@ async function Ys(s) {
309
314
  queryObject: n,
310
315
  abortSignal: o,
311
316
  runtimeDataFilters: l,
312
- ignoreViewExtent: u,
317
+ ignoreViewExtent: c,
313
318
  setTimeBinningInfoWhenNotProvided: p,
314
- returnFeaturesExtent: g,
315
- chartLimits: d,
316
- timeZone: m,
319
+ returnFeaturesExtent: f,
320
+ returnStatisticsAggregatedIds: u,
321
+ chartLimits: m,
322
+ timeZone: d,
317
323
  errorStrings: y
318
324
  } = s;
319
- let c = e, S;
320
- return c && (zt(t, c), c = await Nt(c, t, void 0, o), r && n && (S = await Qt({
325
+ let g = e, F;
326
+ return g && (zt(t, g), g = await Nt(g, t, void 0, o), r && n && (F = await Qt({
321
327
  updateSplitBySeries: i,
322
- config: c,
328
+ config: g,
323
329
  queryObject: n,
324
330
  errorStrings: y,
325
331
  abortSignal: o,
326
332
  runtimeDataFilters: l,
327
- ignoreViewExtent: u,
333
+ ignoreViewExtent: c,
328
334
  setTimeBinningInfoWhenNotProvided: p,
329
- returnFeaturesExtent: g,
330
- chartLimits: d
331
- })), c = je(c, a), ke(m, c)), { alteredConfig: c, preFetchedQueryResponse: S };
335
+ returnFeaturesExtent: f,
336
+ returnStatisticsAggregatedIds: u,
337
+ chartLimits: m
338
+ })), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
332
339
  }
333
340
  function Gt(s, e) {
334
341
  let t = !1;
@@ -342,48 +349,48 @@ function Ws(s) {
342
349
  const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
343
350
  let n = !1;
344
351
  if (!r && i > 1 && e) {
345
- const o = Ze(e), l = Ve(t?.series), u = ee(t?.series), p = /* @__PURE__ */ new Set();
352
+ const o = Ze(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
346
353
  switch (l) {
347
354
  case T.ComboLineAndBarSeries:
348
355
  case T.BarSeries:
349
356
  case T.RadarSeries:
350
357
  case T.LineSeries: {
351
- a.series.forEach((d) => {
358
+ a.series.forEach((u) => {
352
359
  if (Array.isArray(o)) {
353
360
  let m = "";
354
- "y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, u === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
355
- (c) => Ge({
356
- dataItem: c,
357
- x: d.x,
361
+ "y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
+ (y) => Ge({
363
+ dataItem: y,
364
+ x: u.x,
358
365
  y: m,
359
366
  aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
360
367
  })
361
- ) && p.add(d));
368
+ ) && p.add(u));
362
369
  }
363
370
  });
364
371
  break;
365
372
  }
366
373
  case T.BoxPlotSeries: {
367
374
  if (_e(t)) {
368
- const d = Qe(t);
375
+ const u = Qe(t);
369
376
  t.series.forEach((m) => {
370
- let y, c;
371
- m.type === T.BoxPlotSeries ? (y = e.dataItems, c = y?.some(
372
- (S) => ze({
373
- dataItem: S,
377
+ let d, y;
378
+ m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
379
+ (g) => ze({
380
+ dataItem: g,
374
381
  splitBy: m.query?.where,
375
- showOutliers: d
382
+ showOutliers: u
376
383
  })
377
- )) : m.type === T.LineSeries && (y = e.meanLines, c = y?.some(
378
- (S) => Gt(S, m.query?.where)
379
- )), c && p.add(m);
384
+ )) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
385
+ (g) => Gt(g, m.query?.where)
386
+ )), y && p.add(m);
380
387
  });
381
388
  }
382
389
  break;
383
390
  }
384
391
  }
385
- const g = Array.from(p.values());
386
- n = g.length > 0 && g.length < i, n && (a.series = g);
392
+ const f = Array.from(p.values());
393
+ n = f.length > 0 && f.length < i, n && (a.series = f);
387
394
  }
388
395
  return { seriesFilteredOut: n, filteredConfig: a };
389
396
  }
@@ -396,9 +403,9 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
396
403
  const t = s.series[0];
397
404
  t.gradientRules = e;
398
405
  }, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
399
- const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), u = t.series[0];
400
- if (typeof e == "string" && o !== e && u) {
401
- if (u.y = e, Ut(t), o === n || l) {
406
+ const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
407
+ if (typeof e == "string" && o !== e && c) {
408
+ if (c.y = e, Ut(t), o === n || l) {
402
409
  const p = R(a, e);
403
410
  $(t, 1, p);
404
411
  }
@@ -447,7 +454,7 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
447
454
  }, n && t.title && (t.title.content.text = K(t, r, i));
448
455
  }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
449
456
  const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
450
- a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
457
+ a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(W.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
451
458
  }, li = (s) => s.nullPolicy, is = (s, e) => {
452
459
  e.nullPolicy = s;
453
460
  }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
@@ -466,11 +473,11 @@ function Fi(s, e) {
466
473
  mt(e) || (e.viewType = s);
467
474
  }
468
475
  function xi(s) {
469
- return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
476
+ return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
470
477
  }
471
478
  function hi(s, e) {
472
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
473
- breaksCount: s ?? X.classBreaks.breaksCount
479
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
+ breaksCount: s ?? H.classBreaks.breaksCount
474
481
  };
475
482
  }
476
483
  function Ti(s) {
@@ -479,7 +486,7 @@ function Ti(s) {
479
486
  function Bi(s, e) {
480
487
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
481
488
  classificationMethod: s
482
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
489
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
483
490
  }
484
491
  function Ci(s, e) {
485
492
  e.firstDayOfWeek = s;
@@ -556,16 +563,16 @@ const as = [
556
563
  intlOptions: e
557
564
  };
558
565
  }, ve = (s) => {
559
- const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), u = R(n.layerFieldsInfo, a);
560
- e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === u || l === be(r, t.unit) || l === r.xAxis) && $(i, e, be(r, t.unit));
566
+ const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = R(n.layerFieldsInfo, a);
567
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && $(i, e, be(r, t.unit));
561
568
  }, G = (s) => {
562
569
  const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
563
570
  Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
564
571
  }, Re = (s) => {
565
- const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), u = Te(o), p = Be(n) && Be(o), g = _(n) && _(o);
566
- if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: u }), p) {
567
- const d = es(t) === void 0, m = ts(t) === void 0;
568
- d && (ve({
572
+ const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
573
+ if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
574
+ const u = es(t) === void 0, m = ts(t) === void 0;
575
+ u && (ve({
569
576
  axisIndex: 0,
570
577
  binning: Ae(0, t.series[0].yTemporalBinning),
571
578
  commonStrings: e,
@@ -589,7 +596,7 @@ const as = [
589
596
  config: t
590
597
  }));
591
598
  }
592
- g && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
599
+ f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
593
600
  };
594
601
  function os(s) {
595
602
  const e = {};
@@ -600,27 +607,27 @@ function os(s) {
600
607
  function ae(s) {
601
608
  const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
602
609
  let l;
603
- const u = i.series[e ?? 0];
604
- let p = !1, g = !1, d = !1;
605
- if (u === void 0) {
610
+ const c = i.series[e ?? 0];
611
+ let p = !1, f = !1, u = !1;
612
+ if (c === void 0) {
606
613
  const B = i.series;
607
- p = B.slice(0, e).every((A) => O(A)), g = B.slice(0, e).every((A) => V(A)), d = B.slice(0, e).every((A) => Fe(A));
614
+ p = B.slice(0, e).every((A) => O(A)), f = B.slice(0, e).every((A) => V(A)), u = B.slice(0, e).every((A) => Fe(A));
608
615
  } else
609
- p = O(u), g = V(u), d = Fe(u);
616
+ p = O(c), f = V(c), u = Fe(c);
610
617
  p ? l = bt({
611
618
  commonStrings: n,
612
619
  seriesIndex: e,
613
620
  objectIDField: o
614
- }) : g ? l = At({
621
+ }) : f ? l = At({
615
622
  commonStrings: n,
616
623
  seriesIndex: e,
617
624
  objectIDField: o
618
- }) : d ? l = vt(n, o) : l = It({
625
+ }) : u ? l = vt(n, o) : l = It({
619
626
  seriesIndex: e,
620
627
  objectIDField: o,
621
628
  commonStrings: n
622
629
  });
623
- const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, c = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
630
+ const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, h = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
624
631
  ...l,
625
632
  x: t,
626
633
  y: "",
@@ -630,12 +637,12 @@ function ae(s) {
630
637
  content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
631
638
  visible: m?.visible ?? !1
632
639
  },
633
- ...y !== void 0 ? { nullCategory: y } : {},
634
- ...c !== void 0 ? { binTemporalData: c } : {},
635
- ...S !== void 0 ? { classBreakRules: S } : {},
640
+ ...d !== void 0 ? { nullCategory: d } : {},
641
+ ...y !== void 0 ? { binTemporalData: y } : {},
642
+ ...g !== void 0 ? { classBreakRules: g } : {},
636
643
  ...F !== void 0 ? { xTemporalBinning: F } : {},
637
- ...x !== void 0 ? { yTemporalBinning: x } : {},
638
- ...f !== void 0 ? { emptyCells: f } : {}
644
+ ...h !== void 0 ? { yTemporalBinning: h } : {},
645
+ ...S !== void 0 ? { emptyCells: S } : {}
639
646
  };
640
647
  if (C.query = {
641
648
  groupByFieldsForStatistics: [t],
@@ -660,65 +667,65 @@ function ae(s) {
660
667
  return J(C);
661
668
  }
662
669
  function K(s, e, t) {
663
- const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), u = re(s), p = a && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(r ?? [], f)).join(", "), m = R(r ?? [], n), y = R(r ?? [], u), c = s.series.some((f) => M(f)), S = c ? "category" : "xAxisField", F = m;
664
- let x = "";
670
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
671
+ let h = "";
665
672
  if (ge({
666
673
  fieldName: n,
667
674
  numericFields: o,
668
675
  fieldList: r
669
676
  }))
670
- x = E(t.titleLabels.aggrTypeOfAggrFields, {
671
- aggregationType: g,
672
- aggregationFields: d
677
+ h = E(t.titleLabels.aggrTypeOfAggrFields, {
678
+ aggregationType: f,
679
+ aggregationFields: u
673
680
  });
674
681
  else if (l === v.NoAggregation) {
675
- const f = p ? i : d;
676
- if (u === "") {
677
- const b = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
678
- x = E(t.titleLabels[b], {
679
- aggregationType: f,
680
- [S]: F
682
+ const S = p ? i : u;
683
+ if (c === "") {
684
+ const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
685
+ h = E(t.titleLabels[b], {
686
+ aggregationType: S,
687
+ [g]: F
681
688
  });
682
689
  } else {
683
- const b = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
684
- x = E(t.titleLabels[b], {
685
- aggregationType: f,
686
- [S]: F,
687
- splitByField: y
690
+ const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ h = E(t.titleLabels[b], {
692
+ aggregationType: S,
693
+ [g]: F,
694
+ splitByField: d
688
695
  });
689
696
  }
690
697
  } else if (l === v.Count)
691
- if (u === "") {
692
- const f = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
693
- x = E(t.titleLabels[f], {
694
- aggregationType: g,
695
- [S]: F
698
+ if (c === "") {
699
+ const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
700
+ h = E(t.titleLabels[S], {
701
+ aggregationType: f,
702
+ [g]: F
696
703
  });
697
704
  } else {
698
- const f = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
699
- x = E(t.titleLabels[f], {
700
- aggregationType: g,
701
- [S]: F,
702
- splitByField: y
705
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ h = E(t.titleLabels[S], {
707
+ aggregationType: f,
708
+ [g]: F,
709
+ splitByField: d
703
710
  });
704
711
  }
705
- else if (u !== "") {
706
- const f = c ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
707
- x = E(t.titleLabels[f], {
708
- aggregationType: g,
709
- aggregationField: d,
710
- [S]: F,
711
- splitByField: y
712
+ else if (c !== "") {
713
+ const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
714
+ h = E(t.titleLabels[S], {
715
+ aggregationType: f,
716
+ aggregationField: u,
717
+ [g]: F,
718
+ splitByField: d
712
719
  });
713
720
  } else if (o.length > 0) {
714
- const f = c ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
715
- x = E(t.titleLabels[f], {
716
- aggregationType: g,
717
- aggregationFields: d,
718
- [S]: F
721
+ const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ h = E(t.titleLabels[S], {
723
+ aggregationType: f,
724
+ aggregationFields: u,
725
+ [g]: F
719
726
  });
720
727
  }
721
- return x;
728
+ return h;
722
729
  }
723
730
  const qe = (s) => me({
724
731
  where: s.query?.where,
@@ -751,18 +758,18 @@ function ls(s) {
751
758
  const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
752
759
  let a = !1;
753
760
  t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
754
- const u = i.layerFieldsInfo.find((p) => p.name === l);
755
- return u !== void 0 ? xe(u) : !1;
761
+ const c = i.layerFieldsInfo.find((p) => p.name === l);
762
+ return c !== void 0 ? xe(c) : !1;
756
763
  })), pe(r, 1, a);
757
764
  const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
758
765
  if (n || o) {
759
- const l = P(r), u = i.layerFieldsInfo.find((g) => g.name === l), p = u !== void 0 && xe(u);
766
+ const l = P(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
760
767
  pe(r, 0, p);
761
768
  }
762
769
  }
763
770
  const de = (s) => {
764
771
  let e;
765
- if (W(s)) {
772
+ if (Y(s)) {
766
773
  const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
767
774
  e = [he(t, i), he(r, a)];
768
775
  } else {
@@ -779,115 +786,115 @@ function cs(s) {
779
786
  layerInfo: a,
780
787
  seriesIndex: 0,
781
788
  commonStrings: n
782
- }), u = te({
789
+ }), c = te({
783
790
  config: i,
784
791
  xAxisField: e,
785
792
  numericFields: t,
786
793
  aggregationType: r,
787
794
  layer: a.layer,
788
795
  fieldList: o
789
- }).name, p = P(i), g = Z(i), d = ge({
796
+ }).name, p = P(i), f = Z(i), u = ge({
790
797
  fieldName: p,
791
- numericFields: g,
798
+ numericFields: f,
792
799
  fieldList: o
793
- }) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, c = d?.name ?? n.axisLabels.values, F = {
794
- ...d ?? l,
795
- id: y,
796
- name: c,
800
+ }) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
801
+ ...u ?? l,
802
+ id: d,
803
+ name: y,
797
804
  x: U,
798
- y: u
799
- }, x = [];
800
- for (const f of t)
801
- x.push({
802
- onStatisticField: f,
803
- outStatisticFieldName: `${f}_0`.toUpperCase(),
805
+ y: c
806
+ }, h = [];
807
+ for (const S of t)
808
+ h.push({
809
+ onStatisticField: S,
810
+ outStatisticFieldName: `${S}_0`.toUpperCase(),
804
811
  statisticType: r
805
812
  });
806
- return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
813
+ return F.query = { outStatistics: h }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
807
814
  }
808
815
  function Ee(s) {
809
- const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, u = [];
810
- for (let y = 0; y < t.length; y += 1) {
811
- const c = ae({
816
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
817
+ for (let d = 0; d < t.length; d += 1) {
818
+ const y = ae({
812
819
  config: i,
813
820
  xAxisField: e,
814
821
  aggregationType: r,
815
822
  layerInfo: a,
816
- seriesIndex: y,
823
+ seriesIndex: d,
817
824
  commonStrings: n
818
- }), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : te({
825
+ }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((N) => N.name === g) ? g : te({
819
826
  config: i,
820
827
  xAxisField: e,
821
828
  numericFields: t,
822
829
  aggregationType: r,
823
830
  layer: a.layer,
824
- numericFieldIndex: y,
831
+ numericFieldIndex: d,
825
832
  fieldList: o
826
- }).name, x = t[y], f = i.series.find(
827
- (N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === x || N.query?.outStatistics === void 0 && (N.y === x || N.x === x))
828
- ), b = x !== l ? x : c.id, C = f?.id ?? b, B = f?.name ?? R(o, x) ?? C, A = f ?? c, h = {
833
+ }).name, h = t[d], S = i.series.find(
834
+ (N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === h || N.query?.outStatistics === void 0 && (N.y === h || N.x === h))
835
+ ), b = h !== l ? h : y.id, C = S?.id ?? b, B = S?.name ?? R(o, h) ?? C, A = S ?? y, x = {
829
836
  ...A,
830
837
  id: C,
831
838
  name: B
832
839
  };
833
- let Y = x;
834
- h.query !== void 0 && (r !== v.NoAggregation ? (Y = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
840
+ let X = h;
841
+ x.query !== void 0 && (r !== v.NoAggregation ? (X = x.type === T.HeatSeries && S?.type === T.HeatSeries ? h : F, x.query.outStatistics = [
835
842
  {
836
843
  ...A.query?.outStatistics?.[0] ?? {},
837
- onStatisticField: x,
844
+ onStatisticField: h,
838
845
  outStatisticFieldName: F,
839
846
  statisticType: r
840
847
  }
841
- ]) : delete h.query.outStatistics), h.y = Y, u.push(h);
848
+ ]) : delete x.query.outStatistics), x.y = X, c.push(x);
842
849
  }
843
- const p = u.filter((y) => M(y)), g = u.filter(
844
- (y) => O(y) || V(y)
845
- ), d = i.series.filter((y) => M(y)), m = i.series.filter(
846
- (y) => O(y) || V(y)
850
+ const p = c.filter((d) => M(d)), f = c.filter(
851
+ (d) => O(d) || V(d)
852
+ ), u = i.series.filter((d) => M(d)), m = i.series.filter(
853
+ (d) => O(d) || V(d)
847
854
  );
848
- return d.length === 1 && p.length === 1 && M(d[0]) && M(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), u;
855
+ return u.length === 1 && p.length === 1 && M(u[0]) && M(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
849
856
  }
850
857
  function Di(s) {
851
- const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), u = re(t), p = ne(t, r, i), g = $e(t, r, i);
852
- if (t.series.forEach((d, m) => {
853
- const y = te({
858
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), c = re(t), p = ne(t, r, i), f = $e(t, r, i);
859
+ if (t.series.forEach((u, m) => {
860
+ const d = te({
854
861
  config: t,
855
862
  xAxisField: o,
856
863
  numericFields: l,
857
864
  aggregationType: e,
858
- splitByField: u,
865
+ splitByField: c,
859
866
  layer: n,
860
867
  seriesIndex: m,
861
868
  numericFieldIndex: m,
862
869
  fieldList: a
863
870
  }).name;
864
- d.y = y;
865
- const c = Pe({
866
- splitByField: u,
871
+ u.y = d;
872
+ const y = Pe({
873
+ splitByField: c,
867
874
  numericFields: l,
868
875
  layer: n,
869
876
  seriesIndex: m
870
- }), S = d.query?.outStatistics?.[0]?.onStatisticField ?? c;
871
- d.query = {
872
- ...d.query,
877
+ }), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
878
+ u.query = {
879
+ ...u.query,
873
880
  outStatistics: e === v.NoAggregation ? void 0 : [
874
881
  {
875
- ...d.query?.outStatistics?.[0],
876
- outStatisticFieldName: y,
882
+ ...u.query?.outStatistics?.[0],
883
+ outStatisticFieldName: d,
877
884
  statisticType: e,
878
- onStatisticField: S
885
+ onStatisticField: g
879
886
  }
880
887
  ]
881
- }, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === v.NoAggregation ? H.Interpolate : H.Null), e === v.NoAggregation && Mt(t);
882
- }), p && t.title && (t.title.content.text = K(t, r, i)), g && t.series[0].type !== T.HeatSeries) {
883
- const d = ye({
888
+ }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === v.NoAggregation ? W.Interpolate : W.Null), e === v.NoAggregation && Mt(t);
889
+ }), p && t.title && (t.title.content.text = K(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
890
+ const u = ye({
884
891
  config: t,
885
892
  layerInfo: r,
886
893
  commonStrings: i,
887
894
  numericFields: l,
888
895
  aggregationType: e
889
896
  });
890
- $(t, 1, d);
897
+ $(t, 1, u);
891
898
  }
892
899
  }
893
900
  function us(s) {
@@ -900,15 +907,15 @@ function us(s) {
900
907
  layerInfo: n,
901
908
  commonStrings: o,
902
909
  splitByFieldInfos: l
903
- } = s, { layer: u, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
910
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
904
911
  splitByField: e,
905
912
  numericFields: r,
906
- layer: u,
913
+ layer: c,
907
914
  seriesIndex: 0
908
915
  });
909
- let y = [];
910
- if (g.length === 0) {
911
- y = Ee({
916
+ let d = [];
917
+ if (f.length === 0) {
918
+ d = Ee({
912
919
  xAxisField: t,
913
920
  numericFields: r,
914
921
  aggregationType: i,
@@ -916,43 +923,43 @@ function us(s) {
916
923
  layerInfo: n,
917
924
  commonStrings: o
918
925
  });
919
- for (const c of y)
920
- c.query && (c.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
921
928
  } else
922
- for (let c = 0; c < g.length; c += 1) {
923
- const S = g[c], F = te({
929
+ for (let y = 0; y < f.length; y += 1) {
930
+ const g = f[y], F = te({
924
931
  config: a,
925
932
  xAxisField: t,
926
933
  numericFields: r,
927
934
  aggregationType: i,
928
935
  layer: n.layer,
929
- seriesIndex: c,
936
+ seriesIndex: y,
930
937
  splitByField: e,
931
938
  fieldList: p
932
- }).name, x = ae({
939
+ }).name, h = ae({
933
940
  config: a,
934
941
  xAxisField: t,
935
942
  aggregationType: i,
936
943
  layerInfo: n,
937
- seriesIndex: c,
944
+ seriesIndex: y,
938
945
  commonStrings: o
939
- }), f = Ne({
946
+ }), S = Ne({
940
947
  queryObject: n.layer,
941
948
  fieldName: e,
942
- fieldValue: S ?? ""
943
- }), b = `${S}`, C = a.series.find(
949
+ fieldValue: g ?? ""
950
+ }), b = `${g}`, C = a.series.find(
944
951
  (N) => String(qe(N)).trim().replace(/'/gu, "") === b
945
- ), B = C?.id ?? b, A = C?.name ?? f ?? B, h = C ?? x, Y = {
946
- ...h,
952
+ ), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, X = {
953
+ ...x,
947
954
  id: B,
948
955
  name: A,
949
956
  y: F,
950
957
  query: {
951
- ...h.query,
952
- where: `${e}=${d === Oe.String && S !== null ? `'${S}'` : S}`,
958
+ ...x.query,
959
+ where: `${e}=${u === Oe.String && g !== null ? `'${g}'` : g}`,
953
960
  outStatistics: i !== v.NoAggregation ? [
954
961
  {
955
- ...h.query?.outStatistics?.[0] ?? {},
962
+ ...x.query?.outStatistics?.[0] ?? {},
956
963
  onStatisticField: m,
957
964
  outStatisticFieldName: F,
958
965
  statisticType: i
@@ -960,9 +967,9 @@ function us(s) {
960
967
  ] : void 0
961
968
  }
962
969
  };
963
- y.push(Y);
970
+ d.push(X);
964
971
  }
965
- return y;
972
+ return d;
966
973
  }
967
974
  const Ni = (s) => {
968
975
  const {
@@ -974,17 +981,17 @@ const Ni = (s) => {
974
981
  layerInfo: n,
975
982
  commonStrings: o,
976
983
  splitByFieldInfos: l
977
- } = s, { layerFieldsInfo: u } = n ?? {}, p = J(a), g = Rt(a), d = P(p), m = u.find((h) => h.name === d), y = a.series[0]?.query === void 0, c = u.find((h) => h.name === e), S = ne(p, n, o), F = $e(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
978
- let f = Le(a);
979
- const b = p.series.some((h) => M(h)), C = pt(p.series), B = ft(p.series), A = q(m) || q(c);
980
- if (_(c) ? f = ce() : !Q(m) && Q(c) ? f = z() : !q(m) && q(c) ? f = z() : q(m) && !q(c) && (b ? f = ce() : f = Lt()), f !== void 0 && Xe(a, o, f), g === 0 && (a.series = [
984
+ } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = Rt(a), u = P(p), m = c.find((x) => x.name === u), d = a.series[0]?.query === void 0, y = c.find((x) => x.name === e), g = ne(p, n, o), F = $e(p, n, o), h = ds({ config: p, layerInfo: n, commonStrings: o });
985
+ let S = Le(a);
986
+ const b = p.series.some((x) => M(x)), C = pt(p.series), B = ft(p.series), A = q(m) || q(y);
987
+ if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (b ? S = ce() : S = Lt()), S !== void 0 && Xe(a, o, S), f === 0 && (a.series = [
981
988
  ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
982
- ]), a.series.forEach((h) => {
983
- h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
989
+ ]), a.series.forEach((x) => {
990
+ x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
984
991
  }), t === "" || r.length > 1 ? ge({
985
992
  fieldName: e,
986
993
  numericFields: r,
987
- fieldList: u
994
+ fieldList: c
988
995
  }) ? a.series = cs({
989
996
  config: a,
990
997
  layerInfo: n,
@@ -1008,26 +1015,26 @@ const Ni = (s) => {
1008
1015
  aggregationType: i,
1009
1016
  commonStrings: o,
1010
1017
  splitByFieldInfos: l
1011
- })), x && e !== U && a.series[0].type !== T.HeatSeries) {
1012
- const h = R(u, e);
1013
- $(a, 0, h);
1018
+ })), h && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const x = R(c, e);
1020
+ $(a, 0, x);
1014
1021
  }
1015
1022
  if (F && a.series[0].type !== T.HeatSeries) {
1016
- const h = ye({
1023
+ const x = ye({
1017
1024
  config: a,
1018
1025
  layerInfo: n,
1019
1026
  commonStrings: o,
1020
1027
  numericFields: r,
1021
1028
  aggregationType: i
1022
1029
  });
1023
- $(a, 1, h);
1030
+ $(a, 1, x);
1024
1031
  }
1025
- if (S && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !W(p))) {
1026
- const h = q(c) ? H.Null : H.Interpolate;
1027
- Et(h, a);
1032
+ if (g && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !Y(p))) {
1033
+ const x = q(y) ? W.Null : W.Interpolate;
1034
+ Et(x, a);
1028
1035
  }
1029
- W(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
1030
- y && delete h.query, I(h) && h.binTemporalData === void 0 && c?.type === Oe.TimeOnly && (h.binTemporalData = !1);
1036
+ Y(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((x) => {
1037
+ d && delete x.query, I(x) && x.binTemporalData === void 0 && y?.type === Oe.TimeOnly && (x.binTemporalData = !1);
1031
1038
  });
1032
1039
  }, Me = (s, e) => {
1033
1040
  s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
@@ -1040,19 +1047,19 @@ const Ni = (s) => {
1040
1047
  if (ee(e.series) === w.BarAndLineFromFields)
1041
1048
  o = i.axisLabels.values;
1042
1049
  else if (Ye(n)) {
1043
- const u = a.query?.outStatistics?.[0]?.onStatisticField;
1044
- u !== void 0 && u !== j(r.layer).idField && (o = R(r.layerFieldsInfo, u));
1050
+ const c = a.query?.outStatistics?.[0]?.onStatisticField;
1051
+ c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
1045
1052
  } else {
1046
- const u = String(qe(a)).trim().replace(/'/gu, "");
1053
+ const c = String(qe(a)).trim().replace(/'/gu, "");
1047
1054
  o = Ne({
1048
1055
  queryObject: r.layer,
1049
1056
  fieldName: n,
1050
- fieldValue: u ?? ""
1051
- }) ?? u;
1057
+ fieldValue: c ?? ""
1058
+ }) ?? c;
1052
1059
  }
1053
1060
  return o ?? a.id;
1054
1061
  }, Vi = (s, e) => {
1055
- if (W(e))
1062
+ if (Y(e))
1056
1063
  ss(s, e);
1057
1064
  else {
1058
1065
  e.orderOptions ??= {};
@@ -1065,7 +1072,7 @@ const Ni = (s) => {
1065
1072
  }, ki = async (s) => {
1066
1073
  const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
1067
1074
  let l = [];
1068
- return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((u) => R(t?.layerFieldsInfo, u)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
1075
+ return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
1069
1076
  layerInfo: t,
1070
1077
  config: e,
1071
1078
  category: i,
@@ -1100,7 +1107,7 @@ function qi(s, e) {
1100
1107
  size: 0,
1101
1108
  timeAggregationType: ht.Start,
1102
1109
  trimIncompleteTimeInterval: !0,
1103
- nullPolicy: H.Null
1110
+ nullPolicy: W.Null
1104
1111
  } : delete t.temporalBinning);
1105
1112
  });
1106
1113
  }