@arcgis/charts-components 5.2.0-next.58 → 5.2.0-next.59

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 (231) hide show
  1. package/dist/cdn/{A6QLIVFM.js → 26UUSCOV.js} +20 -20
  2. package/dist/cdn/2B27HWX2.js +2 -0
  3. package/dist/cdn/44DVV3KE.js +2 -0
  4. package/dist/cdn/54M3LLQH.js +2 -0
  5. package/dist/cdn/5NZ537SN.js +2 -0
  6. package/dist/cdn/5RC76C5H.js +2 -0
  7. package/dist/cdn/{OEYB3NZZ.js → 5RWZRHLN.js} +1 -1
  8. package/dist/cdn/64CBZCW7.js +2 -0
  9. package/dist/cdn/{PHUJHKPW.js → 6HIK7EBX.js} +1 -1
  10. package/dist/cdn/6KMPIGFU.js +2 -0
  11. package/dist/cdn/6KTWKIGJ.js +2 -0
  12. package/dist/cdn/{UGOWEOTC.js → AYQ4HHL6.js} +1 -1
  13. package/dist/cdn/AZDPAG65.js +2 -0
  14. package/dist/cdn/B2XDPYOL.js +2 -0
  15. package/dist/cdn/{LOEMTYZB.js → B5KB7HXA.js} +1 -1
  16. package/dist/cdn/BFT5CL7V.js +2 -0
  17. package/dist/cdn/BU3IX333.js +2 -0
  18. package/dist/cdn/COLTSCAS.js +2 -0
  19. package/dist/cdn/CU6R7UXF.js +2 -0
  20. package/dist/cdn/{NYFHPR6N.js → DAFNQT4C.js} +1 -1
  21. package/dist/cdn/{OS5TUH4X.js → DDUKKQIZ.js} +1 -1
  22. package/dist/cdn/{FQ6B5P53.js → DG6ENZ35.js} +1 -1
  23. package/dist/cdn/E5G6IGUP.js +2 -0
  24. package/dist/cdn/EFRELYIP.js +2 -0
  25. package/dist/cdn/EQ2X422F.js +2 -0
  26. package/dist/cdn/{J64IDIEG.js → EQDTX4JX.js} +1 -1
  27. package/dist/cdn/FHCIXPMQ.js +3 -0
  28. package/dist/cdn/FJGG2VVZ.js +2 -0
  29. package/dist/cdn/G3MWFZDW.js +2 -0
  30. package/dist/cdn/GC7ISTDF.js +2 -0
  31. package/dist/cdn/{GVUHKCSZ.js → GJ4JGGKT.js} +1 -1
  32. package/dist/cdn/GPABWWGF.js +2 -0
  33. package/dist/cdn/{DRHDCMI3.js → GQGII3CK.js} +1 -1
  34. package/dist/cdn/{JXZJXDU5.js → GWNHO3MZ.js} +11 -9
  35. package/dist/cdn/H3CYQU3L.js +2 -0
  36. package/dist/cdn/{HDCSZ2BJ.js → H57XAQPI.js} +2 -2
  37. package/dist/cdn/HD72K7JQ.js +2 -0
  38. package/dist/cdn/{FJPWWKHZ.js → HSVZTTYF.js} +1 -1
  39. package/dist/cdn/IJYXP34M.js +2 -0
  40. package/dist/cdn/IKSW6TU5.js +2 -0
  41. package/dist/cdn/{BGTNSGMQ.js → INUVRMMG.js} +1 -1
  42. package/dist/cdn/{6Z7SZ44K.js → IOE5YG7Q.js} +1 -1
  43. package/dist/cdn/IPMCTC6B.js +2 -0
  44. package/dist/cdn/IW7AZIV6.js +2 -0
  45. package/dist/cdn/{4B5XCGIW.js → J6M4AA5V.js} +1 -1
  46. package/dist/cdn/JWWSIFDA.js +2 -0
  47. package/dist/cdn/KBOIN2ZI.js +2 -0
  48. package/dist/cdn/KDLRVDVQ.js +2 -0
  49. package/dist/cdn/KJZTU3DV.js +2 -0
  50. package/dist/cdn/{GSD4ZLN6.js → KR7A5JG4.js} +1 -1
  51. package/dist/cdn/KUI3SQHQ.js +2 -0
  52. package/dist/cdn/KVAWYWYK.js +2 -0
  53. package/dist/cdn/{5PAOUYHV.js → LA5FTE2U.js} +2 -2
  54. package/dist/cdn/LU6YEMXO.js +2 -0
  55. package/dist/cdn/MJLDF2FQ.js +2 -0
  56. package/dist/cdn/{UYQBMPSN.js → MLLV2GML.js} +1 -1
  57. package/dist/cdn/MO5LDVWE.js +2 -0
  58. package/dist/cdn/MYDNPSD6.js +2 -0
  59. package/dist/cdn/NCHIDM4H.js +2 -0
  60. package/dist/cdn/NYDW2I5M.js +2 -0
  61. package/dist/cdn/{2EDBRZSQ.js → NZT3J3KJ.js} +1 -1
  62. package/dist/cdn/{QYNNPEED.js → OAXHS4LE.js} +1 -1
  63. package/dist/cdn/OKZBV5LB.js +2 -0
  64. package/dist/cdn/{QRJMT2DB.js → OTH3FQJJ.js} +1 -1
  65. package/dist/cdn/P2L3OTIA.js +2 -0
  66. package/dist/cdn/PA4NRD4I.js +2 -0
  67. package/dist/cdn/PDYOXU7M.js +2 -0
  68. package/dist/cdn/PXTBSPEA.js +2 -0
  69. package/dist/cdn/{ALOMPW5P.js → Q6VW7H3A.js} +1 -1
  70. package/dist/cdn/QRNP4SNY.js +2 -0
  71. package/dist/cdn/QTD2QGHC.js +2 -0
  72. package/dist/cdn/{GXGUKV7H.js → RA3GUNR3.js} +1 -1
  73. package/dist/cdn/{VPJVWP7S.js → RQ6HACQP.js} +1 -1
  74. package/dist/cdn/{2ULHNXRJ.js → SCU3SBSN.js} +1 -1
  75. package/dist/cdn/T3WULYNA.js +2 -0
  76. package/dist/cdn/TCKFUPRR.js +2 -0
  77. package/dist/cdn/TQYULR2I.js +2 -0
  78. package/dist/cdn/UL2ASLY7.js +2 -0
  79. package/dist/cdn/{MEQOANO2.js → UMYQZXPT.js} +1 -1
  80. package/dist/cdn/USNCFQ5L.js +2 -0
  81. package/dist/cdn/{EZ6DGROJ.js → UYMLDXJI.js} +1 -1
  82. package/dist/cdn/V6TEH3XV.js +2 -0
  83. package/dist/cdn/VME2NH7X.js +2 -0
  84. package/dist/cdn/{KI2XMATI.js → VXQLTYHF.js} +1 -1
  85. package/dist/cdn/WKCITUA3.js +2 -0
  86. package/dist/cdn/{CB6BIIF2.js → WMUPNT4Q.js} +1 -1
  87. package/dist/cdn/WWKZYBCF.js +2 -0
  88. package/dist/cdn/XYBOIKE4.js +2 -0
  89. package/dist/cdn/{2DHUAIBZ.js → YIWJ2NPY.js} +1 -1
  90. package/dist/cdn/YL27XTUT.js +2 -0
  91. package/dist/cdn/{TT6WOAKC.js → ZESW7TCR.js} +1 -1
  92. package/dist/cdn/ZH3BXRLT.js +2 -0
  93. package/dist/cdn/{6HFL4FZL.js → ZZ5FKECR.js} +1 -1
  94. package/dist/cdn/index.js +1 -1
  95. package/dist/cdn/model/shared/setup-utils.js +1 -1
  96. package/dist/chart-rendering/common/interfaces.d.ts +11 -8
  97. package/dist/chunks/action-bar-utils.js +1 -1
  98. package/dist/chunks/bar-chart-model.js +1 -1
  99. package/dist/chunks/box-plot-data.js +55 -56
  100. package/dist/chunks/box-plot-model.js +1 -1
  101. package/dist/chunks/class-breaks.js +1 -1
  102. package/dist/chunks/combo-bar-line-chart-model.js +6 -7
  103. package/dist/chunks/data.js +9 -9
  104. package/dist/chunks/gauge-model.js +1 -1
  105. package/dist/chunks/generate-x-axis-title.js +4 -4
  106. package/dist/chunks/heat-chart-model.js +1 -1
  107. package/dist/chunks/index.js +1 -1
  108. package/dist/chunks/index2.js +1576 -1467
  109. package/dist/chunks/index3.js +77 -67
  110. package/dist/chunks/index4.js +25 -13
  111. package/dist/chunks/index5.js +63 -100
  112. package/dist/chunks/line-chart-model.js +1 -1
  113. package/dist/chunks/model-setter.js +1 -1
  114. package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
  115. package/dist/chunks/pie-chart-data.js +1 -1
  116. package/dist/chunks/pie-chart-model.js +1 -1
  117. package/dist/chunks/radar-chart-model.js +1 -1
  118. package/dist/chunks/resource.js +5 -5
  119. package/dist/chunks/rounded-corners.js +5 -5
  120. package/dist/chunks/scatterplot-model.js +1 -1
  121. package/dist/chunks/serial-chart-data.js +631 -620
  122. package/dist/chunks/serial-chart-model.js +63 -64
  123. package/dist/chunks/series-length.js +1 -1
  124. package/dist/chunks/series-types.js +22 -18
  125. package/dist/chunks/type-guards2.js +30 -26
  126. package/dist/chunks/utils.js +50 -51
  127. package/dist/chunks/web-component-utils.js +2 -2
  128. package/dist/chunks/x-bounds.js +21 -22
  129. package/dist/components/arcgis-chart/customElement.d.ts +64 -23
  130. package/dist/components/arcgis-chart/customElement.js +6128 -6148
  131. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
  133. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  134. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
  136. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +10 -9
  137. package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
  138. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-create-flow/customElement.js +48 -46
  140. package/dist/components/arcgis-charts-config-format/customElement.js +2 -2
  141. package/dist/components/arcgis-charts-config-guide/customElement.js +18 -19
  142. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  144. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-histogram/customElement.js +12 -13
  147. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
  148. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  149. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
  151. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
  152. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
  154. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -7
  155. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  157. package/dist/docs/api.json +1 -1
  158. package/dist/docs/docs.json +1 -1
  159. package/dist/docs/vscode.html-custom-data.json +1 -1
  160. package/dist/docs/web-types.json +1 -1
  161. package/dist/index.js +286 -283
  162. package/dist/json-schema/index.d.ts +12 -2
  163. package/dist/model/shared/type-guards.d.ts +9 -2
  164. package/dist/spec/web-chart.d.ts +26 -4
  165. package/dist/utils/chart-config/converter/index.js +185 -166
  166. package/dist/utils/chart-config/utils/index.d.ts +18 -3
  167. package/dist/utils/cursor/interfaces.d.ts +21 -0
  168. package/dist/utils/type-guards/series-types.d.ts +9 -2
  169. package/package.json +3 -3
  170. package/dist/cdn/2B7R5EPU.js +0 -2
  171. package/dist/cdn/37UC5ORG.js +0 -2
  172. package/dist/cdn/3MGWFTQH.js +0 -2
  173. package/dist/cdn/3Z4FG2HV.js +0 -2
  174. package/dist/cdn/4L2YTJ24.js +0 -2
  175. package/dist/cdn/4MQOMRB6.js +0 -2
  176. package/dist/cdn/4MSUALRF.js +0 -2
  177. package/dist/cdn/4PMNY6J6.js +0 -2
  178. package/dist/cdn/4SFDTXQJ.js +0 -2
  179. package/dist/cdn/53DFPXFT.js +0 -2
  180. package/dist/cdn/5GXB34LE.js +0 -2
  181. package/dist/cdn/5WIDEL4K.js +0 -2
  182. package/dist/cdn/7IK6J5VF.js +0 -2
  183. package/dist/cdn/A34ROM33.js +0 -2
  184. package/dist/cdn/BM62ZXFE.js +0 -2
  185. package/dist/cdn/BNBZEIMG.js +0 -2
  186. package/dist/cdn/C3YMGEUW.js +0 -2
  187. package/dist/cdn/C64W7ELG.js +0 -2
  188. package/dist/cdn/CD2NGAV3.js +0 -2
  189. package/dist/cdn/CPRSIFTK.js +0 -2
  190. package/dist/cdn/DTNHSQRD.js +0 -2
  191. package/dist/cdn/DUAMGCAK.js +0 -2
  192. package/dist/cdn/E4T5VUXT.js +0 -2
  193. package/dist/cdn/EDYZLWGW.js +0 -3
  194. package/dist/cdn/EKWX6BR7.js +0 -2
  195. package/dist/cdn/EQXKSMAG.js +0 -2
  196. package/dist/cdn/F64XESDA.js +0 -2
  197. package/dist/cdn/G5DDARQJ.js +0 -2
  198. package/dist/cdn/G5FTVXQF.js +0 -2
  199. package/dist/cdn/GHTCOHC2.js +0 -2
  200. package/dist/cdn/I6LYDJKQ.js +0 -2
  201. package/dist/cdn/IDAMYFLT.js +0 -2
  202. package/dist/cdn/IH2BBWAQ.js +0 -2
  203. package/dist/cdn/J4C4QWY4.js +0 -2
  204. package/dist/cdn/JYROXMJN.js +0 -2
  205. package/dist/cdn/LDBJRKCM.js +0 -2
  206. package/dist/cdn/M5K6IJLD.js +0 -2
  207. package/dist/cdn/M7ZANON3.js +0 -2
  208. package/dist/cdn/MCJTQ4YF.js +0 -2
  209. package/dist/cdn/MLA3N4MI.js +0 -2
  210. package/dist/cdn/MR7KELUF.js +0 -2
  211. package/dist/cdn/MY2W3RH7.js +0 -2
  212. package/dist/cdn/MYK7BBLS.js +0 -2
  213. package/dist/cdn/N7D4B5LO.js +0 -2
  214. package/dist/cdn/NFU76HOO.js +0 -2
  215. package/dist/cdn/NZVEN4LR.js +0 -2
  216. package/dist/cdn/OKK5OJ6S.js +0 -2
  217. package/dist/cdn/PXTV6Y3K.js +0 -2
  218. package/dist/cdn/QJMUS3VS.js +0 -2
  219. package/dist/cdn/QMJ75W7D.js +0 -2
  220. package/dist/cdn/RKGAXZQB.js +0 -2
  221. package/dist/cdn/RP2TRPHY.js +0 -2
  222. package/dist/cdn/UIU5UYBO.js +0 -2
  223. package/dist/cdn/V23GYHYZ.js +0 -2
  224. package/dist/cdn/XWJ4GDXQ.js +0 -2
  225. package/dist/cdn/ZAAMSMQB.js +0 -2
  226. package/dist/cdn/ZALJA7E5.js +0 -2
  227. package/dist/cdn/ZCACFAKY.js +0 -2
  228. package/dist/cdn/ZKZOXEXY.js +0 -2
  229. package/dist/cdn/ZMBNBTJQ.js +0 -2
  230. package/dist/chunks/index6.js +0 -66
  231. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
@@ -1,188 +1,187 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { substitute as E } from "@arcgis/core/intl.js";
3
- import { cloneDeep as te, isEmpty as Ue, memoize as je } from "lodash-es";
3
+ import { cloneDeep as te, isEmpty as je, memoize as Ke } from "lodash-es";
4
4
  import { S as ue } from "./common.js";
5
- import { s as N, u as W, a as De, g as ge, b as Le, c as Ke, d as Ze, e as Se } from "./utils.js";
6
- import { w as V, i as _e, cU as $, b_ as Qe, bm as ze, x as Ge, Y as ie, ct as Je, cs as et, p as tt, aH as fe, c4 as it, d as st, aG as at, I as rt, a7 as nt, bk as lt, W as ot, e as ut, bo as ct, d1 as dt, v as yt, d7 as Fe, bN as mt, d8 as pt, bJ as gt, B as ft, N as xe, bq as z, d4 as St, bb as Y, bu as G, an as Z, a6 as Ne, b9 as Ft, k as ce, bh as he } from "./index2.js";
7
- import { a as U, s as Oe, g as se, b as Te, c as xt } from "./data.js";
8
- import { u as B, r as I, k as ht, d as R, n as L, m as H, p as Tt, t as Bt, s as de } from "./chart-object-literals.js";
9
- import { R as ke, i as Ct } from "./rest-js-object-literals.js";
5
+ import { s as k, u as W, a as De, g as ge, b as Le, c as Ze, d as _e, e as Se } from "./utils.js";
6
+ import { w as V, i as Qe, di as Y, co as ze, bC as Ge, a$ as ke, x as Je, Y as ie, cT as et, cS as tt, p as it, aJ as fe, cu as st, d as at, aI as rt, I as nt, a7 as lt, bx as ot, W as ut, e as ct, bI as dt, ds as yt, v as mt, dy as Fe, cb as pt, dz as gt, c7 as ft, B as St, N as xe, bL as z, dv as Ft, bj as $, bP as G, ap as Z, a6 as Ne, bd as O, bc as xt, k as ce, bt as ht, bB as Tt, bs as A, bA as v, bp as he, br as Te } from "./index2.js";
7
+ import { a as U, s as Oe, g as se, b as Be, c as Bt } from "./data.js";
8
+ import { u as C, r as I, k as Ct, d as R, n as L, m as H, p as bt, t as At, s as de } from "./chart-object-literals.js";
9
+ import { R as qe, i as vt } from "./rest-js-object-literals.js";
10
10
  import { i as ae } from "./index4.js";
11
- import { aD as bt, K as J, F as ye, w as At, $ as vt, ac as It, ao as Vt, A as Dt, a2 as Lt } from "./index.js";
11
+ import { aD as It, K as J, F as ye, w as Vt, $ as Dt, ac as Lt, ao as kt, A as Nt, a2 as Ot } from "./index.js";
12
12
  import { C as w, F as X, d as P } from "./index3.js";
13
- import { h as qe, i as k, j as Nt, n as Ot, g as A, m as v, e as Be } from "./index5.js";
14
- import { convertChartSpec as kt } from "../utils/chart-config/converter/index.js";
15
- import { d as me, f as qt } from "./type-guards.js";
16
- import { g as Re } from "./series-types.js";
17
- import { C as Rt, m as Pt } from "./model-setter.js";
13
+ import { g as Re, s as Pe } from "./series-types.js";
14
+ import { convertChartSpec as qt } from "../utils/chart-config/converter/index.js";
15
+ import { d as me, f as Rt } from "./type-guards.js";
16
+ import { C as Pt, m as wt } from "./model-setter.js";
18
17
  import { g as re } from "./utils2.js";
19
- import { a as wt, b as Mt } from "./series-length.js";
20
- const Oi = (t) => {
18
+ import { a as Mt, b as Et } from "./series-length.js";
19
+ const Oi = (i) => {
21
20
  let e;
22
- const i = t.series[0];
23
- return V(i) && (e = i.temporalBinning?.size), e;
24
- }, Et = (t) => {
21
+ const t = i.series[0];
22
+ return V(t) && (e = t.temporalBinning?.size), e;
23
+ }, Wt = (i) => {
25
24
  let e;
26
- const i = t.series[0];
27
- return V(i) && (e = i.temporalBinning?.unit), e;
28
- }, ki = (t) => {
25
+ const t = i.series[0];
26
+ return V(t) && (e = t.temporalBinning?.unit), e;
27
+ }, qi = (i) => {
29
28
  let e;
30
- const i = t.series[0];
31
- return V(i) && (e = i.temporalBinning?.timeAggregationType), e;
32
- }, qi = (t) => {
29
+ const t = i.series[0];
30
+ return V(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
+ }, Ri = (i) => {
33
32
  let e;
34
- const i = t.series[0];
35
- return V(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
36
- }, Ri = (t) => {
33
+ const t = i.series[0];
34
+ return V(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, Pi = (i) => {
37
36
  let e;
38
- const i = t.series[0];
39
- return V(i) && (e = i.temporalBinning?.nullPolicy), e;
40
- }, Wt = (t, e) => {
41
- e?.series?.forEach((i) => {
42
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
43
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
- }, Yt = (t, e) => {
45
- e?.series?.forEach((i) => {
46
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
47
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
- }, Pi = (t, e) => {
49
- e.series?.forEach((i) => {
50
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
51
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
- }, wi = (t, e) => {
53
- e.series?.forEach((i) => {
54
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
55
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
- }, Mi = (t, e) => {
57
- e.series?.forEach((i) => {
58
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
59
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
- }, $t = (t) => {
61
- Wt(0, t);
37
+ const t = i.series[0];
38
+ return V(t) && (e = t.temporalBinning?.nullPolicy), e;
39
+ }, $t = (i, e) => {
40
+ e?.series?.forEach((t) => {
41
+ V(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = i);
42
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
+ }, Yt = (i, e) => {
44
+ e?.series?.forEach((t) => {
45
+ V(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = i);
46
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
+ }, wi = (i, e) => {
48
+ e.series?.forEach((t) => {
49
+ V(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = i);
50
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
+ }, Mi = (i, e) => {
52
+ e.series?.forEach((t) => {
53
+ V(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = i);
54
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
+ }, Ei = (i, e) => {
56
+ e.series?.forEach((t) => {
57
+ V(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = i);
58
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
+ }, Ht = (i) => {
60
+ $t(0, i);
62
61
  };
63
- var Ht = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, Ut = (t, e, i, a) => {
64
- for (var r = Xt(e, i), s = t.length - 1, n; s >= 0; s--)
65
- (n = t[s]) && (r = n(e, i, r) || r);
66
- return r && Ht(e, i, r), r;
62
+ var Xt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, jt = (i, e, t, a) => {
63
+ for (var r = Ut(e, t), s = i.length - 1, n; s >= 0; s--)
64
+ (n = i[s]) && (r = n(e, t, r) || r);
65
+ return r && Xt(e, t, r), r;
67
66
  };
68
- const jt = (t) => {
67
+ const Kt = (i) => {
69
68
  let e;
70
- return $(t) ? e = t.outTimeZone : t?.series.forEach((i) => {
71
- (i.type === B.BarSeries || i.type === B.RadarSeries || i.type === B.LineSeries) && i.temporalBinning && (e = i.temporalBinning.outTimeZone);
72
- }), e || (e = t?.axes?.[0]?.valueFormat.type === B.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
- }, Pe = (t, e) => {
74
- const i = _e(t);
75
- $(e) ? t ? e.outTimeZone = i : delete e.outTimeZone : e?.series.forEach((a) => {
76
- (a.type === B.BarSeries || a.type === B.RadarSeries || a.type === B.LineSeries) && (t ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = i) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
77
- }), e?.axes?.[0]?.valueFormat.type === B.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = i : delete e.axes[0].valueFormat.intlOptions.timeZone);
69
+ return Y(i) ? e = i.outTimeZone : i?.series.forEach((t) => {
70
+ (t.type === C.BarSeries || t.type === C.RadarSeries || t.type === C.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
+ }), e || (e = i?.axes?.[0]?.valueFormat.type === C.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
+ }, we = (i, e) => {
73
+ const t = Qe(i);
74
+ Y(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
75
+ (a.type === C.BarSeries || a.type === C.RadarSeries || a.type === C.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
76
+ }), e?.axes?.[0]?.valueFormat.type === C.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
78
77
  };
79
- class Kt extends Rt {
78
+ class Zt extends Pt {
80
79
  /**
81
80
  * Gets the time zone for the chart.
82
81
  */
83
82
  get timeZone() {
84
- return jt(this._config);
83
+ return Kt(this._config);
85
84
  }
86
85
  set timeZone(e) {
87
- Pe(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
86
+ we(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
88
87
  }
89
88
  }
90
- Ut([
91
- Pt
92
- ], Kt.prototype, "timeZone");
93
- function Ei(t, e) {
94
- let i;
95
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
89
+ jt([
90
+ wt
91
+ ], Zt.prototype, "timeZone");
92
+ function Wi(i, e) {
93
+ let t;
94
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
96
95
  }
97
- function Wi(t, e) {
98
- let i;
99
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
96
+ function $i(i, e) {
97
+ let t;
98
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = i)), t;
100
99
  }
101
- function Yi(t, e) {
102
- let i;
103
- return e !== void 0 && (i = { ...e, rotated: t }), i;
100
+ function Yi(i, e) {
101
+ let t;
102
+ return e !== void 0 && (t = { ...e, rotated: i }), t;
104
103
  }
105
- function Zt(t) {
104
+ function _t(i) {
106
105
  let e;
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;
106
+ return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
108
107
  }
109
- function $i(t, e) {
110
- return e != null || qe(t);
108
+ function Hi(i, e) {
109
+ return e != null || ke(i);
111
110
  }
112
- async function Hi(t) {
113
- const { config: e, layer: i, abortSignal: a } = t;
111
+ async function Xi(i) {
112
+ const { config: e, layer: t, abortSignal: a } = i;
114
113
  let r = !1;
115
- return me(i) || qt(e) ? e && me(i) && (r = await ze({ config: e, layer: i, abortSignal: a })) : r = !0, r;
114
+ return me(t) || Rt(e) ? e && me(t) && (r = await Ge({ config: e, layer: t, abortSignal: a })) : r = !0, r;
116
115
  }
117
- async function _t(t) {
116
+ async function Qt(i) {
118
117
  const {
119
118
  queryObject: e,
120
- chartConfig: i,
119
+ chartConfig: t,
121
120
  splitByField: a,
122
121
  errorStrings: r,
123
122
  abortSignal: s,
124
123
  runtimeDataFilters: n,
125
- ignoreViewExtent: l,
124
+ ignoreViewExtent: o,
126
125
  setTimeBinningInfoWhenNotProvided: c,
127
126
  returnFeaturesExtent: d,
128
- chartLimits: y
129
- } = t;
130
- let u = [], m;
131
- const p = te(i), g = p.series[0], o = ut({
127
+ chartLimits: p
128
+ } = i;
129
+ let u = [], y;
130
+ const m = te(t), g = m.series[0], l = ct({
132
131
  queryObject: e,
133
- chartConfig: p,
132
+ chartConfig: m,
134
133
  runtimeDataFilters: n,
135
- ignoreViewExtent: l
134
+ ignoreViewExtent: o
136
135
  });
137
- if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = bt.outStatistics.outStatisticFieldName), V(g) && ct({
138
- xAxisValueFormatType: dt(p),
136
+ if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = It.outStatistics.outStatisticFieldName), V(g) && dt({
137
+ xAxisValueFormatType: yt(m),
139
138
  setTimeBinningInfoWhenNotProvided: c,
140
139
  seriesConfig: g,
141
140
  queryObject: e
142
- }) && yt(a, e)) {
143
- const { temporalBinning: f, x: b } = g, { uniqueQuery: C } = Fe({
144
- chartConfig: p,
145
- queryConfig: o,
141
+ }) && mt(a, e)) {
142
+ const { temporalBinning: f, x: b } = g, { uniqueQuery: B } = Fe({
143
+ chartConfig: m,
144
+ queryConfig: l,
146
145
  queryObject: e,
147
146
  setTimeBinningInfoWhenNotProvided: c,
148
147
  returnFeaturesExtent: d,
149
- chartLimits: y
150
- }), x = i.axes?.[0].valueFormat.type === B.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
- m = await mt({
148
+ chartLimits: p
149
+ }), x = t.axes?.[0].valueFormat.type === C.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
150
+ y = await pt({
152
151
  queryObject: e,
153
152
  dateField: b,
154
153
  splitByField: a,
155
- queryConfig: C,
154
+ queryConfig: B,
156
155
  axisTimeZone: x,
157
156
  temporalBinning: f,
158
157
  errorStrings: r,
159
158
  abortSignal: s
160
159
  }), u = Array.from(
161
160
  new Set(
162
- m.flatMap((F) => {
163
- const { stackedAttributes: O } = F;
161
+ y.flatMap((F) => {
162
+ const { stackedAttributes: N } = F;
164
163
  let S = [];
165
- return O && (S = O.map((h) => h[a]).filter((h) => h !== void 0)), S;
164
+ return N && (S = N.map((h) => h[a]).filter((h) => h !== void 0)), S;
166
165
  })
167
166
  ).values()
168
167
  );
169
168
  } else {
170
169
  const { uniqueQuery: f } = Fe({
171
- chartConfig: p,
170
+ chartConfig: m,
172
171
  queryObject: e,
173
- queryConfig: o,
172
+ queryConfig: l,
174
173
  setTimeBinningInfoWhenNotProvided: c,
175
174
  returnFeaturesExtent: d,
176
- chartLimits: y
177
- }), { elementCount: b } = await pt({
178
- chartConfig: p,
175
+ chartLimits: p
176
+ }), { elementCount: b } = await gt({
177
+ chartConfig: m,
179
178
  queryObject: e,
180
- queryConfig: o,
181
- behaviorAfterLimit: y?.behaviorAfterLimit,
179
+ queryConfig: l,
180
+ behaviorAfterLimit: p?.behaviorAfterLimit,
182
181
  numberMaxOfFeaturesToFetch: f.num,
183
182
  abortSignal: s
184
183
  });
185
- m = await gt({
184
+ y = await ft({
186
185
  queryObject: e,
187
186
  queryConfig: f,
188
187
  featureCount: b,
@@ -191,15 +190,15 @@ async function _t(t) {
191
190
  abortSignal: s
192
191
  }), u = Array.from(
193
192
  new Set(
194
- m.map((C) => C.attributes[a]).filter((C) => C !== void 0)
193
+ y.map((B) => B.attributes[a]).filter((B) => B !== void 0)
195
194
  ).values()
196
195
  );
197
196
  }
198
- return { allValues: u, preFetchedQueryResponse: m };
197
+ return { allValues: u, preFetchedQueryResponse: y };
199
198
  }
200
- function Qt(t, e) {
201
- const i = /* @__PURE__ */ new Map();
202
- return t.series.forEach((a) => {
199
+ function zt(i, e) {
200
+ const t = /* @__PURE__ */ new Map();
201
+ return i.series.forEach((a) => {
203
202
  let r = fe({
204
203
  where: a.query?.where,
205
204
  // normalize the value so it matches what we get from getAllValues()
@@ -211,234 +210,234 @@ function Qt(t, e) {
211
210
  });
212
211
  e && r !== null && (r = Number(r));
213
212
  const s = Re([a]);
214
- s !== void 0 && i.set(s, [
215
- ...i.get(s) ?? [],
213
+ s !== void 0 && t.set(s, [
214
+ ...t.get(s) ?? [],
216
215
  r
217
216
  ]);
218
- }), i;
217
+ }), t;
219
218
  }
220
- function zt(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);
219
+ function Gt(i) {
220
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, r = /* @__PURE__ */ new Map();
221
+ return Array.from(t.keys()).forEach((s) => {
222
+ const n = t.get(s) ?? [];
223
+ let o = [];
224
+ a ? o = e : e.forEach((c) => {
225
+ n.includes(c) || o.push(c);
226
+ }), r.set(s, o);
228
227
  }), r;
229
228
  }
230
- function Gt(t) {
231
- const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: r } = t, s = JSON.parse(
229
+ function Jt(i) {
230
+ const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: r } = i, s = JSON.parse(
232
231
  JSON.stringify({
233
232
  ...e.series[0],
234
233
  ...r
235
234
  })
236
235
  );
237
236
  if (s.query) {
238
- if (i === null ? s.id = X.nullValue : i === "" ? s.id = X.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);
237
+ if (t === null ? s.id = X.nullValue : t === "" ? s.id = X.emptyStringValue : s.id = `${t}`, s.name = `${t}`, s.query.outStatistics?.[0] !== void 0) {
238
+ const o = s.id;
239
+ s.query.outStatistics[0].outStatisticFieldName = o, "y" in s && (s.y = o);
241
240
  }
242
- const n = typeof i == "number" || i === null ? i : `'${i}'`;
241
+ const n = typeof t == "number" || t === null ? t : `'${t}'`;
243
242
  s.query.where = `${a}=${n}`;
244
243
  }
245
244
  return s;
246
245
  }
247
- async function Jt(t) {
246
+ async function ei(i) {
248
247
  const {
249
248
  updateSplitBySeries: e,
250
- config: i,
249
+ config: t,
251
250
  queryObject: a,
252
251
  errorStrings: r,
253
252
  abortSignal: s,
254
253
  runtimeDataFilters: n,
255
- ignoreViewExtent: l,
254
+ ignoreViewExtent: o,
256
255
  setTimeBinningInfoWhenNotProvided: c,
257
256
  returnFeaturesExtent: d,
258
- chartLimits: y
259
- } = t, { seriesTemplate: u } = e ?? {};
260
- let m;
261
- if (a && !me(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || u !== void 0) && e.addMissingSeries) {
262
- const p = i.series.length === 0;
263
- i.series.length === 0 && u !== void 0 && i.series.push(u);
264
- const g = ie(i.series);
257
+ chartLimits: p
258
+ } = i, { seriesTemplate: u } = e ?? {};
259
+ let y;
260
+ if (a && !me(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
261
+ const m = t.series.length === 0;
262
+ t.series.length === 0 && u !== void 0 && t.series.push(u);
263
+ const g = ie(t.series);
265
264
  if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
266
- const o = at(i.series[0]?.query?.where), f = rt(a), b = nt(o, f), C = b ? lt(b) : !1, x = await _t({
265
+ const l = rt(t.series[0]?.query?.where), f = nt(a), b = lt(l, f), B = b ? ot(b) : !1, x = await Qt({
267
266
  queryObject: a,
268
- chartConfig: i,
269
- splitByField: o,
267
+ chartConfig: t,
268
+ splitByField: l,
270
269
  abortSignal: s,
271
270
  runtimeDataFilters: n,
272
- ignoreViewExtent: l,
271
+ ignoreViewExtent: o,
273
272
  setTimeBinningInfoWhenNotProvided: c,
274
273
  returnFeaturesExtent: d,
275
- chartLimits: y,
274
+ chartLimits: p,
276
275
  errorStrings: r
277
276
  }), { allValues: F } = x;
278
- if ({ preFetchedQueryResponse: m } = x, F.length > 0) {
279
- const O = Qt(i, C), S = zt({
277
+ if ({ preFetchedQueryResponse: y } = x, F.length > 0) {
278
+ const N = zt(t, B), S = Gt({
280
279
  allValues: F,
281
- configUniqueValuesPerSeriesType: O,
282
- initialConfigWasEmpty: p
280
+ configUniqueValuesPerSeriesType: N,
281
+ initialConfigWasEmpty: m
283
282
  });
284
283
  Array.from(S.keys()).forEach((h) => {
285
284
  (S.get(h) ?? []).forEach((M) => {
286
- i.series.push(
287
- Gt({
288
- chartConfig: i,
285
+ t.series.push(
286
+ Jt({
287
+ chartConfig: t,
289
288
  seriesTemplate: u,
290
289
  missingValue: M,
291
- splitByField: o
290
+ splitByField: l
292
291
  })
293
292
  );
294
- }), p && i.series.shift();
293
+ }), m && t.series.shift();
295
294
  });
296
295
  }
297
296
  }
298
297
  }
299
- return m;
298
+ return y;
300
299
  }
301
- function ei(t, e) {
302
- e && !qe(e) && (e = st({ chartConfig: e, queryObject: t }));
300
+ function ti(i, e) {
301
+ e && !ke(e) && (e = at({ chartConfig: e, queryObject: i }));
303
302
  }
304
- async function Xi(t) {
303
+ async function Ui(i) {
305
304
  const {
306
305
  configToAlter: e,
307
- layer: i,
306
+ layer: t,
308
307
  addMissingSeries: a,
309
308
  updateSplitBySeries: r,
310
309
  chartContainer: s,
311
310
  queryObject: n,
312
- abortSignal: l,
311
+ abortSignal: o,
313
312
  runtimeDataFilters: c,
314
313
  ignoreViewExtent: d,
315
- setTimeBinningInfoWhenNotProvided: y,
314
+ setTimeBinningInfoWhenNotProvided: p,
316
315
  returnFeaturesExtent: u,
317
- chartLimits: m,
318
- timeZone: p,
316
+ chartLimits: y,
317
+ timeZone: m,
319
318
  errorStrings: g
320
- } = t;
321
- let o = e, f;
322
- return o && (ei(i, o), o = await kt(o, i, void 0, l), a && n && (f = await Jt({
319
+ } = i;
320
+ let l = e, f;
321
+ return l && (ti(t, l), l = await qt(l, t, void 0, o), a && n && (f = await ei({
323
322
  updateSplitBySeries: r,
324
- config: o,
323
+ config: l,
325
324
  queryObject: n,
326
325
  errorStrings: g,
327
- abortSignal: l,
326
+ abortSignal: o,
328
327
  runtimeDataFilters: c,
329
328
  ignoreViewExtent: d,
330
- setTimeBinningInfoWhenNotProvided: y,
329
+ setTimeBinningInfoWhenNotProvided: p,
331
330
  returnFeaturesExtent: u,
332
- chartLimits: m
333
- })), o = Qe(o, s), Pe(p, o)), { alteredConfig: o, preFetchedQueryResponse: f };
331
+ chartLimits: y
332
+ })), l = ze(l, s), we(m, l)), { alteredConfig: l, preFetchedQueryResponse: f };
334
333
  }
335
- function ti(t, e) {
336
- let i = !1;
334
+ function ii(i, e) {
335
+ let t = !1;
337
336
  if (e !== void 0) {
338
- const a = ot({ key: ft.Average, splitBy: e });
339
- i = Number.isFinite(t[a]);
337
+ const a = ut({ key: St.Average, splitBy: e });
338
+ t = Number.isFinite(i[a]);
340
339
  }
341
- return i;
340
+ return t;
342
341
  }
343
- function Ui(t) {
344
- const { data: e, config: i, showEmptySeries: a } = t, r = i.series.length, s = te(i);
342
+ function ji(i) {
343
+ const { data: e, config: t, showEmptySeries: a } = i, r = t.series.length, s = te(t);
345
344
  let n = !1;
346
345
  if (!a && r > 1 && e) {
347
- const l = Ge(e), c = Re(i?.series), d = ie(i?.series), y = /* @__PURE__ */ new Set();
346
+ const o = Je(e), c = Re(t?.series), d = ie(t?.series), p = /* @__PURE__ */ new Set();
348
347
  switch (c) {
349
- case B.ComboLineAndBarSeries:
350
- case B.BarSeries:
351
- case B.RadarSeries:
352
- case B.LineSeries: {
353
- s.series.forEach((m) => {
354
- if (Array.isArray(l)) {
355
- let p = "";
356
- "y" in m && (p = Array.isArray(m.y) ? m.y[0] : m.y, d === w.BarAndLineSplitByNoAggregation && (p = `${p}_${fe({ where: m.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
357
- (o) => it({
358
- dataItem: o,
359
- x: m.x,
360
- y: p,
361
- aggregationType: i.series[0].query?.outStatistics?.[0]?.statisticType
348
+ case C.ComboLineAndBarSeries:
349
+ case C.BarSeries:
350
+ case C.RadarSeries:
351
+ case C.LineSeries: {
352
+ s.series.forEach((y) => {
353
+ if (Array.isArray(o)) {
354
+ let m = "";
355
+ "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${fe({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
356
+ (l) => st({
357
+ dataItem: l,
358
+ x: y.x,
359
+ y: m,
360
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
362
361
  })
363
- ) && y.add(m));
362
+ ) && p.add(y));
364
363
  }
365
364
  });
366
365
  break;
367
366
  }
368
- case B.BoxPlotSeries: {
369
- if (Je(i)) {
370
- const m = et(i);
371
- i.series.forEach((p) => {
372
- let g, o;
373
- p.type === B.BoxPlotSeries ? (g = e.dataItems, o = g?.some(
374
- (f) => tt({
367
+ case C.BoxPlotSeries: {
368
+ if (et(t)) {
369
+ const y = tt(t);
370
+ t.series.forEach((m) => {
371
+ let g, l;
372
+ m.type === C.BoxPlotSeries ? (g = e.dataItems, l = g?.some(
373
+ (f) => it({
375
374
  dataItem: f,
376
- splitBy: p.query?.where,
377
- showOutliers: m
375
+ splitBy: m.query?.where,
376
+ showOutliers: y
378
377
  })
379
- )) : p.type === B.LineSeries && (g = e.meanLines, o = g?.some(
380
- (f) => ti(f, p.query?.where)
381
- )), o && y.add(p);
378
+ )) : m.type === C.LineSeries && (g = e.meanLines, l = g?.some(
379
+ (f) => ii(f, m.query?.where)
380
+ )), l && p.add(m);
382
381
  });
383
382
  }
384
383
  break;
385
384
  }
386
385
  }
387
- const u = Array.from(y.values());
386
+ const u = Array.from(p.values());
388
387
  n = u.length > 0 && u.length < r, n && (s.series = u);
389
388
  }
390
389
  return { seriesFilteredOut: n, filteredConfig: s };
391
390
  }
392
- const ji = (t) => t.hideEmptyRowsAndColumns, Ki = (t, e) => {
393
- t.hideEmptyRowsAndColumns = e;
394
- }, Zi = (t, e) => {
395
- const i = t.series[0];
396
- i.heatRulesType = e;
397
- }, _i = (t) => t.series[0].heatRulesType, Qi = (t, e) => {
398
- const i = t.series[0];
399
- i.gradientRules = e;
400
- }, zi = (t) => t.series[0].gradientRules, Gi = (t) => {
401
- const { yField: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s } = a, n = re(1, i), l = ii(i), c = ae(i), d = i.series[0];
402
- if (typeof e == "string" && l !== e && d) {
403
- if (d.y = e, Zt(i), l === n || c) {
404
- const y = P(s, e);
405
- W(i, 1, y);
391
+ const Ki = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
392
+ i.hideEmptyRowsAndColumns = e;
393
+ }, _i = (i, e) => {
394
+ const t = i.series[0];
395
+ t.heatRulesType = e;
396
+ }, Qi = (i) => i.series[0].heatRulesType, zi = (i, e) => {
397
+ const t = i.series[0];
398
+ t.gradientRules = e;
399
+ }, Gi = (i) => i.series[0].gradientRules, Ji = (i) => {
400
+ const { yField: e, config: t, layerInfo: a, commonStrings: r } = i, { layerFieldsInfo: s } = a, n = re(1, t), o = si(t), c = ae(t), d = t.series[0];
401
+ if (typeof e == "string" && o !== e && d) {
402
+ if (d.y = e, _t(t), o === n || c) {
403
+ const p = P(s, e);
404
+ W(t, 1, p);
406
405
  }
407
- we({ commonStrings: r, config: i, layerInfo: a });
406
+ Me({ commonStrings: r, config: t, layerInfo: a });
408
407
  }
409
- }, ii = (t) => t.series[0].y ?? "", Ji = (t) => {
410
- const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
408
+ }, si = (i) => i.series[0].y ?? "", es = (i) => {
409
+ const { binning: e, config: t, commonStrings: a } = i, r = t.series[0];
411
410
  if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
412
411
  const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
413
- W(i, 0, s);
412
+ W(t, 0, s);
414
413
  }
415
- ee({ axisIndex: 0, commonStrings: a, config: i });
416
- }, si = (t) => t.series[0].xTemporalBinning, es = (t) => {
417
- const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
414
+ ee({ axisIndex: 0, commonStrings: a, config: t });
415
+ }, ai = (i) => i.series[0].xTemporalBinning, ts = (i) => {
416
+ const { binning: e, config: t, commonStrings: a } = i, r = t.series[0];
418
417
  if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
419
418
  const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
420
- W(i, 1, s);
419
+ W(t, 1, s);
421
420
  }
422
- ee({ axisIndex: 1, commonStrings: a, config: i });
423
- }, ai = (t) => t.series[0].yTemporalBinning, ri = (t, e) => {
421
+ ee({ axisIndex: 1, commonStrings: a, config: t });
422
+ }, ri = (i) => i.series[0].yTemporalBinning, ni = (i, e) => {
424
423
  e.orderOptions ??= {};
425
- const i = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = pe(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = pe(e)[1], n = {
424
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = pe(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = pe(e)[1], n = {
426
425
  ...e.orderOptions.data ?? {},
427
426
  orderType: L.MultiAxes
428
427
  };
429
- a === ue.customSort && i === L.Category && (n.orderByX = [...t]), s === ue.customSort && r === L.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
430
- }, ts = (t, e) => {
431
- const i = e.series[0];
432
- i.gridLine && (i.gridLine.width = t);
433
- }, is = (t) => t.series[0].gridLine?.width, ss = (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
- }, as = (t) => t.series[0].gridLine?.color, rs = (t, e) => {
437
- const i = e.legend;
438
- i && (i.position = t);
439
- }, ns = (t) => t.legend?.position ?? ht.Bottom, ls = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, os = (t) => {
440
- const { field: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0].query?.outStatistics?.[0], n = oe(i, a, r);
441
- s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
428
+ a === ue.customSort && t === L.Category && (n.orderByX = [...i]), s === ue.customSort && r === L.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
429
+ }, is = (i, e) => {
430
+ const t = e.series[0];
431
+ t.gridLine && (t.gridLine.width = i);
432
+ }, ss = (i) => i.series[0].gridLine?.width, as = (i, e) => {
433
+ const t = e.series[0], a = i?.length === 4 && i.every((r) => typeof r == "number");
434
+ t.gridLine && a && (t.gridLine.color = i);
435
+ }, rs = (i) => i.series[0].gridLine?.color, ns = (i, e) => {
436
+ const t = e.legend;
437
+ t && (t.position = i);
438
+ }, ls = (i) => i.legend?.position ?? Ct.Bottom, os = (i) => i.series[0].query?.outStatistics?.[0]?.onStatisticField, us = (i) => {
439
+ const { field: e, config: t, layerInfo: a, commonStrings: r } = i, s = t.series[0].query?.outStatistics?.[0], n = oe(t, a, r);
440
+ s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : t.series[0].query = {
442
441
  outStatistics: [
443
442
  {
444
443
  onStatisticField: e,
@@ -446,97 +445,97 @@ const ji = (t) => t.hideEmptyRowsAndColumns, Ki = (t, e) => {
446
445
  statisticType: I.Count
447
446
  }
448
447
  ]
449
- }, n && i.title && (i.title.content.text = _(i, a, r));
450
- }, us = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, cs = (t) => {
451
- const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0]?.query?.outStatistics?.[0], n = oe(i, a, r);
452
- s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && ni(H.Zero, i), n && i.title && (i.title.content.text = _(i, a, r));
453
- }, ds = (t) => t.nullPolicy, ni = (t, e) => {
454
- e.nullPolicy = t;
455
- }, ys = (t) => t.series[0].emptyCells, ms = (t, e) => {
456
- e.series[0].emptyCells = t;
457
- }, ps = (t) => t.series[0].emptyCells?.text, gs = (t, e) => {
458
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
459
- }, fs = (t) => t.includeLeapDay, Ss = (t, e) => {
460
- e.includeLeapDay = t;
461
- }, Fs = (t) => t.series[0].emptyCells?.symbol, xs = (t, e) => {
462
- e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
448
+ }, n && t.title && (t.title.content.text = _(t, a, r));
449
+ }, cs = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ds = (i) => {
450
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: r } = i, s = t.series[0]?.query?.outStatistics?.[0], n = oe(t, a, r);
451
+ s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && li(H.Zero, t), n && t.title && (t.title.content.text = _(t, a, r));
452
+ }, ys = (i) => i.nullPolicy, li = (i, e) => {
453
+ e.nullPolicy = i;
454
+ }, ms = (i) => i.series[0].emptyCells, ps = (i, e) => {
455
+ e.series[0].emptyCells = i;
456
+ }, gs = (i) => i.series[0].emptyCells?.text, fs = (i, e) => {
457
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = i : e.series[0].emptyCells = { text: i };
458
+ }, Ss = (i) => i.includeLeapDay, Fs = (i, e) => {
459
+ e.includeLeapDay = i;
460
+ }, xs = (i) => i.series[0].emptyCells?.symbol, hs = (i, e) => {
461
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = i : e.series[0].emptyCells = { symbol: i };
463
462
  };
464
- function hs(t) {
465
- return t.viewType;
463
+ function Ts(i) {
464
+ return i.viewType;
466
465
  }
467
- function Ts(t, e) {
468
- St(e) || (e.viewType = t);
466
+ function Bs(i, e) {
467
+ Ft(e) || (e.viewType = i);
469
468
  }
470
- function Bs(t) {
471
- return t.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
469
+ function Cs(i) {
470
+ return i.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
472
471
  }
473
- function Cs(t, e) {
474
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
475
- breaksCount: t ?? X.classBreaks.breaksCount
472
+ function bs(i, e) {
473
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = i ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
474
+ breaksCount: i ?? X.classBreaks.breaksCount
476
475
  };
477
476
  }
478
- function bs(t) {
479
- return t.series[0].classBreaksRules?.classificationMethod;
477
+ function As(i) {
478
+ return i.series[0].classBreaksRules?.classificationMethod;
480
479
  }
481
- function As(t, e) {
482
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
483
- classificationMethod: t
480
+ function vs(i, e) {
481
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = i : e.series[0].classBreaksRules = {
482
+ classificationMethod: i
484
483
  }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
485
484
  }
486
- function vs(t, e) {
487
- e.firstDayOfWeek = t;
485
+ function Is(i, e) {
486
+ e.firstDayOfWeek = i;
488
487
  }
489
- function Is(t) {
490
- return t.firstDayOfWeek;
488
+ function Vs(i) {
489
+ return i.firstDayOfWeek;
491
490
  }
492
- function Vs(t) {
493
- return t.series[0].classBreaksRules?.colorRampInfo?.name;
491
+ function Ds(i) {
492
+ return i.series[0].classBreaksRules?.colorRampInfo?.name;
494
493
  }
495
- function Ds(t, e) {
494
+ function Ls(i, e) {
496
495
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
497
496
  ...e.series[0].classBreaksRules.colorRampInfo,
498
- name: t
497
+ name: i
499
498
  } : e.series[0].classBreaksRules = {
500
499
  colorRampInfo: {
501
- name: t,
500
+ name: i,
502
501
  flipped: !1
503
502
  }
504
503
  };
505
504
  }
506
- function Ls(t) {
507
- return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
505
+ function ks(i) {
506
+ return i.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
508
507
  }
509
- function Ns(t, e) {
508
+ function Ns(i, e) {
510
509
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
511
510
  ...e.series[0].classBreaksRules.colorRampInfo,
512
- flipped: t
511
+ flipped: i
513
512
  } : e.series[0].classBreaksRules = {
514
513
  colorRampInfo: {
515
- flipped: t
514
+ flipped: i
516
515
  }
517
516
  };
518
517
  }
519
- const li = [
518
+ const oi = [
520
519
  R.DayOfMonth,
521
520
  R.MonthOfYear
522
- ], Ce = (t) => {
521
+ ], Ce = (i) => {
523
522
  let e;
524
- return z(t) ? e = ye() : (Y(t) || G(t)) && (e = J()), e;
525
- }, be = (t) => Y(t) || G(t), Ae = (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 && De({ config: a, commonStrings: i, valueFormat: r, axisIndex: e });
528
- }, oi = (t, e) => {
529
- let i;
530
- return e === 0 ? i = t.series[0]?.xTemporalBinning : e === 1 && (i = t.series[0]?.yTemporalBinning), i;
531
- }, ve = (t, e) => t.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ie = (t, e) => {
532
- let i = li[t];
533
- return t === 0 && e?.unit === R.DayOfWeek ? i = R.HourOfDay : t === 1 && e?.unit === R.HourOfDay && (i = R.DayOfWeek), {
534
- type: B.CalendarDateParts,
535
- unit: i
523
+ return z(i) ? e = ye() : ($(i) || G(i)) && (e = J()), e;
524
+ }, be = (i) => $(i) || G(i), Ae = (i) => {
525
+ const { axisIndex: e, commonStrings: t, config: a, valueFormat: r } = i, s = a.axes?.[e]?.valueFormat;
526
+ r !== void 0 && s?.type !== r.type && De({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
527
+ }, ui = (i, e) => {
528
+ let t;
529
+ return e === 0 ? t = i.series[0]?.xTemporalBinning : e === 1 && (t = i.series[0]?.yTemporalBinning), t;
530
+ }, ve = (i, e) => i.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ie = (i, e) => {
531
+ let t = oi[i];
532
+ return i === 0 && e?.unit === R.DayOfWeek ? t = R.HourOfDay : i === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
533
+ type: C.CalendarDateParts,
534
+ unit: t
536
535
  };
537
- }, ui = (t) => {
536
+ }, ci = (i) => {
538
537
  let e = {};
539
- switch (t.unit) {
538
+ switch (i.unit) {
540
539
  case R.DayOfMonth:
541
540
  e = { day: "2-digit" };
542
541
  break;
@@ -554,123 +553,129 @@ const li = [
554
553
  break;
555
554
  }
556
555
  return {
557
- type: B.DateAxisFormat,
556
+ type: C.DateAxisFormat,
558
557
  intlOptions: e
559
558
  };
560
- }, Ve = (t) => {
561
- const { axisIndex: e, binning: i, commonStrings: a, config: r, fieldName: s, layerInfo: n } = t, l = r.series[0], c = re(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 === ve(a, i.unit) || c === a.xAxis) && W(r, e, ve(a, i.unit));
563
- }, ee = (t) => {
564
- const { axisIndex: e, commonStrings: i, config: a } = t, r = oi(a, e), s = r ? ui(r) : void 0;
565
- De({ config: a, commonStrings: i, valueFormat: s, axisIndex: e });
566
- }, we = (t) => {
567
- const { commonStrings: e, config: i, layerInfo: a } = t, r = i.series[0]?.x ?? "", s = i.series[0]?.y ?? "", n = xe(a.layerFieldsInfo, r), l = xe(a.layerFieldsInfo, s), c = Ce(n), d = Ce(l), y = be(n) && be(l), u = z(n) && z(l);
568
- if (Ae({ axisIndex: 0, commonStrings: e, config: i, valueFormat: c }), Ae({ axisIndex: 1, commonStrings: e, config: i, valueFormat: d }), y) {
569
- const m = si(i) === void 0, p = ai(i) === void 0;
570
- m && (Ve({
559
+ }, Ve = (i) => {
560
+ const { axisIndex: e, binning: t, commonStrings: a, config: r, fieldName: s, layerInfo: n } = i, o = r.series[0], c = re(e, r), d = P(n.layerFieldsInfo, s);
561
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (c === "" || c === d || c === ve(a, t.unit) || c === a.xAxis) && W(r, e, ve(a, t.unit));
562
+ }, ee = (i) => {
563
+ const { axisIndex: e, commonStrings: t, config: a } = i, r = ui(a, e), s = r ? ci(r) : void 0;
564
+ De({ config: a, commonStrings: t, valueFormat: s, axisIndex: e });
565
+ }, Me = (i) => {
566
+ const { commonStrings: e, config: t, layerInfo: a } = i, r = t.series[0]?.x ?? "", s = t.series[0]?.y ?? "", n = xe(a.layerFieldsInfo, r), o = xe(a.layerFieldsInfo, s), c = Ce(n), d = Ce(o), p = be(n) && be(o), u = z(n) && z(o);
567
+ if (Ae({ axisIndex: 0, commonStrings: e, config: t, valueFormat: c }), Ae({ axisIndex: 1, commonStrings: e, config: t, valueFormat: d }), p) {
568
+ const y = ai(t) === void 0, m = ri(t) === void 0;
569
+ y && (Ve({
571
570
  axisIndex: 0,
572
- binning: Ie(0, i.series[0].yTemporalBinning),
571
+ binning: Ie(0, t.series[0].yTemporalBinning),
573
572
  commonStrings: e,
574
- config: i,
573
+ config: t,
575
574
  fieldName: r,
576
575
  layerInfo: a
577
576
  }), ee({
578
577
  axisIndex: 0,
579
578
  commonStrings: e,
580
- config: i
581
- })), p && (Ve({
579
+ config: t
580
+ })), m && (Ve({
582
581
  axisIndex: 1,
583
- binning: Ie(1, i.series[0].xTemporalBinning),
582
+ binning: Ie(1, t.series[0].xTemporalBinning),
584
583
  commonStrings: e,
585
- config: i,
584
+ config: t,
586
585
  fieldName: s,
587
586
  layerInfo: a
588
587
  }), ee({
589
588
  axisIndex: 1,
590
589
  commonStrings: e,
591
- config: i
590
+ config: t
592
591
  }));
593
592
  }
594
- u && (i.series[0].xTemporalBinning = void 0, i.series[0].yTemporalBinning = void 0);
593
+ u && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
595
594
  };
596
- function j(t) {
597
- const { seriesIndex: e, xAxisField: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, l = Z(s?.layer).idField;
595
+ function di(i) {
596
+ const e = {};
597
+ return i.series.forEach((t) => {
598
+ Pe(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === C.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
599
+ }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
600
+ }
601
+ function j(i) {
602
+ const { seriesIndex: e, xAxisField: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, o = Z(s?.layer).idField;
598
603
  let c;
599
604
  const d = r.series[e ?? 0];
600
- let y = !1, u = !1, m = !1;
605
+ let p = !1, u = !1, y = !1;
601
606
  if (d === void 0) {
602
- const o = r.series;
603
- y = o.slice(0, e).every((f) => A(f)), u = o.slice(0, e).every((f) => v(f)), m = o.slice(0, e).every((f) => Be(f));
607
+ const l = r.series;
608
+ p = l.slice(0, e).every((f) => A(f)), u = l.slice(0, e).every((f) => v(f)), y = l.slice(0, e).every((f) => he(f));
604
609
  } else
605
- y = A(d), u = v(d), m = Be(d);
606
- y ? c = vt({
610
+ p = A(d), u = v(d), y = he(d);
611
+ p ? c = Dt({
607
612
  commonStrings: n,
608
613
  seriesIndex: e,
609
- objectIDField: l
610
- }) : u ? c = It({
614
+ objectIDField: o
615
+ }) : u ? c = Lt({
611
616
  commonStrings: n,
612
617
  seriesIndex: e,
613
- objectIDField: l
614
- }) : m ? c = Vt(n, l) : c = Dt({
618
+ objectIDField: o
619
+ }) : y ? c = kt(n, o) : c = Nt({
615
620
  seriesIndex: e,
616
- objectIDField: l,
621
+ objectIDField: o,
617
622
  commonStrings: n
618
623
  });
619
- const p = r.series[0]?.dataLabels, g = {
624
+ const m = r.series[0]?.dataLabels, g = {
620
625
  ...c,
621
- x: i,
626
+ x: t,
622
627
  y: "",
623
628
  dataLabels: {
624
629
  ...c.dataLabels,
625
- type: c.dataLabels?.type ?? B.Text,
626
- content: { ...c.dataLabels?.content, ...p?.content, type: Ct.TS },
627
- visible: p?.visible ?? !1
630
+ type: c.dataLabels?.type ?? C.Text,
631
+ content: { ...c.dataLabels?.content, ...m?.content, type: vt.TS },
632
+ visible: m?.visible ?? !1
628
633
  }
629
634
  };
630
635
  if (g.query = {
631
- groupByFieldsForStatistics: [i]
632
- }, a !== I.NoAggregation && l !== void 0) {
633
- const o = `${a}_${l}_0`.toUpperCase();
634
- g.y = o, g.query.outStatistics = [
636
+ groupByFieldsForStatistics: [t]
637
+ }, a !== I.NoAggregation && o !== void 0) {
638
+ const l = `${a}_${o}_0`.toUpperCase();
639
+ g.y = l, g.query.outStatistics = [
635
640
  {
636
641
  statisticType: a,
637
- onStatisticField: l,
638
- outStatisticFieldName: o
642
+ onStatisticField: o,
643
+ outStatisticFieldName: l
639
644
  }
640
645
  ];
641
646
  }
642
647
  if (V(r.series[0]) && V(g)) {
643
- let o = Et(r);
644
- o === de.Quarter && (o = de.Month), g.temporalBinning = {
648
+ let l = Wt(r);
649
+ l === de.Quarter && (l = de.Month), g.temporalBinning = {
645
650
  ...r.series[0]?.temporalBinning,
646
- unit: o
651
+ unit: l
647
652
  };
648
653
  }
649
654
  return te(g);
650
655
  }
651
- function _(t, e, i) {
652
- const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = Z(e.layer), n = U(t), l = le(t), c = Ee(t), d = ne(t), y = s && (l.length === 0 || l.includes(r)), u = At(c, i), m = y ? "" : l.map((x) => P(a ?? [], x)).join(", "), p = P(a ?? [], n), g = P(a ?? [], d), o = t.series.some((x) => k(x)), f = o ? "category" : "xAxisField", b = p;
653
- let C = "";
656
+ function _(i, e, t) {
657
+ const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = Z(e.layer), n = U(i), o = le(i), c = We(i), d = ne(i), p = s && (o.length === 0 || o.includes(r)), u = Vt(c, t), y = p ? "" : o.map((x) => P(a ?? [], x)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), l = i.series.some((x) => O(x)), f = l ? "category" : "xAxisField", b = m;
658
+ let B = "";
654
659
  if (Oe({
655
660
  fieldName: n,
656
- numericFields: l,
661
+ numericFields: o,
657
662
  fieldList: a
658
663
  }))
659
- C = E(i.titleLabels.aggrTypeOfAggrFields, {
664
+ B = E(t.titleLabels.aggrTypeOfAggrFields, {
660
665
  aggregationType: u,
661
- aggregationFields: m
666
+ aggregationFields: y
662
667
  });
663
668
  else if (c === I.NoAggregation) {
664
- const x = y ? r : m;
669
+ const x = p ? r : y;
665
670
  if (d === "") {
666
- const F = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
667
- C = E(i.titleLabels[F], {
671
+ const F = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
672
+ B = E(t.titleLabels[F], {
668
673
  aggregationType: x,
669
674
  [f]: b
670
675
  });
671
676
  } else {
672
- const F = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
673
- C = E(i.titleLabels[F], {
677
+ const F = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
678
+ B = E(t.titleLabels[F], {
674
679
  aggregationType: x,
675
680
  [f]: b,
676
681
  splitByField: g
@@ -678,90 +683,90 @@ function _(t, e, i) {
678
683
  }
679
684
  } else if (c === I.Count)
680
685
  if (d === "") {
681
- const x = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
682
- C = E(i.titleLabels[x], {
686
+ const x = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
687
+ B = E(t.titleLabels[x], {
683
688
  aggregationType: u,
684
689
  [f]: b
685
690
  });
686
691
  } else {
687
- const x = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
688
- C = E(i.titleLabels[x], {
692
+ const x = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
693
+ B = E(t.titleLabels[x], {
689
694
  aggregationType: u,
690
695
  [f]: b,
691
696
  splitByField: g
692
697
  });
693
698
  }
694
699
  else if (d !== "") {
695
- const x = o ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
696
- C = E(i.titleLabels[x], {
700
+ const x = l ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
701
+ B = E(t.titleLabels[x], {
697
702
  aggregationType: u,
698
- aggregationField: m,
703
+ aggregationField: y,
699
704
  [f]: b,
700
705
  splitByField: g
701
706
  });
702
- } else if (l.length > 0) {
703
- const x = o ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
704
- C = E(i.titleLabels[x], {
707
+ } else if (o.length > 0) {
708
+ const x = l ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
709
+ B = E(t.titleLabels[x], {
705
710
  aggregationType: u,
706
- aggregationFields: m,
711
+ aggregationFields: y,
707
712
  [f]: b
708
713
  });
709
714
  }
710
- return C;
715
+ return B;
711
716
  }
712
- const Me = (t) => fe({
713
- where: t.query?.where,
717
+ const Ee = (i) => fe({
718
+ where: i.query?.where,
714
719
  normalize: !1,
715
720
  escape: !1
716
- }) ?? "", Ee = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, ne = je(
717
- (t) => {
718
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
719
- return Ft(t?.series?.[0]?.query?.where) ? "" : e;
721
+ }) ?? "", We = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, ne = Ke(
722
+ (i) => {
723
+ const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
724
+ return xt(i?.series?.[0]?.query?.where) ? "" : e;
720
725
  },
721
- (t) => t?.series?.[0]?.query?.where
722
- ), le = (t) => {
726
+ (i) => i?.series?.[0]?.query?.where
727
+ ), le = (i) => {
723
728
  let e = [];
724
- if (ne(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;
729
+ if (ne(i) === "")
730
+ e = i?.series.map((t) => {
731
+ const a = t.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
732
+ return a?.length > 0 ? a : t.y;
728
733
  }).flat() ?? [];
729
734
  else {
730
- const i = t?.series?.[0], a = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
735
+ const t = i?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
731
736
  e = a !== void 0 ? [a] : [];
732
737
  }
733
- return e.filter((i) => i !== "");
738
+ return e.filter((t) => t !== "");
734
739
  };
735
- function We(t) {
736
- const { splitByField: e, numericFields: i, layer: a, seriesIndex: r } = t, s = Z(a).idField ?? "";
737
- return e === "" ? i[r] ?? s : i[0] ?? s;
740
+ function $e(i) {
741
+ const { splitByField: e, numericFields: t, layer: a, seriesIndex: r } = i, s = Z(a).idField ?? "";
742
+ return e === "" ? t[r] ?? s : t[0] ?? s;
738
743
  }
739
- function ci(t) {
740
- const { numericFields: e, aggregationType: i, config: a, layerInfo: r } = t;
744
+ function yi(i) {
745
+ const { numericFields: e, aggregationType: t, config: a, layerInfo: r } = i;
741
746
  let s = !1;
742
- i === I.Count ? s = !0 : i === I.NoAggregation && (s = e.every((c) => {
743
- const d = r.layerFieldsInfo.find((y) => y.name === c);
744
- return d !== void 0 ? he(d) : !1;
747
+ t === I.Count ? s = !0 : t === I.NoAggregation && (s = e.every((c) => {
748
+ const d = r.layerFieldsInfo.find((p) => p.name === c);
749
+ return d !== void 0 ? Te(d) : !1;
745
750
  })), Se(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 = U(a), d = r.layerFieldsInfo.find((u) => u.name === c), y = d !== void 0 && he(d);
749
- Se(a, 0, y);
751
+ const n = a.series.some((c) => A(c)), o = a.series.some((c) => v(c));
752
+ if (n || o) {
753
+ const c = U(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && Te(d);
754
+ Se(a, 0, p);
750
755
  }
751
756
  }
752
- const pe = (t) => {
757
+ const pe = (i) => {
753
758
  let e;
754
- if ($(t)) {
755
- const i = t.orderOptions?.data?.orderByX ?? [""], a = t.orderOptions?.data?.orderByY ?? [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
756
- e = [Te(i, r), Te(a, s)];
759
+ if (Y(i)) {
760
+ const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], r = i.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = i.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
761
+ e = [Be(t, r), Be(a, s)];
757
762
  } else {
758
- const i = t.orderOptions?.data?.orderType ?? L.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : Tt.Ascending;
759
- e = [xt(a, i)];
763
+ const t = i.orderOptions?.data?.orderType ?? L.Category, a = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : bt.Ascending;
764
+ e = [Bt(a, t)];
760
765
  }
761
766
  return e;
762
767
  };
763
- function di(t) {
764
- const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
768
+ function mi(i) {
769
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, { layerFieldsInfo: o } = s;
765
770
  let c = !1;
766
771
  const d = j({
767
772
  config: r,
@@ -770,432 +775,438 @@ function di(t) {
770
775
  layerInfo: s,
771
776
  seriesIndex: 0,
772
777
  commonStrings: n
773
- }), y = se({
778
+ }), p = se({
774
779
  config: r,
775
780
  xAxisField: e,
776
- numericFields: i,
781
+ numericFields: t,
777
782
  aggregationType: a,
778
783
  layer: s.layer,
779
- fieldList: l
784
+ fieldList: o
780
785
  }).name, u = {
781
786
  ...d,
782
787
  id: `series_${Date.now()}`,
783
788
  name: n.axisLabels.values,
784
789
  x: ce,
785
- y
786
- }, m = [];
787
- for (const g of i)
788
- m.push({
790
+ y: p
791
+ }, y = [];
792
+ for (const g of t)
793
+ y.push({
789
794
  onStatisticField: g,
790
795
  outStatisticFieldName: `${g}_0`.toUpperCase(),
791
796
  statisticType: a
792
797
  });
793
- u.query = { outStatistics: m };
794
- const p = r.series[0];
795
- return p !== void 0 && (u.id = p.id, (A(u) && A(p) || v(u) && v(p)) && K(u, p), r.colorMatch || (k(p) && k(u) ? u.fillSymbol = p.fillSymbol : (A(u) && A(p) || v(u) && v(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), c = !0), u.id = p.id, p.name !== d.name && (u.name = p.name)), r.series.length === 1 && ((A(u) || v(u)) && K(u, r.series[0]), r.colorMatch || (k(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];
798
+ u.query = { outStatistics: y };
799
+ const m = r.series[0];
800
+ return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && K(u, m), r.colorMatch || (O(m) && O(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)) && K(u, r.series[0]), r.colorMatch || (O(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];
796
801
  }
797
- function Ye(t) {
798
- const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, c = Z(s.layer).idField, d = [];
799
- let y = !1;
800
- for (let o = 0; o < i.length; o += 1) {
802
+ function Ye(i) {
803
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, { layerFieldsInfo: o } = s, c = Z(s.layer).idField, d = [];
804
+ let p = !1;
805
+ for (let l = 0; l < t.length; l += 1) {
801
806
  const f = j({
802
807
  config: r,
803
808
  xAxisField: e,
804
809
  aggregationType: a,
805
810
  layerInfo: s,
806
- seriesIndex: o,
811
+ seriesIndex: l,
807
812
  commonStrings: n
808
- }), b = r.series[o]?.y, C = typeof b == "string" && b.trim() !== "" && !l.find((h) => h.name === b) ? b : se({
813
+ }), b = r.series[l]?.y, B = typeof b == "string" && b.trim() !== "" && !o.find((h) => h.name === b) ? b : se({
809
814
  config: r,
810
815
  xAxisField: e,
811
- numericFields: i,
816
+ numericFields: t,
812
817
  aggregationType: a,
813
818
  layer: s.layer,
814
- numericFieldIndex: o,
815
- fieldList: l
816
- }).name, x = i[o];
819
+ numericFieldIndex: l,
820
+ fieldList: o
821
+ }).name, x = t[l];
817
822
  let F = {
818
823
  ...f,
819
824
  query: {
820
825
  ...f.query
821
826
  }
822
827
  };
823
- i && x !== c && (F = {
828
+ t && x !== c && (F = {
824
829
  ...F,
825
830
  id: x,
826
- name: P(l, x)
831
+ name: P(o, x)
827
832
  });
828
- let O = x;
829
- F.query !== void 0 && (a !== I.NoAggregation ? (O = C, F.query.outStatistics = [
833
+ let N = x;
834
+ F.query !== void 0 && (a !== I.NoAggregation ? (N = B, F.query.outStatistics = [
830
835
  {
831
836
  ...f.query?.outStatistics?.[0] ?? {},
832
837
  onStatisticField: x,
833
- outStatisticFieldName: C,
838
+ outStatisticFieldName: B,
834
839
  statisticType: a
835
840
  }
836
- ]) : delete F.query.outStatistics), F.y = O;
841
+ ]) : delete F.query.outStatistics), F.y = N;
837
842
  const S = r.series.find(
838
843
  (h) => h.query?.outStatistics?.[0]?.onStatisticField === x && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === x || h.x === x)
839
844
  );
840
845
  if (S !== void 0 && typeof S.y == "string" && S.y.trim() !== "") {
841
- (A(F) && A(S) || v(F) && v(S)) && K(F, S), r.colorMatch || (k(F) && k(S) ? F.fillSymbol = S.fillSymbol : (A(F) && A(S) || v(F) && v(S)) && (F.lineSymbol = S.lineSymbol, F.markerSymbol = S.markerSymbol), y = !0);
846
+ (A(F) && A(S) || v(F) && v(S)) && K(F, S), r.colorMatch || (O(F) && O(S) ? F.fillSymbol = S.fillSymbol : (A(F) && A(S) || v(F) && v(S)) && (F.lineSymbol = S.lineSymbol, F.markerSymbol = S.markerSymbol), p = !0);
842
847
  const h = j({
843
848
  config: r,
844
849
  xAxisField: e,
845
850
  aggregationType: a,
846
851
  layerInfo: s,
847
- seriesIndex: o,
852
+ seriesIndex: l,
848
853
  commonStrings: n
849
854
  });
850
- F.id = S.id, S.id !== h.id && S.name !== h.name && (F.id = S.id, F.name = S.name), F.assignToSecondValueAxis = S.assignToSecondValueAxis, F.type === B.HeatSeries && S.type === B.HeatSeries && (F.y = S.y, F.heatRulesType = S.heatRulesType);
855
+ F.id = S.id, S.id !== h.id && S.name !== h.name && (F.id = S.id, F.name = S.name), F.assignToSecondValueAxis = S.assignToSecondValueAxis, F.type === C.HeatSeries && S.type === C.HeatSeries && (F.y = S.y, F.heatRulesType = S.heatRulesType);
851
856
  }
852
857
  d.push(F);
853
858
  }
854
- const u = d.filter((o) => k(o)), m = d.filter(
855
- (o) => A(o) || v(o)
856
- ), p = r.series.filter((o) => k(o)), g = r.series.filter(
857
- (o) => A(o) || v(o)
859
+ const u = d.filter((l) => O(l)), y = d.filter(
860
+ (l) => A(l) || v(l)
861
+ ), m = r.series.filter((l) => O(l)), g = r.series.filter(
862
+ (l) => A(l) || v(l)
858
863
  );
859
- return p.length === 1 && u.length === 1 && !r.colorMatch && (k(p[0]) && k(u[0]) && (u[0].fillSymbol = p[0].fillSymbol), y = !0), g.length === 1 && m.length === 1 && ((A(g[0]) && A(m[0]) || v(g[0]) && v(m[0])) && K(m[0], g[0]), r.colorMatch || ((A(g[0]) && A(m[0]) || v(g[0]) && v(m[0])) && (m[0].lineSymbol = g[0].lineSymbol, m[0].markerSymbol = g[0].markerSymbol), y = !0)), r.colorMatch = !y, d;
864
+ return m.length === 1 && u.length === 1 && !r.colorMatch && (O(m[0]) && O(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])) && K(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;
860
865
  }
861
- function Os(t) {
862
- const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s, layer: n } = a, l = U(i), c = le(i), d = ne(i), y = oe(i, a, r), u = $e(i, a, r);
863
- if (i.series.forEach((m, p) => {
866
+ function Os(i) {
867
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: r } = i, { layerFieldsInfo: s, layer: n } = a, o = U(t), c = le(t), d = ne(t), p = oe(t, a, r), u = He(t, a, r);
868
+ if (t.series.forEach((y, m) => {
864
869
  const g = se({
865
- config: i,
866
- xAxisField: l,
870
+ config: t,
871
+ xAxisField: o,
867
872
  numericFields: c,
868
873
  aggregationType: e,
869
874
  splitByField: d,
870
875
  layer: n,
871
- seriesIndex: p,
872
- numericFieldIndex: p,
876
+ seriesIndex: m,
877
+ numericFieldIndex: m,
873
878
  fieldList: s
874
879
  }).name;
875
- m.y = g;
876
- const o = We({
880
+ y.y = g;
881
+ const l = $e({
877
882
  splitByField: d,
878
883
  numericFields: c,
879
884
  layer: n,
880
- seriesIndex: p
881
- }), f = m.query?.outStatistics?.[0]?.onStatisticField ?? o;
882
- m.query = {
883
- ...m.query,
885
+ seriesIndex: m
886
+ }), f = y.query?.outStatistics?.[0]?.onStatisticField ?? l;
887
+ y.query = {
888
+ ...y.query,
884
889
  outStatistics: e === I.NoAggregation ? void 0 : [
885
890
  {
886
- ...m.query?.outStatistics?.[0],
891
+ ...y.query?.outStatistics?.[0],
887
892
  outStatisticFieldName: g,
888
893
  statisticType: e,
889
894
  onStatisticField: f
890
895
  }
891
896
  ]
892
- }, "temporalBinning" in m && m.temporalBinning !== void 0 && (m.temporalBinning.nullPolicy = e === I.NoAggregation ? H.Interpolate : H.Null), e === I.NoAggregation && $t(i);
893
- }), y && i.title && (i.title.content.text = _(i, a, r)), u && i.series[0].type !== B.HeatSeries) {
894
- const m = ge({
895
- config: i,
897
+ }, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === I.NoAggregation ? H.Interpolate : H.Null), e === I.NoAggregation && Ht(t);
898
+ }), p && t.title && (t.title.content.text = _(t, a, r)), u && t.series[0].type !== C.HeatSeries) {
899
+ const y = ge({
900
+ config: t,
896
901
  layerInfo: a,
897
902
  commonStrings: r,
898
903
  numericFields: c,
899
904
  aggregationType: e
900
905
  });
901
- W(i, 1, m);
906
+ W(t, 1, y);
902
907
  }
903
908
  }
904
- function yi(t) {
909
+ function pi(i) {
905
910
  const {
906
911
  splitByField: e,
907
- xAxisField: i,
912
+ xAxisField: t,
908
913
  numericFields: a,
909
914
  aggregationType: r,
910
915
  config: s,
911
916
  layerInfo: n,
912
- commonStrings: l,
917
+ commonStrings: o,
913
918
  splitByFieldInfos: c
914
- } = t, { layer: d, layerFieldsInfo: y } = n, { categoriesArray: u, splitByFieldType: m } = c, p = We({
919
+ } = i, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = $e({
915
920
  splitByField: e,
916
921
  numericFields: a,
917
922
  layer: d,
918
923
  seriesIndex: 0
919
924
  });
920
- let g = [], o = !1;
925
+ let g = [], l = !1;
921
926
  if (u.length === 0) {
922
927
  g = Ye({
923
- xAxisField: i,
928
+ xAxisField: t,
924
929
  numericFields: a,
925
930
  aggregationType: r,
926
931
  config: s,
927
932
  layerInfo: n,
928
- commonStrings: l
933
+ commonStrings: o
929
934
  });
930
935
  for (const f of g)
931
936
  f.query && (f.query.where = `${e}=''`);
932
937
  } else
933
938
  for (let f = 0; f < u.length; f += 1) {
934
- const b = u[f], C = se({
939
+ const b = u[f], B = se({
935
940
  config: s,
936
- xAxisField: i,
941
+ xAxisField: t,
937
942
  numericFields: a,
938
943
  aggregationType: r,
939
944
  layer: n.layer,
940
945
  seriesIndex: f,
941
946
  splitByField: e,
942
- fieldList: y
947
+ fieldList: p
943
948
  }).name, x = j({
944
949
  config: s,
945
- xAxisField: i,
950
+ xAxisField: t,
946
951
  aggregationType: r,
947
952
  layerInfo: n,
948
953
  seriesIndex: f,
949
- commonStrings: l
954
+ commonStrings: o
950
955
  }), F = Ne({
951
956
  queryObject: n.layer,
952
957
  fieldName: e,
953
958
  fieldValue: b ?? ""
954
- }), O = `${b}`, h = {
959
+ }), N = `${b}`, h = {
955
960
  ...x,
956
- id: O,
957
- name: F ?? O,
958
- y: C,
961
+ id: N,
962
+ name: F ?? N,
963
+ y: B,
959
964
  query: {
960
965
  ...x.query,
961
- where: `${e}=${m === ke.String && b !== null ? `'${b}'` : b}`,
966
+ where: `${e}=${y === qe.String && b !== null ? `'${b}'` : b}`,
962
967
  outStatistics: r !== I.NoAggregation ? [
963
968
  {
964
969
  ...x.query?.outStatistics?.[0] ?? {},
965
- onStatisticField: p,
966
- outStatisticFieldName: C,
970
+ onStatisticField: m,
971
+ outStatisticFieldName: B,
967
972
  statisticType: r
968
973
  }
969
974
  ] : void 0
970
975
  }
971
976
  }, D = s.series.find(
972
- (M) => String(Me(M)).trim().replace(/'/gu, "") === O
977
+ (M) => String(Ee(M)).trim().replace(/'/gu, "") === N
973
978
  );
974
- D !== void 0 && ((A(h) && A(D) || v(h) && v(D)) && K(h, D), s.colorMatch || (k(h) && k(D) ? h.fillSymbol = D.fillSymbol : (A(h) && A(D) || v(h) && v(D)) && (h.lineSymbol = D.lineSymbol, h.markerSymbol = D.markerSymbol), o = !0), h.id = D.id, h.name = D.name, h.assignToSecondValueAxis = D.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((M) => M.query?.fetchNullValues)), g.push(h);
979
+ D !== void 0 && ((A(h) && A(D) || v(h) && v(D)) && K(h, D), s.colorMatch || (O(h) && O(D) ? h.fillSymbol = D.fillSymbol : (A(h) && A(D) || v(h) && v(D)) && (h.lineSymbol = D.lineSymbol, h.markerSymbol = D.markerSymbol), l = !0), h.id = D.id, h.name = D.name, h.assignToSecondValueAxis = D.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((M) => M.query?.fetchNullValues)), g.push(h);
975
980
  }
976
- return s.colorMatch = !o, g;
981
+ return s.colorMatch = !l, g;
977
982
  }
978
- const ks = (t) => {
983
+ const qs = (i) => {
979
984
  const {
980
985
  xAxisFieldName: e,
981
- splitByField: i,
986
+ splitByField: t,
982
987
  numericFields: a,
983
988
  aggregationType: r,
984
989
  config: s,
985
990
  layerInfo: n,
986
- commonStrings: l,
991
+ commonStrings: o,
987
992
  splitByFieldInfos: c
988
- } = t, { layerFieldsInfo: d } = n ?? {}, y = te(s), u = wt(s), m = U(y), p = d.find((T) => T.name === m), g = y.series[0].query?.fetchNullValues, o = "nullCategory" in y.series?.[0] ? y.series[0].nullCategory : void 0, f = y.series[0]?.query === void 0, b = "binTemporalData" in y.series[0] ? y.series[0].binTemporalData : void 0, C = d.find((T) => T.name === e), x = oe(y, n, l), F = $e(y, n, l), O = mi(y, n);
993
+ } = i, { layerFieldsInfo: d } = n ?? {}, p = te(s), u = Mt(s), y = U(p), m = d.find((T) => T.name === y), g = s.series[0].query?.fetchNullValues, l = di(s), f = s.series[0]?.query === void 0, b = "binTemporalData" in p.series[0] ? p.series[0].binTemporalData : void 0, B = d.find((T) => T.name === e), x = oe(p, n, o), F = He(p, n, o), N = gi(p, n);
989
994
  let S = Le(s);
990
- const h = y.series.some((T) => k(T)), D = Nt(y.series), M = Ot(y.series), q = {};
991
- $(y) && (q.classBreaksRules = y.series[0]?.classBreaksRules, q.xTemporalBinning = y.series[0]?.xTemporalBinning, q.yTemporalBinning = y.series[0]?.yTemporalBinning, q.emptyCells = y.series[0]?.emptyCells, q.nullPolicy = y.nullPolicy);
995
+ const h = p.series.some((T) => O(T)), D = ht(p.series), M = Tt(p.series), q = {};
996
+ Y(p) && (q.classBreaksRules = p.series[0]?.classBreaksRules, q.xTemporalBinning = p.series[0]?.xTemporalBinning, q.yTemporalBinning = p.series[0]?.yTemporalBinning, q.emptyCells = p.series[0]?.emptyCells, q.nullPolicy = p.nullPolicy);
992
997
  let Q = !1;
993
- if (z(C) ? S = ye() : !G(p) && G(C) ? (S = J(), Q = !0) : !Y(p) && Y(C) ? (S = J(), Q = !0) : Y(p) && !Y(C) && (h ? S = ye() : S = Lt(), Q = !0), S !== void 0 && Ze(s, l, S), u === 0 && (s.series = [
994
- j({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: l })
998
+ if (z(B) ? S = ye() : !G(m) && G(B) ? (S = J(), Q = !0) : !$(m) && $(B) ? (S = J(), Q = !0) : $(m) && !$(B) && (h ? S = ye() : S = Ot(), Q = !0), S !== void 0 && _e(s, o, S), u === 0 && (s.series = [
999
+ j({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: o })
995
1000
  ]), s.series.forEach((T) => {
996
1001
  T.x = e, T.query !== void 0 && (T.query.groupByFieldsForStatistics = [e]);
997
- }), i === "" || a.length > 1 ? Oe({
1002
+ }), t === "" || a.length > 1 ? Oe({
998
1003
  fieldName: e,
999
1004
  numericFields: a,
1000
1005
  fieldList: d
1001
- }) ? s.series = di({
1006
+ }) ? s.series = mi({
1002
1007
  config: s,
1003
1008
  layerInfo: n,
1004
1009
  xAxisField: e,
1005
1010
  numericFields: a,
1006
1011
  aggregationType: r,
1007
- commonStrings: l
1012
+ commonStrings: o
1008
1013
  }) : s.series = Ye({
1009
1014
  config: s,
1010
1015
  layerInfo: n,
1011
1016
  xAxisField: e,
1012
1017
  numericFields: a,
1013
1018
  aggregationType: r,
1014
- commonStrings: l
1015
- }) : c && (s.series = yi({
1019
+ commonStrings: o
1020
+ }) : c && (s.series = pi({
1016
1021
  config: s,
1017
1022
  layerInfo: n,
1018
- splitByField: i,
1023
+ splitByField: t,
1019
1024
  xAxisField: e,
1020
1025
  numericFields: a,
1021
1026
  aggregationType: r,
1022
- commonStrings: l,
1027
+ commonStrings: o,
1023
1028
  splitByFieldInfos: c
1024
- })), O && s.series[0].type !== B.HeatSeries) {
1029
+ })), N && s.series[0].type !== C.HeatSeries) {
1025
1030
  const T = P(d, e);
1026
1031
  W(s, 0, T);
1027
1032
  }
1028
- if (F && s.series[0].type !== B.HeatSeries) {
1033
+ if (F && s.series[0].type !== C.HeatSeries) {
1029
1034
  const T = ge({
1030
1035
  config: s,
1031
1036
  layerInfo: n,
1032
- commonStrings: l,
1037
+ commonStrings: o,
1033
1038
  numericFields: a,
1034
1039
  aggregationType: r
1035
1040
  });
1036
1041
  W(s, 1, T);
1037
1042
  }
1038
- if (x && s.title && (s.title.content.text = _(s, n, l)), N({ config: s, value: null, axisIndex: 1, isMax: !1 }), N({ config: s, value: null, axisIndex: 1, isMax: !0 }), ci({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (D || M) && (N({ config: s, value: null, axisIndex: 0, isMax: !1 }), N({ config: s, value: null, axisIndex: 0, isMax: !0 }), Q && r !== I.NoAggregation)) {
1039
- const T = S?.type === B.DateAxisFormat ? H.Null : H.Interpolate;
1043
+ if (x && s.title && (s.title.content.text = _(s, n, o)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), yi({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (D || M) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), Q && r !== I.NoAggregation)) {
1044
+ const T = S?.type === C.DateAxisFormat ? H.Null : H.Interpolate;
1040
1045
  Yt(T, s);
1041
1046
  }
1042
- $(s) && (s.series[0].classBreaksRules = q.classBreaksRules, s.series[0].xTemporalBinning = q.xTemporalBinning, s.series[0].yTemporalBinning = q.yTemporalBinning, s.series[0].emptyCells = q.emptyCells, s.nullPolicy = q.nullPolicy, we({ commonStrings: l, config: s, layerInfo: n })), s.series.forEach((T) => {
1043
- f ? delete T.query : g && T.query && (T.query.fetchNullValues = g), o && (T.type === B.BarSeries || T.type === B.LineSeries || T.type === B.RadarSeries) && (T.nullCategory = o), V(T) && T.binTemporalData === void 0 && C?.type === ke.TimeOnly && (T.binTemporalData = !1);
1044
- const He = y.series.find((Xe) => Xe.id === T.id)?.visible;
1045
- T.visible = He, V(T) && (T.binTemporalData = b);
1047
+ Y(s) && (s.series[0].classBreaksRules = q.classBreaksRules, s.series[0].xTemporalBinning = q.xTemporalBinning, s.series[0].yTemporalBinning = q.yTemporalBinning, s.series[0].emptyCells = q.emptyCells, s.nullPolicy = q.nullPolicy, Me({ commonStrings: o, config: s, layerInfo: n })), s.series.forEach((T) => {
1048
+ f ? delete T.query : g && T.query && (T.query.fetchNullValues = g), Pe(T) && l && (T.type === C.BarSeries ? T.nullCategory = {
1049
+ text: l.text,
1050
+ fillSymbol: l.fillSymbol
1051
+ } : T.nullCategory = {
1052
+ text: l.text,
1053
+ markerSymbol: l.markerSymbol
1054
+ }), V(T) && T.binTemporalData === void 0 && B?.type === qe.TimeOnly && (T.binTemporalData = !1);
1055
+ const Xe = p.series.find((Ue) => Ue.id === T.id)?.visible;
1056
+ T.visible = Xe, V(T) && (T.binTemporalData = b);
1046
1057
  });
1047
- }, K = (t, e) => {
1048
- 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 = {
1058
+ }, K = (i, e) => {
1059
+ i.markerVisible = e.markerVisible, i.lineSmoothed = e.lineSmoothed, i.showArea = e.showArea, i.areaColor = e.areaColor, i.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (i.lineSymbol = { ...e.lineSymbol, color: i.lineSymbol?.color }), e.markerSymbol && (i.markerSymbol = {
1049
1060
  ...e.markerSymbol,
1050
- color: t.markerSymbol?.color
1061
+ color: i.markerSymbol?.color
1051
1062
  });
1052
- }, qs = (t) => {
1053
- const { config: e, seriesIndex: i, layerInfo: a, commonStrings: r } = t, s = e.series?.[i], n = ne(e);
1054
- let l;
1063
+ }, Rs = (i) => {
1064
+ const { config: e, seriesIndex: t, layerInfo: a, commonStrings: r } = i, s = e.series?.[t], n = ne(e);
1065
+ let o;
1055
1066
  if (ie(e.series) === w.BarAndLineFromFields)
1056
- l = r.axisLabels.values;
1057
- else if (Ue(n)) {
1067
+ o = r.axisLabels.values;
1068
+ else if (je(n)) {
1058
1069
  const d = s.query?.outStatistics?.[0]?.onStatisticField;
1059
- d !== void 0 && d !== Z(a.layer).idField && (l = P(a.layerFieldsInfo, d));
1070
+ d !== void 0 && d !== Z(a.layer).idField && (o = P(a.layerFieldsInfo, d));
1060
1071
  } else {
1061
- const d = String(Me(s)).trim().replace(/'/gu, "");
1062
- l = Ne({
1072
+ const d = String(Ee(s)).trim().replace(/'/gu, "");
1073
+ o = Ne({
1063
1074
  queryObject: a.layer,
1064
1075
  fieldName: n,
1065
1076
  fieldValue: d ?? ""
1066
1077
  }) ?? d;
1067
1078
  }
1068
- return l ?? s.id;
1069
- }, Rs = (t, e) => {
1070
- if ($(e))
1071
- ri(t, e);
1079
+ return o ?? s.id;
1080
+ }, Ps = (i, e) => {
1081
+ if (Y(e))
1082
+ ni(i, e);
1072
1083
  else {
1073
1084
  e.orderOptions ??= {};
1074
- const i = e.orderOptions?.data?.orderType;
1075
- pe(e)[0] === ue.customSort && i === L.Category && (e.orderOptions.data = {
1085
+ const t = e.orderOptions?.data?.orderType;
1086
+ pe(e)[0] === ue.customSort && t === L.Category && (e.orderOptions.data = {
1076
1087
  orderType: L.Category,
1077
- orderBy: [...t]
1088
+ orderBy: [...i]
1078
1089
  });
1079
1090
  }
1080
- }, Ps = async (t) => {
1081
- const { config: e, layerInfo: i, errorStrings: a } = t, r = U(e), s = Le(e)?.type, n = le(e), l = ie(e.series);
1091
+ }, ws = async (i) => {
1092
+ const { config: e, layerInfo: t, errorStrings: a } = i, r = U(e), s = Le(e)?.type, n = le(e), o = ie(e.series);
1082
1093
  let c = [];
1083
- return s === B.CategoryAxisFormat && (l === w.BarAndLineFromFields || r === ce ? c = n.map((d) => P(i?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ce && i !== void 0 && (c = await Ke({
1084
- layerInfo: i,
1094
+ return s === C.CategoryAxisFormat && (o === w.BarAndLineFromFields || r === ce ? c = n.map((d) => P(t?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ce && t !== void 0 && (c = await Ze({
1095
+ layerInfo: t,
1085
1096
  config: e,
1086
1097
  category: r,
1087
1098
  errorStrings: a
1088
1099
  }))), c;
1089
1100
  };
1090
- function oe(t, e, i) {
1091
- const a = _(t, e, i), r = Mt(t), s = ae(t);
1101
+ function oe(i, e, t) {
1102
+ const a = _(i, e, t), r = Et(i), s = ae(i);
1092
1103
  return a === r || s;
1093
1104
  }
1094
- function $e(t, e, i) {
1105
+ function He(i, e, t) {
1095
1106
  const a = ge({
1096
- config: t,
1107
+ config: i,
1097
1108
  layerInfo: e,
1098
- commonStrings: i,
1099
- numericFields: le(t),
1100
- aggregationType: Ee(t)
1101
- }), r = re(1, t), s = ae(t);
1109
+ commonStrings: t,
1110
+ numericFields: le(i),
1111
+ aggregationType: We(i)
1112
+ }), r = re(1, i), s = ae(i);
1102
1113
  return a === r || s;
1103
1114
  }
1104
- function mi(t, e) {
1105
- const i = P(e.layerFieldsInfo, U(t)), a = re(0, t), r = ae(t);
1106
- return i === a || r;
1115
+ function gi(i, e) {
1116
+ const t = P(e.layerFieldsInfo, U(i)), a = re(0, i), r = ae(i);
1117
+ return t === a || r;
1107
1118
  }
1108
- function ws(t) {
1109
- return V(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1119
+ function Ms(i) {
1120
+ return V(i.series[0]) ? i.series[0].binTemporalData ?? !0 : !1;
1110
1121
  }
1111
- function Ms(t, e) {
1112
- e?.series.forEach((i) => {
1113
- V(i) && (i.binTemporalData = t, t ? i.temporalBinning = {
1122
+ function Es(i, e) {
1123
+ e?.series.forEach((t) => {
1124
+ V(t) && (t.binTemporalData = i, i ? t.temporalBinning = {
1114
1125
  unit: de.Day,
1115
1126
  size: 0,
1116
- timeAggregationType: Bt.Start,
1127
+ timeAggregationType: At.Start,
1117
1128
  trimIncompleteTimeInterval: !0,
1118
1129
  nullPolicy: H.Null
1119
- } : delete i.temporalBinning);
1130
+ } : delete t.temporalBinning);
1120
1131
  });
1121
1132
  }
1122
1133
  export {
1123
- ts as $,
1124
- Ps as A,
1125
- Rs as B,
1126
- ks as C,
1127
- ws as D,
1128
- Ms as E,
1134
+ is as $,
1135
+ ws as A,
1136
+ Ps as B,
1137
+ qs as C,
1138
+ Ms as D,
1139
+ Es as E,
1129
1140
  _ as F,
1130
- we as G,
1131
- ii as H,
1132
- Gi as I,
1133
- hs as J,
1134
- Ts as K,
1135
- si as L,
1136
- Ji as M,
1137
- ai as N,
1138
- es as O,
1139
- Bs as P,
1140
- Cs as Q,
1141
- bs as R,
1142
- As as S,
1143
- Vs as T,
1144
- Ds as U,
1145
- Ls as V,
1146
- Kt as W,
1141
+ Me as G,
1142
+ si as H,
1143
+ Ji as I,
1144
+ Ts as J,
1145
+ Bs as K,
1146
+ ai as L,
1147
+ es as M,
1148
+ ri as N,
1149
+ ts as O,
1150
+ Cs as P,
1151
+ bs as Q,
1152
+ As as R,
1153
+ vs as S,
1154
+ Ds as T,
1155
+ Ls as U,
1156
+ ks as V,
1157
+ Zt as W,
1147
1158
  Ns as X,
1148
- ji as Y,
1149
- Ki as Z,
1150
- is as _,
1151
- $i as a,
1152
- as as a0,
1153
- ss as a1,
1154
- _i as a2,
1155
- Zi as a3,
1156
- zi as a4,
1157
- Qi as a5,
1158
- ls as a6,
1159
- os as a7,
1160
- us as a8,
1161
- cs as a9,
1162
- ns as aa,
1163
- rs as ab,
1164
- ds as ac,
1165
- ni as ad,
1166
- ys as ae,
1167
- ms as af,
1168
- ps as ag,
1169
- gs as ah,
1170
- fs as ai,
1171
- Ss as aj,
1172
- Is as ak,
1173
- vs as al,
1174
- Fs as am,
1175
- xs as an,
1176
- Ei as b,
1177
- Wi as c,
1159
+ Ki as Y,
1160
+ Zi as Z,
1161
+ ss as _,
1162
+ Hi as a,
1163
+ rs as a0,
1164
+ as as a1,
1165
+ Qi as a2,
1166
+ _i as a3,
1167
+ Gi as a4,
1168
+ zi as a5,
1169
+ os as a6,
1170
+ us as a7,
1171
+ cs as a8,
1172
+ ds as a9,
1173
+ ls as aa,
1174
+ ns as ab,
1175
+ ys as ac,
1176
+ li as ad,
1177
+ ms as ae,
1178
+ ps as af,
1179
+ gs as ag,
1180
+ fs as ah,
1181
+ Ss as ai,
1182
+ Fs as aj,
1183
+ Vs as ak,
1184
+ Is as al,
1185
+ xs as am,
1186
+ hs as an,
1187
+ Wi as b,
1188
+ $i as c,
1178
1189
  le as d,
1179
1190
  ne as e,
1180
- Ui as f,
1181
- Ee as g,
1182
- qs as h,
1183
- Hi as i,
1191
+ ji as f,
1192
+ We as g,
1193
+ Rs as h,
1194
+ Xi as i,
1184
1195
  Oi as j,
1185
- Wt as k,
1186
- Et as l,
1187
- Pi as m,
1188
- ki as n,
1189
- wi as o,
1190
- Xi as p,
1191
- qi as q,
1192
- Zt as r,
1193
- Pe as s,
1194
- Mi as t,
1196
+ $t as k,
1197
+ Wt as l,
1198
+ wi as m,
1199
+ qi as n,
1200
+ Mi as o,
1201
+ Ui as p,
1202
+ Ri as q,
1203
+ _t as r,
1204
+ we as s,
1205
+ Ei as t,
1195
1206
  Yi as u,
1196
- Ri as v,
1207
+ Pi as v,
1197
1208
  Yt as w,
1198
- $t as x,
1209
+ Ht as x,
1199
1210
  Os as y,
1200
1211
  pe as z
1201
1212
  };