@arcgis/charts-components 5.1.0-next.85 → 5.1.0-next.86

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 (183) hide show
  1. package/dist/cdn/{4JYFPXNP.js → 27R3TDQ3.js} +1 -1
  2. package/dist/cdn/{TRBZZLQ4.js → 2P5TV6TZ.js} +1 -1
  3. package/dist/cdn/{QBGYIPDE.js → 2PY6XJ5J.js} +32 -32
  4. package/dist/cdn/{E2TM7BJP.js → 2YZFLCHV.js} +1 -1
  5. package/dist/cdn/{R3KMZ5JQ.js → 3UGQ33ZJ.js} +1 -1
  6. package/dist/cdn/45N4ERUO.js +2 -0
  7. package/dist/cdn/{UUKLISLI.js → 4OBWKQXV.js} +1 -1
  8. package/dist/cdn/{54XEB3TI.js → 5C6NKK2M.js} +1 -1
  9. package/dist/cdn/{YWCBY5V6.js → 5P2CIK73.js} +1 -1
  10. package/dist/cdn/{3DN4ZRPN.js → 6CGIXX6D.js} +1 -1
  11. package/dist/cdn/{G7SW4EUO.js → 6FI7BQHR.js} +1 -1
  12. package/dist/cdn/{LQGOVHK5.js → 6TU7TELQ.js} +1 -1
  13. package/dist/cdn/{XXZLJJUD.js → 6U3ROWZZ.js} +1 -1
  14. package/dist/cdn/{YDR7QMVT.js → 7BU2NYJF.js} +1 -1
  15. package/dist/cdn/{4M44GUGJ.js → 7FAH7JCG.js} +1 -1
  16. package/dist/cdn/{64LZP4QQ.js → AOBR2FZX.js} +1 -1
  17. package/dist/cdn/{SUAG7EYU.js → AUF6Z2XS.js} +1 -1
  18. package/dist/cdn/{NT6PM5XH.js → AWKPSK42.js} +1 -1
  19. package/dist/cdn/{DLKG6DVQ.js → B2EZWE7S.js} +1 -1
  20. package/dist/cdn/{RL2K7DDP.js → BQAMQZ3V.js} +1 -1
  21. package/dist/cdn/{NFHOSKHP.js → DNF2AXKJ.js} +1 -1
  22. package/dist/cdn/{PNXMBMZW.js → DPB4UM43.js} +1 -1
  23. package/dist/cdn/{MO6SHL7R.js → E236NXER.js} +1 -1
  24. package/dist/cdn/{TUAKPBN6.js → E5GUU5JX.js} +1 -1
  25. package/dist/cdn/{NSIRDSJE.js → ECWZPFK5.js} +1 -1
  26. package/dist/cdn/{I346TCJF.js → EDG6NE3Q.js} +1 -1
  27. package/dist/cdn/{NGG777T3.js → EVB7GUKT.js} +2 -2
  28. package/dist/cdn/EVQPWQQD.js +99 -0
  29. package/dist/cdn/{DMFLHZHN.js → FEOJNWJU.js} +1 -1
  30. package/dist/cdn/{EF2W7QYA.js → FTGZEUG5.js} +1 -1
  31. package/dist/cdn/{KOP2PBMW.js → FTMDNRQ4.js} +1 -1
  32. package/dist/cdn/G37XSGAU.js +2 -0
  33. package/dist/cdn/{DJ2U4EHB.js → GIDKEEAF.js} +1 -1
  34. package/dist/cdn/{EQTKAWX7.js → GKB2KMVK.js} +1 -1
  35. package/dist/cdn/{4T6ARKXI.js → H4V744QH.js} +1 -1
  36. package/dist/cdn/H5LAP626.js +2 -0
  37. package/dist/cdn/{X43NGKXD.js → IO7XSZZJ.js} +1 -1
  38. package/dist/cdn/{6ZQWP3MJ.js → J55BL4K2.js} +1 -1
  39. package/dist/cdn/{PNDSQQ5E.js → JBWZAGT4.js} +1 -1
  40. package/dist/cdn/{JKNNRHD2.js → JJVDA3DN.js} +1 -1
  41. package/dist/cdn/JK4I5WFK.js +2 -0
  42. package/dist/cdn/{BCCYIEWA.js → JMR3NFDK.js} +1 -1
  43. package/dist/cdn/{HLWXN26K.js → JRBIKCLX.js} +1 -1
  44. package/dist/cdn/{XP5EHKK5.js → JVUPGGG4.js} +1 -1
  45. package/dist/cdn/{7R74WZE5.js → KMIWEAU6.js} +1 -1
  46. package/dist/cdn/{EPJKU44A.js → KSO34SAO.js} +1 -1
  47. package/dist/cdn/{VICPGXIO.js → L4V7IFLS.js} +1 -1
  48. package/dist/cdn/{ZZ6ZKTOB.js → LCPXJOVJ.js} +1 -1
  49. package/dist/cdn/{ABINJ3BK.js → LLMY5OHZ.js} +1 -1
  50. package/dist/cdn/{4NGF4CFB.js → LRKPA44Q.js} +1 -1
  51. package/dist/cdn/{UP66E6QT.js → MXWWYMFC.js} +1 -1
  52. package/dist/cdn/{3EZT4DMV.js → MZP3HKKC.js} +1 -1
  53. package/dist/cdn/{DCK2YGKJ.js → N5SWE4NH.js} +1 -1
  54. package/dist/cdn/{5FR6VDUA.js → N72YIV7E.js} +1 -1
  55. package/dist/cdn/{GY72PUJO.js → NGI7H6FA.js} +1 -1
  56. package/dist/cdn/{PVGB35UN.js → NL5S3OE6.js} +1 -1
  57. package/dist/cdn/{6WHMWFQV.js → NPB7D5KA.js} +1 -1
  58. package/dist/cdn/{XDQXFURT.js → NZW6ACIT.js} +1 -1
  59. package/dist/cdn/{OFVDF7MK.js → O2LUS7QH.js} +1 -1
  60. package/dist/cdn/{AU5I6VM4.js → OQNYW7IP.js} +1 -1
  61. package/dist/cdn/{5KBAXDQP.js → OZJAKFKE.js} +1 -1
  62. package/dist/cdn/{KQPSYN5C.js → P5PYOHCA.js} +1 -1
  63. package/dist/cdn/{ESPYLUAE.js → PE3FCPYX.js} +1 -1
  64. package/dist/cdn/{G6DYYIOL.js → PHEGFURT.js} +1 -1
  65. package/dist/cdn/{IWIH7WUN.js → Q2EXXGKR.js} +1 -1
  66. package/dist/cdn/{7HR7XH2G.js → Q4T4D2LB.js} +1 -1
  67. package/dist/cdn/{WAOI2ELL.js → QC5B3B6A.js} +1 -1
  68. package/dist/cdn/{U436QJR4.js → QULJVW56.js} +1 -1
  69. package/dist/cdn/{CRP74XRF.js → RAYEVTTF.js} +1 -1
  70. package/dist/cdn/{N333UOH4.js → RFBBY6PC.js} +1 -1
  71. package/dist/cdn/{VF57GKNK.js → RI3UECXS.js} +1 -1
  72. package/dist/cdn/{I3F7HHTI.js → RNDCOMA2.js} +1 -1
  73. package/dist/cdn/{6LEDHDVS.js → S7T24OCU.js} +1 -1
  74. package/dist/cdn/{45UZ5A2P.js → TBLK3BOQ.js} +1 -1
  75. package/dist/cdn/{XBPOWLBI.js → TS4AXHNJ.js} +1 -1
  76. package/dist/cdn/{QXUDRWYI.js → UBDNMJPP.js} +1 -1
  77. package/dist/cdn/{H6CD2WG5.js → UMK53D2L.js} +1 -1
  78. package/dist/cdn/{UVWAABXY.js → VGFOPTRV.js} +1 -1
  79. package/dist/cdn/{TMCW2LUV.js → VK7C24TQ.js} +1 -1
  80. package/dist/cdn/{NG4T3CM7.js → VMYL36WS.js} +1 -1
  81. package/dist/cdn/{ZXHUZALT.js → VYWV24JN.js} +1 -1
  82. package/dist/cdn/{TXUK6Z75.js → W44VQVU5.js} +1 -1
  83. package/dist/cdn/{SN3JJXMR.js → WHVMPOF6.js} +1 -1
  84. package/dist/cdn/{7CQDF63V.js → WPIPMEWS.js} +1 -1
  85. package/dist/cdn/{Q5N7EDBG.js → WZ2UHREI.js} +1 -1
  86. package/dist/cdn/{ADAJBZRP.js → YG3PYTVU.js} +1 -1
  87. package/dist/cdn/{MPEXW6QX.js → YZABL4ES.js} +1 -1
  88. package/dist/cdn/{5JYTP6ED.js → Z4W5GME2.js} +1 -1
  89. package/dist/cdn/index.js +1 -1
  90. package/dist/chart-rendering/common/interfaces.d.ts +5 -0
  91. package/dist/chunks/axis-lines-symbol.js +12 -12
  92. package/dist/chunks/bar-chart-model.js +3 -3
  93. package/dist/chunks/box-plot-data.js +52 -52
  94. package/dist/chunks/box-plot-model.js +8 -8
  95. package/dist/chunks/chart-model.js +34 -34
  96. package/dist/chunks/chart-ui-utils2.js +8 -8
  97. package/dist/chunks/class-breaks.js +10 -10
  98. package/dist/chunks/combo-bar-line-chart-model.js +11 -11
  99. package/dist/chunks/data-labels-symbol.js +1 -1
  100. package/dist/chunks/data.js +20 -20
  101. package/dist/chunks/gauge-model.js +14 -14
  102. package/dist/chunks/generate-x-axis-title.js +1 -1
  103. package/dist/chunks/heat-chart-model.js +5 -5
  104. package/dist/chunks/histogram-data.js +8 -8
  105. package/dist/chunks/histogram-model.js +7 -7
  106. package/dist/chunks/index.js +1918 -1773
  107. package/dist/chunks/index2.js +60 -60
  108. package/dist/chunks/index3.js +10 -10
  109. package/dist/chunks/interfaces.js +5 -5
  110. package/dist/chunks/line-chart-model.js +7 -7
  111. package/dist/chunks/model-setter.js +3 -3
  112. package/dist/chunks/model-with-guides.js +7 -7
  113. package/dist/chunks/model-with-tooltips.js +21 -21
  114. package/dist/chunks/model-with-y-guides.js +9 -9
  115. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  116. package/dist/chunks/pie-chart-data.js +16 -16
  117. package/dist/chunks/pie-chart-model.js +12 -12
  118. package/dist/chunks/radar-chart-model.js +5 -5
  119. package/dist/chunks/rotated-state.js +1 -1
  120. package/dist/chunks/scatterplot-model.js +63 -63
  121. package/dist/chunks/serial-chart-data.js +208 -208
  122. package/dist/chunks/serial-chart-model.js +19 -19
  123. package/dist/chunks/series-length.js +1 -1
  124. package/dist/chunks/series.js +1 -1
  125. package/dist/chunks/{action-bar-utils.js → type-guards2.js} +33 -25
  126. package/dist/chunks/utils.js +35 -35
  127. package/dist/chunks/utils2.js +5 -5
  128. package/dist/chunks/web-component-utils.js +12 -12
  129. package/dist/components/arcgis-chart/customElement.d.ts +93 -55
  130. package/dist/components/arcgis-chart/customElement.js +4294 -4271
  131. package/dist/components/arcgis-charts-action-bar/customElement.js +35 -38
  132. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  133. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
  134. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +12 -12
  135. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  137. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
  139. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +5 -5
  140. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-create-flow/customElement.js +3 -3
  142. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  144. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
  147. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
  148. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  149. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -2
  150. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  151. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
  153. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +10 -10
  154. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -4
  157. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
  159. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  160. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  161. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
  162. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  163. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  165. package/dist/docs/api.json +1 -1
  166. package/dist/docs/docs.json +1 -1
  167. package/dist/docs/vscode.html-custom-data.json +1 -1
  168. package/dist/docs/web-types.json +1 -1
  169. package/dist/index.js +395 -392
  170. package/dist/interfaces.d.ts +2 -1
  171. package/dist/json-schema/index.d.ts +79 -2
  172. package/dist/spec/rest-js-types.d.ts +15 -0
  173. package/dist/spec/web-chart.d.ts +2 -2
  174. package/dist/utils/chart-config/validator/index.d.ts +2 -0
  175. package/dist/utils/data/interfaces.d.ts +2 -0
  176. package/dist/utils/layer/index.d.ts +7 -12
  177. package/dist/utils/layer/utils/index.d.ts +1 -1
  178. package/package.json +3 -3
  179. package/dist/cdn/LNB6B5WL.js +0 -2
  180. package/dist/cdn/SL2YX32M.js +0 -2
  181. package/dist/cdn/TQNTRGWQ.js +0 -99
  182. package/dist/cdn/UE5DMUQ3.js +0 -2
  183. package/dist/cdn/YPCD27EC.js +0 -2
@@ -2,9 +2,9 @@
2
2
  import { substitute as w } from "@arcgis/core/intl.js";
3
3
  import { cloneDeep as ie, isEmpty as Ae, memoize as ve } from "lodash-es";
4
4
  import "@arcgis/toolkit/type";
5
- import { w as fe, u as v, r as I, k as Ie, n as L, m as H, p as Le, t as qe, s as G } from "./series-types.js";
5
+ import { w as fe, u as v, r as I, k as Ie, n as L, m as U, p as Le, t as qe, s as G } from "./series-types.js";
6
6
  import { i as Ve, R as Ne } from "./rest-js-object-literals.js";
7
- import { d7 as Z, d9 as Oe, cZ as ke, dT as De, a1 as Re, ap as W, e5 as we, e8 as Pe, R as Me, C as D, c6 as se, d$ as Ee, h as $e, c5 as We, a8 as Xe, bq as Ye, cU as Ue, am as He, l as je, dD as Ke, $ as V, c$ as Qe, e9 as ze, _ as _e, ea as oe, dB as Ge, eb as Ze, dx as Je, B as et, cV as K, bm as R, e6 as tt, e3 as j, bI as X, bp as Se, ax as it, e4 as ae, cE as st, x as J, d2 as at, da as ue, cH as U, aZ as rt, b8 as lt, bu as nt, aB as ot, cQ as ce, aG as de, aL as ye, b0 as ut } from "./index.js";
7
+ import { d9 as J, db as Oe, c$ as ke, dW as De, a1 as Re, aq as W, e8 as we, eb as Pe, R as Me, C as D, c7 as se, e2 as Ee, h as $e, c6 as We, a8 as Xe, br as Ye, cW as He, an as Ue, l as je, dG as Ke, $ as V, d1 as Qe, ec as _e, _ as ze, ed as oe, dE as Ge, ee as Je, dA as Ze, B as et, cX as K, bn as R, e9 as tt, e6 as j, bJ as X, bq as Se, ay as it, e7 as ae, cG as st, x as Z, d4 as at, dc as ue, cJ as H, a_ as rt, b9 as nt, bv as lt, aC as ot, cS as ce, aH as de, aM as ye, b1 as ut } from "./index.js";
8
8
  import "@arcgis/toolkit/intl";
9
9
  import "luxon";
10
10
  import "@arcgis/core/Graphic.js";
@@ -30,12 +30,12 @@ import "@arcgis/core/applications/Components/imageryUtils.js";
30
30
  import "@arcgis/core/geometry/Extent.js";
31
31
  import "@arcgis/core/geometry/Point.js";
32
32
  import "@arcgis/toolkit/dom";
33
- import { s as q, u as P, g as re, d as he, e as yt, f as mt, j as pe } from "./utils.js";
33
+ import { s as q, u as P, g as re, d as he, e as yt, f as mt, j as ge } from "./utils.js";
34
34
  import { S as ee } from "./common.js";
35
35
  import "@esri/arcgis-html-sanitizer";
36
- import { g as M, c as Te, a as Q, e as ge, f as pt } from "./data.js";
37
- import { a as gt } from "./index2.js";
38
- import { g as le } from "./utils2.js";
36
+ import { g as M, c as Te, a as Q, e as pe, f as gt } from "./data.js";
37
+ import { a as pt } from "./index2.js";
38
+ import { g as ne } from "./utils2.js";
39
39
  import { b as ft, a as St } from "./series-length.js";
40
40
  function Ti(t, e) {
41
41
  let i;
@@ -58,30 +58,30 @@ function Ci(t, e) {
58
58
  }
59
59
  async function bi(t, e) {
60
60
  let i = !1;
61
- return Z(e) || Oe(t) ? t && Z(e) && (i = await ke(t, e)) : i = !0, i;
61
+ return J(e) || Oe(t) ? t && J(e) && (i = await ke(t, e)) : i = !0, i;
62
62
  }
63
63
  async function ht(t) {
64
64
  const { queryObject: e, chartConfig: i, options: r, splitByField: a } = t;
65
- let s = [], l;
66
- const n = ie(i), u = n.series[0], c = je({
65
+ let s = [], n;
66
+ const l = ie(i), u = l.series[0], c = je({
67
67
  queryObject: e,
68
- chartConfig: n,
68
+ chartConfig: l,
69
69
  runtimeDataFilters: r?.runtimeDataFilters,
70
70
  ignoreViewExtent: r?.ignoreViewExtent
71
71
  });
72
72
  if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Ke.outStatistics.outStatisticFieldName), V(u) && Qe({
73
- xAxisValueFormatType: ze(n),
73
+ xAxisValueFormatType: _e(l),
74
74
  setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
75
75
  seriesConfig: u,
76
76
  queryObject: e
77
- }) && _e(e)) {
77
+ }) && ze(e)) {
78
78
  const { temporalBinning: S, x: o } = u, { uniqueQuery: y } = oe({
79
- chartConfig: n,
79
+ chartConfig: l,
80
80
  queryConfig: c,
81
81
  queryObject: e,
82
82
  options: r
83
83
  });
84
- l = await Ge({
84
+ n = await Ge({
85
85
  queryObject: e,
86
86
  dateField: o,
87
87
  splitByField: a,
@@ -89,37 +89,37 @@ async function ht(t) {
89
89
  temporalBinning: S
90
90
  }), s = Array.from(
91
91
  new Set(
92
- l.flatMap((m) => {
93
- const { stackedAttributes: g } = m;
92
+ n.flatMap((m) => {
93
+ const { stackedAttributes: p } = m;
94
94
  let d = [];
95
- return g && (d = g.map((f) => f[a]).filter((f) => f !== void 0)), d;
95
+ return p && (d = p.map((f) => f[a]).filter((f) => f !== void 0)), d;
96
96
  })
97
97
  ).values()
98
98
  );
99
99
  } else {
100
100
  const { uniqueQuery: S } = oe({
101
- chartConfig: n,
101
+ chartConfig: l,
102
102
  queryObject: e,
103
103
  queryConfig: c,
104
104
  options: r
105
- }), { elementCount: o } = await Ze({
106
- chartConfig: n,
105
+ }), { elementCount: o } = await Je({
106
+ chartConfig: l,
107
107
  queryObject: e,
108
108
  queryConfig: c,
109
109
  behaviorAfterLimit: r?.chartLimits?.behaviorAfterLimit,
110
110
  numberMaxOfFeaturesToFetch: S.num
111
111
  });
112
- l = await Je({
112
+ n = await Ze({
113
113
  queryObject: e,
114
114
  queryConfig: S,
115
115
  featureCount: o
116
116
  }), s = Array.from(
117
117
  new Set(
118
- l.map((y) => y.attributes[a]).filter((y) => y !== void 0)
118
+ n.map((y) => y.attributes[a]).filter((y) => y !== void 0)
119
119
  ).values()
120
120
  );
121
121
  }
122
- return { allValues: s, preFetchedQueryResponse: l };
122
+ return { allValues: s, preFetchedQueryResponse: n };
123
123
  }
124
124
  function Tt(t, e) {
125
125
  const i = /* @__PURE__ */ new Map();
@@ -144,11 +144,11 @@ function Tt(t, e) {
144
144
  function xt(t) {
145
145
  const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
146
146
  return Array.from(i.keys()).forEach((s) => {
147
- const l = i.get(s) ?? [];
148
- let n = [];
149
- r ? n = e : e.forEach((u) => {
150
- l.includes(u) || n.push(u);
151
- }), a.set(s, n);
147
+ const n = i.get(s) ?? [];
148
+ let l = [];
149
+ r ? l = e : e.forEach((u) => {
150
+ n.includes(u) || l.push(u);
151
+ }), a.set(s, l);
152
152
  }), a;
153
153
  }
154
154
  function Bt(t) {
@@ -160,86 +160,86 @@ function Bt(t) {
160
160
  );
161
161
  if (s.query) {
162
162
  if (s.id = `${i}-${e.series.length}-${Date.now()}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
163
- const n = s.id;
164
- s.query.outStatistics[0].outStatisticFieldName = n, "y" in s && (s.y = n);
163
+ const l = s.id;
164
+ s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
165
165
  }
166
- const l = typeof i == "number" || i === null ? i : `'${i}'`;
167
- s.query.where = `${r}=${l}`;
166
+ const n = typeof i == "number" || i === null ? i : `'${i}'`;
167
+ s.query.where = `${r}=${n}`;
168
168
  }
169
169
  return s;
170
170
  }
171
171
  async function Ct(t) {
172
172
  const { updateSplitBySeries: e, config: i, options: r, queryObject: a } = t, { seriesTemplate: s } = e ?? {};
173
- let l;
174
- if (a && !Z(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || s !== void 0) && e.addMissingSeries) {
175
- const n = i.series.length === 0;
173
+ let n;
174
+ if (a && !J(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || s !== void 0) && e.addMissingSeries) {
175
+ const l = i.series.length === 0;
176
176
  i.series.length === 0 && s !== void 0 && i.series.push(s);
177
177
  const u = W(i.series);
178
178
  if (u === D.BoxPlotMonoFieldAndSplitBy || u === D.BoxPlotMultiFieldsAndSplitBy || u === D.BoxPlotMonoFieldAndCategoryAndSplitBy || u === D.BarAndLineSplitBy || u === D.BarAndLineSplitByNoAggregation) {
179
- const c = We(i.series[0]?.query?.where), S = Xe(a), o = Ye(c, S), y = o ? Ue(o) : !1, m = await ht({
179
+ const c = We(i.series[0]?.query?.where), S = Xe(a), o = Ye(c, S), y = o ? He(o) : !1, m = await ht({
180
180
  queryObject: a,
181
181
  chartConfig: i,
182
182
  splitByField: c,
183
183
  options: r
184
- }), { allValues: g } = m;
185
- if ({ preFetchedQueryResponse: l } = m, g.length > 0) {
184
+ }), { allValues: p } = m;
185
+ if ({ preFetchedQueryResponse: n } = m, p.length > 0) {
186
186
  const d = Tt(i, y), f = xt({
187
- allValues: g,
187
+ allValues: p,
188
188
  configUniqueValuesPerSeriesType: d,
189
- initialConfigWasEmpty: n
189
+ initialConfigWasEmpty: l
190
190
  });
191
191
  Array.from(f.keys()).forEach((b) => {
192
- (f.get(b) ?? []).forEach((p) => {
192
+ (f.get(b) ?? []).forEach((g) => {
193
193
  i.series.push(
194
194
  Bt({
195
195
  chartConfig: i,
196
196
  seriesTemplate: s,
197
- missingValue: p,
197
+ missingValue: g,
198
198
  splitByField: c
199
199
  })
200
200
  );
201
- }), n && i.series.shift();
201
+ }), l && i.series.shift();
202
202
  });
203
203
  }
204
204
  }
205
205
  }
206
- return l;
206
+ return n;
207
207
  }
208
208
  function bt(t, e) {
209
209
  e && !Fe(e) && (e = $e({ chartConfig: e, queryObject: t }));
210
210
  }
211
211
  async function Ai(t) {
212
- const { configToAlter: e, layer: i, addMissingSeries: r, updateSplitBySeries: a, chartContainer: s, queryObject: l, options: n } = t;
212
+ const { configToAlter: e, layer: i, addMissingSeries: r, updateSplitBySeries: a, chartContainer: s, queryObject: n, options: l } = t;
213
213
  let u = e, c;
214
- return u && (bt(i, u), u = await gt(u, i), r && (c = await Ct({
214
+ return u && (bt(i, u), u = await pt(u, i), r && (c = await Ct({
215
215
  updateSplitBySeries: a,
216
216
  config: u,
217
- options: n,
218
- queryObject: l
217
+ options: l,
218
+ queryObject: n
219
219
  })), u = De(u, s)), { alteredConfig: u, preFetchedQueryResponse: c };
220
220
  }
221
221
  function At(t, e) {
222
222
  let i = !1;
223
223
  if (e !== void 0) {
224
- const r = He({ key: et.Average, splitBy: e });
224
+ const r = Ue({ key: et.Average, splitBy: e });
225
225
  i = Number.isFinite(t[r]);
226
226
  }
227
227
  return i;
228
228
  }
229
229
  function vi(t) {
230
230
  const { data: e, config: i, showEmptySeries: r } = t, a = i.series.length, s = ie(i);
231
- let l = !1;
231
+ let n = !1;
232
232
  if (!r && a > 1 && e) {
233
- const n = Re(e), u = fe(i?.series), c = W(i?.series), S = /* @__PURE__ */ new Set();
233
+ const l = Re(e), u = fe(i?.series), c = W(i?.series), S = /* @__PURE__ */ new Set();
234
234
  switch (u) {
235
235
  case v.ComboLineAndBarSeries:
236
236
  case v.BarSeries:
237
237
  case v.RadarSeries:
238
238
  case v.LineSeries: {
239
239
  s.series.forEach((y) => {
240
- if (Array.isArray(n)) {
240
+ if (Array.isArray(l)) {
241
241
  let m = "";
242
- "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, c === D.BarAndLineSplitByNoAggregation && (m = `${m}_${se({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
242
+ "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, c === D.BarAndLineSplitByNoAggregation && (m = `${m}_${se({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
243
243
  (d) => Ee({ dataItem: d, x: y.x, y: m })
244
244
  ) && S.add(y));
245
245
  }
@@ -250,14 +250,14 @@ function vi(t) {
250
250
  if (we(i)) {
251
251
  const y = Pe(i);
252
252
  i.series.forEach((m) => {
253
- let g, d;
254
- m.type === v.BoxPlotSeries ? (g = e.dataItems, d = g?.some(
253
+ let p, d;
254
+ m.type === v.BoxPlotSeries ? (p = e.dataItems, d = p?.some(
255
255
  (f) => Me({
256
256
  dataItem: f,
257
257
  splitBy: m.query?.where,
258
258
  showOutliers: y
259
259
  })
260
- )) : m.type === v.LineSeries && (g = e.meanLines, d = g?.some(
260
+ )) : m.type === v.LineSeries && (p = e.meanLines, d = p?.some(
261
261
  (f) => At(f, m.query?.where)
262
262
  )), d && S.add(m);
263
263
  });
@@ -266,9 +266,9 @@ function vi(t) {
266
266
  }
267
267
  }
268
268
  const o = Array.from(S.values());
269
- l = o.length > 0 && o.length < a, l && (s.series = o);
269
+ n = o.length > 0 && o.length < a, n && (s.series = o);
270
270
  }
271
- return { seriesFilteredOut: l, filteredConfig: s };
271
+ return { seriesFilteredOut: n, filteredConfig: s };
272
272
  }
273
273
  const Ii = (t) => {
274
274
  let e;
@@ -321,8 +321,8 @@ const Ii = (t) => {
321
321
  const i = t.series[0];
322
322
  i.gradientRules = e;
323
323
  }, $i = (t) => t.series[0].gradientRules, Wi = (t) => {
324
- const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s = le(1, i), l = qt(i), n = K(i), u = i.series[0];
325
- if (typeof e == "string" && l !== e && u && (u.y = e, Ft(i), l === s || n)) {
324
+ const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s = ne(1, i), n = qt(i), l = K(i), u = i.series[0];
325
+ if (typeof e == "string" && n !== e && u && (u.y = e, Ft(i), n === s || l)) {
326
326
  const c = R(a, e);
327
327
  P(i, 1, c);
328
328
  }
@@ -332,30 +332,30 @@ const Ii = (t) => {
332
332
  const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
333
333
  P(i, 0, s);
334
334
  }
335
- }, Yi = (t) => t.series[0].xTemporalBinning, Ui = (t) => {
335
+ }, Yi = (t) => t.series[0].xTemporalBinning, Hi = (t) => {
336
336
  const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
337
337
  if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
338
338
  const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
339
339
  P(i, 1, s);
340
340
  }
341
- }, Hi = (t) => t.series[0].yTemporalBinning, Vt = (t, e) => {
341
+ }, Ui = (t) => t.series[0].yTemporalBinning, Vt = (t, e) => {
342
342
  e.orderOptions ??= {};
343
- const i = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = te(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = te(e)[1], l = {
343
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = te(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = te(e)[1], n = {
344
344
  ...e.orderOptions.data ?? {},
345
345
  orderType: L.MultiAxes
346
346
  };
347
- r === ee.customSort && i === L.Category && (l.orderByX = [...t]), s === ee.customSort && a === L.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
347
+ r === ee.customSort && i === L.Category && (n.orderByX = [...t]), s === ee.customSort && a === L.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
348
348
  }, ji = (t, e) => {
349
349
  const i = e.series[0];
350
350
  i.gridLine && (i.gridLine.width = t);
351
351
  }, Ki = (t) => t.series[0].gridLine?.width, Qi = (t, e) => {
352
352
  const i = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
353
353
  i.gridLine && r && (i.gridLine.color = t);
354
- }, zi = (t) => t.series[0].gridLine?.color, _i = (t, e) => {
354
+ }, _i = (t) => t.series[0].gridLine?.color, zi = (t, e) => {
355
355
  const i = e.legend;
356
356
  i && (i.position = t);
357
- }, Gi = (t) => t.legend?.position ?? Ie.Bottom, Zi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ji = (t) => {
358
- const { field: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0].query?.outStatistics?.[0], l = _(i, r, a);
357
+ }, Gi = (t) => t.legend?.position ?? Ie.Bottom, Ji = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Zi = (t) => {
358
+ const { field: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0].query?.outStatistics?.[0], n = z(i, r, a);
359
359
  s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
360
360
  outStatistics: [
361
361
  {
@@ -364,17 +364,17 @@ const Ii = (t) => {
364
364
  statisticType: I.Count
365
365
  }
366
366
  ]
367
- }, l && i.title && (i.title.content.text = Y(i, r, a));
367
+ }, n && i.title && (i.title.content.text = Y(i, r, a));
368
368
  }, es = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ts = (t) => {
369
- const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0]?.query?.outStatistics?.[0], l = _(i, r, a);
370
- s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && Nt(H.Zero, i), l && i.title && (i.title.content.text = Y(i, r, a));
369
+ const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0]?.query?.outStatistics?.[0], n = z(i, r, a);
370
+ s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && Nt(U.Zero, i), n && i.title && (i.title.content.text = Y(i, r, a));
371
371
  }, is = (t) => t.nullPolicy, Nt = (t, e) => {
372
372
  e.nullPolicy = t;
373
373
  }, ss = (t) => t.series[0].emptyCells, as = (t, e) => {
374
374
  e.series[0].emptyCells = t;
375
- }, rs = (t) => t.series[0].emptyCells?.text, ls = (t, e) => {
375
+ }, rs = (t) => t.series[0].emptyCells?.text, ns = (t, e) => {
376
376
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
377
- }, ns = (t) => t.includeLeapDay, os = (t, e) => {
377
+ }, ls = (t) => t.includeLeapDay, os = (t, e) => {
378
378
  e.includeLeapDay = t;
379
379
  }, us = (t) => t.series[0].emptyCells?.symbol, cs = (t, e) => {
380
380
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
@@ -388,12 +388,12 @@ function ys(t, e) {
388
388
  function ms(t) {
389
389
  return t.series[0].classBreaksRules?.breaksCount ?? j.classBreaks.breaksCount;
390
390
  }
391
- function ps(t, e) {
391
+ function gs(t, e) {
392
392
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? j.classBreaks.breaksCount : e.series[0].classBreaksRules = {
393
393
  breaksCount: t ?? j.classBreaks.breaksCount
394
394
  };
395
395
  }
396
- function gs(t) {
396
+ function ps(t) {
397
397
  return t.series[0].classBreaksRules?.classificationMethod;
398
398
  }
399
399
  function fs(t, e) {
@@ -408,7 +408,7 @@ function Fs(t) {
408
408
  return t.firstDayOfWeek;
409
409
  }
410
410
  function E(t) {
411
- const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: l } = t, n = X(s?.layer).idField;
411
+ const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, l = X(s?.layer).idField;
412
412
  let u;
413
413
  const c = a.series[e ?? 0];
414
414
  let S = !1, o = !1, y = !1;
@@ -418,19 +418,19 @@ function E(t) {
418
418
  } else
419
419
  S = x(c), o = B(c), y = me(c);
420
420
  S ? u = rt({
421
- commonStrings: l,
421
+ commonStrings: n,
422
422
  seriesIndex: e,
423
- objectIDField: n
424
- }) : o ? u = lt({
425
- commonStrings: l,
423
+ objectIDField: l
424
+ }) : o ? u = nt({
425
+ commonStrings: n,
426
426
  seriesIndex: e,
427
- objectIDField: n
428
- }) : y ? u = nt(l, n) : u = ot({
427
+ objectIDField: l
428
+ }) : y ? u = lt(n, l) : u = ot({
429
429
  seriesIndex: e,
430
- objectIDField: n,
431
- commonStrings: l
430
+ objectIDField: l,
431
+ commonStrings: n
432
432
  });
433
- const m = a.series[0]?.dataLabels, g = {
433
+ const m = a.series[0]?.dataLabels, p = {
434
434
  ...u,
435
435
  x: i,
436
436
  y: "",
@@ -441,36 +441,36 @@ function E(t) {
441
441
  visible: m?.visible ?? !1
442
442
  }
443
443
  };
444
- if (g.query = {
444
+ if (p.query = {
445
445
  groupByFieldsForStatistics: [i]
446
- }, r !== I.NoAggregation && n !== void 0) {
447
- const d = `${r}_${n}_0`.toUpperCase();
448
- g.y = d, g.query.outStatistics = [
446
+ }, r !== I.NoAggregation && l !== void 0) {
447
+ const d = `${r}_${l}_0`.toUpperCase();
448
+ p.y = d, p.query.outStatistics = [
449
449
  {
450
450
  statisticType: r,
451
- onStatisticField: n,
451
+ onStatisticField: l,
452
452
  outStatisticFieldName: d
453
453
  }
454
454
  ];
455
455
  }
456
- if (V(a.series[0]) && V(g)) {
456
+ if (V(a.series[0]) && V(p)) {
457
457
  let d;
458
458
  if (a?.series?.[0] !== void 0 && (d = W(a.series)), d !== D.BarAndLineNoAggregation && d !== D.BarAndLineSplitByNoAggregation) {
459
459
  let f = vt(a);
460
- f === G.Quarter && (f = G.Month), g.temporalBinning = {
460
+ f === G.Quarter && (f = G.Month), p.temporalBinning = {
461
461
  ...a.series[0]?.temporalBinning,
462
462
  unit: f
463
463
  };
464
464
  }
465
465
  }
466
- return ie(g);
466
+ return ie(p);
467
467
  }
468
468
  function Y(t, e, i) {
469
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = X(e.layer), l = M(t), n = z(t), u = Be(t), c = ne(t), S = s && (n.length === 0 || n.includes(a)), o = it(u, i), y = S ? "" : n.map((p) => R(r ?? [], p)).join(", "), m = R(r ?? [], l), g = R(r ?? [], c), d = t.series.some((p) => N(p)), f = d ? "category" : "xAxisField", b = m;
469
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = X(e.layer), n = M(t), l = _(t), u = Be(t), c = le(t), S = s && (l.length === 0 || l.includes(a)), o = it(u, i), y = S ? "" : l.map((g) => R(r ?? [], g)).join(", "), m = R(r ?? [], n), p = R(r ?? [], c), d = t.series.some((g) => N(g)), f = d ? "category" : "xAxisField", b = m;
470
470
  let F = "";
471
471
  if (Te({
472
- fieldName: l,
473
- numericFields: n,
472
+ fieldName: n,
473
+ numericFields: l,
474
474
  fieldList: r
475
475
  }))
476
476
  F = w(i.titleLabels.aggrTypeOfAggrFields, {
@@ -478,47 +478,47 @@ function Y(t, e, i) {
478
478
  aggregationFields: y
479
479
  });
480
480
  else if (u === I.NoAggregation) {
481
- const p = S ? a : y;
481
+ const g = S ? a : y;
482
482
  if (c === "") {
483
483
  const k = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
484
484
  F = w(i.titleLabels[k], {
485
- aggregationType: p,
485
+ aggregationType: g,
486
486
  [f]: b
487
487
  });
488
488
  } else {
489
489
  const k = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
490
490
  F = w(i.titleLabels[k], {
491
- aggregationType: p,
491
+ aggregationType: g,
492
492
  [f]: b,
493
- splitByField: g
493
+ splitByField: p
494
494
  });
495
495
  }
496
496
  } else if (u === I.Count)
497
497
  if (c === "") {
498
- const p = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
499
- F = w(i.titleLabels[p], {
498
+ const g = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
499
+ F = w(i.titleLabels[g], {
500
500
  aggregationType: o,
501
501
  [f]: b
502
502
  });
503
503
  } else {
504
- const p = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
505
- F = w(i.titleLabels[p], {
504
+ const g = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
505
+ F = w(i.titleLabels[g], {
506
506
  aggregationType: o,
507
507
  [f]: b,
508
- splitByField: g
508
+ splitByField: p
509
509
  });
510
510
  }
511
511
  else if (c !== "") {
512
- const p = d ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
513
- F = w(i.titleLabels[p], {
512
+ const g = d ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
513
+ F = w(i.titleLabels[g], {
514
514
  aggregationType: o,
515
515
  aggregationField: y,
516
516
  [f]: b,
517
- splitByField: g
517
+ splitByField: p
518
518
  });
519
- } else if (n.length > 0) {
520
- const p = d ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
521
- F = w(i.titleLabels[p], {
519
+ } else if (l.length > 0) {
520
+ const g = d ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
521
+ F = w(i.titleLabels[g], {
522
522
  aggregationType: o,
523
523
  aggregationFields: y,
524
524
  [f]: b
@@ -530,15 +530,15 @@ const xe = (t) => se({
530
530
  where: t.query?.where,
531
531
  normalize: !1,
532
532
  escape: !1
533
- }) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, ne = ve(
533
+ }) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, le = ve(
534
534
  (t) => {
535
535
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
536
536
  return st(t?.series?.[0]?.query?.where) ? "" : e;
537
537
  },
538
538
  (t) => t?.series?.[0]?.query?.where
539
- ), z = (t) => {
539
+ ), _ = (t) => {
540
540
  let e = [];
541
- if (ne(t) === "")
541
+ if (le(t) === "")
542
542
  e = t?.series.map((i) => {
543
543
  const r = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
544
544
  return r?.length > 0 ? r : i.y;
@@ -555,26 +555,26 @@ function Ot(t) {
555
555
  i === I.Count ? s = !0 : i === I.NoAggregation && (s = e.every((u) => {
556
556
  const c = a.layerFieldsInfo.find((S) => S.name === u);
557
557
  return c !== void 0 ? ce(c) : !1;
558
- })), pe(r, 1, s);
559
- const l = r.series.some((u) => x(u)), n = r.series.some((u) => B(u));
560
- if (l || n) {
558
+ })), ge(r, 1, s);
559
+ const n = r.series.some((u) => x(u)), l = r.series.some((u) => B(u));
560
+ if (n || l) {
561
561
  const u = M(r), c = a.layerFieldsInfo.find((o) => o.name === u), S = c !== void 0 && ce(c);
562
- pe(r, 0, S);
562
+ ge(r, 0, S);
563
563
  }
564
564
  }
565
565
  const te = (t) => {
566
566
  let e;
567
567
  if (ae(t)) {
568
568
  const i = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
569
- e = [ge(i, a), ge(r, s)];
569
+ e = [pe(i, a), pe(r, s)];
570
570
  } else {
571
571
  const i = t.orderOptions?.data?.orderType ?? L.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : Le.Ascending;
572
- e = [pt(r, i)];
572
+ e = [gt(r, i)];
573
573
  }
574
574
  return e;
575
575
  };
576
576
  function kt(t) {
577
- const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: l } = t, { layerFieldsInfo: n } = s;
577
+ const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
578
578
  let u = !1;
579
579
  const c = E({
580
580
  config: a,
@@ -582,25 +582,25 @@ function kt(t) {
582
582
  aggregationType: r,
583
583
  layerInfo: s,
584
584
  seriesIndex: 0,
585
- commonStrings: l
585
+ commonStrings: n
586
586
  }), S = Q({
587
587
  config: a,
588
588
  xAxisField: e,
589
589
  numericFields: i,
590
590
  aggregationType: r,
591
591
  layer: s.layer,
592
- fieldList: n
592
+ fieldList: l
593
593
  }).name, o = {
594
594
  ...c,
595
595
  id: `series_${Date.now()}`,
596
- name: l.axisLabels.values,
597
- x: J,
596
+ name: n.axisLabels.values,
597
+ x: Z,
598
598
  y: S
599
599
  }, y = [];
600
- for (const g of i)
600
+ for (const p of i)
601
601
  y.push({
602
- onStatisticField: g,
603
- outStatisticFieldName: `${g}_0`.toUpperCase(),
602
+ onStatisticField: p,
603
+ outStatisticFieldName: `${p}_0`.toUpperCase(),
604
604
  statisticType: r
605
605
  });
606
606
  o.query = { outStatistics: y };
@@ -608,7 +608,7 @@ function kt(t) {
608
608
  return m !== void 0 && (o.id = m.id, (x(o) && x(m) || B(o) && B(m)) && $(o, m), a.colorMatch || (N(m) && N(o) ? o.fillSymbol = m.fillSymbol : (x(o) && x(m) || B(o) && B(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), u = !0), o.id = m.id, m.name !== c.name && (o.name = m.name)), a.series.length === 1 && ((x(o) || B(o)) && $(o, a.series[0]), a.colorMatch || (N(o) ? o.fillSymbol = a.series[0].fillSymbol : (x(o) || B(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), u = !0)), a.colorMatch = !u, [o];
609
609
  }
610
610
  function Ce(t) {
611
- const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: l } = t, { layerFieldsInfo: n } = s, u = X(s.layer).idField, c = [];
611
+ const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, u = X(s.layer).idField, c = [];
612
612
  let S = !1;
613
613
  for (let d = 0; d < i.length; d += 1) {
614
614
  const f = E({
@@ -617,7 +617,7 @@ function Ce(t) {
617
617
  aggregationType: r,
618
618
  layerInfo: s,
619
619
  seriesIndex: d,
620
- commonStrings: l
620
+ commonStrings: n
621
621
  }), b = Q({
622
622
  config: a,
623
623
  xAxisField: e,
@@ -625,61 +625,61 @@ function Ce(t) {
625
625
  aggregationType: r,
626
626
  layer: s.layer,
627
627
  numericFieldIndex: d,
628
- fieldList: n
628
+ fieldList: l
629
629
  }).name, F = i[d];
630
- let p = {
630
+ let g = {
631
631
  ...f,
632
632
  query: {
633
633
  ...f.query
634
634
  }
635
635
  };
636
- i && F !== u && (p = {
637
- ...p,
636
+ i && F !== u && (g = {
637
+ ...g,
638
638
  id: F,
639
- name: R(n, F)
639
+ name: R(l, F)
640
640
  });
641
641
  let k = F;
642
- p.query !== void 0 && (r !== I.NoAggregation ? (k = b, p.query.outStatistics = [
642
+ g.query !== void 0 && (r !== I.NoAggregation ? (k = b, g.query.outStatistics = [
643
643
  {
644
644
  ...f.query?.outStatistics?.[0] ?? {},
645
645
  onStatisticField: F,
646
646
  outStatisticFieldName: b,
647
647
  statisticType: r
648
648
  }
649
- ]) : delete p.query.outStatistics), p.y = k;
649
+ ]) : delete g.query.outStatistics), g.y = k;
650
650
  const T = a.series.find(
651
651
  (O) => O.query?.outStatistics?.[0]?.onStatisticField === F && O.query.where === void 0 || O.query?.outStatistics === void 0 && (O.y === F || O.x === F)
652
652
  );
653
653
  if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
654
- (x(p) && x(T) || B(p) && B(T)) && $(p, T), a.colorMatch || (N(p) && N(T) ? p.fillSymbol = T.fillSymbol : (x(p) && x(T) || B(p) && B(T)) && (p.lineSymbol = T.lineSymbol, p.markerSymbol = T.markerSymbol), S = !0);
654
+ (x(g) && x(T) || B(g) && B(T)) && $(g, T), a.colorMatch || (N(g) && N(T) ? g.fillSymbol = T.fillSymbol : (x(g) && x(T) || B(g) && B(T)) && (g.lineSymbol = T.lineSymbol, g.markerSymbol = T.markerSymbol), S = !0);
655
655
  const O = E({
656
656
  config: a,
657
657
  xAxisField: e,
658
658
  aggregationType: r,
659
659
  layerInfo: s,
660
660
  seriesIndex: d,
661
- commonStrings: l
661
+ commonStrings: n
662
662
  });
663
- p.id = T.id, T.id !== O.id && T.name !== O.name && (p.id = T.id, p.name = T.name), p.assignToSecondValueAxis = T.assignToSecondValueAxis, p.type === v.HeatSeries && T.type === v.HeatSeries && (p.y = T.y, p.heatRulesType = T.heatRulesType);
663
+ g.id = T.id, T.id !== O.id && T.name !== O.name && (g.id = T.id, g.name = T.name), g.assignToSecondValueAxis = T.assignToSecondValueAxis, g.type === v.HeatSeries && T.type === v.HeatSeries && (g.y = T.y, g.heatRulesType = T.heatRulesType);
664
664
  }
665
- c.push(p);
665
+ c.push(g);
666
666
  }
667
667
  const o = c.filter((d) => N(d)), y = c.filter(
668
668
  (d) => x(d) || B(d)
669
- ), m = a.series.filter((d) => N(d)), g = a.series.filter(
669
+ ), m = a.series.filter((d) => N(d)), p = a.series.filter(
670
670
  (d) => x(d) || B(d)
671
671
  );
672
- return m.length === 1 && o.length === 1 && !a.colorMatch && (N(m[0]) && N(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), g.length === 1 && y.length === 1 && ((x(g[0]) && x(y[0]) || B(g[0]) && B(y[0])) && $(y[0], g[0]), a.colorMatch || ((x(g[0]) && x(y[0]) || B(g[0]) && B(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), S = !0)), a.colorMatch = !S, c;
672
+ return m.length === 1 && o.length === 1 && !a.colorMatch && (N(m[0]) && N(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), p.length === 1 && y.length === 1 && ((x(p[0]) && x(y[0]) || B(p[0]) && B(y[0])) && $(y[0], p[0]), a.colorMatch || ((x(p[0]) && x(y[0]) || B(p[0]) && B(y[0])) && (y[0].lineSymbol = p[0].lineSymbol, y[0].markerSymbol = p[0].markerSymbol), S = !0)), a.colorMatch = !S, c;
673
673
  }
674
674
  function hs(t) {
675
- const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: s, layer: l } = r, n = M(i), u = z(i), c = _(i, r, a), S = be(i, r, a);
675
+ const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: s, layer: n } = r, l = M(i), u = _(i), c = z(i, r, a), S = be(i, r, a);
676
676
  if (i.series.forEach((o, y) => {
677
677
  const m = Q({
678
678
  config: i,
679
- xAxisField: n,
679
+ xAxisField: l,
680
680
  numericFields: u,
681
681
  aggregationType: e,
682
- layer: l,
682
+ layer: n,
683
683
  seriesIndex: y,
684
684
  numericFieldIndex: y,
685
685
  fieldList: s
@@ -713,21 +713,21 @@ function Dt(t) {
713
713
  numericFields: r,
714
714
  aggregationType: a,
715
715
  config: s,
716
- layerInfo: l,
717
- commonStrings: n,
716
+ layerInfo: n,
717
+ commonStrings: l,
718
718
  splitByFieldInfos: u
719
- } = t, { layer: c, layerFieldsInfo: S } = l, { categoriesArray: o, splitByFieldType: y } = u, m = r.length === 0 ? X(c).idField : r[0];
720
- let g = [], d = !1;
719
+ } = t, { layer: c, layerFieldsInfo: S } = n, { categoriesArray: o, splitByFieldType: y } = u, m = r.length === 0 ? X(c).idField : r[0];
720
+ let p = [], d = !1;
721
721
  if (o.length === 0) {
722
- g = Ce({
722
+ p = Ce({
723
723
  xAxisField: i,
724
724
  numericFields: r,
725
725
  aggregationType: a,
726
726
  config: s,
727
- layerInfo: l,
728
- commonStrings: n
727
+ layerInfo: n,
728
+ commonStrings: l
729
729
  });
730
- for (const f of g)
730
+ for (const f of p)
731
731
  f.query && (f.query.where = `${e}=''`);
732
732
  } else
733
733
  for (let f = 0; f < o.length; f += 1) {
@@ -736,32 +736,32 @@ function Dt(t) {
736
736
  xAxisField: i,
737
737
  numericFields: r,
738
738
  aggregationType: a,
739
- layer: l.layer,
739
+ layer: n.layer,
740
740
  seriesIndex: f,
741
741
  splitByField: e,
742
742
  fieldList: S
743
- }).name, p = E({
743
+ }).name, g = E({
744
744
  config: s,
745
745
  xAxisField: i,
746
746
  aggregationType: a,
747
- layerInfo: l,
747
+ layerInfo: n,
748
748
  seriesIndex: f,
749
- commonStrings: n
749
+ commonStrings: l
750
750
  }), k = Se({
751
- queryObject: l.layer,
751
+ queryObject: n.layer,
752
752
  fieldName: e,
753
753
  fieldValue: b ?? ""
754
754
  }), T = `${b}`, h = {
755
- ...p,
755
+ ...g,
756
756
  id: T,
757
757
  name: k ?? T,
758
758
  y: F,
759
759
  query: {
760
- ...p.query,
760
+ ...g.query,
761
761
  where: `${e}=${y === Ne.String && b !== null ? `'${b}'` : b}`,
762
762
  outStatistics: a !== I.NoAggregation ? [
763
763
  {
764
- ...p.query?.outStatistics?.[0] ?? {},
764
+ ...g.query?.outStatistics?.[0] ?? {},
765
765
  onStatisticField: m,
766
766
  outStatisticFieldName: F,
767
767
  statisticType: a
@@ -773,9 +773,9 @@ function Dt(t) {
773
773
  const A = s.series.find(
774
774
  (C) => String(xe(C)).trim().replace(/'/gu, "") === T
775
775
  );
776
- A !== void 0 && ((x(h) && x(A) || B(h) && B(A)) && $(h, A), s.colorMatch || (N(h) && N(A) ? h.fillSymbol = A.fillSymbol : (x(h) && x(A) || B(h) && B(A)) && (h.lineSymbol = A.lineSymbol, h.markerSymbol = A.markerSymbol), d = !0), h.id = A.id, h.name = A.name, h.assignToSecondValueAxis = A.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((C) => C.query?.fetchNullValues)), g.push(h);
776
+ A !== void 0 && ((x(h) && x(A) || B(h) && B(A)) && $(h, A), s.colorMatch || (N(h) && N(A) ? h.fillSymbol = A.fillSymbol : (x(h) && x(A) || B(h) && B(A)) && (h.lineSymbol = A.lineSymbol, h.markerSymbol = A.markerSymbol), d = !0), h.id = A.id, h.name = A.name, h.assignToSecondValueAxis = A.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((C) => C.query?.fetchNullValues)), p.push(h);
777
777
  }
778
- return s.colorMatch = !d, g;
778
+ return s.colorMatch = !d, p;
779
779
  }
780
780
  const Ts = (t) => {
781
781
  const {
@@ -784,16 +784,16 @@ const Ts = (t) => {
784
784
  numericFields: r,
785
785
  aggregationType: a,
786
786
  config: s,
787
- layerInfo: l,
788
- commonStrings: n,
787
+ layerInfo: n,
788
+ commonStrings: l,
789
789
  splitByFieldInfos: u
790
- } = t, { layerFieldsInfo: c } = l ?? {}, S = ft(s), o = M(s), y = c.find((C) => C.name === o), m = s.series[0]?.query === void 0, g = c.find((C) => C.name === e), d = _(s, l, n), f = be(s, l, n), b = Rt(s, l);
790
+ } = t, { layerFieldsInfo: c } = n ?? {}, S = ft(s), o = M(s), y = c.find((C) => C.name === o), m = s.series[0]?.query === void 0, p = c.find((C) => C.name === e), d = z(s, n, l), f = be(s, n, l), b = Rt(s, n);
791
791
  let F = he(s);
792
- const p = s.series.some((C) => N(C)), k = ct(s.series), T = dt(s.series), O = ae(s), h = {};
792
+ const g = s.series.some((C) => N(C)), k = ct(s.series), T = dt(s.series), O = ae(s), h = {};
793
793
  O && (h.classBreaksRules = s.series[0]?.classBreaksRules, h.xTemporalBinning = s.series[0]?.xTemporalBinning, h.yTemporalBinning = s.series[0]?.yTemporalBinning, h.emptyCells = s.series[0]?.emptyCells, h.nullPolicy = s.nullPolicy);
794
794
  let A = !1;
795
- if (at(g) ? F = de() : !ue(y) && ue(g) ? F = ye() : !U(y) && U(g) ? (F = ye(), A = !0) : U(y) && !U(g) && (p ? F = de() : F = ut(), A = !0), F !== void 0 && mt(s, n, F), S === 0 && (s.series = [
796
- E({ config: s, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
795
+ if (at(p) ? F = de() : !ue(y) && ue(p) ? F = ye() : !H(y) && H(p) ? (F = ye(), A = !0) : H(y) && !H(p) && (g ? F = de() : F = ut(), A = !0), F !== void 0 && mt(s, l, F), S === 0 && (s.series = [
796
+ E({ config: s, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: l })
797
797
  ]), s.series.forEach((C) => {
798
798
  C.x = e, C.query !== void 0 && (C.query.groupByFieldsForStatistics = [e]);
799
799
  }), i === "" || r.length > 1 ? Te({
@@ -802,26 +802,26 @@ const Ts = (t) => {
802
802
  fieldList: c
803
803
  }) ? s.series = kt({
804
804
  config: s,
805
- layerInfo: l,
805
+ layerInfo: n,
806
806
  xAxisField: e,
807
807
  numericFields: r,
808
808
  aggregationType: a,
809
- commonStrings: n
809
+ commonStrings: l
810
810
  }) : s.series = Ce({
811
811
  config: s,
812
- layerInfo: l,
812
+ layerInfo: n,
813
813
  xAxisField: e,
814
814
  numericFields: r,
815
815
  aggregationType: a,
816
- commonStrings: n
816
+ commonStrings: l
817
817
  }) : u && (s.series = Dt({
818
818
  config: s,
819
- layerInfo: l,
819
+ layerInfo: n,
820
820
  splitByField: i,
821
821
  xAxisField: e,
822
822
  numericFields: r,
823
823
  aggregationType: a,
824
- commonStrings: n,
824
+ commonStrings: l,
825
825
  splitByFieldInfos: u
826
826
  })), b && s.series[0].type !== v.HeatSeries) {
827
827
  const C = R(c, e);
@@ -830,15 +830,15 @@ const Ts = (t) => {
830
830
  if (f && s.series[0].type !== v.HeatSeries) {
831
831
  const C = re({
832
832
  config: s,
833
- layerInfo: l,
834
- commonStrings: n,
833
+ layerInfo: n,
834
+ commonStrings: l,
835
835
  numericFields: r,
836
836
  aggregationType: a
837
837
  });
838
838
  P(s, 1, C);
839
839
  }
840
- if (d && s.title && (s.title.content.text = Y(s, l, n)), q({ config: s, value: null, axisIndex: 1, isMax: !1 }), q({ config: s, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: s, layerInfo: l }), (k || T) && (q({ config: s, value: null, axisIndex: 0, isMax: !1 }), q({ config: s, value: null, axisIndex: 0, isMax: !0 }), A)) {
841
- const C = F?.type === v.DateAxisFormat ? H.Null : H.Interpolate;
840
+ if (d && s.title && (s.title.content.text = Y(s, n, l)), q({ config: s, value: null, axisIndex: 1, isMax: !1 }), q({ config: s, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: s, layerInfo: n }), (k || T) && (q({ config: s, value: null, axisIndex: 0, isMax: !1 }), q({ config: s, value: null, axisIndex: 0, isMax: !0 }), A)) {
841
+ const C = F?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
842
842
  Lt(C, s);
843
843
  }
844
844
  O && (s.series[0].classBreaksRules = h.classBreaksRules, s.series[0].xTemporalBinning = h.xTemporalBinning, s.series[0].yTemporalBinning = h.yTemporalBinning, s.series[0].emptyCells = h.emptyCells, s.nullPolicy = h.nullPolicy), m && s.series.forEach((C) => {
@@ -850,22 +850,22 @@ const Ts = (t) => {
850
850
  color: t.markerSymbol?.color
851
851
  });
852
852
  }, xs = (t) => {
853
- const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t, s = e.series?.[i], l = ne(e);
854
- let n;
853
+ const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t, s = e.series?.[i], n = le(e);
854
+ let l;
855
855
  if (W(e.series) === D.BarAndLineFromFields)
856
- n = a.axisLabels.values;
857
- else if (Ae(l)) {
856
+ l = a.axisLabels.values;
857
+ else if (Ae(n)) {
858
858
  const c = s.query?.outStatistics?.[0]?.onStatisticField;
859
- c !== void 0 && c !== X(r.layer).idField && (n = R(r.layerFieldsInfo, c));
859
+ c !== void 0 && c !== X(r.layer).idField && (l = R(r.layerFieldsInfo, c));
860
860
  } else {
861
861
  const c = String(xe(s)).trim().replace(/'/gu, "");
862
- n = Se({
862
+ l = Se({
863
863
  queryObject: r.layer,
864
- fieldName: l,
864
+ fieldName: n,
865
865
  fieldValue: c ?? ""
866
866
  }) ?? c;
867
867
  }
868
- return n ?? s.id;
868
+ return l ?? s.id;
869
869
  }, Bs = (t, e) => {
870
870
  if (ae(e))
871
871
  Vt(t, e);
@@ -878,15 +878,15 @@ const Ts = (t) => {
878
878
  });
879
879
  }
880
880
  }, Cs = async (t, e) => {
881
- const i = M(t), r = he(t)?.type, a = z(t), s = W(t.series);
882
- let l = [];
883
- return r === v.CategoryAxisFormat && (s === D.BarAndLineFromFields || i === J ? l = a.map((n) => R(e?.layerFieldsInfo, n)) : i.trim() !== "" && i !== J && e !== void 0 && (l = await yt({
881
+ const i = M(t), r = he(t)?.type, a = _(t), s = W(t.series);
882
+ let n = [];
883
+ return r === v.CategoryAxisFormat && (s === D.BarAndLineFromFields || i === Z ? n = a.map((l) => R(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== Z && e !== void 0 && (n = await yt({
884
884
  layerInfo: e,
885
885
  config: t,
886
886
  category: i
887
- }))), l;
887
+ }))), n;
888
888
  };
889
- function _(t, e, i) {
889
+ function z(t, e, i) {
890
890
  const r = Y(t, e, i), a = St(t), s = K(t);
891
891
  return r === a || s;
892
892
  }
@@ -895,13 +895,13 @@ function be(t, e, i) {
895
895
  config: t,
896
896
  layerInfo: e,
897
897
  commonStrings: i,
898
- numericFields: z(t),
898
+ numericFields: _(t),
899
899
  aggregationType: Be(t)
900
- }), a = le(1, t), s = K(t);
900
+ }), a = ne(1, t), s = K(t);
901
901
  return r === a || s;
902
902
  }
903
903
  function Rt(t, e) {
904
- const i = R(e.layerFieldsInfo, M(t)), r = le(0, t), a = K(t);
904
+ const i = R(e.layerFieldsInfo, M(t)), r = ne(0, t), a = K(t);
905
905
  return i === r || a;
906
906
  }
907
907
  function bs(t) {
@@ -914,27 +914,27 @@ function As(t, e) {
914
914
  size: 0,
915
915
  timeAggregationType: qe.Start,
916
916
  trimIncompleteTimeInterval: !0,
917
- nullPolicy: H.Null
917
+ nullPolicy: U.Null
918
918
  } : delete i.temporalBinning);
919
919
  });
920
920
  }
921
921
  export {
922
922
  ki as $,
923
923
  Ei as A,
924
- Zi as B,
925
- Ji as C,
924
+ Ji as B,
925
+ Zi as C,
926
926
  es as D,
927
927
  ts as E,
928
928
  Gi as F,
929
- _i as G,
929
+ zi as G,
930
930
  is as H,
931
931
  Nt as I,
932
932
  ss as J,
933
933
  as as K,
934
934
  te as L,
935
935
  rs as M,
936
- ls as N,
937
- ns as O,
936
+ ns as N,
937
+ ls as O,
938
938
  os as P,
939
939
  Fs as Q,
940
940
  Ss as R,
@@ -947,7 +947,7 @@ export {
947
947
  Li as Y,
948
948
  Oi as Z,
949
949
  qi as _,
950
- z as a,
950
+ _ as a,
951
951
  Vi as a0,
952
952
  Lt as a1,
953
953
  Di as a2,
@@ -965,7 +965,7 @@ export {
965
965
  Ft as ae,
966
966
  Ai as af,
967
967
  vi as ag,
968
- ne as b,
968
+ le as b,
969
969
  xs as c,
970
970
  Y as d,
971
971
  qt as e,
@@ -974,18 +974,18 @@ export {
974
974
  ys as h,
975
975
  Yi as i,
976
976
  Xi as j,
977
- Hi as k,
978
- Ui as l,
977
+ Ui as k,
978
+ Hi as l,
979
979
  ms as m,
980
- ps as n,
981
- gs as o,
980
+ gs as n,
981
+ ps as o,
982
982
  fs as p,
983
983
  Ri as q,
984
984
  wi as r,
985
985
  Wi as s,
986
986
  Ki as t,
987
987
  ji as u,
988
- zi as v,
988
+ _i as v,
989
989
  Qi as w,
990
990
  Mi as x,
991
991
  Pi as y,