@arcgis/charts-components 5.2.0-next.65 → 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 (150) hide show
  1. package/dist/cdn/{XCSDBTBL.js → 3NDQG26H.js} +1 -1
  2. package/dist/cdn/3SXAM2RQ.js +2 -0
  3. package/dist/cdn/{25YKUXSB.js → 3VCCFFA5.js} +1 -1
  4. package/dist/cdn/{KNVQY6ET.js → 423BMEZZ.js} +1 -1
  5. package/dist/cdn/{5WWQNPXJ.js → 4AG2K75I.js} +1 -1
  6. package/dist/cdn/{COLQXDK7.js → 4STXGWZC.js} +1 -1
  7. package/dist/cdn/{QO6DZX5X.js → 5EITERNU.js} +1 -1
  8. package/dist/cdn/{6EO2NURO.js → 5F57WKC5.js} +1 -1
  9. package/dist/cdn/{GEET3CQC.js → 5YLWW4AL.js} +1 -1
  10. package/dist/cdn/{5S6KE7ZK.js → 6CYWDDEH.js} +1 -1
  11. package/dist/cdn/{ML3E4VVC.js → 7QDRO7G4.js} +1 -1
  12. package/dist/cdn/{LX7DEKHW.js → A6WH2SX7.js} +1 -1
  13. package/dist/cdn/{AYQ4HHL6.js → ASYRUV4T.js} +1 -1
  14. package/dist/cdn/{TNP5SEQB.js → BCWC6W6C.js} +1 -1
  15. package/dist/cdn/{C4ECGYJQ.js → BDVUD66T.js} +1 -1
  16. package/dist/cdn/{GF6SKP3D.js → BJIZMJPY.js} +1 -1
  17. package/dist/cdn/{JCHZJK2Y.js → BMXVB7A7.js} +1 -1
  18. package/dist/cdn/{H574T3WF.js → BOVXYSZZ.js} +20 -20
  19. package/dist/cdn/{2MAAPBYT.js → BXYB6KDL.js} +1 -1
  20. package/dist/cdn/{YWRJTKES.js → CE737BXZ.js} +1 -1
  21. package/dist/cdn/{TVORVJGE.js → CRNIOME2.js} +1 -1
  22. package/dist/cdn/{MIJFC5AH.js → CYGRQATX.js} +1 -1
  23. package/dist/cdn/{BASOJPOL.js → DAPZKYDA.js} +1 -1
  24. package/dist/cdn/{TTP4J64D.js → DBHGUPI3.js} +1 -1
  25. package/dist/cdn/{JFGIGXOO.js → DLKGXIGE.js} +1 -1
  26. package/dist/cdn/{5QYGNJZZ.js → DWYUDHNF.js} +1 -1
  27. package/dist/cdn/{7YYGELLZ.js → EIYPD7LX.js} +1 -1
  28. package/dist/cdn/{DQXO7PWX.js → EVJJ3M3H.js} +1 -1
  29. package/dist/cdn/{KRQLN2QY.js → FD6XLDC3.js} +1 -1
  30. package/dist/cdn/{WW7VTR4G.js → FHKECIDV.js} +1 -1
  31. package/dist/cdn/{U2B6RADM.js → FIUWGM5F.js} +1 -1
  32. package/dist/cdn/{5SQUKJMS.js → GYERZTZC.js} +1 -1
  33. package/dist/cdn/{VXPINEQQ.js → GZW2J5BB.js} +1 -1
  34. package/dist/cdn/{BQB66RIJ.js → HFN2JW2Y.js} +1 -1
  35. package/dist/cdn/{HLFZHWSK.js → HIIT5JYP.js} +1 -1
  36. package/dist/cdn/{WHL2M7QL.js → HITCAMI5.js} +1 -1
  37. package/dist/cdn/{X32ZF5ZW.js → HK7L4KW5.js} +1 -1
  38. package/dist/cdn/{3OPHROOV.js → HQRQMNS3.js} +1 -1
  39. package/dist/cdn/{ER3EOKSB.js → HY7QBK5Q.js} +1 -1
  40. package/dist/cdn/I5T73GQO.js +3 -0
  41. package/dist/cdn/{CR3AO65Y.js → JE7HHPRA.js} +1 -1
  42. package/dist/cdn/{YM3PEBYW.js → JJVBR3P7.js} +1 -1
  43. package/dist/cdn/{NVHBKDPY.js → JR4XDV5M.js} +1 -1
  44. package/dist/cdn/{BDHKWS47.js → K2BKBWOE.js} +1 -1
  45. package/dist/cdn/{EC74URPL.js → KPYAHOEF.js} +1 -1
  46. package/dist/cdn/{6VNIZLPT.js → LDLGRKYX.js} +1 -1
  47. package/dist/cdn/{HKUVYTBA.js → LFKT5OKL.js} +1 -1
  48. package/dist/cdn/{PGO2EPCC.js → LJMPMWML.js} +1 -1
  49. package/dist/cdn/{RFDSBNKF.js → LQUC2OYQ.js} +1 -1
  50. package/dist/cdn/{TH2NZINL.js → M5QUJQPF.js} +1 -1
  51. package/dist/cdn/{RCI3EBQ4.js → MHJLTIS5.js} +1 -1
  52. package/dist/cdn/{PN62LQYN.js → MLC52WUK.js} +1 -1
  53. package/dist/cdn/{7QCFIGAG.js → MQG7NVTD.js} +1 -1
  54. package/dist/cdn/{MDYXKBBD.js → NEZLKPY2.js} +1 -1
  55. package/dist/cdn/{KCES2YBJ.js → NIJ4EHI5.js} +1 -1
  56. package/dist/cdn/{KQVRPDUR.js → NM4OO5YU.js} +1 -1
  57. package/dist/cdn/{WGKEYRHI.js → NO4VCKIK.js} +1 -1
  58. package/dist/cdn/{LVKFQ36J.js → NYZ237BW.js} +1 -1
  59. package/dist/cdn/{K2PVH6WC.js → OPADFZDX.js} +1 -1
  60. package/dist/cdn/{B2NT7BMA.js → OSVQNJ2P.js} +1 -1
  61. package/dist/cdn/{QH67KX5R.js → P6L3V5ZK.js} +2 -2
  62. package/dist/cdn/{FZJIUJA5.js → PL7MI5YT.js} +1 -1
  63. package/dist/cdn/{SR3ZVQU3.js → Q6BX3XAH.js} +1 -1
  64. package/dist/cdn/{NTDDQAKJ.js → QJWTSQQU.js} +1 -1
  65. package/dist/cdn/{PJTM63EA.js → RF5ZHOUK.js} +1 -1
  66. package/dist/cdn/{6KVXTLIC.js → RI756YEJ.js} +1 -1
  67. package/dist/cdn/{M5ZGHJP4.js → RJ2Y7JHV.js} +1 -1
  68. package/dist/cdn/{EMJQHL2T.js → RJ7YN4N5.js} +1 -1
  69. package/dist/cdn/{5ULER4YN.js → RPNCN55D.js} +1 -1
  70. package/dist/cdn/{6OOWQDFB.js → RUYG5XKF.js} +1 -1
  71. package/dist/cdn/{743FPGT4.js → RV7GNNST.js} +1 -1
  72. package/dist/cdn/{SZKPEUN5.js → S43LUG32.js} +1 -1
  73. package/dist/cdn/{BUN3G5US.js → S5TDCVHM.js} +1 -1
  74. package/dist/cdn/{JGGBN4YB.js → SE6CNVZX.js} +1 -1
  75. package/dist/cdn/{QPY7Y5TQ.js → SJLIHX7G.js} +1 -1
  76. package/dist/cdn/{Q3JWIFPJ.js → T4OM7MKJ.js} +1 -1
  77. package/dist/cdn/{GPPFULKZ.js → U3IW423I.js} +1 -1
  78. package/dist/cdn/{2KKIGZQN.js → U4O47D36.js} +1 -1
  79. package/dist/cdn/{IRG22MBH.js → UJRTXJNX.js} +1 -1
  80. package/dist/cdn/{WJVFKW47.js → UPTO3LTH.js} +1 -1
  81. package/dist/cdn/USNJZCHH.js +2 -0
  82. package/dist/cdn/{54XEAJ7U.js → V3M6E7SI.js} +1 -1
  83. package/dist/cdn/{DBL7YAA3.js → V5OAZMFF.js} +1 -1
  84. package/dist/cdn/{WMUPNT4Q.js → WDMYVS4F.js} +1 -1
  85. package/dist/cdn/{5LWQLRYG.js → WFMWMNU7.js} +1 -1
  86. package/dist/cdn/{FQXTBPWM.js → X3S24JSK.js} +1 -1
  87. package/dist/cdn/{R6DTHFYW.js → XPZCZV3I.js} +1 -1
  88. package/dist/cdn/{B5EBQSZO.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 +3136 -3029
  93. package/dist/chunks/index4.js +11 -7
  94. package/dist/chunks/serial-chart-data.js +434 -428
  95. package/dist/components/arcgis-chart/customElement.d.ts +247 -69
  96. package/dist/components/arcgis-chart/customElement.js +2301 -2301
  97. package/dist/docs/api.json +1 -1
  98. package/dist/docs/docs.json +1 -1
  99. package/dist/docs/vscode.html-custom-data.json +1 -1
  100. package/dist/docs/web-types.json +1 -1
  101. package/dist/json-schema/index.d.ts +4 -0
  102. package/dist/spec/data-source.d.ts +2 -0
  103. package/dist/utils/chart-config/utils/index.d.ts +2 -2
  104. package/dist/utils/data/index.d.ts +7 -7
  105. package/dist/utils/defaults/interfaces.d.ts +1 -1
  106. package/dist/utils/layer/query-features/index.d.ts +7 -3
  107. package/dist/utils/layer/query-parser/index.d.ts +6 -3
  108. package/package.json +5 -5
  109. package/dist/cdn/SCU3SBSN.js +0 -2
  110. package/dist/cdn/SUUDJODL.js +0 -2
  111. package/dist/cdn/XHLNNBJC.js +0 -3
  112. /package/dist/cdn/{EXS2KOEA.js → 274L47ID.js} +0 -0
  113. /package/dist/cdn/{GP3LPIRJ.js → 3QPQ3RE5.js} +0 -0
  114. /package/dist/cdn/{A2NFOGT2.js → 47E3TKSH.js} +0 -0
  115. /package/dist/cdn/{3FZCVKWJ.js → 4BQ22DKZ.js} +0 -0
  116. /package/dist/cdn/{IUOORM26.js → 64F7QNUM.js} +0 -0
  117. /package/dist/cdn/{CL5G6D6W.js → 6LACIKDG.js} +0 -0
  118. /package/dist/cdn/{UB36FUCN.js → 6PDO75JM.js} +0 -0
  119. /package/dist/cdn/{TSSN2OW3.js → 6WJKLKEZ.js} +0 -0
  120. /package/dist/cdn/{DJPMW6UC.js → 7PC3VBMY.js} +0 -0
  121. /package/dist/cdn/{CHMLTTRN.js → 7XHAJY6Q.js} +0 -0
  122. /package/dist/cdn/{ASZ6YFIL.js → ACRMB7MU.js} +0 -0
  123. /package/dist/cdn/{MZ2RZ62O.js → B4RCAP3J.js} +0 -0
  124. /package/dist/cdn/{HQMOMCWF.js → BJC2AIS3.js} +0 -0
  125. /package/dist/cdn/{D3KIBJKD.js → C3A3UXVR.js} +0 -0
  126. /package/dist/cdn/{3CGAUDYD.js → CKIF4L44.js} +0 -0
  127. /package/dist/cdn/{3GVTYZ2I.js → DWYBKGOM.js} +0 -0
  128. /package/dist/cdn/{PEEVY5UG.js → EQD2B3I6.js} +0 -0
  129. /package/dist/cdn/{VT6X6QMA.js → FBLOPEXC.js} +0 -0
  130. /package/dist/cdn/{HSQ32NUA.js → GBOCN364.js} +0 -0
  131. /package/dist/cdn/{HBOYEK6P.js → HDYL2BOC.js} +0 -0
  132. /package/dist/cdn/{CVJSVWF3.js → HP3GIDT5.js} +0 -0
  133. /package/dist/cdn/{OSUM4CWA.js → IR2W7UQ3.js} +0 -0
  134. /package/dist/cdn/{TGEHTOWR.js → J3VAMS5Z.js} +0 -0
  135. /package/dist/cdn/{LHDBHPXR.js → JWEGCP5P.js} +0 -0
  136. /package/dist/cdn/{V7AEHY25.js → K2PVLPOV.js} +0 -0
  137. /package/dist/cdn/{AZMQPJO3.js → LC4YFJSM.js} +0 -0
  138. /package/dist/cdn/{VNNTABNO.js → MGAMMXJW.js} +0 -0
  139. /package/dist/cdn/{7WVTY3XI.js → MSB6J66X.js} +0 -0
  140. /package/dist/cdn/{CDJRYMBP.js → NWHLFMAD.js} +0 -0
  141. /package/dist/cdn/{22WGB4CQ.js → PMAHEVYY.js} +0 -0
  142. /package/dist/cdn/{4EBMUPEV.js → PQVUA4T4.js} +0 -0
  143. /package/dist/cdn/{KOCZJFY6.js → Q2OIHROC.js} +0 -0
  144. /package/dist/cdn/{4VL2SBHK.js → Q2WDEGUQ.js} +0 -0
  145. /package/dist/cdn/{WKQB6Z7Z.js → XDNGNOOK.js} +0 -0
  146. /package/dist/cdn/{AZKX3FMB.js → XJVFIGWI.js} +0 -0
  147. /package/dist/cdn/{PAQGR4DD.js → Y2NESTSK.js} +0 -0
  148. /package/dist/cdn/{MVCB4RM7.js → YFHCD7R2.js} +0 -0
  149. /package/dist/cdn/{CMGCZ4MF.js → YW6IZCRW.js} +0 -0
  150. /package/dist/cdn/{JZ5HUNM5.js → ZK2KMZEI.js} +0 -0
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as w } from "@arcgis/core/intl.js";
3
- import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
4
- import { S as ne } from "./common.js";
5
- import { s as D, u as E, 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 J, 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 ut, dz as ct, c7 as dt, B as yt, N as Se, bL as Z, dv as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
- import { a as M, s as ge, g as ee, 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";
2
+ import { substitute as E } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
4
+ import { S as oe } from "./common.js";
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 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
+ 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 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
- import { i as te } from "./index4.js";
11
- import { aD as Bt, K as Q, F as ue, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
- import { C as q, F as X, d as R } from "./index3.js";
10
+ import { i as se } from "./index4.js";
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 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
- import { d as ce, f as Ot } from "./type-guards.js";
15
+ import { d as ue, f as Ot } from "./type-guards.js";
16
16
  import { C as Vt, m as kt } from "./model-setter.js";
17
- import { g as se } from "./utils2.js";
17
+ import { g as ie } from "./utils2.js";
18
18
  import { a as Rt, b as qt } from "./series-length.js";
19
19
  const Ds = (s) => {
20
20
  let e;
@@ -59,20 +59,20 @@ const Ds = (s) => {
59
59
  }, Mt = (s) => {
60
60
  Pt(0, s);
61
61
  };
62
- var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, a) => {
63
- for (var i = Yt(e, t), r = s.length - 1, n; r >= 0; r--)
64
- (n = s[r]) && (i = n(e, t, i) || i);
62
+ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, r) => {
63
+ for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
64
+ (n = s[a]) && (i = n(e, t, i) || i);
65
65
  return i && $t(e, t, i), i;
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((a) => {
75
- (a.type === T.BarSeries || a.type === T.RadarSeries || a.type === T.LineSeries) && (s ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
74
+ Y(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
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
  };
78
78
  class Xt extends Vt {
@@ -109,97 +109,100 @@ function Ms(s, e) {
109
109
  return e != null || De(s);
110
110
  }
111
111
  async function $s(s) {
112
- const { config: e, layer: t, abortSignal: a } = s;
112
+ const { config: e, layer: t, abortSignal: r } = s;
113
113
  let i = !1;
114
- return ce(t) || Ot(e) ? e && ce(t) && (i = await Ke({ config: e, layer: t, abortSignal: a })) : i = !0, i;
114
+ return ue(t) || Ot(e) ? e && ue(t) && (i = await Ke({ config: e, layer: t, abortSignal: r })) : i = !0, i;
115
115
  }
116
116
  async function jt(s) {
117
117
  const {
118
118
  queryObject: e,
119
119
  chartConfig: t,
120
- splitByField: a,
120
+ splitByField: r,
121
121
  errorStrings: i,
122
- abortSignal: r,
122
+ abortSignal: a,
123
123
  runtimeDataFilters: n,
124
124
  ignoreViewExtent: o,
125
125
  setTimeBinningInfoWhenNotProvided: l,
126
126
  returnFeaturesExtent: c,
127
- chartLimits: p
127
+ returnStatisticsAggregatedIds: p,
128
+ chartLimits: f
128
129
  } = s;
129
- let g = [], d;
130
- const m = G(t), y = m.series[0], u = 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 (u.outStatistics?.[0]?.outStatisticFieldName && (u.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
- }) && lt(a, e)) {
142
- const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
143
- chartConfig: m,
144
- queryConfig: u,
142
+ }) && lt(r, e)) {
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
148
  returnFeaturesExtent: c,
148
- chartLimits: p
149
- }), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
150
- d = await ut({
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
- splitByField: a,
154
- queryConfig: x,
155
- axisTimeZone: f,
156
- temporalBinning: S,
153
+ dateField: h,
154
+ splitByField: r,
155
+ queryConfig: S,
156
+ axisTimeZone: b,
157
+ temporalBinning: F,
158
+ returnStatisticsAggregatedIds: p,
157
159
  errorStrings: i,
158
- abortSignal: r
159
- }), g = Array.from(
160
+ abortSignal: a
161
+ }), u = Array.from(
160
162
  new Set(
161
- d.flatMap((A) => {
162
- const { stackedAttributes: b } = A;
163
- let B = [];
164
- return b && (B = b.map((C) => C[a]).filter((C) => C !== 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: u,
174
+ queryConfig: g,
173
175
  setTimeBinningInfoWhenNotProvided: l,
174
176
  returnFeaturesExtent: c,
175
- chartLimits: p
176
- }), { elementCount: F } = await ct({
177
- chartConfig: m,
177
+ chartLimits: f
178
+ }), { elementCount: h } = await ut({
179
+ chartConfig: d,
178
180
  queryObject: e,
179
- queryConfig: u,
180
- behaviorAfterLimit: p?.behaviorAfterLimit,
181
- numberMaxOfFeaturesToFetch: S.num,
182
- abortSignal: r
181
+ queryConfig: g,
182
+ behaviorAfterLimit: f?.behaviorAfterLimit,
183
+ numberMaxOfFeaturesToFetch: F.num,
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
- abortSignal: r
190
- }), g = Array.from(
192
+ abortSignal: a
193
+ }), u = Array.from(
191
194
  new Set(
192
- d.map((x) => x.attributes[a]).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();
200
- return s.series.forEach((a) => {
203
+ return s.series.forEach((r) => {
201
204
  let i = me({
202
- where: a.query?.where,
205
+ where: r.query?.where,
203
206
  // normalize the value so it matches what we get from getAllValues()
204
207
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
205
208
  normalize: !0,
@@ -208,93 +211,95 @@ function Kt(s, e) {
208
211
  escape: !1
209
212
  });
210
213
  e && i !== null && (i = Number(i));
211
- const r = Ve([a]);
212
- r !== void 0 && t.set(r, [
213
- ...t.get(r) ?? [],
214
+ const a = Ve([r]);
215
+ a !== void 0 && t.set(a, [
216
+ ...t.get(a) ?? [],
214
217
  i
215
218
  ]);
216
219
  }), t;
217
220
  }
218
221
  function Zt(s) {
219
- const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = s, i = /* @__PURE__ */ new Map();
220
- return Array.from(t.keys()).forEach((r) => {
221
- const n = t.get(r) ?? [];
222
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
223
+ return Array.from(t.keys()).forEach((a) => {
224
+ const n = t.get(a) ?? [];
222
225
  let o = [];
223
- a ? o = e : e.forEach((l) => {
226
+ r ? o = e : e.forEach((l) => {
224
227
  n.includes(l) || o.push(l);
225
- }), i.set(r, o);
228
+ }), i.set(a, o);
226
229
  }), i;
227
230
  }
228
231
  function _t(s) {
229
- const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: i } = s, r = JSON.parse(
232
+ const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
230
233
  JSON.stringify({
231
234
  ...e.series[0],
232
235
  ...i
233
236
  })
234
237
  );
235
- if (r.query) {
236
- if (t === null ? r.id = X.nullValue : t === "" ? r.id = X.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
237
- const o = r.id;
238
- r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
238
+ if (a.query) {
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) {
240
+ const o = a.id;
241
+ a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
239
242
  }
240
243
  const n = typeof t == "number" || t === null ? t : `'${t}'`;
241
- r.query.where = `${a}=${n}`;
244
+ a.query.where = `${r}=${n}`;
242
245
  }
243
- return r;
246
+ return a;
244
247
  }
245
248
  async function Qt(s) {
246
249
  const {
247
250
  updateSplitBySeries: e,
248
251
  config: t,
249
- queryObject: a,
252
+ queryObject: r,
250
253
  errorStrings: i,
251
- abortSignal: r,
254
+ abortSignal: a,
252
255
  runtimeDataFilters: n,
253
256
  ignoreViewExtent: o,
254
257
  setTimeBinningInfoWhenNotProvided: l,
255
258
  returnFeaturesExtent: c,
256
- chartLimits: p
257
- } = s, { seriesTemplate: g } = e ?? {};
258
- let d;
259
- if (a && !ce(a) && 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);
262
- const y = J(t.series);
263
- if (y === q.BoxPlotMonoFieldAndSplitBy || y === q.BoxPlotMultiFieldsAndSplitBy || y === q.BoxPlotMonoFieldAndCategoryAndSplitBy || y === q.BarAndLineSplitBy || y === q.BarAndLineSplitByNoAggregation) {
264
- const u = et(t.series[0]?.query?.where), S = tt(a), F = st(u, S), x = F ? it(F) : !1, f = await jt({
265
- queryObject: a,
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);
266
+ const y = ee(t.series);
267
+ if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
269
+ queryObject: r,
266
270
  chartConfig: t,
267
- splitByField: u,
268
- abortSignal: r,
271
+ splitByField: g,
272
+ abortSignal: a,
269
273
  runtimeDataFilters: n,
270
274
  ignoreViewExtent: o,
271
275
  setTimeBinningInfoWhenNotProvided: l,
272
276
  returnFeaturesExtent: c,
273
- chartLimits: p,
277
+ returnStatisticsAggregatedIds: p,
278
+ chartLimits: f,
274
279
  errorStrings: i
275
- }), { allValues: A } = f;
276
- if ({ preFetchedQueryResponse: d } = f, A.length > 0) {
277
- const b = Kt(t, x), B = Zt({
278
- allValues: A,
279
- configUniqueValuesPerSeriesType: b,
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((C) => {
283
- (B.get(C) ?? []).forEach(($) => {
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: $,
289
- splitByField: u
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 }));
@@ -303,89 +308,91 @@ async function Ys(s) {
303
308
  const {
304
309
  configToAlter: e,
305
310
  layer: t,
306
- addMissingSeries: a,
311
+ addMissingSeries: r,
307
312
  updateSplitBySeries: i,
308
- chartContainer: r,
313
+ chartContainer: a,
309
314
  queryObject: n,
310
315
  abortSignal: o,
311
316
  runtimeDataFilters: l,
312
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 u = e, S;
320
- return u && (zt(t, u), u = await Nt(u, t, void 0, o), a && 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: u,
328
+ config: g,
323
329
  queryObject: n,
324
330
  errorStrings: y,
325
331
  abortSignal: o,
326
332
  runtimeDataFilters: l,
327
333
  ignoreViewExtent: c,
328
334
  setTimeBinningInfoWhenNotProvided: p,
329
- returnFeaturesExtent: g,
330
- chartLimits: d
331
- })), u = je(u, r), ke(m, u)), { alteredConfig: u, 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;
335
342
  if (e !== void 0) {
336
- const a = at({ key: yt.Average, splitBy: e });
337
- t = Number.isFinite(s[a]);
343
+ const r = at({ key: yt.Average, splitBy: e });
344
+ t = Number.isFinite(s[r]);
338
345
  }
339
346
  return t;
340
347
  }
341
348
  function Ws(s) {
342
- const { data: e, config: t, showEmptySeries: a } = s, i = t.series.length, r = G(t);
349
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
343
350
  let n = !1;
344
- if (!a && i > 1 && e) {
345
- const o = Ze(e), l = Ve(t?.series), c = J(t?.series), p = /* @__PURE__ */ new Set();
351
+ if (!r && i > 1 && e) {
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
- r.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, c === q.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
355
- (u) => Ge({
356
- dataItem: u,
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, u;
371
- m.type === T.BoxPlotSeries ? (y = e.dataItems, u = 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, u = y?.some(
378
- (S) => Gt(S, m.query?.where)
379
- )), u && 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 && (r.series = g);
392
+ const f = Array.from(p.values());
393
+ n = f.length > 0 && f.length < i, n && (a.series = f);
387
394
  }
388
- return { seriesFilteredOut: n, filteredConfig: r };
395
+ return { seriesFilteredOut: n, filteredConfig: a };
389
396
  }
390
397
  const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
391
398
  s.hideEmptyRowsAndColumns = e;
@@ -396,47 +403,47 @@ 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: a, commonStrings: i } = s, { layerFieldsInfo: r } = a, n = se(1, t), o = Jt(t), l = te(t), c = t.series[0];
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];
400
407
  if (typeof e == "string" && o !== e && c) {
401
408
  if (c.y = e, Ut(t), o === n || l) {
402
- const p = R(r, e);
403
- E(t, 1, p);
409
+ const p = R(a, e);
410
+ $(t, 1, p);
404
411
  }
405
- Re({ commonStrings: i, config: t, layerInfo: a });
412
+ Re({ commonStrings: i, config: t, layerInfo: r });
406
413
  }
407
414
  }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
408
- const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
409
- if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
410
- const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
411
- E(t, 0, r);
415
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
416
+ if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
417
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
+ $(t, 0, a);
412
419
  }
413
- z({ axisIndex: 0, commonStrings: a, config: t });
420
+ G({ axisIndex: 0, commonStrings: r, config: t });
414
421
  }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
415
- const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
416
- if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
417
- const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
- E(t, 1, r);
422
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
423
+ if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
424
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
425
+ $(t, 1, a);
419
426
  }
420
- z({ axisIndex: 1, commonStrings: a, config: t });
427
+ G({ axisIndex: 1, commonStrings: r, config: t });
421
428
  }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
422
429
  e.orderOptions ??= {};
423
- const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[1], n = {
430
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
424
431
  ...e.orderOptions.data ?? {},
425
432
  orderType: L.MultiAxes
426
433
  };
427
- a === ne.customSort && t === L.Category && (n.orderByX = [...s]), r === ne.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
434
+ r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
428
435
  }, Gs = (s, e) => {
429
436
  const t = e.series[0];
430
437
  t.gridLine && (t.gridLine.width = s);
431
438
  }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
432
- const t = e.series[0], a = s?.length === 4 && s.every((i) => typeof i == "number");
433
- t.gridLine && a && (t.gridLine.color = s);
439
+ const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
440
+ t.gridLine && r && (t.gridLine.color = s);
434
441
  }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
435
442
  const t = e.legend;
436
443
  t && (t.position = s);
437
444
  }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
438
- const { field: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0].query?.outStatistics?.[0], n = re(t, a, i);
439
- r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
445
+ const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
446
+ a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
440
447
  outStatistics: [
441
448
  {
442
449
  onStatisticField: e,
@@ -444,13 +451,13 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
444
451
  statisticType: v.Count
445
452
  }
446
453
  ]
447
- }, n && t.title && (t.title.content.text = j(t, a, i));
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
- const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0]?.query?.outStatistics?.[0], n = re(t, a, i);
450
- r && e !== v.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = j(t, a, i));
456
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(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
- }, ui = (s) => s.series[0].emptyCells, ci = (s, e) => {
460
+ }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
454
461
  e.series[0].emptyCells = s;
455
462
  }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
456
463
  e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
@@ -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;
@@ -519,10 +526,10 @@ const as = [
519
526
  k.MonthOfYear
520
527
  ], Te = (s) => {
521
528
  let e;
522
- return Z(s) ? e = ue() : (Y(s) || _(s)) && (e = Q()), e;
523
- }, Be = (s) => Y(s) || _(s), Ce = (s) => {
524
- const { axisIndex: e, commonStrings: t, config: a, valueFormat: i } = s, r = a.axes?.[e]?.valueFormat;
525
- i !== void 0 && r?.type !== i.type && Ie({ config: a, commonStrings: t, valueFormat: i, axisIndex: e });
529
+ return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
530
+ }, Be = (s) => q(s) || Q(s), Ce = (s) => {
531
+ const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
532
+ i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
526
533
  }, rs = (s, e) => {
527
534
  let t;
528
535
  return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
@@ -548,7 +555,7 @@ const as = [
548
555
  e = { month: "short" };
549
556
  break;
550
557
  default:
551
- e = Q().intlOptions;
558
+ e = z().intlOptions;
552
559
  break;
553
560
  }
554
561
  return {
@@ -556,23 +563,23 @@ const as = [
556
563
  intlOptions: e
557
564
  };
558
565
  }, ve = (s) => {
559
- const { axisIndex: e, binning: t, commonStrings: a, config: i, fieldName: r, layerInfo: n } = s, o = i.series[0], l = se(e, i), c = R(n.layerFieldsInfo, r);
560
- e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(a, t.unit) || l === a.xAxis) && E(i, e, be(a, t.unit));
561
- }, z = (s) => {
562
- const { axisIndex: e, commonStrings: t, config: a } = s, i = rs(a, e), r = i ? ns(i) : void 0;
563
- Ie({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
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));
568
+ }, G = (s) => {
569
+ const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
570
+ Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
564
571
  }, Re = (s) => {
565
- const { commonStrings: e, config: t, layerInfo: a } = s, i = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Se(a.layerFieldsInfo, i), o = Se(a.layerFieldsInfo, r), l = Te(n), c = Te(o), p = Be(n) && Be(o), g = Z(n) && Z(o);
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);
566
573
  if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
567
- const d = es(t) === void 0, m = ts(t) === void 0;
568
- d && (ve({
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,
572
579
  config: t,
573
580
  fieldName: i,
574
- layerInfo: a
575
- }), z({
581
+ layerInfo: r
582
+ }), G({
576
583
  axisIndex: 0,
577
584
  commonStrings: e,
578
585
  config: t
@@ -581,15 +588,15 @@ const as = [
581
588
  binning: Ae(1, t.series[0].xTemporalBinning),
582
589
  commonStrings: e,
583
590
  config: t,
584
- fieldName: r,
585
- layerInfo: a
586
- }), z({
591
+ fieldName: a,
592
+ layerInfo: r
593
+ }), G({
587
594
  axisIndex: 1,
588
595
  commonStrings: e,
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 = {};
@@ -597,30 +604,30 @@ function os(s) {
597
604
  Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
598
605
  }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
599
606
  }
600
- function ie(s) {
601
- const { seriesIndex: e, xAxisField: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, o = U(r?.layer).idField;
607
+ function ae(s) {
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
610
  const c = i.series[e ?? 0];
604
- let p = !1, g = !1, d = !1;
611
+ let p = !1, f = !1, u = !1;
605
612
  if (c === void 0) {
606
613
  const B = i.series;
607
- p = B.slice(0, e).every((C) => O(C)), g = B.slice(0, e).every((C) => V(C)), d = B.slice(0, e).every((C) => Fe(C));
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(c), g = V(c), d = Fe(c);
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, u = "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, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, b = {
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,227 +637,227 @@ function ie(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
- ...u !== void 0 ? { binTemporalData: u } : {},
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
- if (b.query = {
647
+ if (C.query = {
641
648
  groupByFieldsForStatistics: [t],
642
- ...A !== void 0 ? { fetchNullValues: A } : {}
643
- }, a !== v.NoAggregation && o !== void 0) {
644
- const B = `${a}_${o}_0`.toUpperCase();
645
- b.y = B, b.query.outStatistics = [
649
+ ...b !== void 0 ? { fetchNullValues: b } : {}
650
+ }, r !== v.NoAggregation && o !== void 0) {
651
+ const B = `${r}_${o}_0`.toUpperCase();
652
+ C.y = B, C.query.outStatistics = [
646
653
  {
647
- statisticType: a,
654
+ statisticType: r,
648
655
  onStatisticField: o,
649
656
  outStatisticFieldName: B
650
657
  }
651
658
  ];
652
659
  }
653
- if (I(i.series[0]) && I(b)) {
660
+ if (I(i.series[0]) && I(C)) {
654
661
  let B = wt(i);
655
- B === le.Quarter && (B = le.Month), b.temporalBinning = {
662
+ B === le.Quarter && (B = le.Month), C.temporalBinning = {
656
663
  ...i.series[0]?.temporalBinning,
657
664
  unit: B
658
665
  };
659
666
  }
660
- return G(b);
667
+ return J(C);
661
668
  }
662
- function j(s, e, t) {
663
- const { layerFieldsInfo: a } = e, { idField: i, isTraditionalTypeOID: r } = U(e.layer), n = M(s), o = K(s), l = we(s), c = ae(s), p = r && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(a ?? [], f)).join(", "), m = R(a ?? [], n), y = R(a ?? [], c), u = s.series.some((f) => P(f)), S = u ? "category" : "xAxisField", F = m;
664
- let x = "";
669
+ function K(s, e, t) {
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
- fieldList: a
675
+ fieldList: r
669
676
  }))
670
- x = w(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;
682
+ const S = p ? i : u;
676
683
  if (c === "") {
677
- const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
678
- x = w(t.titleLabels[A], {
679
- aggregationType: f,
680
- [S]: F
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 A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
684
- x = w(t.titleLabels[A], {
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
698
  if (c === "") {
692
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
693
- x = w(t.titleLabels[f], {
694
- aggregationType: g,
695
- [S]: F
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 = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
699
- x = w(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
712
  else if (c !== "") {
706
- const f = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
707
- x = w(t.titleLabels[f], {
708
- aggregationType: g,
709
- aggregationField: d,
710
- [S]: F,
711
- splitByField: y
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 = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
715
- x = w(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,
725
732
  normalize: !1,
726
733
  escape: !1
727
- }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, ae = We(
734
+ }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = We(
728
735
  (s) => {
729
736
  const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
730
737
  return gt(s?.series?.[0]?.query?.where) ? "" : e;
731
738
  },
732
739
  (s) => s?.series?.[0]?.query?.where
733
- ), K = (s) => {
740
+ ), Z = (s) => {
734
741
  let e = [];
735
- if (ae(s) === "")
742
+ if (re(s) === "")
736
743
  e = s?.series.map((t) => {
737
- const a = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
738
- return a?.length > 0 ? a : t.y;
744
+ const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
745
+ return r?.length > 0 ? r : t.y;
739
746
  }).flat() ?? [];
740
747
  else {
741
- const t = s?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
742
- e = a !== void 0 ? [a] : [];
748
+ const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
749
+ e = r !== void 0 ? [r] : [];
743
750
  }
744
751
  return e.filter((t) => t !== "");
745
752
  };
746
753
  function Pe(s) {
747
- const { splitByField: e, numericFields: t, layer: a, seriesIndex: i } = s, r = U(a).idField ?? "";
748
- return e === "" ? t[i] ?? r : t[0] ?? r;
754
+ const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
755
+ return e === "" ? t[i] ?? a : t[0] ?? a;
749
756
  }
750
757
  function ls(s) {
751
- const { numericFields: e, aggregationType: t, config: a, layerInfo: i } = s;
752
- let r = !1;
753
- t === v.Count ? r = !0 : t === v.NoAggregation && (r = e.every((l) => {
758
+ const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
759
+ let a = !1;
760
+ t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
754
761
  const c = i.layerFieldsInfo.find((p) => p.name === l);
755
762
  return c !== void 0 ? xe(c) : !1;
756
- })), pe(a, 1, r);
757
- const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
763
+ })), pe(r, 1, a);
764
+ const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
758
765
  if (n || o) {
759
- const l = M(a), c = i.layerFieldsInfo.find((g) => g.name === l), p = c !== void 0 && xe(c);
760
- pe(a, 0, p);
766
+ const l = P(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
+ pe(r, 0, p);
761
768
  }
762
769
  }
763
770
  const de = (s) => {
764
771
  let e;
765
- if (W(s)) {
766
- const t = s.orderOptions?.data?.orderByX ?? [""], a = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
767
- e = [he(t, i), he(a, r)];
772
+ if (Y(s)) {
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;
774
+ e = [he(t, i), he(r, a)];
768
775
  } else {
769
- const t = s.orderOptions?.data?.orderType ?? L.Category, a = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
770
- e = [St(a, t)];
776
+ const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
777
+ e = [St(r, t)];
771
778
  }
772
779
  return e;
773
780
  };
774
- function us(s) {
775
- const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = ie({
781
+ function cs(s) {
782
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
776
783
  config: i,
777
784
  xAxisField: e,
778
- aggregationType: a,
779
- layerInfo: r,
785
+ aggregationType: r,
786
+ layerInfo: a,
780
787
  seriesIndex: 0,
781
788
  commonStrings: n
782
- }), c = ee({
789
+ }), c = te({
783
790
  config: i,
784
791
  xAxisField: e,
785
792
  numericFields: t,
786
- aggregationType: a,
787
- layer: r.layer,
793
+ aggregationType: r,
794
+ layer: a.layer,
788
795
  fieldList: o
789
- }).name, p = M(i), g = K(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, u = d?.name ?? n.axisLabels.values, F = {
794
- ...d ?? l,
795
- id: y,
796
- name: u,
797
- x: oe,
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,
804
+ x: U,
798
805
  y: c
799
- }, x = [];
800
- for (const f of t)
801
- x.push({
802
- onStatisticField: f,
803
- outStatisticFieldName: `${f}_0`.toUpperCase(),
804
- statisticType: a
806
+ }, h = [];
807
+ for (const S of t)
808
+ h.push({
809
+ onStatisticField: S,
810
+ outStatisticFieldName: `${S}_0`.toUpperCase(),
811
+ statisticType: r
805
812
  });
806
- return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), P(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: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = U(r.layer).idField, c = [];
810
- for (let y = 0; y < t.length; y += 1) {
811
- const u = ie({
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
- aggregationType: a,
815
- layerInfo: r,
816
- seriesIndex: y,
821
+ aggregationType: r,
822
+ layerInfo: a,
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 : ee({
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
- aggregationType: a,
823
- layer: r.layer,
824
- numericFieldIndex: y,
829
+ aggregationType: r,
830
+ layer: a.layer,
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
- ), A = x !== l ? x : u.id, b = f?.id ?? A, B = f?.name ?? R(o, x) ?? b, C = f ?? u, h = {
829
- ...C,
830
- id: b,
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 = {
836
+ ...A,
837
+ id: C,
831
838
  name: B
832
839
  };
833
- let $ = x;
834
- h.query !== void 0 && (a !== v.NoAggregation ? ($ = 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
- ...C.query?.outStatistics?.[0] ?? {},
837
- onStatisticField: x,
843
+ ...A.query?.outStatistics?.[0] ?? {},
844
+ onStatisticField: h,
838
845
  outStatisticFieldName: F,
839
- statisticType: a
846
+ statisticType: r
840
847
  }
841
- ]) : delete h.query.outStatistics), h.y = $, c.push(h);
848
+ ]) : delete x.query.outStatistics), x.y = X, c.push(x);
842
849
  }
843
- const p = c.filter((y) => P(y)), g = c.filter(
844
- (y) => O(y) || V(y)
845
- ), d = i.series.filter((y) => P(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 && P(d[0]) && P(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)), c;
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: a, commonStrings: i } = s, { layerFieldsInfo: r, layer: n } = a, o = M(t), l = K(t), c = ae(t), p = re(t, a, i), g = $e(t, a, i);
852
- if (t.series.forEach((d, m) => {
853
- const y = ee({
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,
@@ -859,100 +866,100 @@ function Di(s) {
859
866
  layer: n,
860
867
  seriesIndex: m,
861
868
  numericFieldIndex: m,
862
- fieldList: r
869
+ fieldList: a
863
870
  }).name;
864
- d.y = y;
865
- const u = Pe({
871
+ u.y = d;
872
+ const y = Pe({
866
873
  splitByField: c,
867
874
  numericFields: l,
868
875
  layer: n,
869
876
  seriesIndex: m
870
- }), S = d.query?.outStatistics?.[0]?.onStatisticField ?? u;
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 = j(t, a, 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
- layerInfo: a,
892
+ layerInfo: r,
886
893
  commonStrings: i,
887
894
  numericFields: l,
888
895
  aggregationType: e
889
896
  });
890
- E(t, 1, d);
897
+ $(t, 1, u);
891
898
  }
892
899
  }
893
- function cs(s) {
900
+ function us(s) {
894
901
  const {
895
902
  splitByField: e,
896
903
  xAxisField: t,
897
- numericFields: a,
904
+ numericFields: r,
898
905
  aggregationType: i,
899
- config: r,
906
+ config: a,
900
907
  layerInfo: n,
901
908
  commonStrings: o,
902
909
  splitByFieldInfos: l
903
- } = s, { layer: c, 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
- numericFields: a,
912
+ numericFields: r,
906
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
- numericFields: a,
920
+ numericFields: r,
914
921
  aggregationType: i,
915
- config: r,
922
+ config: a,
916
923
  layerInfo: n,
917
924
  commonStrings: o
918
925
  });
919
- for (const u of y)
920
- u.query && (u.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
921
928
  } else
922
- for (let u = 0; u < g.length; u += 1) {
923
- const S = g[u], F = ee({
924
- config: r,
929
+ for (let y = 0; y < f.length; y += 1) {
930
+ const g = f[y], F = te({
931
+ config: a,
925
932
  xAxisField: t,
926
- numericFields: a,
933
+ numericFields: r,
927
934
  aggregationType: i,
928
935
  layer: n.layer,
929
- seriesIndex: u,
936
+ seriesIndex: y,
930
937
  splitByField: e,
931
938
  fieldList: p
932
- }).name, x = ie({
933
- config: r,
939
+ }).name, h = ae({
940
+ config: a,
934
941
  xAxisField: t,
935
942
  aggregationType: i,
936
943
  layerInfo: n,
937
- seriesIndex: u,
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
- }), A = `${S}`, b = r.series.find(
944
- (N) => String(qe(N)).trim().replace(/'/gu, "") === A
945
- ), B = b?.id ?? A, C = b?.name ?? f ?? B, h = b ?? x, $ = {
946
- ...h,
949
+ fieldValue: g ?? ""
950
+ }), b = `${g}`, C = a.series.find(
951
+ (N) => String(qe(N)).trim().replace(/'/gu, "") === b
952
+ ), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, X = {
953
+ ...x,
947
954
  id: B,
948
- name: C,
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,75 +967,74 @@ function cs(s) {
960
967
  ] : void 0
961
968
  }
962
969
  };
963
- y.push($);
970
+ d.push(X);
964
971
  }
965
- return y;
972
+ return d;
966
973
  }
967
974
  const Ni = (s) => {
968
975
  const {
969
976
  xAxisFieldName: e,
970
977
  splitByField: t,
971
- numericFields: a,
978
+ numericFields: r,
972
979
  aggregationType: i,
973
- config: r,
980
+ config: a,
974
981
  layerInfo: n,
975
982
  commonStrings: o,
976
983
  splitByFieldInfos: l
977
- } = s, { layerFieldsInfo: c } = n ?? {}, p = G(r), g = Rt(r), d = M(p), m = c.find((h) => h.name === d), y = r.series[0]?.query === void 0, u = c.find((h) => h.name === e), S = re(p, n, o), F = $e(p, n, o), x = ds(p, n);
978
- let f = Le(r);
979
- const A = p.series.some((h) => P(h)), b = pt(p.series), B = ft(p.series);
980
- let C = !1;
981
- if (Z(u) ? f = ue() : !_(m) && _(u) ? (f = Q(), C = !0) : !Y(m) && Y(u) ? (f = Q(), C = !0) : Y(m) && !Y(u) && (A ? f = ue() : f = Lt(), C = !0), f !== void 0 && Xe(r, o, f), g === 0 && (r.series = [
982
- ie({ config: r, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
983
- ]), r.series.forEach((h) => {
984
- h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
985
- }), t === "" || a.length > 1 ? ge({
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 = [
988
+ ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
+ ]), a.series.forEach((x) => {
990
+ x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
991
+ }), t === "" || r.length > 1 ? ge({
986
992
  fieldName: e,
987
- numericFields: a,
993
+ numericFields: r,
988
994
  fieldList: c
989
- }) ? r.series = us({
990
- config: r,
995
+ }) ? a.series = cs({
996
+ config: a,
991
997
  layerInfo: n,
992
998
  xAxisField: e,
993
- numericFields: a,
999
+ numericFields: r,
994
1000
  aggregationType: i,
995
1001
  commonStrings: o
996
- }) : r.series = Ee({
997
- config: r,
1002
+ }) : a.series = Ee({
1003
+ config: a,
998
1004
  layerInfo: n,
999
1005
  xAxisField: e,
1000
- numericFields: a,
1006
+ numericFields: r,
1001
1007
  aggregationType: i,
1002
1008
  commonStrings: o
1003
- }) : l && (r.series = cs({
1004
- config: r,
1009
+ }) : l && (a.series = us({
1010
+ config: a,
1005
1011
  layerInfo: n,
1006
1012
  splitByField: t,
1007
1013
  xAxisField: e,
1008
- numericFields: a,
1014
+ numericFields: r,
1009
1015
  aggregationType: i,
1010
1016
  commonStrings: o,
1011
1017
  splitByFieldInfos: l
1012
- })), x && r.series[0].type !== T.HeatSeries) {
1013
- const h = R(c, e);
1014
- E(r, 0, h);
1018
+ })), h && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const x = R(c, e);
1020
+ $(a, 0, x);
1015
1021
  }
1016
- if (F && r.series[0].type !== T.HeatSeries) {
1017
- const h = ye({
1018
- config: r,
1022
+ if (F && a.series[0].type !== T.HeatSeries) {
1023
+ const x = ye({
1024
+ config: a,
1019
1025
  layerInfo: n,
1020
1026
  commonStrings: o,
1021
- numericFields: a,
1027
+ numericFields: r,
1022
1028
  aggregationType: i
1023
1029
  });
1024
- E(r, 1, h);
1030
+ $(a, 1, x);
1025
1031
  }
1026
- if (S && r.title && (r.title.content.text = j(r, n, o)), D({ config: r, value: null, axisIndex: 1, isMax: !1 }), D({ config: r, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: a, aggregationType: i, config: r, layerInfo: n }), (b || B) && (D({ config: r, value: null, axisIndex: 0, isMax: !1 }), D({ config: r, value: null, axisIndex: 0, isMax: !0 }), C && i !== v.NoAggregation && !W(p))) {
1027
- const h = f?.type === T.DateAxisFormat ? H.Null : H.Interpolate;
1028
- Et(h, r);
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);
1029
1035
  }
1030
- W(r) && Re({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((h) => {
1031
- y && delete h.query, I(h) && h.binTemporalData === void 0 && u?.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);
1032
1038
  });
1033
1039
  }, Me = (s, e) => {
1034
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 = {
@@ -1036,60 +1042,60 @@ const Ni = (s) => {
1036
1042
  color: s.markerSymbol?.color
1037
1043
  });
1038
1044
  }, Oi = (s) => {
1039
- const { config: e, seriesIndex: t, layerInfo: a, commonStrings: i } = s, r = e.series?.[t], n = ae(e);
1045
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
1040
1046
  let o;
1041
- if (J(e.series) === q.BarAndLineFromFields)
1047
+ if (ee(e.series) === w.BarAndLineFromFields)
1042
1048
  o = i.axisLabels.values;
1043
1049
  else if (Ye(n)) {
1044
- const c = r.query?.outStatistics?.[0]?.onStatisticField;
1045
- c !== void 0 && c !== U(a.layer).idField && (o = R(a.layerFieldsInfo, c));
1050
+ const c = a.query?.outStatistics?.[0]?.onStatisticField;
1051
+ c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
1046
1052
  } else {
1047
- const c = String(qe(r)).trim().replace(/'/gu, "");
1053
+ const c = String(qe(a)).trim().replace(/'/gu, "");
1048
1054
  o = Ne({
1049
- queryObject: a.layer,
1055
+ queryObject: r.layer,
1050
1056
  fieldName: n,
1051
1057
  fieldValue: c ?? ""
1052
1058
  }) ?? c;
1053
1059
  }
1054
- return o ?? r.id;
1060
+ return o ?? a.id;
1055
1061
  }, Vi = (s, e) => {
1056
- if (W(e))
1062
+ if (Y(e))
1057
1063
  ss(s, e);
1058
1064
  else {
1059
1065
  e.orderOptions ??= {};
1060
1066
  const t = e.orderOptions?.data?.orderType;
1061
- de(e)[0] === ne.customSort && t === L.Category && (e.orderOptions.data = {
1067
+ de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
1062
1068
  orderType: L.Category,
1063
1069
  orderBy: [...s]
1064
1070
  });
1065
1071
  }
1066
1072
  }, ki = async (s) => {
1067
- const { config: e, layerInfo: t, errorStrings: a } = s, i = M(e), r = Le(e)?.type, n = K(e), o = J(e.series);
1073
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
1068
1074
  let l = [];
1069
- return r === T.CategoryAxisFormat && (o === q.BarAndLineFromFields || i === oe ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== oe && 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({
1070
1076
  layerInfo: t,
1071
1077
  config: e,
1072
1078
  category: i,
1073
- errorStrings: a
1079
+ errorStrings: r
1074
1080
  }))), l;
1075
1081
  };
1076
- function re(s, e, t) {
1077
- const a = j(s, e, t), i = qt(s), r = te(s);
1078
- return a === i || r;
1082
+ function ne(s, e, t) {
1083
+ const r = K(s, e, t), i = qt(s), a = se(s);
1084
+ return r === i || a;
1079
1085
  }
1080
1086
  function $e(s, e, t) {
1081
- const a = ye({
1087
+ const r = ye({
1082
1088
  config: s,
1083
1089
  layerInfo: e,
1084
1090
  commonStrings: t,
1085
- numericFields: K(s),
1091
+ numericFields: Z(s),
1086
1092
  aggregationType: we(s)
1087
- }), i = se(1, s), r = te(s);
1088
- return a === i || r;
1093
+ }), i = ie(1, s), a = se(s);
1094
+ return r === i || a;
1089
1095
  }
1090
- function ds(s, e) {
1091
- const t = R(e.layerFieldsInfo, M(s)), a = se(0, s), i = te(s);
1092
- return t === a || i;
1096
+ function ds(s) {
1097
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === U && (a === "" || a === r.xAxis);
1098
+ return i === a || n || o;
1093
1099
  }
1094
1100
  function Ri(s) {
1095
1101
  return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
@@ -1101,7 +1107,7 @@ function qi(s, e) {
1101
1107
  size: 0,
1102
1108
  timeAggregationType: ht.Start,
1103
1109
  trimIncompleteTimeInterval: !0,
1104
- nullPolicy: H.Null
1110
+ nullPolicy: W.Null
1105
1111
  } : delete t.temporalBinning);
1106
1112
  });
1107
1113
  }
@@ -1112,7 +1118,7 @@ export {
1112
1118
  Ni as C,
1113
1119
  Ri as D,
1114
1120
  qi as E,
1115
- j as F,
1121
+ K as F,
1116
1122
  Re as G,
1117
1123
  Jt as H,
1118
1124
  _s as I,
@@ -1149,8 +1155,8 @@ export {
1149
1155
  si as ab,
1150
1156
  li as ac,
1151
1157
  is as ad,
1152
- ui as ae,
1153
- ci as af,
1158
+ ci as ae,
1159
+ ui as af,
1154
1160
  di as ag,
1155
1161
  yi as ah,
1156
1162
  mi as ai,
@@ -1161,8 +1167,8 @@ export {
1161
1167
  fi as an,
1162
1168
  ws as b,
1163
1169
  Ps as c,
1164
- K as d,
1165
- ae as e,
1170
+ Z as d,
1171
+ re as e,
1166
1172
  Ws as f,
1167
1173
  we as g,
1168
1174
  Oi as h,