@arcgis/charts-components 5.2.0-next.40 → 5.2.0-next.42

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 (151) hide show
  1. package/dist/cdn/{EJK3RW6P.js → 22GC5BZP.js} +1 -1
  2. package/dist/cdn/{7CZ4J2W3.js → 2VWSSNE6.js} +1 -1
  3. package/dist/cdn/{Z3XWLWF4.js → 2WFIFBMW.js} +1 -1
  4. package/dist/cdn/{KFH7ONYI.js → 33NDNTD4.js} +1 -1
  5. package/dist/cdn/{YKOEU6IH.js → 3WV4T637.js} +1 -1
  6. package/dist/cdn/{LGM37IA4.js → 3YJRZ7CT.js} +1 -1
  7. package/dist/cdn/{J2YNPNIL.js → 4MSUALRF.js} +1 -1
  8. package/dist/cdn/{YAMKN44F.js → 4QGMMXRI.js} +1 -1
  9. package/dist/cdn/{SGVBAC76.js → 4RGS5J3H.js} +1 -1
  10. package/dist/cdn/{DIBTCFWT.js → 4WQF5DM3.js} +1 -1
  11. package/dist/cdn/{LV3T5QZF.js → 4ZJHIYGJ.js} +1 -1
  12. package/dist/cdn/{KPWBRKB2.js → 5XXP2NRJ.js} +1 -1
  13. package/dist/cdn/{LQ4XNJEN.js → 6TA7HFV2.js} +1 -1
  14. package/dist/cdn/76HEBLTU.js +2 -0
  15. package/dist/cdn/{Y4AQR62O.js → 76ILRLUC.js} +1 -1
  16. package/dist/cdn/{NIKK5PQK.js → 7KYTSBST.js} +1 -1
  17. package/dist/cdn/{77YS6YLT.js → 7RFX7LUS.js} +4 -4
  18. package/dist/cdn/{YSAFZOZ6.js → 7T4W77V3.js} +1 -1
  19. package/dist/cdn/{3GGLSOHN.js → B6GOLH4Q.js} +1 -1
  20. package/dist/cdn/{67K3MAX5.js → CHFKSXBJ.js} +1 -1
  21. package/dist/cdn/{PKQ36JAB.js → CMPHWKTI.js} +1 -1
  22. package/dist/cdn/{QCRIXDV3.js → CXT62XXL.js} +1 -1
  23. package/dist/cdn/{PIXOUTW3.js → D4WXMS4I.js} +1 -1
  24. package/dist/cdn/{M7YZTXYW.js → D7FL6CSK.js} +1 -1
  25. package/dist/cdn/{EVCIAJFC.js → DE5QJPJV.js} +1 -1
  26. package/dist/cdn/{FXACMXC2.js → DWOP2HE4.js} +1 -1
  27. package/dist/cdn/{BMQRK46I.js → E47MLNJA.js} +1 -1
  28. package/dist/cdn/{TBGSY7QJ.js → EAXAXRX2.js} +1 -1
  29. package/dist/cdn/EIXU5GSK.js +2 -0
  30. package/dist/cdn/{I7QOG3AA.js → ELICLP7J.js} +1 -1
  31. package/dist/cdn/{4GZPZPT6.js → EMMV3MPZ.js} +1 -1
  32. package/dist/cdn/{2MWAHHYM.js → ESAVCU5M.js} +20 -20
  33. package/dist/cdn/{32EVZ7R6.js → F5P4Z43T.js} +1 -1
  34. package/dist/cdn/{OEIPZTMI.js → G3IEARQP.js} +1 -1
  35. package/dist/cdn/{M7F2IDEE.js → GGN3I7J2.js} +1 -1
  36. package/dist/cdn/{RB7LVEKZ.js → GKXBWOFH.js} +1 -1
  37. package/dist/cdn/{NKUXUCUP.js → GP3V6A7V.js} +1 -1
  38. package/dist/cdn/{HAOL7B5B.js → HCYQEOJ6.js} +1 -1
  39. package/dist/cdn/{KML35YPO.js → HP47BFLZ.js} +1 -1
  40. package/dist/cdn/{BUXRBQJJ.js → HRMCHOLZ.js} +1 -1
  41. package/dist/cdn/{MAHZG3PJ.js → I2CZFSEB.js} +1 -1
  42. package/dist/cdn/{FFKWJL25.js → I6REUMW3.js} +1 -1
  43. package/dist/cdn/{LHQWVJAF.js → IIQVRNZF.js} +1 -1
  44. package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
  45. package/dist/cdn/{XCRTBM2X.js → ISYGPFXM.js} +1 -1
  46. package/dist/cdn/{W2YAFML7.js → J64IDIEG.js} +1 -1
  47. package/dist/cdn/{K63SHENK.js → JATS27TM.js} +1 -1
  48. package/dist/cdn/{GHE7Q677.js → JPPLQW3P.js} +1 -1
  49. package/dist/cdn/{WNKDEOFZ.js → JWD4Y2L6.js} +1 -1
  50. package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
  51. package/dist/cdn/K4APZJ2O.js +2 -0
  52. package/dist/cdn/{CFC3NUMS.js → KHLGXKN5.js} +1 -1
  53. package/dist/cdn/KRBNJLUR.js +2 -0
  54. package/dist/cdn/{G6EAXNDR.js → LJLL37FG.js} +1 -1
  55. package/dist/cdn/{YTUVGIHK.js → LMIDBRIM.js} +1 -1
  56. package/dist/cdn/{FX3T2NSR.js → LSMBD5CK.js} +1 -1
  57. package/dist/cdn/{UM5S2Y4R.js → LSWWNXP3.js} +1 -1
  58. package/dist/cdn/{LLUS6VGO.js → MCT4U7MC.js} +1 -1
  59. package/dist/cdn/{QCTAG2EK.js → MLBDUKS3.js} +1 -1
  60. package/dist/cdn/{WGANHKGM.js → MNE46H4A.js} +1 -1
  61. package/dist/cdn/{BDKELWTL.js → NFJXS4T6.js} +1 -1
  62. package/dist/cdn/{L7HQ4MVM.js → NG254LPM.js} +1 -1
  63. package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
  64. package/dist/cdn/{A7NYIP7H.js → OGRUONHM.js} +1 -1
  65. package/dist/cdn/{XM6AWAPQ.js → PCODH67Z.js} +1 -1
  66. package/dist/cdn/{IQFWMCJN.js → PDYF2IZ2.js} +1 -1
  67. package/dist/cdn/{LX7XADSL.js → PF7KNYUV.js} +1 -1
  68. package/dist/cdn/{ME5VD6DD.js → PGO6DEJM.js} +1 -1
  69. package/dist/cdn/{FGNKVNM7.js → PLEZNRQC.js} +1 -1
  70. package/dist/cdn/{D3ITKS2P.js → QFDQH5CQ.js} +1 -1
  71. package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
  72. package/dist/cdn/{KHT4LCWN.js → QYNNPEED.js} +1 -1
  73. package/dist/cdn/{AAKVGDCP.js → QZ5YUJ7Y.js} +1 -1
  74. package/dist/cdn/{7GOPZGE7.js → R32CA4NB.js} +1 -1
  75. package/dist/cdn/{NDOLRRBV.js → RE5QI7WA.js} +1 -1
  76. package/dist/cdn/{FLNKNNA4.js → RPTZ52MF.js} +1 -1
  77. package/dist/cdn/{7IEZ4KIQ.js → RS37HDC7.js} +1 -1
  78. package/dist/cdn/{T7SDOM4Y.js → SDHNDW2J.js} +1 -1
  79. package/dist/cdn/{GVLUS52N.js → SG3NAFAX.js} +1 -1
  80. package/dist/cdn/{2WUJ5KOD.js → T3ZESENF.js} +1 -1
  81. package/dist/cdn/{ZVPPOBET.js → TAGN7GHJ.js} +1 -1
  82. package/dist/cdn/{QWKP4JOC.js → U5FPTPFH.js} +1 -1
  83. package/dist/cdn/{OJR4AWVU.js → UG37REGM.js} +1 -1
  84. package/dist/cdn/{F2OCFEOW.js → UNFEHNQQ.js} +1 -1
  85. package/dist/cdn/{6TCG2WXL.js → USQYT55U.js} +1 -1
  86. package/dist/cdn/{2AFGL3N3.js → UTJ2ODDK.js} +1 -1
  87. package/dist/cdn/VAUVQGBW.js +3 -0
  88. package/dist/cdn/{LH4X6ACJ.js → WGYVJ5PD.js} +1 -1
  89. package/dist/cdn/{GOZ5QOUF.js → WIPAO2FH.js} +1 -1
  90. package/dist/cdn/{RJENJCOJ.js → WKRYWDKZ.js} +1 -1
  91. package/dist/cdn/{LU3GHFTE.js → WVPMH6DW.js} +1 -1
  92. package/dist/cdn/{YMY3CBBG.js → XY4HDZKZ.js} +1 -1
  93. package/dist/cdn/{IRSXCGOE.js → YABRVLVL.js} +1 -1
  94. package/dist/cdn/{LBG2RY2P.js → YE6DMUZG.js} +1 -1
  95. package/dist/cdn/{7HTA55LZ.js → YGGPPIZ7.js} +1 -1
  96. package/dist/cdn/{DGYWXTWO.js → YXG7RVTK.js} +1 -1
  97. package/dist/cdn/{BDCXALOP.js → Z7NF4IGS.js} +1 -1
  98. package/dist/cdn/ZSATO43B.js +2 -0
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/bar-chart-model.js +1 -1
  102. package/dist/chunks/box-plot-data.js +1 -1
  103. package/dist/chunks/box-plot-model.js +5 -5
  104. package/dist/chunks/chart-model.js +1 -1
  105. package/dist/chunks/chart-object-literals.js +2 -1
  106. package/dist/chunks/class-breaks.js +14 -14
  107. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  108. package/dist/chunks/data.js +5 -5
  109. package/dist/chunks/gauge-model.js +1 -1
  110. package/dist/chunks/heat-chart-model.js +66 -57
  111. package/dist/chunks/histogram-model.js +1 -1
  112. package/dist/chunks/index2.js +3496 -3375
  113. package/dist/chunks/index4.js +26 -8
  114. package/dist/chunks/line-chart-model.js +1 -1
  115. package/dist/chunks/model-setter.js +3 -3
  116. package/dist/chunks/model-with-x-guides.js +5 -5
  117. package/dist/chunks/model-with-y-guides.js +8 -8
  118. package/dist/chunks/pie-chart-model.js +9 -9
  119. package/dist/chunks/radar-chart-model.js +1 -1
  120. package/dist/chunks/scatterplot-model.js +11 -11
  121. package/dist/chunks/serial-chart-data.js +785 -701
  122. package/dist/chunks/serial-chart-model.js +1 -1
  123. package/dist/chunks/utils.js +16 -16
  124. package/dist/chunks/web-component-utils.js +1 -1
  125. package/dist/chunks/x-bounds.js +1 -1
  126. package/dist/components/arcgis-chart/customElement.js +3531 -3519
  127. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  128. package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
  129. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
  130. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  132. package/dist/docs/api.json +1 -1
  133. package/dist/docs/docs.json +1 -1
  134. package/dist/docs/web-types.json +1 -1
  135. package/dist/index.js +215 -213
  136. package/dist/json-schema/index.d.ts +15 -2
  137. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
  138. package/dist/spec/chart-object-literals.d.ts +1 -0
  139. package/dist/spec/data-source.d.ts +6 -1
  140. package/dist/utils/chart-config/converter/index.js +26 -26
  141. package/dist/utils/data/index.d.ts +8 -1
  142. package/dist/utils/defaults/interfaces.d.ts +1 -1
  143. package/dist/utils/layer/query-features/index.d.ts +17 -1
  144. package/dist/utils/layer/query-parser/index.d.ts +1 -0
  145. package/package.json +3 -3
  146. package/dist/cdn/4HBMPMYY.js +0 -2
  147. package/dist/cdn/547RDEMV.js +0 -2
  148. package/dist/cdn/GN53HRKZ.js +0 -2
  149. package/dist/cdn/HR4NMTBV.js +0 -2
  150. package/dist/cdn/QU7LT4XK.js +0 -3
  151. package/dist/cdn/ZLFL6BY5.js +0 -2
@@ -1,206 +1,207 @@
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 K, isEmpty as qe, memoize as Re } from "lodash-es";
4
- import { S as se } from "./common.js";
5
- import { s as R, u as E, g as le, a as Fe, b as ke, c as Oe, d as ce } from "./utils.js";
6
- import { w as k, i as De, cS as M, bY as Pe, bm as we, x as Ee, Y as _, cq as Me, cp as $e, p as We, aH as oe, c2 as Ye, d as Xe, aG as je, I as Ue, a7 as Ze, bk as He, W as Ke, e as _e, bo as Qe, cZ as ze, v as Ge, d4 as de, bM as Je, d5 as et, bI as tt, B as st, d1 as it, an as U, a6 as he, b9 as at, k as ie, bq as rt, bu as ye, bb as H, bh as me } from "./index2.js";
7
- import { a as Y, s as Te, g as Q, b as pe, c as nt } from "./data.js";
8
- import { u as B, r as L, k as lt, n as q, m as $, p as ot, t as ut, s as ae } from "./chart-object-literals.js";
9
- import { i as ct, R as dt } from "./rest-js-object-literals.js";
10
- import { i as z } from "./index4.js";
11
- import { aA as yt, u as mt, Z as pt, aa as gt, am as ft, y as St, D as ge, I as fe, a0 as Ft } from "./index.js";
12
- import { C as P, F as W, d as D } from "./index3.js";
13
- import { h as xe, i as O, j as ht, n as Tt, g as A, m as v, e as Se } from "./index5.js";
14
- import { convertChartSpec as xt } from "../utils/chart-config/converter/index.js";
15
- import { d as re, f as Bt } from "./type-guards.js";
16
- import { g as Be } from "./series-types.js";
17
- import { C as Ct, m as bt } from "./model-setter.js";
18
- import { g as ue } from "./utils2.js";
19
- import { a as At, b as vt } from "./series-length.js";
20
- const gs = (t) => {
2
+ import { substitute as M } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, isEmpty as He, memoize as Xe } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as k, u as E, a as Le, g as pe, b as Ve, c as Ue, d as je, e as fe } from "./utils.js";
6
+ import { w as D, i as Ke, cU as Y, b_ as Ze, bm as _e, x as Qe, Y as ee, cs as ze, cr as Ge, p as Je, aH as ge, c4 as et, d as tt, aG as it, I as st, a7 as at, bk as rt, W as nt, e as lt, bo as ot, c$ as ut, v as ct, d6 as Se, bN as dt, d7 as yt, bJ as mt, B as pt, N as Fe, bq as _, d3 as gt, bb as W, bu as Q, an as K, a6 as Ne, b9 as ft, k as ue, bh as xe } from "./index2.js";
7
+ import { a as X, s as Oe, g as te, b as he, c as St } from "./data.js";
8
+ import { u as h, r as L, k as Ft, d as R, n as O, m as $, p as xt, t as ht, s as ce } from "./chart-object-literals.js";
9
+ import { i as Tt, R as Bt } from "./rest-js-object-literals.js";
10
+ import { i as ie } from "./index4.js";
11
+ import { aA as Ct, I as z, D as de, u as bt, Z as At, aa as vt, am as It, y as Lt, a0 as Vt } from "./index.js";
12
+ import { C as w, F as H, d as P } from "./index3.js";
13
+ import { h as ke, i as q, j as Nt, n as Ot, g as A, m as v, e as Te } from "./index5.js";
14
+ import { convertChartSpec as kt } from "../utils/chart-config/converter/index.js";
15
+ import { d as ye, f as Dt } from "./type-guards.js";
16
+ import { g as De } from "./series-types.js";
17
+ import { C as qt, m as Rt } from "./model-setter.js";
18
+ import { g as se } from "./utils2.js";
19
+ import { a as Pt, b as wt } from "./series-length.js";
20
+ const Oi = (t) => {
21
21
  let e;
22
- const s = t.series[0];
23
- return k(s) && (e = s.temporalBinning?.size), e;
24
- }, It = (t) => {
22
+ const i = t.series[0];
23
+ return D(i) && (e = i.temporalBinning?.size), e;
24
+ }, Mt = (t) => {
25
25
  let e;
26
- const s = t.series[0];
27
- return k(s) && (e = s.temporalBinning?.unit), e;
28
- }, fs = (t) => {
26
+ const i = t.series[0];
27
+ return D(i) && (e = i.temporalBinning?.unit), e;
28
+ }, ki = (t) => {
29
29
  let e;
30
- const s = t.series[0];
31
- return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
32
- }, Ss = (t) => {
30
+ const i = t.series[0];
31
+ return D(i) && (e = i.temporalBinning?.timeAggregationType), e;
32
+ }, Di = (t) => {
33
33
  let e;
34
- const s = t.series[0];
35
- return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
36
- }, Fs = (t) => {
34
+ const i = t.series[0];
35
+ return D(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
36
+ }, qi = (t) => {
37
37
  let e;
38
- const s = t.series[0];
39
- return k(s) && (e = s.temporalBinning?.nullPolicy), e;
40
- }, Lt = (t, e) => {
41
- e?.series?.forEach((s) => {
42
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
43
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
- }, Vt = (t, e) => {
45
- e?.series?.forEach((s) => {
46
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
47
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
- }, hs = (t, e) => {
49
- e.series?.forEach((s) => {
50
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
51
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
- }, Ts = (t, e) => {
53
- e.series?.forEach((s) => {
54
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
55
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
- }, xs = (t, e) => {
57
- e.series?.forEach((s) => {
58
- k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
59
- }), R({ config: e, value: null, axisIndex: 1, isMax: !1 }), R({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
- }, Nt = (t) => {
61
- Lt(0, t);
38
+ const i = t.series[0];
39
+ return D(i) && (e = i.temporalBinning?.nullPolicy), e;
40
+ }, Et = (t, e) => {
41
+ e?.series?.forEach((i) => {
42
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
43
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
+ }, Wt = (t, e) => {
45
+ e?.series?.forEach((i) => {
46
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
47
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
+ }, Ri = (t, e) => {
49
+ e.series?.forEach((i) => {
50
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
51
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
+ }, Pi = (t, e) => {
53
+ e.series?.forEach((i) => {
54
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
55
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
+ }, wi = (t, e) => {
57
+ e.series?.forEach((i) => {
58
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
59
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
+ }, Yt = (t) => {
61
+ Et(0, t);
62
62
  };
63
- var qt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, kt = (t, e, s, r) => {
64
- for (var a = Rt(e, s), i = t.length - 1, n; i >= 0; i--)
65
- (n = t[i]) && (a = n(e, s, a) || a);
66
- return a && qt(e, s, a), a;
63
+ var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Xt = (t, e, i, a) => {
64
+ for (var r = Ht(e, i), s = t.length - 1, n; s >= 0; s--)
65
+ (n = t[s]) && (r = n(e, i, r) || r);
66
+ return r && $t(e, i, r), r;
67
67
  };
68
- const Ot = (t) => {
68
+ const Ut = (t) => {
69
69
  let e;
70
- return M(t) ? e = t.outTimeZone : t?.series.forEach((s) => {
71
- (s.type === B.BarSeries || s.type === B.RadarSeries || s.type === B.LineSeries) && s.temporalBinning && (e = s.temporalBinning.outTimeZone);
72
- }), e || (e = t?.axes?.[0]?.valueFormat.type === B.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
- }, Ce = (t, e) => {
74
- const s = De(t);
75
- M(e) ? t ? e.outTimeZone = s : delete e.outTimeZone : e?.series.forEach((r) => {
76
- (r.type === B.BarSeries || r.type === B.RadarSeries || r.type === B.LineSeries) && (t ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = s) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
77
- }), e?.axes?.[0]?.valueFormat.type === B.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = s : delete e.axes[0].valueFormat.intlOptions.timeZone);
70
+ return Y(t) ? e = t.outTimeZone : t?.series.forEach((i) => {
71
+ (i.type === h.BarSeries || i.type === h.RadarSeries || i.type === h.LineSeries) && i.temporalBinning && (e = i.temporalBinning.outTimeZone);
72
+ }), e || (e = t?.axes?.[0]?.valueFormat.type === h.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
+ }, qe = (t, e) => {
74
+ const i = Ke(t);
75
+ Y(e) ? t ? e.outTimeZone = i : delete e.outTimeZone : e?.series.forEach((a) => {
76
+ (a.type === h.BarSeries || a.type === h.RadarSeries || a.type === h.LineSeries) && (t ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = i) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
77
+ }), e?.axes?.[0]?.valueFormat.type === h.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = i : delete e.axes[0].valueFormat.intlOptions.timeZone);
78
78
  };
79
- class Dt extends Ct {
79
+ class jt extends qt {
80
80
  /**
81
81
  * Gets the time zone for the chart.
82
82
  */
83
83
  get timeZone() {
84
- return Ot(this._config);
84
+ return Ut(this._config);
85
85
  }
86
86
  set timeZone(e) {
87
- Ce(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ qe(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
88
88
  }
89
89
  }
90
- kt([
91
- bt
92
- ], Dt.prototype, "timeZone");
93
- function Bs(t, e) {
94
- let s;
95
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
90
+ Xt([
91
+ Rt
92
+ ], jt.prototype, "timeZone");
93
+ function Mi(t, e) {
94
+ let i;
95
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
96
96
  }
97
- function Cs(t, e) {
98
- let s;
99
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
97
+ function Ei(t, e) {
98
+ let i;
99
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
100
100
  }
101
- function bs(t, e) {
102
- let s;
103
- return e !== void 0 && (s = { ...e, rotated: t }), s;
101
+ function Wi(t, e) {
102
+ let i;
103
+ return e !== void 0 && (i = { ...e, rotated: t }), i;
104
104
  }
105
- function Pt(t) {
105
+ function Kt(t) {
106
106
  let e;
107
107
  return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
108
108
  }
109
- function As(t, e) {
110
- return e != null || xe(t);
109
+ function Yi(t, e) {
110
+ return e != null || ke(t);
111
111
  }
112
- async function vs(t) {
113
- const { config: e, layer: s, abortSignal: r } = t;
114
- let a = !1;
115
- return re(s) || Bt(e) ? e && re(s) && (a = await we({ config: e, layer: s, abortSignal: r })) : a = !0, a;
112
+ async function $i(t) {
113
+ const { config: e, layer: i, abortSignal: a } = t;
114
+ let r = !1;
115
+ return ye(i) || Dt(e) ? e && ye(i) && (r = await _e({ config: e, layer: i, abortSignal: a })) : r = !0, r;
116
116
  }
117
- async function wt(t) {
117
+ async function Zt(t) {
118
118
  const {
119
119
  queryObject: e,
120
- chartConfig: s,
121
- splitByField: r,
122
- errorStrings: a,
123
- abortSignal: i,
120
+ chartConfig: i,
121
+ splitByField: a,
122
+ errorStrings: r,
123
+ abortSignal: s,
124
124
  runtimeDataFilters: n,
125
- ignoreViewExtent: o,
125
+ ignoreViewExtent: l,
126
126
  setTimeBinningInfoWhenNotProvided: c,
127
- returnFeaturesExtent: m,
127
+ returnFeaturesExtent: d,
128
128
  chartLimits: p
129
129
  } = t;
130
- let u = [], d;
131
- const y = K(s), g = y.series[0], l = _e({
130
+ let u = [], y;
131
+ const m = J(i), g = m.series[0], o = lt({
132
132
  queryObject: e,
133
- chartConfig: y,
133
+ chartConfig: m,
134
134
  runtimeDataFilters: n,
135
- ignoreViewExtent: o
135
+ ignoreViewExtent: l
136
136
  });
137
- if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = yt.outStatistics.outStatisticFieldName), k(g) && Qe({
138
- xAxisValueFormatType: ze(y),
137
+ if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = Ct.outStatistics.outStatisticFieldName), D(g) && ot({
138
+ xAxisValueFormatType: ut(m),
139
139
  setTimeBinningInfoWhenNotProvided: c,
140
140
  seriesConfig: g,
141
141
  queryObject: e
142
- }) && Ge(r, e)) {
143
- const { temporalBinning: f, x } = g, { uniqueQuery: b } = de({
144
- chartConfig: y,
145
- queryConfig: l,
142
+ }) && ct(a, e)) {
143
+ const { temporalBinning: f, x: B } = g, { uniqueQuery: b } = Se({
144
+ chartConfig: m,
145
+ queryConfig: o,
146
146
  queryObject: e,
147
147
  setTimeBinningInfoWhenNotProvided: c,
148
- returnFeaturesExtent: m,
148
+ returnFeaturesExtent: d,
149
149
  chartLimits: p
150
- }), F = s.axes?.[0].valueFormat.type === B.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
- d = await Je({
150
+ }), F = i.axes?.[0].valueFormat.type === h.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ y = await dt({
152
152
  queryObject: e,
153
- dateField: x,
154
- splitByField: r,
153
+ dateField: B,
154
+ splitByField: a,
155
155
  queryConfig: b,
156
156
  axisTimeZone: F,
157
157
  temporalBinning: f,
158
- errorStrings: a,
159
- abortSignal: i
158
+ errorStrings: r,
159
+ abortSignal: s
160
160
  }), u = Array.from(
161
161
  new Set(
162
- d.flatMap((S) => {
162
+ y.flatMap((S) => {
163
163
  const { stackedAttributes: I } = S;
164
164
  let T = [];
165
- return I && (T = I.map((h) => h[r]).filter((h) => h !== void 0)), T;
165
+ return I && (T = I.map((x) => x[a]).filter((x) => x !== void 0)), T;
166
166
  })
167
167
  ).values()
168
168
  );
169
169
  } else {
170
- const { uniqueQuery: f } = de({
171
- chartConfig: y,
170
+ const { uniqueQuery: f } = Se({
171
+ chartConfig: m,
172
172
  queryObject: e,
173
- queryConfig: l,
173
+ queryConfig: o,
174
174
  setTimeBinningInfoWhenNotProvided: c,
175
- returnFeaturesExtent: m,
175
+ returnFeaturesExtent: d,
176
176
  chartLimits: p
177
- }), { elementCount: x } = await et({
178
- chartConfig: y,
177
+ }), { elementCount: B } = await yt({
178
+ chartConfig: m,
179
179
  queryObject: e,
180
- queryConfig: l,
180
+ queryConfig: o,
181
181
  behaviorAfterLimit: p?.behaviorAfterLimit,
182
182
  numberMaxOfFeaturesToFetch: f.num,
183
- abortSignal: i
183
+ abortSignal: s
184
184
  });
185
- d = await tt({
185
+ y = await mt({
186
186
  queryObject: e,
187
187
  queryConfig: f,
188
- featureCount: x,
189
- errorStrings: a,
190
- abortSignal: i
188
+ featureCount: B,
189
+ returnStatisticsAggregatedIds: !0,
190
+ errorStrings: r,
191
+ abortSignal: s
191
192
  }), u = Array.from(
192
193
  new Set(
193
- d.map((b) => b.attributes[r]).filter((b) => b !== void 0)
194
+ y.map((b) => b.attributes[a]).filter((b) => b !== void 0)
194
195
  ).values()
195
196
  );
196
197
  }
197
- return { allValues: u, preFetchedQueryResponse: d };
198
+ return { allValues: u, preFetchedQueryResponse: y };
198
199
  }
199
- function Et(t, e) {
200
- const s = /* @__PURE__ */ new Map();
201
- return t.series.forEach((r) => {
202
- let a = oe({
203
- where: r.query?.where,
200
+ function _t(t, e) {
201
+ const i = /* @__PURE__ */ new Map();
202
+ return t.series.forEach((a) => {
203
+ let r = ge({
204
+ where: a.query?.where,
204
205
  // normalize the value so it matches what we get from getAllValues()
205
206
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
206
207
  normalize: !0,
@@ -208,231 +209,236 @@ function Et(t, e) {
208
209
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
209
210
  escape: !1
210
211
  });
211
- e && a !== null && (a = Number(a));
212
- const i = Be([r]);
213
- i !== void 0 && s.set(i, [
214
- ...s.get(i) ?? [],
215
- a
212
+ e && r !== null && (r = Number(r));
213
+ const s = De([a]);
214
+ s !== void 0 && i.set(s, [
215
+ ...i.get(s) ?? [],
216
+ r
216
217
  ]);
217
- }), s;
218
+ }), i;
218
219
  }
219
- function Mt(t) {
220
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
221
- return Array.from(s.keys()).forEach((i) => {
222
- const n = s.get(i) ?? [];
223
- let o = [];
224
- r ? o = e : e.forEach((c) => {
225
- n.includes(c) || o.push(c);
226
- }), a.set(i, o);
227
- }), a;
220
+ function Qt(t) {
221
+ const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, r = /* @__PURE__ */ new Map();
222
+ return Array.from(i.keys()).forEach((s) => {
223
+ const n = i.get(s) ?? [];
224
+ let l = [];
225
+ a ? l = e : e.forEach((c) => {
226
+ n.includes(c) || l.push(c);
227
+ }), r.set(s, l);
228
+ }), r;
228
229
  }
229
- function $t(t) {
230
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
230
+ function zt(t) {
231
+ const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: r } = t, s = JSON.parse(
231
232
  JSON.stringify({
232
233
  ...e.series[0],
233
- ...a
234
+ ...r
234
235
  })
235
236
  );
236
- if (i.query) {
237
- if (s === null ? i.id = W.nullValue : s === "" ? i.id = W.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
238
- const o = i.id;
239
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
237
+ if (s.query) {
238
+ if (i === null ? s.id = H.nullValue : i === "" ? s.id = H.emptyStringValue : s.id = `${i}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
239
+ const l = s.id;
240
+ s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
240
241
  }
241
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
242
- i.query.where = `${r}=${n}`;
242
+ const n = typeof i == "number" || i === null ? i : `'${i}'`;
243
+ s.query.where = `${a}=${n}`;
243
244
  }
244
- return i;
245
+ return s;
245
246
  }
246
- async function Wt(t) {
247
+ async function Gt(t) {
247
248
  const {
248
249
  updateSplitBySeries: e,
249
- config: s,
250
- queryObject: r,
251
- errorStrings: a,
252
- abortSignal: i,
250
+ config: i,
251
+ queryObject: a,
252
+ errorStrings: r,
253
+ abortSignal: s,
253
254
  runtimeDataFilters: n,
254
- ignoreViewExtent: o,
255
+ ignoreViewExtent: l,
255
256
  setTimeBinningInfoWhenNotProvided: c,
256
- returnFeaturesExtent: m,
257
+ returnFeaturesExtent: d,
257
258
  chartLimits: p
258
259
  } = t, { seriesTemplate: u } = e ?? {};
259
- let d;
260
- if (r && !re(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || u !== void 0) && e.addMissingSeries) {
261
- const y = s.series.length === 0;
262
- s.series.length === 0 && u !== void 0 && s.series.push(u);
263
- const g = _(s.series);
264
- if (g === P.BoxPlotMonoFieldAndSplitBy || g === P.BoxPlotMultiFieldsAndSplitBy || g === P.BoxPlotMonoFieldAndCategoryAndSplitBy || g === P.BarAndLineSplitBy || g === P.BarAndLineSplitByNoAggregation) {
265
- const l = je(s.series[0]?.query?.where), f = Ue(r), x = Ze(l, f), b = x ? He(x) : !1, F = await wt({
266
- queryObject: r,
267
- chartConfig: s,
268
- splitByField: l,
269
- abortSignal: i,
260
+ let y;
261
+ if (a && !ye(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || u !== void 0) && e.addMissingSeries) {
262
+ const m = i.series.length === 0;
263
+ i.series.length === 0 && u !== void 0 && i.series.push(u);
264
+ const g = ee(i.series);
265
+ if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
266
+ const o = it(i.series[0]?.query?.where), f = st(a), B = at(o, f), b = B ? rt(B) : !1, F = await Zt({
267
+ queryObject: a,
268
+ chartConfig: i,
269
+ splitByField: o,
270
+ abortSignal: s,
270
271
  runtimeDataFilters: n,
271
- ignoreViewExtent: o,
272
+ ignoreViewExtent: l,
272
273
  setTimeBinningInfoWhenNotProvided: c,
273
- returnFeaturesExtent: m,
274
+ returnFeaturesExtent: d,
274
275
  chartLimits: p,
275
- errorStrings: a
276
+ errorStrings: r
276
277
  }), { allValues: S } = F;
277
- if ({ preFetchedQueryResponse: d } = F, S.length > 0) {
278
- const I = Et(s, b), T = Mt({
278
+ if ({ preFetchedQueryResponse: y } = F, S.length > 0) {
279
+ const I = _t(i, b), T = Qt({
279
280
  allValues: S,
280
281
  configUniqueValuesPerSeriesType: I,
281
- initialConfigWasEmpty: y
282
+ initialConfigWasEmpty: m
282
283
  });
283
- Array.from(T.keys()).forEach((h) => {
284
- (T.get(h) ?? []).forEach((N) => {
285
- s.series.push(
286
- $t({
287
- chartConfig: s,
284
+ Array.from(T.keys()).forEach((x) => {
285
+ (T.get(x) ?? []).forEach((N) => {
286
+ i.series.push(
287
+ zt({
288
+ chartConfig: i,
288
289
  seriesTemplate: u,
289
290
  missingValue: N,
290
- splitByField: l
291
+ splitByField: o
291
292
  })
292
293
  );
293
- }), y && s.series.shift();
294
+ }), m && i.series.shift();
294
295
  });
295
296
  }
296
297
  }
297
298
  }
298
- return d;
299
+ return y;
299
300
  }
300
- function Yt(t, e) {
301
- e && !xe(e) && (e = Xe({ chartConfig: e, queryObject: t }));
301
+ function Jt(t, e) {
302
+ e && !ke(e) && (e = tt({ chartConfig: e, queryObject: t }));
302
303
  }
303
- async function Is(t) {
304
+ async function Hi(t) {
304
305
  const {
305
306
  configToAlter: e,
306
- layer: s,
307
- addMissingSeries: r,
308
- updateSplitBySeries: a,
309
- chartContainer: i,
307
+ layer: i,
308
+ addMissingSeries: a,
309
+ updateSplitBySeries: r,
310
+ chartContainer: s,
310
311
  queryObject: n,
311
- abortSignal: o,
312
+ abortSignal: l,
312
313
  runtimeDataFilters: c,
313
- ignoreViewExtent: m,
314
+ ignoreViewExtent: d,
314
315
  setTimeBinningInfoWhenNotProvided: p,
315
316
  returnFeaturesExtent: u,
316
- chartLimits: d,
317
- timeZone: y,
317
+ chartLimits: y,
318
+ timeZone: m,
318
319
  errorStrings: g
319
320
  } = t;
320
- let l = e, f;
321
- return l && (Yt(s, l), l = await xt(l, s, void 0, o), r && n && (f = await Wt({
322
- updateSplitBySeries: a,
323
- config: l,
321
+ let o = e, f;
322
+ return o && (Jt(i, o), o = await kt(o, i, void 0, l), a && n && (f = await Gt({
323
+ updateSplitBySeries: r,
324
+ config: o,
324
325
  queryObject: n,
325
326
  errorStrings: g,
326
- abortSignal: o,
327
+ abortSignal: l,
327
328
  runtimeDataFilters: c,
328
- ignoreViewExtent: m,
329
+ ignoreViewExtent: d,
329
330
  setTimeBinningInfoWhenNotProvided: p,
330
331
  returnFeaturesExtent: u,
331
- chartLimits: d
332
- })), l = Pe(l, i), Ce(y, l)), { alteredConfig: l, preFetchedQueryResponse: f };
332
+ chartLimits: y
333
+ })), o = Ze(o, s), qe(m, o)), { alteredConfig: o, preFetchedQueryResponse: f };
333
334
  }
334
- function Xt(t, e) {
335
- let s = !1;
335
+ function ei(t, e) {
336
+ let i = !1;
336
337
  if (e !== void 0) {
337
- const r = Ke({ key: st.Average, splitBy: e });
338
- s = Number.isFinite(t[r]);
338
+ const a = nt({ key: pt.Average, splitBy: e });
339
+ i = Number.isFinite(t[a]);
339
340
  }
340
- return s;
341
+ return i;
341
342
  }
342
- function Ls(t) {
343
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = K(s);
343
+ function Xi(t) {
344
+ const { data: e, config: i, showEmptySeries: a } = t, r = i.series.length, s = J(i);
344
345
  let n = !1;
345
- if (!r && a > 1 && e) {
346
- const o = Ee(e), c = Be(s?.series), m = _(s?.series), p = /* @__PURE__ */ new Set();
346
+ if (!a && r > 1 && e) {
347
+ const l = Qe(e), c = De(i?.series), d = ee(i?.series), p = /* @__PURE__ */ new Set();
347
348
  switch (c) {
348
- case B.ComboLineAndBarSeries:
349
- case B.BarSeries:
350
- case B.RadarSeries:
351
- case B.LineSeries: {
352
- i.series.forEach((d) => {
353
- if (Array.isArray(o)) {
354
- let y = "";
355
- "y" in d && (y = Array.isArray(d.y) ? d.y[0] : d.y, m === P.BarAndLineSplitByNoAggregation && (y = `${y}_${oe({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
356
- (l) => Ye({
357
- dataItem: l,
358
- x: d.x,
359
- y,
360
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
349
+ case h.ComboLineAndBarSeries:
350
+ case h.BarSeries:
351
+ case h.RadarSeries:
352
+ case h.LineSeries: {
353
+ s.series.forEach((y) => {
354
+ if (Array.isArray(l)) {
355
+ let m = "";
356
+ "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ge({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
357
+ (o) => et({
358
+ dataItem: o,
359
+ x: y.x,
360
+ y: m,
361
+ aggregationType: i.series[0].query?.outStatistics?.[0]?.statisticType
361
362
  })
362
- ) && p.add(d));
363
+ ) && p.add(y));
363
364
  }
364
365
  });
365
366
  break;
366
367
  }
367
- case B.BoxPlotSeries: {
368
- if (Me(s)) {
369
- const d = $e(s);
370
- s.series.forEach((y) => {
371
- let g, l;
372
- y.type === B.BoxPlotSeries ? (g = e.dataItems, l = g?.some(
373
- (f) => We({
368
+ case h.BoxPlotSeries: {
369
+ if (ze(i)) {
370
+ const y = Ge(i);
371
+ i.series.forEach((m) => {
372
+ let g, o;
373
+ m.type === h.BoxPlotSeries ? (g = e.dataItems, o = g?.some(
374
+ (f) => Je({
374
375
  dataItem: f,
375
- splitBy: y.query?.where,
376
- showOutliers: d
376
+ splitBy: m.query?.where,
377
+ showOutliers: y
377
378
  })
378
- )) : y.type === B.LineSeries && (g = e.meanLines, l = g?.some(
379
- (f) => Xt(f, y.query?.where)
380
- )), l && p.add(y);
379
+ )) : m.type === h.LineSeries && (g = e.meanLines, o = g?.some(
380
+ (f) => ei(f, m.query?.where)
381
+ )), o && p.add(m);
381
382
  });
382
383
  }
383
384
  break;
384
385
  }
385
386
  }
386
387
  const u = Array.from(p.values());
387
- n = u.length > 0 && u.length < a, n && (i.series = u);
388
+ n = u.length > 0 && u.length < r, n && (s.series = u);
388
389
  }
389
- return { seriesFilteredOut: n, filteredConfig: i };
390
+ return { seriesFilteredOut: n, filteredConfig: s };
390
391
  }
391
- const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
392
+ const Ui = (t) => t.hideEmptyRowsAndColumns, ji = (t, e) => {
392
393
  t.hideEmptyRowsAndColumns = e;
393
- }, qs = (t, e) => {
394
- const s = t.series[0];
395
- s.heatRulesType = e;
396
- }, Rs = (t) => t.series[0].heatRulesType, ks = (t, e) => {
397
- const s = t.series[0];
398
- s.gradientRules = e;
399
- }, Os = (t) => t.series[0].gradientRules, Ds = (t) => {
400
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = jt(s), o = z(s), c = s.series[0];
401
- if (typeof e == "string" && n !== e && c && (c.y = e, Pt(s), n === i || o)) {
402
- const m = D(a, e);
403
- E(s, 1, m);
394
+ }, Ki = (t, e) => {
395
+ const i = t.series[0];
396
+ i.heatRulesType = e;
397
+ }, Zi = (t) => t.series[0].heatRulesType, _i = (t, e) => {
398
+ const i = t.series[0];
399
+ i.gradientRules = e;
400
+ }, Qi = (t) => t.series[0].gradientRules, zi = (t) => {
401
+ const { yField: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s } = a, n = se(1, i), l = ti(i), c = ie(i), d = i.series[0];
402
+ if (typeof e == "string" && l !== e && d) {
403
+ if (d.y = e, Kt(i), l === n || c) {
404
+ const p = P(s, e);
405
+ E(i, 1, p);
406
+ }
407
+ Re({ commonStrings: r, config: i, layerInfo: a });
404
408
  }
405
- }, jt = (t) => t.series[0].y ?? "", Ps = (t) => {
406
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
407
- if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
408
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
409
- E(s, 0, i);
409
+ }, ti = (t) => t.series[0].y ?? "", Gi = (t) => {
410
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
411
+ if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
412
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
413
+ E(i, 0, s);
410
414
  }
411
- }, ws = (t) => t.series[0].xTemporalBinning, Es = (t) => {
412
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
413
- if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
414
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
415
- E(s, 1, i);
415
+ G({ axisIndex: 0, commonStrings: a, config: i });
416
+ }, ii = (t) => t.series[0].xTemporalBinning, Ji = (t) => {
417
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
418
+ if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
419
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
420
+ E(i, 1, s);
416
421
  }
417
- }, Ms = (t) => t.series[0].yTemporalBinning, Ut = (t, e) => {
422
+ G({ axisIndex: 1, commonStrings: a, config: i });
423
+ }, si = (t) => t.series[0].yTemporalBinning, ai = (t, e) => {
418
424
  e.orderOptions ??= {};
419
- const s = e.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, r = ne(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = ne(e)[1], n = {
425
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, a = me(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = me(e)[1], n = {
420
426
  ...e.orderOptions.data ?? {},
421
- orderType: q.MultiAxes
427
+ orderType: O.MultiAxes
422
428
  };
423
- r === se.customSort && s === q.Category && (n.orderByX = [...t]), i === se.customSort && a === q.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
424
- }, $s = (t, e) => {
425
- const s = e.series[0];
426
- s.gridLine && (s.gridLine.width = t);
427
- }, Ws = (t) => t.series[0].gridLine?.width, Ys = (t, e) => {
428
- const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
429
- s.gridLine && r && (s.gridLine.color = t);
430
- }, Xs = (t) => t.series[0].gridLine?.color, js = (t, e) => {
431
- const s = e.legend;
432
- s && (s.position = t);
433
- }, Us = (t) => t.legend?.position ?? lt.Bottom, Zs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Hs = (t) => {
434
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = ee(s, r, a);
435
- i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
429
+ a === oe.customSort && i === O.Category && (n.orderByX = [...t]), s === oe.customSort && r === O.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
430
+ }, es = (t, e) => {
431
+ const i = e.series[0];
432
+ i.gridLine && (i.gridLine.width = t);
433
+ }, ts = (t) => t.series[0].gridLine?.width, is = (t, e) => {
434
+ const i = e.series[0], a = t?.length === 4 && t.every((r) => typeof r == "number");
435
+ i.gridLine && a && (i.gridLine.color = t);
436
+ }, ss = (t) => t.series[0].gridLine?.color, as = (t, e) => {
437
+ const i = e.legend;
438
+ i && (i.position = t);
439
+ }, rs = (t) => t.legend?.position ?? Ft.Bottom, ns = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ls = (t) => {
440
+ const { field: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0].query?.outStatistics?.[0], n = ne(i, a, r);
441
+ s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
436
442
  outStatistics: [
437
443
  {
438
444
  onStatisticField: e,
@@ -440,53 +446,53 @@ const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
440
446
  statisticType: L.Count
441
447
  }
442
448
  ]
443
- }, n && s.title && (s.title.content.text = Z(s, r, a));
444
- }, Ks = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, _s = (t) => {
445
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = ee(s, r, a);
446
- i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Zt($.Zero, s), n && s.title && (s.title.content.text = Z(s, r, a));
447
- }, Qs = (t) => t.nullPolicy, Zt = (t, e) => {
449
+ }, n && i.title && (i.title.content.text = Z(i, a, r));
450
+ }, os = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, us = (t) => {
451
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0]?.query?.outStatistics?.[0], n = ne(i, a, r);
452
+ s && e !== L.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === L.Count || e === L.Sum) && ri($.Zero, i), n && i.title && (i.title.content.text = Z(i, a, r));
453
+ }, cs = (t) => t.nullPolicy, ri = (t, e) => {
448
454
  e.nullPolicy = t;
449
- }, zs = (t) => t.series[0].emptyCells, Gs = (t, e) => {
455
+ }, ds = (t) => t.series[0].emptyCells, ys = (t, e) => {
450
456
  e.series[0].emptyCells = t;
451
- }, Js = (t) => t.series[0].emptyCells?.text, ei = (t, e) => {
457
+ }, ms = (t) => t.series[0].emptyCells?.text, ps = (t, e) => {
452
458
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
453
- }, ti = (t) => t.includeLeapDay, si = (t, e) => {
459
+ }, gs = (t) => t.includeLeapDay, fs = (t, e) => {
454
460
  e.includeLeapDay = t;
455
- }, ii = (t) => t.series[0].emptyCells?.symbol, ai = (t, e) => {
461
+ }, Ss = (t) => t.series[0].emptyCells?.symbol, Fs = (t, e) => {
456
462
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
457
463
  };
458
- function ri(t) {
464
+ function xs(t) {
459
465
  return t.viewType;
460
466
  }
461
- function ni(t, e) {
462
- it(e) || (e.viewType = t);
467
+ function hs(t, e) {
468
+ gt(e) || (e.viewType = t);
463
469
  }
464
- function li(t) {
465
- return t.series[0].classBreaksRules?.breaksCount ?? W.classBreaks.breaksCount;
470
+ function Ts(t) {
471
+ return t.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
466
472
  }
467
- function oi(t, e) {
468
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? W.classBreaks.breaksCount : e.series[0].classBreaksRules = {
469
- breaksCount: t ?? W.classBreaks.breaksCount
473
+ function Bs(t, e) {
474
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
475
+ breaksCount: t ?? H.classBreaks.breaksCount
470
476
  };
471
477
  }
472
- function ui(t) {
478
+ function Cs(t) {
473
479
  return t.series[0].classBreaksRules?.classificationMethod;
474
480
  }
475
- function ci(t, e) {
481
+ function bs(t, e) {
476
482
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
477
483
  classificationMethod: t
478
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? W.classBreaks.breaksCount;
484
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
479
485
  }
480
- function di(t, e) {
486
+ function As(t, e) {
481
487
  e.firstDayOfWeek = t;
482
488
  }
483
- function yi(t) {
489
+ function vs(t) {
484
490
  return t.firstDayOfWeek;
485
491
  }
486
- function mi(t) {
492
+ function Is(t) {
487
493
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
488
494
  }
489
- function pi(t, e) {
495
+ function Ls(t, e) {
490
496
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
491
497
  ...e.series[0].classBreaksRules.colorRampInfo,
492
498
  name: t
@@ -497,10 +503,10 @@ function pi(t, e) {
497
503
  }
498
504
  };
499
505
  }
500
- function gi(t) {
506
+ function Vs(t) {
501
507
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
502
508
  }
503
- function fi(t, e) {
509
+ function Ns(t, e) {
504
510
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
505
511
  ...e.series[0].classBreaksRules.colorRampInfo,
506
512
  flipped: t
@@ -510,613 +516,691 @@ function fi(t, e) {
510
516
  }
511
517
  };
512
518
  }
513
- function X(t) {
514
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = U(i?.layer).idField;
519
+ const ni = [
520
+ R.DayOfMonth,
521
+ R.MonthOfYear
522
+ ], Be = (t) => {
523
+ let e;
524
+ return _(t) ? e = de() : (W(t) || Q(t)) && (e = z()), e;
525
+ }, Ce = (t) => W(t) || Q(t), be = (t) => {
526
+ const { axisIndex: e, commonStrings: i, config: a, valueFormat: r } = t, s = a.axes?.[e]?.valueFormat;
527
+ r !== void 0 && s?.type !== r.type && Le({ config: a, commonStrings: i, valueFormat: r, axisIndex: e });
528
+ }, li = (t, e) => {
529
+ let i;
530
+ return e === 0 ? i = t.series[0]?.xTemporalBinning : e === 1 && (i = t.series[0]?.yTemporalBinning), i;
531
+ }, Ae = (t, e) => t.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", ve = (t, e) => {
532
+ let i = ni[t];
533
+ return t === 0 && e?.unit === R.DayOfWeek ? i = R.HourOfDay : t === 1 && e?.unit === R.HourOfDay && (i = R.DayOfWeek), {
534
+ type: h.CalendarDateParts,
535
+ unit: i
536
+ };
537
+ }, oi = (t) => {
538
+ let e = {};
539
+ switch (t.unit) {
540
+ case R.DayOfMonth:
541
+ e = { day: "2-digit" };
542
+ break;
543
+ case R.DayOfWeek:
544
+ e = { weekday: "short" };
545
+ break;
546
+ case R.HourOfDay:
547
+ e = { hour: "numeric", hour12: !1 };
548
+ break;
549
+ case R.MonthOfYear:
550
+ e = { month: "short" };
551
+ break;
552
+ default:
553
+ e = z().intlOptions;
554
+ break;
555
+ }
556
+ return {
557
+ type: h.DateAxisFormat,
558
+ intlOptions: e
559
+ };
560
+ }, Ie = (t) => {
561
+ const { axisIndex: e, binning: i, commonStrings: a, config: r, fieldName: s, layerInfo: n } = t, l = r.series[0], c = se(e, r), d = P(n.layerFieldsInfo, s);
562
+ e === 0 ? l.xTemporalBinning = i : e === 1 && (l.yTemporalBinning = i), i !== void 0 && (c === "" || c === d || c === Ae(a, i.unit)) && E(r, e, Ae(a, i.unit));
563
+ }, G = (t) => {
564
+ const { axisIndex: e, commonStrings: i, config: a } = t, r = li(a, e), s = r ? oi(r) : void 0;
565
+ Le({ config: a, commonStrings: i, valueFormat: s, axisIndex: e });
566
+ }, Re = (t) => {
567
+ const { commonStrings: e, config: i, layerInfo: a } = t, r = i.series[0]?.x ?? "", s = i.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, r), l = Fe(a.layerFieldsInfo, s), c = Be(n), d = Be(l), p = Ce(n) && Ce(l), u = _(n) && _(l);
568
+ if (be({ axisIndex: 0, commonStrings: e, config: i, valueFormat: c }), be({ axisIndex: 1, commonStrings: e, config: i, valueFormat: d }), p) {
569
+ const y = ii(i) === void 0, m = si(i) === void 0;
570
+ y && (Ie({
571
+ axisIndex: 0,
572
+ binning: ve(0, i.series[0].yTemporalBinning),
573
+ commonStrings: e,
574
+ config: i,
575
+ fieldName: r,
576
+ layerInfo: a
577
+ }), G({
578
+ axisIndex: 0,
579
+ commonStrings: e,
580
+ config: i
581
+ })), m && (Ie({
582
+ axisIndex: 1,
583
+ binning: ve(1, i.series[0].xTemporalBinning),
584
+ commonStrings: e,
585
+ config: i,
586
+ fieldName: s,
587
+ layerInfo: a
588
+ }), G({
589
+ axisIndex: 1,
590
+ commonStrings: e,
591
+ config: i
592
+ }));
593
+ }
594
+ u && (i.series[0].xTemporalBinning = void 0, i.series[0].yTemporalBinning = void 0);
595
+ };
596
+ function U(t) {
597
+ const { seriesIndex: e, xAxisField: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
515
598
  let c;
516
- const m = a.series[e ?? 0];
517
- let p = !1, u = !1, d = !1;
518
- if (m === void 0) {
519
- const l = a.series;
520
- p = l.slice(0, e).every((f) => A(f)), u = l.slice(0, e).every((f) => v(f)), d = l.slice(0, e).every((f) => Se(f));
599
+ const d = r.series[e ?? 0];
600
+ let p = !1, u = !1, y = !1;
601
+ if (d === void 0) {
602
+ const o = r.series;
603
+ p = o.slice(0, e).every((f) => A(f)), u = o.slice(0, e).every((f) => v(f)), y = o.slice(0, e).every((f) => Te(f));
521
604
  } else
522
- p = A(m), u = v(m), d = Se(m);
523
- p ? c = pt({
605
+ p = A(d), u = v(d), y = Te(d);
606
+ p ? c = At({
524
607
  commonStrings: n,
525
608
  seriesIndex: e,
526
- objectIDField: o
527
- }) : u ? c = gt({
609
+ objectIDField: l
610
+ }) : u ? c = vt({
528
611
  commonStrings: n,
529
612
  seriesIndex: e,
530
- objectIDField: o
531
- }) : d ? c = ft(n, o) : c = St({
613
+ objectIDField: l
614
+ }) : y ? c = It(n, l) : c = Lt({
532
615
  seriesIndex: e,
533
- objectIDField: o,
616
+ objectIDField: l,
534
617
  commonStrings: n
535
618
  });
536
- const y = a.series[0]?.dataLabels, g = {
619
+ const m = r.series[0]?.dataLabels, g = {
537
620
  ...c,
538
- x: s,
621
+ x: i,
539
622
  y: "",
540
623
  dataLabels: {
541
624
  ...c.dataLabels,
542
- type: c.dataLabels?.type ?? B.Text,
543
- content: { ...c.dataLabels?.content, ...y?.content, type: ct.TS },
544
- visible: y?.visible ?? !1
625
+ type: c.dataLabels?.type ?? h.Text,
626
+ content: { ...c.dataLabels?.content, ...m?.content, type: Tt.TS },
627
+ visible: m?.visible ?? !1
545
628
  }
546
629
  };
547
630
  if (g.query = {
548
- groupByFieldsForStatistics: [s]
549
- }, r !== L.NoAggregation && o !== void 0) {
550
- const l = `${r}_${o}_0`.toUpperCase();
551
- g.y = l, g.query.outStatistics = [
631
+ groupByFieldsForStatistics: [i]
632
+ }, a !== L.NoAggregation && l !== void 0) {
633
+ const o = `${a}_${l}_0`.toUpperCase();
634
+ g.y = o, g.query.outStatistics = [
552
635
  {
553
- statisticType: r,
554
- onStatisticField: o,
555
- outStatisticFieldName: l
636
+ statisticType: a,
637
+ onStatisticField: l,
638
+ outStatisticFieldName: o
556
639
  }
557
640
  ];
558
641
  }
559
- if (k(a.series[0]) && k(g)) {
560
- let l = It(a);
561
- l === ae.Quarter && (l = ae.Month), g.temporalBinning = {
562
- ...a.series[0]?.temporalBinning,
563
- unit: l
642
+ if (D(r.series[0]) && D(g)) {
643
+ let o = Mt(r);
644
+ o === ce.Quarter && (o = ce.Month), g.temporalBinning = {
645
+ ...r.series[0]?.temporalBinning,
646
+ unit: o
564
647
  };
565
648
  }
566
- return K(g);
649
+ return J(g);
567
650
  }
568
- function Z(t, e, s) {
569
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = U(e.layer), n = Y(t), o = J(t), c = Ae(t), m = G(t), p = i && (o.length === 0 || o.includes(a)), u = mt(c, s), d = p ? "" : o.map((F) => D(r ?? [], F)).join(", "), y = D(r ?? [], n), g = D(r ?? [], m), l = t.series.some((F) => O(F)), f = l ? "category" : "xAxisField", x = y;
651
+ function Z(t, e, i) {
652
+ const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = K(e.layer), n = X(t), l = re(t), c = we(t), d = ae(t), p = s && (l.length === 0 || l.includes(r)), u = bt(c, i), y = p ? "" : l.map((F) => P(a ?? [], F)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), o = t.series.some((F) => q(F)), f = o ? "category" : "xAxisField", B = m;
570
653
  let b = "";
571
- if (Te({
654
+ if (Oe({
572
655
  fieldName: n,
573
- numericFields: o,
574
- fieldList: r
656
+ numericFields: l,
657
+ fieldList: a
575
658
  }))
576
- b = w(s.titleLabels.aggrTypeOfAggrFields, {
659
+ b = M(i.titleLabels.aggrTypeOfAggrFields, {
577
660
  aggregationType: u,
578
- aggregationFields: d
661
+ aggregationFields: y
579
662
  });
580
663
  else if (c === L.NoAggregation) {
581
- const F = p ? a : d;
582
- if (m === "") {
583
- const S = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
584
- b = w(s.titleLabels[S], {
664
+ const F = p ? r : y;
665
+ if (d === "") {
666
+ const S = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
667
+ b = M(i.titleLabels[S], {
585
668
  aggregationType: F,
586
- [f]: x
669
+ [f]: B
587
670
  });
588
671
  } else {
589
- const S = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
590
- b = w(s.titleLabels[S], {
672
+ const S = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
673
+ b = M(i.titleLabels[S], {
591
674
  aggregationType: F,
592
- [f]: x,
675
+ [f]: B,
593
676
  splitByField: g
594
677
  });
595
678
  }
596
679
  } else if (c === L.Count)
597
- if (m === "") {
598
- const F = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
599
- b = w(s.titleLabels[F], {
680
+ if (d === "") {
681
+ const F = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
682
+ b = M(i.titleLabels[F], {
600
683
  aggregationType: u,
601
- [f]: x
684
+ [f]: B
602
685
  });
603
686
  } else {
604
- const F = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
605
- b = w(s.titleLabels[F], {
687
+ const F = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
688
+ b = M(i.titleLabels[F], {
606
689
  aggregationType: u,
607
- [f]: x,
690
+ [f]: B,
608
691
  splitByField: g
609
692
  });
610
693
  }
611
- else if (m !== "") {
612
- const F = l ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
613
- b = w(s.titleLabels[F], {
694
+ else if (d !== "") {
695
+ const F = o ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
696
+ b = M(i.titleLabels[F], {
614
697
  aggregationType: u,
615
- aggregationField: d,
616
- [f]: x,
698
+ aggregationField: y,
699
+ [f]: B,
617
700
  splitByField: g
618
701
  });
619
- } else if (o.length > 0) {
620
- const F = l ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
621
- b = w(s.titleLabels[F], {
702
+ } else if (l.length > 0) {
703
+ const F = o ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
704
+ b = M(i.titleLabels[F], {
622
705
  aggregationType: u,
623
- aggregationFields: d,
624
- [f]: x
706
+ aggregationFields: y,
707
+ [f]: B
625
708
  });
626
709
  }
627
710
  return b;
628
711
  }
629
- const be = (t) => oe({
712
+ const Pe = (t) => ge({
630
713
  where: t.query?.where,
631
714
  normalize: !1,
632
715
  escape: !1
633
- }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, G = Re(
716
+ }) ?? "", we = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ae = Xe(
634
717
  (t) => {
635
718
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
636
- return at(t?.series?.[0]?.query?.where) ? "" : e;
719
+ return ft(t?.series?.[0]?.query?.where) ? "" : e;
637
720
  },
638
721
  (t) => t?.series?.[0]?.query?.where
639
- ), J = (t) => {
722
+ ), re = (t) => {
640
723
  let e = [];
641
- if (G(t) === "")
642
- e = t?.series.map((s) => {
643
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
644
- return r?.length > 0 ? r : s.y;
724
+ if (ae(t) === "")
725
+ e = t?.series.map((i) => {
726
+ const a = i.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
727
+ return a?.length > 0 ? a : i.y;
645
728
  }).flat() ?? [];
646
729
  else {
647
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
648
- e = r !== void 0 ? [r] : [];
730
+ const i = t?.series?.[0], a = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
731
+ e = a !== void 0 ? [a] : [];
649
732
  }
650
- return e.filter((s) => s !== "");
733
+ return e.filter((i) => i !== "");
651
734
  };
652
- function ve(t) {
653
- const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = U(r).idField ?? "";
654
- return e === "" ? s[a] ?? i : s[0] ?? i;
735
+ function Me(t) {
736
+ const { splitByField: e, numericFields: i, layer: a, seriesIndex: r } = t, s = K(a).idField ?? "";
737
+ return e === "" ? i[r] ?? s : i[0] ?? s;
655
738
  }
656
- function Ht(t) {
657
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
658
- let i = !1;
659
- s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
660
- const m = a.layerFieldsInfo.find((p) => p.name === c);
661
- return m !== void 0 ? me(m) : !1;
662
- })), ce(r, 1, i);
663
- const n = r.series.some((c) => A(c)), o = r.series.some((c) => v(c));
664
- if (n || o) {
665
- const c = Y(r), m = a.layerFieldsInfo.find((u) => u.name === c), p = m !== void 0 && me(m);
666
- ce(r, 0, p);
739
+ function ui(t) {
740
+ const { numericFields: e, aggregationType: i, config: a, layerInfo: r } = t;
741
+ let s = !1;
742
+ i === L.Count ? s = !0 : i === L.NoAggregation && (s = e.every((c) => {
743
+ const d = r.layerFieldsInfo.find((p) => p.name === c);
744
+ return d !== void 0 ? xe(d) : !1;
745
+ })), fe(a, 1, s);
746
+ const n = a.series.some((c) => A(c)), l = a.series.some((c) => v(c));
747
+ if (n || l) {
748
+ const c = X(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && xe(d);
749
+ fe(a, 0, p);
667
750
  }
668
751
  }
669
- const ne = (t) => {
752
+ const me = (t) => {
670
753
  let e;
671
- if (M(t)) {
672
- const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? q.Category : q.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? q.Category : q.YValue;
673
- e = [pe(s, a), pe(r, i)];
754
+ if (Y(t)) {
755
+ const i = t.orderOptions?.data?.orderByX ?? [""], a = t.orderOptions?.data?.orderByY ?? [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue;
756
+ e = [he(i, r), he(a, s)];
674
757
  } else {
675
- const s = t.orderOptions?.data?.orderType ?? q.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : ot.Ascending;
676
- e = [nt(r, s)];
758
+ const i = t.orderOptions?.data?.orderType ?? O.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : xt.Ascending;
759
+ e = [St(a, i)];
677
760
  }
678
761
  return e;
679
762
  };
680
- function Kt(t) {
681
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
763
+ function ci(t) {
764
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
682
765
  let c = !1;
683
- const m = X({
684
- config: a,
766
+ const d = U({
767
+ config: r,
685
768
  xAxisField: e,
686
- aggregationType: r,
687
- layerInfo: i,
769
+ aggregationType: a,
770
+ layerInfo: s,
688
771
  seriesIndex: 0,
689
772
  commonStrings: n
690
- }), p = Q({
691
- config: a,
773
+ }), p = te({
774
+ config: r,
692
775
  xAxisField: e,
693
- numericFields: s,
694
- aggregationType: r,
695
- layer: i.layer,
696
- fieldList: o
776
+ numericFields: i,
777
+ aggregationType: a,
778
+ layer: s.layer,
779
+ fieldList: l
697
780
  }).name, u = {
698
- ...m,
781
+ ...d,
699
782
  id: `series_${Date.now()}`,
700
783
  name: n.axisLabels.values,
701
- x: ie,
784
+ x: ue,
702
785
  y: p
703
- }, d = [];
704
- for (const g of s)
705
- d.push({
786
+ }, y = [];
787
+ for (const g of i)
788
+ y.push({
706
789
  onStatisticField: g,
707
790
  outStatisticFieldName: `${g}_0`.toUpperCase(),
708
- statisticType: r
791
+ statisticType: a
709
792
  });
710
- u.query = { outStatistics: d };
711
- const y = a.series[0];
712
- return y !== void 0 && (u.id = y.id, (A(u) && A(y) || v(u) && v(y)) && j(u, y), a.colorMatch || (O(y) && O(u) ? u.fillSymbol = y.fillSymbol : (A(u) && A(y) || v(u) && v(y)) && (u.lineSymbol = y.lineSymbol, u.markerSymbol = y.markerSymbol), c = !0), u.id = y.id, y.name !== m.name && (u.name = y.name)), a.series.length === 1 && ((A(u) || v(u)) && j(u, a.series[0]), a.colorMatch || (O(u) ? u.fillSymbol = a.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = a.series[0].lineSymbol, u.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [u];
793
+ u.query = { outStatistics: y };
794
+ const m = r.series[0];
795
+ return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && j(u, m), r.colorMatch || (q(m) && q(u) ? u.fillSymbol = m.fillSymbol : (A(u) && A(m) || v(u) && v(m)) && (u.lineSymbol = m.lineSymbol, u.markerSymbol = m.markerSymbol), c = !0), u.id = m.id, m.name !== d.name && (u.name = m.name)), r.series.length === 1 && ((A(u) || v(u)) && j(u, r.series[0]), r.colorMatch || (q(u) ? u.fillSymbol = r.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = r.series[0].lineSymbol, u.markerSymbol = r.series[0].markerSymbol), c = !0)), r.colorMatch = !c, [u];
713
796
  }
714
- function Ie(t) {
715
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = U(i.layer).idField, m = [];
797
+ function Ee(t) {
798
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, c = K(s.layer).idField, d = [];
716
799
  let p = !1;
717
- for (let l = 0; l < s.length; l += 1) {
718
- const f = X({
719
- config: a,
800
+ for (let o = 0; o < i.length; o += 1) {
801
+ const f = U({
802
+ config: r,
720
803
  xAxisField: e,
721
- aggregationType: r,
722
- layerInfo: i,
723
- seriesIndex: l,
804
+ aggregationType: a,
805
+ layerInfo: s,
806
+ seriesIndex: o,
724
807
  commonStrings: n
725
- }), x = a.series[l]?.y, b = typeof x == "string" && x.trim() !== "" && !o.find((h) => h.name === x) ? x : Q({
726
- config: a,
808
+ }), B = r.series[o]?.y, b = typeof B == "string" && B.trim() !== "" && !l.find((x) => x.name === B) ? B : te({
809
+ config: r,
727
810
  xAxisField: e,
728
- numericFields: s,
729
- aggregationType: r,
730
- layer: i.layer,
731
- numericFieldIndex: l,
732
- fieldList: o
733
- }).name, F = s[l];
811
+ numericFields: i,
812
+ aggregationType: a,
813
+ layer: s.layer,
814
+ numericFieldIndex: o,
815
+ fieldList: l
816
+ }).name, F = i[o];
734
817
  let S = {
735
818
  ...f,
736
819
  query: {
737
820
  ...f.query
738
821
  }
739
822
  };
740
- s && F !== c && (S = {
823
+ i && F !== c && (S = {
741
824
  ...S,
742
825
  id: F,
743
- name: D(o, F)
826
+ name: P(l, F)
744
827
  });
745
828
  let I = F;
746
- S.query !== void 0 && (r !== L.NoAggregation ? (I = b, S.query.outStatistics = [
829
+ S.query !== void 0 && (a !== L.NoAggregation ? (I = b, S.query.outStatistics = [
747
830
  {
748
831
  ...f.query?.outStatistics?.[0] ?? {},
749
832
  onStatisticField: F,
750
833
  outStatisticFieldName: b,
751
- statisticType: r
834
+ statisticType: a
752
835
  }
753
836
  ]) : delete S.query.outStatistics), S.y = I;
754
- const T = a.series.find(
755
- (h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
837
+ const T = r.series.find(
838
+ (x) => x.query?.outStatistics?.[0]?.onStatisticField === F && x.query.where === void 0 || x.query?.outStatistics === void 0 && (x.y === F || x.x === F)
756
839
  );
757
840
  if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
758
- (A(S) && A(T) || v(S) && v(T)) && j(S, T), a.colorMatch || (O(S) && O(T) ? S.fillSymbol = T.fillSymbol : (A(S) && A(T) || v(S) && v(T)) && (S.lineSymbol = T.lineSymbol, S.markerSymbol = T.markerSymbol), p = !0);
759
- const h = X({
760
- config: a,
841
+ (A(S) && A(T) || v(S) && v(T)) && j(S, T), r.colorMatch || (q(S) && q(T) ? S.fillSymbol = T.fillSymbol : (A(S) && A(T) || v(S) && v(T)) && (S.lineSymbol = T.lineSymbol, S.markerSymbol = T.markerSymbol), p = !0);
842
+ const x = U({
843
+ config: r,
761
844
  xAxisField: e,
762
- aggregationType: r,
763
- layerInfo: i,
764
- seriesIndex: l,
845
+ aggregationType: a,
846
+ layerInfo: s,
847
+ seriesIndex: o,
765
848
  commonStrings: n
766
849
  });
767
- S.id = T.id, T.id !== h.id && T.name !== h.name && (S.id = T.id, S.name = T.name), S.assignToSecondValueAxis = T.assignToSecondValueAxis, S.type === B.HeatSeries && T.type === B.HeatSeries && (S.y = T.y, S.heatRulesType = T.heatRulesType);
850
+ S.id = T.id, T.id !== x.id && T.name !== x.name && (S.id = T.id, S.name = T.name), S.assignToSecondValueAxis = T.assignToSecondValueAxis, S.type === h.HeatSeries && T.type === h.HeatSeries && (S.y = T.y, S.heatRulesType = T.heatRulesType);
768
851
  }
769
- m.push(S);
852
+ d.push(S);
770
853
  }
771
- const u = m.filter((l) => O(l)), d = m.filter(
772
- (l) => A(l) || v(l)
773
- ), y = a.series.filter((l) => O(l)), g = a.series.filter(
774
- (l) => A(l) || v(l)
854
+ const u = d.filter((o) => q(o)), y = d.filter(
855
+ (o) => A(o) || v(o)
856
+ ), m = r.series.filter((o) => q(o)), g = r.series.filter(
857
+ (o) => A(o) || v(o)
775
858
  );
776
- return y.length === 1 && u.length === 1 && !a.colorMatch && (O(y[0]) && O(u[0]) && (u[0].fillSymbol = y[0].fillSymbol), p = !0), g.length === 1 && d.length === 1 && ((A(g[0]) && A(d[0]) || v(g[0]) && v(d[0])) && j(d[0], g[0]), a.colorMatch || ((A(g[0]) && A(d[0]) || v(g[0]) && v(d[0])) && (d[0].lineSymbol = g[0].lineSymbol, d[0].markerSymbol = g[0].markerSymbol), p = !0)), a.colorMatch = !p, m;
859
+ return m.length === 1 && u.length === 1 && !r.colorMatch && (q(m[0]) && q(u[0]) && (u[0].fillSymbol = m[0].fillSymbol), p = !0), g.length === 1 && y.length === 1 && ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && j(y[0], g[0]), r.colorMatch || ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), p = !0)), r.colorMatch = !p, d;
777
860
  }
778
- function Si(t) {
779
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = Y(s), c = J(s), m = G(s), p = ee(s, r, a), u = Le(s, r, a);
780
- if (s.series.forEach((d, y) => {
781
- const g = Q({
782
- config: s,
783
- xAxisField: o,
861
+ function Os(t) {
862
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s, layer: n } = a, l = X(i), c = re(i), d = ae(i), p = ne(i, a, r), u = We(i, a, r);
863
+ if (i.series.forEach((y, m) => {
864
+ const g = te({
865
+ config: i,
866
+ xAxisField: l,
784
867
  numericFields: c,
785
868
  aggregationType: e,
786
- splitByField: m,
869
+ splitByField: d,
787
870
  layer: n,
788
- seriesIndex: y,
789
- numericFieldIndex: y,
790
- fieldList: i
871
+ seriesIndex: m,
872
+ numericFieldIndex: m,
873
+ fieldList: s
791
874
  }).name;
792
- d.y = g;
793
- const l = ve({
794
- splitByField: m,
875
+ y.y = g;
876
+ const o = Me({
877
+ splitByField: d,
795
878
  numericFields: c,
796
879
  layer: n,
797
- seriesIndex: y
798
- }), f = d.query?.outStatistics?.[0]?.onStatisticField ?? l;
799
- d.query = {
800
- ...d.query,
880
+ seriesIndex: m
881
+ }), f = y.query?.outStatistics?.[0]?.onStatisticField ?? o;
882
+ y.query = {
883
+ ...y.query,
801
884
  outStatistics: e === L.NoAggregation ? void 0 : [
802
885
  {
803
- ...d.query?.outStatistics?.[0],
886
+ ...y.query?.outStatistics?.[0],
804
887
  outStatisticFieldName: g,
805
888
  statisticType: e,
806
889
  onStatisticField: f
807
890
  }
808
891
  ]
809
- }, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === L.NoAggregation ? $.Interpolate : $.Null), e === L.NoAggregation && Nt(s);
810
- }), p && s.title && (s.title.content.text = Z(s, r, a)), u && s.series[0].type !== B.HeatSeries) {
811
- const d = le({
812
- config: s,
813
- layerInfo: r,
814
- commonStrings: a,
892
+ }, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === L.NoAggregation ? $.Interpolate : $.Null), e === L.NoAggregation && Yt(i);
893
+ }), p && i.title && (i.title.content.text = Z(i, a, r)), u && i.series[0].type !== h.HeatSeries) {
894
+ const y = pe({
895
+ config: i,
896
+ layerInfo: a,
897
+ commonStrings: r,
815
898
  numericFields: c,
816
899
  aggregationType: e
817
900
  });
818
- E(s, 1, d);
901
+ E(i, 1, y);
819
902
  }
820
903
  }
821
- function _t(t) {
904
+ function di(t) {
822
905
  const {
823
906
  splitByField: e,
824
- xAxisField: s,
825
- numericFields: r,
826
- aggregationType: a,
827
- config: i,
907
+ xAxisField: i,
908
+ numericFields: a,
909
+ aggregationType: r,
910
+ config: s,
828
911
  layerInfo: n,
829
- commonStrings: o,
912
+ commonStrings: l,
830
913
  splitByFieldInfos: c
831
- } = t, { layer: m, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: d } = c, y = ve({
914
+ } = t, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = Me({
832
915
  splitByField: e,
833
- numericFields: r,
834
- layer: m,
916
+ numericFields: a,
917
+ layer: d,
835
918
  seriesIndex: 0
836
919
  });
837
- let g = [], l = !1;
920
+ let g = [], o = !1;
838
921
  if (u.length === 0) {
839
- g = Ie({
840
- xAxisField: s,
841
- numericFields: r,
842
- aggregationType: a,
843
- config: i,
922
+ g = Ee({
923
+ xAxisField: i,
924
+ numericFields: a,
925
+ aggregationType: r,
926
+ config: s,
844
927
  layerInfo: n,
845
- commonStrings: o
928
+ commonStrings: l
846
929
  });
847
930
  for (const f of g)
848
931
  f.query && (f.query.where = `${e}=''`);
849
932
  } else
850
933
  for (let f = 0; f < u.length; f += 1) {
851
- const x = u[f], b = Q({
852
- config: i,
853
- xAxisField: s,
854
- numericFields: r,
855
- aggregationType: a,
934
+ const B = u[f], b = te({
935
+ config: s,
936
+ xAxisField: i,
937
+ numericFields: a,
938
+ aggregationType: r,
856
939
  layer: n.layer,
857
940
  seriesIndex: f,
858
941
  splitByField: e,
859
942
  fieldList: p
860
- }).name, F = X({
861
- config: i,
862
- xAxisField: s,
863
- aggregationType: a,
943
+ }).name, F = U({
944
+ config: s,
945
+ xAxisField: i,
946
+ aggregationType: r,
864
947
  layerInfo: n,
865
948
  seriesIndex: f,
866
- commonStrings: o
867
- }), S = he({
949
+ commonStrings: l
950
+ }), S = Ne({
868
951
  queryObject: n.layer,
869
952
  fieldName: e,
870
- fieldValue: x ?? ""
871
- }), I = `${x}`, h = {
953
+ fieldValue: B ?? ""
954
+ }), I = `${B}`, x = {
872
955
  ...F,
873
956
  id: I,
874
957
  name: S ?? I,
875
958
  y: b,
876
959
  query: {
877
960
  ...F.query,
878
- where: `${e}=${d === dt.String && x !== null ? `'${x}'` : x}`,
879
- outStatistics: a !== L.NoAggregation ? [
961
+ where: `${e}=${y === Bt.String && B !== null ? `'${B}'` : B}`,
962
+ outStatistics: r !== L.NoAggregation ? [
880
963
  {
881
964
  ...F.query?.outStatistics?.[0] ?? {},
882
- onStatisticField: y,
965
+ onStatisticField: m,
883
966
  outStatisticFieldName: b,
884
- statisticType: a
967
+ statisticType: r
885
968
  }
886
969
  ] : void 0
887
970
  }
888
- }, V = i.series.find(
889
- (N) => String(be(N)).trim().replace(/'/gu, "") === I
971
+ }, V = s.series.find(
972
+ (N) => String(Pe(N)).trim().replace(/'/gu, "") === I
890
973
  );
891
- V !== void 0 && ((A(h) && A(V) || v(h) && v(V)) && j(h, V), i.colorMatch || (O(h) && O(V) ? h.fillSymbol = V.fillSymbol : (A(h) && A(V) || v(h) && v(V)) && (h.lineSymbol = V.lineSymbol, h.markerSymbol = V.markerSymbol), l = !0), h.id = V.id, h.name = V.name, h.assignToSecondValueAxis = V.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = i.series.some((N) => N.query?.fetchNullValues)), g.push(h);
974
+ V !== void 0 && ((A(x) && A(V) || v(x) && v(V)) && j(x, V), s.colorMatch || (q(x) && q(V) ? x.fillSymbol = V.fillSymbol : (A(x) && A(V) || v(x) && v(V)) && (x.lineSymbol = V.lineSymbol, x.markerSymbol = V.markerSymbol), o = !0), x.id = V.id, x.name = V.name, x.assignToSecondValueAxis = V.assignToSecondValueAxis), x.query && (x.query.fetchNullValues = s.series.some((N) => N.query?.fetchNullValues)), g.push(x);
892
975
  }
893
- return i.colorMatch = !l, g;
976
+ return s.colorMatch = !o, g;
894
977
  }
895
- const Fi = (t) => {
978
+ const ks = (t) => {
896
979
  const {
897
980
  xAxisFieldName: e,
898
- splitByField: s,
899
- numericFields: r,
900
- aggregationType: a,
901
- config: i,
981
+ splitByField: i,
982
+ numericFields: a,
983
+ aggregationType: r,
984
+ config: s,
902
985
  layerInfo: n,
903
- commonStrings: o,
986
+ commonStrings: l,
904
987
  splitByFieldInfos: c
905
- } = t, { layerFieldsInfo: m } = n ?? {}, p = K(i), u = At(i), d = Y(p), y = m.find((C) => C.name === d), g = p.series[0].query?.fetchNullValues, l = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, x = m.find((C) => C.name === e), b = ee(p, n, o), F = Le(p, n, o), S = Qt(p, n);
906
- let I = Fe(i);
907
- const T = p.series.some((C) => O(C)), h = ht(p.series), V = Tt(p.series), N = {};
908
- M(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
909
- let te = !1;
910
- if (rt(x) ? I = ge() : !ye(y) && ye(x) ? I = fe() : !H(y) && H(x) ? (I = fe(), te = !0) : H(y) && !H(x) && (T ? I = ge() : I = Ft(), te = !0), I !== void 0 && Oe(i, o, I), u === 0 && (i.series = [
911
- X({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
912
- ]), i.series.forEach((C) => {
988
+ } = t, { layerFieldsInfo: d } = n ?? {}, p = J(s), u = Pt(s), y = X(p), m = d.find((C) => C.name === y), g = p.series[0].query?.fetchNullValues, o = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, B = d.find((C) => C.name === e), b = ne(p, n, l), F = We(p, n, l), S = yi(p, n);
989
+ let I = Ve(s);
990
+ const T = p.series.some((C) => q(C)), x = Nt(p.series), V = Ot(p.series), N = {};
991
+ Y(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
992
+ let le = !1;
993
+ if (_(B) ? I = de() : !Q(m) && Q(B) ? I = z() : !W(m) && W(B) ? (I = z(), le = !0) : W(m) && !W(B) && (T ? I = de() : I = Vt(), le = !0), I !== void 0 && je(s, l, I), u === 0 && (s.series = [
994
+ U({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: l })
995
+ ]), s.series.forEach((C) => {
913
996
  C.x = e, C.query !== void 0 && (C.query.groupByFieldsForStatistics = [e]);
914
- }), s === "" || r.length > 1 ? Te({
997
+ }), i === "" || a.length > 1 ? Oe({
915
998
  fieldName: e,
916
- numericFields: r,
917
- fieldList: m
918
- }) ? i.series = Kt({
919
- config: i,
999
+ numericFields: a,
1000
+ fieldList: d
1001
+ }) ? s.series = ci({
1002
+ config: s,
920
1003
  layerInfo: n,
921
1004
  xAxisField: e,
922
- numericFields: r,
923
- aggregationType: a,
924
- commonStrings: o
925
- }) : i.series = Ie({
926
- config: i,
1005
+ numericFields: a,
1006
+ aggregationType: r,
1007
+ commonStrings: l
1008
+ }) : s.series = Ee({
1009
+ config: s,
927
1010
  layerInfo: n,
928
1011
  xAxisField: e,
929
- numericFields: r,
930
- aggregationType: a,
931
- commonStrings: o
932
- }) : c && (i.series = _t({
933
- config: i,
1012
+ numericFields: a,
1013
+ aggregationType: r,
1014
+ commonStrings: l
1015
+ }) : c && (s.series = di({
1016
+ config: s,
934
1017
  layerInfo: n,
935
- splitByField: s,
1018
+ splitByField: i,
936
1019
  xAxisField: e,
937
- numericFields: r,
938
- aggregationType: a,
939
- commonStrings: o,
1020
+ numericFields: a,
1021
+ aggregationType: r,
1022
+ commonStrings: l,
940
1023
  splitByFieldInfos: c
941
- })), S && i.series[0].type !== B.HeatSeries) {
942
- const C = D(m, e);
943
- E(i, 0, C);
1024
+ })), S && s.series[0].type !== h.HeatSeries) {
1025
+ const C = P(d, e);
1026
+ E(s, 0, C);
944
1027
  }
945
- if (F && i.series[0].type !== B.HeatSeries) {
946
- const C = le({
947
- config: i,
1028
+ if (F && s.series[0].type !== h.HeatSeries) {
1029
+ const C = pe({
1030
+ config: s,
948
1031
  layerInfo: n,
949
- commonStrings: o,
950
- numericFields: r,
951
- aggregationType: a
1032
+ commonStrings: l,
1033
+ numericFields: a,
1034
+ aggregationType: r
952
1035
  });
953
- E(i, 1, C);
1036
+ E(s, 1, C);
954
1037
  }
955
- if (b && i.title && (i.title.content.text = Z(i, n, o)), R({ config: i, value: null, axisIndex: 1, isMax: !1 }), R({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ht({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (h || V) && (R({ config: i, value: null, axisIndex: 0, isMax: !1 }), R({ config: i, value: null, axisIndex: 0, isMax: !0 }), te && a !== L.NoAggregation)) {
956
- const C = I?.type === B.DateAxisFormat ? $.Null : $.Interpolate;
957
- Vt(C, i);
1038
+ if (b && s.title && (s.title.content.text = Z(s, n, l)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), ui({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (x || V) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), le && r !== L.NoAggregation)) {
1039
+ const C = I?.type === h.DateAxisFormat ? $.Null : $.Interpolate;
1040
+ Wt(C, s);
958
1041
  }
959
- M(i) && (i.series[0].classBreaksRules = N.classBreaksRules, i.series[0].xTemporalBinning = N.xTemporalBinning, i.series[0].yTemporalBinning = N.yTemporalBinning, i.series[0].emptyCells = N.emptyCells, i.nullPolicy = N.nullPolicy), f ? i.series.forEach((C) => {
1042
+ Y(s) && (s.series[0].classBreaksRules = N.classBreaksRules, s.series[0].xTemporalBinning = N.xTemporalBinning, s.series[0].yTemporalBinning = N.yTemporalBinning, s.series[0].emptyCells = N.emptyCells, s.nullPolicy = N.nullPolicy, Re({ commonStrings: l, config: s, layerInfo: n })), f ? s.series.forEach((C) => {
960
1043
  delete C.query;
961
- }) : g && i.series.forEach((C) => {
1044
+ }) : g && s.series.forEach((C) => {
962
1045
  C.query && (C.query.fetchNullValues = g);
963
- }), l && i.series.forEach((C) => {
964
- (C.type === B.BarSeries || C.type === B.LineSeries || C.type === B.RadarSeries) && (C.nullCategory = l);
965
- }), i.series.forEach((C) => {
966
- const Ve = p.series.find((Ne) => Ne.id === C.id)?.visible;
967
- C.visible = Ve;
1046
+ }), o && s.series.forEach((C) => {
1047
+ (C.type === h.BarSeries || C.type === h.LineSeries || C.type === h.RadarSeries) && (C.nullCategory = o);
1048
+ }), s.series.forEach((C) => {
1049
+ const Ye = p.series.find(($e) => $e.id === C.id)?.visible;
1050
+ C.visible = Ye;
968
1051
  });
969
1052
  }, j = (t, e) => {
970
1053
  t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
971
1054
  ...e.markerSymbol,
972
1055
  color: t.markerSymbol?.color
973
1056
  });
974
- }, hi = (t) => {
975
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = G(e);
976
- let o;
977
- if (_(e.series) === P.BarAndLineFromFields)
978
- o = a.axisLabels.values;
979
- else if (qe(n)) {
980
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
981
- m !== void 0 && m !== U(r.layer).idField && (o = D(r.layerFieldsInfo, m));
1057
+ }, Ds = (t) => {
1058
+ const { config: e, seriesIndex: i, layerInfo: a, commonStrings: r } = t, s = e.series?.[i], n = ae(e);
1059
+ let l;
1060
+ if (ee(e.series) === w.BarAndLineFromFields)
1061
+ l = r.axisLabels.values;
1062
+ else if (He(n)) {
1063
+ const d = s.query?.outStatistics?.[0]?.onStatisticField;
1064
+ d !== void 0 && d !== K(a.layer).idField && (l = P(a.layerFieldsInfo, d));
982
1065
  } else {
983
- const m = String(be(i)).trim().replace(/'/gu, "");
984
- o = he({
985
- queryObject: r.layer,
1066
+ const d = String(Pe(s)).trim().replace(/'/gu, "");
1067
+ l = Ne({
1068
+ queryObject: a.layer,
986
1069
  fieldName: n,
987
- fieldValue: m ?? ""
988
- }) ?? m;
1070
+ fieldValue: d ?? ""
1071
+ }) ?? d;
989
1072
  }
990
- return o ?? i.id;
991
- }, Ti = (t, e) => {
992
- if (M(e))
993
- Ut(t, e);
1073
+ return l ?? s.id;
1074
+ }, qs = (t, e) => {
1075
+ if (Y(e))
1076
+ ai(t, e);
994
1077
  else {
995
1078
  e.orderOptions ??= {};
996
- const s = e.orderOptions?.data?.orderType;
997
- ne(e)[0] === se.customSort && s === q.Category && (e.orderOptions.data = {
998
- orderType: q.Category,
1079
+ const i = e.orderOptions?.data?.orderType;
1080
+ me(e)[0] === oe.customSort && i === O.Category && (e.orderOptions.data = {
1081
+ orderType: O.Category,
999
1082
  orderBy: [...t]
1000
1083
  });
1001
1084
  }
1002
- }, xi = async (t) => {
1003
- const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, n = J(e), o = _(e.series);
1085
+ }, Rs = async (t) => {
1086
+ const { config: e, layerInfo: i, errorStrings: a } = t, r = X(e), s = Ve(e)?.type, n = re(e), l = ee(e.series);
1004
1087
  let c = [];
1005
- return i === B.CategoryAxisFormat && (o === P.BarAndLineFromFields || a === ie ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ie && s !== void 0 && (c = await ke({
1006
- layerInfo: s,
1088
+ return s === h.CategoryAxisFormat && (l === w.BarAndLineFromFields || r === ue ? c = n.map((d) => P(i?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ue && i !== void 0 && (c = await Ue({
1089
+ layerInfo: i,
1007
1090
  config: e,
1008
- category: a,
1009
- errorStrings: r
1091
+ category: r,
1092
+ errorStrings: a
1010
1093
  }))), c;
1011
1094
  };
1012
- function ee(t, e, s) {
1013
- const r = Z(t, e, s), a = vt(t), i = z(t);
1014
- return r === a || i;
1095
+ function ne(t, e, i) {
1096
+ const a = Z(t, e, i), r = wt(t), s = ie(t);
1097
+ return a === r || s;
1015
1098
  }
1016
- function Le(t, e, s) {
1017
- const r = le({
1099
+ function We(t, e, i) {
1100
+ const a = pe({
1018
1101
  config: t,
1019
1102
  layerInfo: e,
1020
- commonStrings: s,
1021
- numericFields: J(t),
1022
- aggregationType: Ae(t)
1023
- }), a = ue(1, t), i = z(t);
1024
- return r === a || i;
1103
+ commonStrings: i,
1104
+ numericFields: re(t),
1105
+ aggregationType: we(t)
1106
+ }), r = se(1, t), s = ie(t);
1107
+ return a === r || s;
1025
1108
  }
1026
- function Qt(t, e) {
1027
- const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
1028
- return s === r || a;
1109
+ function yi(t, e) {
1110
+ const i = P(e.layerFieldsInfo, X(t)), a = se(0, t), r = ie(t);
1111
+ return i === a || r;
1029
1112
  }
1030
- function Bi(t) {
1031
- return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1113
+ function Ps(t) {
1114
+ return D(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1032
1115
  }
1033
- function Ci(t, e) {
1034
- e?.series.forEach((s) => {
1035
- (s?.type === B.BarSeries || s?.type === B.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1036
- unit: ae.Day,
1116
+ function ws(t, e) {
1117
+ e?.series.forEach((i) => {
1118
+ (i?.type === h.BarSeries || i?.type === h.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
1119
+ unit: ce.Day,
1037
1120
  size: 0,
1038
- timeAggregationType: ut.Start,
1121
+ timeAggregationType: ht.Start,
1039
1122
  trimIncompleteTimeInterval: !0,
1040
1123
  nullPolicy: $.Null
1041
- } : delete s.temporalBinning);
1124
+ } : delete i.temporalBinning);
1042
1125
  });
1043
1126
  }
1044
1127
  export {
1045
- Xs as $,
1046
- xi as A,
1047
- Ti as B,
1048
- Fi as C,
1049
- Bi as D,
1050
- Ci as E,
1128
+ es as $,
1129
+ Rs as A,
1130
+ qs as B,
1131
+ ks as C,
1132
+ Ps as D,
1133
+ ws as E,
1051
1134
  Z as F,
1052
- jt as G,
1053
- Ds as H,
1054
- ri as I,
1055
- ni as J,
1056
- ws as K,
1057
- Ps as L,
1058
- Ms as M,
1059
- Es as N,
1060
- li as O,
1061
- oi as P,
1062
- ui as Q,
1063
- ci as R,
1064
- mi as S,
1065
- pi as T,
1066
- gi as U,
1067
- fi as V,
1068
- Dt as W,
1069
- Vs as X,
1070
- Ns as Y,
1071
- Ws as Z,
1072
- $s as _,
1073
- As as a,
1074
- Ys as a0,
1075
- Rs as a1,
1076
- qs as a2,
1077
- Os as a3,
1078
- ks as a4,
1079
- Zs as a5,
1080
- Hs as a6,
1081
- Ks as a7,
1082
- _s as a8,
1083
- Us as a9,
1084
- js as aa,
1085
- Qs as ab,
1086
- Zt as ac,
1087
- zs as ad,
1088
- Gs as ae,
1089
- Js as af,
1090
- ei as ag,
1091
- ti as ah,
1092
- si as ai,
1093
- yi as aj,
1094
- di as ak,
1095
- ii as al,
1096
- ai as am,
1097
- Bs as b,
1098
- Cs as c,
1099
- J as d,
1100
- G as e,
1101
- Ls as f,
1102
- Ae as g,
1103
- hi as h,
1104
- vs as i,
1105
- gs as j,
1106
- Lt as k,
1107
- It as l,
1108
- hs as m,
1109
- fs as n,
1110
- Ts as o,
1111
- Is as p,
1112
- Ss as q,
1113
- Pt as r,
1114
- Ce as s,
1115
- xs as t,
1116
- bs as u,
1117
- Fs as v,
1118
- Vt as w,
1119
- Nt as x,
1120
- Si as y,
1121
- ne as z
1135
+ Re as G,
1136
+ ti as H,
1137
+ zi as I,
1138
+ xs as J,
1139
+ hs as K,
1140
+ ii as L,
1141
+ Gi as M,
1142
+ si as N,
1143
+ Ji as O,
1144
+ Ts as P,
1145
+ Bs as Q,
1146
+ Cs as R,
1147
+ bs as S,
1148
+ Is as T,
1149
+ Ls as U,
1150
+ Vs as V,
1151
+ jt as W,
1152
+ Ns as X,
1153
+ Ui as Y,
1154
+ ji as Z,
1155
+ ts as _,
1156
+ Yi as a,
1157
+ ss as a0,
1158
+ is as a1,
1159
+ Zi as a2,
1160
+ Ki as a3,
1161
+ Qi as a4,
1162
+ _i as a5,
1163
+ ns as a6,
1164
+ ls as a7,
1165
+ os as a8,
1166
+ us as a9,
1167
+ rs as aa,
1168
+ as as ab,
1169
+ cs as ac,
1170
+ ri as ad,
1171
+ ds as ae,
1172
+ ys as af,
1173
+ ms as ag,
1174
+ ps as ah,
1175
+ gs as ai,
1176
+ fs as aj,
1177
+ vs as ak,
1178
+ As as al,
1179
+ Ss as am,
1180
+ Fs as an,
1181
+ Mi as b,
1182
+ Ei as c,
1183
+ re as d,
1184
+ ae as e,
1185
+ Xi as f,
1186
+ we as g,
1187
+ Ds as h,
1188
+ $i as i,
1189
+ Oi as j,
1190
+ Et as k,
1191
+ Mt as l,
1192
+ Ri as m,
1193
+ ki as n,
1194
+ Pi as o,
1195
+ Hi as p,
1196
+ Di as q,
1197
+ Kt as r,
1198
+ qe as s,
1199
+ wi as t,
1200
+ Wi as u,
1201
+ qi as v,
1202
+ Wt as w,
1203
+ Yt as x,
1204
+ Os as y,
1205
+ me as z
1122
1206
  };